/* Шрифт Manrope (SIL OFL 1.1, web/fonts/OFL.txt) — на своём сайте, без Google Fonts; переменная толщина 200–800,
   браузер скачивает только нужные наборы знаков (латиница, кириллица, греческий) */
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-cyrillic-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-greek-wght-normal.woff2) format('woff2'); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Лендинг autoracle.app (index.html, собирается web/src/build-landing.js). Цвета — как в приложении. */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF; --alt: #F4F6F5; --surface: #FFFFFF; --text: #1C1F24; --muted: #5F6670; --border: #E3E6E8;
  --primary: #2F6F62; --primary-dark: #22544A; --primary-soft: #E7F2EF; --on-primary: #FFFFFF; --accent: #F2B544;
  --shadow: 0 10px 30px rgba(20, 40, 35, .10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417; --alt: #171A1E; --surface: #1D2125; --text: #ECEDEF; --muted: #A3A9B1; --border: #2C3137;
    --primary: #5FB3A1; --primary-dark: #2F6F62; --primary-soft: #1D2D29; --on-primary: #0E1A17;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; }
p { margin: 0; }
.lwrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 800px; }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 19px; margin-right: auto; }
.logo img { border-radius: 9px; display: block; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }
.langs { display: flex; gap: 4px; }
.langs button { background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 3px 8px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.langs button.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 700; border-radius: 12px; padding: 14px 22px; font-size: 17px; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-small { padding: 8px 16px; font-size: 15px; border-radius: 10px; }
.btn-light { background: #FFFFFF; color: #22544A; }

/* Первый экран */
.hero { background: linear-gradient(135deg, #2F6F62 0%, #22544A 55%, #183D36 100%); color: #FFFFFF; padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.badge { display: inline-block; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.02em; margin-bottom: 18px; }
.lead { font-size: 19px; opacity: .92; max-width: 600px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 8px; border: 1px dashed rgba(255, 255, 255, .5); border-radius: 12px; padding: 12px 18px; font-weight: 600; opacity: .85; }
/* значок обрезан по чёрной плашке (без прозрачных полей): высота как у соседних кнопок, тень — по форме значка */
.play-badge { display: inline-flex; border-radius: 9px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.play-badge img { display: block; height: 55px; width: auto; }
.play-badge:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.cta-note { margin-top: 12px; font-size: 14px; opacity: .75; }

/* Макет экрана подтверждения */
.mock { display: flex; justify-content: center; }
.phone { width: 300px; background: #FFFFFF; color: #1C1F24; border-radius: 28px; padding: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); border: 8px solid #10201C; transform: rotate(2deg); }
.receipt { display: flex; align-items: center; gap: 10px; background: #F4F6F5; border: 1px dashed #C9D3D0; border-radius: 12px; padding: 12px; color: #5F6670; font-size: 14px; margin-bottom: 14px; }
.receipt .ic { width: 28px; height: 28px; color: #2F6F62; }
.rec-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.rec-title img { border-radius: 7px; }
.field { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #EEF0F1; font-size: 14px; }
.field span { color: #5F6670; }
.field b { background: #E7F2EF; border-radius: 6px; padding: 0 6px; }
.mock-btn { margin-top: 14px; background: #2F6F62; color: #FFFFFF; text-align: center; border-radius: 10px; padding: 11px; font-weight: 700; font-size: 15px; }

/* Разделы */
.sec { padding: 72px 0; }
.sec.alt { background: var(--alt); }
.sec h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.01em; margin-bottom: 14px; }
.sec-lead { color: var(--muted); font-size: 18px; max-width: 720px; margin-bottom: 8px; }
.grid { display: grid; gap: 18px; margin-top: 28px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.pain, .step, .feature, .extra, .plan { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.pain h3 { font-size: 17px; margin-bottom: 8px; }
.pain p, .step p, .extra p { color: var(--muted); font-size: 15px; }
.step h3 { font-size: 19px; margin: 12px 0 6px; }
.num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--on-primary); align-items: center; justify-content: center; font-weight: 800; }
.f-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.f-head h3 { font-size: 20px; }
.f-ic { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--on-primary); align-items: center; justify-content: center; flex: none; }
.f-ic .ic { width: 24px; height: 24px; }
.f-ic.small { width: 40px; height: 40px; }
.f-ic.small .ic { width: 22px; height: 22px; }
.f-ic.big { width: 64px; height: 64px; }
.f-ic.big .ic { width: 34px; height: 34px; }
.why { color: var(--primary); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; font-size: 15px; }
.ic-check { width: 18px; height: 18px; fill: var(--primary); flex: none; margin-top: 3px; }
.sub { font-size: 22px; margin-top: 48px; }
.extra { display: flex; gap: 14px; align-items: flex-start; }
.extra .f-ic { color: #FFFFFF; }
.extra h4 { font-size: 16px; margin-bottom: 4px; }

.orik { display: flex; gap: 32px; align-items: center; }
.orik img { border-radius: 32px; flex: none; box-shadow: var(--shadow); }
.orik p { font-size: 18px; color: var(--muted); max-width: 720px; }

.plans { align-items: stretch; }
.plan h3 { font-size: 22px; }
.price { font-size: 30px; font-weight: 800; color: var(--primary); margin: 6px 0 16px; }
.plan.pro { border: 2px solid var(--primary); position: relative; }
.packs { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; background: var(--primary-soft); border-radius: 16px; padding: 18px 22px; }
.packs .ic { width: 28px; height: 28px; color: var(--primary); }
.packs h4 { margin-bottom: 4px; }
.packs p { color: var(--muted); font-size: 15px; }

.trust { display: flex; gap: 28px; align-items: flex-start; }
.trust ul { margin: 16px 0; }

.qa { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-top: 12px; }
.qa summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.ic-chev { width: 22px; height: 22px; fill: var(--muted); flex: none; transition: transform .15s ease; }
.qa[open] .ic-chev { transform: rotate(180deg); }
.qa p { padding: 0 20px 18px; color: var(--muted); }
.qa:first-of-type { margin-top: 24px; }

.final { background: linear-gradient(135deg, #2F6F62, #183D36); color: #FFFFFF; text-align: center; padding: 72px 0; }
.final h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.final p { opacity: .9; font-size: 18px; max-width: 640px; margin: 0 auto 26px; }

.foot { border-top: 1px solid var(--border); }
.foot-row { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 36px; color: var(--muted); font-size: 14px; }

/* Полоса цифр под первым экраном */
.stats { background: var(--surface); border-bottom: 1px solid var(--border); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 28px; text-align: center; }
.stats b { display: block; font-size: 44px; line-height: 1.1; font-weight: 800; color: var(--primary); }
.stats span { color: var(--muted); font-size: 15px; }
.stats .st-ic { display: flex; justify-content: center; gap: 2px; margin-bottom: 6px; }
.stats .st-ic .ic { width: 26px; height: 26px; fill: var(--primary); opacity: .8; }

/* «Знакомо?» — проблемы тёплым приглушённым тоном (решения дальше — зелёным) */
.pain-ic { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; background: #FCEBE4; align-items: center; justify-content: center; margin-bottom: 12px; }
.pain-ic .ic { width: 22px; height: 22px; fill: #C65A33; }
@media (prefers-color-scheme: dark) { .pain-ic { background: #3A2620; } .pain-ic .ic { fill: #F0A285; } }

/* «Как это работает» — три шага одной схемой */
.flow { display: flex; align-items: stretch; gap: 10px; margin-top: 28px; }
.flow .step { flex: 1; text-align: center; }
.step-ic { position: relative; display: inline-flex; width: 76px; height: 76px; border-radius: 50%; background: var(--primary-soft); align-items: center; justify-content: center; }
.step-ic .ic { width: 38px; height: 38px; fill: var(--primary); }
.step-ic.orik-ic img { border-radius: 16px; display: block; }
.step-ic .num { position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; font-size: 14px; box-shadow: 0 0 0 3px var(--surface); }
.flow-arrow { display: flex; align-items: center; color: var(--primary); }
.flow-arrow .ic { width: 28px; height: 28px; fill: var(--primary); opacity: .6; }
.flow-arrow .a-down { display: none; }


/* Мини-экраны: светлая и тёмная версии (браузеры с принудительным затемнением их не трогают — color-scheme) */
:root {
  --viz-bg: #F7F9F8; --viz-card: #FFFFFF; --viz-text: #1C1F24; --viz-muted: #5F6670; --viz-line: #E3E8E6; --viz-line-strong: #C9D3D0;
  --viz-bar: #CFE3DD; --viz-soft: #E7F2EF; --viz-soft-text: #22544A; --viz-ok: #1B7F55;
  --viz-ring-orange: #FBE3D8; --viz-ring-amber: #FDEFD3; --viz-amber-text: #B45309;
}
@media (prefers-color-scheme: dark) {
  :root {
    --viz-bg: #181D1B; --viz-card: #222926; --viz-text: #ECEDEF; --viz-muted: #A3A9B1; --viz-line: #333B37; --viz-line-strong: #4A544F;
    --viz-bar: #2D4A43; --viz-soft: #1D2D29; --viz-soft-text: #8FD3C2; --viz-ok: #5FD39B;
    --viz-ring-orange: #4A2A1D; --viz-ring-amber: #4A3A15; --viz-amber-text: #F5B54A;
  }
}

/* Инфографика к функциям — мини-экраны (цвета как в приложении; своя тёмная версия — переменные --viz-*) */
.viz { background: var(--viz-bg); color: var(--viz-text); border: 1px solid var(--viz-line); border-radius: 14px; padding: 16px; margin-bottom: 18px; font-size: 14px; min-height: 176px; }
.viz .ic { width: 18px; height: 18px; }
.viz-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.viz-row.small { font-size: 12px; color: var(--viz-muted); margin-top: 2px; }
.viz-label { color: var(--viz-muted); font-size: 13px; font-weight: 600; }
.viz-big { font-size: 24px; }
.viz-note { color: var(--viz-muted); font-size: 12px; margin-top: 10px; }
.viz-docs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.docs { display: flex; flex-direction: column; gap: 5px; }
.doc { display: flex; align-items: center; gap: 6px; background: var(--viz-card); border: 1px solid var(--viz-line); border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 600; transform: rotate(var(--r)); box-shadow: 0 2px 4px rgba(0, 0, 0, .05); }
.doc .ic { width: 14px; height: 14px; fill: #2F6F62; }
.arrow img { border-radius: 10px; display: block; }
.filled { display: flex; flex-direction: column; gap: 7px; background: var(--viz-card); border-radius: 10px; padding: 10px; border: 1px solid var(--viz-line); }
.filled .bar { height: 8px; border-radius: 4px; background: var(--viz-bar); }
.filled b { display: flex; gap: 5px; align-items: flex-start; font-size: 12px; color: var(--viz-ok); }
.filled .ic-check { width: 14px; height: 14px; margin-top: 2px; }
.formats { grid-column: 1 / -1; text-align: center; color: var(--viz-muted); font-size: 12px; font-weight: 600; }
.share { display: flex; gap: 2px; height: 16px; margin: 12px 0; }
.share span { border-radius: 3px; }
.share span:first-child { border-radius: 6px 3px 3px 6px; }
.share span:last-child { border-radius: 3px 6px 6px 3px; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: 12px; color: var(--viz-text); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.km { display: flex; gap: 24px; align-items: flex-end; justify-content: center; margin-top: 8px; }
.km-col { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 90px; }
.km-col span { font-size: 12px; color: var(--viz-muted); }
.km-col b { font-size: 20px; }
.km-bar { display: block; width: 46px; border-radius: 8px 8px 3px 3px; background: #2a78d6; margin-top: 4px; }
.km-bar.own { background: #2F6F62; }
.timeline { list-style: none; margin: 0 0 6px; padding: 0; }
.timeline li { display: flex; gap: 10px; position: relative; padding-bottom: 10px; }
.timeline li i { width: 12px; height: 12px; border-radius: 50%; background: #eb6834; margin-top: 4px; flex: none; box-shadow: 0 0 0 3px var(--viz-ring-orange); }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--viz-line); }
.timeline b { display: block; font-size: 13px; }
.timeline span { font-size: 12px; color: var(--viz-muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--viz-soft); color: var(--viz-soft-text); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.pill .ic { width: 14px; height: 14px; }
.wear { margin-bottom: 9px; font-size: 13px; }
.wear b { font-size: 12px; }
.track { height: 8px; border-radius: 4px; background: var(--viz-line); overflow: hidden; margin-top: 4px; }
.track span { display: block; height: 100%; border-radius: 4px; }
.rem { display: flex; gap: 10px; align-items: center; background: var(--viz-card); border: 1px solid var(--viz-line); border-radius: 10px; padding: 8px 10px; margin-bottom: 7px; }
.rem .dot { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.rem b { display: block; font-size: 13px; }
.rem span { font-size: 12px; color: var(--viz-muted); }
.miles { display: flex; justify-content: space-between; position: relative; margin: 18px 4px 6px; }
.miles::before { content: ""; position: absolute; left: 10px; right: 10px; top: 10px; height: 3px; background: var(--viz-line); }
.mile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.mile i { width: 22px; height: 22px; border-radius: 50%; background: var(--viz-card); border: 3px solid var(--viz-line-strong); display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.mile.done i { background: #22A06B; border-color: #22A06B; }
.mile.done .ic-check { fill: #fff; width: 14px; height: 14px; margin: 0; }
.mile.next i { border-color: #F59E0B; box-shadow: 0 0 0 4px var(--viz-ring-amber); }
.mile em { font-style: normal; font-size: 11px; color: var(--viz-amber-text); }
.route { width: 100%; height: 70px; color: var(--viz-muted); display: block; }
.likely { text-align: center; margin-top: 6px; }
.likely span { display: block; font-size: 12px; color: var(--viz-muted); }
.likely b { font-size: 26px; color: #2F6F62; }
.likely em { display: block; font-style: normal; font-size: 12px; color: var(--viz-muted); }
.person { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.ava { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 13px; }
.ava .ic { fill: #fff; }
.person b { font-size: 13px; }
.role { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--viz-soft); color: var(--viz-soft-text); border-radius: 999px; padding: 2px 8px; }
.person.mech { background: var(--viz-card); border: 1px dashed var(--viz-line-strong); border-radius: 10px; padding: 7px 10px; margin: 4px 0 0; }
.person.mech .ava { background: #eb6834; }
.person.mech span:not(.ava) { display: block; font-size: 12px; color: var(--viz-muted); }
.viz.chat { display: flex; flex-direction: column; gap: 7px; }
.bubble { font-size: 12.5px; line-height: 1.35; border-radius: 14px; padding: 7px 11px; max-width: 86%; }
.bubble.me { align-self: flex-end; background: #2F6F62; color: #fff; border-bottom-right-radius: 4px; }
.bubble.orik { align-self: flex-start; display: flex; gap: 7px; align-items: flex-start; background: var(--viz-card); border: 1px solid var(--viz-line); border-bottom-left-radius: 4px; }
.bubble.orik img { border-radius: 7px; flex: none; }
.bubble.search span { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--viz-soft-text); }
.bubble.search .ic { width: 14px; height: 14px; margin: 0; }

/* Узкие экраны */
@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .phone { transform: none; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 48px; }
  .sec { padding: 48px 0; }
  .orik, .trust { flex-direction: column; gap: 18px; }
  .orik img { width: 110px; height: 110px; }
  .lead { font-size: 17px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats b { font-size: 36px; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow-arrow { justify-content: center; }
  .flow-arrow .a-right { display: none; }
  .flow-arrow .a-down { display: block; }
}

/* Языки: показывается один (lang.js ставит data-lang на <html>); без JavaScript — все */
html[data-lang] [lang-block] { display: none; }
html[data-lang="ru"] [lang-block="ru"],
html[data-lang="en"] [lang-block="en"],
html[data-lang="pl"] [lang-block="pl"],
html[data-lang="uk"] [lang-block="uk"],
html[data-lang="de"] [lang-block="de"],
html[data-lang="es"] [lang-block="es"],
html[data-lang="fr"] [lang-block="fr"],
html[data-lang="it"] [lang-block="it"],
html[data-lang="ro"] [lang-block="ro"],
html[data-lang="cs"] [lang-block="cs"],
html[data-lang="el"] [lang-block="el"],
html[data-lang="pt"] [lang-block="pt"],
html[data-lang="hu"] [lang-block="hu"] { display: block; }
html[data-lang="tr"] [lang-block="tr"] { display: block; }
html[data-lang="nl"] [lang-block="nl"] { display: block; }
html[data-lang="sk"] [lang-block="sk"] { display: block; }
html[data-lang="bg"] [lang-block="bg"] { display: block; }
html[data-lang="hr"] [lang-block="hr"] { display: block; }
html[data-lang="ru"] span[lang-block="ru"],
html[data-lang="en"] span[lang-block="en"],
html[data-lang="pl"] span[lang-block="pl"],
html[data-lang="uk"] span[lang-block="uk"],
html[data-lang="de"] span[lang-block="de"],
html[data-lang="es"] span[lang-block="es"],
html[data-lang="fr"] span[lang-block="fr"],
html[data-lang="it"] span[lang-block="it"],
html[data-lang="ro"] span[lang-block="ro"],
html[data-lang="cs"] span[lang-block="cs"],
html[data-lang="el"] span[lang-block="el"],
html[data-lang="pt"] span[lang-block="pt"],
html[data-lang="hu"] span[lang-block="hu"] { display: inline; }
html[data-lang="tr"] span[lang-block="tr"] { display: inline; }
html[data-lang="nl"] span[lang-block="nl"] { display: inline; }
html[data-lang="sk"] span[lang-block="sk"] { display: inline; }
html[data-lang="bg"] span[lang-block="bg"] { display: inline; }
html[data-lang="hr"] span[lang-block="hr"] { display: inline; }

/* «Что умеет»: у карточек в одном ряду мини-экран, заголовок, «зачем» и тезисы — на одной высоте
   (общая сетка строк — subgrid), содержимое мини-экрана — по центру своей строки */
.features-grid .feature { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
.features-grid .viz { display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.features-grid .viz-docs { display: grid; align-content: center; }

/* Первый экран: анимация распознавания чека (решение от 2026-10-06 — вместо видео; ~0 КБ).
   Цикл 8 с: луч сканера проходит по фото → поля появляются по очереди → кнопка подсвечивается */
.receipt { position: relative; overflow: hidden; }
.receipt .scan { position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: linear-gradient(180deg, transparent, rgba(47, 111, 98, .35) 70%, rgba(47, 111, 98, .8)); opacity: 0; animation: scan 8s ease-in-out infinite; pointer-events: none; }
@keyframes scan { 0% { top: -40%; opacity: 0; } 4% { opacity: 1; } 20% { top: 100%; opacity: 1; } 22%, 100% { top: 100%; opacity: 0; } }
.phone .field { animation: fieldIn 8s ease-out infinite; animation-delay: calc(var(--i) * 0.35s); }
@keyframes fieldIn { 0%, 20% { opacity: 0; transform: translateY(6px); } 28% { opacity: 1; transform: none; } 92% { opacity: 1; } 100% { opacity: 0; } }
.mock-btn { animation: savePulse 8s ease-in-out infinite; }
@keyframes savePulse { 0%, 60% { box-shadow: 0 0 0 0 rgba(47, 111, 98, 0); transform: none; } 66% { box-shadow: 0 0 0 8px rgba(47, 111, 98, .25); transform: scale(1.03); } 74%, 100% { box-shadow: 0 0 0 0 rgba(47, 111, 98, 0); transform: none; } }
.store .ic { width: 18px; height: 18px; }

/* «Что умеет»: подписи под столбиками стоимости км */
.km-col small { display: block; max-width: 130px; text-align: center; font-size: 11px; line-height: 1.3; color: var(--viz-muted); margin-top: 6px; }

/* Крупный Орик (web/src/orik-art.js): кивок и взмах — один раз при появлении блока, моргание — всегда */
.orik { align-items: center; }
.orik-art { width: 260px; height: auto; flex: none; overflow: visible; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .18)); }
.orik-art .ok-head { transform-box: view-box; transform-origin: 100px 152px; }
.orik-art .ok-wave { transform-box: view-box; transform-origin: 52px 166px; }
.orik-art.in .ok-head { animation: okNod 1.6s ease-in-out .5s 1; }
.orik-art.in .ok-wave { animation: okWave 2.2s ease-in-out .2s 1; }
.orik-art .ok-lids { opacity: 0; animation: okBlinkLids 5s infinite; }
.orik-art .ok-eyes { animation: okBlinkEyes 5s infinite; }
@keyframes okNod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(5deg) translateY(2px); } 60% { transform: rotate(-1deg); } }
@keyframes okWave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-12deg); } 80% { transform: rotate(3deg); } }
@keyframes okBlinkEyes { 0%, 95%, 100% { opacity: 1; } 96%, 99% { opacity: 0; } }
@keyframes okBlinkLids { 0%, 95%, 100% { opacity: 0; } 96%, 99% { opacity: 1; } }
.orik-say p { font-size: 17px; color: var(--muted); max-width: 680px; margin-top: 10px; }
.orik-say p:first-of-type { font-size: 19px; font-weight: 600; color: var(--text); }

/* Тарифы */
.price small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.price-alt { color: var(--muted); font-size: 14px; margin: -8px 0 14px; }
.price-note { color: var(--muted); font-size: 14px; margin: 12px 0 0; text-align: center; }
.plan-extras { margin-top: 18px; }
/* Страна без ИИ (html.ai-blocked): пояснение вместо «Орик Про» и пакетов */
.region-note { display: none; gap: 14px; align-items: flex-start; margin-bottom: 18px; background: var(--primary-soft); border: 2px solid var(--primary); border-radius: 16px; padding: 18px 22px; }
.region-note .ic { width: 28px; height: 28px; flex: none; color: var(--primary); }
.region-note h4 { margin-bottom: 4px; }
.region-note p { color: var(--muted); font-size: 15px; }
.ai-blocked .region-note { display: flex; }
.ai-blocked .plan.pro, .ai-blocked .plan-extras { display: none; }
.ai-blocked .plans { grid-template-columns: 1fr; }
.plan-extras .packs { margin-top: 0; height: 100%; }
.pack-list { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.pack-list li { margin-bottom: 4px; }

/* Кто отключил анимацию в системе — всё статично */
@media (prefers-reduced-motion: reduce) {
  .receipt .scan, .phone .field, .mock-btn, .orik-art .ok-head, .orik-art .ok-wave, .orik-art .ok-eyes, .orik-art .ok-lids { animation: none !important; }
  .orik-art .ok-lids { opacity: 0; }
}
@media (max-width: 640px) {
  .orik-art { width: 200px; }
}

/* «Что умеет» с развёрнутыми пунктами (тексты пользователя, 2026-10-06): больше воздуха между пунктами,
   на планшете и уже — одна колонка (две узкие с длинным текстом читаются тяжело) */
.feature .checks li { margin-bottom: 12px; line-height: 1.55; }
.feature .checks li:last-child { margin-bottom: 0; }
@media (max-width: 960px) {
  .features-grid { grid-template-columns: 1fr; }
  .features-grid .feature { max-width: 720px; justify-self: center; width: 100%; }
}

/* Шапка в одну строку (2026-10-06): языки — выпадающим списком, «Войти» — справа; на телефоне ниже и плотнее */
.top-row { flex-wrap: nowrap; gap: 12px; }
.logo { min-width: 0; }
.logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235F6670'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 4px center / 18px; color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 6px 24px 6px 10px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; flex: none; }
.lang-select option { color: #1C1F24; }
.top-row .btn-small { flex: none; white-space: nowrap; }
@media (max-width: 640px) {
  .top-row { min-height: 52px; padding-top: 6px; padding-bottom: 6px; gap: 8px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo img { width: 30px; height: 30px; }
  .top-row .btn-small { padding: 7px 12px; font-size: 14px; }
}

/* Калькулятор поездки — отдельный крупный блок (решение пользователя от 2026-10-11) */
.calc-sec { background: linear-gradient(180deg, var(--alt) 0%, transparent 100%); }
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.calc-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: var(--on-primary); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.calc-badge .ic { width: 18px; height: 18px; fill: currentColor; }
.calc-points { margin: 18px 0 24px; }
.calc-points li { margin-bottom: 12px; line-height: 1.55; }
.calc-note { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 560px; }
.calc-viz { min-height: 0; padding: 20px; box-shadow: var(--shadow); position: sticky; top: 88px; }
.calc-total { display: flex; flex-direction: column; margin: 14px 0 12px; }
.calc-total span { font-size: 13px; color: var(--viz-muted); font-weight: 600; }
.calc-total b { font-size: 34px; line-height: 1.1; }
.calc-total em { font-style: normal; font-size: 13px; color: var(--viz-muted); }
.calc-bar { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; }
.calc-bar i { display: block; height: 100%; }
.calc-legend { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 12px; font-size: 12px; }
.calc-legend span { display: flex; align-items: center; gap: 6px; }
.calc-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.calc-adj { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.calc-adj .ic { width: 14px; height: 14px; fill: currentColor; }
.calc-line { padding: 8px 0; border-top: 1px solid var(--viz-line); }
.calc-line span { display: inline-flex; align-items: center; gap: 6px; }
.calc-line .ic { fill: var(--viz-muted); }
.calc-rules { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--viz-line); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.calc-rules div { display: flex; gap: 8px; align-items: flex-start; }
.calc-rules .ic { width: 16px; height: 16px; flex: none; fill: var(--viz-soft-text); margin-top: 1px; }
@media (max-width: 960px) {
  .calc { grid-template-columns: 1fr; gap: 24px; }
  .calc-viz { position: static; }
}
.sec[id] { scroll-margin-top: 64px; }

/* ───────── Сайт со страницами функций (2026-10-23) ───────── */
/* Полосы разделов: чередуются два заметно разных фона, у каждого раздела — цветная подпись над заголовком.
   Так видно, где раздел начинается и кончается, без тяжёлых рамок вокруг целых блоков. */
:root { --band-a: #FFFFFF; --band-b: #EEF4F1; --card-shadow: 0 1px 2px rgba(20, 40, 35, .06), 0 4px 14px rgba(20, 40, 35, .06); --accent-text: #F2B544; }
@media (prefers-color-scheme: dark) {
  :root { --band-a: #121417; --band-b: #1A1F1E; --card-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25); }
}
.band-a { background: var(--band-a); }
.band-b { background: var(--band-b); border-top: 1px solid color-mix(in srgb, var(--primary) 10%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--primary) 10%, transparent); }
.band-b .card, .band-b .qa { background: var(--surface); }
.band-calc { background: linear-gradient(180deg, color-mix(in srgb, #2a78d6 9%, var(--band-a)) 0%, var(--band-a) 100%); border-top: 1px solid color-mix(in srgb, #2a78d6 18%, transparent); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: currentColor; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--card-shadow); }
.sec h2 { margin-bottom: 12px; }

/* Кнопки */
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 12px 20px; }
.btn-ghost:hover { background: var(--primary-soft); box-shadow: none; }
.btn .ic { width: 20px; height: 20px; }
.cta-row.center { justify-content: center; }

/* Первый экран: короче текст, крупный заголовок с выделенной частью, три галочки и строка доверия */
.hero { position: relative; padding: 72px 0 80px; background: radial-gradient(1200px 500px at 85% -10%, rgba(242, 181, 68, .18), transparent 60%), linear-gradient(135deg, #2F6F62 0%, #22544A 55%, #163832 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--accent-text) 0 48px, transparent 48px 84px); opacity: .55; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent-text); white-space: nowrap; }
.hero .lead { max-width: 600px; }
.hero .lead { font-size: 18px; line-height: 1.65; }
.hero-bullets { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.hero-bullets li { display: flex; gap: 10px; align-items: center; font-size: 17px; font-weight: 600; }
.hero-bullets .ic-check { fill: var(--accent-text); width: 22px; height: 22px; margin: 0; }
.hero-trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; opacity: .8; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); }
.hero .badge { text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; font-weight: 800; }
.phone { width: 310px; }

/* Карточки функций — ссылки на страницы (цветная полоска сверху — цвет функции) */
.fgrid { gap: 20px; }
.fcard { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--c); border-radius: 18px; padding: 20px; box-shadow: var(--card-shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.fcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 40, 35, .14); border-color: color-mix(in srgb, var(--c) 45%, var(--border)); border-top-color: var(--c); }
.fcard .viz { min-height: 168px; display: flex; flex-direction: column; justify-content: center; }
.fcard .viz-docs { display: grid; align-content: center; }
.fcard .f-head h3 { font-size: 18px; }
.fcard .f-ic { color: #fff; width: 40px; height: 40px; }
.fwhy { color: var(--muted); font-size: 15px; flex: 1; }
.fmore { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: var(--c); font-size: 15px; }
.fmore .ic { width: 18px; height: 18px; transition: transform .15s ease; }
.fcard:hover .fmore .ic { transform: translateX(3px); }
@media (prefers-color-scheme: dark) { .fmore { color: color-mix(in srgb, var(--c) 70%, #fff); } }

/* «И ещё» — плашки-ссылки */
a.extra { text-decoration: none; color: var(--text); transition: transform .15s ease, border-color .15s ease; }
a.extra:hover { transform: translateY(-2px); border-color: var(--primary); }
.extras .extra { padding: 16px; }
.extras .extra h4 { font-size: 15px; }
.extras .extra p { font-size: 14px; }
.more-link { text-align: center; margin-top: 28px; }

/* Шапка: меню-гамбургер на узких экранах */
.burger { display: none; position: relative; }
.burger summary { list-style: none; cursor: pointer; display: flex; padding: 6px; border-radius: 10px; border: 1px solid var(--border); }
.burger summary::-webkit-details-marker { display: none; }
.burger .ic { width: 22px; height: 22px; fill: var(--text); }
.burger .ic-close, .burger[open] .ic:not(.ic-close) { display: none; }
.burger[open] .ic-close { display: block; }
.burger-nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; min-width: 220px; display: flex; flex-direction: column; }
.burger-nav a { padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; }
.burger-nav a:hover { background: var(--primary-soft); }
@media (max-width: 860px) { .nav { display: none; } .burger { display: block; } }

/* Подвал */
.foot { background: var(--band-b); border-top: 1px solid var(--border); padding: 40px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.6fr 1fr 1.2fr; gap: 28px; }
.foot-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.foot-grid > div > a:not(.logo) { display: block; color: var(--text); text-decoration: none; font-size: 14px; padding: 3px 0; }
.foot-grid > div > a:not(.logo):hover { color: var(--primary); }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 280px; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.foot-langs a { color: var(--muted); text-decoration: none; }
.foot-langs a[aria-current] { color: var(--primary); font-weight: 700; }
.foot-copy { margin-top: 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* Страница функции */
.page-hero { padding: 36px 0 56px; background: linear-gradient(180deg, color-mix(in srgb, var(--c, #2F6F62) 12%, var(--band-a)) 0%, var(--band-a) 100%); border-bottom: 1px solid var(--border); }
.page-hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 14px; }
.page-hero .lead { font-size: 19px; color: var(--muted); max-width: 680px; }
.page-hero .f-ic.big { color: #fff; margin-top: 18px; }
.page-hero .cta-row { margin-top: 24px; }
.page-hero-viz .viz { box-shadow: var(--shadow); background: var(--viz-bg); padding: 20px; min-height: 200px; display: flex; flex-direction: column; justify-content: center; }
.page-hero-viz .viz-docs { display: grid; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs .ic { width: 16px; height: 16px; fill: var(--muted); }
.facts-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.facts .checks li { font-size: 16px; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 15px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.fsec { padding: 56px 0; }
.fsec-grid { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.fsec-text h2 { font-size: clamp(24px, 3vw, 32px); margin: 10px 0 16px; }
.fsec-text h3 { font-size: 19px; margin: 22px 0 8px; }
.fsec-text p { font-size: 17px; line-height: 1.7; margin-bottom: 14px; max-width: 760px; }
.fsec-text .checks { margin: 4px 0 16px; max-width: 760px; }
.fsec-text .checks li { font-size: 16px; line-height: 1.6; margin-bottom: 10px; }
.fsec-text a, .qa-a a, .facts a { color: var(--primary); font-weight: 600; }
.plan-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; }
.plan-free { background: #DDF3E8; color: #146C43; }
.plan-pro { background: #FDEBC8; color: #8A5300; }
.plan-mixed { background: #E3ECFB; color: #1F4E9A; }
@media (prefers-color-scheme: dark) { .plan-free { background: #173A2A; color: #7FD9A8; } .plan-pro { background: #3D2E10; color: #F5C46A; } .plan-mixed { background: #1B2A44; color: #9CBCF2; } }
.tip { display: flex; gap: 12px; align-items: flex-start; background: var(--primary-soft); border-left: 4px solid var(--primary); border-radius: 0 14px 14px 0; padding: 14px 16px; margin: 6px 0 16px; max-width: 760px; }
.tip img { border-radius: 9px; flex: none; }
.tip p { margin: 0 !important; font-size: 16px !important; font-style: italic; }
.howto a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.howto .ic { width: 18px; height: 18px; fill: currentColor; }
.shot { margin: 0; position: sticky; top: 90px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 28px; border: 8px solid #10201C; box-shadow: var(--shadow); background: #10201C; }
.qa-a { padding: 0 20px 18px; color: var(--muted); }
.qa-a p { padding: 0; margin-bottom: 8px; }
.qa-a .checks li { font-size: 15px; }
.cta-sub { margin-top: 16px; }
.cta-sub a { color: #fff; opacity: .85; }
.final .store { color: #fff; }
@media (max-width: 960px) {
  .page-hero-grid, .facts-grid { grid-template-columns: 1fr; }
  .fsec-grid { grid-template-columns: 1fr; }
  .shot { position: static; max-width: 260px; margin: 8px auto 0; }
}

/* Мини-экран «ДТП»: шаги по порядку */
.steps { margin: 10px 0 12px; padding-left: 22px; font-size: 13px; }
.steps li { margin-bottom: 5px; }
.steps li::marker { color: #E5484D; font-weight: 800; }

/* Бесплатный калькулятор поездки (страница калькулятора, web/calc.js) */
.ct-grid { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 24px; align-items: start; margin-top: 24px; }
.ct-form { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.ct-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.ct-field input, .ct-field select { font: inherit; font-size: 16px; font-weight: 500; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0; }
.ct-field input:focus, .ct-field select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.ct-find { display: flex; gap: 8px; }
.ct-find .btn-small { padding: 8px 12px; border-width: 2px; flex: none; }
.ct-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ct-results:empty { display: none; }
.ct-results button { text-align: left; width: 100%; background: var(--primary-soft); color: var(--text); border: 0; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.ct-results button:hover { outline: 2px solid var(--primary); }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.ct-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.ct-submit { justify-content: center; }
.ct-submit:disabled { opacity: .6; cursor: progress; }
.ct-error { color: #C0392B; font-weight: 600; font-size: 15px; }
.ct-captcha:empty { display: none; }
.ct-out { display: flex; flex-direction: column; gap: 16px; }
.ct-map { height: 320px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--viz-bg); }
.ct-svg { width: 100%; height: auto; display: block; }
.ct-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; box-shadow: var(--card-shadow); }
.ct-card h4 { font-size: 17px; margin-bottom: 10px; }
.ct-head h3 { font-size: 20px; }
.ct-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.ct-total { display: flex; flex-direction: column; margin: 16px 0 12px; }
.ct-total span { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ct-total b { font-size: 44px; line-height: 1.1; color: var(--primary); }
.ct-total em { font-style: normal; color: var(--muted); }
.ct-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-lines div { background: var(--band-b); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; }
.ct-lines span { font-size: 13px; color: var(--muted); }
.ct-lines b { font-size: 20px; }
.ct-warn { margin-top: 10px; font-size: 14px; color: #9A5B00; }
.ct-table { overflow-x: auto; }
.ct-card table, .ct-print table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ct-card th, .ct-card td, .ct-print th, .ct-print td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ct-card th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ct-card td small { display: block; color: var(--muted); font-size: 12px; }
.ct-muted { color: var(--muted); font-size: 13px; margin-top: 8px; }
.ct-rules { margin: 0 0 12px; padding-left: 20px; }
.ct-rules li { margin-bottom: 4px; }
.ct-lock { display: flex; gap: 12px; align-items: flex-start; background: repeating-linear-gradient(135deg, var(--band-b) 0 10px, var(--surface) 10px 20px); border: 1px dashed var(--primary); border-radius: 14px; padding: 14px 16px; margin-top: 12px; }
.ct-lock-ic { font-size: 22px; line-height: 1; }
.ct-lock p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.ct-more ul { list-style: none; padding: 0; margin: 0 0 16px; }
.ct-more li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.ct-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ct-print { display: none; }
@media (max-width: 860px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-form { position: static; }
  .ct-map { height: 240px; }
}

/* PDF (печать браузера): на бумаге — только сводка расчёта */
/* «Сохранить в PDF» калькулятора: после расчёта calc.js переносит заполненный .ct-print прямо в body — тогда печатается
   только он, остальное страницы места не занимает (visibility: hidden давало десяток пустых листов) */
@media print {
  body:has(> .ct-print:not(:empty)) > *:not(.ct-print) { display: none !important; }
  body > .ct-print:not(:empty) { display: block; width: 100%; color: #1C1F24; background: #fff; font-size: 12pt; }
  .ct-print-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .ct-print-brand img { border-radius: 8px; }
  .ct-print-brand b { font-size: 18pt; }
  .ct-print-brand span { color: #5F6670; }
  .ct-print .ct-svg { max-height: 200px; border: 1px solid #E3E6E8; border-radius: 10px; margin-bottom: 10px; }
  .ct-print h4 { margin: 14px 0 6px; }
  .ct-print .ct-total b { color: #2F6F62; font-size: 28pt; }
  .ct-print .ct-lines div { background: #F4F6F5; }
  .ct-print ul { padding-left: 18px; }
  .ct-print li { margin-bottom: 3px; word-break: break-all; }
  .ct-print-more { margin-top: 14px; border: 1px dashed #2F6F62; border-radius: 10px; padding: 10px 14px; }
  .ct-print-more li { word-break: normal; }
  .ct-print-foot { margin-top: 14px; color: #5F6670; font-size: 10pt; }
}

/* Узкие экраны: скрытый результат калькулятора не занимает место; поля в ряд и карточки сжимаются; длинные слова (de, el, hu) переносятся */
.ct-out[hidden], .ct-error[hidden] { display: none; }
.ct-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ct-grid > *, .fgrid > *, .grid > * { min-width: 0; }
.viz-docs { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.fcard h3, .fwhy, .extra h4, .extra p, .page-hero h1, .fsec-text h2, .qa summary { overflow-wrap: break-word; hyphens: auto; }

/* Страницы популярных маршрутов (/<язык>/routes/<slug>/) */
.rt-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.rt-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 2px; }
.rt-card span { font-size: 13px; color: var(--muted); font-weight: 600; }
.rt-card b { font-size: 26px; line-height: 1.15; color: var(--text); }
.rt-card em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.rt-round { margin-top: 10px; color: var(--muted); font-size: 15px; }
.rt-map { height: 380px; margin-top: 8px; }
.rt-note { margin-top: 14px; color: var(--muted); font-size: 15px; }
.rt-h3 { font-size: 20px; margin: 26px 0 10px; }
/* «Что важно знать в пути» — правила по странам маршрута (2026-11-16) */
.rt-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.rt-rules ul { margin: 8px 0 0; padding-left: 18px; }
.rt-rules li { margin: 6px 0; line-height: 1.5; }
@media (max-width: 960px) { .rt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .rt-cards { grid-template-columns: 1fr; } .rt-map { height: 260px; } }
.rt-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.rt-links a { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--text); font-weight: 700; box-shadow: var(--card-shadow); transition: border-color .15s ease, transform .15s ease; }
.rt-links a:hover { border-color: #2a78d6; transform: translateY(-2px); }
.rt-links a .ic { display: none; }
.rt-links small { font-weight: 500; color: var(--muted); font-size: 13px; }
.rt-group { font-size: 20px; margin: 28px 0 4px; }
.rt-group:first-child { margin-top: 0; }

/* Соцсети в подвале (web/social.json) */
.foot-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.foot-social span { width: 100%; font-size: 13px; color: var(--muted); font-weight: 700; }
.foot-social a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); transition: transform .15s ease, border-color .15s ease; }
.foot-social a:hover { transform: translateY(-2px); border-color: var(--primary); }
.foot-social svg { width: 18px; height: 18px; fill: var(--text); }

/* Цены на топливо в Европе (/<язык>/fuel-prices/, web/fuel.js) */
.fp-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fp-cards .rt-card b { font-size: 22px; }
.fp-table th { cursor: pointer; user-select: none; white-space: nowrap; }
.fp-table th[aria-sort="ascending"]::after { content: " ▲"; font-size: 10px; }
.fp-table th[aria-sort="descending"]::after { content: " ▼"; font-size: 10px; }
.fp-table td { white-space: nowrap; }
.fp-up { color: #C0392B; font-weight: 700; }
.fp-down { color: #1B7F55; font-weight: 700; }
.fp-routes { margin-top: 20px; }
.rt-card .fp-m { font: inherit; color: inherit; }
.fp-cur { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.fp-cur label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.fp-cur select { font: inherit; font-size: 14px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); max-width: 100%; }
.fp-rate { font-size: 13px; color: var(--muted); min-width: 0; }
.fp-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.fp-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.fp-seg button { background: transparent; border: 0; padding: 7px 12px; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.fp-seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.fp-add { font: inherit; font-size: 14px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.fp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.fp-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.fp-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.fp-chart { position: relative; }
.fp-chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.fp-grid { stroke: var(--border); stroke-width: 1; }
.fp-axis { fill: var(--muted); font-size: 12px; font-family: inherit; }
.fp-cursor { stroke: var(--muted); stroke-dasharray: 3 4; }
.fp-tip { position: absolute; top: 8px; min-width: 160px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; box-shadow: var(--shadow); font-size: 13px; display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
.fp-tip span { display: flex; align-items: center; gap: 6px; }
.fp-tip i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
@media (max-width: 960px) { .fp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Орик у калькулятора: ссылка на «Цены на топливо в Европе» */
a.fuel-teaser { text-decoration: none; color: var(--text); margin-top: 18px; align-items: center; transition: transform .15s ease, box-shadow .15s ease; }
a.fuel-teaser:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); }
a.fuel-teaser > span { display: flex; flex-direction: column; gap: 6px; }
a.fuel-teaser .ft-q { font-style: italic; font-size: 16px; }
a.fuel-teaser b { color: var(--primary); }

/* «Спросите Орика» — кнопка в углу и окошко вопросов (web/orik-ask.js) */
.ask-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 4px 18px 4px 4px; border: 1px solid var(--border); border-radius: 40px; background: var(--surface); color: var(--text); font: 700 15px/1.2 inherit; font-family: inherit; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s ease; }
.ask-fab:hover { transform: translateY(-2px); }
.ask-fab img { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-soft); display: block; }
.ask-fab.ask-hide { display: none; }
.ask-panel { position: fixed; right: 20px; bottom: 20px; z-index: 41; width: 380px; height: min(600px, calc(100vh - 40px)); display: none; flex-direction: column; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.ask-panel.ask-on { display: flex; }
.ask-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; background: var(--primary); color: var(--on-primary); }
.ask-head img { border-radius: 50%; background: var(--surface); display: block; }
.ask-head div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ask-head b { font-size: 16px; }
.ask-head span { font-size: 13px; opacity: .85; }
.ask-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.ask-x:hover { background: rgba(255, 255, 255, .15); }
.ask-log { position: relative; flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--alt); overscroll-behavior: contain; }
.ask-msg { max-width: 92%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.ask-msg p + p, .ask-msg p + .ask-card, .ask-msg .ask-card + p { margin-top: 8px; }
.ask-orik { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.ask-me { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 4px; }
.ask-also { color: var(--muted); font-size: 13px; font-weight: 600; }
.ask-card { border-left: 3px solid var(--primary); padding: 2px 0 2px 10px; }
.ask-card b { display: block; margin-bottom: 4px; }
.ask-a p + p { margin-top: 6px; }
.ask-more { display: inline-block; margin-top: 6px; font-weight: 700; text-decoration: none; }
.ask-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 6px; }
.ask-chip { text-align: left; border: 1px solid var(--primary); background: var(--primary-soft); color: var(--text); border-radius: 14px; padding: 6px 11px; font: 600 13.5px/1.35 inherit; font-family: inherit; cursor: pointer; }
.ask-chip:hover { background: var(--primary); color: var(--on-primary); }
.ask-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: var(--surface); }
.ask-form input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 22px; padding: 10px 14px; font: 16px/1.3 inherit; font-family: inherit; background: var(--bg); color: var(--text); }
.ask-form input:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.ask-form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--primary); color: var(--on-primary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ask-form svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 640px) {
  .ask-fab { right: 14px; bottom: 14px; padding: 3px; }
  .ask-fab img { width: 54px; height: 54px; }
  .ask-fab-t { display: none; }
  .ask-panel { right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
}
@media print { .ask-fab, .ask-panel { display: none !important; } }

/* Вариант кнопки: Орик по пояс в углу с кружкой кофе (web/src/orik-coffee.js; оси — от начала viewBox -6 22; анимация руки — в самой картинке) */
.ask-fab.ask-cup { right: 6px; bottom: 0; padding: 0; gap: 0; border: 0; border-radius: 0; background: none; box-shadow: none; align-items: flex-start; }
.ask-fab.ask-cup:hover { transform: translateY(-3px); }
.ask-cup .orik-cup { width: 118px; height: auto; display: block; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18)); }
.ask-bubble { position: relative; margin: 14px 4px 0 0; padding: 8px 13px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px; font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow); }
.ask-bubble::after { content: ''; position: absolute; right: -7px; top: 14px; width: 12px; height: 12px; background: var(--surface); border-right: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); }
.orik-cup .oc-head { transform-box: view-box; transform-origin: 106px 130px; animation: ocHead 9s ease-in-out infinite; }
.orik-cup .oc-steam { animation: ocSteamHide 9s linear infinite; }
.orik-cup .oc-steam path { animation: ocSteam 2.2s ease-in-out infinite; }
.orik-cup .oc-steam path + path { animation-delay: -1.1s; }
.orik-cup .oc-eyes { animation: ocEyes 9s infinite; }
.orik-cup .oc-lids { opacity: 0; animation: ocLids 9s infinite; }
@keyframes ocHead { 0%, 56%, 80%, 100% { transform: rotate(0); } 64%, 72% { transform: rotate(-4deg); } }
@keyframes ocSteam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes ocSteamHide { 0%, 48%, 92%, 100% { opacity: 1; } 52%, 88% { opacity: 0; } }
@keyframes ocEyes { 0%, 20%, 23%, 63%, 75%, 100% { opacity: 1; } 21%, 22%, 64%, 74% { opacity: 0; } }
@keyframes ocLids { 0%, 20%, 23%, 63%, 75%, 100% { opacity: 0; } 21%, 22%, 64%, 74% { opacity: 1; } }
@media (max-width: 640px) {
  .ask-fab.ask-cup { right: 2px; padding: 0; }
  .ask-cup .orik-cup { width: 84px; }
  .ask-bubble { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .orik-cup .oc-head, .orik-cup .oc-steam, .orik-cup .oc-steam path, .orik-cup .oc-eyes, .orik-cup .oc-lids { animation: none !important; }
  .orik-cup .oc-lids { opacity: 0; }
}
/* Ответ ИИ: «думаю…», ссылки на источники, ответ команды, отметка «есть ответ» на кнопке */
.ask-wait p::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: askDots 1.2s steps(4) infinite; }
@keyframes askDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.ask-src { display: block; margin-top: 4px; }
.ask-team { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.ask-captcha:empty { display: none; }
.ask-captcha { display: flex; justify-content: center; padding: 6px 10px 0; background: var(--surface); }
.ask-fab.ask-news .ask-bubble, .ask-fab.ask-news:not(.ask-cup)::after { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.ask-fab.ask-news .ask-bubble::after { background: var(--primary); border-color: var(--primary); }
.ask-fab.ask-news::before { content: ''; position: absolute; top: 4px; right: 14px; width: 14px; height: 14px; border-radius: 50%; background: #E5484D; border: 2px solid var(--surface); z-index: 1; }

/* Ролики YouTube (web/src/videos.js, web/videos.js): показываются, когда открыты */
.yt-links { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.yt-links a { font-weight: 700; text-decoration: none; }
.yt-links[hidden], .yt-links a[hidden], .yt-ov[hidden] { display: none; }
.yt-frame { aspect-ratio: 16 / 9; max-width: 760px; margin: 16px auto; border-radius: 16px; overflow: hidden; background: #1F4D44; display: flex; align-items: center; justify-content: center; }
.yt-frame iframe { width: 100%; height: 100%; border: 0; }
.yt-ov h2, .yt-ov .sec-lead, .yt-ov .more-link { text-align: center; }
