/* =============================================================================
   Смарт Торг: публичный сайт (главная, возможности, справка, документы).
   Сетка и компоненты по образцу сайта Keys (keys.linkodium.com/assets/css/
   site.css), палитра оригинального «СМАРТ ТОРГ» (Capello): розово-красный градиент #ff4c76 → #e8294f,
   основной #e11d48, зелёный #16a34a для «продано / готово», янтарный #f59f00
   редко. Светлая тема по умолчанию, тёмная по prefers-color-scheme.
   Шрифт Inter: assets/fonts/inter.css. Брейкпоинты: 960px (меню в панель),
   720px (телефон). На 360px без горизонтальной прокрутки.
   ========================================================================== */

/* --- Токены ---------------------------------------------------------------- */
:root {
    --ink:          #221a1d;   /* заголовки */
    --text:         #4a4246;   /* текст */
    --muted:        #6e656a;   /* подписи, 5:1 на белом */
    --line:         #f0e6e9;
    --tint:         #fff5f7;   /* карточки, фон блоков */
    --bg:           #ffffff;
    --surface:      #ffffff;   /* карточки поверх tint, макеты */
    --primary:      #e11d48;
    --primary-hover:#e8294f;
    --primary-ink:  #be123c;   /* текст ссылок */
    --primary-tint: #ffe4ea;
    --grad:         linear-gradient(135deg, #ff4c76 0%, #e8294f 100%);
    --ok:           #16a34a;
    --ok-ink:       #12803b;
    --ok-tint:      #dcfce7;
    --warn:         #f59f00;
    --warn-tint:    #fff3d6;
    --info:         #3b82f6;
    --night:        #1f1619;   /* тёмный блок */
    --hdr-bg:       rgba(255, 255, 255, .86);
    --shadow-sm:    0 1px 2px rgba(40, 20, 28, .05), 0 2px 8px rgba(40, 20, 28, .05);
    --shadow-lg:    0 24px 60px -24px rgba(150, 20, 50, .32), 0 8px 20px -12px rgba(40, 20, 28, .14);
    --r:            14px;
    --r-card:       24px;
    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --hdr-h:        72px;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --ink:          #f7f1f3;
        --text:         #d6cbcf;
        --muted:        #ad9fa5;
        --line:         #3b2a31;
        --tint:         #201619;
        --bg:           #140e10;
        --surface:      #251a1e;
        --primary:      #f43f63;
        --primary-hover:#fb6f8b;
        --primary-ink:  #ff9db1;
        --primary-tint: #4a1626;
        --ok:           #22c55e;
        --ok-ink:       #4ade80;
        --ok-tint:      #133824;
        --warn-tint:    #3a2c08;
        --night:        #231a1d;
        --hdr-bg:       rgba(20, 14, 16, .86);
        --shadow-sm:    0 1px 2px rgba(0, 0, 0, .3);
        --shadow-lg:    0 24px 60px -24px rgba(0, 0, 0, .7), 0 8px 20px -12px rgba(0, 0, 0, .5);
        color-scheme: dark;
    }
}

/* --- База ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px; font-weight: 400; line-height: 1.6;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { max-width: 100%; vertical-align: middle; }
a { color: var(--primary-ink); text-decoration: none; }
a:hover { color: var(--primary-hover); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
b, strong { font-weight: 600; color: var(--ink); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 3000; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; color: var(--bg); }
.ico { flex-shrink: 0; }
.show-xs { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* --- Кнопки ---------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 30px; border: 0; border-radius: 999px;
    background: var(--primary); color: #fff;
    font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 24px;
    text-align: center; white-space: nowrap; cursor: pointer;
    transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn:hover, .btn:focus-visible { background: var(--primary-hover); color: #fff; box-shadow: 0 10px 24px -10px rgba(225, 29, 72, .8); }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 17px 36px; font-size: 17px; }
.btn--sm { padding: 9px 20px; font-size: 15px; line-height: 22px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--tint); color: var(--primary-ink); box-shadow: inset 0 0 0 1.5px var(--primary-tint); }
.btn--light { background: #fff; color: #9f1239; }
.btn--light:hover, .btn--light:focus-visible { background: #ffe4ea; color: #9f1239; box-shadow: none; }

/* Кнопка магазина приложений: тёмная плашка в духе значка Google Play. */
.play {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 9px 22px 9px 16px; min-height: 58px; border-radius: 14px;
    background: #1d1417; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
    line-height: 1.15; font-size: 19px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
    transition: transform .2s, box-shadow .2s;
}
.play small { display: block; font-size: 12px; font-weight: 500; letter-spacing: .01em; color: rgba(255, 255, 255, .78); }
.play:hover, .play:focus-visible { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 10px 24px -10px rgba(18, 16, 34, .7); }
.play:active { transform: translateY(1px); }
.play--light { background: rgba(18, 16, 34, .55); }

/* --- Шапка ----------------------------------------------------------------- */
.hdr { position: sticky; top: 0; z-index: 900; background: var(--bg); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .hdr { background: var(--hdr-bg); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); }
}
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(40, 20, 28, .06); }
.hdr__in { display: flex; align-items: center; gap: 28px; height: var(--hdr-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo__mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--grad); box-shadow: 0 4px 12px -4px rgba(70, 50, 196, .6); flex-shrink: 0; }
.logo__text b { font-weight: 700; color: var(--primary-ink); }
.hnav { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hnav a { display: block; padding: 9px 14px; border-radius: 12px; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 22px; transition: background-color .2s, color .2s; }
.hnav a:hover, .hnav a:focus-visible, .hnav a[aria-current] { background: var(--tint); color: var(--primary-ink); }
.hdr__side { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; }
.burger:hover { background: var(--tint); }
.burger .ico--close, .hdr.is-open .burger .ico--menu { display: none; }
.hdr.is-open .burger .ico--close { display: block; }
@media (max-width: 960px) {
    :root { --hdr-h: 64px; }
    .burger { display: inline-flex; }
    .hdr__nav {
        position: absolute; left: 0; right: 0; top: 100%;
        display: none; padding: 10px 18px 18px;
        background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(40, 20, 28, .3);
    }
    .hdr.is-open .hdr__nav { display: block; }
    .hnav { flex-direction: column; align-items: stretch; gap: 2px; }
    .hnav a { padding: 12px 14px; font-size: 16px; }
}

/* --- Секции ---------------------------------------------------------------- */
.sec { padding: 104px 0 0; }
.sec--tight { padding-top: 56px; }
.sec--last { padding-bottom: 0; }   /* отступ до подвала даёт .ftr */
.sec__head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.sec__head--left { margin-left: 0; text-align: left; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 14px;
    border-radius: 999px; background: var(--primary-tint); color: var(--primary-ink);
    font-size: 13px; font-weight: 600; line-height: 18px; letter-spacing: .04em; text-transform: uppercase;
}
.sec__title { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.14; }
.sec__lead { margin: 16px 0 0; font-size: 19px; line-height: 1.55; }
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--hub { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.card { padding: 32px; border-radius: var(--r-card); background: var(--tint); }
.card h3 { font-size: 21px; line-height: 1.3; }
.card p { margin: 10px 0 0; font-size: 16px; }
.feat { display: block; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; }
a.feat:hover { border-color: var(--primary-tint); box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--text); }
.feat__ico { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--primary-tint); color: var(--primary-ink); }
.feat__ico--ok { background: var(--ok-tint); color: var(--ok-ink); }
.feat h3 { font-size: 18px; line-height: 1.3; }
.feat p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--primary-ink); font-size: 15px; font-weight: 600; }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--primary-tint); color: var(--primary-ink); font-size: 12px; font-weight: 600; font-style: normal; line-height: 18px; white-space: nowrap; }
.chip--ok { background: var(--ok-tint); color: var(--ok-ink); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot--ok { background: var(--ok); }
.dot--warn { background: var(--warn); }
.dot--info { background: var(--primary); }
.center-note { margin: 28px 0 0; text-align: center; }

/* --- Первый экран главной ------------------------------------------------------ */
.hero { position: relative; isolation: isolate; padding: 64px 0 0; overflow: hidden; }
.hero::before {
    /* Фон главной: мягкие пятна цветов «СМАРТ ТОРГ» (розово-красный и жёлтый, как пакеты на иконке)
       вместо прежней сетки; книзу растворяется в фоне страницы. */
    content: ''; position: absolute; inset: 0 0 auto 0; height: 860px; z-index: -1;
    background:
        radial-gradient(38% 46% at 82% 18%, rgba(255, 76, 118, .30), rgba(255, 76, 118, 0) 70%),
        radial-gradient(30% 38% at 64% 62%, rgba(255, 192, 0, .20), rgba(255, 192, 0, 0) 70%),
        radial-gradient(34% 40% at 6% 6%, rgba(255, 140, 160, .18), rgba(255, 140, 160, 0) 70%),
        radial-gradient(26% 30% at 34% 92%, rgba(255, 192, 0, .10), rgba(255, 192, 0, 0) 70%);
    -webkit-mask-image: linear-gradient(#000 0%, #000 55%, transparent 96%); mask-image: linear-gradient(#000 0%, #000 55%, transparent 96%);
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 48px; }
.hero__h1 { display: flex; flex-direction: column; align-items: flex-start; font-size: inherit; font-weight: inherit; letter-spacing: 0; }
.hero__title { display: block; color: var(--ink); font-size: clamp(36px, 5.6vw, 64px); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; }
.hero__title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .hero__title em { background: linear-gradient(135deg, #ff9db1, #fb6f8b); -webkit-background-clip: text; background-clip: text; } }
.hero__lead { max-width: 600px; margin: 24px 0 0; font-size: 20px; line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 34px 0 0; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .ico { color: var(--ok); }
.hero__visual { position: relative; display: flex; justify-content: center; padding: 10px 0 30px; }

/* Плашки поверх телефона */
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.35; }
.float b { display: block; font-size: 14px; }
.float small { display: block; color: var(--muted); font-size: 12.5px; }
.float__ico { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ok-tint); color: var(--ok-ink); flex-shrink: 0; }
.float__ico--p { background: var(--primary-tint); color: var(--primary-ink); }
.float--a { left: -8px; top: 70px; }
.float--b { right: -16px; bottom: 70px; }
@media (prefers-reduced-motion: no-preference) {
    .float--a { animation: float 6s ease-in-out infinite; }
    .float--b { animation: float 7s ease-in-out -2s infinite; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Телефон */
.mph { width: 300px; max-width: 100%; padding: 10px; border-radius: 46px; background: #1d1417; box-shadow: var(--shadow-lg), inset 0 0 0 2px #3b2a31; }
.mph__screen { position: relative; overflow: hidden; padding: 18px 14px 70px; border-radius: 37px; background: var(--surface); }
.mph__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 6px 12px; }
.mph__bar b { font-size: 21px; }
.mph__bar span { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.scanbox { padding: 16px 14px 12px; border-radius: 20px; background: #221a1d; color: #f5c9d3; font-size: 12px; text-align: center; }
.scanbox__frame { position: relative; width: 164px; max-width: 100%; height: 84px; margin: 0 auto 10px; padding: 20px 22px; color: #fff; }
.scanbox__frame i { position: absolute; width: 22px; height: 22px; border: 3px solid #fff; }
.scanbox__frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.scanbox__frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.scanbox__frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.scanbox__frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.scanbox__frame .bc { display: block; width: 100%; height: 100%; fill: #fff; }
.scanbox__frame em { position: absolute; left: 10px; right: 10px; top: 41px; height: 2px; background: #22c55e; box-shadow: 0 0 12px #22c55e; }
@media (prefers-reduced-motion: no-preference) { .scanbox__frame em { animation: scanline 2.6s ease-in-out infinite; } }
@keyframes scanline { 0%, 100% { transform: translateY(-18px); } 50% { transform: translateY(18px); } }
.mph__list { margin: 10px 0 0; padding: 0; list-style: none; }
.mph__list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.mph__name { min-width: 0; color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mph__name small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.mph__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--ink); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.mph__price .chip { padding: 0 7px; font-size: 10px; line-height: 16px; }
.mph__tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 12px 10px 16px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.mph__tabs .is-on { color: var(--primary-ink); }

/* Ряд фактов под первым экраном */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 64px 0 0; padding: 0; list-style: none; }
.facts li { padding: 0 0 0 20px; border-left: 2px solid var(--primary-tint); }
.facts b { display: block; color: var(--ink); font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
.facts span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.4; }

/* --- Текст + макет --------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.split--rev > :first-child { order: 2; }
.split .sec__title, .dark .sec__title { font-size: clamp(26px, 3.2vw, 38px); }
.split__viz { display: flex; justify-content: center; }
.ticks { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 14px; }
.ticks .ico { margin-top: 3px; color: var(--ok); }
.ticks b { display: block; font-size: 17px; }
.ticks span span { display: block; font-size: 15.5px; }

/* Карточки-макеты */
.mcard { width: 100%; max-width: 440px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-lg); }
.mcard__hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mcard__hd b { font-size: 17px; }
.mcard__hd > span:not(.chip) { color: var(--muted); font-size: 13px; text-align: right; }
.mlist { margin: 0; padding: 0; list-style: none; }
.mlist li { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.mlist li > b { margin-left: auto; white-space: nowrap; }
.mlist__ico { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ok-tint); color: var(--ok-ink); flex-shrink: 0; }
.mlist__t { min-width: 0; color: var(--ink); font-weight: 600; line-height: 1.3; }
.mlist__t small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.mcard__sum { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 4px 4px; }
.mcard__sum b { font-size: 24px; letter-spacing: -.02em; }
.mcard__btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.mbtn { display: inline-flex; padding: 9px 16px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; }
.mbtn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.inv { display: flex; align-items: center; gap: 18px; margin: 4px 0 10px; }
.inv__num b { display: block; font-size: 34px; line-height: 1; letter-spacing: -.03em; }
.inv__num span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.inv__bar { flex: 1; height: 10px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.inv__bar i { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.mlist--status li { gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpis div { padding: 12px; border-radius: 14px; background: var(--tint); }
.kpis span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.kpis b { display: block; margin-top: 2px; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.mchart { display: block; width: 100%; height: 124px; fill: var(--primary-tint); }
.mchart .hi { fill: var(--primary); }
.mchart__x { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 12px; }
.label { width: 260px; max-width: 100%; padding: 18px 20px 14px; border-radius: 12px; background: #fff; color: #111; box-shadow: var(--shadow-lg); font-family: var(--font); }
.label__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.label__top b { color: #111; font-size: 15px; }
.label__top span { font-size: 17px; font-weight: 700; white-space: nowrap; }
.label .bc { display: block; width: 100%; height: 54px; fill: #111; }
.label__code { margin-top: 4px; font-size: 13px; letter-spacing: .2em; text-align: center; }
.labels { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.labels .label:nth-child(1) { transform: rotate(-4deg) translateX(-34px); }
.labels .label:nth-child(2) { transform: rotate(2deg) translateX(30px); }

/* --- Тёмный блок (отчёты) -------------------------------------------------- */
.dark { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; padding: 60px; border-radius: 34px; background: var(--night); color: #d8c3ca; }
.dark h2, .dark h3, .dark b { color: #fff; }
.dark .eyebrow { background: rgba(255, 255, 255, .09); color: #ffc2cf; }
.dark .sec__lead { color: #d8c3ca; }
.dark .ticks .ico { color: #4ade80; }
.dark .mcard { --surface: #fff; --ink: #221a1d; --muted: #6e656a; --line: #f0e6e9; --tint: #fff5f7; --primary-tint: #ffe0e7; --primary: #e11d48; color: #4a4246; border-color: transparent; }
.dark .mcard b { color: #221a1d; }

/* --- Приложение ------------------------------------------------------------ */
.app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; padding: 56px; border-radius: 34px; background: var(--tint); }
.app__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.app__viz { display: flex; justify-content: center; }
.note-sm { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* --- Шаги ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { padding: 32px; border-radius: var(--r-card); background: var(--tint); counter-increment: step; }
.step::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; background: var(--grad); color: #fff; font-size: 24px; font-weight: 700; }
.step h3 { font-size: 21px; line-height: 1.25; }
.step p { margin: 10px 0 0; font-size: 16px; }

/* --- Вопросы и ответы ------------------------------------------------------ */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item { margin-bottom: 12px; border-radius: 20px; background: var(--tint); }
.faq__q { display: flex; align-items: center; gap: 16px; padding: 22px 26px; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.35; list-style: none; cursor: pointer; border-radius: 20px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ''; }
.faq__q h3 { flex: 1 1 auto; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: 0; }
.faq__q .ico { color: var(--primary-ink); transition: transform .2s; }
.faq__item[open] .faq__q .ico { transform: rotate(45deg); }
.faq__q:hover { color: var(--primary-ink); }
.faq__a { padding: 0 26px 24px; font-size: 16px; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a a { text-decoration: underline; text-underline-offset: 3px; }

/* --- Призыв ---------------------------------------------------------------- */
.cta { position: relative; padding: 72px 40px; border-radius: 34px; background: var(--grad); color: rgba(255, 255, 255, .9); text-align: center; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 48px 48px; -webkit-mask-image: radial-gradient(70% 90% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 90% at 50% 50%, #000, transparent); }
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.14; }
.cta p { max-width: 580px; margin: 16px auto 30px; font-size: 19px; }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }

/* --- Внутренние страницы: первый экран ------------------------------------- */
.phero { padding: 52px 0 0; }
.phero__in { max-width: 820px; }
.phero--center .phero__in { margin: 0 auto; text-align: center; }
.phero--center .crumbs, .phero--center .phero__cta { justify-content: center; }
.phero h1 { font-size: clamp(32px, 4.8vw, 52px); line-height: 1.1; letter-spacing: -.03em; }
.phero__lead { margin: 18px 0 0; font-size: 19px; line-height: 1.55; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 18px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.crumbs li:not(:last-child)::after { content: '/'; margin: 0 8px; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary-ink); }

/* --- Возможности: подробные разделы ---------------------------------------- */
.fsec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; padding: 64px 0 0; }
.fsec--rev > :first-child { order: 2; }
.fsec h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.fsec__viz { display: flex; justify-content: center; }
.fsec .prose { margin-top: 14px; }

/* --- Текст справки и документов --------------------------------------------- */
.prose { color: var(--text); font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
.prose--wide { max-width: 860px; margin: 0 auto; }
.prose h2 { margin: 40px 0 12px; font-size: 26px; line-height: 1.25; }
.prose h3 { margin: 28px 0 10px; font-size: 20px; line-height: 1.3; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--primary-ink); }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary-ink) 40%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose code, .prose kbd { padding: 1px 6px; border-radius: 6px; background: var(--tint); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.note { margin: 20px 0; padding: 16px 20px; border-left: 3px solid var(--primary); border-radius: 0 var(--r) var(--r) 0; background: var(--tint); font-size: 16px; }
.note--ok { border-left-color: var(--ok); }
.note--warn { border-left-color: var(--warn); background: var(--warn-tint); }
.note p:last-child { margin-bottom: 0; }
.steps-list { counter-reset: sl; list-style: none; padding-left: 0 !important; }
.steps-list > li { position: relative; padding-left: 42px; margin-bottom: 12px; counter-increment: sl; }
.steps-list > li::before { content: counter(sl); position: absolute; left: 0; top: 1px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; background: var(--primary-tint); color: var(--primary-ink); font-size: 14px; font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--tint); }

/* Справка: меню слева, текст справа */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 44px; }
.docs__nav { position: sticky; top: calc(var(--hdr-h) + 20px); align-self: start; max-height: calc(100vh - var(--hdr-h) - 40px); overflow: auto; font-size: 15px; }
.docs__nav-home { display: block; margin-bottom: 6px; padding: 8px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; }
.docs__nav-home:hover { background: var(--tint); }
.docs__nav-group { margin: 18px 0 6px; padding: 0 12px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.docs__nav ul { margin: 0; padding: 0; list-style: none; }
.docs__nav a:not(.docs__nav-home) { display: block; padding: 7px 12px; border-radius: 10px; color: var(--text); line-height: 1.35; }
.docs__nav a:not(.docs__nav-home):hover { background: var(--tint); color: var(--ink); }
.docs__nav a.is-on { background: var(--primary-tint); color: var(--primary-ink); font-weight: 600; }
.docs__menu { display: none; }
.docs__menu summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--ink); font-weight: 600; list-style: none; cursor: pointer; }
.docs__menu summary::-webkit-details-marker { display: none; }
.docs__menu summary::marker { content: ''; }
.docs__menu-ico { margin-left: auto; color: var(--primary-ink); transition: transform .2s; }
.docs__menu[open] .docs__menu-ico { transform: rotate(45deg); }
.docs__menu nav { padding: 0 6px 12px; font-size: 15px; }
.docs__menu:not([open]) nav { display: none; }
.docs__menu ul { margin: 0; padding: 0; list-style: none; }
.docs__menu a:not(.docs__nav-home) { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text); }
.docs__menu a.is-on { background: var(--primary-tint); color: var(--primary-ink); font-weight: 600; }
.docs__body { min-width: 0; max-width: 800px; }
.docs__body h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; letter-spacing: -.03em; }
.docs__body > .phero__lead { margin-bottom: 30px; }
.docs__pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.docs__pager a { display: flex; flex-direction: column; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font-weight: 600; max-width: 48%; }
.docs__pager a:hover { border-color: var(--primary); color: var(--primary-ink); }
.docs__pager a.next { text-align: right; margin-left: auto; }
.docs__pager small { color: var(--muted); font-size: 13px; font-weight: 500; }
.docs__help { margin-top: 28px; color: var(--muted); font-size: 15px; }

/* Документы */
.legal { padding-top: 44px; }
.legal__doc { max-width: 880px; margin: 0 auto; padding: 44px 52px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.legal__doc h1 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; }
.legal__edition { margin: 6px 0 28px; color: var(--muted); font-style: italic; }
.legal__doc h2 { margin: 32px 0 10px; font-size: 20px; line-height: 1.35; }
.legal__doc p { margin: 0 0 10px; }
.legal__doc ul { margin: 0 0 10px; padding-left: 22px; }
.legal__doc li { margin-bottom: 5px; }
.legal__doc a { text-decoration: underline; text-underline-offset: 3px; }
.legal__doc .crumbs a { text-decoration: none; }

/* Контакты */
.contact { display: flex; flex-direction: column; gap: 6px; }
.contact__big { color: var(--ink); font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.req { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; font-size: 16px; }
.req dt { color: var(--muted); }
.req dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

/* 404 */
.nf { padding: 96px 0 20px; text-align: center; }
.nf__code { display: block; font-size: clamp(80px, 16vw, 150px); line-height: 1; font-weight: 700; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { margin-top: 10px; font-size: clamp(28px, 4vw, 40px); }
.nf .phero__cta { justify-content: center; }

/* --- Подвал ---------------------------------------------------------------- */
.ftr { margin-top: 104px; padding: 56px 0 32px; border-top: 1px solid var(--line); background: var(--tint); font-size: 15px; }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.ftr__about p { max-width: 360px; margin: 14px 0 0; }
.ftr__contact a { overflow-wrap: anywhere; }
.ftr__h { margin: 10px 0 14px; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.ftr ul { margin: 0; padding: 0; list-style: none; }
.ftr li { margin-bottom: 4px; }
.ftr li a { display: inline-block; padding: 4px 0; color: var(--text); }
.ftr li a:hover { color: var(--primary-ink); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* --- Планшет --------------------------------------------------------------- */
@media (max-width: 1100px) {
    .float--a { left: 0; }
    .float--b { right: 0; }
}
@media (max-width: 960px) {
    .sec { padding-top: 80px; }
    .hero__in, .split, .dark, .app, .fsec { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .split--rev > :first-child, .fsec--rev > :first-child { order: 0; }
    .hero__visual { margin-top: 8px; }
    .grid--3, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--4, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dark, .app { padding: 44px 34px; }
    .docs { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .docs__nav { display: none; }
    .docs__menu { display: block; margin-bottom: 28px; border-radius: var(--r); background: var(--tint); }
    .ftr { margin-top: 80px; }
    .ftr__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ftr__about { grid-column: 1 / -1; }
}

/* --- Телефон --------------------------------------------------------------- */
@media (max-width: 720px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .hdr__in { gap: 10px; }
    .logo { font-size: 18px; gap: 9px; }
    .logo__mark { width: 34px; height: 34px; }
    .sec { padding-top: 64px; }
    .sec--tight { padding-top: 40px; }
    .sec__head { margin-bottom: 32px; }
    .sec__lead, .hero__lead, .phero__lead { font-size: 17px; }
    .hero { padding-top: 36px; }
    .hero__cta { flex-direction: column; align-items: stretch; }
    .hero__cta .btn, .hero__cta .play { justify-content: center; }
    .hero__trust { flex-direction: column; gap: 8px; }
    .float { display: none; }
    .grid--2, .grid--3, .steps { grid-template-columns: minmax(0, 1fr); }
    .facts { gap: 24px 14px; margin-top: 44px; }
    .facts li { padding-left: 14px; }
    .card, .step, .feat { padding: 24px; }
    .dark, .app { padding: 30px 20px; border-radius: 26px; }
    .mcard { padding: 16px; }
    .kpis { gap: 6px; }
    .kpis div { padding: 10px 8px; }
    .kpis b { font-size: 15px; }
    .labels .label:nth-child(1) { transform: rotate(-3deg) translateX(-10px); }
    .labels .label:nth-child(2) { transform: rotate(2deg) translateX(10px); }
    .faq__q { padding: 18px 18px; font-size: 16.5px; }
    .faq__a { padding: 0 18px 18px; }
    .cta { padding: 48px 20px; border-radius: 26px; }
    .cta__btns { flex-direction: column; align-items: stretch; }
    .cta .btn { white-space: normal; }
    .cta .play { justify-content: center; }
    .app__btns { flex-direction: column; align-items: stretch; }
    .app__btns .btn, .app__btns .play { justify-content: center; }
    .phero { padding-top: 32px; }
    .phero__cta { flex-direction: column; }
    /* Крошки: невидимо растут до 44px под палец, строка не меняется. */
    .crumbs a { display: inline-block; padding: 13px 0; margin: -13px 0; }
    .prose { font-size: 16px; }
    .prose h2 { font-size: 22px; }
    /* Таблицы справки на телефоне: строка карточкой, первая ячейка заголовком. */
    .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
    .prose thead { display: none; }
    .prose tr { margin-bottom: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--tint); }
    .prose td { padding: 2px 0; border: 0; }
    .prose td:first-child { color: var(--ink); font-weight: 600; }
    .docs { padding-top: 28px; }
    .docs__pager { flex-direction: column; }
    .docs__pager a { max-width: none; }
    .legal { padding-top: 24px; padding-left: 0; padding-right: 0; }
    .legal__doc { padding: 26px 18px; border-radius: 0; border-left: 0; border-right: 0; font-size: 15px; }
    .ftr { margin-top: 64px; padding-top: 44px; }
    .ftr__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .req { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .req dd { margin-bottom: 10px; }
}
@media (max-width: 400px) {
    .hide-xs { display: none; }
    .show-xs { display: inline; }
    .hdr__side .btn--sm { padding: 8px 16px; }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .mph { width: 100%; }
}

/* ── Статьи (/stati/…: st_site_article_start/end) и список статей ─────────── */
.feat h2.feat__h { font-size: 18px; line-height: 1.3; margin: 0; }
.art .legal__edition { font-style: normal; }
.art .prose h2 { margin: 36px 0 12px; font-size: 24px; line-height: 1.3; }
.art .prose h3 { margin: 24px 0 8px; font-size: 19px; line-height: 1.35; }
.art .prose ol { margin: 0 0 12px; padding-left: 24px; }
.art .prose li { margin-bottom: 6px; }
.art .note { margin: 18px 0; }
.art .faq { max-width: none; }
.art__faq-h { margin: 40px 0 14px; font-size: 24px; line-height: 1.3; }
@media (max-width: 640px) {
    .art .prose h2, .art__faq-h { font-size: 21px; }
}
