/* Связка — строгий минимализм: тёплый монохром, редакционные заголовки, 1px-линии. */

/* Тёмная — единственная тема сайта, а не «тёмный вариант».
   Светлый режим системы, Telegram или телефона её не отменяет: бирка из
   тёплого графита и латуни — это и есть оформление Связки. */
:root {
  --bg: #191712;
  --soft: #1f1c16;
  --surface: #221f19;
  --ink: #eae6dc;
  --text: #d6d1c5;
  --muted: #9c968a;
  --line: #35312a;
  --line-strong: #46413a;
  --ink-hover: #d6d1c5;
  --glass: rgba(25, 23, 18, 0.86);
  --accent: #c79a5e;
  --accent-hover: #d3aa73;
  --accent-ink: #191712;
  --accent-bg: #2a2013;
  --green-bg: #1f2b20; --green: #9cc79f;
  --red-bg: #33201f; --red: #e3a19f;
  --yellow-bg: #302816; --yellow: #d9b56b;
  --blue-bg: #172a36; --blue: #8ec3e6;
  --glow: rgba(217, 181, 107, 0.04);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "PT Serif", "Iowan Old Style", Georgia, "Noto Serif", "Times New Roman", serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 760px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* --- знак --- */
.mark { width: 28px; height: 28px; flex: none; }
/* знак латунный, слово — обычным текстом: так в макете «Бирка» */
.brand .mark, .ph-brand .mark { color: var(--accent); }
.mark .mark-link rect { fill: none; stroke: currentColor; stroke-width: 2.7; }
/* в маске белое — видно, чёрное — вырезано: этим штрихом звено разрывают там, где второе идёт поверх */
.mark .mark-plate { fill: #fff; }
.mark .mark-ko rect { fill: none; stroke: #000; stroke-width: 4.6; }
.top .mark-a { animation: snap-a 900ms var(--ease) 150ms both; }
.top .mark-b { animation: snap-b 900ms var(--ease) 150ms both; }
@keyframes snap-a { from { transform: translateX(-4px); } to { transform: none; } }
@keyframes snap-b { from { transform: translateX(4px); } to { transform: none; } }
.mark.snap .mark-a { animation: snap-a 600ms var(--ease) both; }
.mark.snap .mark-b { animation: snap-b 600ms var(--ease) both; }

/* --- шапка и подвал --- */
.top { position: sticky; top: 0; z-index: 20; background: var(--glass); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; font-size: 17px; }
.top-nav { display: none; gap: 28px; margin-left: auto; font-size: 15px; }
.top-nav a { color: var(--muted); text-decoration: none; transition: color 200ms; }
.top-nav a:hover { color: var(--ink); }
.top-in > .btn { margin-left: auto; }
@media (min-width: 820px) { .top-nav { display: flex; } .top-nav + .btn { margin-left: 0; } }

.foot { border-top: 1px solid var(--line); padding: 32px 0 max(32px, env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.brand-quiet { color: var(--muted); font-weight: 500; font-size: 14px; }
.brand-quiet .mark { width: 22px; height: 22px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); }

/* --- кнопки и метки --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: var(--accent-ink); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 200ms, border-color 200ms, transform 120ms; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn.is-busy { opacity: 0.55; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--soft); border-color: var(--line-strong); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-link:hover { color: var(--ink); }

.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 9999px; font: 600 11px/1.4 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; background: var(--soft); color: var(--muted); }
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-red { background: var(--red-bg); color: var(--red); }
.pill-yellow { background: var(--yellow-bg); color: var(--yellow); }
.pill-blue { background: var(--blue-bg); color: var(--blue); }

/* --- типографика разделов --- */
.eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: 1.04; letter-spacing: -0.03em; }
.display-sm { font-size: clamp(2rem, 5vw, 3rem); }
.title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 20px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text); max-width: 60ch; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.section { padding: clamp(64px, 11vw, 128px) 0; border-top: 1px solid var(--line); }
.section-soft { background: var(--soft); }

/* --- первый экран --- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 10vw, 120px) 0 clamp(64px, 10vw, 112px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 90%; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero-in { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.25fr 1fr; gap: 64px; } }
.hero-side { display: grid; gap: 28px; justify-items: start; }

/* Бирка с номером аккаунта — «связка ключей» */
.tag { position: relative; display: grid; gap: 10px; width: 100%; max-width: 420px; padding: 26px 26px 22px 62px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 600ms var(--ease), box-shadow 200ms; }
.tag::before { content: ""; position: absolute; left: -28px; top: 50%; width: 50px; border-top: 1px dashed var(--accent); opacity: 0.55; }
.tag-hole { position: absolute; left: 22px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 1.5px solid var(--accent); background: var(--bg); }
.tag-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tag-number { font-size: clamp(1.2rem, 3.4vw, 1.55rem); letter-spacing: 0.06em; color: var(--ink); overflow-wrap: anywhere; }
.tag-foot { padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .hero .tag { transform: rotate(-2deg); } .hero .tag:hover { transform: rotate(0); } }

.meta { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 32px; margin: 0; font-size: 13px; }
.meta div { display: grid; gap: 2px; }
.meta dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.meta dd { margin: 0; color: var(--ink); font-size: 15px; }

/* --- шаги --- */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.step { border-top: 1px solid var(--ink); padding-top: 20px; }
.step-n { display: block; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.step h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* --- бенто --- */
.bento { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } .cell-wide { grid-column: span 2; } }
@media (min-width: 980px) { .bento { grid-template-columns: repeat(6, 1fr); } .cell { grid-column: span 2; } .cell-wide { grid-column: span 4; } }
.cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); transition: box-shadow 200ms; }
.cell:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.cell h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 10px; }
.cell p { color: var(--muted); }
.illo { display: block; width: 100%; max-width: 420px; margin-top: 28px; }
.illo-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.illo-dash { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.illo-accent { fill: var(--accent-bg); stroke: none; }
.countries { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.countries li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.countries li:last-child { border-bottom: 0; }

/* --- номер вместо почты --- */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; } }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts .pill { min-width: 108px; justify-content: center; }

/* --- тарифы --- */
.plans { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px 28px; }
.plan-title { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.plan-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-save { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); background: var(--accent-bg); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.plan-price { margin-top: 14px; font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.plan-price span { font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--muted); }
.plan-day { margin-top: 10px; font-size: 13px; color: var(--muted); }
.plan-list { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan-list li { padding-left: 20px; position: relative; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; border-top: 1.5px solid var(--ink); }

/* --- вопросы --- */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; font-weight: 600; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }
.faq-sign { position: relative; flex: none; width: 14px; height: 14px; margin-top: 5px; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; border-top: 2px solid var(--ink); transition: transform 200ms var(--ease); }
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0); }

.closing-in { text-align: center; }
.closing .actions { justify-content: center; }

/* --- документы --- */
.doc { padding-top: 56px; padding-bottom: 96px; }
.doc p { margin-top: 14px; }
.doc h2 { margin-top: 40px; font-size: 1.05rem; letter-spacing: -0.01em; }
.doc ul { margin-top: 10px; padding-left: 20px; }
.doc li { margin-top: 6px; }

/* --- появление при прокрутке --- */
html.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.plans .reveal:nth-child(2), .steps .reveal:nth-child(2), .bento .reveal:nth-child(2) { transition-delay: 80ms; }
.plans .reveal:nth-child(3), .steps .reveal:nth-child(3), .bento .reveal:nth-child(3) { transition-delay: 160ms; }
.bento .reveal:nth-child(4) { transition-delay: 240ms; }
.bento .reveal:nth-child(5) { transition-delay: 320ms; }

/* --- кабинет --- */
.cabinet { padding-top: 40px; padding-bottom: 80px; max-width: 880px; }
.mode-tg .cabinet { padding-top: 20px; }
.mode-tg .top { position: static; }
.boot { color: var(--muted); font-size: 14px; padding: 48px 0; }
.notice { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.notice-red { background: var(--red-bg); color: var(--red); border-color: transparent; }
.cab-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.1; margin: 8px 0 28px; }
/* minmax(0, 1fr): иначе длинная ссылка без переносов распирает колонку шире экрана */
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.panel h2 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 8px; }
.panel .muted, .muted { color: var(--muted); }
.small { font-size: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-between { justify-content: space-between; }
.status { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: baseline; margin-bottom: 6px; }
.status-date { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--ink); letter-spacing: -0.02em; }
.panel .actions { margin-top: 22px; }
.field { display: grid; gap: 8px; margin-top: 18px; }
.label { font-size: 13px; color: var(--muted); }
.input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); font: 18px/1 var(--mono); letter-spacing: 0.06em; }
.input:focus { outline: none; border-color: var(--ink); }
.error { color: var(--red); font-size: 14px; margin-top: 10px; min-height: 1em; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check a { color: var(--ink); }
.cabinet .tag { max-width: none; padding-left: 54px; }
.cabinet .tag::before { left: -22px; width: 42px; }
.cabinet .tag-hole { left: 18px; }
.cabinet .tag-number { font-size: clamp(1rem, 2.6vw, 1.15rem); letter-spacing: 0.04em; white-space: nowrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 16px 0 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.picks { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 760px) { .picks { grid-template-columns: repeat(3, 1fr); } }
.pick { display: grid; gap: 4px; text-align: left; padding: 18px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: border-color 200ms, background-color 200ms; }
.pick:hover { background: var(--soft); }
.pick[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pick-title { font-weight: 600; color: var(--ink); }
.pick-save { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-bg); border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.pick-price { font-family: var(--serif); font-size: 26px; color: var(--ink); letter-spacing: -0.02em; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px; margin-top: 16px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 4px; font: 500 14px var(--sans); color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.details { margin-top: 16px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--soft); white-space: pre-line; font-size: 15px; color: var(--ink); }
.copy { display: flex; gap: 8px; margin-top: 12px; }
.copy code { flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 12px; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); font: 13px var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 16px); opacity: 0; padding: 12px 18px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 14px; transition: opacity 200ms, transform 300ms var(--ease); pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===================== разнообразие: отклик, телефон, маршрут, вкладки ===================== */

/* --- отклик кнопок: подъём при наведении, «проседание» при нажатии, индикатор загрузки --- */
.btn { position: relative; transition: background-color 200ms, border-color 200ms, color 200ms, transform 180ms var(--ease), box-shadow 200ms; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.45); }
.btn-ghost:hover { box-shadow: 0 8px 18px -14px rgba(0, 0, 0, 0.3); }
.btn:active { transform: translateY(1px) scale(0.97); box-shadow: none; transition-duration: 60ms; }
.btn.is-busy { opacity: 0.8; color: transparent !important; }
.btn.is-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bg); border-right-color: transparent; animation: spin 700ms linear infinite; }
.btn-ghost.is-busy::after { border-color: var(--ink); border-right-color: transparent; }
.btn-invert { background: #eae6dc; color: #191712; border-color: #eae6dc; }
.btn-invert:hover { background: #ffffff; border-color: #ffffff; }
.btn-invert.is-busy::after { border-color: #191712; border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- телефон на первом экране --- */
.hero-side { justify-items: center; }
.phone { position: relative; width: min(290px, 78vw); aspect-ratio: 290 / 590; padding: 11px; border-radius: 44px; background: #191712; box-shadow: 0 50px 90px -50px rgba(25, 23, 18, 0.55), inset 0 0 0 1px #332f28; transform: rotate(2.5deg); transition: transform 700ms var(--ease); }
.phone:hover { transform: rotate(0); }
@media (max-width: 899px) { .phone { transform: none; width: min(270px, 78vw); } }
.phone-screen { height: 100%; display: flex; flex-direction: column; align-items: center; padding: 16px 20px 22px; border-radius: 34px; background: var(--surface); overflow: hidden; }
.ph-bar { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 8px; font-size: 12px; color: var(--ink); }
.ph-dots { display: inline-flex; gap: 3px; align-items: flex-end; }
.ph-dots i { display: block; width: 3px; border-radius: 1px; background: var(--ink); }
.ph-dots i:nth-child(1) { height: 5px; } .ph-dots i:nth-child(2) { height: 8px; } .ph-dots i:nth-child(3) { height: 11px; }
.ph-brand { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 650; color: var(--ink); }
.ph-brand .mark { width: 22px; height: 22px; }
.ph-power { position: relative; display: grid; place-items: center; width: 128px; height: 128px; margin-top: auto; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; color: var(--muted); transition: color 400ms, border-color 400ms; }
.ph-power .mark { width: 52px; height: 52px; }
.ph-ring { position: absolute; inset: -9px; border-radius: 50%; border: 2px solid transparent; }
.phone.is-wait .ph-ring { border-color: var(--line); border-top-color: var(--ink); animation: spin 900ms linear infinite; }
.phone.is-on .ph-power { border-color: var(--accent); color: var(--accent); }
.phone.is-on .ph-ring { border-color: var(--accent); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(0.94); opacity: 0.7; } 100% { transform: scale(1.22); opacity: 0; } }
.ph-state { position: relative; width: 100%; height: 26px; margin-top: 22px; text-align: center; font-weight: 600; color: var(--ink); }
.st { position: absolute; left: 0; right: 0; opacity: 0; transform: translateY(6px); transition: opacity 300ms, transform 300ms var(--ease); }
.phone.is-off .st-off, .phone.is-wait .st-wait, .phone.is-on .st-on { opacity: 1; transform: none; }
.phone.is-on .st-on { color: var(--green); }
.ph-rows { width: 100%; margin: auto 0 0; padding-top: 16px; font-size: 12px; }
.ph-rows div { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); }
.ph-rows dt { color: var(--muted); }
.ph-rows dd { margin: 0; color: var(--ink); transition: opacity 250ms; }

/* --- бегущая строка --- */
.strip { display: flex; overflow: hidden; border-top: 1px solid var(--line); background: var(--surface); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip-track { flex: none; display: flex; margin: 0; padding: 18px 0; list-style: none; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; animation: marquee 40s linear infinite; }
.strip-track li { display: flex; align-items: center; }
.strip-track li::after { content: ""; width: 4px; height: 4px; margin: 0 28px; border-radius: 1px; background: var(--line-strong); }
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* --- тёмная полоса и маршрут --- */
.section-ink { background: #191712; color: #a8a296; border-top-color: #191712; }
.section-ink .title, .section-ink .display, .section-ink b { color: #eae6dc; }
.section-ink .eyebrow { color: #8d8c88; }
.section-ink .lead { color: #a8a296; }
.section-ink { background: #12100c; border-top-color: var(--line); }
.route { position: relative; margin-top: 48px; }
.nodes { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.nodes::before { content: ""; position: absolute; left: 24px; top: 24px; bottom: 24px; border-left: 1px dashed #3f3a30; }
.node { position: relative; display: grid; gap: 6px; padding-left: 68px; min-height: 48px; }
.node-icon { position: absolute; left: 0; top: 0; box-sizing: border-box; width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: #221f19; border: 1px solid #3d382f; fill: none; stroke: #eae6dc; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.node b { font-size: 17px; font-weight: 600; }
.node span { font-size: 15px; color: #9c968a; }
/* На телефоне маршрут идёт столбиком, и пакет бежит вниз по той же пунктирной линии.
   Раньше вся эта анимация жила внутри @media (min-width: 900px) — то есть её не видел
   никто, кто зашёл с телефона, а это почти все. */
.route-line { position: absolute; left: 24px; top: 24px; bottom: 24px; width: 1px; container-type: size; pointer-events: none; }
.packet { position: absolute; left: -3px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(217, 181, 107, 0.12); opacity: 0; animation: travel-y 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.packet:nth-child(2) { animation-delay: 1.5s; }
.packet:nth-child(3) { animation-delay: 3s; }
@keyframes travel-y { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(100cqh); opacity: 0; } }
@media (min-width: 900px) {
  .nodes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .nodes::before { display: none; }
  .node { padding-left: 0; padding-top: 76px; }
  .route-line { top: 24px; left: 24px; right: calc((100% - 96px) / 4 - 24px); bottom: auto; width: auto; border-top: 1px dashed #3f3a30; container-type: inline-size; }
  .packet { top: -4px; left: 0; animation-name: travel; }
}
@keyframes travel { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(100cqw); opacity: 0; } }
.nodes .reveal:nth-child(2) { transition-delay: 100ms; }
.nodes .reveal:nth-child(3) { transition-delay: 200ms; }
.nodes .reveal:nth-child(4) { transition-delay: 300ms; }
.closing .lead { margin: 16px auto 0; }

/* --- вкладки устройств --- */
.dtabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin-top: 32px; padding: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.dtab { flex: none; padding: 10px 16px; border: 0; border-radius: 7px; background: transparent; font: 500 15px var(--sans); color: var(--muted); cursor: pointer; transition: background-color 200ms, color 200ms, transform 120ms; }
.dtab:hover { color: var(--ink); }
.dtab:active { transform: scale(0.96); }
.dtab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
@media (max-width: 600px) { .dtabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; } .dtab { text-align: center; } }
.dpanels { margin-top: 20px; }
.dpanel { display: grid; gap: 24px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dpanel + .dpanel { margin-top: 16px; }
.dpanel[hidden] { display: none; }
.dpanel.enter { animation: fade-up 400ms var(--ease) both; }
@media (min-width: 900px) { .dpanel { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.dsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.dsteps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: baseline; color: var(--ink); counter-increment: step; }
.dsteps li::before { content: counter(step, decimal-leading-zero); font: 13px var(--mono); color: var(--muted); }
.dapps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dmain { display: grid; gap: 24px; justify-items: start; }
.chip-app { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: inherit; text-decoration: none; transition: border-color 200ms, transform 120ms; }
.chip-app b { font-size: 15px; font-weight: 600; color: var(--ink); }
.chip-app span { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.chip-store { grid-column: 2; grid-row: 1; align-self: center; font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.chip-store::after { content: " ↗"; }
a.chip-app:hover { border-color: var(--ink); }
a.chip-app:hover .chip-store { color: var(--ink); }
a.chip-app:active { transform: scale(0.98); }
.chip-main { border-color: var(--ink); background: var(--surface); }
.dapps-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* --- кабинет: приложения и ключ --- */
.apps { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
/* Подзаголовок внутри панели: меньше её заголовка, но крупнее подписи */
/* Плашка приглашения на первом экране: заметная, но не крикливая */
.invite-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 15px;
  color: var(--ink); background: var(--accent-bg); border: 1px solid var(--line); }

.panel-sub { font-size: 16px; font-weight: 600; margin: 0 0 6px; }

.apps h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--ink); }
.seg-os { flex-wrap: wrap; max-width: 100%; }
/* Две дорожки: «уже есть приложение» (акцентная, сверху) и «ставлю впервые» (спокойная) */
.lane { margin-top: 16px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.lane-have { border-color: var(--accent); background: var(--accent-bg); }
.lane h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.lane .lane-key { width: 100%; margin-top: 12px; }
.lane-more { margin-top: 14px; }
.lane-more summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; list-style-position: inside; }
.lane-more summary:hover { color: var(--ink); }
.lane-more[open] summary { margin-bottom: 4px; }
.setup-steps { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 12px; }
.setup-steps li { color: var(--text); }
.setup-steps .row { margin-top: 8px; }
.app-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.app-row { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.app-name { display: grid; gap: 2px; min-width: 0; }
.app-name b { font-weight: 600; color: var(--ink); }
@media (min-width: 700px) { .app-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.apps-manual { margin: 16px 0 0; }

/* --- где пригодится --- */
.uses { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 700px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .uses { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.use { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform 300ms var(--ease), box-shadow 300ms, opacity 600ms var(--ease); }
.use:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -20px rgba(0, 0, 0, 0.3); }
.use-icon { display: block; box-sizing: border-box; width: 42px; height: 42px; margin-bottom: 20px; padding: 10px; border-radius: 10px; background: var(--accent-bg); fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.use h3 { font-size: 18px; margin-bottom: 8px; }
.use p { font-size: 15px; color: var(--muted); }
.uses .reveal:nth-child(2) { transition-delay: 80ms; }
.uses .reveal:nth-child(3) { transition-delay: 160ms; }
.uses .reveal:nth-child(4) { transition-delay: 240ms; }

/* --- бирка в разделе про номер --- */
.tag-wrap { display: grid; justify-items: center; }
.tag-wrap .tag { max-width: 440px; }
@media (min-width: 900px) { .tag-wrap .tag { transform: rotate(-2deg); } .tag-wrap .tag:hover { transform: rotate(0); } }
.split .facts { margin-top: 28px; }

/* --- тарифы: переключатель «за срок / в день» --- */
.plans-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.plan-price .plan-amount { font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.plan-price .plan-suffix { font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--muted); }
.swap { animation: fade-up 300ms var(--ease) both; }
.seg button { transition: background-color 200ms, color 200ms, transform 120ms; }
.seg button:active { transform: scale(0.96); }
.pick:active { transform: scale(0.99); }
.confirm { margin-top: 16px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--soft); }
.confirm p { font-size: 14px; color: var(--ink); }
.confirm .actions { margin-top: 12px; }

/* --- дисклеймеры и отказ от услуги --- */
.disclaimer { margin-top: 14px; max-width: 72ch; font-size: 13px; line-height: 1.55; color: var(--muted); }
.disclaimer a, .panel .muted a { color: var(--ink); text-underline-offset: 3px; }
.plans-note { margin-top: 28px; }
.foot-disclaimer { margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.reqs { margin-top: 28px; }
.reqs dd a { color: var(--ink); text-underline-offset: 3px; }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-bg); border-color: var(--red-bg); }
/* На тёмной теме --red — бледно-розовый, и белая надпись на нём не читается.
   Кнопка «Да, удалить навсегда» обязана быть разборчивой: текст тёмный */
.btn-danger-solid { background: var(--red); border-color: var(--red); color: #191712; }
.btn-danger-solid:hover { background: #efbdbb; border-color: #efbdbb; }
.btn-danger-solid.is-busy::after { border-color: #191712; border-right-color: transparent; }

/* ===================== доступность и удобство ===================== */
:root { color-scheme: dark; --field: #746e62; --ring: rgba(234, 230, 220, 0.28); }
html { scroll-padding-top: 88px; }
a, button, summary, input, label, .btn { touch-action: manipulation; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 14px; border-radius: 6px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.input { border-color: var(--field); }
.input:focus, .input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--ring); }
.input[aria-invalid="true"] { border-color: var(--red); }
.btn-link { padding: 10px 2px; margin: -10px -2px; }
.display, .title, .cab-title, .status-date { text-wrap: balance; }
.lead, .disclaimer, .faq-item p, .panel p { text-wrap: pretty; }
.plan-amount, .pick-price, .ph-timer, .meta dd, .status-date { font-variant-numeric: tabular-nums; }
.strip:active .strip-track { animation-play-state: paused; }
.check label { cursor: pointer; }
@media (max-width: 600px) { .seg button { min-height: 40px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* Оплата по ссылке из приложения: страница без входа в кабинет */
.picks { display: grid; gap: 10px; margin-top: 20px; }
.pick { display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.pick-in { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 14px;
  padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.pick input:checked + .pick-in { border-color: var(--accent); background: var(--accent-bg); }
.pick input:focus-visible + .pick-in { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick-price { font: 600 18px/1 var(--sans); white-space: nowrap; }
.pick-day { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
