@media screen and (min-width: 768px) {
  .container {
    max-width: 768px;
  }
  @media screen and (min-width: 768px) {
    .container-tablet {
      max-width: 584px;
    }
  }
  /*============================HEADER===========*/
  .list-nav {
    font-weight: 500;
    font-size: var(--primary-font-size);
    display: flex;
    margin-left: 123px;
    gap: 40px;
  }

  .link-active {
    font-size: 12px;
    transition: var(--transition-duration-function);
    position: relative;
    color: #2e2f42;
  }

  .e-mail-header {
    margin-bottom: 6px;
  }

  .link-contact {
    color: #434455;
  }

  .link-active:hover,
  .link-active:focus {
    color: #404bbf;
  }

  .page-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-container {
    display: flex;
  }

  .list-address {
    display: block;
    margin: auto;
  }
  .page-underline::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    left: 0px;
    bottom: -42px;
    position: absolute;
    background: #404bbf;
    border-radius: 2px;
  }
  /*============================MAIN SECTION===========*/
  .main-title {
    font-size: 56px;
    margin-bottom: 40px;
    max-width: 496px;
  }

  .main-section {
    padding-bottom: 108px;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url('../images/peopleoffice-tablet1x.jpg');
  }
  @media (min-device-pixel-ratio: 2),
    (min-resolution: 192dpi),
    (min-resolution: 2dppx) {
    .main-section {
      background-image: linear-gradient(
          rgba(46, 47, 66, 0.7),
          rgba(46, 47, 66, 0.7)
        ),
        url('../images/peopleoffice-tablet2x.jpg');
    }
  }
  /*============================ADVANTAGE===========*/
  .advantage-container > .advantage-list {
    width: calc((100% - 32px) / 2);
    margin-bottom: 0;
    max-width: 356px;
  }
  .advantage-container {
    display: flex;
    flex-wrap: wrap;
    row-gap: 72px;
  }

  /*============================ABOUT US===========*/
  /*============================OUR COMMAND===========*/
  .our-command {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0;
  }

  .command-description {
    width: calc((100% - 32px) / 2);
    width: 264px;
    height: 428px;
  }

  .command-section {
    padding-bottom: 104px;
  }
  /*============================CUSTOMERS===========*/
  .customers-item {
    width: calc((100% - 32px) / 2);
    width: 168px;
    height: 88px;
  }
  .customers-list {
    column-gap: 24px;
    justify-content: center;
  }
  /*============================FOOTER===========*/

  .footer-tablet-section {
    display: flex;
  }
  .footer-form {
    display: flex;
  }
  .footer-suptitle {
    margin-top: 0;
  }
  .footer-soc-section {
    margin-left: 24px;
  }
  .footer-suptitle {
    text-align: start;
  }
  .footer-subscribe {
    align-items: center;
    text-align: center;
    margin-top: 72px;
  }
  .footer-form-input {
    width: 264px;
    margin-bottom: 0;
  }
  .footer-form-btn {
    margin-left: 24px;
    margin-top: 0;
    margin-bottom: 0;
  }
  /*============================MODAL===========*/
  .modal {
    width: 408px;
  }
  /*============================GALLERY-PORTFOLIO===========*/
  .gallery-container {
    display: flex;
    row-gap: 72px;
  }

  .gallery-list {
    width: calc((100% - 30px) / 2);
  }

  .list-btn-container {
    justify-content: center;
  }

  .navigation-section-btn {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .gallery-section {
    padding-top: 0px;
    padding-bottom: 96px;
  }
}
