/*
  ZEPRA MARKETING HOME STYLES
  Hero, Showcases, Storytelling, Interactive Calculators, Bento & Pricing
*/

/* 1. HERO SECTION (FRAME 02) */
body.landing-home > nav.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
}

/* MOBILE (2026-08-15): drawer поверх backdrop (150) — landing.css nav-open z-index не перебивать */
body.landing-home.nav-open > nav.landing-nav {
  z-index: 200;
}

@media (max-width: 768px) {
  body.landing-home.nav-open .nav-backdrop {
    z-index: 150;
  }

  body.landing-home.nav-open .nav-drawer {
    z-index: 160;
  }
}

/* ИСПРАВЛЕНИЕ (2026-08-15): футер на главной — тёмный фон (tokens только на .lp-page) */
body.landing-home {
  --lp-footer-bg: #121416;
  --lp-footer-fg: rgba(255, 255, 255, 0.78);
  --lp-footer-fg-muted: rgba(255, 255, 255, 0.58);
  --lp-footer-fg-subtle: rgba(255, 255, 255, 0.45);
  --lp-footer-border: rgba(255, 255, 255, 0.12);
  /* ИСПРАВЛЕНИЕ (2026-10-03): плотнее ритм — меньше «полотна» на главной. */
  --mkt-section-y: clamp(48px, 5.5vw, 80px);
  --mkt-section-y-sm: clamp(36px, 4.5vw, 56px);
  --mkt-h1: clamp(32px, 4.2vw, 52px);
  --mkt-h2: clamp(24px, 3.2vw, 36px);
  --mkt-h3: clamp(18px, 2.4vw, 26px);
  --mkt-body-lg: clamp(15px, 1.6vw, 17px);
}

body.landing-home .lp-footer {
  background: var(--lp-footer-bg);
  color: var(--lp-footer-fg);
  border-top-color: var(--lp-footer-border);
}

body.landing-home #final-cta {
  margin-bottom: 0;
  padding-bottom: calc(clamp(32px, 5vw, 48px) + var(--sab, env(safe-area-inset-bottom, 0px)));
}

/* MOBILE (2026-08-15): final CTA — без «видео-рамки», визуал внутри панели */
#final-cta.final-cta-section {
  padding-bottom: 0;
}

#final-cta .final-cta-panel {
  padding-bottom: 0;
  overflow: hidden;
}

.final-cta-copy {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: clamp(28px, 4vw, 40px);
  text-align: center;
}

.final-cta-badge {
  display: inline-block;
  margin-bottom: 16px;
}

.final-cta-title {
  color: #FFFFFF;
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.final-cta-lead {
  color: #D1D5DB;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 560px;
}

.final-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

#final-cta .final-cta-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.final-cta-visual {
  margin: 0 calc(-1 * clamp(24px, 5vw, 64px));
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--mkt-radius-cta, 56px) var(--mkt-radius-cta, 56px);
}

.final-cta-visual::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 72px;
  background: linear-gradient(180deg, #0D0F13 0%, rgba(13, 15, 19, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.final-cta-visual img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

@media (max-width: 767px) {
  .final-cta-title {
    font-size: clamp(24px, 6.5vw, 32px);
  }

  .final-cta-lead {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .final-cta-visual {
    margin-inline: calc(-1 * var(--mkt-space-5, 24px));
    border-radius: 0 0 28px 28px;
  }
}

/* MOBILE (2026-08-15): anchor offset under fixed landing-nav */
body.landing-home section[id] {
  scroll-margin-top: 88px;
}

@media (max-width: 767px) {
  body.landing-home section[id] {
    scroll-margin-top: 72px;
  }
}

#hero {
  min-height: min(68vh, 680px);
  padding-top: clamp(88px, 10vh, 120px);
  padding-bottom: clamp(32px, 4vh, 56px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
  background: radial-gradient(circle at 80% 20%, rgba(255, 121, 18, 0.08) 0%, rgba(250, 250, 252, 1) 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--mkt-space-4);
  max-width: 580px;
  z-index: 5;
}

.hero-badge-wrap {
  margin-bottom: var(--mkt-space-1);
}

.hero-title {
  margin-bottom: var(--mkt-space-2);
}

.hero-subtitle {
  font-size: var(--mkt-body-lg);
  line-height: 1.55;
  color: var(--mkt-text-muted);
  margin-bottom: var(--mkt-space-3);
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--mkt-space-3);
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: var(--mkt-space-3);
}

.hero-trust-row {
  margin-top: var(--mkt-space-2);
}

.hero-scene-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/* MOBILE (2026-08-15): hero — flat + crisp (no mask blur), soft vignette into page bg */
.hero-scene-wrap::after {
  content: "";
  position: absolute;
  inset: -2%;
  pointer-events: none;
  z-index: 30;
  background: radial-gradient(
    ellipse 90% 84% at 50% 44%,
    transparent 54%,
    rgba(250, 250, 252, 0.35) 76%,
    rgba(250, 250, 252, 0.88) 100%
  );
}

@media (max-width: 767px) {
  .hero-scene-wrap::after {
    inset: 0;
    background: radial-gradient(
      ellipse 100% 90% at 50% 50%,
      transparent 62%,
      rgba(250, 250, 252, 0.2) 82%,
      rgba(250, 250, 252, 0.55) 100%
    );
  }
}

#hero .mkt-scene {
  perspective: none;
}

#hero .mkt-scene__canvas {
  transform-style: flat;
  will-change: auto;
  transform: none !important;
}

#hero .mkt-scene__main,
#hero .mkt-scene__phone {
  transform: none !important;
  filter: none;
}

#hero .mkt-scene__main {
  border-radius: 20px;
  box-shadow:
    0 24px 48px rgba(15, 17, 20, 0.12),
    0 8px 20px rgba(255, 121, 18, 0.08);
}

#hero .mkt-phone-frame {
  box-shadow: 0 24px 48px rgba(15, 17, 20, 0.18);
}

#hero .mkt-browser-content img,
#hero .mkt-phone-screen img {
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.hero-scene-wrap .mkt-scene__glow {
  width: 130%;
  height: 130%;
  filter: blur(48px);
  opacity: 0.75;
}

/* Hero: личка + карточка Yclients */
.mkt-hero-chat {
  padding: 18px 16px 16px;
  background: #FFFFFF;
  min-height: 280px;
}

.mkt-hero-chat__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #EEF1F6;
}

.mkt-hero-chat__bar strong {
  display: block;
  font-size: 14px;
  color: #121416;
}

.mkt-hero-chat__bar span:last-child {
  display: block;
  font-size: 12px;
  color: #6B7280;
}

.mkt-hero-chat__vk {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4C9CFF, #0077FF);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mkt-hero-chat__msg {
  max-width: 88%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.mkt-hero-chat__msg--client {
  background: #F3F5F9;
  color: #121416;
  border-bottom-left-radius: 4px;
}

.mkt-hero-chat__msg--ai {
  margin-left: auto;
  background: linear-gradient(180deg, #FFF8F1, #FFE8D4);
  color: #121416;
  border: 1px solid rgba(255, 121, 18, 0.22);
  border-bottom-right-radius: 4px;
}

.mkt-ycard {
  width: 236px;
  background: #FFFFFF;
  border: 1px solid var(--mkt-line, #E8EAEF);
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: 0 20px 40px rgba(15, 17, 20, 0.16);
}

.mkt-ycard__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FF7912;
}

.mkt-ycard__title {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.25;
  color: #121416;
}

.mkt-ycard__rows {
  margin: 0;
}

.mkt-ycard__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #EEF1F6;
  font-size: 13px;
}

.mkt-ycard__rows dt {
  margin: 0;
  color: #6B7280;
}

.mkt-ycard__rows dd {
  margin: 0;
  font-weight: 700;
  color: #121416;
}

.mkt-ycard__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #059669;
}

@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--mkt-space-6);
  }
  .hero-content {
    align-items: center;
    max-width: 100%;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-trust-row {
    justify-content: center;
  }
}

@media (max-height: 800px) and (min-width: 1024px) {
  #hero {
    min-height: auto;
    padding-top: 110px;
  }
}

/* 2. TRUST SECTION (FRAME 03) */
.mkt-section--compact {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.mkt-section--compact .mkt-section-head {
  margin-bottom: var(--mkt-space-6);
}

.mkt-compact-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--mkt-space-4);
}

.mkt-compact-feature {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-line);
  border-radius: var(--mkt-radius-card-sm);
  padding: var(--mkt-space-5);
  box-shadow: var(--mkt-shadow-1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mkt-compact-feature:hover {
  border-color: rgba(255, 121, 18, 0.28);
  box-shadow: var(--mkt-shadow-2);
}

.mkt-compact-feature__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mkt-brand);
  background: var(--mkt-brand-soft);
  border: 1px solid rgba(255, 121, 18, 0.18);
}

.mkt-compact-feature__tag--vk {
  color: var(--mkt-status-vk);
  background: var(--mkt-status-vk-bg);
  border-color: rgba(0, 119, 255, 0.22);
}

.mkt-compact-feature__title {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--mkt-text);
  margin-bottom: 8px;
}

.mkt-compact-feature__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--mkt-text-muted);
}

@media (max-width: 1023px) {
  .mkt-compact-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .mkt-compact-features {
    grid-template-columns: 1fr;
  }
}

.trust-section {
  padding: var(--mkt-space-7) 0;
  border-top: 1px solid var(--mkt-line);
  border-bottom: 1px solid var(--mkt-line);
  background: var(--mkt-surface);
}

.trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--mkt-space-5);
}

.trust-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-stat-val {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--mkt-text);
  letter-spacing: -0.02em;
}

.trust-stat-label {
  font-size: 14px;
  color: var(--mkt-text-muted);
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 899px) {
  .trust-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--mkt-space-5);
  }
}

@media (max-width: 479px) {
  .trust-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* 3. CINEMATIC: CHAOS -> ZEPRA SECTION (FRAME 04) */
.chaos-section {
  background: var(--mkt-surface-dark);
  color: var(--mkt-text-inverse);
  position: relative;
  overflow: hidden;
}

.chaos-toggle-bar {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: #1C2027;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--mkt-space-6);
  max-width: 100%;
}

.chaos-toggle-btn {
  padding: 10px 22px;
  min-height: var(--touch-target-min, 44px);
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #9CA3AF;
  transition: all 0.25s ease;
}

.chaos-toggle-btn.is-active {
  background: var(--mkt-brand);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 121, 18, 0.35);
}

.chaos-interactive-stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chaos-view {
  width: 100%;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.chaos-view--hidden {
  display: none;
  opacity: 0;
  transform: scale(0.96);
}

/* 4. PRODUCT SCENES (FRAME 05) */
.scenes-container {
  display: flex;
  flex-direction: column;
  gap: var(--mkt-section-y);
}

.scene-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.scene-block--reverse {
  direction: rtl;
}

.scene-block--reverse > * {
  direction: ltr;
}

.scene-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--mkt-space-4);
}

.scene-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--mkt-space-3);
  margin-top: var(--mkt-space-2);
}

.scene-feature-item {
  display: flex;
  align-items: center;
  gap: var(--mkt-space-3);
  font-size: 16px;
  font-weight: 500;
  color: var(--mkt-text);
}

.scene-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--mkt-brand-soft);
  color: var(--mkt-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .scene-block,
  .scene-block--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: var(--mkt-space-6);
  }
}

/* 5. SAVINGS CALCULATOR (FRAME 09) */
.calc-wrapper {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-line);
  border-radius: var(--mkt-radius-card-lg);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--mkt-shadow-2);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.calc-slider-group {
  display: flex;
  flex-direction: column;
  gap: var(--mkt-space-4);
  margin-bottom: var(--mkt-space-5);
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--mkt-space-3);
}

.calc-slider-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--mkt-text);
}

.calc-slider-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--mkt-brand);
}

.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  min-height: var(--touch-target-min, 44px);
  border-radius: 4px;
  background: #E8EAEF;
  outline: none;
  cursor: pointer;
  touch-action: pan-y;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mkt-brand);
  border: 3px solid #FFFFFF;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 121, 18, 0.4);
  transition: transform 0.15s ease;
}

.calc-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mkt-brand);
  border: 3px solid #FFFFFF;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 121, 18, 0.4);
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-result-card {
  background: #0F1114;
  color: #FFFFFF;
  border-radius: var(--mkt-radius-card-sm);
  padding: var(--mkt-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--mkt-space-4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 121, 18, 0.2);
}

.calc-result-number {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 900;
  color: var(--mkt-brand);
  line-height: 1;
  letter-spacing: -0.03em;
}

@media (max-width: 899px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

/* 6. PRICING SECTION (FRAME 10) */
.pricing-switcher {
  display: inline-flex;
  align-items: center;
  gap: var(--mkt-space-3);
  padding: 6px;
  background: var(--mkt-surface-muted);
  border-radius: 999px;
  margin-bottom: var(--mkt-space-7);
  border: 1px solid var(--mkt-line);
}

.pricing-switch-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--mkt-text-muted);
  transition: all 0.2s ease;
}

.pricing-switch-btn.is-active {
  background: var(--mkt-surface);
  color: var(--mkt-text);
  box-shadow: var(--mkt-shadow-1);
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--mkt-space-5);
  align-items: stretch;
}

.pricing-card {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-line);
  border-radius: var(--mkt-radius-card-lg);
  padding: var(--mkt-space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card--popular {
  border-color: var(--mkt-brand);
  box-shadow: 0 16px 40px rgba(255, 121, 18, 0.12);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mkt-shadow-3);
}

.pricing-card--popular:hover {
  transform: scale(1.03) translateY(-6px);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mkt-brand);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 121, 18, 0.35);
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: var(--mkt-space-4) 0;
}

.pricing-price-num {
  font-size: 44px;
  font-weight: 900;
  color: var(--mkt-text);
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: 14px;
  color: var(--mkt-text-muted);
}

.pricing-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--mkt-space-3);
  margin-bottom: var(--mkt-space-6);
  font-size: 14px;
  color: var(--mkt-text);
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-feature-check {
  color: var(--mkt-brand);
  font-weight: bold;
}

@media (max-width: 1023px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .pricing-card--popular {
    transform: none;
  }
}

/* 7. FAQ ACCORDION (FRAME 11) */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--mkt-space-3);
}

.faq-item {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-line);
  border-radius: var(--mkt-radius-card-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.is-open {
  border-color: #D1D5DB;
  box-shadow: var(--mkt-shadow-1);
}

.faq-question {
  width: 100%;
  padding: var(--mkt-space-5);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mkt-space-4);
  font-size: 17px;
  font-weight: 700;
  color: var(--mkt-text);
  text-align: left;
  cursor: pointer;
  line-height: 1.35;
}

.faq-question span:first-child,
.faq-question > :first-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mkt-surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--mkt-brand-soft);
  color: var(--mkt-brand);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 var(--mkt-space-5);
  font-size: 15px;
  color: var(--mkt-text-muted);
  line-height: 1.6;
}

.faq-item.is-open .faq-answer {
  max-height: var(--faq-answer-max, 480px);
  padding-bottom: var(--mkt-space-5);
}

@media (max-width: 639px) {
  .chaos-toggle-bar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 6px;
  }
  .chaos-toggle-btn {
    width: 100%;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
    padding: 12px 14px;
  }
  .chaos-interactive-stage {
    min-height: 320px;
  }
}

@media (max-width: 767px) {
  .hero-scene-wrap {
    margin-inline: auto;
    max-width: min(100%, 420px);
  }

  .mkt-scene__canvas {
    overflow: hidden;
  }

  .mkt-scene__phone:not(.mkt-scene__ycard-wrap) {
    display: none;
  }

  .mkt-scene__ycard-wrap {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 12px;
    filter: none;
  }

  .mkt-ycard {
    width: 100%;
  }

  .mkt-floating-card {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    animation: none !important;
    max-width: 100%;
    width: 100%;
    margin-bottom: var(--mkt-space-3);
  }

  .mkt-scene__float-2,
  .mkt-scene__float-3 {
    display: none;
  }

  .mkt-scene__main {
    transform: none !important;
  }
}

@media (max-width: 479px) {
  .hero-cta-group .mkt-btn--lg {
    width: 100%;
  }
  .mkt-trust-row {
    justify-content: center;
    gap: var(--mkt-space-2);
  }
  .mkt-trust-item {
    font-size: 12px;
  }
}

/* MOBILE (2026-08-15): dynamic pricing mount — single column */
@media (max-width: 767px) {
  #pricing-mount.pricing-cards-grid,
  #pricing .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    min-width: 0;
  }
}

/* MOBILE (2026-08-15): home — без горизонтального скролла и переполнений */
html:has(body.landing-home),
body.landing-home {
  overflow-x: clip;
  max-width: 100%;
}

body.landing-home .mkt-container {
  min-width: 0;
}

body.landing-home .calc-wrapper,
body.landing-home .calc-grid,
body.landing-home .calc-grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 767px) {
  /* MOBILE (2026-08-15): единые отступы шапки и секций — без «съезда» контента вправо */
  body.landing-home {
    --landing-gutter: max(16px, var(--sal));
  }

  body.landing-home .landing-nav .container,
  body.landing-home .mkt-container {
    padding-left: var(--landing-gutter);
    padding-right: max(16px, var(--sar));
    box-sizing: border-box;
  }

  body.landing-home .landing-nav,
  body.landing-home .landing-nav .container,
  body.landing-home #hero,
  body.landing-home #hero .mkt-container {
    overflow-x: clip;
    max-width: 100%;
  }

  body.landing-home:not(.nav-open) .nav-drawer {
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
  }

  body.landing-home #hero {
    overflow-x: clip;
    min-height: 0;
    padding-top: calc(56px + env(safe-area-inset-top, 0px) + 12px);
    padding-bottom: 20px;
  }

  /* MOBILE (2026-08-15): hero — в одну линию с логотипом (не center vs left nav) */
  body.landing-home .hero-grid,
  body.landing-home .hero-content,
  body.landing-home .hero-title,
  body.landing-home .hero-subtitle,
  body.landing-home .mkt-hero-h1,
  body.landing-home .mkt-hero-sub {
    text-align: left;
  }

  body.landing-home .hero-content {
    align-items: flex-start;
    align-self: stretch;
    width: 100%;
    max-width: none;
  }

  body.landing-home .hero-cta-group,
  body.landing-home .hero-trust-row,
  body.landing-home .mkt-trust-row {
    justify-content: flex-start;
  }

  body.landing-home .hero-badge-wrap,
  body.landing-home .mkt-hero-badge {
    align-self: flex-start;
  }

  body.landing-home .hero-scene-wrap {
    display: block;
    max-width: 100%;
    margin-top: 8px;
  }

  body.landing-home .mkt-section {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  body.landing-home .mkt-section-head {
    margin-bottom: var(--mkt-space-5);
    text-align: left;
  }

  body.landing-home .mkt-section-subtitle {
    margin-inline: 0;
  }

  body.landing-home .mkt-h1 {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.12;
  }

  body.landing-home .mkt-h2 {
    font-size: clamp(22px, 6vw, 28px);
  }

  body.landing-home .landing-nav .nav-cta-compact {
    min-height: var(--touch-target-min, 44px);
    padding: 10px 12px;
  }

  #steps .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .calc-wrapper {
    padding: 20px 16px;
  }

  .calc-slider-header {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .calc-slider-label {
    flex: 1 1 140px;
    min-width: 0;
  }

  .calc-slider-val {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 16px;
  }

  .calc-wrapper p,
  .calc-result-number {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .calc-result-card .mkt-btn {
    width: 100%;
  }

  #pricing-mount .plan-cta,
  #pricing-mount .btn {
    min-height: var(--touch-target-min, 44px);
  }

  .scene-feature-item {
    align-items: flex-start;
  }

  .mkt-photo-card__desc {
    font-size: 14px;
  }

  .scene-text .scene-title {
    font-size: clamp(22px, 5.5vw, 28px);
    line-height: 1.2;
  }

  .scene-text .mkt-lead {
    font-size: 15px;
    line-height: 1.5;
  }

  .mkt-scene-analytics {
    padding: var(--mkt-space-5);
  }
}

@media (max-width: 479px) {
  .calc-wrapper {
    padding: 16px 14px;
  }

  .chaos-interactive-stage {
    min-height: auto;
  }

  .chaos-section .mkt-card {
    padding: 16px !important;
  }

  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .final-cta-actions .mkt-btn {
    width: 100%;
  }
}

/* Scene titles — не перегружать mobile h2 scale */
.scene-text .scene-title {
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Steps grid — без inline minmax overflow */
#steps .steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 32px;
}

/* ИСПРАВЛЕНИЕ (2026-08-17): форма заявки на переезд — стили после marketing.css, без зависимости от --text-main */
body.landing-home #migration-help .mig-form {
  text-align: left;
}
body.landing-home #migration-help .mig-form__lead {
  font-size: 14px;
  line-height: 1.45;
  color: #5c6370;
  margin: 0 0 14px;
}
html.dark-theme body.landing-home #migration-help .mig-form__lead {
  color: rgba(243, 244, 246, 0.72);
}
body.landing-home #migration-help .mig-form__group {
  margin-bottom: 14px;
}
body.landing-home #migration-help .mig-form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #121416;
  margin-bottom: 6px;
}
html.dark-theme body.landing-home #migration-help .mig-form__label {
  color: #f3f4f6;
}
body.landing-home #migration-help .mig-form__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.4;
  font-family: inherit;
  color: #121416;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
html.dark-theme body.landing-home #migration-help .mig-form__input {
  color: #f3f4f6;
  background: #1a1d22;
  border-color: #3d4450;
}
body.landing-home #migration-help .mig-form__input:focus {
  outline: none;
  border-color: #ff7912;
  box-shadow: 0 0 0 3px rgba(255, 121, 18, 0.18);
}
body.landing-home #migration-help .mig-form__input::placeholder {
  color: #9ca3af;
}
body.landing-home #migration-help .mig-form__hint {
  font-size: 13px;
  color: #6b7280;
  margin: 6px 0 0;
  line-height: 1.45;
}
html.dark-theme body.landing-home #migration-help .mig-form__hint {
  color: rgba(243, 244, 246, 0.58);
}
body.landing-home #migration-help .mig-form__error {
  font-size: 13px;
  color: #dc2626;
  margin: 8px 0 0;
}
body.landing-home #migration-help .mig-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #121416;
  margin-bottom: 14px;
  cursor: pointer;
}
html.dark-theme body.landing-home #migration-help .mig-form__consent {
  color: #f3f4f6;
}
body.landing-home #migration-help .mig-form__consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #ff7912;
}
body.landing-home #migration-help .mig-form__consent a {
  color: #ff7912;
  text-decoration: underline;
}
body.landing-home #migration-help .mig-form__submit {
  width: 100%;
  margin-top: 4px;
}
body.landing-home #migration-help .mig-form__success {
  font-size: 14px;
  color: #5c6370;
  margin-top: 10px;
}
body.landing-home #migration-help .is-hidden {
  display: none !important;
}

/* ИСПРАВЛЕНИЕ (2026-10-03): мобильный лендинг — короче скролл без потери CTA. */
@media (max-width: 767px) {
  body.landing-home {
    --mkt-section-y: 28px;
    --mkt-section-y-sm: 24px;
  }

  body.landing-home .mkt-section--compact {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  body.landing-home .hero-subtitle {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  body.landing-home .hero-cta-group {
    gap: 8px;
    margin-bottom: 12px;
  }

  body.landing-home .hero-trust-row {
    gap: 8px 12px;
  }

  body.landing-home .scene-block img,
  body.landing-home .mkt-scene-analytics img,
  body.landing-home .mkt-scene-schedule img {
    max-height: 168px;
    width: 100%;
    object-fit: cover;
    object-position: top;
  }

  body.landing-home .mkt-scene-analytics {
    padding: 16px !important;
  }

  body.landing-home .final-cta-visual {
    display: none;
  }

  body.landing-home .final-cta-title {
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 10px;
  }

  body.landing-home .final-cta-lead {
    font-size: 14px;
    margin-bottom: 16px;
  }

  body.landing-home .final-cta-copy {
    padding-bottom: 20px;
  }

  body.landing-home #final-cta {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  body.landing-home .trust-section {
    padding: 20px 0;
  }

  body.landing-home .calc-wrapper {
    padding: 16px 12px;
  }

  #steps .steps-grid {
    gap: 12px;
  }
}
