:root {
  --ink: #192c32;
  --secondary: #53636a;
  --accent: #146c75;
  --accent-hover: #10545b;
  --line: #dbe2e5;
  --pale: #f3f6f7;
  --selected: #eaf4f4;
  --display: 'Manrope', sans-serif;
  --body: 'Golos Text', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: white; color: var(--ink); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
button { border: 0; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a, button { transition: background-color .16s, color .16s, border-color .16s; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-family: var(--display); }
h2 { font-size: 2.25rem; line-height: 1.2; font-weight: 700; letter-spacing: -.045em; }
h3 { font-size: 1.125rem; line-height: 1.4; font-weight: 700; letter-spacing: -.02em; }
.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; top: -100px; left: 24px; padding: 12px; background: white; z-index: 20; }
.skip:focus { top: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 12px 22px; font-weight: 500; border: 1px solid transparent; border-radius: 10px; white-space: nowrap; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-hover); }
.secondary { border-color: #afc4c8; color: var(--accent); background: white; }
.secondary:hover { background: var(--selected); border-color: var(--accent); }
/* Navigation shares one DOM tree between desktop dropdowns and mobile accordions. */
[hidden] { display: none !important; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
/* 1fr auto 1fr: меню стоит по центру страницы, а не по центру остатка
   между логотипом и кнопками справа. */
.header { height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 36px; position: relative; z-index: 20; }
.site-header { position: sticky; top: 0; z-index: 30; background: white; box-shadow: 0 1px 0 transparent; transition: box-shadow .2s; }
.site-header.stuck { box-shadow: 0 1px 0 var(--line); }
/* Якоря: заголовок встаёт на 24 px ниже липкой шапки (88 px). Секции
   с собственным верхним отступом 64 px целятся на 24 px выше, чтобы
   предыдущий блок ушёл под шапку, а не выглядывал из-под неё. */
[id] { scroll-margin-top: 112px; }
.section[id] { scroll-margin-top: 48px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.05em; white-space: nowrap; }
.brand svg { width: 32px; height: 26px; fill: var(--ink); }
.brand small { font-size: inherit; font-weight: 500; margin-left: 3px; }
.navigation { justify-self: center; }
.header .brand { justify-self: start; }
.header-actions { justify-self: end; }
.nav-list, .panel-list, .select-options { list-style: none; padding: 0; margin: 0; }
.nav-list { display: flex; gap: 4px; align-items: center; }
.nav-dropdown { position: relative; }
.nav-link, .nav-trigger { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 13px; border-radius: 8px; background: transparent; font-size: .9375rem; font-weight: 400; white-space: nowrap; color: var(--secondary); }
.nav-link[aria-current] { color: var(--ink); font-weight: 500; }
.nav-link:hover, .nav-trigger:hover { color: var(--ink); background: var(--pale); }
.nav-trigger[aria-expanded=true] { color: var(--accent); background: var(--selected); }
.chevron { width: 16px; height: 16px; stroke-width: 1.8; transition: transform .16s; }
[aria-expanded=true]>.chevron { transform: rotate(180deg); }
.nav-panel { position: absolute; top: calc(100% + 10px); left: 0; width: 320px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 8px 24px #192c3214, 0 2px 6px #192c3208; }
.information-panel { width: 260px; }
.nav-item { display: flex; align-items: center; gap: 14px; padding: 14px 12px; min-height: 48px; border-radius: 8px; font-size: .9375rem; line-height: 1.4; }
a.nav-item:hover, a.nav-item:focus-visible { background: var(--pale); color: var(--accent); }
a.nav-item:focus-visible { outline-offset: -2px; }
.item-icon { color: var(--secondary); width: 22px; height: 22px; }
.item-copy { flex: 1; min-width: 0; }
.item-copy strong { display: block; font-weight: 500; }
.item-copy small { display: block; font-size: .875rem; color: var(--secondary); margin-top: 4px; }
.item-arrow { width: 18px; height: 18px; color: var(--accent); }
.unavailable { color: var(--secondary); border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; padding-top: 18px; }
.unavailable .item-icon { color: var(--secondary); }
.header-actions { display: flex; gap: 24px; align-items: center; }
/* Language + currency */
.prefs { position: relative; }
.prefs-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px 8px 9px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: .875rem; font-weight: 500; }
.prefs-trigger:hover, .prefs-trigger[aria-expanded=true] { background: var(--pale); border-color: #a7b8be; }
.prefs-flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; box-shadow: inset 0 0 0 1px #0000001a; }
.prefs-panel { position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; width: 248px; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px #192c3214, 0 2px 6px #192c3208; }
.prefs-heading { padding: 8px 10px 4px; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); font-weight: 500; }
.prefs-heading+.prefs-group { margin-bottom: 6px; }
.prefs-group { display: grid; gap: 2px; }
.prefs-group [role=radio] { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 10px; border-radius: 8px; background: white; text-align: left; font-size: .9375rem; }
.prefs-group [role=radio]:hover { background: var(--pale); }
.prefs-group [role=radio][aria-checked=true] { background: var(--selected); color: var(--accent); font-weight: 500; }
.prefs-group img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; box-shadow: inset 0 0 0 1px #0000001a; }
.prefs-group b { display: inline-flex; width: 20px; justify-content: center; font-weight: 600; font-size: .9375rem; color: var(--secondary); }
.prefs-group [aria-checked=true] b { color: var(--accent); }
.prefs-check { width: 16px; height: 16px; margin-left: auto; color: var(--accent); visibility: hidden; }
.prefs-group [aria-checked=true] .prefs-check { visibility: visible; }
.account { min-height: 44px; padding: 10px 16px; border-color: var(--line); font-size: .875rem; gap: 12px; }
.account .icon { width: 18px; height: 18px; }
.account:hover { background: var(--pale); border-color: #a7b8be; }
.menu-toggle, .mobile-nav-footer { display: none; }
.hero { position: relative; overflow: hidden; border-radius: 18px; min-height: 426px; isolation: isolate; background: #14252b; color: white; }
.hero-photo { position: absolute; inset: 0 0 0 43%; background: linear-gradient(90deg,#14252b 0%,#14252b22 48%,#14252b08), var(--hero-photo) center center/cover; z-index: -1; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; min-height: inherit; padding: 46px 52px; }
.eyebrow { font-size: .8125rem; letter-spacing: .13em; font-weight: 500; color: #c3d5d9; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.5rem,4.25vw,3.5rem); line-height: 1.09; letter-spacing: -.045em; font-weight: 700; }
.hero-description { color: #d4e0e3; font-size: 1.0625rem; line-height: 1.6; margin-top: 20px; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 26px; }
.hero .primary { background: white; color: var(--ink); border-color: white; }
.hero .secondary { background: transparent; color: white; border-color: #ffffff59; }
.hero .secondary:hover { background: #ffffff14; border-color: white; }
.hero .primary:hover { background: #e8f2f2; border-color: #e8f2f2; }
.hero-price { display: flex; flex-direction: column; font-size: .875rem; color: #c3d5d9; line-height: 1.3; }
.hero-price strong { color: white; font-size: 1.625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-price small { font-size: .875rem; font-weight: 400; color: #c3d5d9; }
.benefits { display: grid; grid-template-columns: repeat(4,1fr); padding-block: 30px; }
.benefits>div { display: flex; align-items: center; gap: 14px; padding-inline: 24px; border-right: 1px solid var(--line); }
.benefits>div:first-child { padding-left: 0; }
.benefits>div:last-child { border: 0; padding-right: 0; }
.benefits .icon { width: 28px; height: 28px; color: var(--secondary); }
.benefits p { font-weight: 500; font-size: .9375rem; }
.benefits small { display: block; font-size: .875rem; color: var(--secondary); margin-top: 3px; font-weight: 400; }
.section { padding-block: 64px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading p { margin-top: 12px; color: var(--secondary); }
.catalog-toolbar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: stretch; margin-bottom: 24px; }
.processor-tabs { align-items: end; margin-bottom: 16px; }
.control-group { display: grid; grid-template-rows: auto 1fr; gap: 10px; align-content: start; }
.control-label { font-size: .875rem; color: var(--secondary); line-height: 1.4; }
.control-locations, .control-cpu { grid-column: 1 / span 6; }
.control-period, .catalog-count { grid-column: 10 / span 3; }
.location-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.location-controls button { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; background: white; border: 1px solid var(--line); border-radius: 10px; text-align: left; line-height: 1.35; }
.location-controls button small { display: block; color: var(--secondary); font-size: .875rem; margin-top: 3px; }
.location-controls button[aria-pressed=true] { border-color: var(--accent); background: var(--selected); box-shadow: inset 0 0 0 1px var(--accent); }
.location-controls button:hover { border-color: var(--accent); }
.location-controls img { object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.control-period select { min-height: 60px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: white; font: inherit; }
.select { position: relative; display: grid; }
.select-trigger { display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; min-height: 60px; padding: 10px 16px 10px 18px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); text-align: left; font-size: .9375rem; font-weight: 500; }
.select-trigger:hover, .select-trigger[aria-expanded=true] { border-color: var(--accent); }
.select-trigger .select-value { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.select-trigger .saving { color: var(--accent); font-size: .8125rem; font-weight: 500; }
.select-trigger>.icon { width: 18px; height: 18px; margin-left: auto; color: var(--secondary); transition: transform .18s var(--ease-out); }
.select-trigger[aria-expanded=true]>.icon { transform: rotate(180deg); }
.select-options { position: absolute; z-index: 25; top: calc(100% + 8px); right: 0; width: 100%; min-width: 252px; margin: 0; padding: 6px; list-style: none; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px #192c3214, 0 2px 6px #192c3208; }
.select-options [role=option] { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 11px 10px 11px 12px; border-radius: 7px; font-size: .9375rem; cursor: pointer; }
.select-options .saving { margin-left: auto; font-size: .8125rem; color: var(--accent); }
.select-options .option-check { width: 17px; height: 17px; margin-left: auto; color: var(--accent); visibility: hidden; }
.select-options .saving+.option-check { margin-left: 0; }
.select-options [aria-selected=true] { color: var(--accent); font-weight: 500; }
.select-options [aria-selected=true] .option-check { visibility: visible; }
.select-options [data-active], .select-options [role=option]:hover { background: var(--pale); }
.segmented { display: flex; gap: 4px; padding: 4px; background: var(--pale); border-radius: 12px; }
.segmented button { flex: 1; min-height: 52px; padding: 8px 18px; border-radius: 9px; background: transparent; text-align: left; color: var(--secondary); line-height: 1.3; }
.segmented button span { display: block; font-weight: 500; font-size: .9375rem; }
.segmented button small { display: block; font-size: .8125rem; margin-top: 2px; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed=true] { background: white; color: var(--ink); box-shadow: 0 1px 2px #192c3214, 0 0 0 1px var(--line); }
.catalog-count { justify-self: end; padding-bottom: 14px; font-size: .875rem; color: var(--secondary); }
.plans-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.plans-table th, .plans-table td { padding: 18px 12px; text-align: left; vertical-align: middle; }
.plans-table thead th { font-size: .8125rem; font-weight: 400; color: var(--secondary); background: var(--pale); padding-block: 12px; }
.plans-table thead th:first-child { border-radius: 10px 0 0 10px; }
.plans-table thead th:last-child { border-radius: 0 10px 10px 0; }
/* Five equal spec columns between the name and the price. */
.plans-table thead th:first-child { width: 17%; padding-left: 20px; }
.plans-table thead th:nth-child(2), .plans-table thead th:nth-child(3), .plans-table thead th:nth-child(4), .plans-table thead th:nth-child(5), .plans-table thead th:nth-child(6) { width: 11.6%; }
.plans-table thead th:nth-child(7) { width: 13%; text-align: right; }
.plans-table thead th:last-child { width: 12%; }
.plans-table th, .plans-table td { transition: background .16s; }
.plans-table .plan-row th:first-child { border-radius: 10px 0 0 10px; }
.plans-table .plan-row td:last-child { border-radius: 0 10px 10px 0; }
.plans-table .group-row th { padding: 28px 20px 6px; font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); }
.plans-table .plan-row:hover th, .plans-table .plan-row:hover td { background: #f5f9f9; }
.order-cell .sold-out { font-size: .875rem; color: var(--secondary); white-space: nowrap; }
/* Phone-only fragments of the plan rows; more specific than `.plans-table small`. */
.plans-table .cell-traffic, .plans-table .plan-cpu, .plans-table .plan-per { display: none; }
.plans-table .plan-name { padding-left: 20px; }
/* The name cell is a flex row, so a tag is centred on the name's text. */
.plans-table .plan-name strong { display: flex; align-items: center; gap: 8px; }
.plan-tag { flex-shrink: 0; padding: 2px 7px; border-radius: 999px; font-size: .6875rem; font-weight: 500; letter-spacing: .04em; }
.plan-tag.promo { background: var(--selected); color: var(--accent); }
.plan-tag.popular { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; background: var(--selected); }
.plan-tag.popular .icon { width: 14px; height: 14px; color: var(--accent); fill: currentColor; stroke: none; }
.plans-table strong { display: block; font-weight: 500; font-size: 1.0625rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plans-table .plan-name strong { font-size: .9375rem; font-weight: 600; }
.plans-table strong span { font-size: .875rem; font-weight: 400; }
.plans-table small { display: block; font-size: .8125rem; line-height: 1.4; color: var(--secondary); font-weight: 400; margin-top: 5px; }
.plans-table .plan-price { text-align: right; }
.order-link { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; border: 1px solid #b6cacf; border-radius: 8px; color: var(--accent); font-weight: 500; font-size: .875rem; }
.order-link:hover { background: var(--accent); border-color: var(--accent); color: white; }
.plan-price strong { font-size: 1.3125rem; font-weight: 600; letter-spacing: -.025em; }
.text-link { display: inline-flex; align-items: center; gap: 16px; color: var(--accent); font-weight: 500; font-size: .9375rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.os-panel { background: var(--pale); padding: 30px; border-radius: 12px; }
.os-list { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; padding-block: 30px; }
.os-list>div { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: .8125rem; text-align: center; }
.os-list .icon { width: 36px; height: 36px; }
.os-panel>p { font-size: .875rem; color: var(--secondary); }
.control-features { display: grid; align-content: center; gap: 28px; }
.control-features article { display: flex; gap: 16px; }
.control-features .icon { color: var(--accent); margin-top: 3px; }
.control-features p { color: var(--secondary); margin-top: 8px; font-size: .9375rem; line-height: 1.6; max-width: 390px; }
.locations-section { padding-top: 16px; }
.location-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.location-grid a { display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 8px; }
.location-grid a:hover { background: var(--pale); }
.location-grid a>span { margin-left: auto; font-size: 1.5rem; color: var(--accent); }
.location-grid img { border-radius: 3px; object-fit: cover; }
.location-grid p { font-size: .875rem; color: var(--secondary); margin-top: 5px; }
.faq-help p { color: var(--secondary); }
.faq-help .text-link { margin-top: 12px; }
.faq-list { border: 1px solid var(--line); border-radius: 16px; background: white; overflow: hidden; }
.faq-list details+details { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 24px; font-weight: 500; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: var(--pale); }
.faq-list summary .icon { width: 20px; height: 20px; color: var(--secondary); transition: transform .2s var(--ease-out); }
.faq-list details[open] summary .icon { transform: rotate(180deg); color: var(--accent); }
.faq-answer { padding: 2px 24px 24px; color: var(--secondary); font-size: .9375rem; line-height: 1.7; }
.faq-answer ul { margin: 12px 0 0; padding-left: 20px; }
.faq-answer li+li { margin-top: 4px; }
.faq-answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-answer a:hover { color: var(--accent-hover); }
.footer { border-top: 1px solid var(--line); padding-block: 48px 32px; }
.footer-brand .brand { font-size: 1.375rem; }
.footer-tagline { margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.02em; }
.footer-description { max-width: 34ch; margin-top: 8px; color: var(--secondary); font-size: .875rem; line-height: 1.6; }
.footer-nav h3 { font-family: var(--body); font-size: .9375rem; margin-bottom: 18px; font-weight: 500; letter-spacing: 0; }
/* Группы ссылок – <details>: на широком экране всегда раскрыты и выглядят
   обычными колонками, на телефоне превращаются в аккордеон (controls.js
   снимает и ставит атрибут open по ширине). */
.footer-group>summary { list-style: none; cursor: default; }
.footer-group>summary::-webkit-details-marker { display: none; }
.footer-group>summary .icon { display: none; }
.footer-nav a { display: block; color: var(--secondary); font-size: .875rem; margin-top: 12px; }
.footer-nav a:hover { color: var(--accent); }
.footer-nav small { display: block; font-size: .75rem; color: var(--secondary); }
.footer-social { display: flex; gap: 4px; list-style: none; margin: 18px 0 0 -8px; padding: 0; }
.footer-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--secondary); }
.footer-social a:hover { background: var(--pale); color: var(--ink); }
.social-icon { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 1150px) {
  .control-locations, .control-cpu { grid-column: 1 / span 7; }
  .control-period, .catalog-count { grid-column: 9 / span 4; }
  .location-controls { gap: 16px; }
  .header { gap: 20px; }
  .header-actions { gap: 16px; }
  .nav-link, .nav-trigger { padding-inline: 10px; }
  .prefs-code { display: none; }
  .wrap { width: calc(100% - 48px); }
  .hero-copy { padding-inline: 40px; }
  .benefits>div { padding-inline: 16px; gap: 12px; }
  .benefits .icon { width: 24px; height: 24px; }
  .benefits p { font-size: .875rem; }
  .benefits small { font-size: .8125rem; }
  .plans-table th, .plans-table td { padding-inline: 8px; }
  .plans-table thead th:first-child, .plans-table .plan-name { padding-left: 12px; }
  .plans-table .plan-name strong { font-size: .875rem; }
  .plans-table small { font-size: .75rem; }
}
@media (max-width: 900px) {
  .header { height: 80px; grid-template-columns: auto 1fr; gap: 20px; }
  [id] { scroll-margin-top: 104px; }
  .section[id] { scroll-margin-top: 56px; }
  .doc-nav { position: static; }
  .header-actions { gap: 12px; justify-self: end; }
  .menu-toggle { display: flex; flex-direction: column; gap: 6px; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: white; }
  .menu-toggle:hover, .menu-toggle[aria-expanded=true] { background: var(--pale); }
  .menu-toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .16s; }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .navigation { display: none; position: absolute; width: 100%; justify-self: stretch; left: 0; right: 0; top: calc(100% - 4px); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0; background: white; box-shadow: 0 10px 28px #192c3218; max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-list { display: block; }
  .nav-list>li+li { border-top: 1px solid var(--line); }
  .nav-link, .nav-trigger { width: 100%; min-height: 52px; justify-content: space-between; padding: 14px 12px; font-size: 1rem; border-radius: 8px; }
  .nav-panel { position: static; width: 100%; border: 0; box-shadow: none; border-radius: 0; padding: 4px 0 12px 12px; }
  .nav-item { padding: 12px; }
  .unavailable { margin-top: 0; border: 0; }
  .item-copy small { font-size: .8125rem; }
  .mobile-nav-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 8px; padding: 20px 12px 8px; border-top: 1px solid var(--line); }
  .mobile-nav-footer .button { font-size: .875rem; min-height: 44px; padding: 10px 14px; gap: 12px; }
  .mobile-nav-footer .icon { width: 18px; height: 18px; }
  .hero-copy { padding: 36px 32px; }
  .hero-photo { left: 38%; opacity: .65; }
  .hero h1 { font-size: 3rem; }
  .benefits { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .benefits>div { padding: 0; border: 0; }
  .benefits p { font-size: .9375rem; }
  .section { padding-block: 48px; }
  .section-heading { align-items: flex-start; }
  .location-controls { gap: 12px; }
  .location-controls button { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px; }
  .control-locations, .control-cpu { grid-column: 1 / span 8; }
  .control-period { grid-column: 9 / span 4; }
  .catalog-count { display: none; }
  .plans-table, .plans-table tbody { display: block; }
  .plans-table thead { display: none; }
  .plans-table tbody { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding-top: 20px; }
  .plans-table tbody tr { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 18px; }
  /* Cards, not table rows: the desktop corner radii would break the hairlines. */
  .plans-table .plan-row th:first-child, .plans-table .plan-row td:last-child { border-radius: 0; }
  .plans-table .plan-row:hover th, .plans-table .plan-row:hover td { background: transparent; }
  .plans-table .group-row { grid-column: 1/-1; display: block; border: 0; padding: 0; }
  .plans-table .group-row th { padding: 10px 0 0; }
  .plans-table th, .plans-table td { padding: 0; }
  .plans-table small { font-size: .8125rem; }
  /* VPS cards: the plan name, four labelled specs in a 2 x 2 grid, then a
     footer row with the price and the Order button. */
  .plans-table:not(.planned) tbody tr { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; row-gap: 16px; padding: 16px 18px 18px; }
  .plans-table:not(.planned) .plan-name { grid-column: 1/-1; display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
  .plans-table:not(.planned) .plan-name strong { font-size: 1.0625rem; white-space: normal; }
  .plans-table:not(.planned) .plan-kvm { display: none; }
  .plans-table:not(.planned) .plan-cpu { display: block; font-size: .8125rem; color: var(--secondary); }
  .plans-table:not(.planned) td[data-label]:not(.plan-price) { padding-right: 14px; }
  .plans-table:not(.planned) td[data-label]:not(.plan-price)::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: .8125rem; color: var(--secondary); }
  /* One value per cell; the traffic folds into the port cell. */
  .plans-table:not(.planned) td[data-label]:not(.plan-price) small:not(.cell-traffic) { display: none; }
  .plans-table:not(.planned) .cell-traffic-col { display: none; }
  .plans-table:not(.planned) .cell-traffic { display: block; margin-top: 3px; }
  /* Footer: the price reads "1 229 ₽ / мес." with the button beside it. */
  .plans-table:not(.planned) .plan-price, .plans-table:not(.planned) .order-cell { display: flex; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
  .plans-table:not(.planned) .plan-price { grid-column: 1; flex-wrap: wrap; align-items: baseline; gap: 0 4px; text-align: left; }
  .plans-table:not(.planned) .plan-price::before { display: none; }
  .plans-table:not(.planned) .plan-price strong { display: inline; font-size: 1.375rem; }
  .plans-table:not(.planned) .plan-per { display: inline; margin: 0; font-size: .9375rem; }
  .plans-table:not(.planned) .plan-note { flex-basis: 100%; margin-top: 2px; font-size: .75rem; }
  .plans-table:not(.planned) .plan-note:not(.plan-total) { display: none; }
  .plans-table:not(.planned) .order-cell { grid-column: 2; justify-content: flex-end; }
  .order-link { background: var(--accent); color: white; border-color: var(--accent); min-height: 44px; padding: 10px 18px; }
  .order-cell .sold-out { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 8px; background: var(--pale); font-weight: 500; }
  /* Planned (dedicated) table keeps labelled cells. */
  .plans-table.planned tbody tr { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 16px; padding: 20px; }
  .plans-table.planned .plan-name { grid-column: 1/-1; padding: 0 0 4px; }
  .plans-table.planned .plan-name strong { font-size: 1rem; }
  .plans-table.planned td[data-label]::before { content: attr(data-label); display: block; font-size: .8125rem; color: var(--secondary); margin-bottom: 3px; }
  .plans-table.planned .plan-price { grid-column: auto; text-align: left; padding-top: 4px; }
  .plans-table.planned .plan-price::before { display: none; }
  .os-list { max-width: 550px; }
  .control-features { grid-template-columns: 1fr 1fr; }
  .location-grid { gap: 16px; }
  .location-grid a { gap: 12px; }
  .location-grid h3 { font-size: 1rem; }
  .location-grid img { width: 28px; height: 20px; }
}
@media (max-width: 600px) {
  .header { height: 76px; }
  [id] { scroll-margin-top: 100px; }
  .section[id] { scroll-margin-top: 52px; }
  .header-actions>.prefs { display: none; }
  .mobile-menu-top { height: 76px; }
  .header-actions>.account { display: none; }
  .wrap { width: calc(100% - 32px); }
  .brand { font-size: 1.3125rem; gap: 8px; }
  .brand svg { width: 28px; height: 23px; }
  .hero { border-radius: 12px; }
  .hero-copy { padding: 32px 24px 28px; }
  .hero-photo { left: 0; opacity: .2; background-position: center; }
  .eyebrow { font-size: .6875rem; margin-bottom: 18px; }
  .hero h1 { font-size: 2.125rem; line-height: 1.12; }
  .hero-description { font-size: 1rem; margin-top: 20px; }
  .wide-only { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
  /* Phone hero: the price or figure sits above the buttons, not beside them. */
  .hero-actions:has(.hero-price), .hero-actions:has(.hero-figure) { grid-template-columns: 1fr; gap: 16px; }
  .hero-price, .hero-figure { order: -1; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
  .hero-figure strong { font-size: 1.5rem; }
  .hero .button { padding-inline: 10px; gap: 8px; font-size: .875rem; }
  .hero .button .icon { width: 20px; height: 20px; }
  .hero-price strong { font-size: 1.5rem; white-space: nowrap; }
  .hero-price { font-size: .8125rem; }
  .hero-price small { font-size: .75rem; }
  /* Same treatment as the icon lists: a centred block with left-aligned text. */
  .benefits { gap: 22px 16px; padding-block: 24px; justify-items: center; }
  .benefits>div { gap: 12px; align-items: center; width: min(100%, 320px); }
  .benefits .icon { width: 22px; height: 22px; margin-top: 0; }
  .benefits p { font-size: .8125rem; }
  .benefits small { font-size: .75rem; }
  h2 { font-size: 1.875rem; }
  .section-heading { flex-direction: column; gap: 14px; margin-bottom: 24px; }
  .section-heading p { font-size: .9375rem; margin-top: 10px; }
  .catalog-toolbar { gap: 18px; margin-bottom: 18px; }
  .processor-tabs { margin-bottom: 12px; }
  .control-locations, .control-period, .control-cpu { grid-column: 1 / -1; }
  .location-controls { gap: 8px; }
  .location-controls button { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 10px; font-size: .8125rem; }
  .select-trigger { min-height: 52px; }
  .select-options { min-width: 0; }
  .select-options [role=option] { min-height: 48px; font-size: 1rem; }
  .location-controls button small { font-size: .75rem; }
  .plans-table tbody { grid-template-columns: 1fr; padding-top: 16px; }
  .plans-table.planned tbody tr { padding: 20px; gap: 20px 16px; }
  .plans-table.planned .plan-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .plans-table.planned .plan-name small { font-size: .75rem; margin-top: 0; }
  .plans-table.planned .plan-price strong { font-size: 1.375rem; }
  .plans-table.planned .plan-price small { font-size: .75rem; }
  .segmented button { padding-inline: 12px; }
  .os-panel { padding: 24px; }
  .os-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px 8px; }
  .os-list>div { grid-column: span 2; }
  .os-list>div:nth-child(4) { grid-column: 2 / span 2; }
  .os-list>div:nth-child(5) { grid-column: 4 / span 2; }
  .os-panel>p { font-size: .8125rem; }
  .control-features { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; gap: 0; }
  .location-grid a { padding: 22px 4px; border-bottom: 0; }
  .location-grid a:last-child { border-bottom: 1px solid var(--line); }
  .location-grid h3 { font-size: 1.125rem; }
  .location-grid img { width: 34px; height: 24px; }
  .faq h2 br { display: none; }
  .faq-help p { font-size: .9375rem; }
  .faq-list { border-radius: 14px; }
  .faq-list summary { font-size: .9375rem; padding: 18px; }
  .faq-answer { padding: 0 18px 20px; }
  .footer { padding-block: 32px 24px; }
}
/* ---------- Showcase: text on top, illustration (rendered image) below ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.showcase-card { display: flex; flex-direction: column; overflow: hidden; background: var(--pale); border-radius: 18px; padding: 28px 28px 0; }
.showcase-card h3 { font-size: 1.25rem; }
.showcase-card p { margin-top: 10px; color: var(--secondary); font-size: .9375rem; line-height: 1.6; }
.showcase-card img { display: block; width: 100%; height: auto; margin-top: auto; padding-top: 16px; }
/* ---------- Fact cards under the hero: same anatomy as the showcase, smaller ---------- */
.facts { padding-top: 16px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.showcase-card.small { padding: 22px 22px 0; }
.showcase-card.small h3 { font-size: 1.0625rem; }
.showcase-card.small p { margin-top: 6px; font-size: .875rem; }
.showcase-card.small img { padding-top: 18px; }
/* ---------- Data centres: accordion + crossfading photo ---------- */
.locations-section { padding-top: 16px; }
.dc-panel { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; padding: 48px 0 48px 48px; border-radius: 24px; background: var(--pale); overflow: hidden; }
.dc-copy p { margin-top: 12px; color: var(--secondary); }
.dc-list { display: grid; gap: 12px; margin-top: 32px; }
.dc-item { position: relative; background: white; border-radius: 16px; overflow: hidden; }
.dc-item::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); opacity: 0; transition: opacity .2s; }
.dc-item.is-open::before { opacity: 1; }
.dc-head { display: flex; align-items: center; gap: 16px; width: 100%; padding: 20px 24px; background: transparent; text-align: left; }
.dc-head img { border-radius: 3px; object-fit: cover; flex-shrink: 0; }
.dc-head strong { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; }
.dc-head small { display: block; margin-top: 2px; font-size: .875rem; color: var(--secondary); }
.dc-item:not(.is-open) .dc-head:hover strong { color: var(--accent); }
.dc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease-out); }
.dc-body>div { overflow: hidden; }
.dc-body p { margin: 0; padding: 0 24px; color: var(--secondary); font-size: .9375rem; line-height: 1.65; }
.dc-body .text-link { margin: 14px 24px 22px; }
.dc-item.is-open .dc-body { grid-template-rows: 1fr; }
.dc-visual { position: relative; min-height: 460px; border-radius: 18px 0 0 18px; overflow: hidden; background: #14252b; }
.dc-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .5s var(--ease-out), transform .9s var(--ease-out); }
.dc-visual img.is-active { opacity: 1; transform: none; }
.dc-credit { position: absolute; left: 16px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: #14252bb3; color: #d4e0e3; font-size: .75rem; opacity: 0; transition: opacity .4s var(--ease-out); backdrop-filter: blur(4px); }
.dc-credit.is-active { opacity: 1; }
/* ---------- Reviews carousel ---------- */
/* The heading, the track and the arrows are placed on the section's own grid,
   so the arrows can move under the cards on phones. */
.reviews { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.reviews .section-heading { grid-column: 1; }
.reviews .carousel { grid-column: 1 / -1; }
/* No reviews yet: one dark panel that invites the first one. */
.reviews-invite { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px 48px; padding: 48px; border-radius: 24px; background: #14252b; color: white; }
.reviews-invite .stars { gap: 6px; margin-bottom: 20px; }
.reviews-invite .star { width: 26px; height: 26px; fill: none; stroke: #4fb3bf; stroke-width: 1.5; stroke-linejoin: round; }
.reviews-invite h2 { font-size: 2.25rem; letter-spacing: -.04em; }
.reviews-invite p { margin-top: 12px; max-width: 52ch; color: #d4e0e3; font-size: 1.0625rem; line-height: 1.6; }
.reviews-invite .button { min-height: 52px; padding: 12px 26px; gap: 12px; background: white; color: var(--ink); border-color: white; }
.reviews-invite .button:hover { background: #e8f2f2; border-color: #e8f2f2; }
.carousel-nav { display: flex; gap: 10px; flex-shrink: 0; grid-column: 2; grid-row: 1; margin-bottom: 32px; }
.carousel-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: white; color: var(--ink); }
.carousel-btn:hover { background: var(--pale); }
.carousel-btn:disabled { color: #b8c8cd; cursor: default; background: white; }
.carousel-btn .icon { width: 20px; height: 20px; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel:focus-visible { outline-offset: 8px; }
.review { display: flex; flex-direction: column; scroll-snap-align: start; min-height: 340px; padding: 28px; border-radius: 18px; background: var(--pale); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stars { display: inline-flex; gap: 3px; color: #d5dde0; }
.star { width: 22px; height: 22px; fill: currentColor; }
.star.on { color: #00b67a; }
.review-source { padding: 4px 12px; border-radius: 999px; background: white; font-size: .8125rem; color: var(--secondary); }
.review h3 { margin-top: 22px; font-size: 1.25rem; line-height: 1.3; }
.review>p { margin-top: 12px; color: var(--secondary); font-size: .9375rem; line-height: 1.6; }
.review footer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 28px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: white; font-weight: 600; }
.review-name { font-weight: 500; }
.review-link { display: grid; place-items: center; width: 36px; height: 36px; margin-left: auto; border-radius: 50%; color: var(--secondary); }
.review-link:hover { background: white; color: var(--ink); }
.review-link .icon { width: 18px; height: 18px; transform: rotate(-90deg); }
.review-cta footer .button { width: 100%; gap: 12px; }
/* ---------- Motion ---------- */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }
/* Cross-page: the old page fades out quickly, the new one rises in; the header
   keeps its own snapshot so it stays put instead of crossfading with itself. */
@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
::view-transition-old(root) { animation: page-out .18s ease-in both; }
::view-transition-new(root) { animation: page-in .34s var(--ease-out) both; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Sections rise into place once; only while scripts run (html.js). */
/* Подъём при появлении сделан на детях, а не на самой секции: секция – цель
   якоря, и её transform сдвигал бы точку, к которой браузер прокручивает. */
html.js .reveal { opacity: 0; }
html.js .reveal>* { transform: translateY(14px); }
html.js .reveal.in { opacity: 1; transition: opacity .5s var(--ease-out); }
html.js .reveal.in>* { transform: none; transition: transform .6s var(--ease-out); }
/* Panels: a short pop when they open. */
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-panel, .prefs-panel, .select-options { animation: pop-in .18s var(--ease-out); }
.mobile-menu:not([hidden]) { animation: fade-rise .22s var(--ease-out); }
/* Table rows re-render on every filter change – let them settle in order. */
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.plans-table tbody tr { animation: row-in .32s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 28ms); }
/* FAQ answers unfold rather than snap. */
@keyframes fade-rise { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
details[open] .faq-answer, details[open] .footer-links { animation: fade-rise .26s var(--ease-out); }
.chevron, summary>span:last-child { transition: transform .18s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .reveal>* { opacity: 1; transform: none; transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Inner pages: the home page's own vocabulary ---------- */
.hero-copy { max-width: 640px; }
.search { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 52px; border: 1px solid #b8c8cd; border-radius: 12px; background: white; color: var(--ink); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #146c7514; }
.search .icon { width: 20px; height: 20px; color: var(--secondary); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; color: inherit; background: transparent; }
.hero-figure { display: flex; flex-direction: column; flex-shrink: 0; white-space: nowrap; font-size: .875rem; color: #c3d5d9; line-height: 1.3; }
.hero-figure strong { color: white; font-size: 1.625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero .search { max-width: 520px; margin-top: 26px; border-color: transparent; }
.benefits.cols-3 { grid-template-columns: repeat(3, 1fr); }
.benefits.cols-5 { grid-template-columns: repeat(5, 1fr); }
.benefits.two-rows { row-gap: 30px; }
.benefits.two-rows>div:nth-child(3n) { border-right: 0; padding-right: 0; }
.benefits.two-rows>div:nth-child(3n+1) { padding-left: 0; }
.benefits a { display: flex; align-items: center; gap: 14px; }
.benefits a:hover p { color: var(--accent); }
.page-top { padding: 40px 0 8px; }
.page-top h1 { font-size: clamp(2.125rem, 1.5rem + 2vw, 3rem); line-height: 1.1; letter-spacing: -.045em; font-weight: 700; max-width: 22ch; }
.page-top .eyebrow { color: var(--accent); margin-bottom: 12px; }
.page-lead { max-width: 60ch; margin-top: 16px; color: var(--secondary); font-size: 1.0625rem; line-height: 1.6; }
.split h2 { font-size: 2.25rem; }
.split>div>p { color: var(--secondary); margin-top: 20px; line-height: 1.7; }
.split .prose h3 { font-size: 1.125rem; margin-top: 28px; }
.split .prose h3:first-child { margin-top: 0; }
.panel { background: var(--pale); padding: 30px; border-radius: 12px; }
.panel h3 { font-size: 1.125rem; }
.panel>p { font-size: .875rem; color: var(--secondary); margin-top: 16px; }
.panel .spec-list { margin-top: 20px; }
.panel .spec-list div:first-child { border-top: 0; padding-top: 0; }
.panel .spec-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list { margin: 0; }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.spec-list dt { color: var(--secondary); }
.spec-list dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
/* The vendor panel reads as one centred block: heading, marks, note. */
.panel:has(.logo-row) { text-align: center; }
/* Шесть знаков в две ровные строки по три – заполняют панель, а не жмутся
   мелкой полоской. */
.logo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; align-items: center; gap: 26px 20px; padding: 28px 0 8px; }
/* Все знаки вендоров – квадратные 24×24 (Simple Icons), словесные марки
   занимают в квадрате только полосу. Поэтому бокс крупнее, чем кажется. */
.logo-row img { height: 46px; width: auto; max-width: 132px; object-fit: contain; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chips button { min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--pale); color: var(--secondary); font-size: .9375rem; }
.chips button:hover { color: var(--ink); }
.chips button[aria-pressed=true] { background: var(--selected); color: var(--accent); font-weight: 500; }
.row-list.flush>*:first-child { border-top: 0; padding-top: 0; }
.row-list .row-meta.mail { color: var(--accent); font-variant-numeric: tabular-nums; }
.row-list .tags { margin: 0 0 0 auto; }
.uptime-badge:empty { display: none; }
.uptime-badge { margin-top: 26px; }
.uptime-frame { width: 100%; border: 0; border-radius: 12px; background: var(--pale); }
.numbered { counter-reset: step; display: grid; gap: 22px; margin-top: 22px; }
.numbered>div { display: flex; gap: 16px; }
.numbered>div::before { counter-increment: step; content: counter(step); flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: white; color: var(--ink); font-size: .875rem; font-weight: 500; }
.numbered h4 { font-size: 1rem; font-weight: 500; }
.numbered p { margin-top: 4px; color: var(--secondary); font-size: .9375rem; line-height: 1.6; }
.row-list { display: grid; }
.row-list>* { display: flex; align-items: center; gap: 20px; padding: 22px 8px; border-top: 1px solid var(--line); }
.row-list>*:last-child { border-bottom: 1px solid var(--line); }
.row-list a:hover { background: var(--pale); }
.row-list h3 { font-size: 1.125rem; }
.row-list p { margin-top: 5px; font-size: .875rem; color: var(--secondary); }
.row-list .lead-icon { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.row-list .row-body { flex: 1; min-width: 0; }
.row-list .row-arrow { margin-left: auto; font-size: 1.5rem; color: var(--accent); }
.row-list .row-meta { margin-left: auto; font-size: .875rem; color: var(--secondary); white-space: nowrap; }
.row-list img { border-radius: 3px; object-fit: cover; }
.pill-ok { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--pale); font-size: .8125rem; white-space: nowrap; margin-left: auto; }
.pill-ok::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22a06b; }
.partner { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.partner figure { position: relative; margin: 0; }
.partner img { display: block; width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.partner figcaption { position: absolute; left: 14px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: #14252bb3; color: #d4e0e3; font-size: .75rem; backdrop-filter: blur(4px); }
.partner-body { padding: 20px 24px 24px; }
.partner-body h3 { font-size: 1.0625rem; }
.partner-body p { margin-top: 8px; color: var(--secondary); font-size: .9375rem; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags li { padding: 4px 10px; border-radius: 999px; background: var(--pale); font-size: .8125rem; color: var(--secondary); }
.note { margin-top: 24px; font-size: .875rem; color: var(--secondary); line-height: 1.6; }
.cta-dark { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px 48px; border-radius: 18px; background: #14252b; color: white; }
.cta-dark h2 { font-size: 2rem; letter-spacing: -.04em; }
.cta-dark p { margin-top: 10px; color: #d4e0e3; max-width: 56ch; }
.cta-dark .actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.cta-dark .primary { background: white; color: var(--ink); border-color: white; }
.cta-dark .primary:hover { background: #e8f2f2; border-color: #e8f2f2; }
.cta-dark .secondary { background: transparent; color: white; border-color: #ffffff59; }
.cta-dark .secondary:hover { background: #ffffff14; border-color: white; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 12px; text-align: left; vertical-align: top; font-size: .9375rem; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; padding-top: 0; font-weight: 500; font-size: .875rem; color: var(--secondary); }
.compare tbody th { font-weight: 500; width: 22%; padding-left: 0; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.compare td { color: var(--secondary); }
.plans-table.planned thead th:first-child { width: 20%; }
.plans-table.planned thead th:nth-child(2) { width: 17%; }
.plans-table.planned thead th:nth-child(3) { width: 13%; }
.plans-table.planned thead th:nth-child(4) { width: 16%; }
.plans-table.planned thead th:nth-child(5) { width: 12%; }
.plans-table.planned thead th:nth-child(6) { width: 10%; }
.plans-table.planned thead th:last-child { width: 12%; padding-right: 20px; }
.plans-table.planned .plan-price { padding-right: 20px; }
.plan-price .soon { font-size: .9375rem; font-weight: 500; color: var(--secondary); }
.plans-table .plan-flags { display: inline-flex; gap: 6px; }
.plans-table .plan-flags img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }
.doc-nav { position: sticky; top: 112px; }
.doc-nav h2 { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); font-weight: 500; font-family: var(--body); }
.doc-nav ol, .doc-nav ul { list-style: none; margin: 12px 0 28px; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.doc-nav a { color: var(--secondary); }
.doc-nav a:hover, .doc-nav a[aria-current] { color: var(--accent); }
.prose { max-width: 70ch; color: var(--secondary); font-size: 1rem; line-height: 1.7; }
.prose h2 { font-size: 1.375rem; color: var(--ink); margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 12px; }
.prose ul { margin: 12px 0 0; padding-left: 20px; }
.prose li+li { margin-top: 6px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1150px) {
  .benefits.cols-5 { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .benefits.cols-5>div:nth-child(3n) { border-right: 0; }
}
@media (max-width: 900px) {
  .benefits.cols-3, .benefits.cols-5, .benefits.two-rows { grid-template-columns: repeat(2, 1fr); }
  .benefits.two-rows>div, .benefits.cols-5>div { padding: 0; border: 0; }
  .split h2 { font-size: 1.875rem; }
  .doc-nav { position: static; }
  .doc-nav ul { display: none; }
  .cta-dark { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
  .compare-wrap { overflow-x: auto; }
  .compare { min-width: 620px; }
}
@media (max-width: 600px) {
  .benefits.cols-3, .benefits.cols-5, .benefits.two-rows { grid-template-columns: 1fr; }
  .hero .search { margin-top: 24px; min-height: 48px; }
  .panel { padding: 24px; }
  .row-list>* { flex-wrap: wrap; padding: 18px 4px; gap: 10px 14px; }
  .row-list h3 { font-size: 1rem; }
  .row-list .row-meta { display: none; }
  .row-list .row-meta.mail { display: block; font-size: .8125rem; }
  .row-list .tags { flex-basis: 100%; margin-left: 42px; }
  .cta-dark h2 { font-size: 1.5rem; }
  .cta-dark .actions { width: 100%; }
  .cta-dark .actions .button { flex: 1; }
}

/* Responsive rules for the blocks declared above the motion section; they
   must follow the base rules to win the cascade. */
@media (max-width: 1150px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-card.small { flex-direction: row; align-items: center; gap: 20px; padding: 20px; }
  .showcase-card.small>div { flex: 1; }
  .showcase-card.small img { width: 46%; margin: 0; padding: 0; }
}
@media (max-width: 900px) {
  .dc-panel { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .dc-visual { min-height: 0; aspect-ratio: 16 / 10; border-radius: 16px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-card { flex-direction: row; align-items: center; gap: 24px; padding: 24px; }
  .showcase-card>div { flex: 1; }
  .showcase-card img { width: 46%; margin: 0; padding: 0; border-radius: 12px; }
  .carousel { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 600px) {
  .facts-grid { grid-template-columns: 1fr; }
  .showcase-card, .showcase-card.small { flex-direction: column; align-items: stretch; padding: 24px 24px 0; }
  .showcase-card.small { padding: 18px 18px 0; }
  .showcase-card.small h3 { font-size: 1rem; }
  .showcase-card.small p { margin-top: 4px; font-size: .8125rem; }
  .showcase-card.small img { width: 72%; max-width: 250px; padding-top: 8px; align-self: center; }
  .showcase-card img { width: 100%; padding-top: 8px; border-radius: 0; }
  .dc-panel { padding: 22px 18px; border-radius: 18px; }
  .dc-head { padding: 16px 18px; gap: 12px; }
  .dc-head strong { font-size: 1.0625rem; }
  .dc-body p { padding: 0 18px; }
  .dc-body .text-link { margin: 12px 18px 18px; }
  .reviews { grid-template-columns: 1fr; }
  .reviews-invite { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; border-radius: 18px; }
  .reviews-invite h2 { font-size: 1.75rem; }
  .reviews-invite p { font-size: .9375rem; }
  .reviews-invite .button { width: 100%; }
  .carousel-nav { grid-column: 1; grid-row: 3; justify-content: center; margin: 20px 0 0; }
  .carousel { grid-auto-columns: 86%; }
  /* Section intros read better centred on a narrow screen. */
  .section-heading { align-items: center; text-align: center; }
  .faq-head, .faq-help, .dc-copy>h2, .dc-copy>p, .os-panel>h3, .os-panel>p { text-align: center; }
  /* Icon lists keep their left-aligned text, but the icon sits beside the
     middle of the block and the block itself is centred in the column. */
  .control-features { justify-items: center; gap: 24px; }
  .control-features article { align-items: center; width: min(100%, 320px); }
  .control-features .icon { margin-top: 0; }
  .review { min-height: 0; padding: 22px; }
  .footer-brand .brand { font-size: 1.25rem; }
  .footer-tagline { margin-top: 14px; font-size: 1rem; }
  .footer-description { margin-top: 6px; font-size: .8125rem; line-height: 1.5; }
  .footer-social { margin-top: 10px; }
  .footer-top { row-gap: 24px; }
  .footer-nav h3 { margin-bottom: 6px; font-size: .875rem; }
  .footer-nav a { margin-top: 8px; font-size: .8125rem; }
  .footer-nav small { font-size: .6875rem; }
}

/* One grid everywhere: 12 columns, 24 px gutter. Two-column blocks sit on
   column lines (4 + 7 with a spacer column, 6 + 6, 3 + 8, 3 + 9). Child rules
   use :where() so the phone rules below can override them by source order. */
.split, .faq, .platform-grid, .grid-2, .grid-3, .doc-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.split>:where(:first-child), .faq-head, .faq-help { grid-column: 1 / span 4; }
.split>:where(:last-child) { grid-column: 6 / span 7; }
.faq { grid-template-rows: auto 1fr; }
.faq-head { grid-row: 1; }
.faq-help { grid-row: 2; align-self: start; }
.faq-list { grid-column: 6 / span 7; grid-row: 1 / span 2; }
/* Панель и список рядом с ней одной высоты: оба тянутся на высоту строки,
   а содержимое стоит по вертикальному центру. Так ни один из них не
   выглядит коротышкой на фоне соседа. */
.platform-grid { align-items: stretch; }
.platform-grid>.panel, .platform-grid>.os-panel { display: grid; align-content: center; }
.platform-grid>.row-list { align-content: center; }
.platform-grid>*, .grid-2>* { grid-column: span 6; }
.grid-3>* { grid-column: span 4; }
.doc-layout { align-items: start; }
.doc-layout>:where(.doc-nav) { grid-column: 1 / span 3; }
.doc-layout>:where(:last-child) { grid-column: 5 / span 8; }
/* Футер – две простые сетки, как у Worldstream: внешняя делит ширину на
   бренд и блок ссылок (1 : 3 с широким промежутком), внутренняя делит блок
   ссылок на равные колонки. В инспекторе видно ровно то, что на экране. */
.footer-top { display: grid; grid-template-columns: 1fr 3fr; column-gap: 72px; align-items: start; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) {
  .split>*, .faq>*, .platform-grid>*, .doc-layout>* { grid-column: 1 / -1; grid-row: auto; }
  .split, .faq, .platform-grid, .doc-layout { grid-template-rows: none; row-gap: 32px; }
  .footer-top { grid-template-columns: 1fr; row-gap: 32px; }
  .faq-help { order: 3; }
  .doc-layout>.doc-nav { order: 2; }
  .grid-2>*, .grid-3>* { grid-column: span 6; }
}
@media (max-width: 600px) {
  .grid-2>*, .grid-3>* { grid-column: 1 / -1; }
  /* Телефон: три группы ссылок сворачиваются в строки со стрелкой. */
  .footer-nav { display: block; }
  .footer-group { border-top: 1px solid var(--line); }
  .footer-nav nav:last-child .footer-group { border-bottom: 1px solid var(--line); }
  .footer-group>summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; cursor: pointer; }
  .footer-group>summary:hover h3 { color: var(--accent); }
  .footer-group>summary .icon { display: block; width: 20px; height: 20px; flex-shrink: 0; color: var(--secondary); transition: transform .2s var(--ease-out); }
  .footer-group[open]>summary .icon { transform: rotate(180deg); color: var(--accent); }
  .footer-nav h3 { margin: 0; font-size: 1rem; }
  .footer-links { display: grid; gap: 12px; padding-bottom: 20px; }
  .footer-nav a { margin-top: 0; font-size: .9375rem; }
  .showcase-card>div, .showcase-card.small>div { text-align: center; }
  .logo-row { gap: 22px 16px; padding: 22px 0 4px; }
  .logo-row img { height: 26px; max-width: 92px; }
  /* Contact rows: title and arrow on the first line, the address underneath. */
  .row-list .row-meta.mail { order: 1; flex-basis: 100%; margin-left: 46px; }
  /* The comparison table becomes labelled blocks instead of a side-scroller. */
  .compare-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare tbody tr { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .compare th, .compare td, .compare tbody tr:last-child th, .compare tbody tr:last-child td { display: block; width: auto; padding: 0; border: 0; }
  .compare tbody th { font-size: 1rem; }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: .75rem; color: var(--secondary); }
}

/* Phone menu: a full-screen panel with flat links, the account button and the
   language card (the header's own picker, moved into the panel while open). */
.mobile-menu { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: white; }
.mobile-menu[hidden] { display: none; }
.mobile-menu-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.mobile-menu-nav::-webkit-scrollbar { width: 0; height: 0; }
html.menu-open { overflow: hidden; }
.mobile-menu-top { flex: none; display: flex; align-items: center; justify-content: space-between; height: 80px; }
.mobile-menu-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.mobile-menu-close:hover { background: var(--pale); }
.mobile-menu-links { display: grid; border-bottom: 1px solid var(--line); }
.mobile-menu-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 16px 0; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 1.125rem; letter-spacing: -.015em; color: var(--ink); }
.mobile-menu-links a small { font-family: var(--body); font-weight: 400; font-size: .8125rem; color: var(--secondary); }
.mobile-menu-links a[aria-current] { color: var(--accent); }
.mobile-menu-account { width: 100%; min-height: 56px; margin-top: 20px; font-size: 1rem; }
.mobile-menu-prefs { margin-top: 16px; }
.prefs-long { display: none; }
.mobile-menu .prefs-trigger { width: 100%; min-height: 66px; padding: 12px 16px; gap: 14px; border-radius: 14px; background: var(--pale); border-color: transparent; }
.mobile-menu .prefs-trigger .prefs-flag { width: 28px; height: 28px; }
.mobile-menu .prefs-trigger .prefs-code { display: none; }
.mobile-menu .prefs-trigger .prefs-long { display: grid; text-align: left; line-height: 1.3; }
.mobile-menu .prefs-trigger .prefs-long b { font-size: 1rem; font-weight: 600; }
.mobile-menu .prefs-trigger .prefs-long small { font-size: .8125rem; font-weight: 400; color: var(--secondary); }
.mobile-menu .prefs-trigger>.chevron { margin-left: auto; }
.mobile-menu .prefs-panel { position: static; width: 100%; margin-top: 8px; box-shadow: none; }

/* Referral programme */
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 50%; background: white; box-shadow: 0 0 0 1px var(--line); font-weight: 600; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.0625rem; }
.step p { margin-top: 8px; color: var(--secondary); font-size: .9375rem; line-height: 1.6; }
.calc { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: stretch; padding: 32px; }
.calc-controls { display: grid; align-content: center; gap: 34px; }
.calc-field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.calc-field-top span { font-size: .9375rem; color: var(--secondary); }
.calc-field-top output { font-family: var(--display); font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: .75rem; color: var(--secondary); font-variant-numeric: tabular-nums; }
.calc-field input[type=range] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; }
.calc-field input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--fill, 0%), #dde5e8 var(--fill, 0%)); }
.calc-field input[type=range]::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--fill, 0%), #dde5e8 var(--fill, 0%)); }
.calc-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: white; border: 2px solid var(--accent); box-shadow: 0 2px 8px #192c3229; transition: transform .12s var(--ease-out); }
.calc-field input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: white; border: 2px solid var(--accent); box-shadow: 0 2px 8px #192c3229; }
.calc-field input[type=range]:hover::-webkit-slider-thumb, .calc-field input[type=range]:focus-visible::-webkit-slider-thumb { transform: scale(1.08); }
.calc-field input[type=range]:focus-visible { outline: none; }
.calc-field input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px #146c7526; }
.calc-summary { display: grid; align-content: center; padding: 30px 32px; border-radius: 14px; background: #14252b; color: white; }
.calc-summary-label { font-size: .875rem; color: #a9c0c5; }
.calc-summary strong { margin-top: 6px; font-family: var(--display); font-size: 2.75rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.calc-summary-note { margin-top: 8px; font-size: .875rem; color: #a9c0c5; }
.calc-summary-rows { display: grid; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #ffffff1f; }
.calc-summary-rows div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: .9375rem; color: #a9c0c5; }
.calc-summary-rows b { font-size: 1.125rem; font-weight: 600; color: white; font-variant-numeric: tabular-nums; }
.rules { list-style: none; margin: 0; padding: 0; counter-reset: rule; }
.rules li { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); line-height: 1.6; color: var(--secondary); }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules li::before { counter-increment: rule; content: counter(rule, decimal-leading-zero); flex-shrink: 0; width: 28px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; gap: 12px; }
  .calc { padding: 22px; gap: 24px; }
  .calc-controls { gap: 26px; }
  .calc-summary { padding: 24px; }
  .calc-summary strong { font-size: 2.25rem; }
}

/* ---------- База знаний ---------- */
.page-top .page-search { max-width: 520px; margin-top: 24px; }
.docs-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.docs-cat { padding: 24px 24px 18px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.docs-cat .cat-icon { width: 28px; height: 28px; color: var(--accent); }
.docs-cat h2 { margin-top: 16px; font-size: 1.125rem; }
.docs-cat>p { margin-top: 6px; color: var(--secondary); font-size: .9375rem; line-height: 1.5; }
.docs-cat ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; }
.docs-cat li a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .9375rem; font-weight: 500; }
.docs-cat li a small { color: var(--secondary); font-weight: 400; white-space: nowrap; }
.docs-cat li a:hover { color: var(--accent); }

/* Статья: хлебные крошки, мета, три колонки – навигация, текст, оглавление. */
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; font-size: .875rem; color: var(--secondary); }
.crumbs a:hover { color: var(--accent); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 14px; font-size: .875rem; color: var(--secondary); }
.article-meta span+span::before { content: '·'; margin: 0 12px; color: #a7b8be; }
.article-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.docs-nav { grid-column: 1 / span 3; position: sticky; top: 112px; }
.article-body { grid-column: 4 / span 6; max-width: none; }
.article-toc { grid-column: 10 / span 3; position: sticky; top: 112px; }
.fold>summary { list-style: none; display: flex; align-items: center; justify-content: space-between; font-family: var(--body); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); font-weight: 500; cursor: default; }
.fold>summary::-webkit-details-marker { display: none; }
.fold>summary .icon { display: none; width: 18px; height: 18px; }
.docs-nav h2 { margin-top: 24px; font-family: var(--body); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); font-weight: 500; }
.docs-nav ul, .article-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; font-size: .9rem; line-height: 1.4; }
.docs-nav a, .article-toc a { display: block; padding: 6px 12px; margin-left: -12px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; color: var(--secondary); }
.docs-nav a:hover, .article-toc a:hover { color: var(--ink); background: var(--pale); }
.docs-nav a[aria-current], .article-toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }
.article-toc .fold-body { margin-top: 14px; }

/* Текст статьи: якоря заголовков, код, врезки, шаги, таблицы. */
.prose h2 .anchor { margin-left: 8px; color: var(--accent); text-decoration: none; opacity: 0; font-weight: 400; transition: opacity .15s; }
.prose h2:hover .anchor, .prose h2 .anchor:focus-visible { opacity: 1; }
.prose h3 { margin-top: 28px; font-size: 1.0625rem; color: var(--ink); }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--pale); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875em; }
.prose .code { margin: 16px 0 0; border-radius: 12px; overflow: hidden; background: #14252b; }
.prose .code figcaption { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 16px; background: #0f1d22; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: #a9c0c5; }
.prose .code .copy { padding: 6px 10px; border-radius: 7px; background: transparent; color: #d4e0e3; font-size: .8125rem; letter-spacing: 0; text-transform: none; }
.prose .code .copy:hover { background: #ffffff1a; color: white; }
.prose pre { margin: 0; padding: 16px; overflow-x: auto; color: #e7eef0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875rem; line-height: 1.6; }
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.callout { display: flex; gap: 14px; margin-top: 16px; padding: 16px 18px; border-radius: 12px; background: var(--pale); border-left: 3px solid var(--accent); }
.callout .icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.callout p { margin: 0; color: var(--ink); font-size: .9375rem; }
.callout.warn { background: #fdf4ec; border-left-color: #c9742b; }
.callout.warn .icon { color: #c9742b; }
.prose .steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.prose .steps li { position: relative; padding-left: 44px; }
.prose .steps li+li { margin-top: 0; }
.prose .steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--selected); color: var(--accent); font-weight: 600; font-size: .8125rem; }
.table-wrap { margin-top: 16px; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 500; font-size: .875rem; color: var(--ink); }
.prose th:first-child, .prose td:first-child { padding-left: 0; }
.article-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.article-pager a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 500; text-decoration: none; }
.article-pager a small { font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); font-weight: 500; }
.article-pager a.next { text-align: right; }
.article-pager a:hover { border-color: var(--accent); color: var(--accent); }
.article-help { margin-top: 28px; font-size: .9375rem; }
.article-help .text-link { display: inline-flex; margin-left: 6px; text-decoration: none; }

@media (max-width: 1150px) {
  .docs-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-toc { display: none; }
  .article-body { grid-column: 4 / span 9; }
}
@media (max-width: 900px) {
  .docs-cats { grid-template-columns: 1fr; }
  .article-layout>* { grid-column: 1 / -1; }
  .docs-nav, .article-toc { position: static; display: block; }
  .docs-nav { order: 0; }
  .article-toc { order: 1; }
  .article-body { order: 2; }
  .fold { padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; }
  .fold>summary { min-height: 50px; cursor: pointer; font-size: .9375rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 500; }
  .fold>summary .icon { display: block; color: var(--secondary); transition: transform .2s var(--ease-out); }
  .fold[open]>summary .icon { transform: rotate(180deg); }
  .fold-body { padding-bottom: 14px; }
  .docs-nav h2 { margin-top: 12px; }
  .docs-nav a, .article-toc a { margin-left: 0; padding: 8px 0; border-left: 0; border-radius: 0; }
  .docs-nav a:hover, .article-toc a:hover { background: transparent; }
  .article-toc .fold-body { margin-top: 4px; }
  .article-pager { grid-template-columns: 1fr; }
  .article-pager a.next { text-align: left; }
}
