@media (max-width: 1250px) {
  #offer .offer-content .offer-box {
    flex: 0 0 calc(50% - 60px);
    max-width: 50%;
  }
}

@media (max-width: 1200px) {
  #slider .slider-content {
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 25px 0;
  }

  #slider .slider-content .boxes {
    order: 2;
    flex-direction: row;
    flex: unset;
    width: 100%;
    max-width: unset;
    align-items: end;
    gap: 0 20px;
  }

  #slider .slider-content .boxes .box {
    width: calc(100% / 4);
    height: 125px;
  }

  #slider .slider-content .text-slider {
    order: 1;
    flex: unset;
    max-width: unset;
    width: 100%;
  }
}

@media (max-width: 1100px) {
  #slider .slider-content .boxes .box .title-box h2 {
    font-size: 14px;
    line-height: 15px;
  }

  #gallery-page .gallery-content ul > li {
    display: flex;
    flex: 0 0 calc(33% - 12px);
    max-width: 33.33%;
  }

  #offer-page #text-photo-offer {
    flex-direction: column;
  }

  #offer-page #text-photo-offer.left .photo-offer,
  #offer-page #text-photo-offer.right .photo-offer {
    order: 1;
    width: 100%;
    padding: 0;
    height: 250px;
  }

  #offer-page #text-photo-offer.left .text-offer,
  #offer-page #text-photo-offer.right .text-offer {
    order: 2;
    width: 100%;
    padding: 0;
  }
}

@media (max-width: 1050px) {
  #header {
    justify-content: unset;
  }

  #header .left-site-header {
    gap: unset;
  }

  #header .left-site-header .phone-number {
    display: none;
  }

  #header .center-header {
    position: relative;
    width: calc(100% - 100px);
    justify-content: center;
  }

  #header .right-side-header {
    display: none;
  }

  #menu-list .contact {
    display: flex;
  }

  #training .text-photo-offer .text-offer {
    display: flex;
    width: calc(60% - 25px);
    padding: 0 25px 0 0;
  }
  
  #training .text-photo-offer.left .photo-offer {
    display: flex;
    width: calc(40% - 25px);
    padding: 0 25px 0 0;
  }
}

@media (max-width: 1024px) {
  #slider__page .slider-content .text-slider {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .team-members .team-member {
    flex: 0 0 calc(50% - 24px);
    max-width: 50%;
  }
}

@media (max-width: 1000px) {
  #footer .top {
    flex-wrap: wrap;
  }

  #footer .top .column {
    flex: 0 0 calc(50% - 50px);
    max-width: 50%;
  }
}

@media (max-width: 1000px) {
  #contact .contact-content {
    gap: 0 20px;
  }

  #contact .contact-content .left-contact {
    width: 35%;
  }

  #contact .contact-content .right-contact {
    width: calc(65% - 50px);
    padding: 25px;
    justify-content: space-around;
  }
}

@media (max-width: 950px) {
  #for-who .boxes {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 25px 0;
  }

  #for-who .boxes .box {
    flex: 0 0 100%;
    max-width: 100%;
    justify-content: center;
  }

  #why-us .advantages {
    flex-wrap: wrap;
    align-items: center;
    gap: 50px 40px;
  }

  #why-us .advantages .advantage {
    flex: 0 0 calc(50% - 20px);
    max-width: 50%;
  }

  #training .text-photo-offer {
    flex-direction: column;
    gap: 25px 0;
    margin: unset;
  }

  #training .text-photo-offer .text-offer {
    width: 100%;
    padding: 0;
  }

  #training .text-photo-offer.left .photo-offer {
    width: 100%;
    padding: 0;
  }
}

@media (max-width: 900px) {
  #slider .slider-content .boxes {
    flex-wrap: wrap;
    gap: 20px;
  }

  #slider .slider-content .boxes .box {
    flex: 0 0 33%;
    max-width: 33.33%;
  }

  #about-company .photos {
    flex-direction: column;
    gap: 50px 0;
    justify-content: center;
    align-items: center;
  }

  #about-company .photos .photo {
    flex: unset;
    width: 50%;
    max-width: 50%;
  }

  #about-company .photos .photo#middle {
    top: unset;
  }

  #about-company .button {
    margin: 50px 0 25px;
  }

  #opinions .opinions-navigation {
    display: flex;
  }

  #opinions .opinions-content .opinion {
    flex: 0 0 calc(50% - 7px);
    max-width: 50%;
  }
}

@media (max-width: 775px) {
  #contact .contact-content {
    flex-direction: column;
  }

  #contact .contact-content .left-contact {
    width: calc(100% - 50px);
    align-items: center;
    gap: 25px 0;
  }

  #contact .contact-content .left-contact .company-data {
    align-items: center;
  }

  #contact .contact-content .right-contact {
    width: calc(100% - 50px);
    gap: 25px 0;
  }

  .contact-button {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  #contact-page.units .contact-content {
    flex-direction: column;
  }

  #contact-page.units .contact-content .left-contact {
    width: calc(100% - 50px);
    gap: 25px;
  }

  #contact-page.units .contact-content .right-contact {
    width: 100%;
  }
}

@media (max-width: 750px) {
  #menu-list .menu ul {
    flex-direction: column;
    gap: 20px 0;
  }

  #gallery-page .gallery-content ul > li {
    display: flex;
    flex: 0 0 calc(50% - 12px);
    max-width: 50%;
  }
}

@media (max-width: 650px) {
  #about-company .photos .photo {
    flex: unset;
    width: 100%;
    max-width: 100%;
  }

  #why-us .advantages .advantage {
    flex: unset;
    width: 100%;
    max-width: 100%;
  }

  #opinions .opinions-content .opinion {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #offer .offer-content .offer-box {
    flex: unset;
    max-width: 100%;
  }

  #contact .contact-content {
    flex-direction: column;
  }

  #contact .contact-content .company-data {
    width: calc(100% - 50px);
    gap: 50px 0;
  }

  #contact .contact-content .company-data .top-data {
    align-items: center;
  }

  #contact .contact-content .company-data .bottom-data {
    align-items: center;
  }

  #contact .contact-content .company-map {
    width: calc(100% - 2px);
    height: 250px;
  }

  #footer .top {
    justify-content: center;
  }

  #footer .top .column {
    flex: 0 0 calc(100% - 50px);
    max-width: 100%;
    justify-content: center;
    text-align: center;
  }

  #footer .top .column#adress .social-buttons {
    justify-content: center;
  }

  #footer .top .column#buttons .company-contact .phone-number,
  #footer .top .column#buttons .company-contact .email-adress {
    justify-content: center;
  }

  #footer .top .column#menu-1 {
    order: 1;
  }

  #footer .top .column#button {
    order: 2;
  }

  #footer .top .column#buttons {
    order: 3;
  }

  #footer .top .column#adress {
    order: 4;
  }
}

@media (max-width: 640px) {
  .team-members .team-member {
    flex: 0 0 calc(100% - 16px);
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  #header .center-header {
    width: 100%;
    justify-content: end;
  }

  #header .center-header .logo,
  #header .center-header .logo svg {
    width: 275px;
  }
}

@media (max-width: 550px) {
  #contact .contact-content .right-contact .bottom-contact-form {
    flex-direction: column;
    gap: 15px 0;
    align-items: center;
  }

  #contact .contact-content .right-contact .bottom-contact-form .accept {
    width: 100%;
  }

  #contact .contact-content .right-contact .bottom-contact-form .send {
    width: 100%;
  }

  #contact-page .contact-content .right-contact .top-contact-form .customer-data .wpcf7-form-control-wrap{
    flex: unset;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  #slider .slider-content .boxes .box .title-box h2 {
    font-size: 12px;
    line-height: 20px;
  }

  #slider .slider-content .boxes .box .button svg {
    width: 30px;
    height: 30px;
  }

  #footer .bottom .info {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 450px) {
  .container {
    width: calc(100% - 30px);
    padding: 15px;
  }

  #slider .slider-content {
    width: calc(100% - 30px);
    height: calc(800px - 30px);
    padding: 15px;
  }

  #slider .slider-content .boxes {
    gap: 10px;
  }

  #slider .slider-content .text-slider .title h1 {
    font-size: 28px;
  }

  #slider .slider-content .text-slider .description p {
    font-size: 12px;
  }

  #gallery-page .gallery-content ul > li {
    display: flex;
    flex: 0 0 calc(100% - 12px);
    max-width: 100%;
  }

  .team-members .team-member .photo {
    height: 300px;
  }
}

@media (max-width: 400px) {
  #header .center-header .logo,
  #header .center-header .logo svg {
    width: 250px;
  }
}

@media (max-width: 375px) {
  #header .center-header .logo,
  #header .center-header .logo svg {
    width: 225px;
  }
}

@media (max-width: 325px) {
  .container {
    width: calc(100% - 20px);
    padding: 10px;
  }

  #slider .slider-content {
    width: calc(100% - 20px);
    height: calc(800px - 20px);
    padding: 10px;
  }
}
