/* ============================================================
   Numora — виртуальные номера для звонков и SMS
   Единая дизайн-система для всех страниц
   ============================================================ */

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #0f1730;
  --muted: #5a6478;
  --line: #e4e9f4;
  --primary: #20349b;
  --primary-hover: #18297f;
  --primary-soft: #ecf0ff;
  --accent: #0fae9e;
  --accent-hover: #0c9487;
  --accent-soft: #e2f7f4;
  --success: #149a4c;
  --success-soft: #e6f6ec;
  --danger: #d92d20;
  --danger-soft: #fdecec;
  --warn: #b45309;
  --warn-soft: #fdf3e3;
  --navy-1: #101a52;
  --navy-2: #1a2b7a;
  --navy-3: #23379f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(16, 26, 64, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 26, 64, 0.14);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.center { text-align: center; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(15, 174, 158, .35); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(32, 52, 155, .25); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(15, 174, 158, .28); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-soft); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #eef2ff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn-danger:hover { background: #fbdbd9; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 15px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Бейджи и чипы ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--primary-soft); color: var(--primary);
}
.badge-accent { background: var(--accent-soft); color: #0a7c70; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-gray { background: #eceff6; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Шапка сайта ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 248, 252, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(16,26,64,.06); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--navy-2), var(--accent)); box-shadow: 0 6px 16px rgba(26, 43, 122, .3);
  font-size: 19px; font-weight: 800;
}
.logo span i { font-style: normal; color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.main-nav a { color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover { color: var(--ink); background: rgba(16,26,64,.05); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.burger { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: .2s;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.mobile-menu {
  display: none; position: fixed; inset: 72px 0 auto 0; z-index: 99;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 16px 4%; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; }
.mobile-menu a:hover { background: var(--bg); text-decoration: none; }
.mobile-menu .btn { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(15, 174, 158, .38), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(59, 91, 219, .5), transparent 60%),
    linear-gradient(135deg, var(--navy-1) 0%, var(--navy-2) 55%, #24399c 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 420px at 78% 20%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 84px 0 92px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: 13.5px; font-weight: 600; margin-bottom: 22px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.22); }
.hero h1 { font-size: clamp(2.05rem, 4.4vw, 3.15rem); font-weight: 800; margin-bottom: 18px; }
.hero h1 i { font-style: normal; color: #7ce0d4; }
.hero-sub { font-size: 17.5px; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-stats { display: flex; gap: 42px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.hero-stats .stat span { font-size: 13.5px; color: rgba(255,255,255,.68); }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.phone {
  width: 300px; border-radius: 38px; padding: 12px; background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.22); box-shadow: 0 40px 90px rgba(5, 10, 40, .45);
  backdrop-filter: blur(6px);
}
.phone-screen { background: #f8fafd; border-radius: 28px; padding: 18px 14px; color: var(--ink); min-height: 470px; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); font-weight: 600; padding: 2px 6px 12px; }
.phone-title { display: flex; align-items: center; gap: 10px; padding: 10px 6px 14px; border-bottom: 1px solid var(--line); }
.phone-title .ava { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #2aabee, #229ed9); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
.phone-title b { display: block; font-size: 14px; line-height: 1.2; }
.phone-title span { font-size: 11.5px; color: var(--muted); }
.sms-bubble {
  margin: 14px 6px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px;
  padding: 12px 14px; box-shadow: 0 6px 18px rgba(16,26,64,.07); font-size: 13px;
}
.sms-bubble.sent { background: #e7f6ee; border-color: #c9ecd8; border-radius: 14px 14px 4px 14px; margin-left: 34px; }
.sms-bubble .code { font-family: var(--mono); font-weight: 700; font-size: 17px; letter-spacing: 1px; color: var(--primary); display: block; margin: 4px 0 2px; }
.sms-bubble time { font-size: 10.5px; color: var(--muted); float: right; margin-top: 6px; }
.hero-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 16px; justify-content: center; }

/* ---------- Полоса сервисов ---------- */
.services-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.service-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink);
  box-shadow: 0 2px 8px rgba(16,26,64,.04);
}
.service-chip .dot { width: 9px; height: 9px; border-radius: 50%; }

/* ---------- Карточки возможностей ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
section[id] { scroll-margin-top: 92px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 2px 10px rgba(16,26,64,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d4dcf0; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--primary-soft); color: var(--primary);
}
.feature-icon svg { width: 23px; height: 23px; }
.feature-icon.teal { background: var(--accent-soft); color: #0a7c70; }
.feature-icon.amber { background: var(--warn-soft); color: var(--warn); }
.feature-icon.green { background: var(--success-soft); color: var(--success); }
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: #fff; background: linear-gradient(135deg, var(--navy-2), var(--accent));
  margin-bottom: 16px; box-shadow: 0 8px 18px rgba(26,43,122,.25);
}
.step-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.step-card p { font-size: 14px; color: var(--muted); margin: 0; }
.step-arrow { position: absolute; right: -15px; top: 38px; color: #c3cde6; font-size: 20px; z-index: 2; }

/* ---------- География ---------- */
.coverage { background: linear-gradient(180deg, #0e1850, #1a2b7a); color: #fff; }
.coverage .section-head h2 { color: #fff; }
.coverage .section-head p { color: rgba(255,255,255,.72); }
.coverage-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.country-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
  padding: 16px 12px; text-align: center; transition: .2s ease;
}
.country-card:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.country-badge {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; letter-spacing: .02em; color: #fff;
}
.country-card b { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.country-card span { font-size: 12px; color: rgba(255,255,255,.66); }
.coverage-note { text-align: center; color: rgba(255,255,255,.66); font-size: 14px; margin: 30px 0 0; }

/* ---------- Тарифы ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px;
  display: flex; flex-direction: column; position: relative; box-shadow: 0 2px 10px rgba(16,26,64,.04);
}
.plan-card.popular { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.plan-popular-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 14px; border-radius: 999px;
}
.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.plan-desc { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.plan-price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.plan-price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan-annual { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 20px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14.5px; color: #303a52; }
.plan-list li svg { flex: 0 0 18px; margin-top: 3px; color: var(--success); }
.pricing-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* ---------- Почему мы ---------- */
.why-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why-list { display: grid; gap: 18px; }
.why-item { display: flex; gap: 14px; }
.why-check { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: #0a7c70; display: grid; place-items: center; margin-top: 2px; }
.why-item h3 { font-size: 16px; margin-bottom: 3px; }
.why-item p { color: var(--muted); font-size: 14.5px; margin: 0; }
.why-panel {
  background: linear-gradient(150deg, var(--navy-2), #24409c); border-radius: 24px; color: #fff; padding: 34px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.why-panel::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(15,174,158,.35); filter: blur(70px); right: -80px; bottom: -110px; }
.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 1; }
.metric-box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 18px; }
.metric-box b { display: block; font-size: 27px; font-weight: 800; letter-spacing: -0.02em; }
.metric-box span { font-size: 13px; color: rgba(255,255,255,.72); }
.why-panel .big-line { font-size: 19px; font-weight: 700; margin: 26px 0 8px; position: relative; z-index: 1; }
.why-panel .small-line { color: rgba(255,255,255,.72); font-size: 14px; margin: 0; position: relative; z-index: 1; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .2s ease; }
.faq-item.open { border-color: #c8d3ef; box-shadow: var(--shadow); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-size: 15.5px; font-weight: 600; color: var(--ink); font-family: inherit;
}
.faq-q .chev { transition: transform .25s ease; flex: 0 0 auto; color: var(--muted); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

/* ---------- CTA-полоса ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-2), #24409c 60%, var(--accent));
  border-radius: 26px; padding: 52px 56px; color: #fff; display: flex; align-items: center; gap: 40px; justify-content: space-between; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.82); font-size: 15.5px; }

/* ---------- Футер ---------- */
.site-footer { background: #0c1233; color: #aab3d0; padding: 64px 0 28px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 14.5px; margin-bottom: 14px; }
.footer-col a { display: block; color: #aab3d0; padding: 5px 0; font-size: 14px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.footer-demo-note { color: rgba(255,255,255,.45); font-size: 12.5px; margin-top: 10px; }

/* ---------- Формы / Auth ---------- */
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(700px 380px at 80% -10%, rgba(15,174,158,.18), transparent 60%), radial-gradient(600px 360px at 0% 110%, rgba(32,52,155,.14), transparent 60%), var(--bg); }
.auth-top { padding: 26px 0; text-align: center; }
.auth-card {
  width: min(460px, 92%); margin: 0 auto 60px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 38px 36px; box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 25px; text-align: center; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="number"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid #cfd7ea; background: #fbfcff;
  font-size: 15px; font-family: inherit; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(32,52,155,.14); background: #fff; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field .err { font-size: 12.5px; color: var(--danger); margin-top: 6px; display: none; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.label-row label { margin-bottom: 0; }
.pass-toggle { background: none; border: 0; color: var(--muted); font-size: 12.5px; cursor: pointer; padding: 0; font-weight: 600; }
.pass-toggle:hover { color: var(--primary); }
.field.invalid input { border-color: var(--danger); }
.field.invalid .err { display: block; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 4px 0 20px; }
.checkbox-row input { margin-top: 3px; }
.auth-alt { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-foot { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 18px; line-height: 1.6; }
.demo-note { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 10px 14px; font-size: 12.5px; margin-bottom: 20px; }

/* ---------- Тосты ---------- */
.toast-container { position: fixed; right: 20px; bottom: 22px; z-index: 400; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 12px;
  padding: 13px 16px; box-shadow: var(--shadow-lg); font-size: 14px; color: var(--ink);
  display: flex; gap: 10px; align-items: flex-start; animation: toast-in .25s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--accent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Модальные окна ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 16, 44, .55); backdrop-filter: blur(3px);
  z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 20px; width: min(520px, 100%); max-height: 88vh; overflow: auto;
  box-shadow: var(--shadow-lg); animation: modal-in .22s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px 0; }
.modal-head h3 { margin: 0; font-size: 19px; }
.modal-x { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.modal-x:hover { background: var(--bg); color: var(--ink); }
.modal-body { padding: 18px 26px; }
.modal-foot { padding: 0 26px 24px; display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Личный кабинет ---------- */
.dash-body { background: #f2f5fb; }
.dash-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.dash-sidebar { background: #0e163a; color: #fff; padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.dash-sidebar .logo { color: #fff; padding: 0 10px; margin-bottom: 26px; }
.side-nav { display: grid; gap: 4px; }
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; color: #aab3d0;
  font-size: 14.5px; font-weight: 500; cursor: pointer; border: 0; background: none; text-align: left; width: 100%; font-family: inherit;
}
.side-link svg { width: 18px; height: 18px; flex: 0 0 18px; }
.side-link:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.side-link.active { background: linear-gradient(120deg, rgba(15,174,158,.24), rgba(59,91,219,.3)); color: #fff; }
.side-foot { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: rgba(255,255,255,.45); }

.dash-main { padding: 0 34px 60px; min-width: 0; }
.dash-topbar {
  display: flex; align-items: center; gap: 16px; padding: 20px 0 16px; position: sticky; top: 0; z-index: 40;
  background: rgba(242,245,251,.85); backdrop-filter: blur(10px);
}
.dash-topbar h1 { font-size: 22px; margin: 0; }
.dash-topbar .spacer { flex: 1; }
.balance-pill {
  display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-weight: 700; box-shadow: 0 2px 8px rgba(16,26,64,.05);
}
.balance-pill span { color: var(--muted); font-weight: 500; font-size: 13px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-3), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 10px rgba(16,26,64,.04); margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 16.5px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 2px 10px rgba(16,26,64,.04); }
.stat-card span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.stat-card b { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; }
.stat-card .trend { font-size: 12.5px; font-weight: 600; color: var(--success); }

.balance-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, #101a52, #23379f 70%, #20608f); color: #fff; border-radius: var(--radius); padding: 26px 28px; margin-bottom: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.balance-hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(15,174,158,.35); filter: blur(50px); }
.balance-hero .lab { font-size: 13.5px; color: rgba(255,255,255,.72); margin-bottom: 2px; }
.balance-hero .amount { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.balance-hero .sub { font-size: 13px; color: rgba(255,255,255,.62); margin-top: 6px; }
.balance-hero .actions { display: flex; gap: 10px; position: relative; z-index: 1; }

.table-wrap { overflow-x: auto; }
table.tx { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.tx th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.tx td { padding: 13px 12px; border-bottom: 1px solid #eef1f8; vertical-align: middle; }
table.tx tr:last-child td { border-bottom: 0; }
.amount-plus { color: var(--success); font-weight: 700; }
.amount-minus { color: var(--danger); font-weight: 700; }

/* Сетка каталога */
.buy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.buy-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: .2s ease; }
.buy-card:hover { border-color: #c8d3ef; box-shadow: var(--shadow); transform: translateY(-2px); }
.buy-card-top { display: flex; align-items: center; gap: 12px; }
.country-badge.sm { width: 38px; height: 38px; font-size: 11.5px; margin: 0; }
.svc-badge { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
.buy-card b { font-size: 15px; display: block; line-height: 1.25; }
.buy-card .muted { font-size: 12.5px; }
.buy-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.buy-price { font-size: 19px; font-weight: 800; }

/* Мои номера */
.num-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.num-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.num-head .country-badge.sm { margin: 0; }
.num-title { flex: 1; min-width: 200px; }
.num-title b { font-size: 17px; font-family: var(--mono); letter-spacing: .02em; display: block; }
.num-title span { font-size: 13px; color: var(--muted); }
.num-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.countdown-chip { font-family: var(--mono); font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.countdown-chip.done { background: #eceff6; color: var(--muted); }
.sms-list { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 10px; }
.sms-item { background: #f7f9fe; border: 1px solid #e7ecf8; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.sms-item .head { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.sms-item .code-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sms-item .code-line .mono { font-size: 16px; font-weight: 700; color: var(--primary); }
.sms-waiting { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; padding: 6px 0; }
.spinner { width: 16px; height: 16px; border: 2px solid #d4dbee; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Пополнение */
.amount-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 8px; }
.amount-btn { padding: 14px 6px; border-radius: 12px; border: 1px solid #cfd7ea; background: #fbfcff; font-weight: 700; font-size: 15.5px; cursor: pointer; transition: .15s ease; }
.amount-btn:hover { border-color: var(--primary); }
.amount-btn.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); box-shadow: 0 0 0 3px rgba(32,52,155,.12); }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.pay-method { border: 1px solid #cfd7ea; border-radius: 12px; background: #fbfcff; padding: 14px 12px; cursor: pointer; transition: .15s ease; text-align: center; font-weight: 600; font-size: 13.5px; }
.pay-method:hover { border-color: var(--primary); }
.pay-method.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); box-shadow: 0 0 0 3px rgba(32,52,155,.12); }
.pay-method .pm-ico { font-size: 20px; display: block; margin-bottom: 6px; }

.empty-state { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty-state .big { font-size: 40px; margin-bottom: 10px; }
.empty-state b { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 6px; }

/* Каталог — фильтры */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.filters select, .filters input { padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid #cfd7ea; background: #fff; font-size: 14.5px; font-family: inherit; color: var(--ink); }
.filters select:focus, .filters input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(32,52,155,.14); }

/* Toast notifications */
.inline-demo { display: flex; gap: 8px; align-items: flex-start; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; border-radius: 10px; padding: 10px 13px; margin-top: 14px; }

/* Мобильный кабинет */
.dash-burger { display: none; }

/* ---------- Анимация появления ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .country-card, .buy-card { transition: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .coverage-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 72px; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .phone { width: 270px; }
  .phone-screen { min-height: 400px; }
}
@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-actions { display: none; }
  .burger { display: block; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan-card.popular { transform: none; }
  .why-wrap { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-shell { grid-template-columns: 1fr; }
  .dash-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; z-index: 210; transform: translateX(-100%); transition: transform .25s ease; height: 100%; }
  .dash-sidebar.open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.35); }
  .dash-burger { display: grid; place-items: center; }
  .dash-scrim { position: fixed; inset: 0; background: rgba(10,16,44,.5); z-index: 200; }
  .dash-main { padding: 0 18px 60px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 24px; }
  .cta-band { padding: 34px 26px; }
  .auth-card { padding: 28px 22px; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
  .pay-methods { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .dash-topbar { flex-wrap: wrap; }
  .toast-container { left: 16px; right: 16px; max-width: none; }
  .metric-row { grid-template-columns: 1fr; }
}

/* ---------- Дополнения кабинета ---------- */
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid #eef1f8; font-size: 14.5px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { text-align: right; }
.dash-burger { margin-left: 0; }
.filters .btn.active, .tx-filter.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.side-link .badge { font-size: 11px; padding: 2px 8px; }

/* ---------- Сетка «Стоимость услуг» ---------- */
.fees-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 920px; margin: 0 auto; }
@media (max-width: 640px) { .fees-grid { grid-template-columns: 1fr; } }

/* ---------- Кошелёк и приватность ---------- */
.wallet-box { background: #f7f9fe; border: 1px dashed #c8d3ef; border-radius: 12px; padding: 14px 16px; margin: 6px 0 16px; }
.wb-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.wb-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wb-row code { font-family: var(--mono); font-size: 12.5px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; word-break: break-all; flex: 1; min-width: 200px; }
.privacy-band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 34px; text-align: center; max-width: 780px; margin: 0 auto; box-shadow: 0 2px 10px rgba(16,26,64,.04); }
.privacy-band h2 { font-size: 23px; margin-bottom: 10px; }
.privacy-band p { color: var(--muted); margin: 0; font-size: 15.5px; }
.privacy-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 16px; background: var(--accent-soft); color: #0a7c70; }
.privacy-icon svg { width: 26px; height: 26px; }

/* ---------- Переключатель языка ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; background: #eef2f9; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang-btn { border: 0; background: none; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.lang-btn.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(16, 26, 64, .15); }
.header-actions .lang-switch { margin-right: 4px; }

/* ---------- Call screen ---------- */
.call-screen { text-align: center; padding: 8px 0 6px; }
.call-ava {
  width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  color: #fff; font-size: 32px; box-shadow: 0 0 0 12px rgba(74, 222, 128, .14);
}
.call-screen.ringing .call-ava { animation: call-pulse 1.3s ease-out infinite; }
@keyframes call-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .35); }
  70% { box-shadow: 0 0 0 30px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.call-dest { font-size: 16.5px; font-weight: 700; margin-bottom: 4px; word-break: break-all; }
.call-status { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.call-timer { font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: .05em; margin-bottom: 6px; }
.call-cost { font-size: 13.5px; color: var(--muted); }

@media (max-width: 980px) {
  .dash-burger { display: grid; place-items: center; width: 42px; height: 42px; background: #fff; border: 1px solid var(--line); border-radius: 10px; flex: 0 0 auto; }
}
