/* ----------------------------Instrument-------------------------------- */

:root {
  --color1: #404bbf;
  --color2: #434455;
  --color3: #f4f4fd;
  --color4: #ffffff;
  --color5: #2e2f42;
  --color6: #4d5ae5;
  --color7: #8e8f99;
}

body {
  font-family: "Roboto", sans-serif;
  color: #434455;
  background-color: #ffffff;
}
li {
  list-style-type: none;
}

.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;
}

.container {
  max-width: 428px;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 768px) {
  .container {
    max-width: 1157px;
  }
}

@media screen and (min-width: 1158px) {
  .container {
    min-width: 1158px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

img {
  display: block;
}

.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.current-page {
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  padding: 24px 0;
  position: relative;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.current-page::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 4px;
  background-color: #404bbf;
  border-radius: 2px;
  width: 100%;
  display: block;
}

/* ----------------------------RESET-------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* MOBILE MOBILE MOBILE MOBILE MOBILE MOBILE MOBILE MOBILE MOBILE MOBILE*/

@media screen and (max-width: 767px) {
  /* ----------------------------HEADER-------------------------------- */

  .header {
    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;
    flex-shrink: 0;
  }

  .nav-list {
    display: none;
    gap: 40px;
    flex-shrink: 0;
  }

  .nav {
    display: flex;
    align-items: center;
  }

  .item-logo {
    color: var(--color5);
  }

  .logo {
    font-family: "Raleway", sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.17;
    color: #4d5ae5;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding-top: 25.5px;
    padding-bottom: 23.5px;
  }

  .logo:link {
    text-decoration: none;
  }

  .navigation {
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #2e2f42;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 24px 0;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navigation:hover {
    color: #404bbf;
  }

  .navigation:focus {
    color: #404bbf;
  }

  .current-page {
    color: #404bbf;
  }

  .header-address {
    font-style: normal;
    display: none;
  }

  .addresses {
    list-style: none;
    text-decoration: none;
    display: flex;
    gap: 40px;
    padding-left: 332px;
  }

  .address {
    font-size: 16px;
    line-height: 24px;
    color: #434455;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 24px 0;
    display: block;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .address:hover {
    color: #404bbf;
  }

  .address:focus {
    color: #404bbf;
  }

  .mob-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .mob-menu-open-button {
    fill: #2e2f42;
    border: none;
    background-color: transparent;
    padding: 0;
    width: 32px;
    padding-top: 25.5px;
    padding-bottom: 23.5px;
    height: 22px;
    margin-left: auto;
  }
  .mob-button-svg {
    stroke: #2e2f42;
  }

  .mob-menu {
    width: 100%;
    height: 100%;
    top: 0;
    background-color: #ffffff;
    position: fixed;
    z-index: 1;
    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);
    transform: translateX(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mob-menu.is-open {
    transform: translateX(0);
  }

  .mob-close-btn {
    fill: #2e2f42;
    border: 1px solid #2e2f42;
    border-radius: 50%;
    position: absolute;
    top: 24px;
    right: 24px;
  }

  .mob-menu-list {
    margin-top: 80px;
    margin-left: 40px;
  }
  .mob-menu-current-page {
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 40px;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #404bbf;
    margin-bottom: 40px;
    display: block;
  }
  .mob-menu-navigation {
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #2e2f42;
    text-decoration: none;
    margin-bottom: 40px;
    display: block;
  }

  .mob-menu-phone {
    max-width: 353px;
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #4d5ae5;
    text-decoration: none;
    display: block;
    margin-bottom: 40px;
  }

  .mob-menu-mail {
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #434455;
    text-decoration: none;
  }

  .mob-menu-addresses {
    margin-left: 40px;
    margin-bottom: 48px;
  }
  .mob-menu-soc-list {
    display: flex;
    justify-content: space-between;
    max-width: 328px;
    margin-bottom: 40px;
    align-content: center;
    margin-left: 40px;
  }
  .mob-menu-soc-item {
    width: 40px;
    height: 40px;
    background: #4d5ae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mob-menu-soc-link {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mob-menu-soc-icon {
    fill: #ffffff;
  }

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

  .hero {
    background-color: var(--color5);
    padding-top: 112px;
    padding-bottom: 112px;
    display: flex;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/people-office1-mob.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    margin: 0 auto;
  }

  @media (min-device-pixel-ratio: 2),
    (min-resolution: 192dpi),
    (min-resolution: 2dppx) {
    .hero {
      background-image: linear-gradient(
          rgba(46, 47, 66, 0.7),
          rgba(46, 47, 66, 0.7)
        ),
        url(../images/people-office1-mob-2x.jpg);
    }
  }

  .hero-header {
    color: #ffffff;
    padding-bottom: 48px;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-transform: capitalize;
  }

  .button {
    font-family: "Roboto", sans-serif;
    letter-spacing: 0.04em;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    color: #ffffff;
    background: #4d5ae5;
    line-height: 1.5;
    cursor: pointer;
    min-width: 169px;
    padding: 16px 32px;
    display: block;
    margin: 0 auto;
    height: 56px;
    border: none;
    border-radius: 4px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .button:hover {
    background: #404bbf;
  }

  .button:focus {
    background: #404bbf;
  }

  /* ----------------------------Functions-------------------------------- */

  .functions-list {
    display: flex;
    flex-direction: column;
    gap: 72px;
  }

  .section-functions {
    padding: 96px 0;
  }

  .functions-header {
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 40px;
    text-align: center;
    letter-spacing: 0.02em;
    color: var(--color5);
    margin: 0;
    margin-bottom: 8px;
  }

  .functions-paragraph {
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
  }

  .functions-item {
    background: var(--color3);
    min-width: 264px;
    height: 112px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 8px;
  }
  /* -------------------------SERVICES-------------------------------- */

  .services-header {
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: var(--color5);
    margin-bottom: 72px;
  }

  .section-services {
    padding-bottom: 120px;
    display: none;
  }

  .section-services-li {
    border: 1px solid #e7e9fc;
    width: calc((100% - 48px) / 3);
  }
  /* -------------------------TEAM-------------------------------- */

  .team-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 72px;
  }

  .section-team-header {
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: var(--color5);
    margin-bottom: 72px;
  }

  .section-names {
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--color5);
    text-align: center;
    margin-bottom: 8px;
  }

  .section-profecions {
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin-top: 0;
    text-align: center;
  }

  .section-team {
    background: #f4f4fd;
    padding: 96px 0;
  }

  .section-team-li {
    background-color: #ffffff;
    width: 264px;
    border-radius: 0px 0px 4px 4px;
    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);
  }

  .team-names-profecions {
    padding: 32px 16px;
  }

  .soc-media-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .team-soc-list {
    display: flex;
    justify-content: center;
    gap: 24px;
  }

  .team-soc-item {
    width: 40px;
    height: 40px;
  }

  .team-soc-link {
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 50%;
    background-color: var(--color6);
    align-items: center;
    justify-content: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .team-soc-icon {
    width: 16px;
    height: 16px;
    fill: var(--color3);
  }
  .team-soc-link:hover {
    background-color: var(--color1);
  }

  .team-soc-link:focus {
    background-color: var(--color1);
  }
  /* ----------------------------Customers-------------------------------- */
  .customers {
    padding: 96px 0;
  }

  .customers-header {
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: var(--color5);
    margin-bottom: 72px;
  }
  .customers-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 72px;
    justify-content: center;
  }
  .customers-link {
    min-width: 100%;
    height: 100%;
    border: 1px solid var(--color7);
    color: var(--color7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1),
      border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .customers-link:hover {
    color: #404bbf;
    border-color: #404bbf;
  }

  .customers-link:focus {
    color: #404bbf;
    border-color: #404bbf;
  }

  .customers-item {
    width: calc((100% - 32px) / 2);
    height: 88px;
    display: flex;
  }

  .customers-link:hover .customers-icon {
    fill: #404bbf;
  }

  .customers-icon {
    width: 104px;
    height: 56px;
    fill: currentColor;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  /* ----------------------------Footer-------------------------------- */
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-second-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-p {
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    color: #f4f4fd;
    width: 264px;
    margin-bottom: 72px;
    margin-top: 0;
  }

  .footer-item-logo {
    color: #f4f4fd;
  }

  .footer {
    background: #2e2f42;
    padding: 96px 0;
  }

  .footer-logo {
    font-family: "Raleway", sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.17;
    color: #4d5ae5;
    letter-spacing: 0.03em;
    text-transform: uppercase;

    display: inline-flex;
    align-content: center;
    text-decoration: none;
    margin-bottom: 16px;
  }
  .footer-soc-p {
    color: var(--color4);
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    margin-top: 0;
  }
  .footer-soc-list {
    display: flex;
    gap: 16px;
    align-content: center;
  }
  .footer-soc-item {
    width: 40px;
    height: 40px;
  }
  .footer-soc-link {
    width: 40px;
    height: 40px;
    background-color: var(--color6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .footer-soc-icon {
    width: 24px;
    height: 24px;
    fill: var(--color3);
  }

  .footer-soc-link:hover {
    background-color: #31d0aa;
  }

  .footer-soc-link:focus {
    background-color: #31d0aa;
  }

  .footer-form-container {
    width: 100%;
  }

  .footer-form-p {
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: #ffffff;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    margin-top: 72px;
  }

  .footer-input {
    border: 1px solid #ffffff;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.15));
    border-radius: 4px;
    background-color: transparent;
    width: 100%;
    height: 40px;
    color: #ffffff;
    outline: transparent;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    padding-left: 16px;
    max-width: 398px;
    opacity: 0.30000001192092896;
  }

  .footer-input::placeholder {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 24px;
    letter-spacing: 0.04em;
    color: #ffffff;
    padding-top: 8px;
  }

  .footer-form-button {
    background: #4d5ae5;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    min-width: 165px;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.04em;
    color: #ffffff;
    height: 40px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
    margin-top: 16px;
  }

  .footer-form-button:hover {
    background: #404bbf;
  }

  .second-form-container {
    display: flex;
  }

  .footer-button-svg {
    fill: #ffffff;
    margin-left: 16px;
  }

  /* ----------------------------Portfolio-MAIN-------------------------------- */

  .portfolio-header {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.5;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--color5);
    margin-bottom: 8px;
  }

  .portfolio-p {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: var(--color2);
  }

  .main-link {
    text-decoration: none;
    max-width: 360px;
    display: block;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .main-link: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);
  }
  .main-link:focus {
    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);
  }
  /* ------------------------PORTFOLIO-FILTER--------------------------- */

  .portfolio-button {
    font-family: "Roboto", sans-serif;
    letter-spacing: 0.04em;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    color: var(--color6);
    background: var(--color3);
    line-height: 1.5;
    cursor: pointer;
    min-width: 78px;
    padding: 12px 24px 12px 24px;
    border: 1px solid #e7e9fc;
    border-radius: 4px;
    box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1), 0px 2px 1px rgba(0, 0, 0, 0.08),
      0px 2px 2px rgba(0, 0, 0, 0.12);
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1),
      background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
      border-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .portfolio-button:hover {
    color: #ffffff;
    background-color: #404bbf;
    border: 1px solid transparent;
  }

  .portfolio-button:focus {
    color: #ffffff;
    background-color: #404bbf;
    border: 1px solid transparent;
  }

  .portfolio-filter {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 72px;
  }

  /* ------------------------PROJECTS--------------------------- */

  .project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    row-gap: 48px;
  }

  .projects {
    max-width: 360px;
    display: block;
    position: relative;
  }

  .main-link:hover .project-cover-text {
    transform: translateY(0);
  }

  .main-link:focus .project-cover-text {
    transform: translateY(0);
  }

  .projects-info {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
  }

  .project-cover-text {
    position: absolute;
    top: 0;
    background-color: var(--color6);
    margin: 0;
    color: var(--color3);
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    background-color: var(--color6);
    width: 296px;
    padding: 40px 32px;
    height: 100%;
    width: 100%;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .project-cover-wrap {
    position: relative;
    overflow: hidden;
  }

  /* ------------------------BACKDROP--------------------------- */

  .backdrop {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(46, 47, 66, 0.4);
    top: 0;
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
      visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    padding: 72px 16px 24px 16px;
    transform: translate(-50%, -50%);
    background-color: #fcfcfc;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12),
      0px 2px 1px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  @media screen and (min-width: 428px) {
    .modal {
      width: 392px;
    }
  }
  .modal-close-button {
    background: #e7e9fc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 0;
    cursor: pointer;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
      border 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-close-button:hover {
    background-color: #404bbf;
    border: none;
  }

  .modal-close-button:hover .modal-icon {
    fill: #ffffff;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-close-button:focus {
    background: #404bbf;
    border: none;
  }

  .modal-close-button:focus .modal-icon {
    fill: #ffffff;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-form {
    margin: 0 auto;
    max-width: 360px;
  }

  .modal-paragraph {
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin: 0;
    text-align: center;
    margin-bottom: 16px;
  }

  .input {
    outline: transparent;
    width: 100%;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    height: 40px;
    padding-left: 38px;
    background-color: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  .input:focus + .modal-form-icon {
    fill: #4d5ae5;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .label {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
    display: block;
    margin-bottom: 4px;
  }

  .comment {
    resize: none;
    width: 100%;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    line-height: 1.17;
    font-size: 12px;
    height: 120px;
    letter-spacing: 0.04em;
    background-color: transparent;
    outline: transparent;
    padding: 8px 16px;
    color: rgba(46, 47, 66, 0.4);
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-comment-field {
    margin-bottom: 16px;
  }
  .comment::placeholder {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0.04em;
    color: rgba(46, 47, 66, 0.4);
  }

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

  .modal-privacy-text {
    display: flex;
    margin-bottom: 24px;
  }

  .privacy-link {
    color: var(--color6);
  }

  .submit-button {
    min-width: 169px;
    height: 56px;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #ffffff;
    background-color: #4d5ae5;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    border: none;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .submit-button:hover {
    background-color: #404bbf;
  }

  .user-privacy:checked + .check-text span {
    background-color: #404bbf;
    border: none;
    fill: #f4f4fd;
  }

  .checkbox-icon {
    margin: 0 auto;
  }

  .check-text {
    align-items: center;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
    margin: 0;
  }

  .checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    fill: transparent;
    margin-right: 8px;
    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-form-icon {
    fill: #2e2f42;
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    margin: 0;
  }

  .input-wrap {
    position: relative;
  }

  .modal-field {
    margin-bottom: 8px;
  }
}

/* TABLET TABLET TABLET TABLET TABLET TABLET TABLET*/

@media screen and (min-width: 768px) and (max-width: 1157px) {
  /* ----------------------------HEADER-------------------------------- */

  .header {
    border-bottom: 1px solid #e7e9fc;
    display: flex;
    align-items: center;
    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;
    flex-shrink: 0;
  }

  .nav-list {
    display: flex;
    gap: 40px;
    flex-shrink: 0;
  }

  .nav {
    display: flex;
    align-items: center;
  }

  .item-logo {
    color: var(--color5);
  }

  .logo {
    font-family: "Raleway", sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.17;
    color: #4d5ae5;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 24px 0;
    padding-right: 120px;
  }

  .logo:link {
    text-decoration: none;
  }

  .navigation {
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #2e2f42;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 24px 0;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navigation:hover {
    color: #404bbf;
  }

  .navigation:focus {
    color: #404bbf;
  }

  .current-page {
    color: #404bbf;
  }

  .header-address {
    font-style: normal;
    display: flex;
    flex-direction: column;
  }

  .addresses {
    list-style: none;
    text-decoration: none;
    display: flex;
    gap: 12px;
    padding: 16px 0;
    flex-direction: column;
    padding-left: 120px;
  }

  .address {
    color: #434455;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0.48px;
    text-decoration: none;
    display: block;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .address:hover {
    color: #404bbf;
  }

  .address:focus {
    color: #404bbf;
  }

  .mob-menu-open-button {
    display: none;
  }

  .mob-menu {
    display: none;
  }
  /* ----------------------------HERO-------------------------------- */

  .hero {
    background-color: var(--color5);
    padding-top: 108px;
    padding-bottom: 108px;
    display: flex;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/people-office1-tab.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    margin: 0 auto;
  }

  @media (min-device-pixel-ratio: 2),
    (min-resolution: 192dpi),
    (min-resolution: 2dppx) {
    .hero {
      background-image: linear-gradient(
          rgba(46, 47, 66, 0.7),
          rgba(46, 47, 66, 0.7)
        ),
        url(../images/people-office1-tab-2x.jpg);
    }
  }

  .hero-header {
    color: #ffffff;
    padding-bottom: 48px;
    max-width: 496px;
    margin: 0 auto;
    text-align: center;
    font-style: normal;
    font-size: 56px;
    font-family: Roboto;
    font-weight: 700;
    line-height: 60px;
    letter-spacing: 1.12px;
  }

  .button {
    font-family: "Roboto", sans-serif;
    letter-spacing: 0.04em;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    color: #ffffff;
    background: #4d5ae5;
    line-height: 1.5;
    cursor: pointer;
    min-width: 169px;
    padding: 16px 32px;
    display: block;
    margin: 0 auto;
    height: 56px;
    border: none;
    border-radius: 4px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .button:hover {
    background: #404bbf;
  }

  .button:focus {
    background: #404bbf;
  }

  /* ----------------------------Functions-------------------------------- */

  .functions-list {
    display: flex;
    row-gap: 72px;
    column-gap: 24px;
    flex-wrap: wrap;
    max-width: 736px;
    margin: 0 auto;
  }

  .section-functions {
    padding: 96px 0;
  }

  .functions-header {
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 40px;
    letter-spacing: 0.02em;
    color: var(--color5);
    margin: 0;
    margin-bottom: 8px;
  }

  .functions-paragraph {
    max-width: 356px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.32px;
    color: #434455;
  }

  .functions-li {
    max-width: 356px;
  }

  .functions-item {
    background: var(--color3);
    height: 112px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 8px;
  }
  /* -------------------------SERVICES-------------------------------- */

  .services-header {
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: var(--color5);
    margin-bottom: 72px;
  }

  .section-services {
    padding-bottom: 120px;
    display: none;
  }

  .section-services-li {
    border: 1px solid #e7e9fc;
    width: calc((100% - 48px) / 3);
  }
  /* -------------------------TEAM-------------------------------- */

  .team-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 64px;
    max-width: 552px;
    margin: 0 auto;
  }

  .section-team-header {
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: var(--color5);
    margin-bottom: 72px;
  }

  .section-names {
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--color5);
    text-align: center;
    margin-bottom: 8px;
  }

  .section-profecions {
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin-top: 0;
    text-align: center;
  }

  .section-team {
    background: #f4f4fd;
    padding: 96px 0;
  }

  .section-team-li {
    background-color: #ffffff;
    width: 264px;
    border-radius: 0px 0px 4px 4px;
    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);
  }

  .team-names-profecions {
    padding: 32px 16px;
  }

  .soc-media-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .team-soc-list {
    display: flex;
    justify-content: center;
    gap: 24px;
  }

  .team-soc-item {
    width: 40px;
    height: 40px;
  }

  .team-soc-link {
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 50%;
    background-color: var(--color6);
    align-items: center;
    justify-content: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .team-soc-icon {
    width: 16px;
    height: 16px;
    fill: var(--color3);
  }
  .team-soc-link:hover {
    background-color: var(--color1);
  }

  .team-soc-link:focus {
    background-color: var(--color1);
  }
  /* ----------------------------Customers-------------------------------- */
  .customers {
    padding: 96px 0;
  }

  .customers-header {
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: var(--color5);
    margin-bottom: 72px;
  }
  .customers-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 72px;
    max-width: 552px;
    margin: 0 auto;
  }
  .customers-link {
    min-width: 100%;
    height: 100%;
    border: 1px solid var(--color7);
    color: var(--color7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1),
      border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .customers-link:hover {
    color: #404bbf;
    border-color: #404bbf;
  }

  .customers-link:focus {
    color: #404bbf;
    border-color: #404bbf;
  }

  .customers-item {
    width: calc((100% - 48px) / 3);
    height: 88px;
    display: flex;
  }

  .customers-link:hover .customers-icon {
    fill: #404bbf;
  }

  .customers-icon {
    width: 104px;
    height: 56px;
    fill: currentColor;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  /* ----------------------------Footer-------------------------------- */
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    row-gap: 72px;
    column-gap: 24px;
    margin-left: 108px;
  }

  .footer-p {
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    color: #f4f4fd;
    width: 264px;
    margin-top: 0;
  }

  .footer-item-logo {
    color: #f4f4fd;
  }

  .footer {
    background: #2e2f42;
    padding: 100px 0;
  }

  .footer-logo {
    font-family: "Raleway", sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.17;
    color: #4d5ae5;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-right: 76px;
    display: inline-flex;
    text-decoration: none;
    margin-bottom: 16px;
  }
  .footer-soc-p {
    color: var(--color4);
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    margin-top: 0;
  }
  .footer-soc-list {
    display: flex;
    gap: 16px;
    align-content: center;
  }
  .footer-soc-item {
    width: 40px;
    height: 40px;
  }
  .footer-soc-link {
    width: 40px;
    height: 40px;
    background-color: var(--color6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .footer-soc-icon {
    width: 24px;
    height: 24px;
    fill: var(--color3);
  }

  .footer-soc-link:hover {
    background-color: #31d0aa;
  }

  .footer-soc-link:focus {
    background-color: #31d0aa;
  }

  .footer-form-p {
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: #ffffff;
    display: flex;
    margin-bottom: 16px;
  }

  .footer-input {
    border: 1px solid #ffffff;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.15));
    border-radius: 4px;
    background-color: transparent;
    min-width: 264px;
    height: 40px;
    color: #ffffff;
    outline: transparent;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    padding-left: 16px;
    opacity: 0.30000001192092896;
  }

  .footer-input::placeholder {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 24px;
    letter-spacing: 0.04em;
    color: #ffffff;
    padding-top: 8px;
  }

  .footer-form-button {
    background: #4d5ae5;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    min-width: 165px;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.04em;
    color: #ffffff;
    height: 40px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .footer-form-button:hover {
    background: #404bbf;
  }

  .footer-form-container {
    width: 453px;
  }

  .second-form-container {
    display: flex;
  }

  .footer-button-svg {
    fill: #ffffff;
    margin-left: 16px;
  }
  .footer-form {
    display: flex;
    gap: 24px;
  }

  /* ----------------------------Portfolio-MAIN-------------------------------- */

  .portfolio-header {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.5;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--color5);
    margin-bottom: 8px;
  }

  .portfolio-p {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: var(--color2);
  }

  .main-link {
    text-decoration: none;
    max-width: 360px;
    display: block;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .main-link: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);
  }
  .main-link:focus {
    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);
  }
  /* ------------------------PORTFOLIO-FILTER--------------------------- */

  .portfolio-button {
    font-family: "Roboto", sans-serif;
    letter-spacing: 0.04em;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    color: var(--color6);
    background: var(--color3);
    line-height: 1.5;
    cursor: pointer;
    min-width: 78px;
    padding: 12px 24px 12px 24px;
    border: 1px solid #e7e9fc;
    border-radius: 4px;
    box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1), 0px 2px 1px rgba(0, 0, 0, 0.08),
      0px 2px 2px rgba(0, 0, 0, 0.12);
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1),
      background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
      border-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .portfolio-button:hover {
    color: #ffffff;
    background-color: #404bbf;
    border: 1px solid transparent;
  }

  .portfolio-button:focus {
    color: #ffffff;
    background-color: #404bbf;
    border: 1px solid transparent;
  }

  .portfolio-filter {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 72px;
  }

  /* ------------------------PROJECTS--------------------------- */

  .project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    row-gap: 48px;
  }

  .projects {
    max-width: 360px;
    display: block;
    position: relative;
  }

  .main-link:hover .project-cover-text {
    transform: translateY(0);
  }

  .main-link:focus .project-cover-text {
    transform: translateY(0);
  }

  .projects-info {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
  }

  .project-cover-text {
    position: absolute;
    top: 0;
    background-color: var(--color6);
    margin: 0;
    color: var(--color3);
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    background-color: var(--color6);
    width: 296px;
    padding: 40px 32px;
    height: 100%;
    width: 100%;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .project-cover-wrap {
    position: relative;
    overflow: hidden;
  }

  /* ------------------------BACKDROP--------------------------- */

  .backdrop {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(46, 47, 66, 0.4);
    top: 0;
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
      visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 72px 16px 24px 16px;
    transform: translate(-50%, -50%);
    background-color: #fcfcfc;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12),
      0px 2px 1px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-close-button {
    background: #e7e9fc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 0;
    cursor: pointer;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
      border 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-close-button:hover {
    background-color: #404bbf;
    border: none;
  }

  .modal-close-button:hover .modal-icon {
    fill: #ffffff;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-close-button:focus {
    background: #404bbf;
    border: none;
  }

  .modal-close-button:focus .modal-icon {
    fill: #ffffff;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-form {
    margin: 0 auto;
    width: 360px;
  }

  .modal-paragraph {
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin: 0;
    text-align: center;
    margin-bottom: 16px;
  }

  .input {
    outline: transparent;
    width: 360px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    height: 40px;
    padding-left: 38px;
    background-color: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  .input:focus + .modal-form-icon {
    fill: #4d5ae5;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .label {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
    display: block;
    margin-bottom: 4px;
  }

  .comment {
    resize: none;
    width: 360px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    line-height: 1.17;
    font-size: 12px;
    height: 120px;
    letter-spacing: 0.04em;
    background-color: transparent;
    outline: transparent;
    padding: 8px 16px;
    color: rgba(46, 47, 66, 0.4);
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-comment-field {
    margin-bottom: 16px;
  }
  .comment::placeholder {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0.04em;
    color: rgba(46, 47, 66, 0.4);
  }

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

  .modal-privacy-text {
    display: flex;
    margin-bottom: 24px;
  }

  .privacy-link {
    color: var(--color6);
  }

  .submit-button {
    min-width: 169px;
    height: 56px;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #ffffff;
    background-color: #4d5ae5;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    border: none;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .submit-button:hover {
    background-color: #404bbf;
  }

  .user-privacy:checked + .check-text span {
    background-color: #404bbf;
    border: none;
    fill: #f4f4fd;
  }

  .checkbox-icon {
    margin: 0 auto;
  }

  .check-text {
    align-items: center;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
    margin: 0;
  }

  .checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    fill: transparent;
    margin-right: 8px;
    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-form-icon {
    fill: #2e2f42;
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    margin: 0;
  }

  .input-wrap {
    position: relative;
  }

  .modal-field {
    margin-bottom: 8px;
  }
}

/* DESKTOP DESKTOP DESKTOP DESKTOP DESKTOP DESKTOP DESKTOP*/
@media screen and (min-width: 1158px) {
  /* ----------------------------HEADER-------------------------------- */

  .header {
    display: flex;
    flex-shrink: 0;
    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;
    flex-shrink: 0;
  }

  .nav-list {
    display: flex;
    gap: 40px;
    flex-shrink: 0;
  }

  .nav {
    display: flex;
    align-items: center;
  }

  .item-logo {
    color: var(--color5);
  }

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

  .logo:link {
    text-decoration: none;
  }

  .navigation {
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #2e2f42;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 24px 0;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navigation:hover {
    color: #404bbf;
  }

  .navigation:focus {
    color: #404bbf;
  }

  .current-page {
    color: #404bbf;
  }

  .header-address {
    font-style: normal;
    display: flex;
  }

  .addresses {
    list-style: none;
    text-decoration: none;
    display: flex;
    gap: 40px;
    padding-left: 332px;
  }

  .address {
    font-size: 16px;
    line-height: 24px;
    color: #434455;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 24px 0;
    display: block;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .address:hover {
    color: #404bbf;
  }

  .address:focus {
    color: #404bbf;
  }

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

  .hero {
    background-color: var(--color5);
    padding-top: 188px;
    padding-bottom: 188px;
    display: flex;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/people-office1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    max-width: 1440px;
    margin: 0 auto;
  }

  @media (min-device-pixel-ratio: 2),
    (min-resolution: 192dpi),
    (min-resolution: 2dppx) {
    .hero {
      background-image: linear-gradient(
          rgba(46, 47, 66, 0.7),
          rgba(46, 47, 66, 0.7)
        ),
        url(../images/people-office1-2x.jpg);
    }
  }

  .hero-header {
    font-style: normal;
    font-weight: 700;
    font-size: 56px;
    color: #ffffff;
    line-height: 1.07;
    letter-spacing: 0.02em;
    padding-bottom: 48px;
    max-width: 496px;
    margin: 0 auto;
    text-align: center;
  }

  .button {
    font-family: "Roboto", sans-serif;
    letter-spacing: 0.04em;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    color: #ffffff;
    background: #4d5ae5;
    line-height: 1.5;
    cursor: pointer;
    min-width: 169px;
    padding: 16px 32px;
    display: block;
    margin: 0 auto;
    height: 56px;
    border: none;
    border-radius: 4px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .button:hover {
    background: #404bbf;
  }

  .button:focus {
    background: #404bbf;
  }

  /* ----------------------------Functions-------------------------------- */

  .functions-list {
    display: flex;
    gap: 24px;
  }

  .section-functions {
    padding: 120px 0;
  }

  .functions-header {
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: var(--color5);
    margin-bottom: 8px;
  }

  .functions-paragraph {
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    width: 264px;
  }

  .functions-item {
    background: var(--color3);
    width: 264px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 8px;
  }
  /* -------------------------SERVICES-------------------------------- */

  .services-header {
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: var(--color5);
    margin-bottom: 72px;
  }

  .section-services {
    padding-bottom: 120px;
  }

  .services-list {
    display: flex;
    gap: 24px;
  }

  .section-services-li {
    border: 1px solid #e7e9fc;
    width: calc((100% - 48px) / 3);
  }
  /* -------------------------TEAM-------------------------------- */

  .team-list {
    display: flex;
    gap: 24px;
  }

  .section-team-header {
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: var(--color5);
    margin-bottom: 72px;
  }

  .section-names {
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--color5);
    text-align: center;
    margin-bottom: 8px;
  }

  .section-profecions {
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin-top: 0;
    text-align: center;
  }

  .section-team {
    background: #f4f4fd;
    padding: 120px 0;
  }

  .section-team-li {
    background-color: #ffffff;
    width: 264px;
    border-radius: 0px 0px 4px 4px;
    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);
  }

  .team-names-profecions {
    padding: 32px 16px;
  }

  .team-soc-list {
    display: flex;
    justify-content: center;
    gap: 24px;
  }

  .team-soc-item {
    width: 40px;
    height: 40px;
  }

  .team-soc-link {
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 50%;
    background-color: var(--color6);
    align-items: center;
    justify-content: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .team-soc-icon {
    width: 16px;
    height: 16px;
    fill: var(--color3);
  }
  .team-soc-link:hover {
    background-color: var(--color1);
  }

  .team-soc-link:focus {
    background-color: var(--color1);
  }
  /* ----------------------------Customers-------------------------------- */
  .customers {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .customers-header {
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: var(--color5);
    margin-bottom: 72px;
  }
  .customers-list {
    display: flex;
    gap: 24px;
    justify-content: center;
  }
  .customers-link {
    width: 100%;
    height: 100%;
    border: 1px solid var(--color7);
    color: var(--color7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1),
      border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .customers-link:hover {
    color: #404bbf;
    border-color: #404bbf;
  }

  .customers-link:focus {
    color: #404bbf;
    border-color: #404bbf;
  }

  .customers-item {
    width: calc((100% - 120px) / 6);
    height: 88px;
    display: flex;
  }

  .customers-link:hover .customers-icon {
    fill: #404bbf;
  }

  .customers-icon {
    width: 104px;
    height: 56px;
    fill: currentColor;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  /* ----------------------------Footer-------------------------------- */
  .footer-container {
    display: flex;
    align-items: baseline;
  }
  .footer-second-container {
    margin-right: 120px;
  }
  .footer-p {
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    color: #f4f4fd;
    width: 264px;
    margin-bottom: 16px;
    margin-top: 0;
  }

  .footer-item-logo {
    color: #f4f4fd;
  }

  .footer {
    background: #2e2f42;
    padding: 100px 0;
  }

  .footer-logo {
    font-family: "Raleway", sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.17;
    color: #4d5ae5;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-right: 76px;
    display: inline-flex;
    text-decoration: none;
    margin-bottom: 16px;
  }
  .footer-soc-p {
    color: var(--color4);
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    margin-top: 0;
  }
  .footer-soc-list {
    display: flex;
    gap: 16px;
    align-content: center;
  }
  .footer-soc-item {
    width: 40px;
    height: 40px;
  }
  .footer-soc-link {
    width: 40px;
    height: 40px;
    background-color: var(--color6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .footer-soc-icon {
    width: 24px;
    height: 24px;
    fill: var(--color3);
  }

  .footer-soc-link:hover {
    background-color: #31d0aa;
  }

  .footer-soc-link:focus {
    background-color: #31d0aa;
  }

  .footer-form-p {
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: #ffffff;
    display: flex;
    margin-bottom: 16px;
  }

  .footer-input {
    border: 1px solid #ffffff;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.15));
    border-radius: 4px;
    background-color: transparent;
    min-width: 264px;
    height: 40px;
    color: #ffffff;
    outline: transparent;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    padding-left: 16px;
  }

  .footer-input::placeholder {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 24px;
    letter-spacing: 0.04em;
    color: #ffffff;
    padding-top: 8px;
  }

  .footer-form-button {
    background: #4d5ae5;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    min-width: 165px;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.04em;
    color: #ffffff;
    height: 40px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .footer-form-button:hover {
    background: #404bbf;
  }

  .footer-form-container {
    width: 453px;
    margin-left: 80px;
  }

  .second-form-container {
    display: flex;
  }

  .footer-button-svg {
    fill: #ffffff;
    margin-left: 16px;
  }
  .footer-form {
    display: flex;
    gap: 24px;
  }
  /* ----------------------------Portfolio-MAIN-------------------------------- */

  .portfolio-header {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.5;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--color5);
    margin-bottom: 8px;
  }

  .portfolio-p {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: var(--color2);
  }

  .main-link {
    text-decoration: none;
    max-width: 360px;
    display: block;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .main-link: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);
  }
  .main-link:focus {
    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);
  }
  /* ------------------------PORTFOLIO-FILTER--------------------------- */

  .portfolio-button {
    font-family: "Roboto", sans-serif;
    letter-spacing: 0.04em;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    color: var(--color6);
    background: var(--color3);
    line-height: 1.5;
    cursor: pointer;
    min-width: 78px;
    padding: 12px 24px 12px 24px;
    border: 1px solid #e7e9fc;
    border-radius: 4px;
    box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1), 0px 2px 1px rgba(0, 0, 0, 0.08),
      0px 2px 2px rgba(0, 0, 0, 0.12);
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1),
      background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
      border-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .portfolio-button:hover {
    color: #ffffff;
    background-color: #404bbf;
    border: 1px solid transparent;
  }

  .portfolio-button:focus {
    color: #ffffff;
    background-color: #404bbf;
    border: 1px solid transparent;
  }

  .portfolio-filter {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 72px;
  }

  .section-projects {
    padding-top: 96px;
    padding-bottom: 120px;
  }

  /* ------------------------PROJECTS--------------------------- */

  .project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    row-gap: 48px;
  }

  .projects {
    max-width: 360px;
    display: block;
    position: relative;
  }

  .main-link:hover .project-cover-text {
    transform: translateY(0);
  }

  .main-link:focus .project-cover-text {
    transform: translateY(0);
  }

  .projects-info {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
  }

  .project-cover-text {
    position: absolute;
    top: 0;
    background-color: var(--color6);
    margin: 0;
    color: var(--color3);
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    background-color: var(--color6);
    width: 296px;
    padding: 40px 32px;
    height: 100%;
    width: 100%;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .project-cover-wrap {
    position: relative;
    overflow: hidden;
  }

  /* ------------------------BACKDROP--------------------------- */

  .backdrop {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(46, 47, 66, 0.4);
    top: 0;
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
      visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 72px 24px 24px 24px;
    transform: translate(-50%, -50%);
    background-color: #fcfcfc;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12),
      0px 2px 1px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-close-button {
    background: #e7e9fc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 0;
    cursor: pointer;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
      border 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-close-button:hover {
    background-color: #404bbf;
    border: none;
  }

  .modal-close-button:hover .modal-icon {
    fill: #ffffff;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-close-button:focus {
    background: #404bbf;
    border: none;
  }

  .modal-close-button:focus .modal-icon {
    fill: #ffffff;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-form {
    margin: 0 auto;
    width: 360px;
  }

  .modal-paragraph {
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin: 0;
    text-align: center;
    margin-bottom: 16px;
  }

  .input {
    outline: transparent;
    width: 360px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    height: 40px;
    padding-left: 38px;
    background-color: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  .input:focus + .modal-form-icon {
    fill: #4d5ae5;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .label {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
    display: block;
    margin-bottom: 4px;
  }

  .comment {
    resize: none;
    width: 360px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    line-height: 1.17;
    font-size: 12px;
    height: 120px;
    letter-spacing: 0.04em;
    background-color: transparent;
    outline: transparent;
    padding: 8px 16px;
    color: rgba(46, 47, 66, 0.4);
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modal-comment-field {
    margin-bottom: 16px;
  }
  .comment::placeholder {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0.04em;
    color: rgba(46, 47, 66, 0.4);
  }

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

  .modal-privacy-text {
    display: flex;
    margin-bottom: 24px;
  }

  .privacy-link {
    color: var(--color6);
  }

  .submit-button {
    min-width: 169px;
    height: 56px;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #ffffff;
    background-color: #4d5ae5;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    border: none;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .submit-button:hover {
    background-color: #404bbf;
  }

  .user-privacy:checked + .check-text span {
    background-color: #404bbf;
    border: none;
    fill: #f4f4fd;
  }

  .checkbox-icon {
    margin: 0 auto;
  }

  .check-text {
    align-items: center;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
    margin: 0;
  }

  .checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    fill: transparent;
    margin-right: 8px;
    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-form-icon {
    fill: #2e2f42;
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    margin: 0;
  }

  .input-wrap {
    position: relative;
  }

  .modal-field {
    margin-bottom: 8px;
  }

  .mob-menu {
    display: none;
  }

  .mob-menu-open-button {
    display: none;
  }
}
