/* ---------------------------------CSS Reset------------------------------------------------------ */
body {
  font-family: "Roboto", sans-serif;
  background-color: #ffffff;
  color: #434455;
}

a {
  text-decoration: none;
}

ul {
  list-style-type: none;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
  margin-bottom: 0;
}
ul {
  margin: 0;
  padding: 0;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
.container {
  padding: 0 15px;
  margin: 0 auto;
  width: 1158px;
}

/*--------------------------- HEADER START-------------------------------------------------------- */
.nav-item.studio {
  position: relative;
  color: #404bbf;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.studio::after {
  content: "";
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 4px;
  background-color: #404bbf;
  border-radius: 2px;
}
.nav-item {
  display: block;
  padding: 24px 0;
}
.mailto-tel {
  display: block;
  padding: 24px 0;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.header-section {
  background: #ffffff;
  border-bottom: 1px solid #e7e9fc;
  box-shadow:
    0px 2px 1px rgba(46, 47, 66, 0.08),
    0px 1px 1px rgba(46, 47, 66, 0.16),
    0px 1px 6px rgba(46, 47, 66, 0.08);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-container {
  display: flex;
  gap: 76px;
  align-items: center;
  justify-content: space-between;
}
.header-list {
  display: flex;
  gap: 40px;
}
.address-container {
  display: flex;
  gap: 40px;
}

.header-section {
  background-color: #ffffff;
}

.logo span {
  color: #2e2f42;
}

.logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  color: #4d5ae5;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-right: 76px;
}

.nav-item {
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}
.header-list a {
  color: #2e2f42;
}

.header-list a:focus,
.header-list a:hover {
  color: #404bbf;
}

.header-address {
  color: #434455;
  font-style: normal;
}
.mailto-tel {
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

.header-address a:focus,
.header-address a:hover {
  color: #404bbf;
}

/* ---------------------------------------HERO START---------------------------------------------- */

.main-section {
  background-color: #2e2f42;
  padding: 188px 0;
  background-image:
    linear-gradient(rgb(46 47 66 / 0.7), rgb(46 47 66 / 0.7)), url(../images/people.jpg);
  background-size: cover;
  background-position: center;
  max-width: 1440px;
  margin: 0 auto;
  background-repeat: no-repeat;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 496px;
  margin: 0 auto;
}
.hero .main-heading {
  color: #ffffff;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.07;
  text-align: center;
  letter-spacing: 0.02em;
  max-width: 496px;
}

.main-button {
  cursor: pointer;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  background-color: #4d5ae5;
  letter-spacing: 0.04em;
  border: none;
  min-width: 169px;
  height: 56px;
  border-radius: 4px;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.main-button:focus,
.main-button:hover {
  background-color: #404bbf;
}

/* ---------------------------------------BENEFITS------------------------------------------------------------ */
.vektor {
  margin-bottom: 8px;
  border: 1px solid #8e8f99;
  border-radius: 4px;
  height: 112px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f4f4fd;
}

.li-benefits {
  width: calc((100% - 72px) / 4);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;

  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.section-benefits {
  padding: 120px 0;
}
.benefits {
  display: flex;
  gap: 24px;
  width: 1128px;
  margin: 0 auto;
}
.benefits h3 {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
}
.benefits p {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.h-benefits {
  margin-bottom: 8px;
}
/* ----------------------------------------OUR TEAM------------------------------------------------------------------- */

.ul-list-social-team {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.link-social {
  width: 40px;
  height: 40px;
  background-color: #4d5ae5;
  display: flex;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
}
.link-social {
  transition-property: background-color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.link-social:hover,
.link-social:focus {
  background-color: #404bbf;
}

.vector-images {
  fill: #f4f4fd;
}
.section-title {
  color: #2e2f42;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: capitalize;
  margin-bottom: 72px;
}
.under-img-div {
  padding: 32px 0;
}
.img-team {
  display: block;
}
.li-team {
  flex-basis: calc((100%-72px) / 4);
}
.team-section {
  background-color: #f4f4fd;
  padding: 120px 0;
}
.team-container {
  display: flex;
}
.team-names {
  display: flex;
  gap: 24px;
}
.team-names h3 {
  color: #2e2f42;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.team-names p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.li-team {
  background-color: #ffffff;
  border-radius: 0 0 4px 4px;
  padding: 0px 0px 32px;

  box-shadow:
    0 2px 1px 0 rgba(46, 47, 66, 0.08),
    0 1px 1px 0 rgba(46, 47, 66, 0.16),
    0 1px 6px 0 rgba(46, 47, 66, 0.08);
}
.h-team {
  margin-bottom: 8px;
}

/*---------------------------------------- PORTFOLIO--------------------------------------------------- */

.item-portfolio:hover .p-overlay {
  transform: translateY(0%);
}
.p-overlay {
  padding: 40px 32px;
  color: #f4f4fd;

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #4d5ae5;
}

.div-overlay {
  position: relative;
  overflow: hidden;
}

.a-portfolio {
  display: block;
}
.item-portfolio:hover {
  box-shadow:
    0px 1px 6px rgba(46, 47, 66, 0.08),
    0px 1px 1px rgba(46, 47, 66, 0.16),
    0px 2px 1px rgba(46, 47, 66, 0.08);
}
.item-portfolio {
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio {
  padding-top: 120px;
  padding-bottom: 120px;
}
.ul-portfolio {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 48px;
}
.item-portfolio {
  width: calc((100% - 48px) / 3);
}
.img-portfolio {
  display: block;
}
.p-team {
  font-size: 16px;
  margin-bottom: 8px;
  text-align: center;
}
.h-team {
  text-align: center;
}
.img-team {
  margin-bottom: 32px;
}
.portfolio h3 {
  color: #2e2f42;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.portfolio p {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.title-portfolio {
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: #2e2f42;
  margin-bottom: 72px;
}

.div-text-portfolio {
  border: 1px solid #e7e9fc;
  border-top: none;
  padding: 32px 16px;
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
}
.h-portfolio {
  margin-bottom: 8px;
}
/* -----------------------------------------FOOTER----------------------------------------------------- */

.vektor-footer {
  margin-left: 16px;
}

.footer-section {
  background-color: #2e2f42;
  padding-top: 100px;
  padding-bottom: 100px;
}

.logo-footer {
  font-family: "Raleway", sans-serif;
  line-height: 1.17;
  text-transform: uppercase;
  color: #4d5ae5;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  display: inline-block;
}
.name-studio {
  color: #f4f4fd;
}
.p-footer {
  max-width: 264px;
  color: #f4f4fd;
}
.div-footer-social {
  display: flex;
  flex-direction: column;
  margin-right: 80px;
  align-items: baseline;
}
.p-last-social {
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #ffffff;
}
.footer-main-container {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
}
.div-footer-logo {
  margin-right: 120px;
}
.ul-list-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.link-social.link-social-footer:hover,
.link-social.link-social-footer:focus {
  background-color: #31d0aa;
}
.portfolio:hover .item-portfolio {
  cursor: pointer;
}
.button-submit {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  border: none;
  line-height: 1.5;
  letter-spacing: 0.04em;
  background-color: #4d5ae5;
  color: #ffffff;
  border-radius: 4px;
  padding: 8px 24px;
  min-width: 165px;
  height: 40px;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.button-submit:hover,
.button-submit:focus {
  background-color: #404bbf;
}
.button-flex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.p-subscribe {
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 16px;

  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
}
.input {
  height: 40px;
  font-weight: 400;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  max-width: 264px;
  width: 100%;
  border: none;
  border: 1px solid #fff;
  border-radius: 4px;
  width: 264px;
  height: 40px;
  box-shadow: 0 4px 4px 0 rgb(0 0 0 / 0.15);
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent;
  color: #ffffff;
}
.input:focus {
  outline: none;
  border: 1px solid #404bbf;
}
.vektor-footer {
  fill: #ffffff;
}
.div-footer-form {
  display: flex;
  gap: 24px;
}
.footer-form {
  display: flex;
  gap: 24px;
}
/* -------------------------------------M O D A L--------------------------------------------------- */

.div-input {
  position: relative;
}
.form-div.textarea-div {
  margin-bottom: 16px;
}
.form-div {
  margin-bottom: 8px;
}
.modal-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgb(46 47 66/0.4);
  top: 0;
  left: 0;
  z-index: 999;
  transition:
    opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
  /* opacity: 0;
  pointer-events: none; */
}
.modal {
  background-color: #ffffff;
  width: 408px;
  min-height: 584px;
  padding: 72px 24px 24px 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 4px;
  width: 408px;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12),
    0 2px 1px 0 rgba(0, 0, 0, 0.2);
  background-color: #fcfcfc;
}
.vector-modal-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.input-place {
  width: 360px;
  height: 40px;
  padding-left: 38px;
  border: 1px solid rgb(46 47 66 / 0.4);
  border-radius: 4px;
  background-color: transparent;
  outline: transparent;
}
.modal-title {
  margin-bottom: 16px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #2e2f42;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}

.modal-textarea {
  display: block;
  height: 120px;
  width: 100%;
  resize: none;
  padding: 8px 16px;
  outline: transparent;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(46, 47, 66, 0.4);
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: rgba(46, 47, 66, 0.4);
  border-radius: 4px;
  background-color: transparent;
}
.modal-textarea:focus {
  border-color: #4d5ae5;
}
.modal-textarea::placeholder {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.16667;
  letter-spacing: 0.04em;
  color: rgba(46, 47, 66, 0.4);
}
.modal-close {
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 24px;
  height: 24px;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 24px;
  right: 24px;
  border-radius: 50%;
  fill: #2e2f42;
  background-color: #e7e9fc;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition:
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.svg-transition {
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-close:hover,
.modal-close:focus {
  background-color: #404bbf;
  border: none;
}

.modal-close:focus svg,
.modal-close:hover svg {
  fill: #ffffff;
}

.div-checkbox {
  margin-bottom: 24px;
}
.div-submit {
  display: flex;
  justify-content: center;
}
.modal-policy {
  line-height: 1.33333;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: #4d5ae5;
}
.modal-button {
  font-family: "Roboto", sans-serif;
  display: block;
  cursor: pointer;
  border-radius: 4px;
  padding: 16px 32px;
  margin: 0 auto;
  min-width: 169px;
  height: 56px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
  background-color: #4d5ae5;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  border: none;
  color: #ffffff;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-button:hover,
.modal-button:focus {
  background-color: #404bbf;
}

.input-place:focus {
  border-color: #4d5ae5;
}

.input-place:focus + .vector-modal-icon {
  fill: #4d5ae5;
}
.input-place:focus {
  border-color: #4d5ae5;
  outline: none;
}
.input-place {
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.vector-modal-icon {
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.checkbox-custom {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid rgba(46, 47, 66, 0.4);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  fill: transparent;
  flex-shrink: 0;
  transition:
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1),
    fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-label {
  margin-bottom: 4px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #8e8f99;
  line-height: 1.17;
  letter-spacing: 0.04em;
  outline: none;
  position: relative;
  display: block;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.modal-checkbox:checked + .modal-label > span {
  background-color: #404bbf;
  border: none;
  fill: #f4f4fd;
}
.modal-checkbox:focus + .modal-label > span {
  border-color: #4d5ae5;
}
