/* sponge.digital — мягкая сервисная система (семейство 10 журнала разборов, эталон
   barmer.de) в языке бренда Sponge. Решений четыре, и они закрывают всё:
     • радиусов ровно два — пилюля 999 и карточка 24;
     • глубина тинтом, а не рамкой и не линейкой; одна тень — для парящего;
     • корпус крупный: 20/32 на витрине, 18/28 в кабинете;
     • алый #f13f3a живёт в двух ролях: главное действие и «та же цена при продлении».
   Шрифты — решение владельца по бренду Sponge (19.08.2026): Montserrat + Wix Madefor Text. */

@font-face { font-family: Montserrat; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/montserrat-cyrillic.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Wix Madefor Text"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/wixmadefortext-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Wix Madefor Text"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/wixmadefortext-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Wix Madefor Text"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/wixmadefortext-cyrillic.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

:root {
  --paper: #ffffff;
  --ground: #f2f4f7;
  --ink: #15161a;
  --ink-2: #464b56;
  --ink-3: #636978;
  --tint: #e8edf4;
  --tint-2: #dbe3ee;
  --red: #f13f3a;
  --red-press: #d02526;
  --red-soft: #fde6e4;
  --red-ink: #8f1714;
  --ok: #0f6e3c;
  --ok-soft: #dff2e7;
  --warn: #8a4f00;
  --warn-soft: #fbeed6;

  --r-card: 24px;
  --r-pill: 999px;
  --lift: 0 24px 48px -24px rgba(21, 22, 26, .34), 0 2px 6px -2px rgba(21, 22, 26, .08);

  --f-display: Montserrat, "Wix Madefor Text", system-ui, sans-serif;
  --f-text: "Wix Madefor Text", system-ui, sans-serif;

  /* три изинга по ролям — одна кривая на всё читается механикой */
  --e-display: cubic-bezier(.16, 1, .3, 1);
  --e-body: cubic-bezier(.25, .46, .45, .94);
  --e-ui: cubic-bezier(.4, 0, .2, 1);

  --gutter: clamp(16px, 3.2vw, 40px);
  --maxw: 1360px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--tint-2) transparent; scrollbar-width: thin; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 18px/28px var(--f-text);
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--red-soft); color: var(--red-ink); }
input, textarea { caret-color: var(--red); }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--red-soft); outline-offset: 2px; box-shadow: 0 0 0 1.5px var(--red); border-radius: var(--r-pill); }
img, svg, canvas { display: block; }
.num, .price, [data-num] { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3 { font-family: var(--f-display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-weight: 900; }
h2 { font-weight: 850; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -.028em; }
h3 { font-weight: 800; font-size: 24px; line-height: 1.15; letter-spacing: -.012em; }
p { margin: 0; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.quiet { color: var(--ink-3); }
.small { font-size: 16px; line-height: 24px; }
.tiny { font-size: 14px; line-height: 20px; }

/* ---------- кнопки и поля: только пилюли ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); cursor: pointer; text-decoration: none;
  font: 700 17px/1 var(--f-text); letter-spacing: -.005em; white-space: nowrap;
  transition: translate .2s var(--e-ui), box-shadow .2s var(--e-ui), background-color .15s var(--e-ui);
}
.btn:hover { translate: 0 -1px; box-shadow: var(--lift); }
.btn:active { translate: 0 0; box-shadow: none; }
/* алый: графитовый текст, белый только в нажатом — правило контраста бренда Sponge */
.btn.red { --bg: var(--red); --fg: var(--ink); }
.btn.red:active { --bg: var(--red-press); --fg: #fff; }
.btn.soft { --bg: var(--paper); --fg: var(--ink); }
.btn.tint { --bg: var(--tint); --fg: var(--ink); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.full { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn .ico { width: 20px; height: 20px; }

.field { display: grid; gap: 8px; font: 600 15px/20px var(--f-text); color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 56px; padding: 0 22px; border: 2px solid transparent;
  border-radius: var(--r-pill); background: var(--tint); color: var(--ink);
  font: 500 18px/1 var(--f-text); outline: none;
  transition: background-color .15s var(--e-ui), border-color .15s var(--e-ui);
}
textarea.input { border-radius: var(--r-card); padding: 16px 22px; min-height: 120px; line-height: 1.5; }
.input::placeholder { color: var(--ink-3); }
.input:hover { background: var(--tint-2); }
.input:focus { background: var(--paper); border-color: var(--ink); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 26px) 50%, calc(100% - 20px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 48px; }
.check { display: flex; align-items: center; gap: 12px; font: 500 17px/1.3 var(--f-text); color: var(--ink); cursor: pointer; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--tint); color: var(--ink-2);
  font: 700 13px/1 var(--f-text); letter-spacing: .01em; white-space: nowrap;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .55; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--red-soft); color: var(--red-ink); }
.pill.plain::before { display: none; }

.card { background: var(--paper); border-radius: var(--r-card); padding: clamp(20px, 2.4vw, 32px); }
.card.tint { background: var(--tint); }
.card.red { background: var(--red-soft); }
.card.ink { background: var(--ink); color: #fff; }
.card.ink h2, .card.ink h3 { color: #fff; }
.card.ink .muted { color: #c7cad2; }
.card.ink .hi { color: #fff; }

/* ---------- сообщения ---------- */
.notes { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 22px; border-radius: var(--r-card);
  background: var(--paper); font: 500 17px/1.45 var(--f-text); box-shadow: var(--lift);
  animation: note-in .5s var(--e-display) both; }
.note.error { background: var(--red-soft); color: var(--red-ink); box-shadow: none; }
.note.success { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
@keyframes note-in { from { opacity: 0; translate: 0 -8px; } }

/* =================================================================== */
/*  ВИТРИНА                                                             */
/* =================================================================== */
.pub { background: var(--paper); }
.pub-bar {
  position: relative; z-index: 5; max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 28px; padding: 22px var(--gutter);
}
.wordmark { display: inline-flex; align-items: baseline; gap: 1px; text-decoration: none;
  font: 900 23px/1 var(--f-display); letter-spacing: -.04em; color: var(--ink); }
.wordmark b { font-weight: 900; }
.wordmark i { font-style: normal; font-weight: 600; color: var(--ink-3); letter-spacing: -.02em; }
.pub-bar nav { display: flex; gap: 6px; margin-left: auto; }
.pub-bar nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  text-decoration: none; font: 600 16px/1 var(--f-text); color: var(--ink-2); transition: background-color .15s var(--e-ui), color .15s var(--e-ui); }
.pub-bar nav a:hover { background: var(--tint); color: var(--ink); }
.pub-bar nav a.btn { color: var(--fg); margin-left: 6px; }
.pub-bar nav a.btn:hover { background: var(--bg); color: var(--fg); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* первый экран: текст слева, губка справа уходит за край */
.hero { position: relative; overflow: clip; padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 7vw, 104px); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.hero-copy { position: relative; z-index: 2; display: grid; gap: 28px; padding-block: clamp(8px, 3vw, 48px); }
.hero h1 { font-size: clamp(54px, 7.4vw, 96px); line-height: .9; letter-spacing: -.04em; }
.hero h1 .line { display: block; clip-path: inset(-.2em -100vw -.12em -100vw); }
.hero h1 .line > span { display: inline-block; }
.lede { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 34ch; }

.stub { display: inline-flex; align-items: stretch; gap: 6px; padding: 6px; border-radius: var(--r-pill);
  background: var(--paper); box-shadow: var(--lift); width: max-content; max-width: 100%; }
.stub > div { display: grid; align-content: center; gap: 4px; padding: 10px 24px; border-radius: var(--r-pill); }
.stub small { font: 600 14px/1 var(--f-text); color: var(--ink-3); letter-spacing: .02em; }
.stub strong { font: 850 30px/1.05 var(--f-display); letter-spacing: -.02em; }
.stub .later { background: var(--red-soft); }
.stub .later small { color: var(--red-ink); }
.stub .arrow { display: grid; place-items: center; padding: 0 2px; color: var(--ink-3); }

.search { display: flex; gap: 6px; padding: 6px; border-radius: var(--r-pill); background: var(--tint); max-width: 560px; }
.search .input { background: transparent; min-height: 52px; border: 0; padding-left: 20px; }
.search .input:focus { background: transparent; }
.search:focus-within { background: var(--paper); box-shadow: 0 0 0 2px var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.sponge {
  position: absolute; z-index: 1; top: calc(-1 * clamp(24px, 4vw, 56px)); bottom: -24px;
  right: calc(-1 * var(--gutter) - max(0px, (100vw - var(--maxw)) / 2));
  left: 58%;
  border-radius: var(--r-card) 0 0 var(--r-card);
  overflow: hidden;
  /* постер — тот же шейдер, отрендеренный на CPU (deploy/render_poster.py): первый кадр
     до запуска WebGL и честная замена там, где WebGL нет */
  background: #5c0c0b url(sponge-poster.jpg) center / cover;
}
.sponge canvas { width: 100%; height: 100%; }
.sponge::after { /* направленная тонировка: темнее у стыка с текстом, свет не глушим */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(21,22,26,.18), transparent 32%);
}
.sponge-note { position: absolute; left: 22px; bottom: 44px; z-index: 2; }

/* секции */
.band { padding: clamp(64px, 9vw, 128px) 0; }
.band.ground { background: var(--ground); }
.band-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.band-head p { font-size: 20px; line-height: 32px; color: var(--ink-2); max-width: 58ch; }

/* цена продления против чужих: строки-пилюли с полосой */
.renew { display: grid; gap: 12px; }
.renew-row { position: relative; display: grid; grid-template-columns: minmax(150px, 230px) 1fr minmax(120px, auto); gap: 20px; align-items: center;
  padding: 14px 14px 14px 26px; border-radius: var(--r-pill); background: var(--paper); }
.renew-row .who { font: 700 17px/1.2 var(--f-text); }
.renew-row .track { position: relative; height: 14px; border-radius: var(--r-pill); background: var(--tint); overflow: hidden; }
.renew-row .intro, .renew-row .full { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--r-pill); }
.renew-row .full { background: #c3cddb; width: calc(var(--renew) * 1%); transform-origin: left; }
.renew-row .intro { background: var(--ink); width: calc(var(--intro) * 1%); }
.renew-row .val { display: flex; gap: 10px; align-items: baseline; justify-content: flex-end; padding-right: 12px; font: 800 20px/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.renew-row .val s { font: 600 15px/1 var(--f-text); color: var(--ink-3); text-decoration-thickness: 1.5px; }
.renew-row.ours { background: var(--ink); color: #fff; }
.renew-row.ours .track { background: rgba(255,255,255,.12); }
.renew-row.ours .full { background: var(--red); }
.renew-row.ours .intro { display: none; }
.renew-row.ours .val s { color: #aab0bc; text-decoration: none; }
.renew-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; color: var(--ink-3); font-size: 15px; }
.renew-legend span { display: inline-flex; align-items: center; gap: 8px; }
.renew-legend i { width: 22px; height: 10px; border-radius: var(--r-pill); display: inline-block; }

/* включено в цену: заявление слева, «квитанция» справа */
.included { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; align-items: stretch; }
.included .card.red { display: grid; align-content: space-between; gap: 40px; padding: clamp(28px, 3.4vw, 48px); }
.included .card.red h2 { font-size: clamp(34px, 4vw, 56px); line-height: .98; }
.receipt { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.receipt li { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--r-card); background: var(--tint); }
.receipt li .ico { width: 24px; height: 24px; margin: auto; color: var(--ink); }
.receipt li b { display: block; font: 700 17px/1.25 var(--f-text); }
.receipt li span { font-size: 15px; line-height: 1.35; color: var(--ink-2); }
.receipt li em { font: 850 20px/1 var(--f-display); font-style: normal; letter-spacing: -.02em; }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 22px; background: var(--paper); border-radius: var(--r-card); padding: 32px 30px 30px; transition: translate .35s var(--e-display), box-shadow .35s var(--e-display); }
.band.ground .plan:not(.pick) { background: var(--paper); }
.plan:hover { translate: 0 -4px; box-shadow: var(--lift); }
.plan.pick { background: var(--ink); color: #fff; }
.plan.pick h3 { color: #fff; }
.plan.pick .muted, .plan.pick .quiet { color: #c3c7d0; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan .tag { background: rgba(255,255,255,.14); color: #fff; }
.plan .tag::before { display: none; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price strong { font: 900 56px/1 var(--f-display); letter-spacing: -.045em; }
.plan-price strong sup { font-size: .42em; vertical-align: .9em; letter-spacing: 0; margin-right: 2px; font-weight: 800; }
.plan-price span { font: 600 16px/1 var(--f-text); }
.plan-sub { font-size: 15px; line-height: 1.45; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 12px; font-size: 16px; line-height: 1.4; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.plan li .ico { width: 20px; height: 20px; margin-top: 1px; color: var(--ok); }
.plan.pick li .ico { color: #7fe0a8; }
.plan li b { font-weight: 700; }
.plan .grow { flex: 1; }
.plan form, .plan .btn { width: 100%; }
.period { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--tint); }
.plan.pick .period { background: rgba(255,255,255,.1); }
.period label { flex: 1; min-width: 0; display: grid; place-items: center; min-height: 44px; border-radius: var(--r-pill); cursor: pointer; font: 700 14px/1.15 var(--f-text); text-align: center; padding: 0 8px; color: inherit; }
.period input { position: absolute; opacity: 0; pointer-events: none; }
.period label:has(input:checked) { background: var(--paper); color: var(--ink); }
.plan.pick .period label:has(input:checked) { background: #fff; color: var(--ink); }

/* лимиты числами */
.limits { display: grid; grid-template-columns: minmax(160px, 1.1fr) repeat(3, minmax(0, 1fr)); border-radius: var(--r-card); overflow: hidden; background: var(--paper); }
.limits > div { padding: 18px 24px; font-size: 17px; }
.limits .h { font: 800 17px/1.2 var(--f-display); letter-spacing: -.01em; background: var(--tint); }
.limits .k { color: var(--ink-2); font-weight: 600; }
.limits .v { font: 800 22px/1.2 var(--f-display); letter-spacing: -.02em; }
.limits .v small { font: 600 14px/1 var(--f-text); color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.limits .odd { background: #f7f9fb; }
.limits .col-pick { background: rgba(241,63,58,.05); }

/* сетка зон — плотный каталог (подъём от каталога комикет-зала) */
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 8px; }
.zone {
  position: relative; display: grid; gap: 6px; padding: 16px 18px 14px; border-radius: var(--r-card);
  background: var(--paper); border: 0; text-align: left; cursor: pointer; color: var(--ink);
  font: inherit; min-height: 104px;
  transition: translate .25s var(--e-display), background-color .15s var(--e-ui), box-shadow .25s var(--e-display);
}
.zone:hover { translate: 0 -2px; box-shadow: var(--lift); }
a.zone { text-decoration: none; }
.zone .z-tld { font: 900 26px/1 var(--f-display); letter-spacing: -.03em; }
.zone .z-word { font: 600 14px/1.3 var(--f-text); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zone .z-price { font: 700 15px/1 var(--f-text); color: var(--ink-2); }
.zone .z-state { font: 700 12px/1 var(--f-text); color: var(--ink-3); letter-spacing: .02em; display: flex; gap: 6px; align-items: center; }
.zone .z-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.zone[data-status="checking"] .z-state::before { animation: blink 1s var(--e-ui) infinite; }
.zone[data-status="free"] .z-state, .zone[data-status="likely-free"] .z-state { color: var(--ok); }
.zone[data-status="taken"] { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tint-2); cursor: default; }
.zone[data-status="taken"]:hover { translate: none; box-shadow: inset 0 0 0 1.5px var(--tint-2); }
.zone[data-status="taken"] .z-tld, .zone[data-status="taken"] .z-word { color: var(--ink-3); opacity: .7; }
.zone[data-status="taken"] .z-price { visibility: hidden; }
.zone.is-marked { background: var(--ink); color: #fff; }
.zone.is-marked .z-word, .zone.is-marked .z-price { color: #c3c7d0; }
.zone.is-marked::after { content: ""; position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315161a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.zone.is-exact { grid-column: span 2; }
.zones.peek { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@keyframes blink { 50% { opacity: .25; } }

.cartbar { position: sticky; bottom: 16px; z-index: 20; margin-top: 24px; display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: 10px 10px 10px 26px; border-radius: var(--r-pill); background: var(--ink); color: #fff; box-shadow: var(--lift);
  translate: 0 0; transition: translate .45s var(--e-display), opacity .3s var(--e-ui); }
.cartbar[hidden] { display: flex; translate: 0 140%; opacity: 0; pointer-events: none; }
.cartbar b { font: 800 18px/1 var(--f-display); }

/* финал и подвал */
.close { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: end; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-card); background: var(--ink); color: #fff; }
.close h2 { color: #fff; font-size: clamp(36px, 4.6vw, 64px); line-height: .95; letter-spacing: -.035em; }
.close .muted { color: #c3c7d0; }
.close .hi { color: #fff; font-weight: 700; }
.close-actions { display: grid; gap: 14px; justify-items: start; }
.foot { max-width: var(--maxw); margin: 0 auto; padding: 36px var(--gutter) 48px; display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; color: var(--ink-3); font-size: 15px; }
.foot a { color: var(--ink-2); }

/* =================================================================== */
/*  КАБИНЕТ                                                             */
/* =================================================================== */
.cab { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 12px; height: calc(100vh - 24px); margin: 12px 0 12px 12px; padding: 22px 14px 14px;
  display: flex; flex-direction: column; gap: 22px; border-radius: var(--r-card); background: var(--paper); }
.rail .wordmark { padding: 0 12px; font-size: 21px; }
.rail nav { display: grid; gap: 4px; }
.rail nav a { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 16px; border-radius: var(--r-pill);
  text-decoration: none; font: 600 16px/1 var(--f-text); color: var(--ink-2); transition: background-color .15s var(--e-ui), color .15s var(--e-ui); }
.rail nav a:hover { background: var(--tint); color: var(--ink); }
.rail nav a[aria-current] { background: var(--ink); color: #fff; }
.rail .who { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-card); background: var(--tint); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--red); color: var(--ink); font: 900 16px/1 var(--f-display); }
.rail .who b { display: block; font: 700 15px/1.2 var(--f-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.rail .who a { font-size: 14px; color: var(--ink-3); }

.main { padding: 28px clamp(16px, 3vw, 44px) 64px; min-width: 0; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.head h1 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1; letter-spacing: -.035em; font-weight: 900; }
.head p { margin-top: 10px; color: var(--ink-2); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; }
.stack { display: grid; gap: 16px; }
.big { font: 900 44px/1 var(--f-display); letter-spacing: -.04em; }
.big small { font: 700 18px/1 var(--f-text); letter-spacing: 0; color: inherit; opacity: .7; margin-left: 6px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; }
.kv dt { color: var(--ink-3); font-weight: 600; font-size: 16px; }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
code { font: 500 .92em/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; padding: 3px 8px; border-radius: var(--r-pill); background: var(--tint); }
.card.ink code { background: rgba(255,255,255,.12); color: #fff; }

.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 22px; border-radius: var(--r-card); background: var(--paper);
  text-decoration: none; color: inherit; transition: translate .25s var(--e-display), box-shadow .25s var(--e-display); }
a.row:hover { translate: 0 -2px; box-shadow: var(--lift); }
.row-title { font: 800 19px/1.2 var(--f-display); letter-spacing: -.015em; overflow-wrap: anywhere; }
.row-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; color: var(--ink-3); font-size: 15px; }
.row-end { display: flex; align-items: center; gap: 12px; }

.meter { height: 10px; border-radius: var(--r-pill); background: var(--tint); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--ink); width: calc(var(--p) * 1%); transform-origin: left; animation: grow 1s var(--e-display) both .2s; }
@keyframes grow { from { transform: scaleX(0); } }

.empty { display: grid; gap: 16px; justify-items: start; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-card); background: var(--paper); }
.empty h2 { font-size: clamp(28px, 3vw, 38px); }

.choice { display: grid; gap: 10px; }
.choice label { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; padding: 18px 20px; border-radius: var(--r-card); background: var(--tint); cursor: pointer; transition: background-color .15s var(--e-ui); }
.choice label:has(input:checked) { background: var(--paper); box-shadow: 0 0 0 2px var(--ink); }
.choice input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); }
.choice b { display: block; font: 700 17px/1.3 var(--f-text); }
.choice span { font-size: 15px; color: var(--ink-2); }
.affix { display: flex; align-items: center; gap: 0; border-radius: var(--r-pill); background: var(--tint); padding-right: 22px; }
.affix .input { background: transparent; }
.affix span { font: 700 17px/1 var(--f-text); color: var(--ink-3); white-space: nowrap; }

/* счёт — документ */
.doc { background: var(--paper); border-radius: var(--r-card); padding: clamp(24px, 4vw, 56px); display: grid; gap: 32px; }
.doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.doc-lines { display: grid; gap: 6px; }
.doc-line { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 20px; border-radius: var(--r-pill); background: var(--tint); }
.doc-sum { display: grid; gap: 8px; justify-self: end; min-width: min(360px, 100%); }
.doc-sum div { display: flex; justify-content: space-between; gap: 24px; font-size: 17px; }
.doc-sum .total { font: 900 30px/1.1 var(--f-display); letter-spacing: -.03em; padding-top: 10px; }

/* вход */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.auth-side { position: relative; overflow: hidden; background: #5c0c0b url(sponge-poster.jpg) center / cover; }
.auth-side canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-form { display: grid; align-content: center; justify-items: center; padding: 48px var(--gutter); }
.auth-form > div { width: min(440px, 100%); display: grid; gap: 26px; }
.auth-form h1 { font-size: clamp(38px, 4vw, 52px); line-height: .95; letter-spacing: -.04em; }
.auth-form form { display: grid; gap: 16px; }

/* =================================================================== */
/*  ДВИЖЕНИЕ: появление видно по умолчанию; скрываем только под .js    */
/* =================================================================== */
.js .rv { opacity: 0; translate: 0 22px; transition: opacity .8s var(--e-body) calc(var(--d, 0) * 1ms), translate 1s var(--e-display) calc(var(--d, 0) * 1ms); }
.js .rv.is-in { opacity: 1; translate: 0 0; }
.js .hero h1 .line > span { translate: 0 105%; transition: translate 1.05s var(--e-display) calc(var(--d, 0) * 1ms); }
.js.is-ready .hero h1 .line > span { translate: 0 0; }
.js .hero .fade { opacity: 0; translate: 0 14px; transition: opacity .7s var(--e-body) calc(var(--d, 0) * 1ms), translate .9s var(--e-display) calc(var(--d, 0) * 1ms); }
.js.is-ready .hero .fade { opacity: 1; translate: 0 0; }
.js .sponge { opacity: 0; scale: 1.05; transition: opacity 1.4s var(--e-body) .15s, scale 1.8s var(--e-display) .15s; }
.js.is-ready .sponge { opacity: 1; scale: 1; }
.js .renew .full { transform: scaleX(0); transition: transform 1.2s var(--e-display) calc(var(--d, 0) * 1ms); }
.js .renew.is-in .full { transform: scaleX(1); }

.nowrap { white-space: nowrap; }

/* почта */
.mail-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.mail-add .affix { min-width: 0; }
.mail-add .affix .input { flex: 1 1 0; width: auto; min-width: 5ch; }
.mail-add .affix span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card.tint code { background: var(--paper); }
.dns { border-radius: var(--r-card); background: var(--tint); padding: 4px 22px; }
.dns summary { cursor: pointer; padding: 14px 0; font: 700 16px/1.3 var(--f-text); list-style-position: inside; min-height: 44px; }
.dns[open] { padding-bottom: 20px; }
.dns-rows { display: grid; gap: 8px; margin-top: 12px; }
.dns-row { display: grid; grid-template-columns: 64px minmax(0, 14rem) minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r-card); background: var(--paper); }
.dns-row code { background: transparent; padding: 0; line-height: 1.45; overflow-wrap: anywhere; }
.dns-val { user-select: all; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .rv, .js .hero .fade, .js .sponge { opacity: 1; translate: none; scale: none; }
  .js .hero h1 .line > span { translate: none; }
  .js .renew .full { transform: none; }
}

/* =================================================================== */
/*  УЗКИЕ ЭКРАНЫ                                                         */
/* =================================================================== */
@media (max-width: 1100px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  body { font-size: 17px; line-height: 27px; }
  .pub-bar { gap: 12px; padding-block: 14px; }
  .pub-bar nav a:not(.keep) { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 0; }
  /* объект за краями на узком экране топит заголовок — держим в рамке блока */
  .sponge { position: relative; inset: auto; left: auto; right: auto; top: auto; bottom: auto; height: 240px; margin: 28px 0 0; border-radius: 0; }
  .sponge-note { bottom: 18px; }
  /* minmax(0,1fr): иначе длинное слово вроде name.sponge.digital распирает колонку за экран */
  .included, .close, .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .close h2 { font-size: clamp(30px, 8.4vw, 40px); }
  .renew-row { grid-template-columns: 1fr auto; padding: 16px 20px; border-radius: var(--r-card); }
  .renew-row .track { grid-column: 1 / -1; grid-row: 2; }
  .limits { grid-template-columns: minmax(118px, 1fr) repeat(3, minmax(82px, 1fr)); font-size: 15px; overflow-x: auto; }
  .limits > div { padding: 14px 12px; }
  .limits .v { font-size: 18px; }
  .zones, .zones.peek { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zone.is-exact { grid-column: 1 / -1; }
  .cab { grid-template-columns: minmax(0, 1fr); }
  .rail { position: sticky; top: 0; z-index: 30; height: auto; margin: 0; border-radius: 0 0 var(--r-card) var(--r-card); padding: 12px var(--gutter); flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
  .rail nav { display: flex; gap: 4px; overflow-x: auto; flex: 1 1 100%; min-width: 0; order: 3; scrollbar-width: none; }
  .rail { min-width: 0; max-width: 100%; }
  .rail nav a { flex: none; min-height: 44px; padding: 0 16px; }
  .rail nav a .ico { display: none; }
  .rail .who { margin: 0 0 0 auto; padding: 4px 4px 4px 12px; background: transparent; }
  .rail .who b { display: none; }
  .main { padding-top: 20px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { height: 180px; }
  .row { grid-template-columns: 1fr; }
  .doc-line { border-radius: var(--r-card); }
}
@media (max-width: 600px) {
  .limits { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; }
  .limits > div { padding: 12px 12px; }
  .limits .h { font-size: 15px; }
  .limits .h:first-child { display: none; }
  .limits .k { grid-column: 1 / -1; padding: 12px 12px 0; font-size: 14px; color: var(--ink-3); }
  .limits .v { font-size: 19px; padding-top: 4px; }
}
@media (max-width: 480px) {
  .mail-add { grid-template-columns: 1fr; }
  .dns-row { grid-template-columns: 1fr; gap: 6px; }
  .row-end { flex-wrap: wrap; }
  .stub { flex-wrap: wrap; border-radius: var(--r-card); }
  .stub .arrow { display: none; }
  .search { flex-wrap: wrap; border-radius: var(--r-card); }
  .search .btn { width: 100%; }
  .zones { grid-template-columns: 1fr 1fr; gap: 6px; }
  .zone { padding: 14px; min-height: 96px; }
}
