@media (max-width: 1400px) {
  .about__txt {
    font-size: 18px;
    line-height: 28px;
  }
}

@media (max-width: 1300px) {
  .header__list {
    font-size: 16px;
    line-height: 162%;
  }

  .tel--link {
    font-size: 16px;
  }

  .accordion__btn {
    justify-content: center;
    align-items: center;
    font-size: 16px;
    line-height: 150%;
  }

  .accordion__content {
    font-size: 16px;
  }

  .form--title {
    font-size: 36px;
  }

  .forms__btn {
    font-size: 16px;
  }

  .footer__links {
    font-size: 16px;
  }
}

@media (max-width: 1150px) {
  .hero {
    max-height: 400px;
  }

  .about__txt {
    font-size: 16px;
    line-height: 150%;
  }
}

@media (max-width: 1024px) {
  .page {
    overflow-x: hidden;
  }

  .header {
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
  }

  .header__wrapper {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .logo--link {
    margin-right: auto;
  }

  .tel--link {
    margin-right: 25px;
  }

  .header__nav {
    --header-height: 86px;
    position: fixed;
    right: 0;
    top: var(--header-height);
    z-index: 1;
    overflow-y: auto;
    padding: 20px 20px 15px 40px;
    max-width: 170px;
    height: calc(100vh + var(--header-height));
    background-color: #e9d3bb;
    border-radius: 0px 0px 5px 5px;
    transform: translateX(100%);
  }

  .header__nav--visible {
    transform: none;
  }

  .header__list {
    flex-direction: column;
  }

  .header__item {
    font-weight: 700;
    font-size: 16px;
    line-height: 120%;
  }

  .header__item:not(:last-child) {
    margin-bottom: 20px;
  }

  .burger {
    position: relative;
    width: 30px;
    height: 23px;
    display: block;
    border: none;
    padding: 0;
    background-color: transparent;
    cursor: pointer;
  }

  .burger__line {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 4px;
    background-color: #466313;
    border-radius: 2px;
    transform: translateY(-50%);
    transition: opacity 0.3s ease-in-out;
  }

  .burger::before,
  .burger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #466313;
    border-radius: 2px;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out,
      bottom 0.3s ease-in-out;
  }

  .burger::before {
    top: 0;
  }

  .burger::after {
    bottom: 0;
  }

  .burger--active .burger__line {
    opacity: 0;
  }

  .burger--active::before {
    top: 50%;
    transform: rotate(45deg);
  }

  .burger--active::after {
    bottom: auto;
    top: 50%;
    transform: rotate(-45deg);
  }

  .stop-scroll {
    overflow: hidden;
  }

  .hero {
    max-height: 100%;
  }

  .hero__wrapper {
    min-height: 315px;
  }

  .hero__title {
    margin-bottom: 32px;
    font-size: 38px;
  }

  .hero__link {
    width: 275px;
    height: 60px;
  }

  .works {
    padding: 40px 0 20px;
  }

  .works__slider-card-content {
    padding: 24px;
  }

  .works__slider-card-title {
    max-width: 350px;
    font-size: 22px;
  }

  .works__slider-button {
    width: 42px;
    height: 42px;
    top: calc(50% - 21px);
  }

  .works__slider-button svg {
    width: 12px;
  }

  .services {
    padding: 20px 0;
  }

  .about {
    padding: 20px 0 40px;
  }

  .about__wrapper {
    flex-direction: column;
    align-items: flex-start;
    max-height: 100%;
  }

  .about__img {
    margin-bottom: 20px;
    max-height: 305px;
  }

  .about--image {
    object-fit: cover;
  }

  .about__content {
    padding: 20px 30px;
    flex-basis: 100%;
  }

  .about__txt:not(:last-child) {
    margin-bottom: 3%;
  }

  .accordion__btn svg,
  .accordion__btn:hover:not(:focus-visible) svg {
    transform: translateY(-2px);
  }

  .btn-name1,
  .btn-name2 {
    margin-right: 10px;
  }
}

@media (max-width: 920px) {
  .works__slider-card {
    width: 100%;
    height: 60vh;

    border-radius: 5px;
  }

  .section-title {
    margin-bottom: 20px;
    font-size: 28px;
  }

  .services__lst {
    flex-direction: column;
  }

  .services__item:not(:last-child) {
    margin-bottom: 3%;
  }

  .service__img {
    display: flex;
    max-height: 300px;
  }

  .service--img {
    object-fit: cover;
  }

  .item-wrapper {
    padding: 15px;
  }

  .item--low {
    max-height: 317px;
  }

  .form {
    max-width: 28%;
  }

  .forms__btn {
    padding: 8% 10%;
    font-size: 0.55rem;
  }

  .footer__wrapper {
    padding: 1% 0 1.4%;
  }

  .footer--logo2 {
    max-width: 14%;
  }
}

@media (max-width: 768px) {
  .works__slider-card {
    height: 75vh;
  }

  .form {
    max-width: 35%;
  }
}

@media (max-width: 651px) {
  .section-title {
    margin-bottom: 2.5%;
    font-size: 24px;
  }

  .hero {
    max-height: unset;
    min-height: unset;
  }

  .hero__wrapper {
    min-height: 200px;
  }

  .hero__title {
    margin-bottom: 16px;
    font-size: 28px;
  }

  .hero__link {
    width: 190px;
    height: 45px;
    font-size: 20px;
  }

  .form--title {
    font-size: 1.2rem;
  }

  .form {
    max-width: 40%;
  }

  .footer__wrapper {
    padding: 1% 0 1.4%;
    max-height: 75px;
  }

  .footer--logo2 {
    max-width: 17%;
    transform: translateY(10%);
  }
}

@media (max-width: 567px) {
  .header__wrapper {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .header__nav {
    --header-height: 61px;
  }

  .tel--link {
    margin-right: 3%;
  }

  .about {
    padding-top: 30px;
    padding-bottom: 15px;
  }

  .services {
    padding-top: 15px;
    padding-bottom: 30px;
  }

  .accordion__content {
    font-size: 14px;
  }

  .form__wrapper {
    padding: 40px 30px;
  }

  .form {
    max-width: 47%;
  }
}

@media (max-width: 492px) {
  .tel--link {
    display: none;
  }

  .item-wrapper {
    padding-top: 30px;
  }

  .accordion--active .item-wrapper {
    padding-top: 20px;
  }

  .item--long {
    padding-top: 50px;
  }

  .item--low {
    max-height: 500px;
  }

  .btn--long {
    flex-basis: 60%;
  }

  .accordion__content {
    max-width: 100%;
  }

  .accordion--active .accordion__content {
    padding: 20px 10px;
  }

  .form__wrapper {
    padding: 40px 10px;
  }

  .form--title {
    margin-bottom: 6%;
  }

  .form {
    min-width: 100%;
  }

  .forms__btn {
    padding: 4% 6%;
  }

  .footer__wrapper {
    padding: 2%;
    max-height: 200px;
    flex-direction: column;
  }

  .footer__logo {
    flex-direction: column-reverse;
    align-items: center;
  }

  .footer--logo1 {
    margin-bottom: 2.5%;
    max-width: 20%;
  }

  .footer--logo2 {
    max-height: 35px;
    transform: translateY(0);
  }

  .footer__content {
    align-items: center;
    justify-content: center;
  }

  .footer__links {
    font-size: 18px;
  }
}

@media (max-width: 409px) {
  .hero__title {
    margin-bottom: 16px;
    font-size: 22px;
  }
}

@media (max-width: 390px) {
  .btn--long {
    flex-basis: 70%;
  }
}

@media (max-width: 340px) {
  .btn--long {
    flex-basis: 80%;
  }
}
