html { scroll-behavior: smooth; }
    body {
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: linear-gradient(180deg, #fbfcff 0%, #f3f7fc 100%);
      color: #0f172a;
    }
    .reveal {
      opacity: 0;
      transform: translateY(26px);
      transition: opacity .7s ease, transform .7s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .glass {
      background: rgba(255,255,255,.07);
      backdrop-filter: blur(18px);
    }
    .hero-grid {
      background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
      background-size: 56px 56px;
    }
    .service-details {
      max-height: 0;
      overflow: hidden;
      transition: max-height .35s ease;
    }
    .service-card.open .service-details {
      max-height: 620px;
    }
    .service-card.open .chevron {
      transform: rotate(180deg);
    }

    .brand-logo {
      display: block;
      width: 100%;
      height: auto;
      object-fit: contain;
    }
    .header-logo-wrap {
      width: 210px;
      max-width: 56vw;
    }
    .soft-card {
      background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,253,0.98) 100%);
    }
    .section-light-blue {
      background: linear-gradient(180deg, #fbfcff 0%, #f2f6fc 100%);
    }
    .section-light-neutral {
      background: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);
    }
    .section-light-warm {
      background: linear-gradient(180deg, #fffdfa 0%, #f7f2e8 100%);
    }
    .premium-mark {
      width: 14px;
      height: 14px;
      border: 2px solid rgba(245, 196, 81, 0.95);
      border-radius: 9999px;
      box-shadow: inset 0 0 0 3px rgba(245,196,81,0.15);
    }
    .premium-mark-light {
      width: 12px;
      height: 12px;
      border: 2px solid rgba(183, 121, 31, 0.95);
      border-radius: 9999px;
      box-shadow: inset 0 0 0 3px rgba(212,175,55,0.12);
    }
    .hero-logo-card {
      background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.045));
      border: 1px solid rgba(245,196,81,.28);
      box-shadow: 0 28px 90px rgba(0,0,0,.28);
    }
    .team-card {
      background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
    }
    .team-photo {
      object-position: center top;
    }

    .premium-mark,
    .premium-mark-light {
      display: inline-block;
      flex: 0 0 auto;
      min-width: 14px;
      min-height: 14px;
      aspect-ratio: 1 / 1;
      box-sizing: border-box;
    }
    .premium-mark-light {
      min-width: 12px;
      min-height: 12px;
    }

    .section-divider {
      width: 150px;
      height: 2px;
      margin: 14px auto 0;
      border-radius: 9999px;
      background: linear-gradient(90deg, rgba(245,196,81,0) 0%, rgba(245,196,81,.95) 18%, rgba(245,196,81,.95) 82%, rgba(245,196,81,0) 100%);
    }
    .section-divider.left {
      margin-left: 0;
      margin-right: 0;
    }

    .hero-stat-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      max-width: 760px;
    }
    .hero-stat-card {
      min-height: 112px;
      padding: 22px 24px;
      border-radius: 1.6rem;
      border: 1px solid rgba(255,255,255,.14);
      background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.07) 100%);
      backdrop-filter: blur(16px);
      box-shadow: 0 18px 48px rgba(0,0,0,.12);
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .hero-stat-card .stat-icon {
      width: 34px;
      height: 34px;
      border-radius: 9999px;
      border: 1px solid rgba(245,196,81,.45);
      background: rgba(245,196,81,.08);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
    }
    .hero-stat-card .stat-icon .premium-mark {
      width: 12px;
      height: 12px;
      min-width: 12px;
      min-height: 12px;
    }
    .hero-stat-card .stat-text {
      font-size: 1.02rem;
      line-height: 1.55rem;
      font-weight: 600;
      color: white;
      text-wrap: balance;
    }

    
    .accent-rail {
      position: relative;
      height: 18px;
      margin-bottom: 24px;
    }
    .accent-rail::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 50%;
      height: 2px;
      transform: translateY(-50%);
      border-radius: 9999px;
      background: linear-gradient(90deg, rgba(183,121,31,.22) 0%, rgba(183,121,31,.42) 100%);
    }
    .accent-rail::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 50%;
      width: 18px;
      height: 18px;
      transform: translate(-50%, -50%);
      border: 2px solid rgba(183,121,31,.92);
      border-radius: 9999px;
      background: #ffffff;
      box-shadow: 0 0 0 4px rgba(245,196,81,.10);
      box-sizing: border-box;
    }


    .soft-icon-box {
      background: linear-gradient(180deg, #fffdfa 0%, #f6efe4 100%);
      border: 1px solid rgba(183,121,31,.18);
      box-shadow: 0 10px 24px rgba(15,23,42,.06);
    }

    @media (max-width: 1024px) {
      .hero-stat-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
      }
      .hero-stat-card {
        min-height: 96px;
      }
    }

    @media (max-width: 640px) {
      .header-logo-wrap { width: 176px; }
      .hero-logo-card { padding: 14px; }
    }


/* ---------- Надежность отображения: контент не зависит от JS ---------- */
.reveal,
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Форма: темный ввод на светлом фоне ---------- */
.lead-form-fix {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.lead-form-grid {
  min-width: 0;
}
.lead-field {
  width: 100%;
  min-width: 0;
  color: #0f172a !important;
  caret-color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background-color: #f8fafc !important;
}
.lead-field::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #64748b !important;
}
select.lead-field,
select.lead-field option {
  color: #0f172a !important;
  background: #ffffff !important;
  -webkit-text-fill-color: #0f172a !important;
}
textarea.lead-field {
  resize: vertical;
}
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
#submitButton:disabled {
  opacity: .65;
  cursor: wait;
}

/* Кнопки прогрессивного раскрытия используются только на мобильных. */
.team-mobile-toggle,
.about-more-toggle {
  display: none;
}

@media (max-width: 767px) {
  html, body { overflow-x: hidden; }
  body { font-size: 16px; }

  /* Шапка */
  header > div:first-child {
    height: 72px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .header-logo-wrap {
    width: 150px !important;
    max-width: 58vw !important;
  }
  #menuButton {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
  }

  /* Первый экран: не меняем концепцию, только убираем лишнее дублирование. */
  .hero-section-stable {
    padding-top: 94px !important;
  }
  .hero-inner-stable {
    gap: 28px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: 48px !important;
  }
  .hero-logo-duplicate {
    display: none !important;
  }
  .hero-section-stable h1 {
    font-size: clamp(2.05rem, 10.4vw, 3rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -.035em !important;
  }
  .hero-section-stable h1 + p {
    margin-top: 18px !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
  .hero-section-stable .mt-8.flex {
    margin-top: 24px !important;
  }
  .hero-section-stable .mt-8.flex > a:first-child {
    width: 100%;
    min-height: 52px;
  }
  .hero-secondary-cta {
    display: none !important;
  }
  .hero-section-stable img[alt*="Руководители"] {
    height: 410px !important;
    object-position: center 22% !important;
  }
  .hero-section-stable .absolute.bottom-5 {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  /* Ключевые преимущества первого экрана: 2x2 вместо длинной колонки. */
  .hero-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    max-width: 100% !important;
  }
  .hero-stat-card {
    min-height: 92px !important;
    padding: 14px 12px !important;
    border-radius: 18px !important;
    gap: 9px !important;
  }
  .hero-stat-card .stat-icon {
    width: 28px !important;
    height: 28px !important;
  }
  .hero-stat-card .stat-text {
    font-size: .82rem !important;
    line-height: 1.25rem !important;
  }

  /* Общий вертикальный ритм */
  section.py-20,
  section.md\:py-28 {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }
  section > .mx-auto {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .section-divider {
    width: 120px !important;
  }
  #advantages .section-divider.left,
  #about .section-divider.left,
  #contacts .section-divider.left {
    margin-left: 0 !important;
  }
  h2.text-3xl {
    font-size: 2rem !important;
    line-height: 1.12 !important;
  }

  /* Доверие: горизонтальные карточки вместо 5 экранов подряд. */
  .trust-cards {
    display: flex !important;
    overflow-x: auto;
    gap: 12px !important;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .trust-cards::-webkit-scrollbar,
  .offers-cards::-webkit-scrollbar,
  .advantages-cards::-webkit-scrollbar {
    display: none;
  }
  .trust-cards > div {
    min-width: min(82vw, 310px);
    scroll-snap-align: start;
    padding: 18px !important;
  }

  /* Услуги: тексты компактнее; подробности остаются по кнопке. */
  #services .mb-10 {
    margin-bottom: 28px !important;
  }
  #servicesGrid {
    gap: 14px !important;
  }
  #servicesGrid .service-card {
    padding: 18px !important;
    border-radius: 22px !important;
  }
  #servicesGrid .service-card h3 {
    min-height: 0 !important;
    font-size: 1.08rem !important;
  }
  #servicesGrid .service-card > p {
    min-height: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #servicesGrid .service-card.open > p {
    display: block;
  }

  /* Преимущества: на телефоне одна компактная горизонтальная лента. */
  #advantages > .mx-auto {
    gap: 28px !important;
  }
  #advantages h2 {
    font-size: 2rem !important;
    line-height: 1.13 !important;
  }
  #advantages p {
    font-size: .98rem !important;
    line-height: 1.65 !important;
  }
  .advantages-cards {
    display: flex !important;
    overflow-x: auto;
    gap: 10px !important;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .advantages-cards > div {
    min-width: min(78vw, 300px);
    min-height: 82px;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    padding: 16px !important;
  }
  .advantages-cards > div.sm\:col-span-2 {
    min-width: min(78vw, 300px);
  }

  /* Специальные условия: сохраняем карточки, но не делаем длинную простыню. */
  .offers-cards {
    display: flex !important;
    overflow-x: auto;
    gap: 12px !important;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .offers-cards > div {
    min-width: min(82vw, 320px);
    scroll-snap-align: start;
    padding: 18px !important;
  }
  .offers-cards .accent-rail {
    margin-bottom: 15px !important;
  }
  .offers-cards h3 {
    font-size: 1.05rem !important;
  }
  .offers-cards p {
    line-height: 1.55 !important;
    font-size: .92rem !important;
  }

  /* Команда: фото + имя + должность, регалии раскрываются по желанию. */
  #team .team-grid {
    margin-top: 30px !important;
    gap: 18px !important;
  }
  #team .team-card {
    border-radius: 24px !important;
  }
  #team .team-card > div:first-child {
    padding: 10px !important;
  }
  #team .team-photo {
    height: 360px !important;
    border-radius: 18px !important;
  }
  #team .team-card .px-7 {
    padding-left: 18px !important;
    padding-right: 18px !important;
    padding-bottom: 20px !important;
  }
  #team .team-card h3 {
    font-size: 1.28rem !important;
    line-height: 1.25 !important;
  }
  .team-mobile-details {
    display: none;
  }
  .team-mobile-open .team-mobile-details {
    display: block;
  }
  .team-mobile-toggle {
    display: inline-flex;
    margin-top: 12px;
    border: 0;
    background: transparent;
    padding: 4px 0;
    color: #b7791f;
    font-weight: 700;
  }

  /* Этапы работы: компактный вертикальный таймлайн. */
  .process-grid-mobile {
    position: relative;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .process-grid-mobile > div {
    display: grid;
    grid-template-columns: 50px 1fr;
    column-gap: 12px;
    min-height: 0;
    padding: 16px !important;
    border-radius: 20px !important;
  }
  .process-grid-mobile > div > div:first-child {
    grid-row: 1 / span 2;
    margin-bottom: 0 !important;
    font-size: 1.55rem !important;
    line-height: 1 !important;
  }
  .process-grid-mobile > div > h3 {
    font-size: 1rem !important;
  }
  .process-grid-mobile > div > p {
    margin-top: 5px !important;
    font-size: .9rem !important;
    line-height: 1.5 !important;
  }
  #process > .mx-auto > p:last-child {
    margin-top: 30px !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  /* О компании: второй длинный абзац раскрывается по запросу. */
  #about > .mx-auto {
    gap: 28px !important;
  }
  #about img[alt="Команда компании Налогофф"] {
    height: 390px !important;
    border-radius: 20px !important;
  }
  #about .about-more {
    display: none;
  }
  #about .about-more.about-more-open {
    display: block;
  }
  .about-more-toggle {
    display: inline-flex;
    margin-top: 14px;
    border: 0;
    background: transparent;
    padding: 4px 0;
    color: #b7791f;
    font-weight: 700;
  }
  #about .mt-8.flex {
    margin-top: 20px !important;
    gap: 8px !important;
  }
  #about .mt-8.flex span {
    font-size: .78rem !important;
    padding: 7px 10px !important;
  }

  /* Контакты и форма */
  #contacts > .mx-auto {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }
  #contacts .mt-10 {
    margin-top: 28px !important;
  }
  #contacts .text-xl {
    font-size: 1rem !important;
    line-height: 1.45 !important;
  }
  #contacts .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #contacts .sm\:grid-cols-3 a {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: .78rem !important;
  }
  .lead-form-fix {
    margin: 0 !important;
    padding: 18px !important;
    border-radius: 22px !important;
  }
  .lead-form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  .lead-form-grid > .md\:col-span-2 {
    grid-column: auto !important;
  }
  .lead-field {
    font-size: 16px !important; /* iOS: не увеличивает страницу при фокусе */
    padding: 14px 15px !important;
    border-radius: 14px !important;
  }
  textarea.lead-field {
    min-height: 120px !important;
  }
  #submitButton {
    min-height: 52px;
  }

  /* Футер компактнее */
  footer {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
  footer .w-64 {
    width: 190px !important;
  }
}

@media (max-width: 380px) {
  .hero-section-stable h1 {
    font-size: 1.95rem !important;
  }
  .hero-stat-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .hero-stat-card {
    padding: 12px 10px !important;
  }
  .hero-stat-card .stat-icon {
    display: none !important;
  }
  .trust-cards > div,
  .offers-cards > div {
    min-width: 86vw;
  }
}


/* ===== Точечная доработка v4 ===== */
.leader-names {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
}
.leader-name { white-space: nowrap; }
.leader-separator { white-space: pre; }

/* Слова в названиях услуг не разрываются посередине. */
#servicesGrid .service-card h3,
#servicesGrid .service-card p {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.hero-stat-dots {
  display: none;
}

@media (max-width: 640px) {
  /* Преимущества первого экрана — спокойный свайп-слайдер вместо тесной сетки 2x2. */
  .hero-stat-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 12px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding: 2px 16px 8px !important;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  .hero-stat-grid::-webkit-scrollbar { display: none; }
  .hero-stat-card {
    flex: 0 0 min(82vw, 310px) !important;
    min-width: min(82vw, 310px) !important;
    min-height: 104px !important;
    padding: 18px 18px !important;
    scroll-snap-align: center;
    justify-content: flex-start;
    overflow: hidden;
  }
  .hero-stat-card .stat-text {
    font-size: .98rem !important;
    line-height: 1.45rem !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
  .hero-stat-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
  }
  .hero-stat-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.32);
    transition: width .25s ease, background .25s ease;
  }
  .hero-stat-dots button.active {
    width: 24px;
    background: #f5c451;
  }

  /* Каждое ФИО целиком остаётся на одной строке. Два руководителя — аккуратными строками. */
  .leader-names {
    display: grid;
    gap: 4px;
    font-size: clamp(.92rem, 4vw, 1.05rem) !important;
    line-height: 1.35 !important;
  }
  .leader-separator { display: none; }
  .leader-name { white-space: nowrap; }

  /* Полный краткий текст услуги без обрезанного "контрол...". */
  #servicesGrid .service-card > p,
  #servicesGrid .service-card.open > p {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
  }

  /* О компании больше не содержит скрытых деталей и лишних плашек. */
  #about p {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }
}


/* Финальная доводка структуры v4 */
.leader-names {
  display: grid !important;
  gap: 5px !important;
  font-size: clamp(1rem, 1.35vw, 1.35rem) !important;
}
.leader-separator { display: none !important; }
.leader-name { white-space: nowrap !important; }

.service-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(183,121,31,.22);
  background: #fffaf0;
  color: #9a6518;
  font-size: .72rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .04em;
}

@media (max-width: 640px) {
  .hero-stat-card { transition: border-color .28s ease, transform .28s ease, box-shadow .28s ease; }
  .hero-stat-card.is-active {
    border-color: rgba(245,196,81,.5) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.15), 0 0 0 1px rgba(245,196,81,.10) inset !important;
    transform: translateY(-2px);
  }
  #servicesGrid .service-card:first-child h3 {
    white-space: nowrap !important;
    font-size: 1.02rem !important;
  }
  .service-kicker {
    font-size: .68rem;
    margin-bottom: 9px;
  }
}

@media (max-width: 350px) {
  #servicesGrid .service-card:first-child h3 { font-size: .94rem !important; }
  .leader-names { font-size: .82rem !important; }
}


/* ===== Финальная мобильная доводка v5 ===== */

/* Единый минималистичный разделитель: тонкая золотая линия + точка по центру. */
.section-divider {
  position: relative !important;
  width: 150px !important;
  height: 14px !important;
  margin-top: 8px !important;
  margin-bottom: 10px !important;
  background: transparent !important;
  border-radius: 0 !important;
}
.section-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(183,121,31,.18), rgba(231,183,91,.82), rgba(183,121,31,.18));
}
.section-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #f5c451;
  box-shadow: 0 0 0 3px rgba(245,196,81,.14);
}
.section-divider.left {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Каждое ФИО руководителя — строго отдельной цельной строкой. */
.leader-names {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 5px !important;
  width: 100% !important;
}
.leader-name {
  display: block !important;
  white-space: nowrap !important;
  max-width: 100% !important;
  font-size: clamp(.92rem, 1.35vw, 1.3rem) !important;
  line-height: 1.35 !important;
  letter-spacing: -.015em;
}
.leader-separator { display: none !important; }

/* Универсальные индикаторы для мобильных свайп-лент. */
.mobile-carousel-dots {
  display: none;
}

@media (max-width: 640px) {
  .section-divider {
    width: 128px !important;
    height: 12px !important;
    margin-top: 7px !important;
    margin-bottom: 9px !important;
  }
  .section-divider::after {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 3px rgba(245,196,81,.12);
  }

  .leader-names {
    gap: 3px !important;
  }
  .leader-name {
    font-size: clamp(.78rem, 3.55vw, .98rem) !important;
    line-height: 1.3 !important;
    letter-spacing: -.025em !important;
  }

  /* Instagram-like: одна центральная карточка, соседняя чуть видна, равномерный snap. */
  .hero-stat-grid,
  .trust-cards,
  .advantages-cards,
  .offers-cards {
    --mobile-card-width: min(86vw, 340px);
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 14px !important;
    width: calc(100% + 32px) !important;
    max-width: none !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding-left: calc((100% - var(--mobile-card-width)) / 2) !important;
    padding-right: calc((100% - var(--mobile-card-width)) / 2) !important;
    padding-top: 4px !important;
    padding-bottom: 8px !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: calc((100% - var(--mobile-card-width)) / 2) !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
  }
  .hero-stat-grid::-webkit-scrollbar,
  .trust-cards::-webkit-scrollbar,
  .advantages-cards::-webkit-scrollbar,
  .offers-cards::-webkit-scrollbar { display: none !important; }

  .hero-stat-grid > .hero-stat-card,
  .trust-cards > div,
  .advantages-cards > div,
  .advantages-cards > div.sm\\:col-span-2,
  .offers-cards > div {
    flex: 0 0 var(--mobile-card-width) !important;
    width: var(--mobile-card-width) !important;
    min-width: var(--mobile-card-width) !important;
    max-width: var(--mobile-card-width) !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always;
    box-sizing: border-box !important;
  }

  /* Первый экран: длинные подписи гарантированно остаются внутри карточки. */
  .hero-stat-card {
    min-height: 108px !important;
    padding: 18px 18px !important;
    gap: 13px !important;
    overflow: hidden !important;
  }
  .hero-stat-card .stat-icon {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
  }
  .hero-stat-card .stat-text {
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: .98rem !important;
    line-height: 1.42rem !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }
  .hero-stat-card .stat-text-long {
    font-size: .94rem !important;
    letter-spacing: -.02em !important;
  }

  /* Старый индикатор первого экрана тоже становится обычными круглыми точками. */
  .hero-stat-dots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 11px !important;
    min-height: 12px;
  }
  .hero-stat-dots button,
  .mobile-carousel-dots button {
    appearance: none;
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(148,163,184,.42) !important;
    transition: transform .22s ease, background .22s ease, opacity .22s ease !important;
    opacity: .9;
  }
  .hero-stat-dots button.active,
  .mobile-carousel-dots button.active {
    width: 7px !important;
    height: 7px !important;
    min-width: 7px !important;
    background: #d7a63a !important;
    transform: scale(1.12);
    opacity: 1;
  }

  .mobile-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 14px;
    margin: 9px auto 0;
  }

  /* На темно-синих секциях неактивные точки светлее. */
  #advantages .mobile-carousel-dots button {
    background: rgba(255,255,255,.34) !important;
  }
  #advantages .mobile-carousel-dots button.active {
    background: #f5c451 !important;
  }
}

@media (max-width: 360px) {
  .hero-stat-grid,
  .trust-cards,
  .advantages-cards,
  .offers-cards {
    --mobile-card-width: min(88vw, 318px);
  }
  .leader-name {
    font-size: .76rem !important;
    letter-spacing: -.03em !important;
  }
  .hero-stat-card .stat-text-long {
    font-size: .9rem !important;
  }
}


/* ===== Desktop cleanup v6.2: remove duplicate hero cards and rebalance first screen ===== */
.hero-copy-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-media-col {
  align-self: stretch;
}
.hero-media-col > .relative.rounded-\[2\.5rem\] {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hero-media-col > .relative.rounded-\[2\.5rem\] > img[alt*="Руководители"] {
  flex: 1 1 auto;
  min-height: 470px;
  height: 100%;
}
@media (min-width: 1024px) {
  .hero-inner-stable {
    gap: 3.25rem !important;
  }
  .hero-section-stable {
    min-height: 860px;
  }
  .hero-copy-col {
    max-width: 780px;
  }
  .hero-copy-col h1 {
    max-width: 12.8ch;
  }
  .hero-copy-col p {
    max-width: 34rem;
  }
}
@media (max-width: 1023px) {
  .hero-media-col > .relative.rounded-\[2\.5rem\] > img[alt*="Руководители"] {
    min-height: 410px;
  }
}


/* ===== Unified section system v6.3 ===== */
.section-heading {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 46px !important;
  text-align: center !important;
}
.section-eyebrow {
  margin: 0 0 8px !important;
  color: #b7791f !important;
  font-size: .78rem !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: .28em !important;
  text-transform: uppercase !important;
  text-align: center !important;
}
.section-heading .section-divider,
.section-heading .section-divider.left {
  width: 150px !important;
  margin: 0 auto 14px !important;
}
.section-title {
  margin: 0 auto !important;
  max-width: 980px !important;
  color: #020617 !important;
  font-size: clamp(2.25rem, 3.45vw, 3.35rem) !important;
  line-height: 1.08 !important;
  font-weight: 600 !important;
  letter-spacing: -.035em !important;
  text-align: center !important;
  text-wrap: balance;
}
.section-subtitle {
  max-width: 850px !important;
  margin: 18px auto 0 !important;
  color: #526074 !important;
  font-size: 1.08rem !important;
  line-height: 1.72 !important;
  text-align: center !important;
  text-wrap: pretty;
}
.section-heading--dark .section-eyebrow { color: #f5c451 !important; }
.section-heading--dark .section-title { color: #ffffff !important; }
.section-heading--dark .section-subtitle { color: #cbd5e1 !important; }

/* About: title follows the same system, body remains readable rather than centered. */
.about-copy {
  width: 100%;
  max-width: 1080px !important;
  margin: 0 auto !important;
}
.about-copy p {
  max-width: 1080px;
}

/* Advantages and contacts now have the same section hierarchy as every other block. */
#advantages .advantages-cards {
  width: 100%;
}
#contacts .contacts-layout {
  width: 100%;
}
#contacts .contacts-info > div:first-child {
  margin-top: 0 !important;
}

/* Keep vertical rhythm identical across top-level content sections. */
#trust > .mx-auto,
#about > .mx-auto,
#services > .mx-auto,
#advantages > .mx-auto,
#offers > .mx-auto,
#team > .mx-auto,
#process > .mx-auto,
#contacts > .mx-auto {
  width: 100%;
}

@media (max-width: 767px) {
  .section-heading {
    max-width: 100%;
    margin-bottom: 30px !important;
  }
  .section-eyebrow {
    font-size: .7rem !important;
    letter-spacing: .24em !important;
  }
  .section-heading .section-divider,
  .section-heading .section-divider.left {
    width: 128px !important;
    margin-bottom: 12px !important;
  }
  .section-title {
    font-size: clamp(1.9rem, 8.4vw, 2.35rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -.03em !important;
  }
  .section-subtitle {
    margin-top: 14px !important;
    font-size: .98rem !important;
    line-height: 1.62 !important;
  }
  .about-copy p {
    font-size: 1rem !important;
    line-height: 1.68 !important;
  }
  #advantages .advantages-cards {
    margin-top: 0 !important;
  }
  #contacts .contacts-layout {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 28px !important;
  }
}


/* ===== v6.4: controlled hero typography + solid mobile menu ===== */

.hero-title-mobile {
  display: none;
}

.hero-title-desktop,
.hero-title-mobile {
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-copy-col h1 {
    max-width: 820px !important;
    font-size: clamp(3.55rem, 4.6vw, 5.4rem) !important;
    line-height: 1.03 !important;
    letter-spacing: -.045em !important;
    text-wrap: initial !important;
  }
  .hero-title-desktop {
    display: block;
  }
  .hero-title-mobile {
    display: none;
  }
}

.mobile-menu-icon-button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0 !important;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.025);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-icon {
  width: 18px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

.hamburger-icon span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: #fff;
}

.close-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}

.close-icon::before,
.close-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 1px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.close-icon::before { transform: rotate(45deg); }
.close-icon::after  { transform: rotate(-45deg); }

.mobile-menu-panel {
  background:
    radial-gradient(circle at 85% 10%, rgba(245,196,81,.08), transparent 28%),
    linear-gradient(180deg, #0a1628 0%, #0d1d34 52%, #10294d 100%) !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  min-height: 100dvh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu-panel .mobile-link {
  min-height: 58px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.055) !important;
  border-color: rgba(255,255,255,.11) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.mobile-menu-panel .mobile-link:active {
  background: rgba(255,255,255,.10) !important;
}

body.mobile-menu-open {
  overflow: hidden !important;
  touch-action: none;
}

@media (max-width: 767px) {
  .hero-title-desktop {
    display: none !important;
  }
  .hero-title-mobile {
    display: block !important;
  }
  .hero-section-stable h1 {
    font-size: clamp(2.25rem, 10.6vw, 3.25rem) !important;
    line-height: 1.07 !important;
    letter-spacing: -.04em !important;
    max-width: 100% !important;
    text-wrap: initial !important;
  }

  #menuButton,
  #closeMenu {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
  }

  .mobile-menu-panel {
    padding-top: max(24px, env(safe-area-inset-top)) !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
  }

  .mobile-menu-panel > .mt-10 {
    margin-top: 34px !important;
  }
}

@media (max-width: 390px) {
  .hero-section-stable h1 {
    font-size: clamp(2.05rem, 10.2vw, 2.75rem) !important;
  }
}


/* ===== v6.5: balanced hero + simplified header ===== */

/* The hamburger/mobile overlay has been intentionally removed. */
#menuButton,
#mobileMenu {
  display: none !important;
}

@media (min-width: 1024px) {
  .hero-section-stable {
    min-height: 0 !important;
  }

  .hero-inner-stable {
    align-items: flex-start !important;
    gap: clamp(2.75rem, 4vw, 4.75rem) !important;
    padding-top: 18px !important;
    padding-bottom: 76px !important;
  }

  .hero-copy-col {
    justify-content: flex-start !important;
    align-self: flex-start !important;
    max-width: none !important;
    padding-top: 0 !important;
  }

  .hero-media-col {
    align-self: flex-start !important;
  }

  .hero-logo-duplicate {
    max-width: 510px !important;
    margin-bottom: 24px !important;
  }

  .hero-copy-col h1 {
    max-width: 820px !important;
    font-size: clamp(3.35rem, 4.25vw, 4.85rem) !important;
    line-height: 1.035 !important;
    letter-spacing: -.045em !important;
  }

  .hero-copy-col p {
    max-width: 650px !important;
    margin-top: 24px !important;
  }

  .hero-copy-col .mt-9 {
    margin-top: 30px !important;
  }

  .hero-media-col > .relative.rounded-\[2\.5rem\] {
    height: auto !important;
  }

  .hero-media-col > .relative.rounded-\[2\.5rem\] > img[alt*="Руководители"] {
    flex: none !important;
    width: 100% !important;
    height: 620px !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center 24% !important;
  }
}

@media (min-width: 1280px) {
  .hero-inner-stable {
    grid-template-columns: minmax(0, 1.04fr) minmax(500px, .96fr) !important;
  }
}

@media (max-width: 1023px) {
  /* With no hamburger, keep the mobile/tablet header deliberately simple. */
  header > div:first-child {
    justify-content: flex-start !important;
  }
}


/* v6.8 — requisites card replacing the contact form */
.company-requisites-card {
  min-height: 100%;
}

.requisites-mark {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(197, 151, 52, .18), rgba(197, 151, 52, .05)),
    #f8fafc;
  border: 1px solid rgba(197, 151, 52, .28);
  position: relative;
}

.requisites-mark::before,
.requisites-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #c59734;
}

.requisites-mark::before {
  width: 18px;
  height: 2px;
  left: 14px;
  top: 19px;
}

.requisites-mark::after {
  width: 10px;
  height: 2px;
  left: 18px;
  top: 25px;
}

.requisite-item {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 18px;
  padding: 16px 18px;
}

.requisite-label {
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  font-weight: 700;
}

.requisite-value {
  margin-top: 5px;
  font-size: 17px;
  line-height: 1.4;
  color: #0f172a;
  font-weight: 700;
}

@media (max-width: 1023px) {
  .company-requisites-card {
    min-height: auto;
  }
}
