/* ===================== Tokens ===================== */
:root {
  --bg: #F6F8FA;
  --surface: #FFFFFF;
  --surface-2: #EDF2F6;
  --text: #0D1B2A;
  --muted: #4E5F70;
  --line: #DAE2EA;
  --line-strong: #C3CFDB;
  --accent: #0A6EBD;
  --accent-hover: #085C9E;
  --accent-ink: #FFFFFF;
  --accent-soft: #E2EFF9;
  --teal: #0B7F7B;
  --teal-soft: #DFF3F1;
  --warn: #8A5A00;
  --warn-soft: #FFF4DB;
  --ok: #157347;
  --shadow: 0 1px 2px rgba(13,27,42,.05), 0 8px 24px -12px rgba(13,27,42,.18);
  --dots: rgba(13,27,42,.09);

  --f-head: "Manrope", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", "Manrope", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 14px;
  --r-lg: 20px;
  --header-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1219; --surface: #111C26; --surface-2: #172530; --text: #E4ECF3; --muted: #9DB0C1;
    --line: #22323F; --line-strong: #2F4252; --accent: #4CA9EE; --accent-hover: #74BDF3; --accent-ink: #04121D;
    --accent-soft: #11304A; --teal: #46C7BF; --teal-soft: #0F2E2D; --warn: #F2C46B; --warn-soft: #2D2410; --ok: #5BD08F;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.7); --dots: rgba(228,236,243,.07);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1219; --surface: #111C26; --surface-2: #172530; --text: #E4ECF3; --muted: #9DB0C1;
  --line: #22323F; --line-strong: #2F4252; --accent: #4CA9EE; --accent-hover: #74BDF3; --accent-ink: #04121D;
  --accent-soft: #11304A; --teal: #46C7BF; --teal-soft: #0F2E2D; --warn: #F2C46B; --warn-soft: #2D2410; --ok: #5BD08F;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.7); --dots: rgba(228,236,243,.07);
  color-scheme: dark;
}

/* ===================== Base ===================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
svg { display: block; flex-shrink: 0; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); }
.skip:focus { top: 12px; }

/* ===================== Buttons ===================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }

/* ===================== Header ===================== */
.header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand__mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.brand__mark .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.brand__name { font: 800 19px/1 var(--f-head); letter-spacing: -.02em; }
.brand__by { white-space: nowrap; font: 500 12px/1 var(--f-mono); color: var(--muted); padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { white-space: nowrap; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.header__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--line-strong); }
.theme-dark { display: none; }
:root[data-theme="dark"] .theme-dark { display: block; }
:root[data-theme="dark"] .theme-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-dark { display: block; }
  :root:not([data-theme="light"]) .theme-light { display: none; }
}
.webmail-link { white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 8px 10px; }
.webmail-link:hover { color: var(--text); }

/* ===================== Hero ===================== */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--dots) 1.2px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 95%); mask-image: linear-gradient(180deg, #000 0%, transparent 95%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.tagline { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--muted); }
.tag b { color: var(--text); font-weight: 600; }
.tag .ic { width: 15px; height: 15px; color: var(--teal); stroke-width: 2.2; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.035em; }
.hero h1 span { color: var(--accent); }
.hero__lead { margin-top: 20px; font-size: 18.5px; color: var(--muted); max-width: 600px; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.pay { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.pay span { padding: 4px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text); font-weight: 500; }

/* Receipt preview in hero */
.slip { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow); padding: 26px 26px 30px; font-family: var(--f-mono); font-size: 14px; }
.slip::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -12px; height: 12px; background: radial-gradient(circle at 8px 0, transparent 7px, var(--surface) 7.5px) 0 0 / 16px 12px repeat-x; filter: drop-shadow(0 1px 0 var(--line)); }
.slip__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed var(--line-strong); color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.slip__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--muted); }
.slip__row b { color: var(--text); font-weight: 500; }
.slip__rows { padding: 10px 0; border-bottom: 1px dashed var(--line-strong); }
.slip__total { padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.slip__total > span { color: var(--muted); font-size: 13px; }
.slip__total b { font-size: 30px; font-weight: 600; color: var(--accent); letter-spacing: -.02em; }
.slip__total small { font-size: 14px; color: var(--muted); font-weight: 400; }
.slip__note { margin-top: 14px; font-size: 12.5px; color: var(--muted); font-family: var(--f-body); }

/* ===================== Sections ===================== */
.section { padding: 88px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.head { max-width: 720px; margin-bottom: 44px; }
.eyebrow { display: block; margin-bottom: 12px; font: 600 12.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.head h2 { font-size: clamp(27px, 3.4vw, 40px); font-weight: 800; }
.head p { margin-top: 14px; font-size: 17px; color: var(--muted); }

.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.section--alt .tile { background: var(--bg); }
.tile__ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.tile__ic .ic { width: 21px; height: 21px; }
.tile h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: 15px; }
.tile--wide { grid-column: span 2; }
.fact { font: 600 13px/1 var(--f-mono); color: var(--teal); background: var(--teal-soft); padding: 4px 8px; border-radius: 6px; display: inline-block; margin-top: 12px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.checklist li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checklist .ic { width: 22px; height: 22px; color: var(--teal); margin-top: 1px; stroke-width: 2; }
.checklist b { display: block; font-weight: 600; }
.checklist span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.badge-free { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 6px 12px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); font-weight: 600; font-size: 14px; }

/* ===================== Calculator ===================== */
.pricing-notes { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pricing-notes li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.pricing-notes .ic { width: 16px; height: 16px; color: var(--accent); }

.calc { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.preset { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: 500 14px/1.2 var(--f-body); cursor: pointer; text-align: left; }
.preset small { font-family: var(--f-mono); color: var(--muted); margin-left: 6px; font-size: 12px; }
.preset:hover { border-color: var(--accent); }
.preset[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.preset[aria-pressed="true"] small { color: var(--accent); }
.presets-label { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.field { padding: 22px 0; border-bottom: 1px solid var(--line); }
.field__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.field label { font-weight: 600; }
.field__hint { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.num { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); overflow: hidden; }
.num:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.num input { width: 88px; height: 42px; border: 0; background: transparent; color: var(--text); font: 500 17px var(--f-mono); text-align: right; padding: 0 4px 0 10px; -moz-appearance: textfield; appearance: textfield; }
.num input:focus { outline: none; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num span { padding: 0 12px 0 4px; color: var(--muted); font: 400 13px var(--f-mono); }
.range { margin-top: 16px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 0%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--accent) var(--p), var(--surface-2) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--surface-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 6px var(--accent); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--accent-soft); }
.range__scale { display: flex; justify-content: space-between; font: 400 12px var(--f-mono); color: var(--muted); margin-top: 2px; }

.opt { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; padding-bottom: 0; }
.opt input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--bg); display: grid; place-items: center; cursor: pointer; }
.opt input::after { content: ""; width: 11px; height: 6px; border-left: 2.2px solid var(--accent-ink); border-bottom: 2.2px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.opt input:checked { background: var(--accent); border-color: var(--accent); }
.opt input:checked::after { opacity: 1; }
.opt b { display: block; font-weight: 600; }
.opt span { display: block; font-size: 14px; color: var(--muted); }
.opt .mono { color: var(--text); }

/* Receipt */
.receipt { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.receipt__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 18px; border-bottom: 1px dashed var(--line-strong); }
.receipt__label { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.receipt__price { margin-top: 8px; font: 600 38px/1.05 var(--f-mono); letter-spacing: -.03em; color: var(--text); }
.receipt__price small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.receipt__toggle { display: none; }
.receipt__body { padding: 8px 24px 24px; }
.lines { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.lines li > span { color: var(--muted); }
.lines li > b { font: 500 14px var(--f-mono); white-space: nowrap; }
.lines .sub { padding: 2px 0 2px 14px; font-size: 13px; }
.lines .sub > span, .lines .sub > b { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.lines .group { margin-top: 4px; }
.once { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.once b { font: 600 14px var(--f-mono); white-space: nowrap; }
.once span { color: var(--text); }
.balance { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.balance label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.balance .num input { width: 100%; text-align: left; padding-left: 12px; }
.balance .num { width: 100%; }
.days { margin-top: 10px; font-size: 15px; color: var(--muted); min-height: 24px; }
.days b { color: var(--ok); font-family: var(--f-mono); font-weight: 600; font-size: 16px; }
.receipt__actions { margin-top: 18px; display: grid; gap: 8px; }
.receipt__fine { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.below { margin-top: 24px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.below h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 12px var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
td.mono, th.r { text-align: right; }
td.mono { white-space: nowrap; padding-left: 12px; }
td small { color: var(--muted); display: block; font-size: 13px; }
tr.grp td { padding-top: 16px; font-weight: 600; border-bottom: 0; padding-bottom: 2px; }
tr.tier td:first-child { padding-left: 14px; color: var(--muted); }
.incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.incl li { display: flex; gap: 10px; font-size: 15px; }
.incl .ic { color: var(--teal); width: 19px; height: 19px; margin-top: 2px; stroke-width: 2.2; }

/* ===================== Steps ===================== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 22px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(st, decimal-leading-zero); display: block; font: 600 14px var(--f-mono); color: var(--accent); margin-bottom: 14px; }
.steps b { display: block; font-family: var(--f-head); font-size: 16.5px; margin-bottom: 6px; }
.steps span { font-size: 14.5px; color: var(--muted); }

/* ===================== Support ===================== */
.support { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contacts { display: grid; gap: 10px; }
.contact { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); text-decoration: none; transition: border-color .15s; }
a.contact:hover { border-color: var(--accent); color: var(--text); }
.contact .tile__ic { margin: 0; width: 40px; height: 40px; }
.contact small { display: block; color: var(--muted); font-size: 13px; }
.contact b { font-weight: 600; }
.hours { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.hours dl { margin: 0; display: grid; gap: 14px; }
.hours dt { font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hours dd { margin: 4px 0 0; font-size: 16px; }

/* ===================== FAQ ===================== */
.faq { max-width: 860px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font: 500 18px/1 var(--f-mono); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* ===================== Honesty ===================== */
.honest { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); border-radius: var(--r-lg); padding: 32px; display: grid; grid-template-columns: 300px 1fr; gap: 32px; }
.honest h2 { font-size: 26px; font-weight: 800; }
.honest p.lead { margin-top: 10px; color: var(--muted); font-size: 15px; }
.honest ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.honest li { display: flex; gap: 12px; }
.honest .ic { color: var(--warn); width: 20px; height: 20px; margin-top: 2px; }

/* ===================== Footer ===================== */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--line); background: var(--surface); font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h3 { font: 600 12px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.footer p, .footer li { color: var(--muted); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13.5px; }

/* Toast + self-test */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 500; font-size: 14.5px; transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.selftest { position: fixed; top: 76px; right: 16px; z-index: 90; max-width: 360px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 2px solid var(--ok); box-shadow: var(--shadow); font: 12.5px/1.5 var(--f-mono); }
.selftest.fail { border-color: #D33; }

/* Reveal */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }

/* ===================== Responsive ===================== */
@media (max-width: 1240px) {
  .brand__by, .webmail-link { display: none; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .slip { max-width: 520px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr 360px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .honest { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 880px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .checklist { grid-template-columns: 1fr; gap: 0; }
  .calc { grid-template-columns: 1fr; }
  .below { grid-template-columns: 1fr; }
  .support { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }

  /* Mobile: receipt becomes a fixed bottom sheet while the calculator is on screen */
  .receipt { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 60; border-radius: 18px 18px 0 0; border-bottom: 0; max-height: 82vh; display: flex; flex-direction: column; transform: translateY(110%); transition: transform .3s ease; box-shadow: 0 -10px 30px -10px rgba(0,0,0,.25); }
  .receipt.is-visible { transform: none; }
  .receipt__bar { padding: 12px 16px; border-bottom: 0; }
  .receipt__price { font-size: 26px; margin-top: 4px; }
  .receipt__toggle { display: inline-flex; }
  .receipt__toggle .ic { transition: transform .2s; }
  .receipt.is-open .receipt__toggle .ic { transform: rotate(180deg); }
  .receipt__body { display: none; overflow-y: auto; padding: 4px 16px 20px; border-top: 1px dashed var(--line-strong); }
  .receipt.is-open .receipt__body { display: block; }
  body.sheet-on { padding-bottom: 96px; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .header__end .webmail-link, .header__end .btn { display: none; }
  .brand__by { display: none; }
  .hero { padding: 44px 0 64px; }
  .hero__lead { font-size: 16.5px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .section { padding: 64px 0; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .panel { padding: 18px; }
  .num input { width: 72px; }
  .field__top { align-items: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .honest { padding: 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .slip { padding: 20px 18px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ===================== Header: languages, active link, burger ===================== */
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.langs { display: flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.langs a { min-width: 34px; padding: 6px 7px; border-radius: 7px; text-align: center; font: 600 12.5px/1 var(--f-mono); color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--text); }
.langs a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); }
.burger { display: none; }
@media (max-width: 1360px) { .webmail-link { display: none; } }
@media (max-width: 1080px) {
  .burger { display: grid; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; display: none; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .header .wrap { gap: 10px; }
  .header__end { gap: 6px; }
  .langs a { min-width: 30px; padding: 6px 5px; }
}

/* ===================== Blog index ===================== */
.page-head { padding: 64px 0 40px; position: relative; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--dots) 1.2px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%); }
.page-head h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.page-head p { margin-top: 14px; max-width: 680px; font-size: 18px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: 500 14px var(--f-body); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip small { font-family: var(--f-mono); opacity: .7; margin-left: 4px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 88px; }
.post-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.post-card__cat { font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.post-card h2, .post-card h3 { margin: 14px 0 8px; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.post-card p { color: var(--muted); font-size: 15px; flex: 1; }
.post-card__meta { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; font: 400 13px var(--f-mono); color: var(--muted); }
.post-card__meta .ic { width: 18px; height: 18px; color: var(--accent); transition: transform .15s; }
.post-card:hover .post-card__meta .ic { transform: translateX(3px); }
.post-card__num { font: 600 13px var(--f-mono); color: var(--muted); }

/* ===================== Article ===================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); padding-top: 32px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .5; }
.article-head { padding: 24px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.article-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; max-width: 860px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font: 400 13.5px var(--f-mono); color: var(--muted); }
.article-meta .post-card__cat { align-self: center; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; padding-bottom: 72px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 14px; }
.toc__title { font: 600 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--text); }
.toc a[aria-current="true"] { color: var(--accent); border-left-color: var(--accent); }

.prose { max-width: 740px; min-width: 0; overflow-wrap: break-word; font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose .lead { font-size: 19.5px; line-height: 1.6; color: var(--text); }
.prose h2 { margin-top: 2.1em; font-size: 27px; font-weight: 800; letter-spacing: -.02em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { margin-top: 1.7em; font-size: 20px; font-weight: 700; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; }
.prose a { color: var(--accent); }
.prose code { font: 500 .88em var(--f-mono); padding: .12em .4em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); word-break: break-word; }
.prose pre { margin-top: 1.2em; padding: 18px 20px; border-radius: 12px; background: #0D1B2A; color: #D8E6F2; overflow-x: auto; font-size: 14px; line-height: 1.6; }
:root[data-theme="dark"] .prose pre { background: #060B10; border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prose pre { background: #060B10; border: 1px solid var(--line); } }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; word-break: normal; white-space: pre; }
.prose kbd { font: 500 .85em var(--f-mono); padding: .1em .45em; border-radius: 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; background: var(--surface); }
.prose table { display: block; overflow-x: auto; margin-top: 1.4em; font-size: 15px; border-collapse: collapse; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); font: 600 13px var(--f-body); color: var(--text); text-transform: none; letter-spacing: 0; }
.prose .note, .prose .warn { padding: 16px 20px 16px 52px; border-radius: 12px; position: relative; font-size: 16px; }
.prose .note { background: var(--accent-soft); }
.prose .warn { background: var(--warn-soft); }
.prose .note::before, .prose .warn::before { content: "i"; position: absolute; left: 18px; top: 17px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--f-mono); background: var(--accent); color: var(--accent-ink); }
.prose .warn::before { content: "!"; background: var(--warn); color: var(--warn-soft); }
.prose .note > * + *, .prose .warn > * + * { margin-top: .6em; }

.cta-box { margin-top: 56px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.cta-box h2 { font-size: 22px; font-weight: 800; }
.cta-box p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.cta-box__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pager { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pager a { padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); }
.pager a:hover { border-color: var(--accent); color: var(--text); }
.pager small { display: block; font: 400 12.5px var(--f-mono); color: var(--muted); margin-bottom: 4px; }
.pager b { font-weight: 600; line-height: 1.35; display: block; }
.pager .next { text-align: right; grid-column: 2; }
.related { padding: 64px 0 88px; background: var(--surface); border-top: 1px solid var(--line); }
.related h2 { font-size: 26px; font-weight: 800; margin-bottom: 24px; }
.related .posts { padding-bottom: 0; }
.related .post-card { background: var(--bg); }

@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; order: -1; margin-bottom: 32px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
  .posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .posts { grid-template-columns: 1fr; }
  .page-head { padding: 40px 0 28px; }
  .page-head p { font-size: 16.5px; }
  .prose { font-size: 16px; }
  .prose .lead { font-size: 17.5px; }
  .prose h2 { font-size: 23px; }
  .prose pre { margin-left: -16px; margin-right: -16px; border-radius: 0; padding: 16px; }
  .cta-box { grid-template-columns: 1fr; padding: 22px; }
  .cta-box__actions .btn { flex: 1 1 100%; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: auto; }
}

/* Узбекский: в IBM Plex глифы ʻ/ʼ (U+02BB/U+02BC) с широкими отступами — для текста используем Manrope */
:root:lang(uz) { --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; }
:lang(uz) .prose { font-size: 17.5px; }
