/* ───────── Odium Market · стили сайта ─────────
   Стиль: тёмно-синий градиент с сеткой, глянцевые «плашки» с голубой
   подсветкой, широкий жирный шрифт — как на аватарке и баннерах магазина. */

:root {
  --navy-950: #060a18;
  --navy-900: #0a1128;
  --blue-600: #2342c4;
  --blue-500: #3d63f0;
  --blue-400: #6b8dff;
  --blue-300: #9db4ff;
  --blue-200: #c9d6ff;
  --text: #f3f6ff;
  --muted: #98a8d6;
  --line: rgba(140, 170, 255, .2);
  --r-lg: 24px;
  --r-md: 16px;
  --font-display: "Unbounded", "Segoe UI Black", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(107, 141, 255, .5); }

/* ───── фон ───── */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 108%, rgba(120, 150, 255, .75) 0%, rgba(70, 100, 235, .35) 38%, transparent 70%),
    linear-gradient(180deg, #171a22 0%, #0f1736 32%, #142a74 68%, #2447c0 100%);
}
.bg-grid {
  position: absolute; inset: -120px;
  background-image:
    linear-gradient(rgba(140, 170, 255, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 255, .14) 1px, transparent 1px);
  background-size: 110px 110px;
  -webkit-mask-image: radial-gradient(130% 95% at 50% 100%, #000 8%, transparent 78%);
  mask-image: radial-gradient(130% 95% at 50% 100%, #000 8%, transparent 78%);
  animation: gridMove 26s linear infinite;
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; will-change: transform; }
.o1 { width: 520px; height: 520px; background: #3d63f0; left: -8%; top: 12%; animation: drift1 24s ease-in-out infinite alternate; }
.o2 { width: 640px; height: 640px; background: #6b8dff; right: -14%; bottom: -12%; opacity: .38; animation: drift2 30s ease-in-out infinite alternate; }
.o3 { width: 380px; height: 380px; background: #2a4fe0; left: 42%; top: 46%; opacity: .3; animation: drift1 28s ease-in-out infinite alternate-reverse; }
@keyframes gridMove { to { transform: translate3d(110px, 110px, 0); } }
@keyframes drift1 { to { transform: translate3d(140px, 90px, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-160px, -80px, 0) scale(1.1); } }

/* ───── раскладка ───── */
.container { width: min(1200px, 100%); margin-inline: auto; padding-inline: 24px; }
.narrow { width: min(860px, 100%); }
.section { padding-block: 84px; }
.section-head { max-width: 720px; margin-bottom: 40px; }

/* ───── типографика ───── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-200);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300); box-shadow: 0 0 12px var(--blue-300); }
.display {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(32px, 4.6vw, 62px); line-height: 1.05; letter-spacing: -.01em;
  margin: 20px 0;
  background: linear-gradient(180deg, #fff 30%, #c4d1ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.display.sm { font-size: clamp(28px, 3.6vw, 46px); margin: 14px 0; }
.grad {
  background: linear-gradient(90deg, var(--blue-400), #fff, var(--blue-400));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.h2 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(24px, 3vw, 38px); line-height: 1.12; margin: 16px 0 12px;
}
.sub { color: var(--muted); font-size: 17px; line-height: 1.55; margin: 0; }
.lead { color: #c8d3f5; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; max-width: 580px; margin: 0; }
.muted { color: var(--muted); }

/* ───── кнопки ───── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
}
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-primary { background: #fff; color: #0b1230; box-shadow: 0 10px 30px -8px rgba(140, 170, 255, .6); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(107, 141, 255, .45), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(140, 170, 255, .8); }
.btn-primary:hover::after { left: 130%; }
.btn-glass { background: rgba(255, 255, 255, .07); border-color: rgba(160, 190, 255, .4); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); border-color: rgba(190, 210, 255, .7); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

/* ───── стеклянные плашки ───── */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(24, 34, 76, .62), rgba(10, 16, 38, .72));
  border: 1px solid rgba(140, 170, 255, .22);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -28px rgba(5, 10, 40, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .3s, box-shadow .35s;
}
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(120, 160, 255, .22), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.glass:hover::before { opacity: 1; }
.glass:hover { border-color: rgba(170, 195, 255, .45); }

/* ───── шапка ───── */
.nav { position: sticky; top: 0; z-index: 50; padding-block: 14px; transition: background .3s, border-color .3s, padding .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(8, 12, 30, .66); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--line); padding-block: 10px; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { border-radius: 12px; border: 1px solid rgba(160, 190, 255, .35); box-shadow: 0 0 22px rgba(90, 130, 255, .4); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.brand-name b { font-weight: 500; color: var(--blue-300); margin-left: .35em; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-links a:not(.btn) { color: var(--blue-200); position: relative; transition: color .2s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); position: relative; }
.burger i { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, top .3s; }
.burger i:first-child { top: 17px; }
.burger i:last-child { top: 25px; }
.burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }

/* ───── главная: hero ───── */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-block: 64px 36px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 44px; list-style: none; padding: 0; margin: 48px 0 0; }
.hero-stats b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.1; }
.hero-stats span { color: var(--muted); font-size: 14px; }

.hero-visual { position: relative; height: 560px; perspective: 1400px; }
.hv-pos { position: absolute; width: 78%; translate: calc(var(--px, 0) * var(--k, 14px)) calc(var(--py, 0) * var(--k, 10px)); transition: translate .35s ease-out; }
.hv-a { top: 0; right: 0; --k: 18px; }
.hv-b { top: 31%; left: 0; --k: 10px; }
.hv-c { bottom: 0; right: 5%; --k: 28px; }
.hv-card {
  position: relative; border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(170, 195, 255, .55);
  box-shadow: 0 40px 90px -24px rgba(12, 32, 150, .85), 0 0 60px rgba(90, 130, 255, .22);
  transform: rotateY(var(--ry, -12deg)) rotateX(var(--rx, 5deg)) rotateZ(var(--rz, 1.5deg));
  animation: float 8s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.hv-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .2), transparent 38%); pointer-events: none; }
.hv-card img { display: block; width: 100%; }
.hv-b .hv-card { --ry: 12deg; --rz: -2deg; --d: -2.6s; }
.hv-c .hv-card { --ry: -8deg; --rx: -4deg; --rz: 1deg; --d: -5.2s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }

/* ───── бегущая строка ───── */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); background: rgba(8, 12, 30, .35);
  padding-block: 16px; margin-top: 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.marquee span {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(26px, 3.6vw, 44px); color: transparent; -webkit-text-stroke: 1px rgba(170, 195, 255, .55);
}
.marquee i { color: var(--blue-300); font-style: normal; font-size: 22px; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───── каталог ───── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.cat-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(40, 80, 230, .55), inset 0 1px 0 rgba(255, 255, 255, .08); }
.cat-media { overflow: hidden; aspect-ratio: 1200 / 540; background: #0a1128; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.07); }
.cat-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 20px 22px 22px; }
.cat-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.25; margin: 0; }
.cat-body p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; flex: 1; }
.cat-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.price-tag { font-weight: 700; color: var(--blue-200); }
.go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: all .3s var(--ease); }
.cat-card:hover .go { background: #fff; color: #0b1230; transform: translateX(4px); }

/* ───── шаги / оплата / FAQ ───── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.step { padding: 28px 26px; }
.step-n { display: block; font-family: var(--font-display); font-weight: 900; font-size: 46px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(170, 195, 255, .65); margin-bottom: 16px; }
.step h3, .pay-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.3; margin: 0 0 8px; }
.step p, .pay-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.pay-card { padding: 26px; }
.faq { display: grid; gap: 14px; }
.faq details { padding: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--blue-300); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 26px 24px; color: var(--muted); line-height: 1.7; }
.faq a, .prose a, .prose-sm a { color: var(--blue-300); text-decoration: underline; text-underline-offset: 3px; }
.banner-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 44px 48px; background: linear-gradient(120deg, rgba(61, 99, 240, .5), rgba(12, 20, 52, .75)); }
.banner-cta .cta { margin-top: 0; }

/* ───── подвал ───── */
.footer { margin-top: 40px; border-top: 1px solid var(--line); background: rgba(5, 8, 22, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.footer-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-block: 56px 32px; }
.f-brand p { color: var(--muted); font-size: 14px; max-width: 320px; margin: 16px 0 0; }
.f-col { display: flex; flex-direction: column; gap: 10px; }
.f-col h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-300); }
.f-col a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.f-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-block: 22px 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--blue-300); text-decoration: underline; text-underline-offset: 3px; }

/* ───── страница категории ───── */
.cat-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; gap: 48px; padding-block: 52px 8px; }
.cat-hero-card { --ry: -9deg; --rx: 3deg; --rz: 1deg; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.crumbs a:hover { color: #fff; }
.crumbs i { font-style: normal; opacity: .5; }
.cat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; padding-block: 34px 90px; align-items: start; }
.cat-aside { position: sticky; top: 96px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab { padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--blue-200); font-weight: 600; font-size: 14.5px; transition: all .25s var(--ease); }
.tab:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.tab.on { background: #fff; color: #0b1230; border-color: #fff; box-shadow: 0 8px 26px rgba(120, 160, 255, .4); }
.panel:not([hidden]) { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.features { list-style: none; margin: 0 0 18px; padding: 20px 24px; display: grid; gap: 9px; color: var(--blue-200); font-size: 15px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.item { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 22px; min-height: 160px; transition: transform .3s var(--ease), border-color .3s, box-shadow .35s; }
.item:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -22px rgba(40, 80, 230, .55); }
.item h3 { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.35; margin: 0 0 4px; }
.item p { margin: 2px 0 0; font-size: 13.5px; }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 22px; white-space: nowrap; }

.calc { padding: 30px; max-width: 540px; }
.calc h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0 0 6px; }
.calc p { margin: 0 0 20px; font-size: 14.5px; }
.stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.stepper button { width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .07); font-size: 24px; transition: all .2s; }
.stepper button:hover { background: #fff; color: #0b1230; }
.stepper input, .amount-field input { flex: 1; min-width: 0; text-align: center; background: transparent; border: 0; outline: 0; font-family: var(--font-display); font-weight: 700; font-size: 26px; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button,
.amount-field input::-webkit-outer-spin-button, .amount-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input, .amount-field input { -moz-appearance: textfield; appearance: textfield; }
.amount-field { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 18px; padding: 8px 22px; transition: border-color .2s; }
.amount-field:focus-within { border-color: var(--blue-400); }
.amount-field input { text-align: left; }
.amount-field span { font-size: 24px; color: var(--muted); }
.calc-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 22px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.calc-total span { color: var(--muted); }
.calc-total b { font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.calc-error { margin: -8px 0 16px; color: #ffb4b4; }
.calc .btn { width: 100%; }
.calc .cta { margin-top: 0; }
.calc .cta .btn { width: auto; }

.info { padding: 26px; }
.info h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin: 0 0 14px; }
.prose-sm { color: #c3cff0; font-size: 14.5px; line-height: 1.7; }
.prose-sm b { color: #fff; }
.prose-sm.note { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.warn { margin: 0 0 14px; padding: 11px 14px; border-radius: 12px; font-size: 14px; color: #ffe0ae; background: rgba(255, 190, 90, .1); border: 1px solid rgba(255, 190, 90, .32); }

/* ───── модальное окно ───── */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 18, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s; }
.modal-panel { position: relative; width: min(480px, 100%); max-height: 92vh; overflow: auto; padding: 34px 32px 30px; animation: pop .4s var(--ease); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .09); font-size: 22px; line-height: 1; transition: background .2s; }
.modal-x:hover { background: rgba(255, 255, 255, .2); }
.m-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.3; margin: 14px 0 20px; }
.m-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.m-row span { color: var(--muted); }
.m-row b { text-align: right; font-weight: 600; }
.m-total { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 22px; }
.m-total b { font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.m-note { margin: 16px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.modal-panel .btn { width: 100%; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } }
body.lock { overflow: hidden; }

/* ───── юридические страницы / 404 ───── */
.legal { padding-block: 56px 90px; }
.prose { padding: 38px 40px; line-height: 1.8; color: #cdd7f5; font-size: 15.5px; margin-top: 26px; }
.prose b { color: #fff; }
.notfound { padding-block: 110px 120px; }

/* ───── появление при прокрутке ───── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) calc(var(--i, 0) * 90ms), transform .9s var(--ease) calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ───── адаптив ───── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-block: 40px 20px; }
  .hero-visual { height: 460px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .cat-layout { grid-template-columns: 1fr; }
  .cat-aside { position: static; }
  .cat-hero { grid-template-columns: 1fr; gap: 28px; }
  .cat-hero-card { max-width: 560px; --ry: 0deg; --rx: 0deg; --rz: 0deg; }
}
@media (max-width: 880px) {
  .burger { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px 24px 20px; background: rgba(8, 12, 30, .97); border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; animation: panelIn .3s var(--ease); }
  .nav-links a:not(.btn) { padding: 12px 4px; font-size: 17px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 8px; }
}
@media (max-width: 720px) {
  .eyebrow { font-size: 11px; letter-spacing: .1em; padding: 7px 13px; }
  .container { padding-inline: 18px; }
  .section { padding-block: 56px; }
  .hero-visual { height: 360px; }
  .hv-pos { width: 86%; }
  .hero-stats { gap: 12px 30px; }
  .steps { grid-template-columns: 1fr; }
  .banner-cta { padding: 30px 24px; }
  .footer-in { grid-template-columns: 1fr; gap: 28px; }
  .prose { padding: 26px 22px; }
  .cat-hero { padding-block: 32px 0; }
  .calc { padding: 24px; }
}

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

/* ───── формы, вход, кабинет, заказы ───── */
.small { font-size: 13px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 600; color: var(--blue-200); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06); color: var(--text); font: inherit; outline: 0; resize: vertical;
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(152, 168, 214, .6); }
.field input:focus, .field textarea:focus { border-color: var(--blue-400); background: rgba(255, 255, 255, .09); }
.field .bad { border-color: #ff8a8a; }
.form-error { margin: 0 0 14px; padding: 11px 14px; border-radius: 12px; font-size: 14px; color: #ffc9c9; background: rgba(255, 90, 90, .12); border: 1px solid rgba(255, 120, 120, .35); }
.form-error[hidden] { display: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.stack { display: grid; gap: 10px; }
.stack .btn { width: 100%; }

.auth-wrap { display: grid; place-items: center; padding-block: 56px 90px; }
.auth-card { width: min(460px, 100%); padding: 38px 36px; }
.auth-card .h2 { margin-top: 0; }
.auth-card .tabs { margin: 24px 0 20px; }
.auth-card form .btn { width: 100%; }
.or { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.oauth { display: grid; gap: 10px; }
.oauth .btn { width: 100%; }
.tg-wait { margin-top: 20px; padding: 18px; border-radius: 16px; border: 1px dashed rgba(170, 195, 255, .45); background: rgba(255, 255, 255, .04); }
.tg-wait[hidden] { display: none; }
.tg-wait p { margin: 0 0 12px; font-size: 14.5px; }
.tg-wait .cta { margin-top: 0; }

.acc { padding-block: 44px 90px; }
.acc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.acc-head .display { margin-bottom: 0; }
.notice { padding: 14px 20px; margin: 0 0 20px; font-size: 14.5px; border-radius: 16px; }
.notice[hidden] { display: none; }
.acc-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; align-items: start; }
.acc-col { display: grid; gap: 22px; }
.panel-box { padding: 26px; }
.panel-box h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin: 0 0 16px; }
.panel-box[hidden] { display: none; }
.bal { display: flex; flex-direction: column; margin-bottom: 14px; }
.bal b { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.2; }
.bal span { color: var(--muted); font-size: 13px; }
.links { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 4px; }
.links li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.links li:last-child { border-bottom: 0; }
.links span { font-weight: 600; min-width: 112px; }
.links em { flex: 1; min-width: 0; font-style: normal; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links .btn[hidden] { display: none; }
#pwForm { margin-top: 18px; }
#pwForm[hidden] { display: none; }

.orders { display: grid; gap: 10px; }
.order-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); transition: background .2s, border-color .2s, transform .25s var(--ease); }
.order-row:hover { background: rgba(255, 255, 255, .09); border-color: rgba(170, 195, 255, .5); transform: translateX(3px); }
.o-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.o-main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-amount { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.chip { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid var(--line); background: rgba(255, 255, 255, .07); }
.chip.tone-ok, .chip.tone-done { color: #b9f5c9; border-color: rgba(90, 200, 130, .5); background: rgba(60, 200, 110, .12); }
.chip.tone-action { color: #fff; background: rgba(61, 99, 240, .55); border-color: rgba(140, 170, 255, .7); }
.chip.tone-wait { color: #ffe3a8; border-color: rgba(255, 200, 100, .45); background: rgba(255, 190, 90, .1); }
.chip.tone-bad { color: #ffc9c9; border-color: rgba(255, 120, 120, .45); background: rgba(255, 90, 90, .1); }

.order { padding-block: 44px 90px; display: grid; gap: 22px; }
.o-status { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 18px; }
.o-status .dot { width: 12px; height: 12px; border-radius: 50%; background: #ffc864; box-shadow: 0 0 14px currentColor; color: #ffc864; animation: pulse 1.8s ease-in-out infinite; }
.o-status.tone-ok .dot, .o-status.tone-done .dot { background: #5ad285; color: #5ad285; animation: none; }
.o-status.tone-action .dot { background: var(--blue-400); color: var(--blue-400); }
.o-status.tone-bad .dot { background: #ff7a7a; color: #ff7a7a; animation: none; }
@keyframes pulse { 50% { opacity: .35; } }
.pay-list { display: grid; gap: 10px; margin: 16px 0; }
.pay-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 16px 20px; border-radius: 16px; text-align: left; color: inherit; font: inherit; cursor: pointer; transition: transform .25s var(--ease), border-color .25s; }
.pay-opt:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(190, 210, 255, .75); }
.pay-opt:disabled { opacity: .5; cursor: not-allowed; }
.pay-opt b { font-weight: 600; font-size: 16px; }
.pay-link { margin-top: 18px; padding: 18px; border-radius: 16px; background: rgba(61, 99, 240, .18); border: 1px solid rgba(140, 170, 255, .45); }
.pay-link[hidden] { display: none; }
.pay-link p { margin: 0 0 12px; }

.co-form { margin-top: 20px; }
.co-form .btn { width: 100%; }
.help { margin-top: 10px; font-size: 14px; }
.help summary { cursor: pointer; color: var(--blue-300); font-weight: 600; }
.help .prose-sm { margin-top: 10px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); }

@media (max-width: 980px) { .acc-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .auth-card { padding: 28px 22px; }
  .order-row { flex-wrap: wrap; }
  .o-main { flex-basis: 100%; }
}