/* =====================================================================
   TelliApp design system — tokens
   ===================================================================== */
:root {
  --grad-a: #3D8FE6;
  --grad-b: #1F5FC5;
  --gradient: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  /* buttons: darker light stop so white text is >= 4.5:1 at every point (#2A6FD2 → 4.88:1, #1F5FC5 → 6.0:1) */
  --btn-grad-a: #2A6FD2;
  --btn-grad-b: #1F5FC5;
  --btn-gradient: linear-gradient(135deg, var(--btn-grad-a), var(--btn-grad-b));
  --accent: #2667D1;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(38, 103, 209, 0.10);
  --error: #B3261E;          /* form errors: 6.2:1 on #F6F8FC */
  --text: #111C2E;
  --text-muted: #5B6779;
  --bg: #F6F8FC;
  --card: #ffffff;
  --border: rgba(17, 28, 46, 0.10);
  --border-strong: rgba(17, 28, 46, 0.22);
  --shadow: 0 12px 36px rgba(17, 28, 46, 0.08), 0 1px 2px rgba(17, 28, 46, 0.04);
  --card-shadow: var(--shadow);
  --card-border: 1px solid transparent;

  /* hero is always dark */
  --hero-bg: #0B1220;
  --hero-text: #ffffff;
  --hero-muted: #B4C0D4;
  --hero-accent: #4F9BEA;
  --glow-a: #3D93EC;
  --glow-b: #1B5FC4;

  /* device frames + screenshot placeholders */
  --frame-chrome: #ffffff;
  --frame-border: rgba(17, 28, 46, 0.12);
  --frame-dot: #D3DAE6;
  --frame-pill: #EEF2F8;
  --frame-shadow: 0 24px 60px -24px rgba(17, 28, 46, 0.35), 0 2px 6px rgba(17, 28, 46, 0.06);
  --ph-a: #EEF2F8;
  --ph-b: #DCE5F3;
  --ph-text: #4E5B6F;
  --tint: #EAF0FA;
  --section-glow: rgba(61, 147, 236, 0.10);
  --accent-on-tint: #1F5FC5;   /* eyebrow/icons inside tinted sections: >= 4.5:1 even on the glow's brightest point */

  /* status badges (light surfaces) */
  /* schematic mock-ups on the home page (inline SVG, decorative) */
  --mk-bg: #FFFFFF; --mk-sf: #F1F5FB; --mk-ln: #DCE4F0; --mk-tx: #2B3A52; --mk-mu: #7B889D; --mk-ac: #2A6FD2; --mk-as: #DCE8FA; --mk-ok: #2E9E5B; --mk-wn: #E39B1B; --mk-on: #FFFFFF;
  --st-accepted-bg: #E3EDFB; --st-accepted-fg: #1B4FA3;
  --st-diag-bg: #EEE8FB;     --st-diag-fg: #5B2EB8;
  --st-await-bg: #FDF1DB;    --st-await-fg: #7A4E00;
  --st-repair-bg: #DDF4F6;   --st-repair-fg: #0B6370;
  --st-ready-bg: #DDF5E6;    --st-ready-fg: #146C3A;

  --radius: 24px;
  --radius-sm: 20px;
  --radius-xs: 12px;
  --radius-pill: 999px;
  --header-h: 72px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* type scale (phone → desktop) */
  --fs-display: clamp(2.125rem, 1.4rem + 3.4vw, 3.75rem);
  --fs-h1: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  --fs-h2: clamp(1.625rem, 1.2rem + 1.9vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.45vw, 1.25rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;
  --lh-tight: 1.1;
  --lh-snug: 1.2;
  --lh-body: 1.55;

  color-scheme: light;
}
:root[data-theme="dark"] {
  --frame-chrome: #1A2336; --frame-border: rgba(232, 238, 248, 0.12); --frame-dot: #34405A; --frame-pill: #243049;
  --frame-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --mk-bg: #131C2E; --mk-sf: #1A2437; --mk-ln: #2A3650; --mk-tx: #C9D4E6; --mk-mu: #7D8BA3; --mk-ac: #4F9BEA; --mk-as: #1D3150; --mk-ok: #45C07F; --mk-wn: #F2B84B; --mk-on: #FFFFFF;
  --ph-a: #1A2437; --ph-b: #121B2D; --ph-text: #A9B6CC; --tint: #0F1A2E; --section-glow: rgba(61, 147, 236, 0.22); --accent-on-tint: #6FB0F2;
  --accent: #4F9BEA;
  --accent-contrast: #0B1220;
  --accent-soft: rgba(79, 155, 234, 0.14);
  --error: #FF9B93;          /* 9.2:1 on #0B1220 */
  --text: #E8EEF8;
  --text-muted: #9FADC4;
  --bg: #0B1220;
  --card: #131C2E;
  --border: rgba(232, 238, 248, 0.10);
  --border-strong: rgba(232, 238, 248, 0.26);
  --shadow: none;
  --card-shadow: none;
  --card-border: 1px solid rgba(232, 238, 248, 0.12);
  --st-accepted-bg: rgba(79,155,234,0.16); --st-accepted-fg: #9CC7F5;
  --st-diag-bg: rgba(150,110,240,0.18);    --st-diag-fg: #C9B5FA;
  --st-await-bg: rgba(245,170,40,0.16);    --st-await-fg: #F5C96A;
  --st-repair-bg: rgba(40,190,210,0.16);   --st-repair-fg: #7FDDE8;
  --st-ready-bg: rgba(50,200,110,0.16);    --st-ready-fg: #8BE0AE;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --frame-chrome: #1A2336; --frame-border: rgba(232, 238, 248, 0.12); --frame-dot: #34405A; --frame-pill: #243049;
    --frame-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    --mk-bg: #131C2E; --mk-sf: #1A2437; --mk-ln: #2A3650; --mk-tx: #C9D4E6; --mk-mu: #7D8BA3; --mk-ac: #4F9BEA; --mk-as: #1D3150; --mk-ok: #45C07F; --mk-wn: #F2B84B; --mk-on: #FFFFFF;
    --ph-a: #1A2437; --ph-b: #121B2D; --ph-text: #A9B6CC; --tint: #0F1A2E; --section-glow: rgba(61, 147, 236, 0.22); --accent-on-tint: #6FB0F2;
    --accent: #4F9BEA;
    --accent-contrast: #0B1220;
    --accent-soft: rgba(79, 155, 234, 0.14);
    --error: #FF9B93;
    --text: #E8EEF8;
    --text-muted: #9FADC4;
    --bg: #0B1220;
    --card: #131C2E;
    --border: rgba(232, 238, 248, 0.10);
    --border-strong: rgba(232, 238, 248, 0.26);
    --shadow: none;
    --card-shadow: none;
    --card-border: 1px solid rgba(232, 238, 248, 0.12);
    --st-accepted-bg: rgba(79,155,234,0.16); --st-accepted-fg: #9CC7F5;
    --st-diag-bg: rgba(150,110,240,0.18);    --st-diag-fg: #C9B5FA;
    --st-await-bg: rgba(245,170,40,0.16);    --st-await-fg: #F5C96A;
    --st-repair-bg: rgba(40,190,210,0.16);   --st-repair-fg: #7FDDE8;
    --st-ready-bg: rgba(50,200,110,0.16);    --st-ready-fg: #8BE0AE;
    color-scheme: dark;
  }
}

/* ===== Manrope (self-hosted, variable 400–800) ===== */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/manrope-cyrillic.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-weight: 400 800; font-display: swap;
  src: url("/fonts/manrope-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/manrope-latin.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;
}

/* =====================================================================
   Base
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 500;
  color: var(--text); background: var(--bg);
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 0.4em; font-weight: 800; letter-spacing: -0.02em; line-height: var(--lh-snug); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
img, svg { display: block; max-width: 100%; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 24px; } }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.hero :focus-visible, .site-header--on-hero :focus-visible { outline-color: #fff; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--card); color: var(--text); border-radius: var(--radius-pill); box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

/* =====================================================================
   Components
   ===================================================================== */

/* --- Buttons (pill) --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius-pill);
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[hidden] { display: none; }   /* (the /notrack/ switch shows one of its two buttons) */
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 0.9375rem; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.1875rem; }   /* ≥18.67px bold = "large text" for WCAG on the gradient */
.btn--primary { background: var(--btn-gradient); color: #fff; box-shadow: 0 6px 18px rgba(38, 103, 209, 0.30); }
.btn--primary:hover { box-shadow: 0 10px 24px rgba(38, 103, 209, 0.38); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn--secondary-on-dark { color: #fff; border-color: rgba(255, 255, 255, 0.34); }
.btn--secondary-on-dark:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* --- Card --- */
.card {
  background: var(--card); color: var(--text);
  border-radius: var(--radius); box-shadow: var(--card-shadow); border: var(--card-border);
  padding: 24px;
}
.card--sm { border-radius: var(--radius-sm); padding: 20px; }

/* --- Status badge --- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 0.8125rem; font-weight: 700; line-height: 1.4; white-space: nowrap;
  background: var(--st-accepted-bg); color: var(--st-accepted-fg);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.badge--accepted { background: var(--st-accepted-bg); color: var(--st-accepted-fg); }
.badge--diag     { background: var(--st-diag-bg);     color: var(--st-diag-fg); }
.badge--await    { background: var(--st-await-bg);    color: var(--st-await-fg); }
.badge--repair   { background: var(--st-repair-bg);   color: var(--st-repair-fg); }
.badge--ready    { background: var(--st-ready-bg);    color: var(--st-ready-fg); }

/* --- Section head: eyebrow + title + subtitle --- */
.eyebrow {
  margin: 0 0 14px; font-size: var(--fs-eyebrow); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.eyebrow--on-dark { color: var(--hero-accent); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head__title { margin-bottom: 0.4em; }
.section-head__sub { margin: 0; font-size: var(--fs-lead); font-weight: 500; color: var(--text-muted); }

/* --- Check list (check mark from the logo icon) --- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list > li, .check-item { position: relative; padding-left: 34px; }
.check-list > li::before, .check-item::before {
  content: ""; position: absolute; left: 0; top: 0.1em;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft);
}
.check-list > li::after, .check-item::after {
  content: ""; position: absolute; left: 0; top: 0.1em; width: 24px; height: 24px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.4 12.6l3.6 3.6 6.4-7.4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.4 12.6l3.6 3.6 6.4-7.4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.check-list--on-dark > li::before, .hero .check-item::before { background: rgba(79, 155, 234, 0.18); }
.check-list--on-dark > li::after,  .hero .check-item::after  { background: var(--hero-accent); }

/* =====================================================================
   Header (sticky; transparent over the dark hero, surfaced afterwards)
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background-color .25s ease, border-color .25s ease;
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) { .site-header { background: var(--bg); } }
/* over the hero: see-through at the very top only; scrolled (site.js) → the hero's own navy with blur, so nothing shows through */
.site-header--on-hero { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header--on-hero.site-header--scrolled {
  background: color-mix(in srgb, var(--hero-bg) 97%, transparent); border-bottom-color: rgba(232, 238, 248, 0.10);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) { .site-header--on-hero.site-header--scrolled { background: var(--hero-bg); } }
/* without JS the header never leaves its "over the hero" state: solid navy all the way down */
:root:not(.has-js) .site-header--on-hero { background: var(--hero-bg); border-bottom-color: rgba(232, 238, 248, 0.10); }
.site-header__inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 40px; width: auto; }
.brand__logo--dark { display: none; }
:root[data-theme="dark"] .brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__logo--light { display: none; }
  :root:not([data-theme="light"]) .brand__logo--dark { display: block; }
}
/* over the hero the wordmark is always white */
.site-header--on-hero .brand__logo--light { display: none; }
.site-header--on-hero .brand__logo--dark { display: block; }

.site-header__controls { display: flex; align-items: center; gap: 10px; }

.site-nav { display: flex; gap: 2px; margin-right: 6px; }
.site-nav a { padding: 8px 12px; border-radius: var(--radius-pill); font-size: 0.9375rem; font-weight: 700; color: var(--text-muted); }
.site-nav a:hover { color: var(--text); background: var(--accent-soft); text-decoration: none; }
.site-header--on-hero .site-nav a { color: var(--hero-muted); }
.site-header--on-hero .site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.lang-switcher {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-pill);
}
.lang-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 34px; padding: 0 10px; border-radius: var(--radius-pill);
  font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted);
}
.lang-link:hover { text-decoration: none; color: var(--text); }
.lang-link.is-active { background: var(--accent); color: var(--accent-contrast); }

.theme-toggle, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: var(--card); border: 1px solid var(--border); color: var(--text); cursor: pointer;
}
.theme-toggle:hover { color: var(--accent); }
.icon--sun { display: none; }
:root[data-theme="dark"] .icon--sun { display: block; }
:root[data-theme="dark"] .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon--sun { display: block; }
  :root:not([data-theme="light"]) .icon--moon { display: none; }
}

/* over the hero: glassy controls on dark */
.site-header--on-hero .lang-switcher,
.site-header--on-hero .theme-toggle,
.site-header--on-hero .menu-toggle { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.site-header--on-hero .lang-link { color: var(--hero-muted); }
.site-header--on-hero .lang-link:hover { color: #fff; }
.site-header--on-hero .lang-link.is-active { background: rgba(255, 255, 255, 0.92); color: var(--hero-bg); }
.site-header--on-hero .theme-toggle:hover { color: var(--hero-accent); }

/* compact menu on phones */
.menu-toggle { display: none; }
.icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--burger { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }
/* Measured in Manrope 700 (character widths, not a real render — a few px of slack either way): with the menu's product
   item shortened to "Мастерская"/"Töökoda"/"Workshop" (the logo already carries the brand), et is the widest need at
   ~1088px of header content; the 1160px container leaves 1112px, so the desktop nav fits again with the container
   unchanged. The breakpoint only needs to be >= the container's own 1160px max-width — above that the inner width
   stops growing, so there is no "pinch" between here and 1160px; 1159px is used because the query is max-width. */
@media (max-width: 1159px) {
  .menu-toggle { display: inline-flex; }
  .site-header__controls {
    display: none;
    position: absolute; left: 16px; right: 16px; top: calc(100% + 6px);
    flex-direction: column; align-items: stretch; gap: 12px; padding: 16px;
    background: var(--card); color: var(--text);
    border-radius: var(--radius-sm); border: var(--card-border); box-shadow: var(--shadow);
  }
  .site-header--on-hero .site-header__controls { color: #fff; background: #131C2E; border: 1px solid rgba(232, 238, 248, 0.12); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
  .site-header--on-hero .site-header__controls .lang-switcher,
  .site-header--on-hero .site-header__controls .theme-toggle { background: rgba(255,255,255,0.06); }
  .site-header--on-hero .site-header__controls .lang-link.is-active { background: var(--hero-accent); color: var(--hero-bg); }
  .site-header__controls.is-open { display: flex; }
  .site-header__controls .lang-switcher { justify-content: center; }
  .site-header__controls .lang-link { flex: 1; }
  .site-header__controls .theme-toggle { width: 100%; height: 44px; }
  .site-header__controls .btn { width: 100%; }
  .site-nav { flex-direction: column; gap: 2px; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }
}
@media (max-width: 719px) { .brand__logo { height: 34px; } }

/* =====================================================================
   Hero (always dark) with blurred blue glow, rounded hand-off to the page
   ===================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 48px) 0 120px;
  background: var(--hero-bg); color: var(--hero-text);
}
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 55% at 18% 18%, rgba(61, 147, 236, 0.34) 0%, rgba(61, 147, 236, 0) 70%),
    radial-gradient(38% 50% at 84% 30%, rgba(27, 95, 196, 0.40) 0%, rgba(27, 95, 196, 0) 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(61, 147, 236, 0.16) 0%, rgba(61, 147, 236, 0) 70%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }   /* minmax: a wide child (card row) must not widen the column */
.hero__text { max-width: 620px; }
.hero__title { font-size: var(--fs-display); color: #fff; margin-bottom: 0.45em; }
.hero__subtitle { font-size: var(--fs-lead); font-weight: 500; color: var(--hero-muted); max-width: 560px; margin-bottom: 1.6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero__proof { margin: 0; font-size: var(--fs-small); font-weight: 600; color: var(--hero-muted); }
@media (max-width: 479px) { .hero__actions .btn { width: 100%; } }
/* compact hero: pages with a title and a line of text only (review page) */
.hero--compact { padding-bottom: 96px; }
.hero--compact .hero__title { font-size: var(--fs-h1); }
.hero--compact .hero__subtitle { margin-bottom: 0; }

/* page body overlaps the hero with a soft rounded edge */
.page-body { position: relative; z-index: 1; margin-top: -40px; background: var(--bg); border-radius: 40px 40px 0 0; }
.page-body::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; }

@media (min-width: 900px) {
  .hero { padding-bottom: 150px; }
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; }
}

/* --- entrance animation --- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__text > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hero__text > :nth-child(2) { animation-delay: .06s; }
.hero__text > :nth-child(3) { animation-delay: .12s; }
.hero__text > :nth-child(4) { animation-delay: .18s; }
.hero__text > :nth-child(5) { animation-delay: .24s; }
.hero__visual { animation: rise .8s cubic-bezier(.2,.7,.2,1) .2s both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .site-header { transition: none; }
  .hero__text > *, .hero__visual { animation: none; }
}

/* =====================================================================
   Screenshot slots: device frames (phone 9:19.5, browser window 16:10)
   <div class="shot shot--phone|--browser" data-slot="sNN"><div class="shot__screen"> <picture>…</picture> | placeholder </div></div>
   ===================================================================== */
.shot { position: relative; width: 100%; }
.shot__screen { position: relative; overflow: hidden; background: var(--ph-a); }
.shot__img { position: absolute; inset: 0; margin: 0; }
.shot__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* light/dark pairs follow the site theme; a lone file ("both") always shows */
.shot__img--dark { display: none; }
:root[data-theme="dark"] .shot__img--light { display: none; }
:root[data-theme="dark"] .shot__img--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot__img--light { display: none; }
  :root:not([data-theme="light"]) .shot__img--dark { display: block; }
}

/* phone: dark bezel, elliptical radii keep the corners round at any width */
.shot--phone { padding: 3.2%; background: #0F1626; border-radius: 12% / 5.7%; box-shadow: var(--frame-shadow), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.shot--phone .shot__screen { aspect-ratio: 9 / 19.5; border-radius: 10% / 4.6%; }

/* browser window: title bar with three dots and an address pill drawn with gradients, no extra markup */
.shot--browser { border-radius: 14px; overflow: hidden; background: var(--frame-chrome); border: 1px solid var(--frame-border); box-shadow: var(--frame-shadow); }
.shot--browser::before {
  content: ""; display: block; height: 30px; border-bottom: 1px solid var(--frame-border);
  background:
    radial-gradient(circle at 15px 15px, var(--frame-dot) 4.5px, transparent 5.5px),
    radial-gradient(circle at 31px 15px, var(--frame-dot) 4.5px, transparent 5.5px),
    radial-gradient(circle at 47px 15px, var(--frame-dot) 4.5px, transparent 5.5px),
    linear-gradient(var(--frame-pill), var(--frame-pill)) center 8px / calc(100% - 150px) 14px no-repeat,
    var(--frame-chrome);
}
.shot--browser .shot__screen { aspect-ratio: 16 / 10; }

/* document (acts, insurance report, label): a white sheet in both themes */
.shot--doc-a4, .shot--doc-label { border-radius: 6px; overflow: hidden; background: #fff; box-shadow: var(--frame-shadow), 0 0 0 1px var(--frame-border); }
.shot--doc-a4 .shot__screen { aspect-ratio: 210 / 297; background: #fff; }
.shot--doc-label .shot__screen { aspect-ratio: 958 / 449; background: #fff; }

/* placeholder until the real screenshot lands: soft gradient + small caption, no fake UI */
.shot__placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10%;
  background: linear-gradient(160deg, var(--ph-a), var(--ph-b));
}
.shot__caption { font-size: 0.8125rem; font-weight: 600; line-height: 1.35; color: var(--ph-text); text-wrap: balance; }
.shot__id { position: absolute; right: 10px; bottom: 8px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ph-text); opacity: 0.7; }
.shot--phone .shot__caption { font-size: 0.75rem; }

/* on the dark hero the frames are always dark, whatever the page theme */
.hero {
  --frame-chrome: #1A2336; --frame-border: rgba(232, 238, 248, 0.12); --frame-dot: #34405A; --frame-pill: #243049;
  --frame-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65);
  --ph-a: #1C2740; --ph-b: #121B2E; --ph-text: #B4C0D4;
  --mk-bg: #131C2E; --mk-sf: #1A2437; --mk-ln: #2A3650; --mk-tx: #C9D4E6; --mk-mu: #7D8BA3; --mk-ac: #4F9BEA; --mk-as: #1D3150; --mk-ok: #45C07F; --mk-wn: #F2B84B; --mk-on: #FFFFFF;
}

/* hero visual: browser window + phone overlapping its lower right; phone only on small screens */
.hero__visual { position: relative; width: 100%; max-width: 640px; margin: 0 auto; }
.hero__laptop { width: 88%; }
.hero__phone { position: absolute; right: 0; bottom: -36px; width: 28%; min-width: 150px; }
@media (min-width: 900px) { .hero__visual { padding: 56px 0 40px; } }
@media (max-width: 899px) {
  .hero__visual { max-width: 360px; }
  .hero__laptop { display: none; }
  .hero__phone { position: static; width: min(64%, 220px); margin: 0 auto; }
}

/* =====================================================================
   Home hero: what we do — real screenshots only (src/partials/home/hero-visual.html). Narrow screens: a list of the four
   directions (thumbnail 96 × 60, caption, chevron); from 1100px: laptop + phone + boiler-room card. Each part is display:none
   on the other side, and its images are lazy, so they are not downloaded there. 1100, not the usual 900: at 900–1099 (tablets,
   1024 landscape) the composition squeezed into half the width is too small and the two-column text pushes the second button
   below a 768 px high screen — there the home hero stays one column, the list (2 × 2) under the buttons.
   ===================================================================== */
.hero__visual.hero-dirs { max-width: none; padding: 0; }
@media (min-width: 900px) and (max-width: 1099px) { .hero--home .hero__inner { grid-template-columns: minmax(0, 1fr); } }

/* narrow: the list */
.hero-stage { display: none; }
.hero-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) and (max-width: 1099px) { .hero-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero-list__link {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px; height: 100%;
  padding: 8px 12px 8px 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(232, 238, 248, 0.12);
  color: #fff; font-size: 0.9375rem; font-weight: 700; line-height: 1.3; transition: background-color .2s ease, border-color .2s ease;
}
.hero-list__link:hover { text-decoration: none; background: rgba(255, 255, 255, 0.09); border-color: rgba(79, 155, 234, 0.6); }
.hero-list__media { display: block; width: 96px; height: 60px; overflow: hidden; border-radius: 8px; background: #1C2740; }
.hero-list__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* bots: no screenshot yet — a chat icon, not a made-up screen */
.hero-list__media--icon { display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, #1D3A66, #142038); }
.hero-list__media--icon svg { width: 28px; height: 28px; fill: none; stroke: var(--hero-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-list__label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* chevron drawn with borders (Manrope's subsets have no →) */
.hero-list__label::after {
  content: ""; flex: none; width: 7px; height: 7px; margin-right: 4px;
  border-top: 2px solid var(--hero-accent); border-right: 2px solid var(--hero-accent); transform: rotate(45deg);
}

/* wide: laptop (demo site) + phone (TelliApp Workshop) + boiler-room card, each a link with a small label */
@media (min-width: 1100px) {
  .hero-list { display: none; }
  .hero-stage { display: block; position: relative; padding: 36px 0 64px; }
  .hero-stage a { display: block; color: #fff; text-decoration: none; }
  .hero-stage__laptop { position: relative; width: 88%; margin-left: 6%; }
  .hero-stage__phone { position: absolute; z-index: 2; right: 0; bottom: 24px; width: 23%; min-width: 120px; }
  .hero-stage__heat {
    position: absolute; z-index: 2; left: 0; bottom: 0; width: 44%; padding: 10px;
    border-radius: 16px; background: #131C2E; border: 1px solid rgba(232, 238, 248, 0.14); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7);
    transition: border-color .2s ease;
  }
  .hero-stage__heat:hover { border-color: rgba(79, 155, 234, 0.6); }
  .hero-stage__heat-img { display: block; overflow: hidden; border-radius: 8px; background: #fff; }
  .hero-stage__heat-img img { width: 100%; height: auto; }
}
.laptop {
  display: block; padding: 2.4% 2.4% 1.8%; background: #0F1626; border-radius: 16px 16px 4px 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10), 0 30px 60px -20px rgba(0, 0, 0, 0.65);
}
.laptop__screen { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #1C2740; }
.laptop__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.laptop__base {
  display: block; position: relative; height: 14px; margin: 0 -7%;
  border-radius: 2px 2px 16px 16px / 2px 2px 12px 12px; background: linear-gradient(#46536E, #1F2940 55%, #141C2E);
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.6);
}
.laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #141C2E; }
.hero-tag {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  border-radius: var(--radius-pill); background: rgba(19, 28, 46, 0.94); border: 1px solid rgba(232, 238, 248, 0.18);
  font-size: 0.8125rem; font-weight: 700; line-height: 1.2; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7);
  transition: border-color .2s ease;
}
.hero-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hero-accent); }
.hero-stage__laptop .hero-tag { top: -16px; left: 18px; }
.hero-stage__phone .hero-tag { top: -16px; right: 8px; }
.hero-tag--in { position: static; margin: 0 2px 10px; padding: 0; background: none; border: 0; box-shadow: none; }
.hero-stage a:hover .hero-tag { border-color: var(--hero-accent); }

/* =====================================================================
   Sections
   ===================================================================== */
.section { position: relative; padding: 72px 0; }
@media (min-width: 720px) { .section { padding: 104px 0; } }
.section + .section { border-top: 1px solid var(--border); }
.section-head--tight { margin-bottom: 28px; }

/* highlighted sections: soft tint + blurred glow */
.section--tinted { --accent: var(--accent-on-tint); background: var(--tint); overflow: hidden; border-top: 0 !important; }
.section--tinted + .section { border-top: 0; }
.section__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(45% 60% at 12% 20%, var(--section-glow) 0%, rgba(61, 147, 236, 0) 70%);
}
.section__glow--right { background: radial-gradient(45% 60% at 88% 80%, var(--section-glow) 0%, rgba(61, 147, 236, 0) 70%); }
.section--tinted .container { position: relative; }

/* --- Path: numbered timeline, text left, screenshot right --- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 56px; position: relative; }
.step { display: grid; gap: 24px; align-items: center; }
.step__text { position: relative; padding-left: 64px; }
.step__num {
  position: absolute; left: 0; top: -2px; width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--btn-gradient); color: #fff; font-weight: 800; font-size: 1.125rem;
  box-shadow: 0 8px 20px rgba(38, 103, 209, 0.28);
}
.step__title { margin-bottom: 0.35em; }
.step__body { margin: 0; color: var(--text-muted); max-width: 46ch; }
.step__shot .shot--phone { max-width: 240px; margin: 0 auto; }
.step__shot .shot--browser { max-width: 640px; margin: 0 auto; }
.step__shot .shot--doc-a4 { max-width: 340px; margin: 0 auto; }
/* step 1: the intake on the phone next to the signed act */
.step__shot--duo { display: flex; align-items: flex-end; justify-content: center; gap: 4%; }
.step__shot--duo .shot--phone { width: 42%; max-width: 230px; margin: 0; }
.step__shot--duo .shot--doc-a4 { width: 52%; max-width: 300px; margin: 0; }
@media (min-width: 900px) {
  .steps { gap: 72px; }
  .steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--border-strong); opacity: 0.6; }
  .step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
  .step__text { align-self: start; padding-top: 6px; }
  .step__num { top: 4px; }
  .step__shot .shot--browser { margin: 0; }
}

/* --- Features / audience / data: card grids with stroke icons --- */
.feature-grid, .audience-grid, .data-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.audience-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.data-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 28px 24px; }
.feature { display: flex; flex-direction: column; }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
}
.feature__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature__title { font-size: 1.125rem; margin-bottom: 0.4em; }
.feature__text { margin: 0; color: var(--text-muted); font-size: var(--fs-body); }
.data-item { padding: 4px 0; }
/* 4 cards: 1 → 2 → 4 columns (no 3 + 1 orphan); 5 data items fit one row on desktop */
@media (min-width: 720px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid--4 > .card { padding: 24px 20px; } }
.data-grid--5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* Reviews (src/partials/shared/reviews.html; only built with >= 3 approved reviews for the page). Plain cards, no rating markup. */
.review-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review { display: flex; flex-direction: column; gap: 14px; overflow-wrap: anywhere; }
.review__rating { margin: 0; color: var(--accent); font-size: 1.125rem; letter-spacing: 0.12em; line-height: 1; }
.review__text { margin: 0; flex: 1; font-size: var(--fs-body); line-height: var(--lh-body); }
.review__text p { margin: 0; }
.review__text p + p { margin-top: 0.75em; }
.review__author { margin: 0; }
.review__who { font-weight: 700; }
.review__meta { margin: 0; color: var(--text-muted); font-size: var(--fs-small); }
.review-note { margin: 28px 0 0; max-width: 72ch; color: var(--text-muted); font-size: var(--fs-small); }
/* "soon": same card, a status badge in the top-right corner */
.soon-card { position: relative; }
.soon-card__badge { position: absolute; top: 24px; right: 20px; }

/* a tinted section right under the hero keeps the page body's rounded top edge */
.page-body > .section--tinted:first-child { border-radius: 40px 40px 0 0; }

/* --- Split layout (comms, contact): text + screenshot / form --- */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.split .check-list { font-weight: 600; }
.comms-list { gap: 18px; }
.comms-list__title { margin: 0 0 0.2em; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.comms-list__text { margin: 0; font-weight: 400; color: var(--text-muted); }
.comms-note { margin: 24px 0 0; font-size: var(--fs-small); font-weight: 600; color: var(--text-muted); }
/* three phones (status page, approval, post); narrow screens swipe them sideways inside the row, the page itself never scrolls */
.phone-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; width: 100%; max-width: 640px; margin: 0 auto; }
.phone-trio > .shot--phone:nth-child(2) { margin-top: 32px; }
@media (max-width: 599px) {
  .phone-trio { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 58%; overflow-x: auto; scroll-snap-type: x mandatory;
                width: auto; margin: 0 -16px; padding: 8px 16px 24px; scroll-padding: 0 16px; }
  .phone-trio > .shot { scroll-snap-align: start; }
  .phone-trio > .shot--phone:nth-child(2) { margin-top: 0; }
}

/* features: four screenshots under the cards, each on a tinted panel of the same size */
.shot-gallery { display: grid; gap: 24px; margin-top: 48px; }
@media (min-width: 720px) { .shot-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shot-gallery__item { margin: 0; }
.shot-gallery__media { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 4% 5%; border-radius: var(--radius); background: var(--tint); overflow: hidden; }
.shot-gallery__media .shot--doc-label { width: 86%; }
.shot-gallery__media .shot--doc-a4 { width: auto; height: 100%; aspect-ratio: 210 / 297; }
.shot-gallery__media .shot--doc-a4 .shot__screen { height: 100%; }
.shot-gallery__caption { margin: 12px 4px 0; font-weight: 700; }

/* «Ваши данные»: items on the left, the PIN screen on the right */
.data-layout { display: grid; gap: 40px; }
.data-layout__shot .shot--phone { max-width: 220px; margin: 0 auto; }
@media (min-width: 900px) {
  .data-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; align-items: center; }
  .data-layout__shot .shot--phone { max-width: none; }
}
.split__shot .shot--browser { max-width: 640px; margin: 0 auto; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; }
  .split__shot .shot--browser { margin: 0; }
  .split--contact { align-items: start; }
}

/* --- Pricing: 3 onboarding steps + price card --- */
.onboard { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 20px; counter-reset: onboard; }
@media (min-width: 720px) { .onboard { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.onboard__num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; background: var(--btn-gradient); color: #fff; font-weight: 800;
}
.price-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: 28px; border-radius: var(--radius); background: var(--card); border: var(--card-border); box-shadow: var(--card-shadow);
}
.price-card__text { flex: 1 1 320px; }
.price-card__price { margin: 0 0 6px; font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.01em; }
.price-card__note { margin: 0; color: var(--text-muted); }
@media (max-width: 479px) { .price-card .btn { width: 100%; } }

/* --- FAQ: native <details> accordion, no JS --- */
.faq { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; align-items: start; } .faq .section-head { margin-bottom: 0; } }
.faq__list { border-top: 1px solid var(--border-strong); }
.faq__item { border-bottom: 1px solid var(--border-strong); }
.faq__q {
  position: relative; list-style: none; cursor: pointer; padding: 18px 44px 18px 0;
  font-size: 1.0625rem; font-weight: 700; line-height: 1.35;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  color: var(--accent); transition: transform .2s ease;
}
.faq__item[open] .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__q:hover { color: var(--accent); }
.faq__a { margin: 0; padding: 0 44px 20px 0; color: var(--text-muted); }

/* --- Contact: form card (POST /api/lead; states driven by site.js) + contact buttons (Telegram/phone still placeholders) --- */
.contact-ways { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn__icon { flex: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { transform: none; }
.form { position: relative; display: grid; gap: 18px; padding: 28px; }
.form__hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }  /* honeypot: off-screen, not display:none (some bots check) */
.form__row { display: grid; gap: 6px; }
.form__label { font-size: var(--fs-small); font-weight: 700; }
.form__optional { font-weight: 500; color: var(--text-muted); }
.form__input {
  width: 100%; min-height: 48px; padding: 11px 16px; border-radius: 14px;
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border-strong); transition: border-color .15s ease;
}
.form__input::placeholder { color: var(--text-muted); opacity: 1; }
.form__input:hover { border-color: var(--accent); }
.form__input:focus { border-color: var(--accent); outline-offset: 2px; }
.form__input--area { resize: vertical; min-height: 120px; }
/* project type: native select with our own chevron (data: URI is allowed by img-src); grey arrow reads on both themes */
.form__input--select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238592A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px 20px;
}
:root[data-theme="dark"] .form__input--select { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form__input--select { color-scheme: dark; } }
.form__submit { justify-self: start; }
@media (max-width: 479px) { .form__submit { width: 100%; justify-self: stretch; } }
.form__note { margin: -6px 0 0; font-size: var(--fs-small); color: var(--text-muted); }
.form__status { margin: -6px 0 0; font-size: var(--fs-small); color: var(--text-muted); }
.form__status--error { color: var(--error); font-weight: 600; }
.form__status--error a { color: inherit; text-decoration: underline; }
.form__status--sent { font-size: 1.0625rem; color: var(--text); margin: 0; }
.form__status--sent strong { display: block; font-size: var(--fs-h3); font-weight: 800; margin-bottom: 6px; }
.form__input.is-invalid { border-color: var(--error); }
/* review form (src/partials/review/form.html): hints, rating stars that work without JS, consent checkbox */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.form__hint { margin: 0; font-size: var(--fs-small); color: var(--text-muted); }
.form__fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form__fieldset legend { padding: 0; margin-bottom: 6px; }
.rating__stars { display: flex; gap: 2px; }
.rating__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.rating__star { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-xs); cursor: pointer;
  font-size: 2rem; line-height: 1; color: var(--border-strong); transition: color .15s ease, transform .15s ease; }
.rating__star:hover { transform: scale(1.12); }
.rating__input:focus-visible + .rating__star { outline: 2px solid var(--accent); outline-offset: 2px; }
/* chosen star and every star before it; older browsers without :has() light up the chosen star only */
.rating__input:checked + .rating__star,
.rating__stars:has(input[value="1"]:checked) .rating__star:nth-of-type(-n+1),
.rating__stars:has(input[value="2"]:checked) .rating__star:nth-of-type(-n+2),
.rating__stars:has(input[value="3"]:checked) .rating__star:nth-of-type(-n+3),
.rating__stars:has(input[value="4"]:checked) .rating__star:nth-of-type(-n+4),
.rating__stars:has(input[value="5"]:checked) .rating__star:nth-of-type(-n+5) { color: var(--accent); }
.rating__none, .form__check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-small); }
.rating__none { color: var(--text-muted); margin-top: 4px; }
.form__radio, .form__checkbox { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.form__check label { line-height: 1.5; }
.form__checkbox.is-invalid { outline: 2px solid var(--error); outline-offset: 2px; }
.review-google { margin: 24px 0 0; }
.form.is-sent .form__row, .form.is-sent .form__submit, .form.is-sent .form__privacy { display: none; }
.form.is-sending .form__submit { opacity: 0.7; }

/* --- Result pages for the no-JS form: /<lang>/lead-sent.html, lead-failed.html --- */
.result { min-height: 100vh; display: grid; align-items: center; padding: 40px 0; }
.result__card { max-width: 520px; margin: 0 auto; padding: 36px 28px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.result__card .brand__logo { height: 32px; margin-bottom: 8px; }
.result__title { margin: 0; font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.01em; }
.result__text { margin: 0 0 10px; color: var(--text-muted); }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 28px; font-size: var(--fs-small); color: var(--text-muted); }
.site-footer__grid { display: grid; gap: 32px 24px; grid-template-columns: 1fr; margin-bottom: 32px; }
/* brand + 4 columns (Студия, TelliApp, Документы, Контакты); on tablets the brand takes its own row */
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); } .site-footer__brand { grid-column: auto; } }
.site-footer__brand .brand { margin-bottom: 14px; }
.site-footer__brand .brand__logo { height: 32px; }
.site-footer__tagline { margin: 0; max-width: 34ch; }
.site-footer__col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.site-footer__h { margin: 0 0 4px; font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.site-footer__col a { color: var(--text-muted); }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__copy { margin: 0; padding-top: 20px; border-top: 1px solid var(--border); }

/* =====================================================================
   Studio home page
   ===================================================================== */
/* schematic mock-ups: inline SVG coloured by classes, so they follow the site theme (CSP: no inline styles) */
.shot__screen > .mock { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock text { font-family: var(--font); font-weight: 700; }
.mock .m-strong { font-weight: 800; }
.m-bg { fill: var(--mk-bg); } .m-sf { fill: var(--mk-sf); } .m-ln { fill: var(--mk-ln); } .m-tx { fill: var(--mk-tx); }
.m-mu { fill: var(--mk-mu); } .m-ac { fill: var(--mk-ac); } .m-as { fill: var(--mk-as); } .m-ok { fill: var(--mk-ok); } .m-on { fill: var(--mk-on); }
.m-b1 { fill: var(--st-accepted-bg); } .m-b1t { fill: var(--st-accepted-fg); }
.m-b2 { fill: var(--st-ready-bg); }    .m-b2t { fill: var(--st-ready-fg); }
.m-b3 { fill: var(--st-await-bg); }    .m-b3t { fill: var(--st-await-fg); }
.m-st-ac, .m-st-ln, .m-st-wn, .m-st-on { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-st-ac { stroke: var(--mk-ac); } .m-st-ln { stroke: var(--mk-ln); stroke-width: 1; } .m-st-wn { stroke: var(--mk-wn); stroke-width: 1.5; }
.m-st-on { stroke: var(--mk-on); }
.m-thick { stroke-width: 3; } .m-dash { stroke-dasharray: 6 5; }

/* services: 7 cards + a highlighted "not sure what you need?" tile → 4 × 2 on desktop */
.service-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.service-note {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius);
  background: var(--btn-gradient); color: #fff;
}
.service-note__icon { display: inline-flex; width: 48px; height: 48px; margin-bottom: 18px; align-items: center; justify-content: center; border-radius: 14px; background: rgba(255, 255, 255, 0.16); }
.service-note__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-note__title { font-size: 1.125rem; margin-bottom: 0.4em; color: #fff; }
.service-note__text { margin: 0; font-weight: 600; }

/* product block: TelliApp logo + points + screenshots (browser + overlapping phone) */
.product__points { margin: 24px 0 32px; }
.product__visual { position: relative; width: 100%; max-width: 620px; margin: 0 auto; padding-bottom: 36px; }
.product__laptop { width: 86%; }
.product__phone { position: absolute; right: 0; bottom: 0; width: 27%; min-width: 110px; }
@media (min-width: 900px) { .split--product { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
@media (max-width: 479px) { .split--product .btn { width: 100%; white-space: normal; text-align: center; } }

/* projects: image → kind → title → task / what we did / tech */
.project-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card.project { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; padding: 24px 24px 0; background: var(--tint); }
.project__media .shot--browser { box-shadow: 0 12px 30px -16px rgba(17, 28, 46, 0.35); }
.project__media--phone .shot--phone { width: 40%; margin: 0 auto; }
/* three small demo screenshots side by side (one for each site); narrow screens swipe them sideways */
.project__media--trio { aspect-ratio: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; padding: 20px 20px 16px; }
.project__media--trio .shot--browser { box-shadow: 0 8px 20px -14px rgba(17, 28, 46, 0.35); }
@media (max-width: 479px) {
  .project__media--trio { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory;
                           margin: 0 -1px; padding: 20px 20px 16px; scroll-padding: 0 20px; }
  .project__media--trio .shot { scroll-snap-align: start; }
}
.project__demo-links { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.project__demo-link.btn { width: 100%; white-space: normal; text-align: center; }
.project__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.project__kind { margin: 0 0 6px; font-size: var(--fs-eyebrow); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.project__title { font-size: 1.1875rem; margin-bottom: 14px; }
.project__facts { margin: 0; display: grid; gap: 4px; }
.project__facts dt { font-size: var(--fs-small); font-weight: 800; color: var(--text); }
.project__facts dd { margin: 0 0 10px; color: var(--text-muted); font-size: 0.9375rem; }
.project__facts dd:last-child { margin-bottom: 0; }
.project__more { align-self: flex-start; margin-top: 18px; font-weight: 700; }

/* chips: technology tags */
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--text); font-size: 0.8125rem; font-weight: 700; line-height: 1.4; }
.chips--lg { gap: 10px; margin: 0; }
.chips--lg .chip { padding: 8px 16px; font-size: 0.9375rem; background: var(--card); border: 1px solid var(--border-strong); }

/* process: 5 steps + "demo before payment" callout */
@media (min-width: 720px) { .onboard--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .onboard--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .onboard--5 .card { padding: 24px 20px; } }
.callout { max-width: 720px; margin: 0 auto; padding: 18px 22px 18px 56px; border-radius: var(--radius-sm); background: var(--card); border: var(--card-border); box-shadow: var(--card-shadow); font-weight: 700; }
.callout.check-item::before, .callout.check-item::after { left: 20px; top: 50%; transform: translateY(-50%); }

/* why: 5 short points in one row on desktop */
.why-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* tech: modest row of chips */
.section--compact { padding: 56px 0; }
@media (min-width: 720px) { .section--compact { padding: 72px 0; } }
.tech { display: grid; gap: 20px; }
.tech__title { font-size: var(--fs-h3); margin: 0; }
@media (min-width: 900px) { .tech { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); align-items: center; gap: 40px; } }

/* heating project: status callout + chips under the text, schema (scrollable on narrow screens) + two phone shots */
.heating-chips { margin-top: 20px; }
.heating-visual { display: grid; gap: 20px; }
.heating-schema-frame {
  border-radius: 14px; overflow: hidden; background: var(--frame-chrome);
  border: 1px solid var(--frame-border); box-shadow: var(--frame-shadow);
}
.heating-schema-frame::before {
  content: ""; display: block; height: 30px; border-bottom: 1px solid var(--frame-border);
  background:
    radial-gradient(circle at 15px 15px, var(--frame-dot) 4.5px, transparent 5.5px),
    radial-gradient(circle at 31px 15px, var(--frame-dot) 4.5px, transparent 5.5px),
    radial-gradient(circle at 47px 15px, var(--frame-dot) 4.5px, transparent 5.5px),
    linear-gradient(var(--frame-pill), var(--frame-pill)) center 8px / calc(100% - 150px) 14px no-repeat,
    var(--frame-chrome);
}
/* no JS: the schema stays at a readable min-width and scrolls horizontally instead of shrinking past legibility */
.heating-schema-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.heating-schema-scroll img { display: block; width: 100%; min-width: 640px; height: auto; }
@media (min-width: 720px) { .heating-schema-scroll img { min-width: 0; } }
.heating-phones { display: flex; gap: 16px; justify-content: center; }
.heating-phones .shot--phone { width: 44%; max-width: 220px; }
.shot--heating-main .shot__screen { aspect-ratio: 725 / 1143; }
.shot--heating-calendar .shot__screen { aspect-ratio: 725 / 994; }

/* =====================================================================
   Scroll reveal: hidden only with JS and without reduced-motion; the observer adds .is-in
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .has-js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
  .has-js [data-reveal].is-in { opacity: 1; transform: none; }
  .has-js [data-reveal-group] > [data-reveal]:nth-child(2) { transition-delay: .06s; }
  .has-js [data-reveal-group] > [data-reveal]:nth-child(3) { transition-delay: .12s; }
  .has-js [data-reveal-group] > [data-reveal]:nth-child(4) { transition-delay: .18s; }
  .has-js [data-reveal-group] > [data-reveal]:nth-child(5) { transition-delay: .24s; }
  .has-js [data-reveal-group] > [data-reveal]:nth-child(6) { transition-delay: .30s; }
  .has-js [data-reveal-group] > [data-reveal]:nth-child(7) { transition-delay: .36s; }
  .has-js [data-reveal-group] > [data-reveal]:nth-child(8) { transition-delay: .42s; }
  .has-js [data-reveal-group] > [data-reveal]:nth-child(9) { transition-delay: .48s; }
}
@media (prefers-reduced-motion: reduce) { .faq__q::after { transition: none; } }

/* ---- «Что такое PWA» page (src/partials/pwa/) ---- */
.hero--pwa .hero__subtitle { margin-bottom: 28px; }
.pwa-cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pwa-steps { padding: 24px; }
.pwa-steps__title { display: flex; align-items: center; gap: 12px; font-size: var(--fs-h3); margin: 0 0 14px; }
.pwa-steps__title .feature__icon { margin: 0; flex: 0 0 auto; }
.pwa-steps__list { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--text); }
.pwa-steps__list li::marker { color: var(--accent); font-weight: 700; }
.pwa-steps__note { margin: 14px 0 0; font-size: var(--fs-small); color: var(--text-muted); }
.pwa-prose { max-width: 760px; font-size: var(--fs-lead); }
.pwa-prose p { margin: 0 0 1em; }
.pwa-prose .chips { margin-top: 20px; }
.pwa-compare { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pwa-compare__col { padding: 24px; }
.pwa-compare__title { font-size: var(--fs-h3); margin: 0 0 14px; }
.pwa-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pwa-list li { position: relative; padding-left: 26px; }
.pwa-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
/* /pwa/ «how much space it takes»: TelliApp Games against a typical store game, linear bars (the store bar = 100 MB, its low end) */
.pwa-size { margin-top: 20px; padding: 24px; }
.pwa-size__list { margin: 0; display: grid; gap: 16px; }
.pwa-size__row { display: grid; gap: 6px; }
.pwa-size__row dt { font-weight: 600; }
.pwa-size__row dd { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.pwa-size__bar { width: 100%; height: 12px; display: block; border-radius: 6px; overflow: hidden; }
.pwa-size__track { fill: var(--accent-soft); }
.pwa-size__fill { fill: var(--text-muted); opacity: .55; }
.pwa-size__fill--ours { fill: var(--accent); opacity: 1; }
.pwa-size__note { margin: 16px 0 0; color: var(--text-muted); font-size: .95rem; }
.section--try { background: var(--hero-bg); color: var(--hero-text); }
.pwa-try { display: grid; gap: 28px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.pwa-try__title { color: #fff; font-size: var(--fs-h2); margin: 0 0 14px; }
.pwa-try__p { color: var(--hero-muted); font-size: var(--fs-lead); margin: 0 0 20px; }
.pwa-try__hint { margin: 12px 0 0; color: var(--hero-muted); font-size: var(--fs-small); }
.pwa-try__art { display: flex; justify-content: center; }
.pwa-try__art img { width: 160px; height: 160px; border-radius: 36px; box-shadow: 0 24px 60px -20px rgba(61, 147, 236, .6); }
@media (min-width: 768px) { .pwa-try { grid-template-columns: minmax(0, 1fr) 220px; } }
.pwa-ours { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.feature__more { margin: 12px 0 0; font-weight: 600; }

/* ---- home: "new game" line under the hero proof, PWA promo block (src/partials/home/apps.html), menu extra ---- */
.hero__new { margin: 14px 0 0; font-size: var(--fs-small); font-weight: 600; }
.hero__new a { color: var(--hero-accent); text-decoration: underline; text-decoration-color: rgba(79, 155, 234, 0.4); text-underline-offset: 4px; }
.hero__new a:hover { color: #fff; text-decoration-color: currentColor; }
.hero__new svg { vertical-align: -4px; margin-right: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1160px) { .site-nav__extra { display: none; } }
.section.section--apps { padding-top: 8px; border-top: 0; }
.apps-promo { display: grid; gap: 28px; align-items: center; grid-template-columns: minmax(0, 1fr); padding: 24px; border-radius: var(--radius); background: var(--card); border: var(--card-border); box-shadow: var(--card-shadow); }
.apps-promo__visual { display: flex; align-items: center; justify-content: center; gap: 16px; }
.apps-phone { flex: 0 0 auto; display: block; width: 124px; border-radius: 26px; padding: 6px; background: #0B1220; box-shadow: 0 18px 44px -18px rgba(11, 18, 32, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.apps-phone img { display: block; width: 100%; height: auto; border-radius: 20px; }
.apps-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.apps-games__link { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font-weight: 700; font-size: 0.875rem; line-height: 1.25; text-decoration: none; }
.apps-games__link:hover { color: var(--accent); text-decoration: none; }
.apps-games__icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.apps-games__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.apps-promo__text .section-head__title { margin-bottom: 12px; }
.apps-promo__p { margin: 0 0 10px; color: var(--text-muted); font-size: var(--fs-lead); }
.apps-promo__hint { margin: 0 0 20px; font-weight: 600; }
.apps-promo__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  .apps-promo { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding: 36px 40px; gap: 40px; }
  .apps-promo__visual { order: 2; justify-content: flex-start; }
  .apps-phone { width: 190px; }
  .apps-games__link { font-size: 0.9375rem; }
  .apps-games__icon { flex-basis: 44px; width: 44px; height: 44px; }
}
@media (max-width: 899px) { .apps-promo__text .section-head__title { font-size: 1.625rem; } }
