/* ==========================================================================
   Мобильная версия (≤ 820px). На десктопе секции — холсты 1920 px, масштабируемые целиком.
   На телефоне холсты превращаются в обычный поток: заголовки, колонки, карточки по ширине экрана.
   Карточки с абсолютной «макетной» вёрсткой масштабируются через zoom: calc(var(--mw) / ширина_карточки),
   где --mw — ширина контента в px без единиц (ставит mobile.js).
   ========================================================================== */
@media (max-width: 820px) {

html, body { overflow-x: clip; }
.sec-eyebrow { font-size: 14px; letter-spacing: .9px; }

/* ---------- Каркас: холсты → поток ---------- */
.f-sec-wrap { height: auto !important; overflow: hidden; transition: none; }
.f-canvas { width: 100% !important; height: auto !important; transform: none !important; }
.m-hl { background: #8ce8ff; border-radius: 8px; padding: 0 7px 3px; margin: 0 -2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.platform-h2 .m-hl { line-height: 1; }
.problem-sky-pill, .platform-sky-pill, .features-sky-pill, .faq-sky-pill { display: none !important; }

/* ---------- Первый экран ---------- */
.hero-canvas { padding: 10px; display: grid; gap: 10px; }
.hero-left-panel, .hero-right-panel { position: relative !important; left: auto !important; top: auto !important; width: 100% !important; height: auto !important; border-radius: 14px; }
.hero-left-panel { padding: 22px 18px 26px; display: flex; flex-direction: column; gap: 26px; }
.hero-logo, .hero-nav, .hero-nav-line, .hero-main-block, .hero-tagline, .hero-pills { position: static !important; width: auto !important; transform: none !important; }
.hero-logo svg, .hero-logo img { width: 128px; height: auto; }
.hero-nav, .hero-nav-line { display: none !important; }
.hero-main-block { gap: 24px; }
.hero-h1 { font-size: 40px; letter-spacing: -2px; line-height: .95; }
.hero-cursor-bar { display: none; }
.hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-cta-orange { height: 64px; padding: 12px 26px 12px 10px !important; gap: 10px; }
.hero-cta-plus-circle { width: 42px; height: 42px; } .hero-cta-plus-circle img { left: 10.5px; top: 10.5px; }
.hero-cta-label { font-size: 16px; }
.hero-cta-more { width: auto; font-size: 18px; }
.hero-tagline { font-size: 15px; }
.hero-pills { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-pill { height: 56px; padding: 10px 12px; gap: 10px; }
.hero-pill-icon { width: 30px; height: 30px; }
.hero-pill-text { font-size: 16px; }
.hero-right-panel { aspect-ratio: 1 / 1; }
.hero-frame { position: absolute; inset: 0; }

/* ---------- Кому подходит ---------- */
.audience-canvas { padding: 48px 16px !important; }
.audience-inner { width: auto; gap: 26px; }
.audience-header-grid { display: flex; flex-direction: column; gap: 18px; width: auto; }
.audience-heading-wrap { height: auto; }
.audience-h2 { font-size: 30px; letter-spacing: -1.5px; width: auto; line-height: .98; }
.audience-flags-row { flex-wrap: wrap; row-gap: 6px; }
.audience-flag-word { font-size: 30px !important; letter-spacing: -1.5px; }
.audience-cards-grid { display: grid; grid-template-columns: minmax(0, 1fr); width: auto; height: auto; row-gap: 10px; }
.audience-card { width: 452.5px; height: 586px; zoom: calc(var(--mw, 358) / 452.5); grid-column: auto !important; grid-row: auto !important; }

/* ---------- Платформа ---------- */
.platform-canvas { padding: 48px 16px 40px; display: flex; flex-direction: column; gap: 18px; }
.platform-eyebrow, .platform-h2, .platform-subtitle, .platform-tabs, .platform-preview-box { position: static !important; width: auto !important; }
.platform-h2 { font-size: 34px; letter-spacing: -1.7px; line-height: .98; }
.platform-subtitle { font-size: 16px; }
.platform-tabs { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.platform-tab { width: 100% !important; height: 64px; border-radius: 16px; }
.platform-tab.is-active { height: 138px; }
.platform-tab-icon, .platform-tab-icon.icon-catalog, .platform-tab-icon.icon-boxed { left: 14px !important; top: 13px !important; }
.platform-tab-title { left: 62px; top: 17px; width: auto; right: 40px; font-size: 20px; }
.platform-tab-desc { left: 62px; top: 56px; width: auto; right: 20px; font-size: 15px; }
.platform-tab-dot { left: auto; right: 16px; top: 14px; }
.platform-tab::before, .platform-tab::after { left: 16px; right: 16px; bottom: 11px; }
.platform-preview-box { height: 600px !important; border-radius: 18px; margin-top: 6px; }

/* ---------- Возможности ---------- */
.features-canvas { padding: 48px 16px !important; }
.features-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; width: auto; row-gap: 10px; column-gap: 0; }
.features-intro { grid-column: auto !important; grid-row: auto !important; width: auto; height: auto; gap: 18px; margin-bottom: 8px; }
.features-intro-top { gap: 18px; }
.features-h2 { font-size: 34px; letter-spacing: -1.7px; width: auto; line-height: .98; }
.features-intro-sub { width: auto; font-size: 16px; }
.feat-card { zoom: calc(var(--mw, 358) / 452.5); grid-column: auto !important; grid-row: auto !important; }

/* ---------- Сравнение ---------- */
.compare-canvas { padding: 48px 16px 40px; }
.compare-eyebrow, .compare-title-col, .cmp-table { position: static !important; width: auto !important; }
.compare-title-col { margin: 14px 0 26px; }
.compare-h2 { font-size: 34px; letter-spacing: -1.7px; }
.cmp-hl { padding: 0 8px 4px; border-radius: 8px; }
.compare-sub { font-size: 16px; margin-top: 12px; }
.cmp-table { position: relative !important; left: auto !important; top: auto !important; }
.cmp-us-col { width: calc(100% / 4.4) !important; top: -8px; bottom: -8px; border-radius: 14px; }
.cmp-row { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) !important; height: auto; min-height: 52px; }
.cmp-row.cmp-head { height: auto; min-height: 56px; }
.cmp-cell { padding: 8px 4px; font-size: 14px; }
.cmp-cell.cmp-feat { padding-left: 2px; font-size: 14px; line-height: 1.25; }
.cmp-head .cmp-cell { font-size: 11px; line-height: 1.2; text-align: center; padding: 6px 2px; }
.cmp-head .cmp-cell.cmp-us { font-size: 13px; }
.cmp-ic { width: 24px; height: 24px; } .cmp-ic::before { inset: 4px; }

/* ---------- FAQ ---------- */
.faq-canvas { padding: 48px 16px !important; }
.faq-grid { display: flex; flex-direction: column; width: auto; gap: 24px; }
.faq-intro { width: auto; gap: 14px; grid-column: auto; }
.faq-h2 { font-size: 34px; letter-spacing: -1.7px; line-height: .98; }
.faq-sub { font-size: 16px; }
.faq-list { width: auto; grid-column: auto; }
.faq-summary { padding: 16px 2px; gap: 12px; }
.faq-q { font-size: 20px; width: auto; flex: 1; letter-spacing: -.5px; }
.faq-a { padding: 0 2px 18px; }
.faq-a p { font-size: 16px; }

/* ---------- Финал + футер ---------- */
.closing-canvas { position: relative; padding: 44px 8px 8px !important; display: block; }
.closing-bg { position: absolute !important; inset: 0; width: auto !important; height: auto !important; }
.closing-h2, .closing-desc, .closing-metrics { position: relative !important; left: auto !important; top: auto !important; width: auto !important; z-index: 1; }
.closing-h2 { font-size: 36px; letter-spacing: -1.8px; line-height: .98; padding: 0 10px; }
.closing-desc { font-size: 16px; padding: 0 10px; margin-top: 16px; }
.closing-metrics { height: auto !important; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.closing-metric-card { flex: 1 1 calc(50% - 6px) !important; height: auto; min-height: 132px; padding: 20px 18px; gap: 10px; }
.closing-metric-card.is-wide { flex-basis: 100% !important; order: 10; }
.closing-metric-num, .closing-metric-num.is-long { font-size: 52px; letter-spacing: -2.5px; }
.closing-metric-lbl { font-size: 14px; }
.closing-footer { position: relative !important; left: auto !important; top: auto !important; width: auto !important; height: auto !important; margin-top: 22px; padding: 26px 20px 28px; display: grid; gap: 22px; z-index: 1; }
.footer-top-grid { position: static !important; width: auto !important; height: auto !important; display: grid !important; grid-template-columns: 1fr 1fr; gap: 20px 12px; }
.footer-logo { grid-column: 1 / -1 !important; width: 170px; height: auto; }
.footer-nav-col1, .footer-nav-col2 { grid-column: auto !important; width: auto !important; font-size: 17px; gap: 12px; }
.footer-divider { position: static !important; width: auto !important; height: 1px !important; background: #ffffff22; } .footer-divider img { display: none; }
.footer-watermark, .footer-watermark-fade { display: none; }
.footer-policy, .footer-legal { position: static !important; width: auto !important; font-size: 14px; text-align: left !important; }
.footer-legal { gap: 6px; opacity: .55; }

/* ---------- Продажи в разных окнах ---------- */
.problem-canvas { padding: 48px 16px 36px !important; gap: 26px !important; align-items: stretch !important; }
.problem-header-wrap, .problem-header-grid { width: auto !important; }
.problem-header-grid { display: flex; flex-direction: column; gap: 14px; }
.problem-title-col { gap: 14px; }
.problem-h2 { font-size: 34px; letter-spacing: -1.7px; line-height: .98; }
.problem-subtitle { font-size: 16px; width: auto; }
.problem-stage-container, .problem-canvas.is-solved .problem-stage-container { width: 100% !important; height: auto !important; transition: none; }
.problem-view { position: relative !important; width: 100% !important; left: auto; top: auto; transition: none; }
.problem-view-solved, .problem-canvas.is-solved .problem-view-unsolved { display: none; }
.problem-canvas.is-solved .problem-view-solved { display: flex; }
.problem-view-unsolved { height: auto !important; display: flex; flex-direction: column; align-items: stretch !important; gap: 12px; opacity: 1 !important; transform: none !important; }
.prob-left-col { width: 100% !important; gap: 12px; }
.prob-bottom-row { width: 100% !important; height: auto !important; flex-direction: column; align-items: stretch; gap: 12px; }
.prob-win { border-radius: 14px; }
.prob-win-catalog { width: 700px !important; height: auto !important; zoom: calc(var(--mw, 358) / 700); }
.prob-catalog-body { height: 520px !important; }
.prob-catalog-fade { display: none; }
.pos-catalog-h3 { left: 30px !important; top: 34px !important; width: 640px !important; }
.pos-catalog-p { left: 30px !important; top: 98px !important; width: 640px !important; }
.prob-cat-mgr-row { left: 4px !important; top: 190px !important; }
.prob-cat-client-bubble { left: 84px !important; top: 330px !important; width: 560px !important; }
.prob-cat-client-avatar { left: 26px !important; top: 435px !important; }
.pm-typing-cat { left: 84px !important; top: 435px !important; }
.prob-win-calc, .prob-win-manual { width: 590px !important; height: 496px !important; zoom: calc(var(--mw, 358) / 590); }
.prob-win-chat { width: 620px !important; height: 923px !important; zoom: calc(var(--mw, 358) / 620); }

.problem-switch-bar { width: 100% !important; height: auto !important; display: flex; justify-content: center; padding: 4px 0; }
.problem-toggle-btn { position: relative !important; left: auto !important; top: auto !important; transform: none !important; gap: 10px; }
.problem-arrow-left, .problem-arrow-right { display: none; }
.problem-switch-label { font-size: 16px; }

/* ---------- Решённый вид («исправлено»): карточки по очереди ---------- */
.problem-view-solved { height: auto !important; flex-direction: column; align-items: center; gap: 10px; padding: 0 0 12px; border-radius: 16px; }
.solved-top-bar { position: relative !important; width: 100% !important; height: 54px !important; flex: none; }
.solved-card { position: relative !important; left: auto !important; top: auto !important; border-radius: 12px; flex: none; }
.solved-card-catalog { width: 660px !important; height: 540px !important; zoom: calc(var(--mw, 358) / 660); }
.solved-card-price, .solved-card-cabinet { width: 600px !important; height: 462px !important; zoom: calc(var(--mw, 358) / 600); }
.solved-card-crm { width: 600px !important; height: 886px !important; zoom: calc(var(--mw, 358) / 600); }
.pos-s3b-cat-h3 { left: 30px !important; top: 32px !important; width: 600px !important; }
.pos-s3b-cat-p { left: 30px !important; top: 130px !important; width: 600px !important; }
.solved-harrier-card { left: 20px !important; top: 206px !important; }
.solved-cat-rings { left: 78% !important; top: 62% !important; }
.solved-cat-glow { left: 20px !important; top: 214px !important; }
.solved-cat-glass-wrap { left: 50% !important; top: 190px !important; }

/* Сравнение: иконки функций, легенда, строка цены */
.cmp-cell.cmp-feat { gap: 8px; }
.cmp-fi { width: 30px; height: 30px; border-radius: 9px; }
.cmp-fi svg { width: 17px; height: 17px; }
.cmp-cell.cmp-feat small { font-size: 11px; line-height: 1.25; }
.cmp-row { grid-template-columns: minmax(0, 1.75fr) repeat(3, minmax(0, 1fr)) !important; }
.cmp-row.cmp-foot { min-height: 84px; height: auto; }
.cmp-cell.cmp-txt { font-size: 11px; line-height: 1.25; padding: 6px 2px; }
.cmp-price b { font-size: 17px; letter-spacing: -.04em; } .cmp-price span { font-size: 10px; }
.cmp-us-col { width: calc(100% / 4.75) !important; }
.cmp-cell { padding-left: 1px; padding-right: 1px; }
.cmp-legend, .cmp-note { position: static !important; width: auto !important; }
.cmp-legend { flex-wrap: wrap; gap: 10px 18px; margin: 18px 0 0 2px; font-size: 12px; }
.cmp-note { margin-top: 14px; font-size: 12px; }

/* Подвал */
.footer-top-grid { grid-template-columns: 1fr 1fr !important; }
.footer-brand { grid-column: 1 / -1; }
.footer-tag { font-size: 15px; }
.footer-nav-col0, .footer-nav-col1, .footer-nav-col2 { grid-column: auto !important; }
.footer-nav-col2 { grid-column: 1 / -1 !important; }
.footer-cap { font-size: 12px; }
.cmp-cta { display: none; }
.cmp-cta-m { display: flex; align-items: center; justify-content: center; height: 52px; margin-top: 18px; border-radius: 26px; background: #ff9a1a; color: #fff; font: 600 15px/1 'Inter', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.cmp-row.cmp-foot { min-height: 84px; }
}
