/* ============================== Токены ============================== */
:root {
  --bg: #07080c;
  --bg-2: #0c0e15;
  --surface: #11141d;
  --surface-2: #171b27;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #eef1f7;
  --muted: #8b93a7;
  --dim: #5f6679;
  --red: #ff3d2e;
  --red-2: #ff7a3d;
  --gold: #f3b75b;
  --green: #3ecf8e;
  --grad: linear-gradient(135deg, #ff7a3d 0%, #ff3d2e 55%, #d11f4a 100%);
  --radius: 20px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --font-head: "Unbounded", "Manrope", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

/* ============================== База ============================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: clip;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1000px 600px at 8% -12%, rgba(255, 61, 46, .15), transparent 60%),
    radial-gradient(800px 500px at 108% 8%, rgba(243, 183, 91, .07), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(209, 31, 74, .09), transparent 60%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 70%);
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0; }
::selection { background: rgba(255, 61, 46, .45); color: #fff; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ============================== Кнопки ============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px; border: 1px solid transparent; background: none;
  font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: transform .18s, box-shadow .25s, background .2s, border-color .2s;
}
.btn .ic { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 61, 46, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(255, 61, 46, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.btn-lg { padding: 17px 28px; font-size: 16px; border-radius: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn[disabled] { opacity: .4; pointer-events: none; box-shadow: none; }
.w-100 { width: 100%; }

.icon-box {
  width: 50px; height: 50px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255, 122, 61, .2), rgba(255, 61, 46, .05));
  border: 1px solid rgba(255, 122, 61, .28); color: var(--red-2);
}
.icon-box .ic { width: 24px; height: 24px; }
.icon-box.solid { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -8px rgba(255, 61, 46, .6); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 700; color: #d9deea;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(62, 207, 142, .18); animation: pulse 2s infinite; }

.chip {
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: #c9cfdc;
  padding: 7px 14px; border-radius: 99px; font-weight: 700; font-size: 13px; cursor: pointer; transition: .15s;
}
.chip:hover { border-color: rgba(255, 122, 61, .6); color: #fff; background: rgba(255, 61, 46, .1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.badge { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: rgba(243, 183, 91, .13); color: var(--gold); white-space: nowrap; }
.badge.free { background: rgba(62, 207, 142, .13); color: var(--green); }

/* ============================== Шапка ============================== */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.site-header.scrolled { background: rgba(7, 8, 12, .75); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-color: var(--line); }
.nav-wrap { display: flex; align-items: center; gap: 24px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; }
.logo svg { width: 44px; height: 44px; transform: rotate(-6deg); filter: drop-shadow(0 8px 16px rgba(255, 61, 46, .45)); transition: transform .3s cubic-bezier(.2, .9, .3, 1.4); }
.logo:hover svg { transform: rotate(6deg) scale(1.08); }
.logo b { color: var(--red-2); font-weight: 800; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 15px; transition: .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.active { color: var(--text); background: rgba(255, 255, 255, .08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  align-items: center; justify-content: center;
}
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .nav-actions { margin-left: auto; }
  .nav {
    position: fixed; top: 80px; left: 12px; right: 12px; margin: 0;
    flex-direction: column; padding: 10px; border-radius: 18px;
    background: rgba(14, 16, 24, .97); border: 1px solid var(--line-2); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .2s;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 16px; font-size: 16px; }
  .hide-sm { display: none !important; }
}

/* ============================== Секции ============================== */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 56px 0; }
.pt-0 { padding-top: 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before, .eyebrow::after { content: ""; width: 20px; height: 1px; background: currentColor; opacity: .6; }
.section-title { font-size: clamp(28px, 4vw, 44px); margin: 14px 0; }
.section-sub { color: var(--muted); font-size: 17px; }

/* ============================== Hero ============================== */
.hero { position: relative; padding: 48px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero-title { font-size: clamp(40px, 6.2vw, 74px); font-weight: 800; margin: 22px 0; letter-spacing: -.03em; line-height: 1.04; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: #c9cfdc; font-weight: 600; font-size: 14px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ic { width: 18px; height: 18px; color: var(--green); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: -1; }
.hero, .page-hero { overflow-x: clip; }
.glow.g1 { width: 520px; height: 520px; background: rgba(255, 61, 46, .26); top: -140px; right: -140px; animation: drift 14s ease-in-out infinite; }
.glow.g2 { width: 420px; height: 420px; background: rgba(243, 183, 91, .1); bottom: -160px; left: -160px; animation: drift 16s ease-in-out infinite reverse; }
.hero-visual { position: relative; }
.float-medal { position: absolute; z-index: 2; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .65)); animation: bob 6s ease-in-out infinite; }
.float-medal.m1 { top: -96px; left: -70px; }
.float-medal.m2 { bottom: -70px; right: -60px; animation-delay: -2s; }
.float-medal.m3 { top: 36%; left: -104px; animation-delay: -4s; }
@media (max-width: 1100px) { .float-medal { display: none; } }

/* Карточка со стеклом */
.glass {
  position: relative; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.glass::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 122, 61, .7), transparent 35%, transparent 65%, rgba(243, 183, 91, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* Быстрый расчёт */
.qc { padding: 28px; }
.qc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.qc-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--font-head); font-size: 16px; }
.qc-title .ic { color: var(--gold); }
.toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.toggle button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 800; font-size: 13px; color: var(--muted); cursor: pointer; transition: .2s; display: inline-flex; align-items: center; gap: 6px; }
.toggle button .ic { width: 16px; height: 16px; }
.toggle button.on { background: var(--grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(255, 61, 46, .7); }
.qc-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.qc-field { background: rgba(0, 0, 0, .32); border: 1px solid var(--line); border-radius: 18px; padding: 16px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qc-field .medal { margin-bottom: 4px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); }
.qc-field label { font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.qc-field input { width: 100%; background: none; border: 0; color: var(--text); font: 800 26px var(--font-head); text-align: center; outline: none; padding: 0; }
.qc-field small { font-size: 12px; color: var(--muted); font-weight: 700; }
.arrow-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 8px 20px -6px rgba(255, 61, 46, .7); flex: none; }
.arrow-dot .ic { width: 18px; height: 18px; }
.qc .chips { justify-content: center; margin-top: 16px; }
.qc-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 22px 0 18px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.qc-total small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.qc-total strong { font: 800 40px/1 var(--font-head); letter-spacing: -.02em; }
.qc-total strong em { font-style: normal; color: var(--gold); font-size: 24px; margin-left: 4px; }
.qc-meta { color: var(--muted); font-size: 13px; text-align: right; font-weight: 600; }
.qc-error { color: #ff9f95; font-size: 13px; text-align: center; margin-top: 10px; font-weight: 600; }
@media (max-width: 480px) { .qc { padding: 20px; } .qc-field input { font-size: 22px; } .qc-total strong { font-size: 32px; } }

/* ============================== Статистика ============================== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); display: flex; gap: 16px; align-items: center; }
.stat-card b { display: block; font: 800 24px/1.15 var(--font-head); white-space: nowrap; }
.stat-card b + span { color: var(--muted); font-size: 14px; }

/* ============================== Услуги ============================== */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }
.service {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 32px; border-radius: 26px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.service:hover { transform: translateY(-6px); border-color: rgba(255, 122, 61, .4); box-shadow: 0 30px 60px -30px rgba(255, 61, 46, .45); }
.service::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 61, 46, .22), transparent 70%); top: -130px; right: -110px; opacity: .55; transition: .3s; pointer-events: none; }
.service:hover::after { opacity: 1; }
.service.featured { border-color: rgba(255, 122, 61, .45); background: linear-gradient(180deg, #1c1318, var(--bg-2)); }
.service .tag { position: absolute; top: 26px; right: 26px; z-index: 1; font-size: 11px; font-weight: 800; padding: 5px 11px; border-radius: 99px; background: var(--grad); color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.service h3 { font-size: 22px; margin: 24px 0 10px; }
.service > p { color: var(--muted); }
.service .price { margin: 24px 0; font: 800 30px var(--font-head); }
.service .price small { font: 700 14px var(--font); color: var(--muted); margin-left: 4px; }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: #c9cfdc; font-size: 15px; }
.checklist .ic { width: 18px; height: 18px; color: var(--green); margin-top: 3px; }
.service .btn { margin-top: auto; }

/* ============================== Шаги ============================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 30px 26px; border-radius: 22px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); transition: .3s; }
.step:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.step-num { position: absolute; top: 16px; right: 22px; font: 800 52px var(--font-head); color: rgba(255, 255, 255, .045); line-height: 1; }
.step h3 { font-size: 18px; margin: 22px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ============================== Преимущества ============================== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 30px; border-radius: 22px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); transition: .3s; }
.feature:hover { border-color: rgba(255, 122, 61, .35); background: rgba(255, 61, 46, .04); transform: translateY(-4px); }
.feature h3 { font-size: 18px; margin: 20px 0 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ============================== Лестница рангов ============================== */
.ladder { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
@media (max-width: 1060px) { .ladder { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .ladder { grid-template-columns: repeat(2, 1fr); } }
.rung { --c: #fff; text-align: center; padding: 24px 10px 20px; border-radius: 20px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); transition: .3s; }
.rung:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 24px 44px -26px var(--c); }
.rung .medal { display: block; margin: 0 auto 14px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); transition: transform .3s; }
.rung:hover .medal { transform: scale(1.08) translateY(-2px); }
.medal-img { object-fit: contain; flex: none; }
.rung b { display: block; font-family: var(--font-head); font-size: 14px; }
.rung span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.rung em { display: block; font-style: normal; color: var(--gold); font-weight: 800; font-size: 13px; margin-top: 10px; }

/* ============================== FAQ ============================== */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.faq-item[open] { border-color: rgba(255, 122, 61, .35); background: rgba(255, 61, 46, .04); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 17px; border-radius: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q { color: var(--red-2); }
.faq-item summary .chev { margin-left: auto; color: var(--muted); transition: transform .25s; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .answer { padding: 0 22px 22px 56px; color: var(--muted); animation: fade .3s; }
@media (max-width: 560px) { .faq-item .answer { padding-left: 22px; } .faq-item summary { font-size: 16px; } }
.faq-group + .faq-group { margin-top: 52px; }
.faq-group-head { max-width: 860px; margin: 0 auto 18px; display: flex; align-items: center; gap: 14px; }
.faq-group-head h2 { font-size: 22px; }

/* ============================== CTA ============================== */
.cta-banner {
  position: relative; overflow: hidden; border-radius: 30px; padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(255, 122, 61, .35), transparent 60%),
    radial-gradient(600px 320px at 100% 100%, rgba(209, 31, 74, .35), transparent 60%),
    linear-gradient(135deg, #1a0f13, #0e0d14);
  border: 1px solid rgba(255, 122, 61, .3);
}
.cta-banner h2 { font-size: clamp(26px, 3.6vw, 40px); }
.cta-banner p { color: #d9cbcf; margin-top: 10px; max-width: 520px; }
.cta-mascot svg { display: block; width: 104px; height: 104px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); animation: bob 6s ease-in-out infinite; }
@media (max-width: 560px) { .cta-mascot svg { width: 80px; height: 80px; } }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .cta-banner { padding: 34px 24px; } }

/* ============================== Подвал ============================== */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 40px; background: rgba(0, 0, 0, .3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-grid h4 { font: 800 12px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-links a, .footer-links .muted-row { color: #c9cfdc; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.footer-links .muted-row { color: var(--muted); }
.footer-links a:hover { color: #fff; }
.footer-links .ic { width: 18px; height: 18px; color: var(--red-2); }
.footer-about p { color: var(--muted); margin-top: 16px; max-width: 340px; font-size: 15px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; color: var(--dim); font-size: 13px; }

/* ============================== Шапка внутренних страниц ============================== */
.page-hero { position: relative; padding: 40px 0 40px; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.page-title { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.025em; }
.page-sub { color: var(--muted); font-size: 17px; max-width: 660px; margin-top: 16px; }

/* ============================== Панели ============================== */
.panel { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { font-size: 18px; }
.panel-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.panel-head .icon-box { width: 44px; height: 44px; border-radius: 13px; }
.panel-head .icon-box .ic { width: 21px; height: 21px; }
.panel-head .aside { margin-left: auto; }
@media (max-width: 560px) { .panel { padding: 20px; border-radius: 20px; } }

/* ============================== Калькулятор ============================== */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
@media (max-width: 1020px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
.calc-main, .summary { display: grid; gap: 20px; min-width: 0; }
/* Не даём широким таблицам растягивать панели: таблица прокручивается внутри своей обёртки */
.calc-main, .stack, .summary { grid-template-columns: minmax(0, 1fr); }
.calc-main > *, .stack > *, .summary > *, .split > * { min-width: 0; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tab {
  display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  padding: 18px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); transition: .25s;
}
.tab:hover { border-color: var(--line-2); }
.tab .icon-box { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--muted); transition: .25s; }
.tab b { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 700; }
.tab small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.tab[aria-selected="true"] { border-color: rgba(255, 122, 61, .55); background: linear-gradient(180deg, rgba(255, 61, 46, .15), rgba(255, 61, 46, .03)); box-shadow: inset 0 0 0 1px rgba(255, 122, 61, .3), 0 24px 44px -28px rgba(255, 61, 46, .7); }
.tab[aria-selected="true"] .icon-box { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -8px rgba(255, 61, 46, .6); }
@media (max-width: 560px) { .tab { padding: 14px; gap: 10px; } .tab small { display: none; } .tab .icon-box { width: 40px; height: 40px; } .tab b { font-size: 14px; } }
.tabs-4 { grid-template-columns: repeat(4, 1fr); }
.tabs-4 .tab { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
@media (max-width: 900px) { .tabs-4 { grid-template-columns: repeat(2, 1fr); } .tabs-4 .tab { flex-direction: row; align-items: center; } }

/* Калибровка */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.type-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 680px) { .type-grid { grid-template-columns: 1fr; } }
.type-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); cursor: pointer; transition: .2s; }
.type-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.type-top { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; }
.type-top b { font-size: 15px; }
.type-card small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.type-card strong { font: 800 22px var(--font-head); margin-top: 8px; }
.type-card[aria-pressed="true"] { border-color: rgba(255, 122, 61, .6); background: linear-gradient(180deg, rgba(255, 61, 46, .13), rgba(255, 61, 46, .03)); box-shadow: inset 0 0 0 1px rgba(255, 122, 61, .3); }
.type-card[aria-pressed="true"] .checkmark { background: var(--grad); border-color: transparent; color: #fff; }
.surcharge-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.surcharge-chips span { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.surcharge-chips span.on { border-color: rgba(243, 183, 91, .5); color: var(--gold); background: rgba(243, 183, 91, .1); }

/* Победы: бонус */
.bonus-note { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: rgba(62, 207, 142, .08); border: 1px solid rgba(62, 207, 142, .3); color: var(--green); font-weight: 700; font-size: 14px; }
.bonus-note .ic { width: 18px; height: 18px; }
.pill-opt .lbl .ic { width: 18px; height: 18px; color: var(--red-2); }

.mmr-duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
@media (max-width: 680px) { .mmr-duo { grid-template-columns: 1fr; } .mmr-duo .arrow-dot { transform: rotate(90deg); margin: -4px auto; } }
.mmr-box { position: relative; overflow: hidden; display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 20px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.mmr-box::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(180px 140px at 0% 50%, var(--glow, transparent), transparent 70%); opacity: .12; transition: background .4s; }
.mmr-box .medal { position: relative; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)); }
.mmr-info { position: relative; flex: 1; min-width: 0; }
.mmr-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mmr-rank { display: block; font-weight: 800; font-size: 14px; margin: 2px 0 10px; color: var(--rc, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.stepper { display: flex; align-items: center; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: 13px; overflow: hidden; }
.stepper button { width: 40px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; flex: none; transition: .15s; }
.stepper button:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.stepper button .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.stepper input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; color: var(--text); text-align: center; font: 800 20px var(--font-head); outline: none; padding: 0; }

.track-wrap { margin-top: 28px; }
.track-area { position: relative; height: 36px; }
.track { position: absolute; left: 0; right: 0; top: 50%; height: 10px; transform: translateY(-50%); border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.track .seg { position: absolute; top: 0; bottom: 0; opacity: .3; }
.track-sel { position: absolute; top: 50%; height: 10px; transform: translateY(-50%); border-radius: 99px; background: var(--grad); box-shadow: 0 0 20px rgba(255, 61, 46, .55); pointer-events: none; }
.dual input, .range {
  -webkit-appearance: none; appearance: none; margin: 0; background: none; outline: none;
}
.dual input { position: absolute; inset: 0; width: 100%; height: 36px; pointer-events: none; }
.dual input::-webkit-slider-thumb, .range::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; cursor: grab; box-sizing: border-box;
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid var(--red);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .6), 0 0 0 5px rgba(255, 61, 46, .18); transition: box-shadow .2s;
}
.dual input::-moz-range-thumb, .range::-moz-range-thumb {
  pointer-events: auto; cursor: grab; box-sizing: border-box; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid var(--red);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .6), 0 0 0 5px rgba(255, 61, 46, .18);
}
.dual input::-moz-range-track { background: none; }
.dual input:active::-webkit-slider-thumb, .range:active::-webkit-slider-thumb { cursor: grabbing; box-shadow: 0 4px 14px rgba(0, 0, 0, .6), 0 0 0 9px rgba(255, 61, 46, .22); }
.dual input:focus-visible::-webkit-slider-thumb, .range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--gold); }
.ticks { display: flex; justify-content: space-between; margin-top: 6px; color: var(--dim); font-size: 12px; font-weight: 700; }
.track-wrap + .chips { margin-top: 18px; }

.range { width: 100%; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--red-2) 0%, var(--red) var(--p, 0%), rgba(255, 255, 255, .07) var(--p, 0%)); cursor: pointer; }

.wins-box { display: flex; align-items: center; gap: 20px; padding: 20px; border-radius: 20px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); flex-wrap: wrap; }
.wins-emblem { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 14px 30px -10px rgba(255, 61, 46, .7); flex: none; }
.wins-emblem .ic { width: 34px; height: 34px; }
.wins-box .stepper { width: 200px; }
.wins-meta { margin-left: auto; text-align: right; }
.wins-meta small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.wins-meta b { font: 800 20px var(--font-head); }
.wins-range { margin-top: 24px; }
.wins-range + .chips { margin-top: 18px; }

.param + .param { margin-top: 24px; }
.param-label { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 12px; font-size: 15px; }
.param-label .ic { width: 18px; height: 18px; color: var(--red-2); }
.pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pill-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); cursor: pointer; font-weight: 700; font-size: 14px; text-align: left; transition: .18s; }
.pill-opt:hover { border-color: var(--line-2); }
.pill-opt .lbl { display: flex; align-items: center; gap: 10px; }
.pill-opt .dotc { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 10px currentColor; }
.pill-opt .pct { font-size: 12px; font-weight: 800; color: var(--muted); }
.pill-opt[aria-pressed="true"] { border-color: rgba(255, 122, 61, .6); background: rgba(255, 61, 46, .1); box-shadow: inset 0 0 0 1px rgba(255, 122, 61, .35); }
.pill-opt[aria-pressed="true"] .pct { color: var(--gold); }

.opts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 680px) { .opts-grid { grid-template-columns: 1fr; } }
.opt-tile { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); cursor: pointer; transition: .2s; }
.opt-tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.opt-tile input { position: absolute; opacity: 0; pointer-events: none; }
.opt-tile .icon-box { width: 46px; height: 46px; border-radius: 13px; background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: #aeb6c7; transition: .2s; }
.opt-tile .icon-box .ic { width: 22px; height: 22px; }
.opt-body { flex: 1; min-width: 0; }
.opt-body b { display: block; font-size: 15px; line-height: 1.3; }
.opt-body small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 4px; }
.opt-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.checkmark { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #3b4254; display: grid; place-items: center; color: transparent; transition: .2s; }
.checkmark .ic { width: 14px; height: 14px; stroke-width: 3.2; }
.opt-tile.on { border-color: rgba(255, 122, 61, .55); background: linear-gradient(180deg, rgba(255, 61, 46, .13), rgba(255, 61, 46, .03)); }
.opt-tile.on .icon-box { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 61, 46, .7); }
.opt-tile.on .checkmark { background: var(--grad); border-color: transparent; color: #fff; }
.opt-tile:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt-tile:has(input:not(:focus-visible)):focus-within { outline: none; }

/* Итог */
.summary { position: sticky; top: 94px; display: grid; gap: 16px; }
.sum-card {
  position: relative; overflow: hidden; padding: 26px; border-radius: 26px;
  background: radial-gradient(420px 220px at 100% 0%, rgba(255, 61, 46, .18), transparent 70%), linear-gradient(180deg, #151822, #0c0e15);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.sum-top { display: flex; justify-content: space-between; align-items: center; }
.sum-mode { font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: #d6dbe6; }
.sum-route { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 20px 0; padding: 14px; border-radius: 18px; background: rgba(0, 0, 0, .32); border: 1px solid var(--line); }
.sum-end { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sum-end .medal { flex: none; }
.sum-end b { display: block; font: 800 17px var(--font-head); }
.sum-end small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum-route > .ic { color: var(--red-2); }
.sum-total { font: 800 54px/1 var(--font-head); letter-spacing: -.03em; display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.sum-total small { font-size: 28px; color: var(--gold); }
.sum-lines { margin: 18px 0; padding: 16px 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); display: grid; gap: 9px; font-size: 14px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.sum-line span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sum-line .ic { width: 16px; height: 16px; }
.sum-line span:last-child { color: #d6dbe6; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-line.plus span:last-child { color: var(--gold); }
.sum-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.mini { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.mini small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.mini b { font-size: 17px; font-variant-numeric: tabular-nums; }
.sum-note { color: var(--dim); font-size: 12px; text-align: center; margin-top: 14px; }
.sum-error { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 61, 46, .1); border: 1px solid rgba(255, 61, 46, .35); color: #ffb0a6; font-size: 14px; font-weight: 600; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trust div { padding: 14px 8px; border-radius: 16px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); text-align: center; font-size: 12px; line-height: 1.35; color: var(--muted); font-weight: 700; }
.trust .ic { display: block; margin: 0 auto 8px; color: var(--red-2); }

/* Мобильная панель */
.mobile-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none;
  align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 20px;
  background: rgba(16, 18, 26, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}
.mobile-bar small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.mobile-bar b { font: 800 22px var(--font-head); white-space: nowrap; }
@media (max-width: 1020px) {
  .mobile-bar { display: flex; }
  body.has-bar { padding-bottom: 88px; }
  .summary { position: static; }
}

/* ============================== Таблицы ============================== */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 540px; }
.table th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 800; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.table tfoot td { font-weight: 800; border-top: 1px solid var(--line-2); border-bottom: 0; }
.table .bar-cell { width: 24%; min-width: 100px; }
.rank-cell { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.bar { height: 6px; border-radius: 99px; background: var(--grad); min-width: 4px; }
.bd-scroll { max-height: 440px; overflow: auto; }
.bd-scroll thead th { position: sticky; top: 0; background: #10131b; z-index: 1; }
.empty-row td { color: var(--muted); text-align: center; padding: 28px 14px; white-space: normal; }

/* ============================== Прайс и контакты ============================== */
.sur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.sur-item { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.sur-item .icon-box { width: 44px; height: 44px; border-radius: 13px; }
.sur-item .icon-box .ic { width: 21px; height: 21px; }
.sur-item b { display: block; font-size: 15px; line-height: 1.3; }
.sur-item small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.sur-item .badge { margin-left: auto; }
.stack { display: grid; gap: 20px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.contact-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); transition: .3s; }
.contact-card:hover { transform: translateY(-5px); border-color: rgba(255, 122, 61, .4); box-shadow: 0 30px 60px -34px rgba(255, 61, 46, .55); }
.contact-card h3 { font-size: 18px; margin-top: 6px; }
.contact-card p { color: var(--muted); font-size: 15px; word-break: break-all; }
.contact-card .btn { margin-top: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.num-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: n; }
.num-list li { display: flex; gap: 16px; align-items: flex-start; counter-increment: n; }
.num-list li::before { content: counter(n); flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; font: 800 14px var(--font-head); }
.num-list b { display: block; }
.num-list span { color: var(--muted); font-size: 15px; }

/* ============================== Модальное окно ============================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 8, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .2s; }
.modal-dialog { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow: auto; padding: 28px; border-radius: 26px; background: linear-gradient(180deg, #161a25, #0d0f16); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .85); animation: pop .28s cubic-bezier(.2, .9, .3, 1.15); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.modal-close:hover { color: #fff; }
.modal-head { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; padding-right: 44px; }
.modal-head h3 { font-size: 20px; }
.modal-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.order-list { margin: 0; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.order-list div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; font-size: 14px; }
.order-list div + div { border-top: 1px solid var(--line); }
.order-list dt { color: var(--muted); }
.order-list dd { margin: 0; font-weight: 700; text-align: right; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 2px 20px; color: var(--muted); font-weight: 700; }
.order-total b { font: 800 32px var(--font-head); color: var(--text); }
.modal-actions { display: grid; gap: 10px; }
.modal-note { color: var(--dim); font-size: 12px; text-align: center; margin-top: 14px; }

/* ============================== Уведомление ============================== */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: #fff; color: #0b0d12; font-weight: 800; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: .25s; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { color: var(--green); stroke-width: 3; }
@media (max-width: 1020px) { .has-bar .toast { bottom: 100px; } }

.toast-error .ic { color: var(--red); }

/* ============================== Формы ============================== */
.input {
  width: 100%; background: rgba(0, 0, 0, .32); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px;
  font: 500 15px var(--font); outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: rgba(243, 183, 91, .7); box-shadow: 0 0 0 3px rgba(243, 183, 91, .12); }
.input::placeholder { color: var(--dim); }
textarea.input { resize: vertical; min-height: 46px; line-height: 1.5; }
select.input { cursor: pointer; }
select.input option { background: var(--surface); }
.field-block { display: grid; gap: 7px; }
.field-block > span:first-child { font-size: 13px; font-weight: 700; color: var(--muted); }
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.input-wrap { position: relative; display: block; }
.input-wrap .input { padding-right: 48px; }
.input-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.input-eye:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.secure-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.secure-note .ic { width: 16px; height: 16px; color: var(--green); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); color: #c9cfdc; font-size: 14px; line-height: 1.5; }
.notice .ic { width: 18px; height: 18px; color: var(--gold); margin-top: 2px; }
.small-note { font-size: 12px; margin: 0; }

/* ============================== Статусы заказа ============================== */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 99px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-blue { color: #7cb8ff; background: rgba(124, 184, 255, .12); }
.status-gold { color: var(--gold); background: rgba(243, 183, 91, .12); }
.status-green { color: var(--green); background: rgba(62, 207, 142, .12); }
.status-red { color: #ff7a6e; background: rgba(255, 90, 78, .12); }
.status-muted { color: var(--muted); background: rgba(255, 255, 255, .06); }

/* ============================== Страница заказа ============================== */
.order-title-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
@media (max-width: 1020px) { .order-grid { grid-template-columns: minmax(0, 1fr); } }
.save-link { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: rgba(243, 183, 91, .08); border: 1px solid rgba(243, 183, 91, .3); color: #f1dcb4; font-size: 14px; font-weight: 600; }
.save-link > .ic { color: var(--gold); }
.save-link .btn { margin-left: auto; }
.account-saved { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; border-radius: 16px; background: rgba(62, 207, 142, .07); border: 1px solid rgba(62, 207, 142, .3); }
.account-saved .icon-box { width: 44px; height: 44px; background: rgba(62, 207, 142, .15); border-color: rgba(62, 207, 142, .35); color: var(--green); }
.account-saved p { margin-top: 2px; font-size: 14px; }
.account-saved .btn { margin-left: auto; }
.order-error { text-align: center; padding: 48px 24px; max-width: 560px; margin: 0 auto; }

/* ============================== Чат ============================== */
.chat-card { position: sticky; top: 94px; display: flex; flex-direction: column; height: min(640px, calc(100vh - 120px)); border-radius: 24px; background: linear-gradient(180deg, #151822, #0c0e15); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
@media (max-width: 1020px) { .chat-card { position: static; height: 520px; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-head .icon-box { width: 42px; height: 42px; border-radius: 12px; }
.chat-head .icon-box .ic { width: 20px; height: 20px; }
.chat-head b { display: block; font-family: var(--font-head); font-size: 15px; }
.chat-head small { display: block; color: var(--muted); font-size: 12px; }
.chat-box { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; }
.msg-mine { justify-content: flex-end; }
.msg-bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.msg-mine .msg-bubble { border-radius: 16px 16px 4px 16px; background: linear-gradient(135deg, rgba(255, 122, 61, .22), rgba(255, 61, 46, .16)); border-color: rgba(255, 122, 61, .35); }
.msg-bubble b { display: block; font-size: 12px; color: var(--gold); margin-bottom: 2px; }
.msg-mine .msg-bubble b { color: #ffb59c; }
.msg-bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.5; }
.msg time { display: block; font-size: 11px; color: var(--dim); margin-top: 4px; text-align: right; }
.msg-system { flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.msg-system span { font-size: 12px; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; }
.msg-system time { margin: 0; text-align: center; }
.chat-empty { margin: auto; display: grid; justify-items: center; gap: 8px; color: var(--dim); font-size: 14px; }
.chat-empty .ic { width: 32px; height: 32px; }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form .input { resize: none; max-height: 140px; }
.chat-send { width: 46px; height: 46px; padding: 0; flex: none; }

/* ============================== Админ-панель ============================== */
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 400px; display: grid; gap: 18px; padding: 32px; }
.login-card h1 { font-size: 24px; }
.login-error { color: #ff9f95; font-size: 14px; font-weight: 600; margin: 0; }
.admin-app { display: flex; flex-direction: column; height: 100vh; }
.admin-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--line); background: rgba(7, 8, 12, .85); }
.admin-top .logo svg { width: 36px; height: 36px; }
.admin-tag { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); }
.admin-top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.admin-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); }
@media (max-width: 900px) { .admin-app { height: auto; } .admin-grid { grid-template-columns: minmax(0, 1fr); } .admin-list { max-height: 55vh; border-right: 0; border-bottom: 1px solid var(--line); } }
.admin-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.admin-list-head { padding: 14px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.admin-list-head .chip { padding: 5px 10px; font-size: 12px; }
.admin-list-head .chip.on { border-color: rgba(255, 122, 61, .6); color: #fff; background: rgba(255, 61, 46, .14); }
.chip-count { margin-left: 6px; opacity: .6; }
.admin-views .chip { display: inline-flex; align-items: center; gap: 8px; }
.admin-views .chip.on { border-color: rgba(255, 122, 61, .6); color: #fff; background: rgba(255, 61, 46, .14); }
.admin-views .unread { margin-left: 0; }
.order-items { flex: 1; min-height: 0; overflow-y: auto; padding: 10px; display: grid; gap: 8px; align-content: start; }
.order-item { text-align: left; display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); cursor: pointer; transition: .15s; }
.order-item:hover { border-color: var(--line-2); }
.order-item.active { border-color: rgba(255, 122, 61, .55); background: rgba(255, 61, 46, .08); }
.oi-top { display: flex; align-items: center; gap: 8px; }
.oi-top b { font-family: var(--font-head); font-size: 15px; }
.unread { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.oi-title { font-weight: 700; font-size: 14px; }
.oi-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.oi-last { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-detail { min-height: 0; overflow-y: auto; padding: 20px; }
.admin-empty { height: 100%; min-height: 300px; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--dim); text-align: center; }
.admin-empty.small { min-height: 160px; }
.admin-empty .ic { width: 36px; height: 36px; }
.detail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-head h2 { font-size: 26px; }
.status-select { width: auto; min-width: 200px; }
.detail-actions { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.btn-danger { background: rgba(255, 90, 78, .1); border-color: rgba(255, 90, 78, .35); color: #ff8a80; }
.btn-danger:hover { background: rgba(255, 90, 78, .2); border-color: rgba(255, 90, 78, .6); color: #fff; transform: translateY(-2px); }
.detail-cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
@media (max-width: 1280px) { .detail-cols { grid-template-columns: minmax(0, 1fr); } }
.admin-chat { top: 0; height: calc(100vh - 160px); }
@media (max-width: 1280px) { .admin-chat { position: static; height: 520px; } }
.kv { display: grid; gap: 10px; }
.kv-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.kv-row small { color: var(--muted); font-size: 12px; min-width: 74px; }
.kv-row code { flex: 1; min-width: 0; font: 600 14px ui-monospace, "Cascadia Mono", Consolas, monospace; color: #fff; word-break: break-all; }
.kv-row .btn { padding: 7px 9px; }
.copy-row { display: flex; gap: 10px; }

/* ============================== Анимации ============================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(62, 207, 142, 0); } }
@keyframes drift { 50% { transform: translate(-40px, 30px) scale(1.08); } }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-4deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
