/* ITELLEKT design system: "engineering documentation".
   Strict grid, thin rules instead of shadows, square corners, mono type for numbers and labels.
   Fonts are self-hosted (fonts.css) — no requests to third-party servers (152-FZ). */
@import url("fonts.css?v=2");

:root {
  --green: #219653;        /* primary: buttons, accents */
  --green-dark: #1b7d45;
  --green-50: #eaf6ef;
  --graphite: #1e293b;     /* secondary: headings, dark sections, footer */
  --graphite-2: #273449;
  --blue: #2563eb;         /* accent: links, numbers, statuses */
  --blue-dark: #1d4fc4;
  --blue-50: #eef3fe;
  --bg: #f8fafc;
  --white: #ffffff;
  --text: #334155;
  --muted: #64748b;
  --error: #ef4444;
  --error-50: #fef2f2;
  --amber: #b45309;
  --amber-50: #fef6e7;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --radius: 2px;
  --font: "Onest", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; counter-reset: sec; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--graphite); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.03em; }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: 19px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--blue); color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; border-top: 1px solid var(--line); background: var(--bg); }
.section--alt { background: var(--white); }
.section--dark { background: var(--graphite); color: #cbd5e1; border-top-color: var(--graphite); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 18px; }
.section--dark .section-head p { color: #94a3b8; }

/* Section index: "01 / УСЛУГИ" — numbering is automatic */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.section .eyebrow::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); color: var(--blue); padding-right: 10px; border-right: 1px solid var(--line-strong); }
.section--dark .eyebrow { color: #94a3b8; }
.section--dark .eyebrow::before { color: #60a5fa; border-right-color: #475569; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: var(--radius); font-family: inherit; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; text-decoration: none !important; line-height: 1.2; }
.btn--primary { background: var(--graphite); color: #fff; }
.btn--primary:hover { background: var(--graphite-2); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); }
.btn--green::after, .btn--primary::after { content: "→"; font-family: var(--mono); font-weight: 400; transition: transform .2s var(--ease); }
.btn--green:hover::after, .btn--primary:hover::after { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--graphite); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--graphite); }
.btn--light { background: #fff; color: var(--graphite); border-color: var(--line-strong); }
.btn--light:hover { border-color: var(--graphite); }
.btn--block { width: 100%; }
button.btn[data-prev]::after, .pdn-doc__btns .btn::after, .header .btn::after, .cookie .btn::after, .presets button::after { content: none; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; flex: none; }
.logo .logo__mark { height: 30px; width: auto; }
.logo .logo__name { height: 20px; width: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--graphite); font-weight: 500; font-size: 15px; white-space: nowrap; position: relative; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.header__phone { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--graphite); white-space: nowrap; }
.header .btn { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
.header__msg { display: flex; gap: 6px; margin-left: -16px; flex: none; }
.header__msg a { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; transition: transform .15s; }
.header__msg a:hover { transform: translateY(-1px); }
.header__msg svg { width: 18px; height: 18px; }
.header__msg .tg { background: #229ed9; }
.header__msg .wa { background: #25d366; }
.nav__dd { position: relative; padding: 22px 0; margin: -22px 0; }
.nav__extra { display: none; }
.nav__extra .nav__phone { font-family: var(--mono); font-size: 18px; font-weight: 500; }
.nav__dd > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav__sub { display: none; position: absolute; top: 100%; left: -18px; min-width: 210px; flex-direction: column; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(15, 23, 42, .1); padding: 8px 0; z-index: 50; }
.nav__sub a { padding: 9px 18px; }
.nav__dd:hover .nav__sub, .nav__dd:focus-within .nav__sub { display: flex; }
.nav__sub--mega { grid-template-columns: repeat(var(--cols, 3), max-content); column-gap: 8px; padding: 14px 0 10px; }
.nav__dd:hover .nav__sub--mega, .nav__dd:focus-within .nav__sub--mega { display: grid; }
.nav__col { display: flex; flex-direction: column; }
.nav__sub--center { left: 50%; transform: translateX(-50%); }
.nav__h--next { margin-top: 14px; }
.nav__h { padding: 4px 18px 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.nav__sub a.nav__all { grid-column: 1 / -1; margin: 0 18px 10px; padding: 0 0 12px; border-bottom: 1px solid var(--line); color: var(--blue); font-weight: 600; }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--graphite); margin: 5px 0; }

/* Hero: light, on an engineering grid */
.hero { position: relative; padding: 72px 0 80px; background-color: var(--bg); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(248, 250, 252, .92) 45%, rgba(248, 250, 252, .55) 100%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__grid > *, .calc > *, .lead > *, .expert > *, .trust__grid > * { min-width: 0; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero__lead { font-size: 19px; color: var(--text); max-width: 600px; }
.hero__points { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 12px; }
/* Marker sits on the centre of the first line, not on the text baseline */
.hero__points li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); }
.hero__points .check { font-size: inherit; color: transparent; overflow: hidden; margin-top: calc(.8em - 4px); transform: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.check { flex: none; width: 8px; height: 8px; background: var(--green); font-size: 0; transform: translateY(-2px); }
.hero .eyebrow::before { content: none; }
.hero-card { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 28px; }
.hero-card__label { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.hero-card__price { font-family: var(--mono); font-size: 38px; font-weight: 600; color: var(--graphite); margin: 8px 0 4px; letter-spacing: -.03em; }
.hero-card__price span { font-family: var(--font); font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.hero-card ul { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 0; font-size: 15px; }
.hero-card li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.hero-card li b { white-space: nowrap; font-family: var(--mono); font-weight: 500; }
.hero-card__note { font-size: 13px; color: var(--muted); margin: 0 0 16px; }

/* Live network topology (moving element in the hero) */
.topo { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.topo__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.topo__live { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.topo__live::before { content: ""; width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: blink 1.6s steps(2, start) infinite; }
.topo svg { width: 100%; height: auto; }
.topo__log { list-style: none; margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); height: 90px; overflow: hidden; }
.topo__log li { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; padding: 2px 0; white-space: nowrap; animation: logIn .4s var(--ease); }
.topo__log li span { overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.topo__log em { font-style: normal; }
.topo__log time { color: var(--muted); }
.hero__example { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.hero__example b { font-family: var(--mono); color: var(--graphite); font-weight: 600; }
.topo__log .ok { color: var(--green); }
.topo__log .warn { color: var(--amber); }
.topo__foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.topo__foot div { padding: 12px 16px; border-right: 1px solid var(--line); }
.topo__foot div:last-child { border-right: 0; }
.topo__foot b { display: block; font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--graphite); }
.topo__foot span { font-size: 12px; color: var(--muted); }
@keyframes blink { to { visibility: hidden; } }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { padding: 26px 24px; border-left: 1px solid var(--line); }
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__item b { display: block; font-family: var(--mono); font-size: 26px; font-weight: 600; color: var(--graphite); letter-spacing: -.02em; }
.trust__item span { color: var(--muted); font-size: 14px; }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s; }
.card--shadow { border-color: var(--line); }
.card--shadow:hover { border-color: var(--line-strong); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 40px; height: 40px; border: 1px solid var(--line-strong); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.icon svg { width: 20px; height: 20px; stroke-width: 1.6; }
.icon--green { color: var(--green); }
.card__link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 15px; }

/* Pain -> solution */
.pain { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: #fff; }
.pain__col h3 { padding: 16px 24px; margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; border-bottom: 1px solid var(--line); }
.pain__col--bad h3 { color: var(--error); }
.pain__col--good h3 { color: var(--green); }
.pain__col ul { list-style: none; margin: 0; padding: 0 24px; }
.pain__col li { padding: 18px 0; border-bottom: 1px solid var(--line); min-height: 92px; }
.pain__col li:last-child { border-bottom: 0; }
.pain__col li b { color: var(--graphite); }
.pain__col--good { border-left: 1px solid var(--line); }

/* Tariffs */
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; }
.tariff { padding: 32px 28px; display: flex; flex-direction: column; position: relative; border-left: 1px solid var(--line); }
.tariff:first-child { border-left: 0; }
.tariff--popular { background: #fff; box-shadow: inset 0 3px 0 var(--blue); }
.tariff__badge { position: absolute; top: 14px; right: 18px; font-family: var(--mono); font-size: 11px; color: var(--blue); letter-spacing: .1em; text-transform: uppercase; }
.tariff__name { font-size: 22px; font-weight: 700; color: var(--graphite); margin-bottom: 4px; }
.tariff__for { color: var(--muted); font-size: 14px; min-height: 44px; }
.tariff__price { font-family: var(--mono); font-size: 36px; font-weight: 600; color: var(--graphite); margin: 18px 0 0; letter-spacing: -.03em; }
.tariff__price span { font-family: var(--font); font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.tariff__sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; font-family: var(--mono); }
.tariff ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: 15px; flex: 1; }
/* Block layout so items with inline links do not split into flex columns */
.tariff li { position: relative; padding-left: 18px; }
.tariff li::before { content: ""; position: absolute; left: 0; top: calc(.8em - 3px); width: 6px; height: 6px; background: var(--green); }
.tariff li.no { color: #94a3b8; }
.tariff li.no::before { background: var(--line-strong); }
.sla { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); color: var(--graphite); font-family: var(--mono); font-size: 13px; padding: 9px 12px; margin-bottom: 20px; }
.price-note { margin-top: 24px; padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--green); background: #fff; display: flex; gap: 14px; align-items: baseline; }
.price-note .check { background: var(--green) !important; }

/* Options table */
.options { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.options th, .options td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.options th { font-family: var(--mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--bg); }
.options td b { color: var(--graphite); }
.options td:last-child { white-space: nowrap; font-family: var(--mono); font-weight: 600; color: var(--graphite); }
.options tr:last-child td { border-bottom: 0; }
.options small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }
.table-wrap { overflow-x: auto; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.2fr .8fr; gap: 0; border: 1px solid var(--line); background: #fff; }
.calc__form { padding: 32px; }
.calc__row { margin-bottom: 28px; }
.calc__row:last-child { margin-bottom: 0; }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; color: var(--graphite); margin-bottom: 12px; }
.calc__label output { font-family: var(--mono); font-size: 22px; color: var(--blue); font-weight: 600; }
input[type=range] { width: 100%; accent-color: var(--blue); height: 4px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); }
.seg label { position: relative; }
.seg label + label { border-left: 1px solid var(--line-strong); }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 12px 8px; font-weight: 600; cursor: pointer; font-size: 15px; color: var(--graphite); }
.seg span small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; font-family: var(--mono); }
.seg input:checked + span { background: var(--graphite); color: #fff; }
.seg input:checked + span small { color: #94a3b8; }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: -2px; }
.opt { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer; background: #fff; transition: border-color .15s; }
.opt:hover { border-color: var(--line-strong); }
.opt input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--green); flex: none; }
.opt b { display: block; color: var(--graphite); font-weight: 600; }
.opt small { color: var(--muted); }
.opt__price { margin-left: auto; white-space: nowrap; font-family: var(--mono); font-weight: 500; color: var(--graphite); font-size: 14px; }
.calc__result { background: var(--graphite); color: #fff; padding: 32px; position: sticky; top: 84px; align-self: start; }
.calc__result .hero-card__label { color: #94a3b8 !important; }
.calc__total { font-family: var(--mono); font-size: 44px; font-weight: 600; line-height: 1.1; margin: 8px 0; letter-spacing: -.03em; }
.calc__per { color: #94a3b8; margin-bottom: 20px; font-family: var(--mono); font-size: 14px; }
.calc__lines { list-style: none; padding: 0; margin: 0 0 20px; display: grid; font-size: 14px; }
.calc__lines li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 9px 0; color: #cbd5e1; }
.calc__lines li b { font-family: var(--mono); font-weight: 500; color: #fff; white-space: nowrap; }
.calc__lines small { display: block; color: #94a3b8; font-size: 12px; font-family: var(--mono); }
.calc__compare { border: 1px solid rgba(255, 255, 255, .14); padding: 14px 16px; font-size: 14px; color: #cbd5e1; margin-bottom: 20px; }
.calc__compare b { color: #6ee7a0; }
.calc__fine { font-size: 12px; color: #94a3b8; margin-top: 12px; }
.calc__form h3 { font-size: 17px; margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.presets button { border: 1px solid var(--line-strong); background: #fff; padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--graphite); font-family: var(--mono); }
.presets button:hover { border-color: var(--blue); color: var(--blue); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; counter-reset: step; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 32px 28px; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 13px; color: var(--blue); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.step p { color: var(--muted); }
.step__meta { margin-top: 16px; font-size: 13px; color: var(--muted); font-family: var(--mono); }
.step__meta b { color: var(--graphite); font-weight: 600; }

/* Cases */
.case { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.case__img { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: contain; padding: 12px; border-bottom: 1px solid var(--line); background: #fff; }
.case__body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.case__tag { align-self: flex-start; font-family: var(--mono); font-size: 11px; color: var(--blue); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.case__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.case__facts span { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); padding: 3px 8px; color: var(--muted); }
.case__result { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; color: var(--green); }

/* Compare table */
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); text-align: left; }
.compare th { color: #94a3b8; font-family: var(--mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.compare td:first-child { color: #fff; font-weight: 500; }
.compare td:nth-child(2) { color: #94a3b8; }
.compare td:nth-child(3) { color: #6ee7a0; font-weight: 600; }
/* Gantt-style yearly plan: one column per month, filled cells mark the work period */
.gantt { min-width: 820px; }
.doc .gantt th.m, .doc .gantt td.m { width: 30px; padding: 8px 0; text-align: center; font-size: 12px; font-family: var(--mono); }
.doc .gantt td.on { background: var(--green-50); box-shadow: inset 0 -6px 0 var(--green); }
.doc .gantt tr.sec td { background: var(--bg); font-weight: 600; color: var(--graphite); }
/* Neutral variant for light sections: both columns read as equals */
.compare--plain { background: #fff; border: 1px solid var(--line); }
.compare--plain th, .compare--plain td { border-bottom: 1px solid var(--line); vertical-align: top; }
.compare--plain th { color: var(--muted); }
.compare--plain td:first-child { color: var(--graphite); font-weight: 600; }
.compare--plain td:nth-child(2), .compare--plain td:nth-child(3) { color: var(--text); font-weight: 400; }

/* About */
.expert { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.expert__facts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: #fff; }
.fact { padding: 24px; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-last-child(-n+2) { border-bottom: 0; }
.fact b { display: block; font-family: var(--mono); font-size: 28px; font-weight: 600; color: var(--graphite); letter-spacing: -.02em; }
.fact span { color: var(--muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags span { font-family: var(--mono); font-size: 12px; padding: 4px 10px; background: #fff; border: 1px solid var(--line); color: var(--text); }

/* FAQ */
.faq { max-width: 880px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; color: var(--graphite); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 760px; }

/* Lead form */
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.form { background: #fff; color: var(--text); border-radius: var(--radius); padding: 32px; }
.form h3, .section--dark .form h3 { margin-bottom: 4px; color: var(--graphite); }
.form__sub { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--graphite); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); font: inherit; color: var(--graphite); background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.field textarea { min-height: 80px; resize: vertical; }
.consent { display: flex; gap: 10px; font-size: 13px; color: var(--muted); margin: 6px 0 18px; align-items: flex-start; }
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--green); }
.form__ok { display: none; padding: 16px; border-left: 3px solid var(--green); background: var(--green-50); color: #14532d; font-weight: 600; }
.form.is-sent .form__ok { display: block; }
.form.is-sent .form__body { display: none; }
.form__err { color: var(--error); font-size: 14px; margin: 0 0 10px; display: none; }

/* Footer */
.footer { background: var(--graphite); color: #94a3b8; padding: 64px 0 28px; font-size: 14px; }
.footer a { color: #cbd5e1; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-family: var(--mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__contacts { display: grid; gap: 4px; margin-top: 24px; }
.footer__contacts span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #64748b; }
.footer__contacts a + span, .footer__contacts div + span { margin-top: 12px; }
/* Yandex rating badge: shown only after cookie consent, otherwise a plain link stays */
.footer__rating { justify-self: start; }
.footer__rating-badge { display: block; width: 150px; height: 50px; border: 0; border-radius: 6px; }
.footer .footer__phone { color: #fff; font-size: 20px; font-weight: 600; }
.messengers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.messengers a { padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: 13px; color: #e2e8f0; text-decoration: none; }
.messengers a:hover { border-color: #6ee7a0; color: #fff; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; font-weight: 700; letter-spacing: .14em; font-size: 18px; text-decoration: none !important; }
.footer__brand img { height: 30px; width: auto; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-family: var(--mono); font-size: 12px; }
.todo { background: #fff3c4; color: #7a5b00; padding: 0 4px; }

/* Cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 16px 40px rgba(15, 23, 42, .12); padding: 18px 20px; display: none; gap: 16px; align-items: center; font-size: 14px; }
.cookie.is-visible { display: flex; }
.cookie p { margin: 0; color: var(--muted); }
.cookie__btns { display: flex; gap: 8px; flex: none; }
.cookie .btn { padding: 10px 16px; font-size: 14px; }

/* Quiz (audit page) */
.quiz { background: #fff; border: 1px solid var(--line); padding: 36px; max-width: 880px; margin: 0 auto; }
.quiz__progress { height: 3px; background: var(--line); overflow: hidden; margin-bottom: 10px; }
.quiz__bar { height: 100%; width: 0; background: var(--blue); transition: width .25s var(--ease); }
.quiz__meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 28px; }
.quiz__block { font-family: var(--mono); font-size: 12px; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.quiz__q { font-size: 23px; font-weight: 700; color: var(--graphite); margin-bottom: 8px; letter-spacing: -.01em; }
.quiz__hint { color: var(--muted); margin-bottom: 24px; }
.quiz__answers { display: grid; gap: 8px; }
.quiz__answers button { text-align: left; padding: 16px 18px; border: 1px solid var(--line-strong); background: #fff; font: inherit; font-weight: 500; color: var(--graphite); cursor: pointer; transition: border-color .15s, background .15s; }
.quiz__answers button:hover { border-color: var(--blue); background: var(--blue-50); }
.quiz__nav { margin-top: 18px; }
.quiz__nav button { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; font-family: var(--mono); font-size: 13px; }
.result__score { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin: 20px 0 28px; }
.meter { padding: 20px; border-left: 1px solid var(--line); }
.meter:first-child { border-left: 0; }
.meter b { display: block; font-family: var(--mono); font-size: 30px; font-weight: 600; }
.meter span { font-size: 13px; color: var(--muted); }
.meter__bar { height: 3px; background: var(--line); margin-top: 12px; overflow: hidden; }
.meter__bar i { display: block; height: 100%; }
.meter__text { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.lvl-bad { color: var(--error); } .lvl-bad-bg { background: var(--error); }
.lvl-mid { color: var(--amber); } .lvl-mid-bg { background: #d97706; }
.lvl-good { color: var(--green); } .lvl-good-bg { background: var(--green); }
.findings__title { font-size: 18px; margin: 32px 0 12px; }
.finding { border: 1px solid var(--line); margin-bottom: -1px; background: #fff; }
.finding summary { cursor: pointer; padding: 14px 16px; display: flex; gap: 12px; align-items: center; list-style: none; color: var(--graphite); }
.finding summary::-webkit-details-marker { display: none; }
.finding summary::after { content: "+"; margin-left: auto; font-family: var(--mono); font-size: 18px; color: var(--blue); line-height: 1; }
.finding[open] summary::after { content: "−"; }
.finding__body { padding: 0 16px 18px; border-top: 1px solid var(--line); }
.finding__body h4 { font-size: 13px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 6px; }
.finding__body p, .finding__body ol { margin: 0 0 8px; color: var(--text); font-size: 15px; }
.finding__body ol { padding-left: 20px; }
.finding__body li { margin-bottom: 4px; }
.finding__answer { font-size: 13px !important; color: var(--muted) !important; margin-top: 12px !important; font-family: var(--mono); }
.finding__law { font-size: 14px !important; }
.finding__help { border-left: 3px solid var(--blue); background: var(--blue-50); padding: 10px 12px; color: var(--graphite) !important; }
.badge { flex: none; font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 3px 8px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid currentColor; }
.badge--bad { color: var(--error); }
.badge--mid { color: var(--amber); }
.strengths ul { list-style: none; padding: 0; margin: 0 0 24px; border: 1px solid var(--line); }
.strengths li { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px; }
.strengths li:last-child { border-bottom: 0; }
.result__stamp { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.result__note { color: var(--muted); font-size: 15px; }
.risks { list-style: none; padding: 0; }

/* Document pages: contract, report, tools, builder */
.doc-hero { background-color: var(--bg); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; border-bottom: 1px solid var(--line); padding: 56px 0 44px; position: relative; }
.doc-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(248, 250, 252, .9) 55%, rgba(248, 250, 252, .6) 100%); }
.doc-hero .container { position: relative; }
.doc-hero h1 { font-size: clamp(28px, 3.8vw, 44px); }
.doc-hero p { color: var(--text); max-width: 760px; font-size: 18px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.doc-notice { background: #fffbeb; border: 1px solid #f5d77a; border-left: 3px solid #d97706; color: #6b4e00; padding: 14px 18px; margin: 0 0 28px; font-size: 14px; }
.doc { max-width: 880px; margin: 0 auto; padding: 56px 24px 96px; font-size: 16px; }
.doc h2 { font-size: 21px; margin: 40px 0 12px; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; background: #fff; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg); font-weight: 600; color: var(--graphite); }
.doc td.num, .doc th.num { text-align: right; white-space: nowrap; font-family: var(--mono); }
.doc .clause { margin: 0 0 8px; }
.doc .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.doc .sign div { border-top: 1px solid var(--line-strong); padding-top: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin: 16px 0 24px; background: #fff; }
.kpi { padding: 16px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
.kpi b { display: block; font-family: var(--mono); font-size: 24px; font-weight: 600; color: var(--graphite); }
.kpi span { font-size: 13px; color: var(--muted); }
.ok { color: var(--green); font-weight: 600; }
.warn { color: var(--error); font-weight: 600; }
.bar-row { display: grid; grid-template-columns: 280px 1fr 56px; gap: 12px; align-items: center; margin-bottom: 8px; font-size: 15px; }
.bar-row i { display: block; height: 8px; background: var(--blue); }
.bar-row em { font-style: normal; text-align: right; font-family: var(--mono); font-weight: 600; }
/* Chart-style monthly reports */
.bar-row--warn i { background: var(--amber); }
.bar-row i, .stack span, .stack-legend i, .lvl { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.stack { display: flex; gap: 2px; height: 28px; margin: 12px 0 10px; }
.stack span { display: block; height: 100%; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--text); margin-bottom: 8px; }
.stack-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; }
.stack-legend b { font-family: var(--mono); color: var(--graphite); }
.kpis--3 { grid-template-columns: repeat(3, 1fr); }
.lvl { display: inline-block; padding: 2px 8px; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; }
.lvl--high { background: #b91c1c; }
.lvl--mid { background: var(--amber); }
.lvl--low { background: #64748b; }
.rep-sub { font-size: 14px; color: var(--muted) !important; margin-top: -4px; }
.rep-note { font-size: 14px; color: var(--muted) !important; }

/* Commitments and document links */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; }
.promise--2 { grid-template-columns: repeat(2, 1fr); }
/* In-page navigation under the dark page hero */
.page-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.page-toc a { font-family: var(--mono); font-size: 13px; color: #e2e8f0; border: 1px solid rgba(255, 255, 255, .22); border-radius: 99px; padding: 6px 14px; }
.page-toc a:hover { border-color: #fff; text-decoration: none; }
.promise .card { border: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin: -1px 0 0 -1px; }
.promise .card b { display: block; font-size: 17px; margin-bottom: 8px; color: var(--graphite); }
.docs-cta, .tools-cta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.tools-cta { margin-top: 0; }
.doc-card { display: flex; gap: 18px; align-items: flex-start; background: var(--graphite); color: #fff; padding: 26px; text-decoration: none !important; border: 1px solid var(--graphite); transition: background .2s; }
.doc-card:hover { background: var(--graphite-2); }
.doc-card .icon { border-color: #475569; color: #6ee7a0; flex: none; margin: 0; }
.doc-card b { display: block; font-size: 18px; margin-bottom: 6px; color: #fff; }
.doc-card span { color: #94a3b8; font-size: 15px; }

/* Hover hints; :focus-within makes them work on tap as well */
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 20; background: var(--graphite); color: #e2e8f0; font-size: 14px; font-weight: 400; line-height: 1.55; padding: 12px 14px; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; box-shadow: 0 12px 30px rgba(15, 23, 42, .2); }
[data-tip]:hover::after, [data-tip]:focus-within::after { opacity: 1; visibility: visible; transform: none; }
.tip-i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1px solid var(--line-strong); color: var(--blue); font: 500 11px/1 var(--mono); margin-left: auto; align-self: center; }
.field label .tip-i { margin-left: 4px; vertical-align: 1px; }
.tip-hint { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: -6px 0 12px; }

/* 152-FZ document builder */
.wiz-nav { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: #fff; counter-reset: wiz; }
.wiz-nav li { counter-increment: wiz; padding: 12px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-left: 1px solid var(--line); }
.wiz-nav li:first-child { border-left: 0; }
.wiz-nav li::before { content: counter(wiz, decimal-leading-zero) " "; font-family: var(--mono); color: var(--line-strong); }
.wiz-nav li.is-on { color: var(--graphite); box-shadow: inset 0 -3px 0 var(--green); }
.wiz-nav li.is-on::before { color: var(--green); }
.wiz-step.card { padding: 36px; }
.wiz-step h3 { font-size: 17px; margin: 28px 0 10px; }
.wiz-sub { color: var(--muted); margin-bottom: 16px; }
.wiz-btns { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.pdn-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.pdn-head__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pdn-todo { margin-bottom: 24px; }
.pdn-todo ol { margin: 0; padding-left: 22px; }
.pdn-todo li { margin-bottom: 6px; }
.pdn-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-size: 13px; color: var(--muted); margin: 0 0 24px; padding: 16px 18px; border: 1px dashed var(--line-strong); background: #fff; }
.pdn-legend b { grid-column: 1 / -1; color: var(--graphite); font-size: 14px; }
.pdn-legend .kind { margin-right: 6px; }
.pdn-layout { display: grid; grid-template-columns: 420px 1fr; gap: 20px; align-items: start; }
.pdn-group { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 22px 0 8px; }
.pdn-group:first-child { margin-top: 0; }
.pdn-group__info { font-size: 14px; color: var(--text); border-left: 3px solid var(--blue); background: #fff; padding: 10px 12px; margin: 0 0 10px; line-height: 1.5; }
.pdn-doc { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; border: 1px solid var(--line); padding: 14px; margin-bottom: 8px; background: #fff; }
.pdn-doc.is-active { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.pdn-doc b { display: block; font-size: 15px; line-height: 1.3; margin-bottom: 4px; color: var(--graphite); }
.pdn-doc__how { font-size: 13px; color: var(--text); line-height: 1.45; margin: 6px 0 0; }
.pdn-doc__how b { display: inline; font-size: 13px; }
.pdn-doc__btns { display: flex; flex-direction: column; gap: 6px; flex: none; }
.pdn-doc__btns .btn { padding: 7px 12px; font-size: 13px; }
.pdn-doc[data-tip]::after { bottom: auto; top: calc(100% + 6px); }
.kinds { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.kind { font-style: normal; font-family: var(--mono); font-size: 10.5px; font-weight: 500; padding: 2px 7px; border: 1px solid currentColor; white-space: nowrap; display: inline-block; letter-spacing: .02em; }
.kind--sign { color: var(--blue); }
.kind--site { color: var(--green); }
.kind--person { color: #7c3aed; }
.kind--rkn { color: var(--error); }
.kind--reserve { color: var(--muted); }
.kind--form { color: var(--amber); }
.pdn-view { position: sticky; top: 84px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.pdn-view__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line); color: var(--graphite); }
.pdn-view__bar .btn { padding: 8px 14px; font-size: 14px; flex: none; }
.pdn-view__how { padding: 10px 16px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--line); line-height: 1.5; }
.pdn-view__how .kind { margin-right: 4px; }
.docview { padding: 32px 36px; max-height: 75vh; overflow: auto; font-family: "Times New Roman", Georgia, serif; font-size: 15px; line-height: 1.5; color: #111; }
.docview h1 { font-size: 18px; text-align: center; margin: 12px 0 16px; color: #111; letter-spacing: 0; }
.docview h2 { font-size: 16px; margin: 18px 0 8px; color: #111; letter-spacing: 0; }
.docview p, .docview li { margin: 0 0 8px; }
.docview table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 13px; }
.docview th, .docview td { border: 1px solid #999; padding: 6px 8px; text-align: left; vertical-align: top; }
.docview th { background: #f3f4f6; }
.docview .ph { background: #fff2a8; padding: 0 3px; }
.docview .note { font-style: italic; color: #555; background: var(--bg); padding: 8px 10px; border-left: 3px solid var(--blue); }
.docview .c { text-align: center; }
.docview .approve { margin-left: 55%; font-size: 13px; }
.docview .row { display: flex; justify-content: space-between; }
.docview .sign { margin-top: 24px; }
.docview .two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

/* Reduced motion: keep everything static */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Print */
@media print {
  .audit-page > *:not(main), .audit-page main > section:not(.quiz-section), .quiz-section .section-head, .result__actions, .cookie { display: none !important; }
  .quiz-section { padding: 0; background: #fff; border: 0; }
  .quiz { border: 0; padding: 0; max-width: none; }
  .meter, .finding { break-inside: avoid; }
  .doc-page .header, .doc-page .footer, .doc-page .doc-actions, .doc-page .cookie, .doc-page .doc-notice { display: none !important; }
  .doc-page .doc-hero { padding: 0 0 12px; background: #fff; border: 0; }
  .doc-page .doc-hero::before { display: none; }
  .doc-page .doc { padding: 0; max-width: none; font-size: 12pt; }
  .doc-page .doc table, .doc-page .kpis, .doc-page .doc h2 { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Responsive */
/* Smallest phones (320px): logo, messengers and burger do not fit with the default gap */
@media (max-width: 359px) {
  .header__inner { gap: 16px; }
}
@media (max-width: 1240px) {
  /* Hide only the header phone: the same class is reused for the big phone in contact blocks */
  .nav, .header .header__phone { display: none; }
  .burger { display: block; }
  .header .btn { display: none; }
  .header__msg { margin-left: auto; }
  .header__msg ~ .burger { margin-left: -12px; }
  .nav.is-open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 4px 24px 24px; border-bottom: 1px solid var(--line); gap: 0; max-height: calc(100vh - 68px); overflow-y: auto; }
  .nav__dd { padding: 0; margin: 0; }
  /* Accordion: only section titles are shown until one is tapped */
  .nav.is-open > a, .nav.is-open .nav__dd > a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 17px; }
  .nav.is-open .nav__dd { border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__dd > a::after { margin-right: 4px; transition: transform .2s; }
  .nav.is-open .nav__dd.is-expanded > a::after { transform: translateY(2px) rotate(-135deg); }
  .nav.is-open .nav__dd:not(.is-expanded) .nav__sub { display: none; }
  .nav.is-open .nav__sub { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 16px 16px; min-width: 0; gap: 12px; }
  .nav.is-open .nav__sub a { padding: 0; color: var(--muted); }
  .nav.is-open .nav__sub--mega { display: flex; }
  .nav.is-open .nav__extra { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; }
  .nav.is-open .nav__extra .btn { display: inline-flex; justify-content: center; color: #fff; }
  .nav.is-open .nav__sub--center { transform: none; }
  .nav.is-open .nav__h--next { margin-top: 0; }
  .nav.is-open .nav__col { gap: 10px; }
  .nav.is-open .nav__h { padding: 6px 0 0; }
  .nav.is-open .nav__sub a.nav__all { margin: 0; padding: 0; border: 0; color: var(--blue); }
}
@media (max-width: 1024px) {
  .hero__grid, .calc, .lead, .expert { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .grid-4, .trust__grid, .steps--4 { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .pdn-layout { grid-template-columns: 1fr; }
  .pdn-view { position: static; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .tariffs, .steps, .pain, .result__score, .promise, .docs-cta, .tools-cta, .fields, .pdn-legend, .doc .sign { grid-template-columns: 1fr; }
  .tariff, .step, .meter { border-left: 0; border-top: 1px solid var(--line); }
  .tariff:first-child, .step:first-child, .meter:first-child { border-top: 0; }
  .pain__col--good { border-left: 0; border-top: 1px solid var(--line); }
  .pain__col li { min-height: 0; }
  .hero { padding: 48px 0 56px; }
  .hero-card__price, .calc__total { font-size: 32px; }
  .expert__facts { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; }
  .quiz { padding: 22px; }
  .seg span { font-size: 14px; padding: 10px 4px; }
  .opt { flex-wrap: wrap; }
  .opt__price { margin-left: 30px; }
  .kpis, .kpis--3 { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(odd) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bar-row { grid-template-columns: 1fr 44px; gap: 4px 12px; }
  .bar-row span { grid-column: 1 / -1; }
  .doc table { display: block; overflow-x: auto; }
  .wiz-nav { grid-template-columns: 1fr 1fr; }
  .wiz-step.card { padding: 22px; }
  .docview { padding: 18px; }
  .topo__foot b { font-size: 16px; }
}

/* ===================== Colour layer =====================
   Brings the brand palette forward: dark hero with green/blue light,
   tinted icon tiles, gradient accents, softer corners. */
:root { --radius: 10px; --grad: linear-gradient(90deg, #219653 0%, #14b8a6 50%, #2563eb 100%); --hero-bg: #0d1726; }

/* Hero: night sky with brand light */
.hero { background-color: var(--hero-bg); background-image: radial-gradient(ellipse 60% 70% at 78% 40%, rgba(33, 150, 83, .32), transparent 70%), radial-gradient(ellipse 50% 60% at 95% 95%, rgba(37, 99, 235, .35), transparent 70%), radial-gradient(ellipse 45% 50% at 0% 100%, rgba(20, 184, 166, .18), transparent 70%); background-size: auto; border-bottom: 0; color: #cbd5e1; overflow: hidden; }
.hero::before { background: none; }
.hero h1 { color: #fff; }
.hero h1 em { background: linear-gradient(90deg, #4ade80, #22d3ee 60%, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: #cbd5e1; }
.hero__points li { color: #e2e8f0; }
.hero .check { background: linear-gradient(135deg, #4ade80, #22d3ee); border-radius: 2px; }
.hero .eyebrow { color: #6ee7b7; }
.hero__example { color: #94a3b8; }
.hero__example b { color: #fff; }
.hero .btn--light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero .btn--light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn { border-radius: 8px; }
.btn--green { background: linear-gradient(135deg, #22a85c, #219653 55%, #1a8a4b); box-shadow: 0 8px 24px rgba(33, 150, 83, .28); }
.btn--green:hover { background: linear-gradient(135deg, #1f9a54, #1b7d45); }

/* Orbit: the moving hero element */
.orbit { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; margin-left: auto; }
.orbit__svg { width: 100%; height: 100%; overflow: visible; }
.chip { position: absolute; display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: rgba(15, 27, 45, .62); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); color: #94a3b8; font-size: 12.5px; line-height: 1.35; white-space: nowrap; animation: chipFloat 7s ease-in-out infinite; }
.chip b { display: block; color: #fff; font-size: 13.5px; font-weight: 600; }
.chip--1 { top: 8%; left: -4%; }
.chip--2 { top: 20%; right: -6%; animation-delay: -2s; animation-duration: 8s; }
.chip--3 { bottom: 16%; left: -2%; animation-delay: -4s; animation-duration: 6.5s; }
.chip--4 { bottom: 5%; right: 2%; animation-delay: -1s; animation-duration: 7.5s; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; }
.dot--green { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .18), 0 0 12px #4ade80; }
.dot--blue { background: #60a5fa; box-shadow: 0 0 0 4px rgba(96, 165, 250, .18), 0 0 12px #60a5fa; }
.dot--teal { background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .18), 0 0 12px #22d3ee; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Trust strip with gradient figures */
.trust__item b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Section index chip */
.section .eyebrow::before { color: #fff; background: var(--grad); border: 0; padding: 3px 8px; border-radius: 6px; margin-right: 2px; }

/* Cards and tiles */
.card, .pain, .tariffs, .calc, .steps, .options, .expert__facts, .promise, .quiz, .wiz-nav, .kpis, .result__score, .pdn-view, .pdn-doc, .opt, .finding, .seg, .form, .hero-card, .doc-card, .field input, .field select, .field textarea, .faq { border-radius: var(--radius); }
.tariffs, .calc, .steps, .pain, .options, .promise, .expert__facts { overflow: hidden; }
.card--shadow:hover, .case:hover { border-color: transparent; box-shadow: 0 0 0 1px rgba(37, 99, 235, .25), 0 18px 40px rgba(30, 41, 59, .1); transform: translateY(-2px); }
.card { transition: box-shadow .25s, transform .25s, border-color .25s; }
.icon { border: 0; border-radius: 10px; background: linear-gradient(135deg, #e0ecff, #eef3fe); color: var(--blue); width: 46px; height: 46px; }
.icon--green { background: linear-gradient(135deg, #d9f3e4, #eaf6ef); color: var(--green); }
.icon svg { width: 22px; height: 22px; stroke-width: 1.8; }

/* Tariffs */
.tariff--popular { box-shadow: none; background: linear-gradient(180deg, #f2fbf6 0%, #fff 40%); }
.tariff--popular::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.tariff__badge { top: 16px; right: 16px; background: var(--grad); color: #fff; padding: 4px 10px; border-radius: 99px; font-size: 10.5px; }
.tariff li::before { background: var(--green); border-radius: 2px; }
.sla { border-radius: 8px; border-color: transparent; background: var(--blue-50); color: var(--blue-dark); }
.price-note { border-radius: var(--radius); }

/* Calculator & dark panels with brand glow */
.calc__result, .section--dark, .footer { background-color: #0f1b2d; }
.calc__result { background-image: radial-gradient(circle at 100% 0%, rgba(33, 150, 83, .35), transparent 55%), radial-gradient(circle at 0% 100%, rgba(37, 99, 235, .3), transparent 55%); }
.section--dark { background-image: radial-gradient(ellipse 50% 80% at 100% 0%, rgba(33, 150, 83, .2), transparent 70%), radial-gradient(ellipse 50% 80% at 0% 100%, rgba(37, 99, 235, .22), transparent 70%); }
.calc__total { background: linear-gradient(90deg, #fff, #a7f3d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seg input:checked + span { background: var(--grad); }
.doc-card { background: #0f1b2d; background-image: radial-gradient(circle at 100% 0%, rgba(33, 150, 83, .35), transparent 60%); border-color: #0f1b2d; }
.doc-card:hover { background-color: #15253c; }
.doc-card .icon { background: rgba(255, 255, 255, .08); color: #6ee7b7; }

/* Steps, facts, KPIs: coloured figures */
.step::before { color: #fff; background: var(--grad); display: inline-block; padding: 3px 9px; border-radius: 6px; border: 0; margin-bottom: 18px; }
.fact b, .kpi b, .tariff__price, .meter b { color: var(--graphite); }
.fact b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case__tag { color: var(--green); }
.case__result { color: var(--green); }

@media (max-width: 1024px) {
  .orbit { max-width: 460px; margin: 8px auto 0; }
}
@media (max-width: 760px) {
  .chip { font-size: 11.5px; padding: 8px 10px; }
  .chip b { font-size: 12.5px; }
  .chip--1 { left: 0; } .chip--2 { right: 0; } .chip--3 { left: 0; } .chip--4 { right: 0; }
}

/* ===== Inner pages share the hero look of the home page ===== */
.doc-hero { background-color: var(--hero-bg); background-image: radial-gradient(ellipse 55% 90% at 85% 10%, rgba(33, 150, 83, .32), transparent 70%), radial-gradient(ellipse 45% 80% at 100% 100%, rgba(37, 99, 235, .32), transparent 70%), radial-gradient(ellipse 40% 70% at 0% 100%, rgba(20, 184, 166, .16), transparent 70%); background-size: 100% 100%; background-repeat: no-repeat; background-position: 0 0; border-bottom: 0; padding: 64px 0 56px; color: #cbd5e1; }
.doc-hero::before { content: none; }
.doc-hero h1 { color: #fff; }
.doc-hero p { color: #cbd5e1; }
.doc-hero .eyebrow { color: #6ee7b7; }
.doc-hero .eyebrow::before { content: none; }
.doc-hero .hero__points li { color: #e2e8f0 !important; }
.doc-hero .check { background: linear-gradient(135deg, #4ade80, #22d3ee) !important; }
.doc-hero .btn--ghost, .doc-hero .btn--light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); }
.doc-hero .btn--ghost:hover, .doc-hero .btn--light:hover { border-color: #fff; }
.doc-hero .btn--primary { background: linear-gradient(135deg, #22a85c, #219653 55%, #1a8a4b); box-shadow: 0 8px 24px rgba(33, 150, 83, .28); }
.doc-hero h1 em { font-style: normal; background: linear-gradient(90deg, #4ade80, #22d3ee 60%, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.crumbs { font-family: var(--mono); font-size: 12px; color: #94a3b8; margin-bottom: 18px; letter-spacing: .04em; }
.crumbs a { color: #cbd5e1; }

/* ===== Projects ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { border: 1px solid var(--line-strong); background: #fff; color: var(--graphite); padding: 9px 16px; border-radius: 99px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; }
.filters button:hover { border-color: var(--blue); color: var(--blue); }
.filters button.is-on { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.project[hidden] { display: none; }
.case__cover { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff; background-color: var(--hero-bg); background-image: radial-gradient(circle at 85% 15%, rgba(33, 150, 83, .45), transparent 55%), radial-gradient(circle at 0% 100%, rgba(37, 99, 235, .45), transparent 55%); border-bottom: 1px solid var(--line); }
.case__cover b { font-family: var(--mono); font-size: 44px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.case__cover span { color: #cbd5e1; font-size: 14px; margin-top: 6px; }
.case__summary { color: var(--muted); margin: 0 0 14px; }
.project__more { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.project__more summary { cursor: pointer; font-weight: 600; color: var(--blue); list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.project__more summary::-webkit-details-marker { display: none; }
.project__more summary::after { content: "+"; font-family: var(--mono); }
.project__more[open] summary::after { content: "−"; }
.project__more h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 8px; }
.project__more ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 15px; }
.project__more li { margin-bottom: 5px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.all-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.all-link p { margin: 0; color: var(--muted); }

/* ===== Blog ===== */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none !important; color: inherit; transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: 0 0 0 1px rgba(37, 99, 235, .25), 0 18px 40px rgba(30, 41, 59, .1); transform: translateY(-2px); }
.post-card__cover { aspect-ratio: 16 / 9; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background-color: var(--hero-bg); }
.post-card__cover--green { background-image: radial-gradient(circle at 90% 10%, rgba(33, 150, 83, .6), transparent 60%), radial-gradient(circle at 0% 100%, rgba(20, 184, 166, .35), transparent 60%); }
.post-card__cover--blue { background-image: radial-gradient(circle at 90% 10%, rgba(37, 99, 235, .6), transparent 60%), radial-gradient(circle at 0% 100%, rgba(34, 211, 238, .3), transparent 60%); }
.post-card__cover--teal { background-image: radial-gradient(circle at 90% 10%, rgba(20, 184, 166, .55), transparent 60%), radial-gradient(circle at 0% 100%, rgba(33, 150, 83, .35), transparent 60%); }
.post-card__cover em { font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #a7f3d0; }
.post-card__cover b { font-family: var(--mono); font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 19px; margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.post-card__meta { margin-top: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; font-size: 17px; line-height: 1.7; }
.article h2 { font-size: 26px; margin: 44px 0 14px; }
.article h3 { font-size: 20px; margin: 28px 0 10px; }
.article p, .article li { color: var(--text); }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; background: #fff; }
.article th, .article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article th { background: var(--bg); color: var(--graphite); }
.article td.num { font-family: var(--mono); white-space: nowrap; }
.article .lead-p { font-size: 20px; color: var(--graphite); }
.callout { border-left: 3px solid var(--green); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 24px 0; }
.callout b { color: var(--graphite); }
.article-cta { margin-top: 48px; padding: 28px; border-radius: var(--radius); color: #cbd5e1; background-color: var(--hero-bg); background-image: radial-gradient(circle at 100% 0%, rgba(33, 150, 83, .4), transparent 60%), radial-gradient(circle at 0% 100%, rgba(37, 99, 235, .35), transparent 60%); }
.article-cta h3 { color: #fff; margin-top: 0; }
.article .article-cta p { color: #cbd5e1; }
.article-cta p a { color: #fff; }
.article-cta + .dash-caption { margin-top: 16px; }
.article-author { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--muted) !important; }
.article-author b { color: var(--graphite); }
.article-meta { font-family: var(--mono); font-size: 13px; color: #94a3b8; margin-top: 14px; }

/* Glossary term mentioned in an article */
.article a.term-link { color: inherit; text-decoration: underline dotted var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.article a.term-link:hover { color: var(--blue); }

/* Glossary index: search and compact letter groups */
.gl-search { margin: 8px 0 28px; }
.gl-search input { width: 100%; box-sizing: border-box; padding: 14px 16px; font: inherit; font-size: 17px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--graphite); }
.gl-search input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.gl-empty { color: var(--muted) !important; }
.gl-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 32px; }
.gl-group h2 { font-family: var(--mono); font-size: 20px; color: var(--blue); margin: 16px 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.gl-group ul { list-style: none; padding: 0; margin: 0; }
.gl-group li { margin: 0 0 6px; font-size: 16px; }
.gl-group a { color: var(--graphite); }
.gl-group a:hover { color: var(--blue); }
.gl-group[hidden], .gl-group li[hidden] { display: none; }

/* Glossary term page: facts card, table of contents, code, schemes, FAQ */
.article h2[id] { scroll-margin-top: 90px; }
.article code { font-family: var(--mono); font-size: .86em; background: #eef2f7; padding: 1px 5px; border-radius: 2px; color: var(--graphite); }
.article td code { white-space: nowrap; }
.term-facts { margin: 24px 0; border: 1px solid var(--line); background: #fff; font-size: 15px; }
.term-facts div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); }
.term-facts div:first-child { border-top: 0; }
.term-facts dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 3px; }
.term-facts dd { margin: 0; color: var(--graphite); }
.toc { margin: 24px 0 8px; padding: 18px 22px; border-left: 3px solid var(--blue); background: #fff; }
.toc__title { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 22px; font-size: 16px; }
.toc li { margin-bottom: 4px; }
.code { margin: 16px 0 24px; border: 1px solid #0f172a; background: #0f172a; border-radius: var(--radius); overflow: hidden; }
.code__label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; padding: 8px 14px; border-bottom: 1px solid #1e293b; }
.code__copy { font: inherit; letter-spacing: inherit; text-transform: inherit; color: #cbd5e1; background: none; border: 1px solid #334155; border-radius: 4px; padding: 2px 8px; cursor: pointer; }
.code__copy:hover, .code__copy:focus-visible { color: #fff; border-color: #64748b; }
.code pre { margin: 0; padding: 14px; overflow-x: auto; }
/* Commands wrap to the screen width; captured output keeps its columns and scrolls instead */
.code code { font-family: var(--mono); font-size: 13.5px; line-height: 1.65; color: #e2e8f0; background: none; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.code--out code { white-space: pre; overflow-wrap: normal; }
.code + .code--out { margin-top: -25px; border-top-left-radius: 0; border-top-right-radius: 0; }
.code--out { background: #111827; border-color: #111827; }
.code--out .code__label { color: #64748b; border-bottom-color: #1f2937; }
.code--out code { color: #cbd5e1; }
.code--out mark { background: rgba(250, 204, 21, .22); color: #fde68a; outline: 1px solid rgba(250, 204, 21, .55); border-radius: 2px; padding: 0 2px; }
.verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 28px; }
.verdict { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid; border-radius: var(--radius); font-size: 15px; line-height: 1.55; }
.verdict p { margin: 0; }
.verdict--ok { background: #f0fdf4; border-color: #bbf7d0; }
.verdict--bad { background: #fef2f2; border-color: #fecaca; }
.verdict__icon { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; margin-top: 1px; }
.verdict--ok .verdict__icon { background: var(--green); }
.verdict--bad .verdict__icon { background: var(--error); }
.note { font-size: 14px; color: var(--muted) !important; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 24px; }
.article .faq { margin: 8px 0 24px; }
.article .faq summary { font-size: 17px; }
.article .faq details p { font-size: 16px; }
.scheme { margin: 24px 0 28px; padding: 20px; background: #fff; border: 1px solid var(--line); }
.scheme figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.scheme svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; font-family: var(--font); }
.sch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.sch-panel__title { margin: 0; font-weight: 600; color: var(--graphite); font-size: 16px; }
.sch-panel__sub { margin: 2px 0 10px; font-size: 13px; color: var(--muted) !important; line-height: 1.45; }
.sch-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; font-size: 13px; color: var(--muted) !important; }
.sch-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sch-key { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid; display: inline-block; }
.sch-key--data { background: #dbeafe; border-color: var(--blue); }
.sch-key--p { background: #fef3c7; border-color: var(--amber); }
.sch-key--q { background: #ffe4e6; border-color: #be123c; }
.sch-disk { fill: var(--bg); stroke: var(--line-strong); }
.sch-data { fill: #dbeafe; stroke: var(--blue); stroke-width: 1.5; }
.sch-p { fill: #fef3c7; stroke: var(--amber); stroke-width: 1.5; }
.sch-q { fill: #ffe4e6; stroke: #be123c; stroke-width: 1.5; }
.sch-t { font-size: 12px; fill: var(--graphite); font-weight: 500; }
.sch-cap { font-size: 11px; fill: var(--muted); }
.sch-box { fill: #fff; stroke: var(--line-strong); stroke-width: 1.5; }
.sch-box--accent { fill: #eff6ff; stroke: var(--blue); }
.sch-group { fill: none; stroke: var(--line-strong); stroke-dasharray: 5 4; }
.sch-line { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.sch-ah { fill: var(--muted); }
.sch-badge { fill: var(--blue); }
.sch-badge-t { font-size: 11px; font-weight: 600; fill: #fff; }
.sch-bar { fill: var(--blue); }
.sch-axis { stroke: var(--line-strong); stroke-width: 1.5; }
.sch-grid-line { stroke: var(--line); stroke-width: 1; }
.sch-chart { max-width: 520px !important; }
.sch-steps { margin: 16px 0 0; font-size: 15px; }
.sch-steps li { margin-bottom: 6px; }
@media (max-width: 640px) {
  .sch-grid { grid-template-columns: 1fr; }
  .scheme { padding: 14px; margin-left: -8px; margin-right: -8px; }
  .term-facts div { grid-template-columns: 1fr; gap: 2px; }
  .verdicts { grid-template-columns: 1fr; }
}

/* Schematic dashboard mockup inside articles */
.dash { border: 1px solid var(--line-strong); background: #fff; margin: 20px 0 8px; font-size: 14px; line-height: 1.45; }
.dash__head { background: var(--graphite); color: #fff; padding: 10px 16px; font-weight: 600; }
.dash__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; }
.dash__block { position: relative; border: 1px solid var(--line); padding: 12px; }
.dash__block--wide { grid-column: 1 / -1; }
.dash__title { font-weight: 600; color: var(--graphite); margin: 0 0 10px; padding-right: 32px; }
.dash__num { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dash__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dash__tile { border: 1px solid var(--green); background: #e9f6ee; padding: 6px 10px; color: var(--graphite); }
.dash__tile small { display: block; font-size: 12px; color: var(--green-dark); }
.dash__tile--bad { border-color: var(--error); background: #fdecec; }
.dash__tile--bad small { color: #b91c1c; }
.dash__problem { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); color: var(--graphite); }
.dash__problem:first-of-type { border-top: 0; padding-top: 0; }
.dash__problem small { display: block; font-size: 12px; color: var(--muted); }
.dash__sev { flex: none; font-size: 12px; font-weight: 600; color: #fff; background: var(--error); padding: 2px 8px; }
.dash__sev--warn { background: var(--amber); }
.dash__bar { display: grid; grid-template-columns: 120px 1fr 56px; gap: 10px; align-items: center; margin: 6px 0; color: var(--graphite); }
.dash__bar i { display: block; height: 10px; background: var(--line); }
.dash__bar i b { display: block; height: 100%; background: var(--green); }
.dash__bar span:last-child { font-family: var(--mono); font-size: 13px; text-align: right; }
.dash-caption { font-size: 13px; color: var(--muted) !important; margin: 0 0 24px; }
.article-fig { margin: 20px 0 8px; }
.article-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); }
.article-fig img[src$=".svg"] { padding: 16px; background: #fff; box-sizing: border-box; }
@media (max-width: 640px) { .dash__grid { grid-template-columns: 1fr; } .dash__bar { grid-template-columns: 90px 1fr 50px; } }

@media (max-width: 1024px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .projects, .posts, .gallery { grid-template-columns: 1fr; } .all-link { flex-direction: column; align-items: flex-start; } .article { font-size: 16px; } }

/* ===== Project covers and story layout ===== */
.case__cover { position: relative; overflow: hidden; aspect-ratio: auto; min-height: 210px; justify-content: flex-end; gap: 4px; }
.case__cover::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 30px rgba(255, 255, 255, .03), 0 0 0 60px rgba(255, 255, 255, .02); }
.case__cover em { position: relative; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #a7f3d0; margin-bottom: auto; }
.case__cover b { position: relative; font-size: 56px; }
.case__cover span { position: relative; }
.case__cover--green { background-image: radial-gradient(circle at 90% 10%, rgba(33, 150, 83, .65), transparent 60%), radial-gradient(circle at 0% 100%, rgba(20, 184, 166, .3), transparent 60%); }
.case__cover--blue { background-image: radial-gradient(circle at 90% 10%, rgba(37, 99, 235, .65), transparent 60%), radial-gradient(circle at 0% 100%, rgba(34, 211, 238, .28), transparent 60%); }
.case__cover--blue em { color: #bfdbfe; }
.case__cover--teal { background-image: radial-gradient(circle at 90% 10%, rgba(20, 184, 166, .6), transparent 60%), radial-gradient(circle at 0% 100%, rgba(33, 150, 83, .35), transparent 60%); }
.case__cover--teal em { color: #99f6e4; }
.story h4 { color: var(--blue) !important; }
.story p { color: var(--text); font-size: 15px; }
.story .story-sub { margin: 18px 0 6px; }
.story-list { padding-left: 20px !important; margin: 0 0 10px; }
.story-list li { font-size: 15px; color: var(--text); margin-bottom: 6px !important; }
.risk-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 4px 0 8px; }
.risk-table td { border-bottom: 1px solid var(--line); padding: 9px 10px 9px 0; vertical-align: top; }
.risk-table td:first-child { font-weight: 600; color: var(--graphite); width: 42%; }
.risk-table td:last-child { color: var(--error); }
.risk-table tr:last-child td { border-bottom: 0; }
/* Before/after table and timeline inside project stories */
.ba-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 4px 0 14px; }
.ba-table th { text-align: left; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line-strong); }
.ba-table td { border-bottom: 1px solid var(--line); padding: 9px 10px 9px 0; vertical-align: top; }
.ba-table td:first-child { font-weight: 600; color: var(--graphite); width: 24%; }
.ba-table td:nth-child(2) { color: var(--error); width: 36%; }
.ba-table td:nth-child(3) { color: var(--green-dark); }
.ba-table tr:last-child td { border-bottom: 0; }
.timeline { list-style: none; padding: 0 !important; margin: 6px 0 14px 6px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 20px; margin: 0 !important; font-size: 15px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #fff; }
.timeline b { display: block; font: 600 12px var(--mono); letter-spacing: .04em; color: var(--blue); margin-bottom: 2px; }
.steps-list { list-style: none; padding: 0 !important; counter-reset: st; }
.steps-list li { position: relative; padding-left: 40px; margin-bottom: 12px !important; font-size: 15px; }
.steps-list li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font: 600 13px/26px var(--mono); text-align: center; }
.steps-list b { color: var(--graphite); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 12px; }
.result-grid div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg); }
.result-grid b { display: block; font-family: var(--mono); font-size: 26px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result-grid span { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; }
.fit { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); background: var(--green-50); border: 1px solid #c7ead5; }
.fit b { color: var(--graphite); }
.fit ul { margin: 8px 0 14px !important; }
.fit .btn { padding: 11px 16px; font-size: 14px; }
@media (max-width: 760px) { .result-grid { grid-template-columns: 1fr; } .case__cover b { font-size: 44px; } }

/* An opened project takes the full row: wide images, readable text column */
.project:has(details[open]) { grid-column: 1 / -1; }
.project:has(details[open]) .case__cover { min-height: 180px; }
.project:has(details[open]) .case__body > *:not(details), .project__more[open] .story, .project__more[open] .fit { max-width: 860px; }
.project__more[open] .gallery img { aspect-ratio: auto; }

/* Projects: every collapsed card has the same height; an opened one grows freely */
.projects { align-items: stretch; }
.project { display: flex; flex-direction: column; }
.project .case__cover { height: 210px; min-height: 0; flex: none; }
.project .case__body { flex: 1; display: flex; flex-direction: column; }
.project h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em; }
.project .case__body > .case__facts { flex-wrap: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.project .case__summary { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: 6.4em; }
.project .case__result { margin-top: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.2em; }
.project:has(details[open]) h3, .project:has(details[open]) .case__summary, .project:has(details[open]) .case__result { -webkit-line-clamp: unset; display: block; min-height: 0; }
.project:has(details[open]) .case__body > .case__facts { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
.project:has(details[open]) .case__cover { height: 180px; }

/* Home page: project cards are links to the full story */
a.case { text-decoration: none !important; color: inherit; display: flex; flex-direction: column; }
a.case .case__body { flex: 1; display: flex; flex-direction: column; }
a.case .case__result { margin-top: auto; }
.case__more { margin-top: 14px; font-weight: 600; color: var(--blue); }
a.case:hover .case__more { text-decoration: underline; text-underline-offset: 3px; }
#cases .grid-2 { align-items: stretch; }

/* About list */
.about-list { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; }
.about-list li { position: relative; padding-left: 20px; color: var(--text); }
.about-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); }

/* "How we start": the bottom lines of all three steps sit on one baseline */
.steps { align-items: stretch; }
.step { display: flex; flex-direction: column; }
.step::before { align-self: flex-start; }
.step__meta { margin-top: auto; padding-top: 16px; }

/* Bigger hero orbit; tablet and phone keep it inside the viewport */
.hero__grid { grid-template-columns: 1fr 1.05fr; gap: 32px; }
.hero h1 { font-size: clamp(32px, 4.2vw, 52px); }
.orbit { max-width: 680px; width: 112%; margin-right: -8%; }
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .orbit { width: 100%; max-width: 600px; margin: 8px auto 0; }
}
@media (max-width: 760px) {
  .orbit { max-width: 100%; }
  .chip--1 { top: 4%; } .chip--2 { top: 16%; } .chip--3 { bottom: 14%; } .chip--4 { bottom: 2%; }
}
.chip--2 { right: 0; }
.hero__example b { white-space: nowrap; }
@media (min-width: 1025px) { .chip--2 { right: 4%; } .chip--4 { right: 6%; } }

/* Laptop and desktop: bigger orbit with the glass sphere */
@media (min-width: 1025px) {
  .hero__grid { grid-template-columns: .95fr 1.05fr; }
  .orbit { width: 122%; max-width: 760px; margin-right: -14%; margin-top: -24px; margin-bottom: -24px; }
  .chip--1 { top: 9%; left: 2%; } .chip--2 { top: 21%; right: 8%; } .chip--3 { bottom: 17%; left: 1%; } .chip--4 { bottom: 7%; right: 12%; }
}
.meter b.lvl-bad { color: var(--error); } .meter b.lvl-mid { color: var(--amber); } .meter b.lvl-good { color: var(--green); }

/* ===== IT maturity result ===== */
.mlevel { border: 1px solid var(--line); padding: 22px; margin: 20px 0 8px; }
.mlevel__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.mlevel__head span { font-size: 13px; color: var(--muted); }
.mlevel__head b { font-family: var(--mono); font-size: 26px; font-weight: 600; }
.mlevel__text { margin: 10px 0 18px; color: var(--text); }
.mladder { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mladder li { border-top: 3px solid var(--line); padding-top: 8px; font-size: 13px; color: var(--muted); }
.mladder li i { font-style: normal; font-family: var(--mono); margin-right: 6px; }
.mladder li.is-done { border-color: #93c5fd; }
.mladder li.is-on { border-color: var(--blue); color: var(--graphite); font-weight: 700; }
.mareas { border: 1px solid var(--line); }
.marea { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.marea:last-child { border-bottom: 0; }
.marea b { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.marea__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.marea__bar i { height: 6px; background: var(--line); }
.mnum { display: block; font-family: var(--mono); font-size: 34px; font-weight: 600; line-height: 1; margin-bottom: 10px; }
@media (max-width: 760px) {
  .mladder { grid-template-columns: 1fr 1fr; }
  .marea { grid-template-columns: 1fr; gap: 6px; }
}

/* Blog cover caption under the big figure */
.post-card__cover small { display: block; margin-top: 8px; font-size: 14px; line-height: 1.35; color: #cbd5e1; max-width: 90%; }
.marea__bar i.lvl-bad-bg { background: var(--error); } .marea__bar i.lvl-mid-bg { background: #d97706; } .marea__bar i.lvl-good-bg { background: var(--green); }

/* Home "where to start" block: three main entries plus a link to all tools */
.tools-cta--3 { grid-template-columns: repeat(3, 1fr); }
.tools-more { margin: 22px 0 0; color: var(--muted); }
.tools-more a { font-weight: 700; white-space: nowrap; }
.tools-group + .tools-group { margin-top: 48px; }
.tools-group h2 { font-size: 24px; margin-bottom: 16px; }
@media (max-width: 1024px) { .tools-cta--3 { grid-template-columns: 1fr; } }
.case__note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--line-strong); padding: 6px 12px; margin: 12px 0 0; }

/* Pains: paired items share a row, so lines in both columns end at the same height */
@media (min-width: 761px) {
  .pain { grid-template-rows: auto repeat(4, auto); }
  .pain__col { display: grid; grid-row: 1 / span 5; grid-template-rows: subgrid; }
  .pain__col ul { display: contents; }
  .pain__col li { margin: 0 24px; min-height: 0; }
}

/* Recommendation letters: two at a time, arrows loop endlessly, so the number of letters is not obvious.
   JS surrounds the cards with cloned sets and silently jumps back to the middle set after each step */
.letters__view { overflow: hidden; margin: -20px 0; padding: 20px 0; }
.letters__track { display: flex; transition: transform .45s ease; }
.letters__track > .letter { flex: none; width: calc(50% - 8px); margin-right: 16px; }
.letters__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.letters__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--text, #1e293b); font-size: 20px; line-height: 1; cursor: pointer; transition: border-color .2s, color .2s, box-shadow .2s; }
.letters__btn:hover { border-color: var(--blue, #2563eb); color: var(--blue, #2563eb); box-shadow: 0 6px 18px rgba(30, 41, 59, .1); }
@media (prefers-reduced-motion: reduce) { .letters__track { transition: none; } }
.letter { display: grid; grid-template-columns: 190px 1fr; padding: 0; overflow: hidden; text-decoration: none !important; color: inherit; }
.letter__scan { background: #eef2f7; padding: 16px; border-right: 1px solid var(--line); }
.letter__scan img { display: block; width: 100%; height: auto; box-shadow: 0 2px 10px rgba(30, 41, 59, .15); }
.letter__body { padding: 24px 26px; display: flex; flex-direction: column; }
.letter__body h3 { margin: 0 0 12px; font-size: 19px; }
.letter__body blockquote { margin: 0 0 16px; padding-left: 14px; border-left: 3px solid var(--green); color: var(--text, #1e293b); font-size: 16px; }
.letter__who { font-size: 14px; color: var(--muted); }
.letter__body .case__more { margin-top: auto; padding-top: 16px; }
.letter:hover { border-color: transparent; box-shadow: 0 0 0 1px rgba(37, 99, 235, .25), 0 18px 40px rgba(30, 41, 59, .1); transform: translateY(-2px); }
@media (max-width: 760px) {
  .letters__track > .letter { width: 100%; margin-right: 12px; }
  .letter { grid-template-columns: 96px 1fr; }
  .letter__scan { padding: 10px; }
  .letter__body { padding: 18px; }
}

/* Case covers on phones: let long hooks wrap without pushing the label out */
@media (max-width: 760px) {
  .project .case__cover, .project:has(details[open]) .case__cover { height: auto; min-height: 180px; }
  .case__cover b { font-size: 38px; }
}

/* About page: team cards with a letter monogram instead of photos */
.narrow { max-width: 820px; }
.narrow h2 { margin-bottom: 16px; }
.narrow p + p { margin-top: 14px; }
.team__avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, var(--blue), #219653); color: #fff; font-size: 28px; font-weight: 700; }
.team__card h3 { margin-bottom: 2px; }
.team__role { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.team__note { margin-top: 24px; color: var(--muted); }
.about-facts { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 1025px) { .about-facts .fact { border: 0; border-right: 1px solid var(--line); } .about-facts .fact:last-child { border-right: 0; } }
@media (max-width: 1024px) { .about-facts { grid-template-columns: 1fr 1fr; } }
.team__people { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; }
.team__people span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.team__people i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), #219653); color: #fff; font-style: normal; font-size: 16px; font-weight: 700; }
/* About page: partner cards with logos */
.partner__logo { display: flex; align-items: center; height: 56px; margin-bottom: 18px; }
.partner__logo img { max-height: 44px; max-width: 200px; width: auto; height: auto; }
.partner__logo--text { gap: 10px; font-size: 28px; font-weight: 800; color: var(--graphite); text-decoration: none; }
.partner--cta { background: var(--bg); display: flex; flex-direction: column; justify-content: center; }
.post-card__aud { color: var(--blue); }
.posts-empty { color: var(--muted); margin: 0 0 28px; }
.post-card[hidden] { display: none; }
/* Soft first step under the hero and call-back forms after articles, terms and calculators */
.hero__free { margin-top: 10px; font-size: 15px; color: #93a5c3; }
.hero__free a { color: #6ee7a0; }
.lead-inline { margin-top: 24px; }
.lead-inline h3 { margin-bottom: 6px; }
.lead-inline .btn { margin-top: 4px; }
/* Photos of the team at work on service pages */
.work-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.work-photos--one { grid-template-columns: 1fr; max-width: 820px; }
.work-photo { margin: 0; }
.work-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 55%; border-radius: var(--radius); }
.work-photo figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .work-photos { grid-template-columns: 1fr; } }
/* Photo collage on the About page and the full-size viewer */
.collage { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 8px; margin-top: 32px; }
.collage__item { display: block; overflow: hidden; border-radius: 10px; cursor: zoom-in; }
.collage__item--wide { grid-column: span 2; }
.collage__item--tall { grid-row: span 2; }
.collage__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.collage__item:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .collage { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; } }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(8, 14, 26, .92); cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 34px; line-height: 1; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
/* Phone-or-email hint and the "Ask a question" corner button */
.field__hint { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.ask-btn { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 56px; height: 56px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), #219653); box-shadow: 0 10px 24px rgba(15, 23, 42, .25); cursor: pointer; transition: transform .2s; }
.ask-btn:hover { transform: scale(1.06); }
.ask-btn svg { width: 26px; height: 26px; }
.ask-btn.is-open { box-shadow: 0 0 0 4px rgba(37, 99, 235, .25), 0 10px 24px rgba(15, 23, 42, .25); }
.ask-hint { position: fixed; right: 88px; bottom: 30px; z-index: 900; border: 1px solid var(--line); background: #fff; color: var(--graphite); font: inherit; font-size: 14px; padding: 10px 14px; border-radius: 12px; box-shadow: 0 10px 24px rgba(15, 23, 42, .15); cursor: pointer; }
.ask-panel { position: fixed; right: 20px; bottom: 88px; z-index: 900; width: 340px; max-height: calc(100vh - 120px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(15, 23, 42, .2); padding: 20px; }
.ask-panel[hidden] { display: none; }
.ask-panel__close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.ask-panel__hello { font-weight: 600; color: var(--graphite); margin: 0 24px 4px 0; }
.ask-panel__when { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.ask-panel__msg { display: flex; gap: 8px; margin-bottom: 8px; }
.ask-panel__msg a { flex: 1; text-align: center; padding: 9px; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--graphite); text-decoration: none; }
.ask-panel__msg a:hover { border-color: var(--blue); color: var(--blue); }
.ask-form { border: 0; box-shadow: none; padding: 0; background: none; }
.ask-form .form__body { padding: 0; }
.ask-form textarea { width: 100%; resize: vertical; font: inherit; }
@media (max-width: 760px) {
  .ask-btn { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .ask-panel { right: 10px; left: 10px; bottom: 76px; width: auto; }
  .ask-hint { right: 76px; bottom: 22px; }
  body:has(.cookie.is-visible) .ask-btn, body:has(.cookie.is-visible) .ask-hint { display: none; }
}

/* Compact first screen for pages where the main content (a quiz) must start soon */
.hero--compact { padding: 40px 0 44px; }
.hero--compact h1 { font-size: clamp(28px, 3.4vw, 42px); }
.hero--compact .hero__lead { font-size: 17px; }
.hero--compact .hero__points { margin: 16px 0 22px; gap: 6px; }
.hero--compact .hero-card { padding: 20px 22px; }
.hero--compact .hero-card__price { font-size: 30px; }
.hero--compact .hero-card__note { margin: 0; font-size: 14px; }
@media (max-width: 760px) {
  .hero--compact { padding: 28px 0 32px; }
  .hero--compact .hero__lead { font-size: 16px; }
  .hero--compact .hero-card { margin-top: 16px; }
}
/* GPU rental: four cards in a row */
.tariffs--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1240px) {
  .tariffs--4 { grid-template-columns: repeat(2, 1fr); }
  .tariffs--4 .tariff:nth-child(odd) { border-left: 0; }
  .tariffs--4 .tariff:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) { .tariffs--4 { grid-template-columns: 1fr; } }
/* Second highlighted link at the bottom of the services menu */
.nav__sub a.nav__all--end { margin: 10px 18px 0; padding: 12px 0 0; border-bottom: 0; border-top: 1px solid var(--line); }/* Four cards are narrower: smaller price on one line, list items not stretched */
.tariffs--4 .tariff__price { font-size: 30px; white-space: nowrap; }
.tariffs--4 .tariff ul { align-content: start; }
/* Crossed-out start price above the price; empty line keeps the four cards level */
.tariff__old { font-family: var(--mono); font-size: 15px; color: var(--muted); margin-top: 18px; line-height: 1.4; }
.tariffs--4 .tariff__price { margin-top: 0; }
.tariff__badge--busy { background: #fff; color: var(--muted); border: 1px solid var(--line-strong); }/* Tariff lists stay compact: rows are not stretched to fill the card, the button stays at the bottom */
.tariff ul { align-content: start; }

/* ===================== Phones and tablets =====================
   Classes below are set by common.js; on wide screens they change nothing. */
.swipe-dots, .m-more__btn, .posts-more { display: none; }
.tariff__price span { display: inline-block; white-space: nowrap; }
@media (max-width: 1024px) {
  /* Letters slider on tablets: one letter at a time, the text no longer gets cut */
  .letters__track > .letter { width: 100%; }
  /* Long commands in table cells wrap instead of pushing the table off the screen */
  .article td code, .article p code, .article li code { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 760px) {
  /* Tables with 3+ columns: one card per row, column titles above each value */
  table.t-cards, .doc table.t-cards { display: block; border: 0; background: none; overflow: visible; }
  .t-cards thead { display: none; }
  .t-cards tbody, .t-cards tr, .t-cards td, .t-cards th { display: block; width: auto; }
  .t-cards tr { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 14px 16px; margin-bottom: 12px; }
  .t-cards tr > * { border: 0 !important; padding: 4px 0 !important; white-space: normal !important; text-align: left !important; }
  .t-cards tr > :first-child { font-weight: 600; font-size: 17px; color: var(--graphite); padding-bottom: 8px !important; }
  .t-cards tr > [data-label]:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; }
  .compare.t-cards tr { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); }
  .compare.t-cards tr > :first-child { color: #fff; }
  .compare.t-cards tr > [data-label]:not(:first-child)::before { color: #64748b; }
  .compare--plain.t-cards tr { background: #fff; border-color: var(--line); }
  .compare--plain.t-cards tr > :first-child { color: var(--graphite); }
  .table-wrap { overflow: visible; }
  /* Commands in narrow cells wrap instead of being cut */
  td code, .article td code, p code, li code { white-space: normal; overflow-wrap: anywhere; }

  /* Rows of cards: swipe sideways, the next card peeks in from the right */
  .m-swipe { display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 6px; scroll-padding: 0 16px; border: 0 !important; background: none !important; border-radius: 0 !important; scrollbar-width: none; overscroll-behavior-x: contain; }
  .m-swipe::-webkit-scrollbar { display: none; }
  .m-swipe > * { flex: 0 0 86%; scroll-snap-align: start; margin: 0 !important; }
  .m-swipe > .tariff, .m-swipe > .card { border: 1px solid var(--line) !important; border-radius: var(--radius); background-color: #fff; }
  .m-swipe > .tariff:first-child, .m-swipe > .card:first-child { border-top: 1px solid var(--line) !important; }
  .m-swipe > .tariff--popular { border-color: var(--green) !important; overflow: hidden; }
  .swipe-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .swipe-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: background .2s, width .2s; }
  .swipe-dots span.is-on { width: 20px; border-radius: 4px; background: var(--green); }
  .section--dark .swipe-dots span { background: rgba(255, 255, 255, .25); }
  .section--dark .swipe-dots span.is-on { background: #4ade80; }

  /* Folding blocks: footer columns, contents, sources */
  .m-fold__title { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; -webkit-tap-highlight-color: transparent; }
  .m-fold__title::after { content: "+"; font: 400 22px/1 var(--font); color: var(--blue); }
  .m-fold.is-open > .m-fold__title::after { content: "−"; }
  .m-fold:not(.is-open) > .m-fold__title ~ * { display: none !important; }
  .footer .m-fold__title { margin: 0; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .footer .m-fold__title::after { color: #94a3b8; }
  .footer .m-fold.is-open > ul { padding-bottom: 16px; }
  .footer__grid { gap: 0; }
  .footer__grid > div:first-child { margin-bottom: 20px; }
  .toc .m-fold__title { margin: 0; }
  .toc.is-open .m-fold__title { margin-bottom: 8px; }
  .m-fold > h2.m-fold__title::after { font-size: 28px; }

  /* "Read more" text blocks */
  .m-more:not(.is-open) .m-more__btn ~ * { display: none !important; }
  .m-more:not(.is-open) .m-more__btn { display: inline-flex; margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--blue); cursor: pointer; }

  /* Blog list: shorter covers, the rest of the articles behind a button */
  .post-card__cover { aspect-ratio: auto; min-height: 150px; gap: 18px; }
  .post-card.is-extra { display: none; }
  .posts-more:not([hidden]) { display: flex; width: 100%; justify-content: center; margin-top: 20px; }

  /* Hero picture on the home page takes less than a screen */
  .orbit { max-width: 320px; }
}
/* Phones and tablets: the orbit sits behind the hero text in the top right corner, without status chips */
@media (max-width: 1024px) {
  .hero__grid > :first-child { position: relative; z-index: 1; }
  .hero .orbit { position: absolute; top: -56px; right: -12px; width: 360px; max-width: none; margin: 0; z-index: 0; opacity: .6; pointer-events: none; }
  .hero .chip { display: none; }
}
@media (max-width: 760px) {
  .hero .orbit { top: -52px; right: -30px; width: 260px; opacity: .55; }
}

/* Menu group titles (Проверки, Шаблоны, Калькуляторы...) styled like section labels: mono, brand green, gradient tick */
@media (max-width: 1240px) {
  .nav.is-open .nav__h { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 600; letter-spacing: .1em; color: var(--green); padding: 14px 0 2px; }
  .nav.is-open .nav__h::before { content: ""; flex: none; width: 3px; height: 12px; border-radius: 2px; background: var(--grad); }
  .nav.is-open .nav__col + .nav__col .nav__h:first-child, .nav.is-open .nav__h--next { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
  .nav.is-open .nav__sub a.nav__all + .nav__col .nav__h:first-child { border-top: 0; }
}
/* Phones: pains go in pairs, tariff lists and option details fold */
.m-tfold__btn, .td-fold__btn { display: none; }
@media (max-width: 760px) {
  .pain { display: flex; flex-direction: column; }
  .pain__col, .pain__col ul { display: contents; }
  .pain__col h3 { display: none; }
  .pain__col li { margin: 0; padding: 16px 20px; border-bottom: 0; }
  .pain__col li::before { display: block; margin-bottom: 6px; font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
  .pain__col--bad li { padding-bottom: 12px; border-top: 1px solid var(--line-strong); }
  .pain__col--bad li:first-child { border-top: 0; }
  .pain__col--bad li::before { content: "Сейчас"; color: var(--error); }
  .pain__col--good li { padding-top: 12px; background: #f2fbf6; }
  .pain__col--good li::before { content: "С Айтиллект"; color: var(--green); }
  .pain__col--bad li:nth-child(1) { order: 1; } .pain__col--good li:nth-child(1) { order: 2; }
  .pain__col--bad li:nth-child(2) { order: 3; } .pain__col--good li:nth-child(2) { order: 4; }
  .pain__col--bad li:nth-child(3) { order: 5; } .pain__col--good li:nth-child(3) { order: 6; }
  .pain__col--bad li:nth-child(4) { order: 7; } .pain__col--good li:nth-child(4) { order: 8; }
  .pain__col--bad li:nth-child(5) { order: 9; } .pain__col--good li:nth-child(5) { order: 10; }

  .m-tfold__btn, .td-fold__btn { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .m-tfold__btn::after, .td-fold__btn::after { content: "+"; font: 400 22px/1 var(--font); color: var(--blue); }
  .m-tfold.is-open .m-tfold__btn::after, .td-fold.is-open .td-fold__btn::after { content: "−"; }
  .m-tfold__btn { margin: 0 0 18px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 600 15px/1.4 var(--font); color: var(--graphite); }
  .m-tfold.is-open .m-tfold__btn { margin-bottom: 14px; }
  .m-tfold:not(.is-open) .tariff > ul { display: none; }
  .td-fold__btn { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
  .t-cards tr > .td-fold[data-label]::before { content: none; }
  .td-fold:not(.is-open) .td-fold__body { display: none; }
  .td-fold.is-open .td-fold__body { display: block; margin-top: 4px; }
}
/* Phones: generated titles for folded lists */
.m-fold__bar { display: none; }
@media (max-width: 760px) {
  .m-fold__bar { display: flex; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 600; color: var(--graphite); }
  .m-fold.is-open > .m-fold__bar { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 12px; }
  .card.m-fold > h3.m-fold__title { margin: 0; }
  .card.m-fold.is-open > h3.m-fold__title { margin-bottom: 12px; }
}
@media (max-width: 760px) {
  /* Prices stay on one line in swipe cards, so levelled lines do not leave gaps */
  .m-swipe > .tariff { padding: 26px 20px; }
  .m-swipe .tariff__price { font-size: 30px; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  /* Tablet: three narrow tariff cards; the number fits one line, the badge gets its own space above the name */
  .tariffs:not(.tariffs--4) > .tariff { padding: 48px 20px 24px; }
  .tariffs:not(.tariffs--4) .tariff__price { font-size: 26px; }
  .tariffs:not(.tariffs--4) .tariff__price span { display: block; margin-top: 2px; }
  .tariffs:not(.tariffs--4) .tariff__badge { top: 14px; left: 20px; right: auto; }
}
/* Headings in a serif face (variant D chosen 03.11.2026); body text stays Onest. Lining figures keep numbers in headings level */
h1, h2, h3, .tariff__name { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: lining-nums; }

/* Narrow screens (phones and tablets): show or hide short variants */
.only-narrow { display: none; }
@media (max-width: 1023px) {
  .only-narrow { display: inline; }
  .hide-narrow { display: none !important; }
}

/* Video in a dialog (audit page): the file is not loaded until the button is pressed */
.btn--play svg { width: 16px; height: 16px; }
.video-dialog { padding: 0; border: 0; border-radius: 14px; background: #0d1726; width: min(960px, calc(100vw - 32px)); max-width: none; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: visible; }
.video-dialog::backdrop { background: rgba(15, 23, 42, .78); }
.video-dialog video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #0d1726; }
.video-dialog__close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; line-height: 36px; cursor: pointer; }
.video-dialog__close:hover { background: rgba(255, 255, 255, .26); }
