@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════
   ARCANE BLUEPRINT — deep night-forge:
   cold cyan runes + ember sparks on charcoal-blue
   ═══════════════════════════════════════════════ */
:root {
  --bg: #060A0D;
  --bg-subtle: #0B1218;
  --surface: #0C1319;
  --surface-hover: #111B22;
  --border: #1C2B33;
  --border-hover: #2E4650;

  /* двойной акцент: холодный циан + горячий янтарь */
  --cyan: #5FD9E4;
  --cyan-bright: #A8F0F5;
  --cyan-dim: #3FA8B4;
  --cyan-glow: rgba(95, 217, 228, 0.15);
  --cyan-glow-strong: rgba(95, 217, 228, 0.30);

  --ember: #FF9E4A;
  --ember-bright: #FFC38A;
  --ember-deep: #D96F1E;
  --ember-glow: rgba(255, 158, 74, 0.15);
  --ember-glow-strong: rgba(255, 158, 74, 0.32);

  --accent-ink: #041014;

  --platinum: #E9F1F2;
  --text: #E9F1F2;
  --text-muted: #8CA3AB;
  --text-dim: #5A7078;

  --pane: rgba(12, 19, 25, 0.66);
  --pane-line: rgba(95, 217, 228, 0.22);

  --font-heading: 'Cormorant', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  font-family: var(--font-body);
  background: radial-gradient(120% 80% at 50% -10%, var(--bg-subtle), var(--bg) 60%), var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-heading); letter-spacing: 0.3px; }

/* ═══════════════════════════════════════════════
   AMBIENT — cyan mist + ember heat orbs
   ═══════════════════════════════════════════════ */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  animation: orb-float 20s ease-in-out infinite;
}

.aurora-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(95, 217, 228, 0.14), transparent 70%);
  top: -10%; left: 20%;
  animation-delay: 0s;
  opacity: 0.7;
}

.aurora-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 158, 74, 0.10), transparent 70%);
  top: 30%; right: -5%;
  animation-delay: -7s;
  opacity: 0.55;
}

.aurora-orb--3 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(95, 217, 228, 0.09), transparent 70%);
  bottom: -15%; left: -10%;
  animation-delay: -14s;
  opacity: 0.6;
}

.aurora-orb--4 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(217, 111, 30, 0.10), transparent 70%);
  top: 60%; right: 30%;
  animation-delay: -3s;
  opacity: 0.5;
}

@keyframes orb-float {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.4; }
  25%  { transform: translate(80px, -60px) scale(1.15); opacity: 0.75; }
  50%  { transform: translate(-40px, 40px) scale(0.9); opacity: 0.55; }
  75%  { transform: translate(60px, 80px) scale(1.1); opacity: 0.85; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
}

/* Noise grain overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* ═══════════════════════════════════════════════
   NAVBAR — GLASSMORPHISM
   ═══════════════════════════════════════════════ */
.navbar {
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
  z-index: 100;
}

.navbar.scrolled {
  background: rgba(6, 10, 13, 0.6);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: rgba(95, 217, 228, 0.14);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
}

.hero-glow--main {
  width: 900px; height: 900px;
  background: conic-gradient(
    from 180deg,
    rgba(95, 217, 228, 0.16),
    rgba(255, 158, 74, 0.08),
    rgba(95, 217, 228, 0.12),
    rgba(217, 111, 30, 0.10),
    rgba(95, 217, 228, 0.16)
  );
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: hero-rotate 25s linear infinite;
}

@keyframes hero-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Blueprint grid with perspective */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(95, 217, 228, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 217, 228, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
  perspective: 400px;
  transform: rotateX(40deg) scale(2);
  transform-origin: center 80%;
}

/* Gradient text — cyan → white → ember, как заголовки в презентациях */
.text-gradient {
  background: linear-gradient(
    90deg,
    var(--cyan) 0%,
    var(--cyan-bright) 25%,
    var(--platinum) 50%,
    var(--ember-bright) 75%,
    var(--ember) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shimmer 4s ease-in-out infinite;
}

@keyframes text-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Shimmer line */
.shimmer-line {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-dim), var(--cyan), var(--ember), transparent);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.shimmer-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 250, 251, 0.7), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ═══════════════════════════════════════════════
   GLASS CARDS / PANES
   ═══════════════════════════════════════════════ */
.card {
  background: var(--pane);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(95, 217, 228, 0.12);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(95, 217, 228, 0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(95, 217, 228, 0.30);
  box-shadow:
    0 0 40px rgba(95, 217, 228, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(232, 250, 251, 0.05);
  transform: translateY(-4px);
}

.card:hover::before { opacity: 1; }

/* Featured card — ember edge (горячий контур) */
.card-featured {
  position: relative;
}

.card-featured::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(135deg, var(--ember), transparent 40%, transparent 60%, var(--cyan-dim));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none; /* декоративная рамка не должна перехватывать клики */
}

.card-featured:hover {
  border-color: rgba(255, 158, 74, 0.30);
  box-shadow:
    0 0 40px rgba(255, 158, 74, 0.10),
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 243, 224, 0.05);
}

/* ═══════════════════════════════════════════════
   CASE / STAT NUMBERS
   ═══════════════════════════════════════════════ */
.case-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-bright), var(--platinum));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(95, 217, 228, 0.30));
}

.case-number--ember {
  background: linear-gradient(135deg, var(--ember), var(--ember-bright), var(--platinum));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(255, 158, 74, 0.30));
}

.case-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ═══════════════════════════════════════════════
   CTA BUTTON — EMBER FORGE GRADIENT
   ═══════════════════════════════════════════════ */
.btn-primary {
  background: linear-gradient(160deg, var(--ember), var(--ember-deep));
  color: var(--accent-ink);
  font-weight: 700;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 243, 224, 0.30), transparent);
  animation: btn-shimmer 3.5s ease-in-out infinite;
}

@keyframes btn-shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 22px rgba(255, 158, 74, 0.35),
    0 10px 34px rgba(255, 158, 74, 0.25);
}

.btn-primary:active {
  transform: translateY(1px) scale(1);
}

.btn-outline {
  background: rgba(95, 217, 228, 0.06);
  color: var(--platinum);
  border: 1px solid var(--pane-line);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(95, 217, 228, 0.12);
  box-shadow: 0 0 20px rgba(95, 217, 228, 0.18);
  transform: translateY(-2px);
}

.btn-outline--ember {
  background: rgba(255, 158, 74, 0.06);
  border-color: rgba(255, 158, 74, 0.28);
}

.btn-outline--ember:hover {
  border-color: var(--ember);
  background: rgba(255, 158, 74, 0.12);
  box-shadow: 0 0 20px rgba(255, 158, 74, 0.20);
}

/* ═══════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════ */
.price-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

.price-tag--ember {
  color: var(--ember);
}

/* ═══════════════════════════════════════════════
   SECTION DIVIDER — cyan core, ember flare
   ═══════════════════════════════════════════════ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--cyan) 50%, var(--border) 80%, transparent 100%);
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: -4px; left: 0; right: 0; height: 9px;
  background: linear-gradient(90deg, transparent 0%, transparent 40%, rgba(95, 217, 228, 0.18) 50%, transparent 60%, transparent 100%);
  filter: blur(4px);
}

/* ═══════════════════════════════════════════════
   GLOW DOTS — cyan / ember, pulsing
   ═══════════════════════════════════════════════ */
.glow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow:
    0 0 6px var(--cyan),
    0 0 12px var(--cyan-glow-strong),
    0 0 24px var(--cyan-glow);
  animation: dot-pulse 3s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 6px var(--cyan), 0 0 12px var(--cyan-glow-strong); }
  50% { box-shadow: 0 0 8px var(--cyan), 0 0 20px var(--cyan-glow-strong), 0 0 40px var(--cyan-glow); }
}

.glow-dot--ember {
  background: var(--ember);
  box-shadow:
    0 0 6px var(--ember),
    0 0 12px var(--ember-glow-strong),
    0 0 24px var(--ember-glow);
  animation: dot-pulse-ember 3s ease-in-out infinite;
}

@keyframes dot-pulse-ember {
  0%, 100% { box-shadow: 0 0 6px var(--ember), 0 0 12px var(--ember-glow-strong); }
  50% { box-shadow: 0 0 8px var(--ember), 0 0 20px var(--ember-glow-strong), 0 0 40px var(--ember-glow); }
}

/* ═══════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92) translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible { opacity: 1; transform: scale(1) translateY(0); }

/* ═══════════════════════════════════════════════
   PHOTO — COLD FRAME, EMBER UNDERGLOW
   ═══════════════════════════════════════════════ */
.photo-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.photo-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(95, 217, 228, 0.18) 0%,
    transparent 40%,
    transparent 60%,
    rgba(217, 111, 30, 0.16) 100%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}

.photo-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, var(--cyan), var(--cyan-dim), transparent, var(--ember), var(--cyan));
  border-radius: 26px;
  z-index: -1;
  opacity: 0.5;
  animation: photo-border-spin 10s linear infinite;
}

@keyframes photo-border-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.photo-container img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(25%) contrast(1.06) brightness(0.95);
}

/* ═══════════════════════════════════════════════
   PDF MODAL — просмотр презентации
   ═══════════════════════════════════════════════ */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pdf-modal[hidden] { display: none; }

.pdf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pdf-modal__panel {
  position: relative;
  width: min(1100px, 96vw);
  height: min(85vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--pane-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(95, 217, 228, 0.10),
    0 24px 80px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.pdf-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.pdf-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.pdf-modal__close:hover {
  color: var(--platinum);
  border-color: var(--ember);
  box-shadow: 0 0 14px rgba(255, 158, 74, 0.25);
}

.pdf-modal__frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #1a1a1a;
}

body.modal-open { overflow: hidden; }

/* ═══════════════════════════════════════════════
   CASE SCREENSHOTS + LIGHTBOX
   ═══════════════════════════════════════════════ */
.case-shot {
  display: block;
  padding: 0;
  border: 1px solid rgba(95, 217, 228, 0.14);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-subtle);
  cursor: zoom-in;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-shot:hover {
  border-color: rgba(255, 158, 74, 0.45);
  box-shadow:
    0 0 24px rgba(255, 158, 74, 0.14),
    0 8px 28px rgba(0, 0, 0, 0.45);
  transform: translateY(-3px);
}

.case-shot:hover img { transform: scale(1.04); }

.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.img-lightbox[hidden] { display: none; }

.img-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 8, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.img-lightbox__img {
  position: relative;
  max-width: min(1400px, 94vw);
  max-height: 88vh;
  border-radius: 12px;
  border: 1px solid var(--pane-line);
  box-shadow:
    0 0 60px rgba(95, 217, 228, 0.10),
    0 24px 80px rgba(0, 0, 0, 0.7);
  animation: modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

/* ═══════════════════════════════════════════════
   BUY MODAL — оформление и оплата тарифа
   ═══════════════════════════════════════════════ */
.buy-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.buy-modal[hidden] { display: none; }

.buy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 8, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.buy-modal__panel {
  position: relative;
  width: min(520px, 96vw);
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--pane-line);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  box-shadow:
    0 0 60px rgba(95, 217, 228, 0.10),
    0 24px 80px rgba(0, 0, 0, 0.65);
  animation: modal-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.buy-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.buy-includes {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(95, 217, 228, 0.04);
  border: 1px solid rgba(95, 217, 228, 0.10);
}

.buy-includes li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.buy-includes li + li { margin-top: 0.5rem; }

.buy-includes li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow-strong);
}

.buy-terms {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-dim);
  border-left: 2px solid var(--border);
  padding-left: 0.9rem;
  margin-bottom: 1.25rem;
}

.buy-field { display: block; margin-bottom: 1rem; }

.buy-field > span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.buy-field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.buy-field input::placeholder { color: var(--text-dim); }

.buy-field input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(95, 217, 228, 0.12);
}

.buy-error {
  color: #FF6B6B;
  font-size: 0.8rem;
  margin: -0.5rem 0 1rem;
}

.buy-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.buy-consent input {
  margin-top: 0.15rem;
  width: 18px; height: 18px;
  accent-color: var(--cyan);
  flex-shrink: 0;
  cursor: pointer;
}

.buy-consent a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.buy-consent a:hover { color: var(--cyan-bright); }

.buy-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.buy-submit:disabled::after { animation: none; }

/* Оплата — QR (инвертированный под тёмную тему) + телефон */
.buy-qr {
  display: flex;
  justify-content: center;
  padding: 1.1rem;
  margin: 0 auto 1.25rem;
  width: fit-content;
  border-radius: 16px;
  background: #05090c;
  border: 1px solid var(--pane-line);
  box-shadow: inset 0 0 0 1px rgba(95, 217, 228, 0.05);
}

.buy-qr__img {
  display: block;
  width: 240px;
  height: 240px;
  /* исходный QR — чёрный на белом; инвертируем под стиль сайта */
  filter: invert(1);
}

.buy-phone {
  text-align: center;
  margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════
   LEGAL PAGES — читаемая проза оферты/политики
   ═══════════════════════════════════════════════ */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 7rem 1.25rem 5rem;
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.legal .legal-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--platinum);
  margin: 2.25rem 0 0.9rem;
}

.legal p, .legal li {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.97rem;
}

.legal p { margin-bottom: 0.9rem; }

.legal ul, .legal ol { margin: 0 0 0.9rem 1.25rem; }
.legal li { margin-bottom: 0.4rem; }

.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--cyan-bright); }

.legal .legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.legal .legal-back:hover { color: var(--platinum); }

.legal-req {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--pane);
  border: 1px solid var(--pane-line);
}

.legal-req dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; }
.legal-req dt { color: var(--text-dim); font-size: 0.9rem; }
.legal-req dd { color: var(--text); font-size: 0.9rem; }

/* Заметный маркер незаполненного реквизита — не пропустить перед публикацией */
.fill {
  background: rgba(255, 158, 74, 0.18);
  color: var(--ember-bright);
  padding: 0 0.35em;
  border-radius: 4px;
  border: 1px dashed var(--ember-deep);
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale { opacity: 1; transform: none; transition: none; }
  .aurora-orb { animation: none !important; opacity: 0.5; }
  .hero-glow--main { animation: none; }
  .text-gradient { animation: none; }
  .shimmer-line::after { animation: none; }
  .btn-primary::after { animation: none; }
  .photo-container::before { animation: none; }
  .glow-dot, .glow-dot--ember { animation: none; }
  .pdf-modal__panel { animation: none; }
  html { scroll-behavior: auto; }
  .card:hover, .btn-primary:hover { transform: none; }
}

/* ═══════════════════════════════════════════════
   MOBILE OPTIMIZATIONS
   ═══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .aurora-orb { filter: blur(80px); }
  .aurora-orb--1 { width: 300px; height: 300px; opacity: 0.4; }
  .aurora-orb--2 { width: 250px; height: 250px; opacity: 0.3; }
  .aurora-orb--3 { width: 350px; height: 350px; opacity: 0.35; }
  .aurora-orb--4 { width: 200px; height: 200px; opacity: 0.25; }
  .hero-glow--main { width: 500px; height: 500px; }
  .card { border-radius: 14px; }
  .pdf-modal { padding: 0.5rem; }
  .pdf-modal__panel { width: 100%; height: 92dvh; }
}

/* ═══════════════════════════════════════════════
   LAYERING + FOCUS + SCROLLBAR
   ═══════════════════════════════════════════════ */
section, nav, footer {
  position: relative;
  z-index: 2;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--border), var(--cyan-dim));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }
