/* sim.interservispro.ru — публичные страницы (главная и партнёрские /КОД).
   Админка, кабинет и /join по-прежнему на style.css. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/static/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/static/fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("/static/fonts/Inter-ExtraBold.woff2") format("woff2"); }

:root {
  --bg: #f8fafc;
  --ink: #0f111a;
  --muted: #64748b;
  --line: rgba(15, 17, 26, .08);
  --line-strong: rgba(15, 17, 26, .14);
  --surface: #ffffff;
  --glass: rgba(248, 250, 252, .76);
  --accent: #22ff88;
  --accent-hover: #10e676;
  --wa: #25d366;
  --wa-dark: #1fb457;
  --gold1: #f3d27a;
  --gold2: #c9962a;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px rgba(15, 17, 26, .05), 0 12px 32px -18px rgba(15, 17, 26, .28);
  --shadow-lift: 0 2px 4px rgba(15, 17, 26, .06), 0 24px 48px -20px rgba(15, 17, 26, .38);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --sticky-h: 0px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "tnum" 1;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 12px; }

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

/* ---------- шапка ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0 4px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; }
.brand-mark { width: 28px; height: 28px; flex: 0 0 auto; }
.top-contacts { display: flex; gap: 8px; }
.top-wa, .top-tg { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); }
.top-wa svg, .top-tg svg { width: 18px; height: 18px; }
.top-wa:hover { border-color: var(--wa); }
.top-tg:hover { border-color: #29a9eb; }
@media (max-width: 420px) { .top-tg span, .top-wa span { display: none; } .top-wa, .top-tg { padding: 8px; } }

/* ---------- первый экран ---------- */
.hero { position: relative; padding: 24px 0 8px; }
/* Подсветка за шапкой. Ничего не обрезаем: обрезка давала прямые линии по краю блока,
   и пятно выглядело как вклеенный прямоугольник. Страница и так не скроллится вбок (html/body overflow-x: hidden),
   а размытые пятна гаснут сами. */
.hero-bg { position: absolute; inset: -80px 0 -40px; pointer-events: none; overflow: visible; z-index: 0; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .22; will-change: transform; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.hero-text { max-width: 560px; min-width: 0; }   /* min-width: 0 — иначе лента номеров растягивает колонку шире экрана */
.kicker { font-weight: 600; color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.hero h1 { font-size: clamp(32px, 6.4vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.hero h1 .nowrap { white-space: nowrap; }
.lead { margin-top: 16px; font-size: 17px; line-height: 1.55; max-width: 44ch; }
.lead-note { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.lead-note b { font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.hero-facts a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(34, 255, 136, .18); }

.btn-primary, .btn-ghost, .btn-op, .btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 16px; text-decoration: none; text-align: center;
  transition: transform .2s var(--ease-out), box-shadow .3s, background .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(34, 255, 136, .9); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost svg, .btn-wa svg, .sticky-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.how-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn-wa-tg { background: #29a9eb; }
.btn-wa-tg:hover { background: #1c8ecb; }
.btn-wa-tg svg { width: 22px; height: 22px; }
.btn-primary:active, .btn-ghost:active, .btn-op:active, .btn-wa:active { transform: translateY(1px) scale(.99); }

/* 3D-стопка SIM-карт */
.hero-art { display: flex; justify-content: center; }
.sim-stack {
  position: relative; width: 300px; height: 300px; perspective: 1100px; perspective-origin: 50% 40%;
  --tx: 0deg; --ty: 0deg;
}
.sim-scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--tx)) rotateY(var(--ty)); transition: transform .5s var(--ease-out); }
.sim {
  position: absolute; left: 50%; top: 50%; width: 148px; height: 228px; margin: -114px 0 0 -74px;
  border-radius: 18px; color: var(--sim-text, #fff);
  background: linear-gradient(155deg, var(--c1) 0%, var(--c2) 100%);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  transform-style: preserve-3d;
  --mid: calc((var(--total, 4) - 1) / 2);
  --dx: 46px; --dy: -11px; --dz: 30px; --deg: 5deg;
  transform: translate3d(calc((var(--i) - var(--mid)) * var(--dx)), calc((var(--i) - var(--mid)) * var(--dy)), calc(var(--i) * var(--dz))) rotate(calc((var(--i) - var(--mid)) * var(--deg)));
  animation: simIn .9s var(--ease-out) both, simFloat 6s ease-in-out infinite;
  animation-delay: calc(.15s + var(--i) * .12s), calc(.9s + var(--i) * .7s);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.sim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.28) 48%, rgba(255,255,255,0) 60%); mix-blend-mode: screen; }
.sim-shadow { position: absolute; left: 50%; bottom: 18px; width: 220px; height: 26px; margin-left: -110px; border-radius: 50%; background: radial-gradient(closest-side, rgba(15,17,26,.28), rgba(15,17,26,0)); transform: translateZ(-60px); }
.sim-chip {
  position: absolute; left: 18px; top: 44px; width: 44px; height: 34px; border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 0 32%, rgba(120, 80, 10, .55) 32% 34%, transparent 34% 64%, rgba(120, 80, 10, .55) 64% 66%, transparent 66%),
    linear-gradient(0deg, transparent 0 46%, rgba(120, 80, 10, .55) 46% 48%, transparent 48% 52%, rgba(120, 80, 10, .55) 52% 54%, transparent 54%),
    linear-gradient(135deg, var(--gold1), var(--gold2));
  box-shadow: inset 0 0 0 1px rgba(90, 60, 0, .35), 0 1px 0 rgba(255,255,255,.4);
}
.sim-label { position: absolute; left: 18px; bottom: 18px; font-weight: 800; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.sim-sub { position: absolute; left: 18px; bottom: 40px; font-size: 11px; opacity: .85; }
@keyframes simIn { from { opacity: 0; transform: translate3d(calc((var(--i) - var(--mid, 1.5)) * var(--dx, 46px)), 90px, calc(var(--i) * var(--dz, 30px))) rotate(0deg); } }
@keyframes simFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* ---------- красивые номера на первом экране ----------
   На широком экране номера «летают» по орбите вокруг стопки SIM-карт, на телефоне — лентой под кнопками.
   Клик по номеру прокручивает к разделу «Красивые номера» и подсвечивает карточку (site.js). */
.orb {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .93); border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(15, 17, 26, .10);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: scale .22s var(--ease-out), box-shadow .22s, border-color .22s;
}
.orb .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--op1, var(--accent)); flex: 0 0 auto; }
.orb span { font-weight: 600; font-size: 12px; color: var(--muted); }
.orb .head { font-style: normal; font-weight: 600; font-size: 12px; color: var(--muted); }
.orb:hover { scale: 1.05; box-shadow: 0 12px 26px rgba(15, 17, 26, .16); border-color: var(--op1, var(--line)); }
.orb:active { scale: 1; }
.orb-all { font-weight: 700; color: var(--ink); }

.btn-nums svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.nums-note { display: flex; align-items: flex-start; gap: 7px; margin: 6px 0 0; max-width: 640px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.nums-note svg { width: 17px; height: 17px; margin-top: 1px; flex: 0 0 auto; fill: none; stroke: var(--ink); stroke-width: 1.7; }
.num-strip { margin-top: 20px; min-width: 0; max-width: 100%; }
.num-strip-lab { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.num-strip-row { min-width: 0; max-width: 100%; overflow: hidden; padding: 2px 0 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.num-strip-track { display: flex; gap: 8px; width: max-content; animation: numMarquee 42s linear infinite; }
.num-strip-row:hover .num-strip-track, .num-strip-row:active .num-strip-track { animation-play-state: paused; }
.num-strip-row .orb { flex: 0 0 auto; min-height: 40px; }
@keyframes numMarquee { to { transform: translateX(calc(-50% - 4px)); } }

.orbit-ring { display: none; }
/* орбита включается только там, где справа реально есть место (иначе номера наезжают на текст) */
@media (min-width: 1180px) {
  .num-strip { display: none; }
  .hero-art { position: relative; }
  .orbit-ring { display: block; position: absolute; right: 0; top: 0; width: 400px; height: 100%; pointer-events: none; z-index: 2; animation: orbitSway 34s ease-in-out infinite; }
  .orb-pos { position: absolute; left: 50%; top: 50%; width: 0; height: 0;
             transform: translate(calc(var(--x) * var(--kx, 1)), calc(var(--y) * var(--ky, 1))); }
  /* каждая пилюля тихонько парит по своей маленькой траектории, вся связка чуть покачивается */
  .orbit-ring .orb { position: absolute; left: 0; top: 0; translate: -50% -50%; pointer-events: auto;
                     animation: orbitSwayBack 34s ease-in-out infinite, orbDrift calc(9s + var(--i, 0) * 1.3s) ease-in-out infinite;
                     animation-delay: 0s, calc(var(--i, 0) * -1.7s); }
  .orbit-ring .orb span { display: none; }        /* цена в пилюле — только на очень широком экране */
  .hero-art:hover .orbit-ring, .hero-art:hover .orbit-ring .orb { animation-play-state: paused; }
}
/* совсем широкий экран: орбита шире и в пилюлях видна цена */
@media (min-width: 1400px) { .orbit-ring .orb span { display: inline; } .orb-pos { --kx: 1.3; --ky: 1.05; } }
@keyframes orbitSway { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@keyframes orbitSwayBack { 0%, 100% { rotate: 4deg; } 50% { rotate: -4deg; } }
@keyframes orbDrift { 0%, 100% { transform: none; } 25% { transform: translate(7px, -6px); } 50% { transform: translate(0, -11px); } 75% { transform: translate(-7px, -6px); } }
@keyframes orbFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
/* «порхание» пилюль в ленте на телефоне */
.num-strip-track .orb { animation: orbFloat calc(4.6s + var(--i, 0) * .45s) ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.7s); }
@media (prefers-reduced-motion: reduce) {
  .orbit-ring, .orbit-ring .orb, .num-strip-track, .num-strip-track .orb { animation: none; }
  .num-strip-row { overflow-x: auto; }
}

/* ---------- фильтры (стекло, липкие) ---------- */
.filters {
  position: sticky; top: 0; z-index: 10; margin: 20px 0 16px;
  background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.filters-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); font-weight: 600; font-size: 14px; line-height: 1;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease-out);
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--muted)); }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-on .dot { box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.pay { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.pay output { color: var(--ink); font-weight: 600; min-width: 4.5ch; text-align: right; }
.pay input[type=range] { width: 120px; accent-color: var(--ink); }
.pay-unit { white-space: nowrap; }
.count { font-size: 14px; color: var(--muted); margin: 0 0 12px; }

/* ---------- карточки тарифов ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.sim-card {
  position: relative; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s var(--ease-out), box-shadow .35s;
  will-change: transform;
}
.sim-card.is-tilt { transition: transform .08s linear, box-shadow .35s; box-shadow: var(--shadow-lift); }
.sim-card[hidden] { display: none; }
.sim-card::after { /* блик, следует за курсором */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.35), rgba(255,255,255,0) 60%);
  mix-blend-mode: soft-light;
}
.sim-card.is-tilt::after { opacity: 1; }
.sc-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; overflow: hidden;
  background: linear-gradient(120deg, var(--op1), var(--op2)); color: var(--optext);
}
.sc-chip { width: 30px; height: 23px; border-radius: 5px; flex: 0 0 auto;
  background:
    linear-gradient(90deg, transparent 0 32%, rgba(120, 80, 10, .5) 32% 35%, transparent 35% 64%, rgba(120, 80, 10, .5) 64% 67%, transparent 67%),
    linear-gradient(0deg, transparent 0 45%, rgba(120, 80, 10, .5) 45% 49%, transparent 49% 51%, rgba(120, 80, 10, .5) 51% 55%, transparent 55%),
    linear-gradient(135deg, var(--gold1), var(--gold2));
  box-shadow: inset 0 0 0 1px rgba(90, 60, 0, .3); }
.sc-op { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
/* шапка карточки: длинный бейдж ужимается многоточием, сердечко всегда остаётся внутри карточки */
.sc-type { margin-left: auto; min-width: 0; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.22); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-op { flex: 0 0 auto; }
.sc-chip { flex: 0 0 auto; }
.sc-head .btn-fav { flex: 0 0 auto; }
/* на телефоне длинный бейдж переносится в две строки, а не обрезается многоточием */
@media (max-width: 600px) {
  .sc-head { align-items: flex-start; }
  .sc-type { white-space: normal; text-overflow: clip; line-height: 1.25; }
  .sc-op, .sc-chip, .sc-head .btn-fav { margin-top: 1px; }
}
.sc-body { padding: 18px 18px 6px; }
.sc-top { display: flex; gap: 16px; align-items: flex-start; }
.sc-main { flex: 1 1 auto; min-width: 0; }
.sc-price { display: flex; align-items: baseline; gap: 6px; color: var(--opdark); }
.sc-price b { font-size: 40px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.sc-price span { font-size: 15px; font-weight: 600; color: var(--muted); }
.sc-kind { font-size: 19px; font-weight: 600; margin-top: 8px; }
.sc-name { color: var(--muted); font-size: 14px; margin-top: 4px; }
.sc-stats { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sc-stats li { background: var(--opsoft); border-radius: var(--radius-sm); padding: 8px 6px; text-align: center; }
.sc-stats b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--opdark); }
.sc-stats span { font-size: 12px; color: var(--muted); }
.sc-img { flex: 0 0 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; position: relative; }
.sc-img img { width: 84px; height: auto; }
.sc-img::after { content: "⤢"; position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 6px; background: rgba(15,17,26,.7); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.sc-foot { padding: 12px 18px 18px; }
.sc-once { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
.sc-once-label { font-size: 14px; color: var(--muted); }
.sc-once s { color: var(--muted); font-size: 15px; }
.sc-once b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sc-once-tag { font-size: 12px; font-weight: 600; color: var(--opdark); background: var(--opsoft); padding: 3px 8px; border-radius: 999px; align-self: center; }
.sc-once-note { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.sc-save { margin-top: 8px; font-size: 14px; color: var(--muted); }
.sc-save b { color: var(--ink); font-weight: 600; }
.btn-op { width: 100%; margin-top: 14px; background: var(--opaccent); color: var(--optext); }
.btn-op:hover { filter: brightness(.94); transform: translateY(-1px); }
.sc-two { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.btn-row { display: flex; gap: 8px; margin-top: 14px; }
.btn-row .btn-op { flex: 1 1 auto; margin-top: 0; }
.sc-two .btn-row { margin-top: 0; }
.btn-op.alt { background: var(--surface); color: var(--opdark); box-shadow: inset 0 0 0 2px var(--opaccent); }
.btn-op.alt:hover { background: var(--opsoft); filter: none; }
.btn-op-tg { flex: 0 0 52px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-op-tg svg { width: 30px; height: 30px; }
.btn-op-tg:hover { box-shadow: inset 0 0 0 1px #29a9eb; }
.sc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease-out); }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.pill:hover { border-color: var(--opaccent, var(--ink)); color: var(--opaccent, var(--ink)); transform: translateY(-1px); }
.pill:active { transform: translateY(0); }
.pill-share { border-color: var(--opaccent, var(--ink)); color: var(--opaccent, var(--ink)); background: var(--opsoft, #fff); }
.pill-share:hover { background: var(--opaccent, var(--ink)); color: var(--optext, #fff); }
.pill-share.done { border-color: #1a9c4b; background: #1a9c4b; color: #fff; }
.pill-share.done svg { display: none; }
.sc-more { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 4px; }
.sc-more summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 0; }
.sc-more summary::-webkit-details-marker { display: none; }
.sc-more summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: auto; transition: transform .25s var(--ease-out); }
.sc-more[open] summary::after { transform: rotate(-135deg); }
.sc-more ul { list-style: none; padding: 0; margin: 6px 0 0; font-size: 14px; }
.sc-more li { position: relative; padding-left: 22px; margin: 6px 0; }
.sc-more li::before { content: "✓"; position: absolute; left: 2px; color: var(--opdark); font-weight: 800; }
.sc-deadline { margin-top: 10px; font-size: 14px; font-weight: 600; }
.sc-pickup { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- красивые номера ---------- */
.nums { margin-top: 40px; }
.nums-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.nums h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.nums-sub { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 60ch; }
.nums-search { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 360px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 0 14px; min-height: 48px; }
.nums-search svg { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }
.nums-search input { border: 0; background: none; font: inherit; font-size: 16px; width: 100%; min-width: 0; outline: none; }
.nums-search:focus-within { border-color: var(--ink); }
.nums-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0 12px; }
.nums-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.num { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.num::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--op1); }
.num[hidden] { display: none; }
.num-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-bottom: 2px; }
.num-op {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: -.01em;
  color: var(--opdark, var(--ink));
  background: var(--opsoft, rgba(0,0,0,0.05));
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.num-op .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--op1);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.9), 0 0 4px var(--op1);
  flex: 0 0 auto;
}
.num-top { margin-left: 4px; font-size: 11px; font-weight: 700; color: #d97706; background: #fef3c7; padding: 2px 6px; border-radius: 999px; }
.num-sold { margin-left: 4px; font-size: 11px; font-weight: 700; color: #dc2626; background: #fee2e2; padding: 2px 6px; border-radius: 999px; }

/* Кнопка «В избранное» (сердечко) */
.btn-fav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); cursor: pointer;
  transition: transform .18s var(--ease-out), color .18s, background .18s, border-color .18s;
  flex: 0 0 auto; box-shadow: 0 1px 3px rgba(15,17,26,0.05);
}
.btn-fav svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s ease, fill .2s ease;
}
.btn-fav:hover { color: #ff3b30; border-color: rgba(255, 59, 48, .35); transform: scale(1.1); background: #fff; }
.btn-fav:active { transform: scale(.92); }
.btn-fav.is-fav { color: #ff3b30; background: #fff0f0; border-color: rgba(255, 59, 48, .4); }
.btn-fav.is-fav svg { fill: #ff3b30; stroke: #ff3b30; animation: favPop .32s ease-out; }
@keyframes favPop { 0% { transform: scale(0.8); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* Избранное на карточках тарифов */
.sc-head .btn-fav {
  margin-left: 8px; background: rgba(255, 255, 255, .22);
  color: var(--optext); border: 1px solid rgba(255, 255, 255, .3);
}
.sc-head .btn-fav:hover { background: #fff; color: #ff3b30; border-color: #fff; }
.sc-head .btn-fav.is-fav { background: #fff; color: #ff3b30; border-color: #fff; }
.sc-head .btn-fav.is-fav svg { fill: #ff3b30; stroke: #ff3b30; }

/* Чип «Избранное» в фильтрах */
.chip-fav { display: inline-flex; align-items: center; gap: 6px; }
.chip-fav .fav-icon { width: 15px; height: 15px; fill: #ff3b30; flex: 0 0 auto; }
.chip-fav .fav-badge {
  font-size: 11px; font-weight: 700; background: #ff3b30; color: #fff;
  padding: 1px 6px; border-radius: 999px; min-width: 18px; text-align: center; line-height: 14px;
}
.chip-fav:not(.is-on) .fav-badge { background: rgba(255, 59, 48, .15); color: #e0241b; }
.chip-fav.is-on { background: #fff0f0; border-color: rgba(255, 59, 48, .4); color: #e0241b; }
.num-phone { margin-top: 6px; font-feature-settings: "tnum" 1; letter-spacing: -.01em; white-space: nowrap; }
.num-head { font-size: 15px; color: var(--muted); font-weight: 600; }
.num-tail { font-size: 24px; font-weight: 800; color: var(--ink); }
.num-tail mark { background: rgba(34, 255, 136, .45); color: inherit; border-radius: 4px; padding: 0 1px; }
.num-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.num-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.num-price-label { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.num-price { font-weight: 800; font-size: 18px; color: var(--opdark); white-space: nowrap; }
.num-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; font-size: 13px; font-weight: 600; text-decoration: none; padding: 8px 12px; border-radius: 10px; background: var(--opsoft); color: var(--opdark); white-space: nowrap; transition: background .2s, transform .2s var(--ease-out); }
.num-btn:hover { background: var(--opaccent); color: var(--optext); transform: translateY(-1px); }
.num.is-hit { box-shadow: 0 0 0 3px var(--op1), 0 14px 34px rgba(15, 17, 26, .18); transition: box-shadow .25s; }
.num-tariff { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 0; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.num-tariff svg { width: 14px; height: 14px; margin-top: 1px; flex: 0 0 auto; fill: none; stroke: var(--op1); stroke-width: 1.8; stroke-linejoin: round; }
/* на телефоне карточки узкие — длинный тариф в две строки с многоточием (полностью виден по нажатию/в подсказке) */
@media (max-width: 600px) { .num-tariff span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
/* проданный номер: серый, цена зачёркнута, бейдж «Продан» — показывается ещё несколько дней, потом уходит */
.num.is-sold { background: #f6f7f9; box-shadow: none; }
.num.is-sold .num-phone, .num.is-sold .num-op { color: var(--muted); }
.num.is-sold .num-tariff svg { stroke: #b6bbc5; }
.num.is-sold .num-phone b { color: #7b8190; }
.num.is-sold .num-price { text-decoration: line-through; color: #9aa0ad; font-weight: 600; }
.num-top { margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: linear-gradient(135deg, var(--gold1), var(--gold2)); color: #4a3400; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; flex: 0 0 auto; }
.num-sold { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #e9ebef; color: #4b5160; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.num-btn-sold { background: #e9ebef; color: #7b8190; cursor: default; }
.num-btn-sold:hover { background: #e9ebef; color: #7b8190; transform: none; }
.num-btn-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.num-btn-row .num-btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.num-btn-tg { display: inline-flex; flex: 0 0 auto; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.num-btn-tg svg { width: 24px; height: 24px; }
.num-btn-tg:hover { box-shadow: inset 0 0 0 1px #29a9eb; }
.nums-more { width: 100%; margin-top: 14px; }

/* ---------- как это работает ---------- */
.how { margin: 40px 0 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.how h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.steps li { position: relative; padding-left: 48px; font-size: 15px; line-height: 1.5; }
.steps li b { font-weight: 600; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.how .btn-wa { margin-top: 18px; }

/* ---------- подвал ---------- */
.foot { margin: 32px 0 0; padding: 24px 0 calc(24px + var(--sticky-h)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: grid; gap: 8px; }
.foot a { color: var(--ink); text-decoration: none; font-weight: 600; display: inline-block; padding: 8px 0; }
.foot a:hover { text-decoration: underline; }
.foot-row { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- липкая кнопка (мобильный) ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .4s var(--ease-out); }
.sticky.show { transform: none; }
.sticky-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 14px; background: var(--wa); color: #fff; font-weight: 600; text-decoration: none; }
.sticky-btn:active { background: var(--wa-dark); }
.sticky { display: flex; gap: 10px; }
.sticky-btn { flex: 1 1 auto; }
.sticky-tg { flex: 0 0 auto; width: 52px; background: #29a9eb; }
.sticky-tgmain { flex: 1 1 auto; background: #29a9eb; }
.sticky-tgmain:active { background: #1c8ecb; }
.sticky-wa-ico { flex: 0 0 auto; width: 52px; }
.sticky-wa-ico svg { width: 28px; height: 28px; }
.sticky-tg:active { background: #1c8ecb; }
.sticky-tg svg { width: 28px; height: 28px; }

/* ---------- лайтбокс ---------- */
#lightbox { position: fixed; inset: 0; background: rgba(15,17,26,.92); display: none; align-items: center; justify-content: center; z-index: 150; padding: 16px; cursor: zoom-out; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,.35); touch-action: pinch-zoom; }
#lightbox .x { position: absolute; top: 14px; right: 18px; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
#toast { position: fixed; left: 50%; bottom: calc(24px + var(--sticky-h)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 95; box-shadow: 0 4px 12px rgba(0,0,0,.3); display: none; }

/* ---------- адаптив ---------- */
@media (min-width: 560px) { .cards { gap: 18px; } }
@media (min-width: 760px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .sticky { display: none; }
  .how { padding: 28px; }
  .steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
  .steps li { padding-left: 0; padding-top: 46px; }
}
@media (min-width: 860px) {
  .hero { padding: 40px 0 16px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 32px; }
  .hero-art { justify-content: center; }
  .sim-stack { width: 380px; height: 340px; }
  .sim { --dx: 52px; --dy: -12px; --dz: 34px; --deg: 5deg; width: 166px; height: 256px; margin: -128px 0 0 -83px; transform: translate3d(calc((var(--i) - var(--mid)) * var(--dx)), calc((var(--i) - var(--mid)) * var(--dy)), calc(var(--i) * var(--dz))) rotate(calc((var(--i) - var(--mid)) * var(--deg))); }
  .sim-chip { width: 52px; height: 40px; top: 52px; left: 22px; }
  .sim-label { font-size: 18px; left: 22px; bottom: 22px; }
  .sim-sub { left: 22px; bottom: 48px; }
}
@media (max-width: 859px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .sim-stack { width: 290px; height: 200px; }
  .sim { --dx: 38px; --dy: -8px; --dz: 24px; --deg: 4.5deg; width: 116px; height: 176px; margin: -88px 0 0 -58px; transform: translate3d(calc((var(--i) - var(--mid)) * var(--dx)), calc((var(--i) - var(--mid)) * var(--dy)), calc(var(--i) * var(--dz))) rotate(calc((var(--i) - var(--mid)) * var(--deg))); }
  .sim-chip { width: 36px; height: 28px; top: 34px; left: 14px; }
  .sim-label { font-size: 14px; left: 14px; bottom: 14px; }
  .sim-sub { left: 14px; bottom: 36px; font-size: 10px; }
  .sim-shadow { bottom: 6px; }
  .pay { margin-left: 0; flex-basis: 100%; }
}
@media (min-width: 600px) and (max-width: 859px) {
  .sim-stack { width: 360px; height: 260px; }
  .sim { --dx: 48px; --dy: -10px; --dz: 28px; --deg: 4.8deg; width: 142px; height: 218px; margin: -109px 0 0 -71px; transform: translate3d(calc((var(--i) - var(--mid)) * var(--dx)), calc((var(--i) - var(--mid)) * var(--dy)), calc(var(--i) * var(--dz))) rotate(calc((var(--i) - var(--mid)) * var(--deg))); }
  .sim-chip { width: 44px; height: 34px; top: 44px; left: 18px; }
  .sim-label { font-size: 16px; left: 18px; bottom: 18px; }
  .sim-sub { left: 18px; bottom: 42px; font-size: 11px; }
}
@media (max-width: 899px) and (max-height: 520px) {
  .hero-art { display: none; }   /* телефон повёрнут боком: место дороже картинки */
}
@media (max-width: 759px) {
  .glow { filter: blur(40px); will-change: auto; }   /* дешевле для слабых телефонов */
  .nums-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .num { padding: 10px 10px 10px 12px; border-radius: 14px; }
  .num-head { font-size: 12px; }
  .num-tail { font-size: 18px; }
  /* узкая карточка на телефоне: всё внутри рамки — бейдж оператора ужимается, «топ» без слова, сердечко меньше */
  .num-op { font-size: 11px; padding: 3px 7px; min-width: 0; overflow: hidden; }
  .num-op .dot { width: 6px; height: 6px; }
  .num-top { margin-left: 4px; padding: 2px 5px; }
  .num-top-txt { display: none; }
  .num-header .btn-fav { width: 26px; height: 26px; }
  .num-header .btn-fav svg { width: 14px; height: 14px; }
  .num-phone { display: flex; align-items: baseline; gap: 4px; }
}
@media (max-width: 430px) {
  .num-head { font-size: 11px; }
  .num-tail { font-size: 17px; letter-spacing: -.02em; }
  .num-foot { gap: 6px; margin-top: 6px; }
  .num-price { font-size: 16px; }
  .num-price-label { font-size: 10.5px; }
  .num-btn { font-size: 13px; padding: 8px 10px; width: 100%; text-align: center; }
  .num-btn-row { width: 100%; }
  .num-btn-row .num-btn { flex: 1 1 auto; width: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .nums h2 { font-size: 24px; }
  .filters-in { gap: 8px 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .pay input[type=range] { flex: 1 1 auto; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sim { animation: none; }
  .sim-scene, .sim-card, .sticky, .chip, .btn-primary, .btn-ghost, .btn-op { transition: none; }
  .sim-card::after { display: none; }
}

/* ---------- авторский блок «Работает в устройствах» ---------- */
.sc-devices-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 12px);
  box-shadow: inset 0 1px 2px rgba(15, 17, 26, .03);
}
.sc-dev-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.sc-dev-tagline {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.sc-dev-mod-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: help;
  line-height: 1.2;
}
.sc-dev-mod-tag svg {
  width: 11px;
  height: 11px;
  color: #d97706;
}
.sc-dev-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.sc-dev-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line-strong, rgba(15, 17, 26, .12));
  border-radius: 10px;
  padding: 8px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  box-shadow: 0 1px 2px rgba(15, 17, 26, .04);
  transition: transform .18s var(--ease-out), border-color .18s, box-shadow .18s;
  user-select: none;
}
.sc-dev-card:hover {
  transform: translateY(-1px);
  border-color: var(--opaccent, var(--ink));
  box-shadow: 0 3px 8px rgba(15, 17, 26, .08);
}
.sc-dev-card .sc-dev-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--opsoft, #f1f5f9);
  color: var(--opdark, var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, color .18s;
}
.sc-dev-card .sc-dev-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}
.sc-dev-card .sc-dev-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.sc-dev-card .sc-dev-sub {
  font-size: 9px;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  border-radius: 4px;
  padding: 1px 4px;
  line-height: 1;
  text-transform: lowercase;
  letter-spacing: .02em;
}
.sc-dev-card.is-mod {
  border-color: #fde68a;
}
.sc-dev-card.is-off {
  opacity: .32;
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}
.sc-dev-card.is-off .sc-dev-icon {
  background: transparent;
  color: var(--muted);
}
.sc-dev-card.is-off .sc-dev-label {
  text-decoration: line-through;
  color: var(--muted);
}
.sc-dev-card.is-off:hover {
  transform: none;
  border-color: var(--line-strong);
  box-shadow: none;
}

/* ---------- 126-ФЗ и cookie ---------- */
.law-bar {
  background: #0b0f17;
  color: #94a3b8;
  padding: 16px 20px;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.08);
}
.law-bar p { margin: 0; }

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 780px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 16px 40px -8px rgba(15,23,42,.35), 0 0 0 1px rgba(15,23,42,.08);
  z-index: 10000;
  padding: 18px 22px;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.cookie-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-text {
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}
.cookie-text p { margin: 0; }
.cookie-text strong { color: #0f172a; }
.cookie-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 4px !important;
}
.btn-cookie-accept {
  background: #ff5900;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(255,89,0,.35);
  transition: background .2s, transform .15s;
}
.btn-cookie-accept:hover {
  background: #e04e00;
  transform: translateY(-1px);
}
.btn-cookie-accept:active {
  transform: translateY(0);
}
@media (max-width: 640px) {
  .cookie-box { flex-direction: column; align-items: stretch; gap: 14px; }
  .btn-cookie-accept { width: 100%; text-align: center; }
  .sc-dev-item .sc-dev-name { font-size: 10px; }
  .sc-dev-icon { width: 30px; height: 30px; }
  .sc-dev-icon svg { width: 16px; height: 16px; }
  .sc-dev-mod-box { padding: 4px 6px 3px; }
  .sc-dev-mod-label { font-size: 11px; }
}


/* ---- тариф на карточке номера: кнопка + окно с условиями ---- */
.num-tariff.is-link { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; }
.num-tariff.is-link:hover span { text-decoration: underline; }
.num-tariff-q { flex: 0 0 auto; margin-left: auto; width: 16px; height: 16px; border-radius: 50%; font-style: normal;
  font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; color: var(--opdark, #0b6); background: var(--opsoft, #eef5f0); }
.tar-modal { position: fixed; inset: 0; z-index: 99990; display: flex; align-items: center; justify-content: center; padding: 16px; }
.tar-back { position: absolute; inset: 0; background: rgba(15,17,26,.55); backdrop-filter: blur(2px); }
.tar-win { position: relative; width: min(480px, 100%); max-height: 88vh; overflow: auto; background: #fff; border-radius: 18px;
  padding: 22px 20px 18px; box-shadow: 0 24px 60px rgba(12,20,16,.28); }
.tar-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(12,20,16,.18); font-size: 24px; line-height: 32px; color: #4a564f; cursor: pointer; }
.tar-kicker { margin: 0; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: #7c8a81; }
.tar-title { margin: 4px 0 2px; font-size: 21px; }
.tar-abon { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: #16221c; }
.tar-stats { display: flex; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
.tar-stats li { flex: 1; min-width: 0; background: #f4f7f5; border-radius: 12px; padding: 9px 8px; text-align: center; }
.tar-stats b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.tar-stats span { font-size: 11.5px; color: #7c8a81; }
.tar-cond { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: #3c4a43; white-space: pre-line; }
.tar-img { display: block; margin: 0 0 12px; }
.tar-img img { max-width: 140px; border-radius: 10px; }
.tar-note { margin: 0 0 14px; font-size: 12.5px; color: #7c8a81; }
.tar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tar-actions .btn-primary, .tar-actions .btn-ghost { flex: 1 1 160px; text-align: center; }
@media (max-width: 430px) { .tar-win { padding: 18px 14px 14px; } .tar-stats { flex-wrap: wrap; } .tar-stats li { flex: 1 1 45%; } }

/* атрибут hidden сильнее любых наших display — иначе окно тарифа висит поверх страницы */
[hidden] { display: none !important; }

/* тариф на карточке номера: картинка тарифа + главное в одну строку */
.num-tar { display: flex; align-items: center; gap: 9px; width: 100%; margin: 8px 0 0; padding: 6px 8px; cursor: pointer;
  background: var(--opsoft, #f2f6f4); border: 1px solid transparent; border-radius: 12px; text-align: left; font: inherit; }
.num-tar:hover { border-color: var(--op1); }
.num-tar-img { flex: 0 0 auto; width: 34px; height: 52px; object-fit: cover; border-radius: 6px; background: #fff; box-shadow: 0 1px 4px rgba(20,40,30,.14); }
.num-tar-ico { flex: 0 0 auto; width: 22px; height: 22px; fill: none; stroke: var(--op1); stroke-width: 1.8; stroke-linejoin: round; }
.num-tar-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.num-tar-txt b { font-size: 13px; color: var(--opdark, #16221c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num-tar-txt i { font-style: normal; font-size: 11.5px; color: var(--muted, #7c8a81); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num-tar-more { margin-left: auto; flex: 0 0 auto; font-size: 11.5px; font-weight: 600; color: var(--opdark, #0b6); }
.is-sold .num-tar { opacity: .6; }
/* картинка тарифа в окне */
.tar-hero { position: relative; display: block; margin: 0 0 10px; border-radius: 12px; overflow: hidden; background: #f4f7f5; }
.tar-hero img { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.tar-zoom { position: absolute; right: 8px; bottom: 8px; background: rgba(15,22,18,.72); color: #fff; font-size: 11.5px;
  padding: 3px 8px; border-radius: 999px; }
.tar-with { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #16221c; }
@media (max-width: 430px) {
  .num-tar-more { display: none; }
  .num-tar { gap: 7px; padding: 5px 7px; }
  .num-tar-img { width: 28px; height: 42px; }
}

/* блок доверия: коротко о том, кто мы и как проходит покупка */
.trust { margin: 26px 0 8px; }
.trust-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 18px; list-style: none; margin: 0; padding: 0; }
.trust-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.trust-list svg { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px; fill: none; stroke: #00b956; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- SEO-страницы: хлебные крошки, текст раздела, карта разделов в подвале; подсказка маски ---- */
.crumbs { font-size: 13px; color: var(--muted); margin: -6px 0 14px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { color: var(--ink); font-weight: 600; }
.seo-text { margin: 26px 0 0; max-width: 760px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.seo-text p { margin: 0; }
.seo-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 24px; padding: 14px 0 6px; border-top: 1px solid var(--line); }
.seo-col { display: flex; flex-direction: column; gap: 2px; }
.seo-col b { color: var(--ink); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.seo-col a { font-weight: 500; padding: 6px 0; font-size: 14px; }
.seo-col a[aria-current] { color: var(--muted); pointer-events: none; }
.nums-hint { flex: 1 1 100%; margin: -4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.nums-hint b { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hint-ex { font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 8px; margin: 2px 2px 2px 0; cursor: pointer; min-height: 32px; }
.hint-ex:hover { border-color: var(--ink); }
@media (max-width: 599px) { .seo-nav { grid-template-columns: 1fr 1fr; } }
.seo-toggle { align-self: flex-start; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; min-height: 32px; }
.seo-toggle:hover { color: var(--ink); }

/* ---------- частые вопросы (FAQ) ---------- */
.faq { margin: 32px 0 0; }
.faq h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.faq-item { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 600; cursor: pointer; list-style: none; min-height: 24px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 18px; height: 18px; flex: 0 0 auto; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-out); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---- форма «перезвоните мне» ---- */
.cb { margin: 30px 0 10px; }
.cb-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center;
  background: linear-gradient(135deg, #f2f8f5, #eef4ff); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.cb-text h2 { margin: 0 0 8px; font-size: clamp(20px, 3vw, 26px); line-height: 1.2; }
.cb-text p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.cb-form { display: grid; gap: 6px; }
.cb-lab { font-size: 12.5px; color: var(--muted); }
.cb-inp { width: 100%; padding: 12px 14px; font-size: 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; }
.cb-inp:focus { outline: 2px solid var(--op1, #00b956); outline-offset: 1px; }
.cb-btn { margin-top: 6px; width: 100%; justify-content: center; }
.cb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cb-msg { margin: 6px 0 0; font-size: 14px; font-weight: 600; }
.cb-msg.is-ok { color: #067a3e; }
.cb-msg.is-err { color: #b3261e; }
.cb-small { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }
@media (max-width: 760px) { .cb-in { grid-template-columns: 1fr; padding: 18px; } }

/* кнопка «оставить заявку» на карточках и окно с формой */
.num-btn-req { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  background: var(--opsoft, #f2f6f4); color: var(--opdark, #16221c); border: 1px solid transparent; border-radius: 12px; }
.num-btn-req:hover { border-color: var(--op1); }
.num-btn-req svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.pill-req svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.cb-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cb-back { position: absolute; inset: 0; background: rgba(15,17,26,.55); backdrop-filter: blur(2px); }
.cb-win { position: relative; width: min(420px, 100%); background: #fff; border-radius: 18px; padding: 22px 20px 18px;
  box-shadow: 0 24px 60px rgba(12,20,16,.28); }
.cb-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: #f2f5f3; font-size: 24px; line-height: 32px; color: #4a564f; cursor: pointer; }
.cb-win-title { margin: 0 0 4px; font-size: 20px; }
.cb-win-sub { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }

.cb-tg-link { color: #0b7bd0; font-weight: 600; }

/* окно «Как вам удобнее?» */
.ch-win { width: min(400px, 100%); }
.ch-list { display: grid; gap: 10px; margin-top: 6px; }
.ch-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); text-align: left; font: inherit; cursor: pointer; text-decoration: none; }
.ch-btn:hover { border-color: var(--ink); }
.ch-btn svg { flex: 0 0 auto; width: 28px; height: 28px; }
.ch-btn span { display: flex; flex-direction: column; min-width: 0; }
.ch-btn b { font-size: 15px; }
.ch-btn i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.ch-wa { color: #128c4b; } .ch-wa svg { color: #25d366; }
.ch-tg { color: #0b7bd0; } .ch-tg svg { width: 28px; height: 28px; }
#chBot { border-color: #2aabee; box-shadow: 0 0 0 1px #2aabee inset; background: #f3fbff; }
#chBot b::after { content: "рекомендуем"; margin-left: 8px; font-size: 11px; font-weight: 600; color: #0b7bd0;
  background: #e1f3ff; border-radius: 999px; padding: 2px 7px; vertical-align: middle; }
.ch-req svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* полоса «связь нестабильна» — появляется, только если запросы к сайту не проходят */
#netBar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100001; display: flex; gap: 10px;
  align-items: center; justify-content: center; flex-wrap: wrap; padding: 10px 14px;
  background: #12203a; color: #fff; font-size: 13.5px; }
#netBar a { color: #8fd3ff; font-weight: 600; text-decoration: none; white-space: nowrap; }
