
    /* ================= MOBILE ================= */

@media (max-width: 768px) {
html, body {
  overflow-x: hidden;
}
      .nav,
      .phones,
      .btn--header {
        display: none;
      }
      .hero {
        height: auto;
        padding: 12px 0 48px;
        padding-top: 80px;
        background:
          linear-gradient(
            180deg,
            rgba(21,74,156,.95) 0%,
            rgba(21,74,156,.85) 100%
          ),
          url('./hero.jpg') center / cover no-repeat;
      }

      .hero__content {
        position: static;
        width: 100%;
        padding: 0 16px;
         left: auto;
    top: auto;
    transform: none;
      }

      .hero__title-main {
        font-size: 32px;
        white-space: normal;
      }

      .hero__title-sub {
        font-size: 28px;
      }

      .hero__text {
        font-size: 15px;
        line-height: 1.45;
        max-width: 100%;
      }

      .hero__features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px 24px;
      }

      .hero__feature {
        font-size: 14px;
        white-space: normal;
      }

      .hero .btn {
        width: 100%;
      }
      .services {
  padding: 64px 0;
}

.services__container {
  width: 100%;
  padding: 0 16px;
}

.services__title {
  font-size: 26px;
}

.services__subtitle {
  font-size: 14px;
  margin-bottom: 32px;
}

.services__grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  padding: 24px 20px;
}

.services__footer {
 display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
}
.services__footer-line {
  display: block;
  text-align: center;
}
.why {
  padding: 72px 0 64px;
}

.why__container {
  width: 100%;
  padding: 0 16px;
}

.why__title {
  font-size: 26px;
}

.why__subtitle {
  font-size: 14px;
  margin-bottom: 32px;
}

.why__cards {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

.why-card {
  padding: 24px 20px;
}

.why__stats {
  grid-template-columns: 1fr;
  gap: 20px;
}

.why-stat__value {
  font-size: 24px;
}
.portfolio {
    padding: 64px 0;
  }

  .portfolio__container {
    width: 100%;
    padding: 0 16px;
  }

  .portfolio__title {
    font-size: 26px;
  }

  .portfolio__subtitle {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .portfolio__slide {
   width: 100%;
  }

  .portfolio__arrow {
    display: none;
  }
   .portfolio__dots {
     display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }
  .portfolio__track-wrapper {
  touch-action: pan-y;
}
   .about {
    padding: 64px 0;
  }

  .about__container {
    max-width: 100%;     /* как в макете */
    padding: 0 10px;
  }

  /* ===== БЕЙДЖ ===== */

  .about__badge-wrap {
    margin-bottom: 24px;
  }

  /* ===== GRID ===== */

  .about__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* порядок элементов */
  .about__content {
    order: 1;
  }
  .about__image {
    order: 2;
  }

  /* ===== TITLE ===== */

  .about__title {
    font-size: 22px;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 16px;
  }

  /* ===== TEXT ===== */

  .about__text-block {
    margin-bottom: 24px;
  }

  .about__text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  /* ===== LIST ===== */

  .about__list {
    gap: 14px;
    margin-bottom: 24px;
  }

  .about__item {
    font-size: 14px;
    line-height: 1.4;
    align-items: flex-start;
  }

  .about__icon {
    margin-top: 2px;
  }

  /* ===== BUTTON ===== */

  .about .btn {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    font-size: 15px;
    margin-bottom: 0px;
  }

  /* ===== IMAGE ===== */

  .about__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  .reviews {
  padding: 64px 0;
}

.reviews__slider {
  overflow: visible; /* ← ВАЖНО */
}
  .reviews__viewport {
    overflow: hidden;
    padding-left : 50px;
  }
    .reviews__track {
    display: flex;
    gap: 18px;
  }
.review {
  position: relative;
  overflow: visible;
}

.review__icon {
  position: absolute;
  top: -22px;
  left: 16px;          /* 👈 как на макете */
  z-index: 3;
}

.review__stars {
  position: static;
  margin-bottom: 12px;
}

.review__text {
  font-size: 13px;
  margin-bottom: 24px;
}

.reviews__nav {
  display: none;
}

.reviews__dots {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.reviews__container {
  max-width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

.contacts {
  padding: 64px 0;
}

.contacts__content {
  grid-template-columns: 1fr;
}

.contacts__subtitle {
  font-size: 13px;
}

.contacts__form {
  padding: 24px;
}

 .contacts__map {
    margin-top: 24px;
  }

  .map-placeholder,
  .map {
    height: 220px;
    border-radius: 12px;
  }

.footer__container {
    grid-template-columns: 1fr;
    padding: 40px 16px 24px;

  }

  .footer__nav,
  .footer__contacts {
    justify-self: start;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }

/* Мобильное меню - общие стили */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
right: 0;
  width: auto;
  background: #fff;
  z-index: 1000;

  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: 0.25s ease;

  display: flex;
  flex-direction: column;
}

.mobile-menu--phone {
  height: 192px;
}
.mobile-menu--nav {
  height: 392px;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu__content {
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.mobile-menu__nav {
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu__nav a {
  font-size: 18px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-menu__nav a:hover {
  color: #1B378B;
}

.mobile-menu__footer {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border-top: none;
}
.mobile-menu--nav .mobile-phone {
  display: none;
}


/* Телефоны в меню */
.mobile-phone {
  font-size: 20px;        /* больше */
  font-weight: 600;
  line-height: 24px;
  color: #1B378B;
  text-decoration: none;
  display: block;
}
.mobile-menu--phone .mobile-phone + .mobile-phone {
  margin-top: 12px;
}
.mobile-phone:hover {
  color: #0f2a6d;
}

/* Кнопки в меню */
.mobile-menu--nav .btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;

  width: 180px;
  height: 44px;

  padding: 11px 28px;

  background: #FF6900;
  border-radius: 8px;

  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  color: #fff;

  margin: 2px auto 0; /* центрирование под "Контакты" */

  flex: none;
}

.mobile-menu .btn:hover {
  background: #0f2a6d;
}

.btn--calculation {
  background: #fff;
  color: #1B378B;
  border: 2px solid #1B378B;
}

.btn--calculation:hover {
  background: #1B378B;
  color: white;
}

/* Состояния хедера при открытом меню */


.mobile-menu--phone .mobile-menu__content {
 padding-top: 20px;
  padding-bottom: 24px;
  gap: 16px;
}
.mobile-menu--nav .mobile-menu__nav {
  padding-bottom: 20px;
}
.mobile-menu--nav .mobile-menu__nav a {
  font-size: 18px;
  font-weight: 500;
}

.mobile-menu--nav .mobile-menu__footer {
  margin-top: 16px;
  padding: 0;
  display: flex;
  justify-content: center;
}
.mobile-menu__header h3 {
  display: none;
}

.mobile-menu--phone .btn {
  width: 180px;
  height: 44px;

  padding: 11px 28px;
  border-radius: 8px;

  background: #FF6900;
  color: #fff;

  font-size: 14px;
  font-weight: 600;
  line-height: 22px;

  display: flex;
  align-items: center;
  justify-content: center;
   margin-top: 15px;
}

.menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.header {
    height: 64px;
  position: fixed;
  z-index: 1000;
  background: #e9edf5;
  padding: 0;
}

.header__inner {
  display: flex;
  align-items: center;

  height: 64px;
  padding: 0 12px;
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.logo svg,
.logo img {
  max-height: 32px;
}

.logo__sub {
  font-size: 13px;
  color: #6b6b6b;
  white-space: nowrap;
}
.header__right {
  display: flex;
  align-items: center;
}

.header__icons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__icon {
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}
/* по умолчанию */
.header__icon--close {
  display: none;
}

/* когда меню открыто */
body.menu-open .header__icon--burger {
  display: none;
}

body.menu-open .header__icon--close {
  display: flex;
}

}


/* Для десктопа скрываем мобильное меню */
@media (max-width: 768px) {
  .thanks {
    width: 360px;
    height: 420px;
    margin: 0 auto;
  }

  .thanks-png {
   width: 100%;
    height: 100%;
    background-size: cover;         
    background-position: center top; 
    background-repeat: no-repeat;
  }

  .thanks__content {
    padding: 200px 16px 0;
    text-align: left;
    max-width: 100%;
  }

  .thanks__content h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .thanks__subtitle {
    font-size: 60px;
    line-height: 1.2;
  }

  .thanks__btn {
    width: 100%;
    height: 44px;
    font-size: 14px;
  }
}

  @media (max-width: 480px) {
  .callback-modal__box {
    margin: 0 16px;
    padding: 24px 20px 28px;
  }

  .callback-modal__title {
    font-size: 20px;
  }
}
  @media (max-width: 480px) {
  .calc-modal__box {
    margin: 0 16px;
    padding: 24px 20px 28px;
  }

  .calc-modal__title {
    font-size: 20px;
  }
}
@media (max-width: 768px) {
  .thanks__btn {
    min-width: 180px;
    height: 44px;
    padding: 0 32px;
    font-size: 14px;     /* 👈 адаптация под мобилу */
  }
}

@media (max-width: 768px) {
  .thanks__content h1 {
    font-size: 32px;
  }

  .thanks__subtitle {
    font-size: 16px;
  }
}
@media (max-width: 768px) {
      .policy-title {
        font-size: 22px;
      }

      .policy-container {
        padding: 0 10px;
      }
    }
@media (max-width: 768px) {
      .cookie-title {
        font-size: 22px;
      }

      .cookie-container {
        padding: 0 10px;
      }
    }
    @media (max-width: 768px) {
  .map--mobile-shift {
    position: relative;
    overflow: hidden;
  }

  .map--mobile-shift iframe {
    position: absolute;
    top: -10px;       
    left: -10px;
    width: 100%;
    height: calc(100% + 80px);
  }
}
    *, *::before, *::after {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  /* Сброс всех возможных причин */
  html, body {
    width: 100% ;
    overflow-x: hidden ;
    position: relative;
  }
  
img, video, iframe {
  max-width: 100%;
}
}

.container,
.services__container,
.why__container,
.portfolio__container,
.about__container,
.contacts__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.badge,
/* FIX иконок услуг */
.service-card__icon {
  width: 44px ;
  height: 44px ;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 44px;
  height: 44px;
  display: block;
}
.services__badge {
  display: inline-flex;
  width: auto ;
  max-width: max-content;
  padding: 8px 16px;
  border-radius: 999px;
  box-sizing: border-box;
}
.why__badge {
  display: inline-flex;
  width: auto ;
  max-width: max-content;
}
/* FIX иконок в блоке WHY — как в services */
.why-card__icon {
  width: 44px ;
  height: 44px ;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
  box-sizing: border-box;
}

.why-card__icon svg {
  width: 44px;
  height: 44px;
  display: block;
}
.portfolio__badge {
  display: inline-flex;
  width: auto ;
  max-width: max-content;
  padding: 8px 16px;
  border-radius: 999px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .reviews,
  .reviews * {
    overflow: visible ;
  }
.review {
    position: relative;
  }
  

  .review__icon {
    position: absolute;
    top: -22px;
    left :-5px;
    right: auto;
    transform: none;
    z-index: 5;
  }
   .reviews__subtitle {
    white-space: normal !important ;   /* ✅ разрешаем перенос */
    overflow: visible ;     /* ✅ ничего не обрезаем */
    text-overflow: unset ;
    
    max-width: 100%;
    width: 100%;

    line-height: 1.4;
    text-align: center;
    word-break: break-word;
  }
   .reviews__badge {
    display: inline-flex ;
    width: auto ;
    max-width: max-content ;
    padding: 8px 16px;
    border-radius: 999px;
    white-space: nowrap;
  }
}
@media (max-width: 768px) {
  .contact-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .contact-card__icon {
    width: 44px ;
    height: 44px ;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    box-sizing: border-box;
  }

  .contact-card__icon svg {
    width: 44px;
    height: 44px;
    display: block;
  }
}
@media (max-width: 768px) {

  .footer__phones a,
  .footer__email {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    display: block;
  }
}

