@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/golos-text-cyrillic-variable.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/golos-text-cyrillic-ext-variable.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/golos-text-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/golos-text-latin-ext-variable.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --g-0: #1b1c1f;
  --g-1: #23252a;
  --g-2: #2c2e34;
  --g-3: #35373d;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --fg: #f4f4f5;
  --fg-2: #b9bcc4;
  --fg-3: #8b8f98;
  --accent: #8f9dff;
  --accent-hover: #a3aeff;
  --on-accent: #101116;
  --accent-strong: #5a63ea;
  --accent-strong-hover: #4f5ae0;
  --on-accent-strong: #ffffff;
  --shell: 1200px;
  --radius: 14px;
  --font: "Golos Text", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; background: var(--g-0); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  background: var(--g-0);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: normal; word-break: normal; hyphens: manual; font-weight: 700; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.9rem); line-height: 1.06; margin-bottom: 22px; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.35rem); line-height: 1.12; margin-bottom: 14px; }
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 6px; }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
@media (max-width: 480px) { .shell { width: calc(100% - 32px); } }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 12px 18px; background: var(--accent); color: var(--on-accent);
  border-radius: 10px; transform: translateY(-160%); transition: transform 160ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px; border-radius: 12px;
  font-weight: 600; text-decoration: none; white-space: normal; text-align: center;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
/* primary: 21st #833 Shimmer Button (magicui) — искра бежит по периметру: анимируем угол conic-gradient, подложка на inset 2px */
@property --spark { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.button-primary { position: relative; isolation: isolate; color: var(--on-accent-strong); background: conic-gradient(from var(--spark), transparent 0deg, transparent 250deg, rgba(255,255,255,1) 320deg, transparent 360deg) border-box, var(--accent-strong); box-shadow: inset 0 -8px 10px rgba(255,255,255,0.12); animation: shimmer-spin 3s linear infinite; }
.button-primary::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 10px; background: var(--accent-strong); transition: background-color 160ms var(--ease); }
.button-primary:hover { box-shadow: inset 0 -6px 10px rgba(255,255,255,0.25), 0 8px 24px rgba(143,157,255,0.28); transform: translateY(-1px); }
.button-primary:hover::after { background: var(--accent-strong-hover); }
.button-primary:active { box-shadow: inset 0 -10px 10px rgba(255,255,255,0.25); }
@keyframes shimmer-spin { to { --spark: 360deg; } }
/* ghost: 21st #5793 Glow Button — блик проезжает по поверхности при наведении, мягкое нажатие */
.button-ghost { position: relative; overflow: hidden; background: transparent; color: var(--fg); border: 1px solid var(--line-strong); }
.button-ghost::before { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 50%; background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.36) 50%, transparent 100%); transform: skewX(-20deg); transition: left 0s; pointer-events: none; }
.button-ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }
.button-ghost:hover::before { left: 130%; transition: left 640ms var(--ease); }
.button-ghost:active { transform: translateY(1px) scale(0.98); }
.button-small { min-height: 44px; padding: 8px 18px; font-size: 0.95rem; }
.button:active { transform: translateY(1px); }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 3; border-bottom: 1px solid var(--line); background: var(--g-0); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 1.15rem; text-decoration: none; justify-self: start; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.header-nav { display: flex; gap: 6px; margin-left: 8px; }
.header-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--fg-2); text-decoration: none; font-size: 0.97rem; }
.header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--fg); background: var(--g-1); }
.header-cta { margin-left: auto; }
@media (max-width: 900px) { .header-nav { display: none; } }
@media (max-width: 400px) { .header-cta { padding-inline: 12px; font-size: 0.9rem; } }

/* spotlight: 21st #2220 Spotlight Card — радиальный блик следует за курсором, гаснет на уходе */
.spot { position: relative; overflow: hidden; }
.spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(143,157,255,0.26), transparent 70%); transition: opacity 500ms var(--ease); }
.spot:hover::after, .spot:focus-visible::after { opacity: 1; }

/* facts: 21st #25311 Stats Bento + #1282 Number Ticker + #1268 Border Beam + #21470 Marquee + #1537 Dot Pattern + #1079 Blur Fade */
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fact { position: relative; display: grid; align-content: start; gap: 6px; padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--g-1); }
.fact > .icon { width: 40px; height: 40px; padding: 9px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--fg); background: var(--g-2); }
.fact-primary { grid-column: 1 / span 2; background: var(--g-2); border-color: var(--line-strong); }
.fact-primary p { max-width: 58ch; }
.fact-label { color: var(--fg-3); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.fact-value { font-size: clamp(1.6rem, 2.4vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fact-primary .fact-value { font-size: clamp(2.4rem, 4.2vw, 3.6rem); margin: 2px 0 2px; }
.fact p { margin: 4px 0 0; color: var(--fg-2); position: relative; }
/* dot pattern in the corner of the primary card */
.dots { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background-image: radial-gradient(rgba(255,255,255,0.22) 1px, transparent 1.4px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(340px circle at 100% 0%, #000 30%, transparent 100%); mask-image: radial-gradient(340px circle at 100% 0%, #000 30%, transparent 100%); }
/* border beam: light travels along the card edge */
.beam { position: absolute; inset: 0; padding: 2.5px; pointer-events: none; overflow: hidden; border-radius: inherit; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; }
.beam::after { content: ""; position: absolute; width: 340px; aspect-ratio: 1; background: linear-gradient(to left, #ffffff, var(--accent) 35%, rgba(143,157,255,0.6) 60%, transparent); offset-path: rect(0 auto auto 0 round 340px); offset-anchor: 90% 50%; animation: beam 8s linear infinite; }
@keyframes beam { to { offset-distance: 100%; } }
/* marquee of countries */
.marquee { margin-top: 18px; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 8px; margin: 0; padding: 0; list-style: none; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.92rem; color: var(--fg); background: var(--g-1); }
.flag { flex: none; width: 20px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,0.14); }
@keyframes marquee { to { transform: translateX(calc(-50% - 4px)); } }
/* bars in the speed card (grow on reveal) */
.bars { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.bars i { display: block; width: 5px; height: var(--h); border-radius: 3px; background: var(--fg-3); transform-origin: bottom; }
/* reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; filter: blur(6px); transform: translateY(10px); transition: opacity 520ms var(--ease), filter 520ms var(--ease), transform 520ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].is-in { opacity: 1; filter: none; transform: none; }
  .js .bars i { transform: scaleY(0); transition: transform 600ms var(--ease) calc(320ms + var(--j) * 55ms); }
  .js .is-in .bars i { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .beam::after, .marquee-track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; flex-wrap: wrap; }
  .marquee-track li[aria-hidden] { display: none; }
}
@media (max-width: 900px) { .facts-grid { grid-template-columns: 1fr 1fr; } .fact-primary { grid-column: 1 / -1; } }
@media (max-width: 520px) { .facts-grid { grid-template-columns: 1fr; gap: 10px; } .fact { padding: 20px 18px; } .bars { height: 26px; } }

/* ---------- hero + slabs ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.hero-inner { position: relative; z-index: 1; }
.hero-inner > h1, .hero-inner > .breadcrumb { max-width: 820px; }
.hero-home .hero-inner > h1 { max-width: 760px; }
.slabs { position: absolute; inset: 0; pointer-events: none; }
.slab { position: absolute; top: -20%; height: 140%; background: var(--g-2); transform: skewX(-18deg); }
.slab-a { left: 62%; width: 26%; }
.slab-b { left: 82%; width: 14%; background: var(--g-3); }
.slab-c { left: 55%; width: 4%; background: var(--g-1); }
.hero:not(.hero-home) .slab-a { left: 74%; width: 18%; }
.hero:not(.hero-home) .slab-b { left: 88%; width: 10%; }
.hero:not(.hero-home) .slab-c { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-home .slab-a { animation: slab-drift 14s ease-in-out infinite alternate; }
  .hero-home .slab-b { animation: slab-drift 18s ease-in-out infinite alternate-reverse; }
}
@keyframes slab-drift { from { transform: skewX(-18deg) translateX(0); } to { transform: skewX(-18deg) translateX(6px); } }
@media (max-width: 900px) {
  .slab-a { left: 70%; width: 22%; }
  .slab-b { left: 88%; width: 12%; }
  .slab-c { display: none; }
}
@media (max-width: 640px) {
  .slabs { height: 120px; inset: auto 0 auto 0; top: 0; }
  .slab { top: -40%; height: 180%; }
  .slab-a { left: 56%; width: 30%; }
  .slab-b { left: 82%; width: 22%; }
  .hero:not(.hero-home) .slab-a { left: 60%; width: 24%; }
  .hero:not(.hero-home) .slab-b { left: 84%; width: 16%; }
}
.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--fg-2); max-width: 62ch; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
@media (max-width: 480px) { .hero-actions .button { flex: 1 1 100%; } }
.hero-note { color: var(--fg-3); font-size: 0.98rem; margin: 0 0 8px; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--fg-3); font-size: 0.95rem; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--fg-3); }
.crumbs a { display: inline-block; min-height: 24px; padding: 10px 0; margin: -10px 0; color: var(--fg-2); }
.crumbs li[aria-current] { color: var(--fg); }
.crumbs-like { color: var(--fg-3); margin-bottom: 14px; }

/* fork (21st: Grid Feature Cards → строгая сетка 2×2, иконка сверху) */
.fork-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 34px; max-width: 680px; }
.fork-card {
  display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 4px;
  padding: 20px 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(35, 37, 42, 0.86);
  text-decoration: none; min-height: 44px; transition: border-color 160ms var(--ease), transform 200ms var(--ease), background-color 160ms var(--ease);
}
.fork-card:hover { border-color: var(--line-strong); background: var(--g-1); transform: translateY(-2px); }
.fork-card .icon { grid-row: 1 / span 2; width: 48px; height: 48px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; color: var(--fg); }
.fork-title { font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.fork-text { color: var(--fg-2); font-size: 0.97rem; line-height: 1.5; }
@media (max-width: 640px) { .fork-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 26px; } }
@media (prefers-reduced-motion: reduce) { .fork-card, .button, .row, .tile, .button-ghost::before, .spot::after, .pick-list::before, .pick-dot, .pick-dot::after, .pick-layer, .pick-cta .plan { transition: none; } .fork-card:hover { transform: none; } .button-primary, .faq[open] p, .branch[open] .branch-checks { animation: none; } .button-primary { background: var(--accent-strong); } .button-ghost:hover::before { left: -60%; } html { scroll-behavior: auto; } }

/* ---------- blocks ---------- */
.block { padding: clamp(40px, 5.5vw, 76px) 0; border-bottom: 1px solid var(--line); }
.block-head { max-width: 720px; margin-bottom: 28px; }
.block-head p { color: var(--fg-2); margin-bottom: 0; }
.block-head p + p { margin-top: 10px; }

/* steps (21st: How It Works Timeline) */
.step-list { list-style: none; margin: 0; padding: 0; max-width: 780px; }
.step-list li { position: relative; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 0 0 26px; text-decoration: none; color: inherit; }
.step-list li:not(:last-child) .step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 6px; width: 1px; background: var(--line-strong); }
@media (prefers-reduced-motion: no-preference) {
  .js .step-list li .step::before { transform: scaleY(0); transform-origin: top; transition: transform 520ms var(--ease) calc(var(--i, 0) * 90ms + 260ms); }
  .js .step-list li.is-in .step::before { transform: none; }
  .js .step-no { transition: border-color 400ms var(--ease) calc(var(--i, 0) * 90ms + 200ms), color 400ms var(--ease) calc(var(--i, 0) * 90ms + 200ms); }
  .js li.is-in .step-no { border-color: var(--accent); color: var(--accent); }
}
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--g-1); font-weight: 700; }
.step-body h3 { margin-top: 8px; }
.step-body p { color: var(--fg-2); margin-bottom: 0; }
.step.is-link:hover .step-body h3 { text-decoration: underline; text-underline-offset: 0.2em; }

/* plans (21st #69 Pricing Interaction: строки-варианты + скользящая рамка + карта-итог; #1103: бейдж экономии). Без JS: radio + :has */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pick-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 16px; align-items: start; }
.pick-list { position: relative; display: grid; grid-auto-rows: 1fr; gap: 10px; margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.pick-list::before { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: calc((100% - 30px) / 4); border: 2px solid var(--accent); border-radius: 12px; pointer-events: none; transform: translateY(calc(var(--sel, 1) * (100% + 10px))); transition: transform 360ms var(--ease); box-shadow: 0 0 0 4px rgba(143,157,255,0.12); }
.pick { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--g-1); cursor: pointer; transition: background-color 160ms var(--ease); }
.pick:hover { background: var(--g-2); }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pick:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 3px; }
.pick-dot { width: 20px; height: 20px; border: 2px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: border-color 200ms var(--ease); }
.pick-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 240ms var(--ease); }
.pick:has(input:checked) .pick-dot { border-color: var(--accent); }
.pick:has(input:checked) .pick-dot::after { transform: scale(1); }
.pick-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.pick-period { font-weight: 600; }
.pick-note { flex-basis: 100%; color: var(--fg-3); font-size: 0.9rem; }
.pick-badge { padding: 2px 9px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--accent); background: rgba(143,157,255,0.14); white-space: nowrap; }
.pick-price { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.15rem; }
.pick-sum { position: relative; display: grid; gap: 14px; padding: 24px 24px 22px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(160deg, var(--g-2), var(--g-1) 70%); }
.pick-sum-label { color: var(--fg-2); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; }
.pick-stack { display: grid; }
.pick-layer { grid-area: 1 / 1; display: grid; gap: 4px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(calc(clamp(-1, var(--k, 0) - var(--sel, 1), 1) * 22px)); transition: opacity 260ms var(--ease), transform 380ms var(--ease), visibility 380ms; }
.pick-sum-period { color: var(--fg-2); }
.pick-sum-price { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pick-sum-note { color: var(--fg-3); }
.pick-incl { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pick-incl li { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; color: var(--fg-2); }
.pick-cta { display: grid; }
.pick-cta .plan { grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 260ms var(--ease), visibility 260ms; }
.pick-layer.is-on, .pick-cta .plan.is-on { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.pick-wrap:has(input:checked) .pick-layer, .pick-wrap:has(input:checked) .pick-cta .plan { opacity: 0; visibility: hidden; pointer-events: none; }
.pick-wrap:has(input:checked) .pick-layer.is-on { transform: translateY(calc(clamp(-1, var(--k, 0) - var(--sel, 1), 1) * 22px)); }
.pick-wrap[data-sel="0"] { --sel: 0; } .pick-wrap[data-sel="1"] { --sel: 1; } .pick-wrap[data-sel="2"] { --sel: 2; } .pick-wrap[data-sel="3"] { --sel: 3; }
.pick-wrap:has(input[value="1"]:checked) { --sel: 0; } .pick-wrap:has(input[value="31"]:checked) { --sel: 1; } .pick-wrap:has(input[value="184"]:checked) { --sel: 2; } .pick-wrap:has(input[value="365"]:checked) { --sel: 3; }
.pick-wrap:has(input[value="1"]:checked) [data-plan="1"], .pick-wrap:has(input[value="31"]:checked) [data-plan="31"], .pick-wrap:has(input[value="184"]:checked) [data-plan="184"], .pick-wrap:has(input[value="365"]:checked) [data-plan="365"] { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
@media (max-width: 820px) {
  .pick-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .pick { padding: 12px 14px; gap: 10px; }
  .pick-price { font-size: 1.05rem; }
  .pick-sum { padding: 20px 18px; }
}

/* rows: сгруппированные строки вместо ещё одной карточной сетки */
.row-list { display: grid; border-top: 1px solid var(--line); max-width: 900px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.row h3 { margin: 0; }
.row p { margin: 0; color: var(--fg-2); }
.row.is-link:hover h3 { text-decoration: underline; text-underline-offset: 0.2em; }
.row.is-link h3::after { content: " →"; color: var(--fg-3); font-weight: 400; }
.row-check { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1.6fr); }
.row-check::before { content: ""; width: 18px; height: 18px; margin-top: 5px; border: 1.5px solid var(--fg-2); border-radius: 5px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f4f4f5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 12px 12px no-repeat; }
@media (max-width: 720px) {
  .row { grid-template-columns: 1fr; gap: 4px; }
  .row-check { grid-template-columns: 28px 1fr; }
  .row-check p { grid-column: 2; }
}

/* tiles: только для однородных платформ */
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--g-1); text-decoration: none; color: inherit; transition: border-color 160ms var(--ease); }
.tile.is-link:hover { border-color: var(--line-strong); }
.tile.is-link h3::after { content: " →"; color: var(--fg-3); font-weight: 400; }
.tile p { margin: 0; color: var(--fg-2); }
@media (max-width: 860px) { .tile-grid { grid-template-columns: 1fr; gap: 10px; } }

/* tree: симптомы */
.tree { display: grid; gap: 10px; max-width: 900px; }
.branch { border: 1px solid var(--line); border-radius: var(--radius); background: var(--g-1); }
.branch[open] { border-color: var(--line-strong); }
.branch summary { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; cursor: pointer; list-style: none; min-height: 44px; }
.branch summary::-webkit-details-marker { display: none; }
.branch summary::after { content: ""; width: 10px; height: 10px; border-right: 1.5px solid var(--fg-2); border-bottom: 1.5px solid var(--fg-2); transform: rotate(45deg); margin-right: 6px; transition: transform 160ms var(--ease); }
.branch[open] summary::after { transform: rotate(-135deg); }
.branch-no { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 700; }
.branch summary strong { display: block; font-size: 1.08rem; }
.branch summary small { display: block; color: var(--fg-2); font-size: 0.95rem; }
.branch-checks { margin: 0; padding: 4px 18px 20px 78px; color: var(--fg-2); display: grid; gap: 10px; }
@media (max-width: 640px) { .branch-checks { padding-left: 44px; padding-right: 16px; } .branch summary { grid-template-columns: 36px 1fr auto; } .branch-no { width: 36px; height: 36px; } }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.msg-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.98rem; }
.msg-table th, .msg-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.msg-table thead th { background: var(--g-1); color: var(--fg-2); font-weight: 600; font-size: 0.92rem; }
.msg-table tbody th { font-weight: 600; white-space: normal; }
.msg-table td { color: var(--fg-2); }
.msg-table tbody tr:last-child th, .msg-table tbody tr:last-child td { border-bottom: 0; }

/* faq (21st: Basic Accordion → details + шеврон) */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; min-height: 44px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--fg-2); border-bottom: 1.5px solid var(--fg-2); transform: rotate(45deg); margin-right: 6px; transition: transform 160ms var(--ease); }
.faq[open] summary::after { transform: rotate(-135deg); }
.faq p { margin: 0 0 20px; color: var(--fg-2); max-width: 70ch; }
.faq[open] p, .branch[open] .branch-checks { animation: reveal 260ms var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 12px; } }

/* related */
.related-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-list a { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; min-height: 44px; }
.related-list a:hover { border-color: var(--line-strong); }
.row.is-link { position: relative; }
.related-list strong { font-size: 0.92rem; color: var(--fg-3); font-weight: 600; text-transform: none; }
.related-list span { font-weight: 600; line-height: 1.35; }
@media (max-width: 860px) { .related-list { grid-template-columns: 1fr; gap: 10px; } }

/* bottom */
.bottom { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 80px) 0; background: var(--g-1); border-bottom: 1px solid var(--line); }
.bottom::before { content: ""; position: absolute; top: -30%; left: 78%; width: 18%; height: 160%; background: var(--g-2); transform: skewX(-18deg); }
.bottom-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.bottom h2 { margin-bottom: 8px; }
.bottom p { color: var(--fg-2); margin: 0; max-width: 56ch; }
.bottom-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 860px) { .bottom-inner { grid-template-columns: 1fr; } .bottom-actions { justify-content: flex-start; } .bottom::before { display: none; } }
@media (max-width: 480px) { .bottom-actions .button { flex: 1 1 100%; } }

/* footer */
.site-footer { padding: 44px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; }
.footer-brand p { grid-column: 1 / -1; margin: 6px 0 0; color: var(--fg-2); font-size: 0.95rem; max-width: 30ch; }
.footer-group h2 { font-size: 0.9rem; font-weight: 600; color: var(--fg-3); margin-bottom: 8px; letter-spacing: 0; }
.footer-group a { display: block; padding: 9px 0; color: var(--fg-2); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.footer-group a:hover { color: var(--fg); text-decoration: underline; }
.footer-note { display: flex; flex-wrap: wrap; gap: 8px 32px; padding-top: 18px; color: var(--fg-3); font-size: 0.9rem; }
.footer-note p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 360px) { .footer-grid { grid-template-columns: 1fr; } }

/* table → stacked rows on narrow screens */
@media (max-width: 720px) {
  .msg-table { min-width: 0; display: block; }
  .msg-table thead { display: none; }
  .msg-table tbody, .msg-table tr { display: block; }
  .msg-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .msg-table tr:last-child { border-bottom: 0; }
  .msg-table th, .msg-table td { display: block; padding: 0; border: 0; }
  .msg-table tbody th { margin-bottom: 8px; }
  .msg-table td { margin-top: 6px; }
  .msg-table td::before { content: attr(data-label); display: block; font-size: 0.82rem; color: var(--fg-3); margin-bottom: 2px; }
}
