@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url('/static/manrope-400.ttf') format('truetype')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('/static/manrope-600.ttf') format('truetype')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('/static/manrope-700.ttf') format('truetype')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url('/static/manrope-800.ttf') format('truetype')}
:root {
  --ink: #1c1c1e;
  --ink-soft: #3a3a3e;
  --muted: #6f6f76;
  --line: #e4e2dc;
  --paper: #fbfaf7;
  --white: #ffffff;
  --red: #8C4256;
  --red-soft: #F6E9EC;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.04); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo .brand-mark { height: 34px; width: 34px; border-radius: 8px; object-fit: cover; }
.logo .brand-name { font-size: 21px; line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.logo .brand-name .pl { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; text-decoration: none; font-size: 15px; color: var(--ink-soft);
  padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 10px;
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 22px -10px rgba(140, 66, 86,.7); }
.btn-primary:hover { background: #c9151d; border-color: #c9151d; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 10px 16px; font-size: 14px; }
.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s var(--ease), opacity .3s; }

/* Hero */
.hero { padding: 84px 0 96px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px;
}
.eyebrow .pl {
  display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--red); color: #fff; letter-spacing: 0;
}
h1 {
  font-size: clamp(38px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -.025em;
  margin: 0 0 24px; font-weight: 800;
}
h1 .accent { color: var(--red); }
.lead { font-size: clamp(17px, 1.7vw, 19px); color: var(--ink-soft); max-width: 520px; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Визуал: макет браузера */
.browser {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(28,28,30,.25);
  overflow: hidden; transform: rotate(-1.2deg);
  transition: transform .6s var(--ease);
}
.browser:hover { transform: rotate(0) translateY(-4px); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f6f5f1; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d3cb; display: block; }
.browser-bar i:first-child { background: var(--red); }
.url {
  margin-left: 10px; flex: 1; font-size: 12px; color: var(--muted); background: var(--white);
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-body { padding: 22px; display: grid; gap: 14px; }
.mock-hero { border-radius: 10px; background: var(--ink); color: #fff; padding: 22px; }
.mock-hero b { display: block; font-size: 20px; margin-bottom: 6px; }
.mock-hero span { font-size: 13px; color: #c9c9cf; }
.mock-hero .mini-btn { display: inline-block; margin-top: 12px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 6px; }
.mock-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cols div { border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 12px; color: var(--muted); }
.mock-cols div strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; }

/* Общие секции */
section { padding: 96px 0; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; }
.section-lead { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 0 48px; }
.section-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }

/* О нас */
.about { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.about p { font-size: 17px; color: var(--ink-soft); margin: 0 0 16px; max-width: 620px; }
.principles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.principles li {
  display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
}
.principles svg { width: 26px; height: 26px; color: var(--red); }
.principles b { display: block; margin-bottom: 2px; }
.principles span { color: var(--muted); font-size: 15px; }

/* Возможности: карточки */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 26px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -24px rgba(28,28,30,.28); border-color: #d9d6cd; }
.card:hover::after { transform: scaleX(1); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; margin-bottom: 22px; transition: transform .45s var(--ease);
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; margin: 0 0 10px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.tags { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; font-weight: 600; color: var(--ink-soft); background: #f1efe9; border-radius: 6px; padding: 4px 8px; }

/* Процесс */
.process { background: var(--ink); color: #fff; }
.process .section-lead { color: #a8a8b0; }
.process .section-title { color: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: #3a3a40;
}
.steps li { position: relative; padding: 0 18px 0 0; counter-increment: s; }
.steps li::before {
  content: counter(s, decimal-leading-zero); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); border: 1px solid #50505a;
  color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 18px; position: relative; z-index: 1;
  transition: background-color .3s, border-color .3s;
}
.steps li:hover::before { background: var(--red); border-color: var(--red); }
.steps h3 { font-size: 18px; margin: 0 0 8px; }
.steps p { margin: 0; color: #a8a8b0; font-size: 15px; }

/* Контакт */
.contact { text-align: left; }
.contact-box {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 4vw, 52px);
}
.contact-box p { color: var(--muted); font-size: 17px; margin: 0; max-width: 540px; }
.contact-cta { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.contact-handle { font-size: 14px; color: var(--muted); text-align: center; margin: 0; }
.contact-handle b { color: var(--ink); }

/* Подвал */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; background: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-inner a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.footer-inner a:hover { color: var(--red); }

/* Анимации появления */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.hero .hero-text > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero .hero-text > *:nth-child(2) { animation-delay: .1s; }
.hero .hero-text > *:nth-child(3) { animation-delay: .2s; }
.hero .hero-text > *:nth-child(4) { animation-delay: .3s; }
.hero .hero-text > *:nth-child(5) { animation-delay: .4s; }
.hero .browser { opacity: 0; animation: rise 1.1s .35s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Интерактивная вкладка в макете */
.tab-row { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab {
  font: inherit; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--white); color: var(--muted); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.price-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row b { color: var(--red); }
.server-line { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--ink-soft); background: #f6f5f1; border-radius: 8px; padding: 12px; line-height: 1.8; }
.server-line .ok { color: #1a7f37; font-weight: 700; }
.dns-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; font-size: 12px; text-align: center; }
.dns-flow div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 6px; color: var(--ink-soft); }
.dns-flow span { color: var(--red); font-weight: 800; }

/* Адаптив */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-box { grid-template-columns: 1fr; }
  .browser { transform: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
}
@media (max-width: 680px) {
  section { padding: 72px 0; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .35s;
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-cta { display: none; }
  .cards, .mock-cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal, .hero .hero-text > *, .hero .browser { opacity: 1; transform: none; }
}

/* Cookie banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: rgba(251,250,247,.98); border-top: 1px solid #e6e1d8; box-shadow: 0 -8px 24px rgba(0,0,0,.08); padding: 16px; }
.cookie-banner-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cookie-banner-inner p { margin: 0; flex: 1 1 320px; font-size: 14px; line-height: 1.5; }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.footer-links a { color: inherit; opacity: .8; }
.footer-links a:hover { opacity: 1; }

/* ── Кабинет lk.1344.pl: дополнения к стилям webtime.pl ───────────────────── */
.only-mobile { display: none; }
.narrow { width: min(760px, 100% - 40px); }
.doc-section, .cab { padding: 48px 0 72px; }
.doc-section .browser, .cab .browser { transform: none; }
.doc-section .browser:hover, .cab .browser:hover { transform: translateY(-2px); }
.cab-title { font-size: clamp(32px, 4.4vw, 48px); margin: 0 0 28px; }
.browser.wide { max-width: 980px; }
.browser-body { padding: 24px; }
#login .browser { max-width: 460px; margin-inline: auto; }

.frame-title { font-size: 24px; letter-spacing: -.015em; margin: 0 0 8px; }
.hint { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.hint a { color: var(--red); }
.btn-block { width: 100%; justify-content: center; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Формы */
.form { display: grid; gap: 14px; margin: 6px 0; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.form input {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: #f6f5f1;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.form input:focus { outline: none; border-color: var(--red); background: var(--white); box-shadow: 0 0 0 4px var(--red-soft); }
.notice { margin: 0 0 14px; padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; animation: fade .4s var(--ease); }
.notice.err { background: var(--red-soft); color: #a3141b; }
.notice.ok { background: #e8f6ec; color: #1a7f37; }

/* Кабинет */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 4px; align-content: start; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.stat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(28,28,30,.3); }
.stat span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat b { font-size: 20px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.stat small { color: var(--muted); font-size: 13px; }
.bar { height: 8px; border-radius: 99px; background: #eceae3; overflow: hidden; margin-top: 8px; }
.bar i { display: block; width: 0; min-width: 4px; height: 100%; background: var(--red); transition: width 1s var(--ease); border-radius: 99px; animation: grow 1.1s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.keycard { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.keyhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 6px; background: #f1efe9; color: var(--ink-soft); }
.badge.ok { background: #e8f6ec; color: #1a7f37; }
.copy { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-top: 1px dashed var(--line); }
.copy span { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--muted); }
.copy code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #f6f5f1; border-radius: 8px; padding: 9px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; margin-bottom: 10px; background: var(--white); }
details summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; }
details summary::after { content: "+"; color: var(--red); font-size: 20px; line-height: 1; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details ol { margin: 0 0 12px; padding-left: 20px; color: var(--ink-soft); }
details li { margin: 6px 0; }
.tab-row { margin-bottom: 18px; }
.tab-panel h3 { margin: 22px 0 10px; font-size: 18px; }

/* Тарифы и документы */
.cards.two { grid-template-columns: repeat(2, 1fr); }
.price { font-size: 44px; font-weight: 800; color: var(--red); letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 12px; }
.doc h1 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 6px; }
.doc h2 { font-size: 18px; margin: 26px 0 8px; letter-spacing: -.01em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.doc ul { padding-left: 22px; }
.doc p, .doc ul { margin: 8px 0; }
.footer-links { gap: 6px 16px; }

@media (max-width: 960px) {
  .stats { grid-template-columns: 1fr; }
  .cards.two { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .only-mobile { display: list-item; }
  .browser-body { padding: 18px; }
  .copy { grid-template-columns: 1fr; }
  .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .bar i, .notice { animation: none; } }

/* ── Устройства, тарифы, продление ───────────────────────────────────────── */
.stats.four { grid-template-columns: repeat(4, 1fr); }
form.inline { display: inline; margin: 0; }
.copy { grid-template-columns: 1fr auto; }
.copyact { display: flex; gap: 8px; align-items: center; }
.devrow { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px dashed var(--line); }
.devrow span { font-weight: 700; font-size: 14px; }
.devrow code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--muted); background: #f6f5f1; border-radius: 8px; padding: 7px 9px; justify-self: start; }
.notice.warn { background: #fff4de; color: #8a5a00; }
.card.plan { gap: 4px; }
.card.plan.current { border-color: var(--red); }
.card.plan form { margin-top: auto; padding-top: 14px; }
.tab-row { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.tab-row::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; }
@media (max-width: 960px) { .stats.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .stats.four { grid-template-columns: 1fr; }
  .copy { grid-template-columns: 1fr; }
  .copyact { flex-wrap: wrap; }
  .devrow { grid-template-columns: 1fr; gap: 6px; }
}

/* ── Тема v8: красная светлая и красно-тёмная, круглые иконки, мобильный режим как у приложения ── */
:root {
  color-scheme: light;
  --ink: #2a1a1d;
  --ink-soft: #4a373b;
  --muted: #6c5a5e;
  --line: #e6dbd6;
  --line-strong: #cdbcb6;
  --paper: #f5efec;
  --surface: #faf6f3;
  --white: #ffffff;
  --red: #8C4256;
  --red-dark: #b81f2f;
  --red-soft: #fdebed;
  --btn: #8C4256;
  --btn-hover: #b81f2f;
  --ok: #1b7f45;
  --ok-soft: #e1f4e8;
  --warn: #8a5400;
  --warn-soft: #fff0d1;
  --bad: #b4162a;
  --bad-soft: #fde8eb;
  --code: #f3ece8;
  --bar-track: #eadfda;
  --nav-bg: rgba(245, 239, 236, .88);
  --glow: rgba(140, 66, 86, .10);
  --shadow: 0 1px 2px rgba(60, 20, 26, .06), 0 10px 24px -16px rgba(60, 20, 26, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f8eceb;
  --ink-soft: #e0cccd;
  --muted: #b39ea1;
  --line: #3b242a;
  --line-strong: #5a3a42;
  --paper: #120a0c;
  --surface: #190e11;
  --white: #22141a;
  --red: #C9919F;
  --red-dark: #C9919F;
  --red-soft: rgba(201, 145, 159, .15);
  --btn: #8C4256;
  --btn-hover: #5A2230;
  --ok: #5fdc8f;
  --ok-soft: rgba(95, 220, 143, .14);
  --warn: #f6bd4b;
  --warn-soft: rgba(246, 189, 75, .14);
  --bad: #C9919F;
  --bad-soft: rgba(201, 145, 159, .16);
  --code: #1a0f13;
  --bar-track: #3a252b;
  --nav-bg: rgba(18, 10, 12, .86);
  --glow: rgba(140, 66, 86, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 16px 32px -18px rgba(0, 0, 0, .85);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f8eceb; --ink-soft: #e0cccd; --muted: #b39ea1; --line: #3b242a; --line-strong: #5a3a42;
    --paper: #120a0c; --surface: #190e11; --white: #22141a;
    --red: #C9919F; --red-dark: #C9919F; --red-soft: rgba(201, 145, 159, .15); --btn: #8C4256; --btn-hover: #5A2230;
    --ok: #5fdc8f; --ok-soft: rgba(95, 220, 143, .14); --warn: #f6bd4b; --warn-soft: rgba(246, 189, 75, .14);
    --bad: #C9919F; --bad-soft: rgba(201, 145, 159, .16); --code: #1a0f13; --bar-track: #3a252b;
    --nav-bg: rgba(18, 10, 12, .86); --glow: rgba(140, 66, 86, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 16px 32px -18px rgba(0, 0, 0, .85);
  }
}

html { -webkit-tap-highlight-color: transparent; }
body {
  color: var(--ink);
  background: radial-gradient(900px 420px at 12% -140px, var(--glow), transparent 70%), var(--paper);
  background-attachment: fixed;
  touch-action: manipulation;
}
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease) !important;
}
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* шапка */
.site-header { background: var(--nav-bg); border-bottom-color: transparent; padding-top: env(safe-area-inset-top); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .45); }
.nav { gap: 10px; }
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { background: var(--red); }
.logo .brand-mark { border-radius: 11px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--white); color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer; padding: 0;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s; overflow: hidden;
}
.icon-btn:hover { transform: translateY(-2px) rotate(-8deg); border-color: var(--red); color: var(--red); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: block; }
:root[data-theme="dark"] .icon-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: none; }
}
.site-footer { background: var(--surface); border-top-color: var(--line); }
.footer-inner a { color: var(--ink); }
.footer-inner a:hover { color: var(--red); }
.footer-inner p { color: var(--muted); }

/* кнопки */
.btn {
  position: relative; overflow: hidden; border-color: var(--line-strong); color: var(--ink); background: var(--white);
  min-height: 44px; -webkit-user-select: none; user-select: none;
}
.btn-primary { background: var(--btn); border-color: var(--btn); color: #fff; box-shadow: 0 10px 22px -12px var(--btn); }
.btn-primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-ghost { background: var(--white); }
.btn-ghost:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger { color: var(--bad); border-color: var(--line-strong); }
.btn.danger:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn:disabled, .btn.is-busy { opacity: .65; pointer-events: none; }
.btn.is-busy::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite; margin-left: 2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); pointer-events: none; animation: ripple .6s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* окно и слои */
.browser { background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }
.browser-bar { background: var(--surface); border-bottom-color: var(--line); }
.browser-bar i { background: var(--line-strong); }
.browser-bar i:first-child { background: var(--red); }
.url { background: var(--white); border-color: var(--line); color: var(--muted); }
.browser-body { background: var(--surface); }
.stat, .keycard, details, .card, .contact-box, .about { background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }
.about { box-shadow: none; }
.card::after { background: var(--red); }
.card:hover, .stat:hover { border-color: var(--line-strong); }
.tags li { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); }

/* круглые иконки */
.ico, .card-icon {
  display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--red-soft); color: var(--red);
  width: 42px; height: 42px; font-style: normal;
}
.card-icon { width: 54px; height: 54px; border-radius: 50%; }
.ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-icon svg { width: 26px; height: 26px; }
.stat.ic { grid-template-columns: 42px 1fr; column-gap: 12px; row-gap: 2px; align-items: center; }
.stat.ic .ico { grid-row: 1 / 3; }
.stat.ic > span, .stat.ic > b { grid-column: 2; }
.stat.ic > small, .stat.ic > .bar, .stat.ic > .flag { grid-column: 1 / -1; }
.stat.ic > b { align-self: start; }
.stat.ic > small { margin-top: 2px; }
.stat.traffic.ok .ico, .stat.traffic.mid .ico { background: var(--ok-soft); color: var(--ok); }
.stat.traffic.mid .ico { background: var(--warn-soft); color: var(--warn); }
.stat.traffic.low { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft), var(--shadow); }
.stat.traffic.low .ico { background: var(--bad-soft); color: var(--bad); }
.stat.traffic.low > b, .stat.low > b { color: var(--bad); }
.stat.low .ico { background: var(--bad-soft); color: var(--bad); }
.flag { justify-self: start; font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--bad-soft); color: var(--bad); margin-top: 4px; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px var(--bad-soft); } }

/* текст */
.stat span, .copy span { color: var(--muted); }
.hint, .stat small, .section-lead { color: var(--muted); }
.hint a, .doc a { color: var(--red); }
.section-kicker { color: var(--red); }
.price { color: var(--ink); }
.doc p, .doc li { color: var(--ink-soft); }
h1 .accent { color: var(--red); }
.eyebrow { color: var(--muted); }
.lead { color: var(--ink-soft); }

/* вкладки */
.tab {
  display: inline-flex; align-items: center; gap: 8px; background: var(--white); border-color: var(--line); color: var(--ink-soft);
  font-size: 14px; padding: 9px 14px; border-radius: 99px; min-height: 40px; position: relative; overflow: hidden;
}
.tab svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { border-color: var(--line-strong); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--btn); border-color: var(--btn); color: #fff; box-shadow: 0 8px 18px -10px var(--btn); }

/* формы */
.form input { background: var(--white); border-color: var(--line-strong); color: var(--ink); min-height: 48px; }
.form input::placeholder { color: var(--muted); opacity: .75; }
.form input:focus { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); background: var(--white); }
.form label { color: var(--ink); }

/* метки, уведомления, полоса трафика */
.badge { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.notice { border-radius: 14px; animation: slidein .5s var(--ease); }
.notice.err { background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad); }
.notice.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.bar { background: var(--bar-track); height: 10px; margin-top: 10px; }
.bar i { background: linear-gradient(90deg, var(--ok), color-mix(in srgb, var(--ok) 70%, #fff)); }
.bar.mid i { background: linear-gradient(90deg, var(--warn), color-mix(in srgb, var(--warn) 70%, #fff)); }
.bar.low i { background: linear-gradient(90deg, var(--bad), color-mix(in srgb, var(--bad) 70%, #fff)); }
.copy code, .devrow code { background: var(--code); border: 1px solid var(--line); color: var(--ink-soft); }
.copy, .devrow, .callrow { border-top-color: var(--line); }
details summary::after { color: var(--red); }
details ol { color: var(--ink-soft); }
.card.plan.current { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft), var(--shadow); }
.card.plan .btns { margin-top: auto; padding-top: 14px; }
.card.plan .btns form { margin: 0; padding: 0; }

/* профиль */
.profile { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--white); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .7), 0 0 0 2px var(--red-soft); background: var(--red-soft); }
.avatar.ph { display: grid; place-items: center; font-weight: 800; font-size: 24px; color: var(--red); }
.profile b { display: block; font-size: 19px; letter-spacing: -.01em; line-height: 1.25; }
.profile span { display: block; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.profile a { color: var(--red); text-decoration: none; font-weight: 600; }

/* выбор локации и звонков */
.form .pick { border: 1px solid var(--line); border-radius: 16px; padding: 8px 12px 10px; margin: 0; background: var(--white); min-width: 0; }
.form .pick legend { font-size: 13px; font-weight: 700; color: var(--ink-soft); padding: 0 6px; }
.form .pick label { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 12px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); transition: background-color .2s; }
.form .pick label:hover { background: var(--red-soft); }
.form .pick input { width: 20px; height: 20px; min-height: 0; flex: none; padding: 0; border: 0; background: none; box-shadow: none; accent-color: var(--red); }
.form .pick small { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.keycard .form { margin-top: 4px; }
.keycard .form .btn { justify-self: start; }
.keycard { border-radius: 16px; }
.stat { border-radius: 16px; }

/* анимации появления */
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
.tab-panel:not([hidden]) > * { animation: up .55s var(--ease) backwards; }
.tab-panel:not([hidden]) > *:nth-child(2) { animation-delay: .05s; }
.tab-panel:not([hidden]) > *:nth-child(3) { animation-delay: .1s; }
.tab-panel:not([hidden]) > *:nth-child(4) { animation-delay: .15s; }
.tab-panel:not([hidden]) > *:nth-child(5) { animation-delay: .2s; }
.stats.four .stat { animation: up .6s var(--ease) backwards; }
.stats.four .stat:nth-child(2) { animation-delay: .07s; }
.stats.four .stat:nth-child(3) { animation-delay: .14s; }
.stats.four .stat:nth-child(4) { animation-delay: .21s; }
.tab-panel { animation: none; }
.keycard, .stat, .card { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }

/* окно выбора темы */
.sheet-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(10, 4, 6, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s var(--ease); }
.sheet { width: min(420px, 100%); background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 26px; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .65); animation: sheetin .5s var(--ease); }
.sheet h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.sheet p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; font-weight: 700; font-size: 16px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 14px; cursor: pointer; position: relative; overflow: hidden; transition: transform .2s var(--ease), border-color .2s, background-color .2s; min-height: 58px; }
.choice:hover { border-color: var(--red); transform: translateY(-2px); }
.choice:active { transform: scale(.98); }
.choice small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
@keyframes sheetin { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
.sheet-back.is-out { animation: fadeout .25s var(--ease) forwards; }
.sheet-back.is-out .sheet { animation: sheetout .25s var(--ease) forwards; }
@keyframes fadeout { to { opacity: 0; } }
@keyframes sheetout { to { opacity: 0; transform: translateY(30px); } }

/* ── Телефон: интерфейс как у приложения ───────────────────────────────── */
@media (max-width: 680px) {
  .wrap { width: calc(100% - 28px); }
  .nav { height: 58px; }
  .nav-links { inset: calc(58px + env(safe-area-inset-top)) 0 auto 0; background: var(--paper); border-bottom-color: var(--line); }
  .nav-links li a { padding: 16px 0; border-bottom-color: var(--line); }
  .menu-toggle span { background: var(--ink); }
  .cab { padding: 18px 0 calc(110px + env(safe-area-inset-bottom)); }
  .doc-section { padding: 18px 0 40px; }
  .cab-title { font-size: 30px; margin-bottom: 16px; }
  .browser, .browser.wide { border-radius: 22px; transform: none !important; box-shadow: var(--shadow); }
  .cab .browser-bar, .doc-section .browser-bar { display: none; }
  .browser-body { padding: 14px; gap: 12px; }
  .stats.four { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat.ic { grid-template-columns: 1fr; padding: 14px; row-gap: 4px; }
  .stat.ic .ico { grid-row: auto; }
  .stat.ic > span, .stat.ic > b, .stat.ic > small, .stat.ic > .bar, .stat.ic > .flag { grid-column: 1; }
  .stat b { font-size: 18px; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .btn { min-height: 48px; border-radius: 14px; }
  .btn-small { min-height: 44px; }
  .copy { grid-template-columns: 1fr; }
  .copyact .btn { flex: 1; }
  .keyhead .btn, .keyhead form { width: 100%; }
  .profile { margin-bottom: 14px; }
  /* нижняя панель вкладок */
  .cab .tab-row {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--nav-bg);
    backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .5);
    overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  }
  .cab .tab {
    flex: 1 0 68px; flex-direction: column; gap: 3px; padding: 6px 4px 5px; border: 0; background: none; border-radius: 16px;
    font-size: 11px; font-weight: 700; color: var(--muted); min-height: 54px; box-shadow: none; scroll-snap-align: center;
  }
  .cab .tab svg { width: 22px; height: 22px; padding: 4px; box-sizing: content-box; border-radius: 99px; transition: background-color .3s var(--ease), color .3s; }
  .cab .tab[aria-selected="true"] { background: none; box-shadow: none; color: var(--red); }
  .cab .tab[aria-selected="true"] svg { background: var(--red-soft); animation: pop .4s var(--ease); }
  @keyframes pop { 50% { transform: scale(1.18); } }
  .cab .tab-row .tab.ripple-host { overflow: hidden; }
  .sheet-back { place-items: end center; padding: 0; }
  .sheet { border-radius: 28px 28px 0 0; width: 100%; }
  .form input { font-size: 16px; }
  .site-footer { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .ripple, .flag, .btn.is-busy::after { animation: none; }
  .sheet, .sheet-back { animation: none; }
  .tab-panel:not([hidden]) > *, .stats.four .stat { animation: none; }
}

/* v8.1: меню раньше сворачивается, вкладки переносятся на широких экранах */
@media (min-width: 681px) {
  .cab .tab-row { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 960px) {
  .nav-links {
    position: fixed; inset: calc(58px + env(safe-area-inset-top)) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .35s;
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .only-mobile { display: list-item; }
  .nav { height: 62px; }
}
.menu-toggle span { background: var(--ink); }
.form .pick small { max-width: 46%; }


/* ── v9: двухслойные иконки, скорость, друзья, мини-приложение ──────────────── */
:root { --land: #efe4de; --land-line: #d9c9c1; --mapbg: #f6efeb; }
:root[data-theme="dark"] { --land: #2b1a20; --land-line: #432830; --mapbg: #170d10; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --land: #2b1a20; --land-line: #432830; --mapbg: #170d10; } }

svg .b { fill: currentColor; opacity: .3; stroke: none; }
svg .s { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg .s.w { stroke-width: 2.4; }
svg .f { fill: currentColor; stroke: none; }

.eyebrow-s { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }

/* друзья */
.ref-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-radius: 22px; margin-bottom: 14px; color: #fff;
  background: linear-gradient(135deg, #8C4256 0%, #a3162a 100%); box-shadow: 0 18px 36px -22px rgba(140, 66, 86, .9); position: relative; overflow: hidden; }
:root[data-theme="dark"] .ref-hero { background: linear-gradient(135deg, #b81f33 0%, #5a0f1c 100%); }
.ref-hero h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.02em; }
.ref-hero p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 15px; max-width: 460px; }
.ref-hero .eyebrow-s { color: rgba(255, 255, 255, .75); }
.ref-ico { flex: none; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); animation: float 3.2s ease-in-out infinite; }
.ref-ico svg { width: 46px; height: 46px; color: #fff; }
@keyframes float { 50% { transform: translateY(-6px) rotate(4deg); } }
.steps-s { margin: 0 0 12px; padding-left: 20px; color: var(--ink-soft); }
.steps-s li { margin: 8px 0; }

/* скорость */
.speed { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.speed-main { display: grid; gap: 14px; min-width: 0; }
.speed-map { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--mapbg); aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.speed-map svg { width: 100%; height: 100%; display: block; }
.m-grid line { stroke: var(--land-line); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .45; }
.m-land { fill: var(--land); stroke: var(--land-line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.m-arc { fill: none; stroke: var(--line-strong); stroke-width: 1.6; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; opacity: .75; transition: stroke .3s, opacity .3s; }
.m-arc.on { stroke: var(--red); stroke-width: 2.4; opacity: 1; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.m-packet { fill: var(--red); filter: drop-shadow(0 0 4px var(--red)); }
.m-srv .core { fill: var(--ink); stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill .3s; }
.m-srv .halo { fill: var(--red); opacity: 0; transform-box: fill-box; transform-origin: center; }
.m-srv.on .core { fill: var(--red); }
.m-srv.on .halo { animation: halo 1.4s ease-out infinite; }
@keyframes halo { from { opacity: .45; transform: scale(.5); } to { opacity: 0; transform: scale(1.9); } }
.m-srv text, .m-you text { fill: var(--ink); font-weight: 700; paint-order: stroke; stroke: var(--mapbg); stroke-width: 3px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-you .core { fill: var(--red); stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; }
.m-you .pulse { fill: var(--red); opacity: .35; transform-box: fill-box; transform-origin: center; animation: halo 2.2s ease-out infinite; }

.speed-gauge { position: relative; display: grid; justify-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 14px 10px 18px; box-shadow: var(--shadow); }
.speed-gauge svg { width: min(100%, 360px); height: auto; overflow: visible; }
.g-track, .g-fill { fill: none; stroke-width: 12; stroke-linecap: round; }
.g-track { stroke: var(--bar-track); }
.g-fill { stroke: var(--red); stroke-dasharray: 0 100; transition: stroke-dasharray .18s linear, stroke .3s; }
.speed-gauge[data-state="ping"] .g-fill { stroke: var(--warn); }
.speed-gauge[data-state="down"] .g-fill { stroke: var(--ok); }
.speed-gauge[data-state="up"] .g-fill { stroke: var(--red); }
.speed-gauge[data-state="done"] .g-fill { stroke: var(--ok); }
#sp-ticks line { stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.g-read { position: absolute; left: 0; right: 0; bottom: 20px; display: grid; justify-items: center; line-height: 1.1; pointer-events: none; }
.g-read b { font-size: clamp(34px, 8vw, 48px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.g-read span { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.g-read small { margin-top: 4px; color: var(--muted); font-size: 13px; }
.speed-actions { display: grid; gap: 6px; justify-items: start; }
.speed-actions .btn { min-width: 220px; justify-content: center; }
.speed.is-running #sp-run { background: var(--white); color: var(--red); border-color: var(--red); box-shadow: none; }

.speed-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sp-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); display: grid; gap: 10px; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.sp-card[data-st="run"] { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft), var(--shadow); }
.sp-card.best { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft), var(--shadow); }
.sp-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.sp-head b { display: block; font-size: 16px; }
.sp-head span { color: var(--muted); font-size: 13px; }
.sp-state { font-style: normal; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.sp-card[data-st="run"] .sp-state { background: var(--red-soft); color: var(--red); border-color: transparent; }
.sp-card[data-st="good"] .sp-state { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.sp-card[data-st="mid"] .sp-state { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.sp-card[data-st="bad"] .sp-state { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.sp-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sp-chips div { background: var(--surface); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.sp-chips div.wide { grid-column: 1 / -1; }
.sp-chips span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sp-chips b { font-size: 15px; font-variant-numeric: tabular-nums; }
.sp-bar { height: 6px; border-radius: 99px; background: var(--bar-track); overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--red); transition: width .8s var(--ease), background-color .3s; }
.sp-card[data-st="good"] .sp-bar i { background: var(--ok); }
.sp-card[data-st="mid"] .sp-bar i { background: var(--warn); }

.speed-side { display: grid; gap: 12px; position: sticky; top: 84px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.side-card h3 { margin: 0 0 8px; font-size: 16px; }
.side-card .kv { display: grid; gap: 2px; padding: 9px 0; border-top: 1px dashed var(--line); }
.side-card .kv:first-of-type { border-top: 0; }
.side-card .kv > span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-card .kv > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; font-weight: 600; }
.side-card code { font-family: ui-monospace, Consolas, monospace; font-size: 14px; background: var(--code); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.side-card small { color: var(--muted); font-weight: 500; }
.cc { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--red-soft); color: var(--red); }
.best-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
#sp-best { border-color: var(--ok); animation: up .5s var(--ease) backwards; }

/* мини-приложение Telegram */
.tma-load { display: grid; justify-items: center; gap: 14px; padding: 60px 0; text-align: center; color: var(--muted); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--red-soft); border-top-color: var(--red); animation: spin .8s linear infinite; }
html.tma .site-header, html.tma .site-footer, html.tma .cab-title { display: none; }
html.tma .cab { padding-top: calc(10px + env(safe-area-inset-top)); }

@media (max-width: 960px) {
  .speed { grid-template-columns: 1fr; }
  .speed-side { position: static; order: -1; }
}
@media (max-width: 680px) {
  .speed-list { grid-template-columns: 1fr; }
  .speed-actions .btn { width: 100%; }
  .ref-hero { flex-direction: column; align-items: flex-start; }
  .ref-ico { width: 64px; height: 64px; }
  .speed-map { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .m-arc.on, .m-srv.on .halo, .m-you .pulse, .ref-ico { animation: none; } }

/* v9.1: флаг страны и иконка провайдера */
.flag { width: 26px; height: 20px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px var(--line-strong), 0 3px 8px -4px rgba(0, 0, 0, .5); flex: none; }
.ico.sm { width: 28px; height: 28px; }
.ico.sm svg { width: 16px; height: 16px; }
/* удаление ключа в кабинете */
.deletekey{margin-top:12px;border-top:1px solid var(--line,rgba(255,255,255,.08));padding-top:10px}
.deletekey summary{cursor:pointer;color:var(--muted,#9a9aa2);font-size:.9rem;list-style:none}
.deletekey summary::-webkit-details-marker{display:none}
.deletekey[open] summary{margin-bottom:8px}
/* Главная кабинета: статус, шаги, ключи по локациям */
.status { display: grid; grid-template-columns: 14px 1fr; gap: 14px; align-items: start; padding: 18px 20px; margin-bottom: 16px;
  border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px; background: var(--white); box-shadow: var(--shadow); }
.status .dot { width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--muted); }
.status b { display: block; font-size: 19px; letter-spacing: -.01em; }
.status p { margin: 6px 0 12px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.status .cta-row { gap: 10px; }
.status.ok { border-left-color: var(--ok); } .status.ok .dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.status.info, .status.new { border-left-color: var(--red); } .status.info .dot, .status.new .dot { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.status.warn, .status.idle { border-left-color: var(--warn); } .status.warn .dot, .status.idle .dot { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.status.bad { border-left-color: var(--bad); background: var(--bad-soft); } .status.bad .dot { background: var(--bad); }
.status.pause .dot { background: var(--muted); }
.steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; margin: 0 0 16px; }
.steps li { counter-increment: st; position: relative; padding: 12px 14px 12px 50px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.steps li::before { content: counter(st); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 1px solid var(--line-strong); color: var(--muted); }
.steps li b { display: block; font-size: 15px; } .steps li small { color: var(--muted); font-size: 13px; }
.steps li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.done b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.steps li.now { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.steps li.now::before { background: var(--red); border-color: var(--red); color: #fff; }
.locs { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.locs li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.locs li span { color: var(--ink-soft); font-size: 14px; text-align: right; }
.locs li small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
@media (max-width: 680px) {
  .status { padding: 16px; gap: 12px; } .status b { font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
}

/* ── Бордо: палитра #160B0E #34141B #5A2230 #8C4256 #C9919F #F3E3E7, заголовки Impact / Oswald ── */
@font-face{font-family:"Oswald";font-style:normal;font-weight:700;font-display:swap;src:url("/static/oswald-700-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Oswald";font-style:normal;font-weight:700;font-display:swap;src:url("/static/oswald-700-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}
:root {
  --display: Impact, "Oswald", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --ink: #160B0E; --ink-soft: #34141B; --muted: #7A4A57; --line: #E6CDD4; --line-strong: #C9919F;
  --paper: #F3E3E7; --surface: #F8EDF0; --white: #FFF9FA;
  --red: #8C4256; --red-dark: #5A2230; --red-soft: rgba(140, 66, 86, .12); --btn: #5A2230; --btn-hover: #34141B;
  --code: #F6E9EC; --bar-track: #EAD3D9; --nav-bg: rgba(243, 227, 231, .88); --glow: rgba(140, 66, 86, .16);
  --shadow: 0 1px 2px rgba(52, 20, 27, .08), 0 12px 28px -16px rgba(52, 20, 27, .45);
}
:root[data-theme="dark"] {
  --ink: #F3E3E7; --ink-soft: #E6CDD4; --muted: #C9919F; --line: #4A1C27; --line-strong: #5A2230;
  --paper: #160B0E; --surface: #1F0E13; --white: #34141B;
  --red: #C9919F; --red-dark: #F3E3E7; --red-soft: rgba(201, 145, 159, .14); --btn: #8C4256; --btn-hover: #5A2230;
  --code: #1F0E13; --bar-track: #5A2230; --nav-bg: rgba(22, 11, 14, .86); --glow: rgba(140, 66, 86, .32);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 32px -18px rgba(0, 0, 0, .9);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F3E3E7; --ink-soft: #E6CDD4; --muted: #C9919F; --line: #4A1C27; --line-strong: #5A2230;
    --paper: #160B0E; --surface: #1F0E13; --white: #34141B;
    --red: #C9919F; --red-dark: #F3E3E7; --red-soft: rgba(201, 145, 159, .14); --btn: #8C4256; --btn-hover: #5A2230;
    --code: #1F0E13; --bar-track: #5A2230; --nav-bg: rgba(22, 11, 14, .86); --glow: rgba(140, 66, 86, .32);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 32px -18px rgba(0, 0, 0, .9);
  }
}
h1, h2, h3, .cab-title, .logo .brand-name, .status b, .stat b, .keyhead b, .card h3, .plan .price, .sect, .doc h1, .doc h2 {
  font-family: var(--display); font-weight: 400; font-synthesis: none; letter-spacing: .01em;
}
h1, .cab-title { text-transform: uppercase; line-height: 1.05; }
.logo .brand-name { letter-spacing: .02em; }
.status b { font-size: 22px; letter-spacing: .015em; }
.btn-primary, .btn.accent { background: var(--btn); }
.btn-primary:hover { background: var(--btn-hover); }