:root {
  --bg: #060814;
  --bg-deep: #03040a;
  --surface: rgba(15, 20, 36, 0.72);
  --surface-strong: rgba(13, 18, 32, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.05);

  --line: rgba(221, 229, 255, 0.12);
  --line-strong: rgba(225, 232, 255, 0.24);
  --line-warm: rgba(230, 193, 122, 0.22);

  --text: #f5f3ec;
  --muted: #b6c0d4;
  --muted-2: #8a95ae;

  --accent: #e9c577;
  --accent-soft: #f4d99a;
  --accent-deep: #c9a356;
  --accent-2: #7be0d0;
  --accent-3: #9aaeff;
  --accent-warm: #ff9d6c;
  --danger: #ff6f9a;

  --grad-gold: linear-gradient(135deg, #f7e0a3 0%, #e9c577 45%, #c9a356 100%);
  --grad-aurora: linear-gradient(120deg, #9aaeff 0%, #7be0d0 40%, #e9c577 100%);
  --grad-cool: linear-gradient(135deg, #9aaeff 0%, #7be0d0 100%);

  --container: min(1200px, calc(100vw - 40px));
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.28);
  --shadow-glow: 0 22px 60px rgba(230, 193, 122, 0.22);

  --topbar-pad: 76px;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);

  --pointer-x: 50%;
  --pointer-y: 30%;

  /* Local, dependency-free font stacks (no external CDN). The display stack
     leans on the crisp geometric UI faces shipped with each OS; the body
     stack is the fast, privacy-friendly native system stack. */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Segoe UI", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Arial Black", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-pad) + 28px);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #050610;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection,
::selection {
  color: #10131c;
  background: var(--accent);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

/* ---------- Background: Aurora mesh + grain + grid ---------- */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 14% 12%, rgba(154, 174, 255, 0.22), transparent 65%),
    radial-gradient(55% 50% at 88% 8%, rgba(230, 193, 122, 0.22), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(123, 224, 208, 0.18), transparent 70%),
    radial-gradient(40% 35% at 80% 60%, rgba(255, 157, 108, 0.1), transparent 70%),
    linear-gradient(180deg, #07091a 0%, #050714 45%, #03040a 100%);
}

.site-bg::before,
.site-bg::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
}

.site-bg::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(230, 193, 122, 0.16), transparent 35%),
    radial-gradient(circle at 75% 70%, rgba(123, 224, 208, 0.14), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(154, 174, 255, 0.12), transparent 40%);
  filter: blur(40px);
  animation: aurora-drift 22s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

.site-bg::after {
  /* Subtle grain overlay */
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.07;
  mix-blend-mode: overlay;
}

#hero-particles {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  pointer-events: none;
}

/* Soft grid that fades out */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.7) 0%, transparent 65%);
}

/* Cursor spotlight in hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    420px circle at var(--pointer-x) var(--pointer-y),
    rgba(230, 193, 122, 0.14),
    rgba(123, 224, 208, 0.06) 30%,
    transparent 60%
  );
  transition: background 0.15s linear;
}

/* Site-wide cursor spotlight — a soft ambient gold glow that trails the
   cursor. Fixed, below content but above the page background. JS sets
   --cursor-x/--cursor-y (px) on a fine pointer only; without JS it stays at
   the default centre and is effectively invisible. */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    circle 320px at var(--cursor-x, 50%) var(--cursor-y, 50%),
    rgba(233, 196, 106, 0.06),
    transparent 70%
  );
}

.cursor-glow.is-active {
  opacity: 1;
}

@keyframes aurora-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, -1.5%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(-1.5%, 1.5%, 0) scale(1.02);
  }
}

.section {
  position: relative;
  width: var(--container);
  margin: 0 auto;
  padding: 96px 0 24px;
}

/* ---------- Topbar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 7, 16, 0.74);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(230, 193, 122, 0.5) 35%,
    rgba(123, 224, 208, 0.45) 65%,
    transparent
  );
  opacity: 0.55;
}

.topbar-inner {
  width: var(--container);
  min-height: var(--topbar-pad);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(230, 193, 122, 0.28), rgba(142, 167, 255, 0.12)),
    rgba(12, 16, 28, 0.85);
  color: #fff3cf;
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 0 0 22px rgba(230, 193, 122, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(230, 193, 122, 0.65), rgba(123, 224, 208, 0.3) 60%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy > span {
  font-family: var(--font-display);
  font-weight: 800;
}

.brand-copy small {
  color: var(--muted-2);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.topnav a {
  position: relative;
  padding: 10px 2px;
  transition: color 0.2s ease;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-smooth);
}

.topnav a:hover {
  color: var(--text);
}

.topnav a:hover::after {
  transform: scaleX(1);
}

/* CTA button inside the nav */
.nav-cta {
  margin-left: 6px;
  padding: 9px 16px !important;
  border-radius: var(--radius-pill);
  color: #18120a;
  background: var(--grad-gold);
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(230, 193, 122, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  color: #18120a;
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(230, 193, 122, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Burger + checkbox-hack toggle (hidden on desktop) */
.nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(230, 193, 122, 0.3);
  border-radius: 12px;
  background: rgba(230, 193, 122, 0.06);
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-burger span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-soft);
  transition: transform 0.3s var(--ease-smooth), opacity 0.2s ease;
}

.nav-toggle:checked ~ .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked ~ .nav-burger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked ~ .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.cart-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(230, 193, 122, 0.36);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  color: var(--text);
  background: rgba(230, 193, 122, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cart-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 193, 122, 0.7);
  background: rgba(230, 193, 122, 0.13);
  box-shadow: 0 10px 28px rgba(230, 193, 122, 0.18);
}

.cart-badge {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--grad-gold);
  color: #17130a;
  font-size: 0.78rem;
  font-weight: 800;
}

/* ---------- Marquee strip ---------- */

.marquee {
  position: fixed;
  top: var(--topbar-pad);
  left: 0;
  right: 0;
  z-index: 49;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 7, 16, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.marquee-track {
  display: flex;
  gap: 48px;
  padding: 9px 48px 9px 0;
  width: max-content;
  color: var(--muted-2);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* Scrolling is driven by site.js via translateX in a requestAnimationFrame
     loop — no CSS animation — so it runs identically across browsers and is
     unaffected by prefers-reduced-motion resets. If JS is off, the ribbon
     simply sits static (content stays readable). Pause-on-hover is handled
     in JS as well. */
  will-change: transform;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(230, 193, 122, 0.6);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--topbar-pad) + 96px);
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 58px;
}

.hero > * {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  position: relative;
  font-size: clamp(4rem, 9.6vw, 8rem);
  max-width: 760px;
  letter-spacing: -0.055em;
  background: linear-gradient(180deg, #ffffff 0%, #d6cdb6 65%, #b29c6c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45));
}

h1::after {
  /* Hero title underline glow */
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 140px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-gold);
  box-shadow: 0 0 28px rgba(230, 193, 122, 0.5);
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.28rem, 1.9vw, 1.75rem);
  letter-spacing: -0.022em;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero-kicker {
  max-width: 620px;
  margin-top: 32px;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  color: #d8deed;
}

.hero-cta,
.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-cta {
  margin-top: 34px;
}

.btn {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  isolation: isolate;
}

/* Small version tag inside a button (e.g. «Скачать · бесплатно 2 дня v1.0.0»). */
.btn small {
  font-size: 0.74em;
  font-weight: 600;
  opacity: 0.68;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #18120a;
  background: var(--grad-gold);
  box-shadow: 0 18px 40px rgba(230, 193, 122, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45), transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease-smooth);
}

.btn-primary:hover::after {
  transform: translateX(110%);
}

.btn-primary:hover {
  box-shadow: 0 22px 50px rgba(230, 193, 122, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-secondary {
  color: #eef3ff;
  border: 1px solid rgba(221, 229, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  border-color: rgba(221, 229, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 650px;
  margin-top: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.hero-proof div {
  position: relative;
  min-height: 110px;
  padding: 22px;
  background: rgba(11, 14, 26, 0.92);
  transition: background 0.3s ease;
}

.hero-proof div:hover {
  background: rgba(20, 24, 40, 0.92);
}

.hero-proof strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-proof span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-stage {
  position: relative;
  min-height: 680px;
  perspective: 1400px;
}

/* Hero app windows — two floating product screenshots stacked with depth.
   Two <figure.app-window> layered inside .hero-windows; the whole group tilts
   on pointer move (JS sets --tilt-x/--tilt-y; see site.js) with a per-window
   parallax depth factor. Reduced-motion and coarse pointers keep it static. */

.hero-windows {
  position: absolute;
  inset: 4% 0 auto 0;
  height: 500px;
  transform-style: preserve-3d;
  transform:
    perspective(1600px)
    rotateX(calc(var(--tilt-x, 0deg) + 6deg))
    rotateY(calc(var(--tilt-y, 0deg) - 8deg));
  transition: transform 0.4s var(--ease-smooth);
  will-change: transform;
}

.app-window {
  position: absolute;
  margin: 0;
  border-radius: 16px;
  border: 1px solid rgba(230, 193, 122, 0.18);
  background: rgba(8, 11, 22, 0.92);
  overflow: hidden;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

/* Soft gold glow behind each window. */
.app-window::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(120% 120% at 78% 8%, rgba(230, 193, 122, 0.16), transparent 55%);
  pointer-events: none;
  z-index: 2;
}

.app-window-bar {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Windows: кнопки в правом углу, не в левом */
  gap: 16px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(20, 26, 44, 0.96), rgba(12, 16, 30, 0.96));
  border-bottom: 1px solid rgba(221, 229, 255, 0.08);
  position: relative;
  z-index: 1;
}

/* Кнопки окна в стиле Windows: свернуть / развернуть / закрыть, справа и
   монохромные. Раньше здесь были три цветных кружка слева — это Mac, а мы
   продаём программы для Windows, и картинка должна совпадать с тем, что
   покупатель увидит у себя. */
.app-window-bar span {
  position: relative;
  width: 10px;
  height: 10px;
  color: rgba(221, 229, 255, 0.5);
}

/* свернуть — черта по центру */
.app-window-bar span:nth-child(1)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: currentColor;
}

/* развернуть — контур окна */
.app-window-bar span:nth-child(2) {
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 1px;
}

/* закрыть — крестик из двух черт */
.app-window-bar span:nth-child(3)::before,
.app-window-bar span:nth-child(3)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: currentColor;
}

.app-window-bar span:nth-child(3)::before {
  transform: rotate(45deg);
}

.app-window-bar span:nth-child(3)::after {
  transform: rotate(-45deg);
}

.app-window img {
  display: block;
  width: 100%;
  height: auto;
}

/* Toolkit (light UI) sits behind, up and to the right, smaller and rotated. */
.app-window-back {
  top: 0;
  right: 0;
  width: 62%;
  transform: translateZ(20px) rotate(3deg);
}

/* Ownership (dark green) is the larger front element, overlapping and lower-left. */
.app-window-front {
  bottom: 0;
  left: 0;
  width: 78%;
  transform: translateZ(90px);
  border-color: rgba(123, 224, 208, 0.24);
  box-shadow:
    0 50px 110px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Helper Panel — узкая вертикальная панель. Стоит в самой глубине сцены:
   спереди её низ закрывает окно Ownership, и панель не «режет» его, а уходит
   за него — так три окна читаются стопкой, а не наложением. Ширины хватает,
   чтобы дотянуться до соседнего окна и не оставить пустого коридора между
   ними. Фиолетовый кант — акцент самой программы. */
.app-window-side {
  /* Низ привязан к низу сцены — как у окна Ownership, которое стоит спереди.
     Поэтому нижний край панели уходит за это окно на любой ширине экрана, а
     не «почти уходит»: при позиционировании сверху запас съедался на других
     разрешениях, и панель торчала из-под соседа. Высота ограничена, лишнее
     обрезается — внизу скриншота всё равно пустое место. */
  bottom: 14%;
  left: 6%;
  width: 32%;
  max-height: 80%;
  transform: translateZ(0) rotate(-2deg);
  border-color: rgba(150, 130, 255, 0.3);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.metric-panel span,
.section-label,
.product-type,
.bundle-card > span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.metric-panel strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 2.55rem;
  letter-spacing: -0.05em;
  color: #fff;
}

.mini-bars {
  height: 60px;
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 16px;
}

.mini-bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent-2), rgba(119, 215, 200, 0.22));
  box-shadow: 0 0 16px rgba(123, 224, 208, 0.22);
  animation: bar-pulse 4.2s ease-in-out infinite;
}

.mini-bars i:nth-child(2) {
  animation-delay: -0.6s;
}

.mini-bars i:nth-child(3) {
  animation-delay: -1.2s;
}

.mini-bars i:nth-child(4) {
  animation-delay: -1.8s;
}

@keyframes bar-pulse {
  0%,
  100% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  50% {
    transform: scaleY(0.86);
  }
}

.orbital-card {
  position: absolute;
  z-index: 2;
  width: min(260px, 42vw);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(11, 16, 30, 0.84);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  animation: floatCard 6s ease-in-out infinite;
  transition: transform 0.4s var(--ease-smooth);
}

.orbital-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(230, 193, 122, 0.55), rgba(154, 174, 255, 0.25), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.orbital-card span {
  display: block;
  color: var(--accent-2);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.orbital-card strong {
  display: block;
  margin-top: 8px;
  line-height: 1.3;
  color: #fff;
}

.orbital-card-a {
  right: 0;
  top: 4%;
}

.orbital-card-b {
  left: 2%;
  bottom: 9%;
  animation-delay: -2.4s;
}

.orbital-card-b::before {
  background: linear-gradient(140deg, rgba(123, 224, 208, 0.55), rgba(154, 174, 255, 0.25), transparent 60%);
}

.orbital-card-b span {
  color: var(--accent);
}

/* ---------- Section intro ---------- */

.section-intro {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-intro h2,
.analytics-copy h2,
.proof-panel h2,
.contact-copy h2,
.about-text h2 {
  margin-top: 14px;
}

.section-intro p,
.analytics-copy p,
.contact-copy p,
.about-text p {
  max-width: 720px;
  margin-top: 18px;
  font-size: 1.04rem;
}

/* ---------- Value grid (bento) ---------- */

.value-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 14px;
}

.value-card {
  position: relative;
  min-height: 240px;
  padding: 26px 26px 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), transparent 42%),
    rgba(12, 17, 31, 0.88);
  overflow: hidden;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s ease;
}

.value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(221, 229, 255, 0.16), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.3s ease;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.value-card:hover::before {
  background: linear-gradient(140deg, rgba(230, 193, 122, 0.45), rgba(123, 224, 208, 0.2), transparent 60%);
}

.value-card-hero {
  grid-row: span 2;
  background:
    radial-gradient(80% 60% at 20% 15%, rgba(230, 193, 122, 0.18), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 42%),
    rgba(12, 17, 31, 0.92);
  min-height: 100%;
}

.value-card-hero .card-visual {
  position: relative;
  margin: 22px 0 20px;
  height: 180px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(230, 193, 122, 0.3), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(123, 224, 208, 0.25), transparent 55%),
    rgba(5, 7, 16, 0.7);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.value-card-hero .card-visual::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0 18px,
      transparent 18px 36px
    );
  mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
}

.value-card-hero .card-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 193, 122, 0.45), transparent 65%);
  filter: blur(6px);
  animation: floatCard 5s ease-in-out infinite;
}

.card-index {
  display: block;
  color: rgba(230, 193, 122, 0.78);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.value-card h3 {
  margin-top: 18px;
}

.value-card p {
  margin-top: 14px;
}

/* ---------- Analytics ---------- */

.analytics {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 38px;
  align-items: center;
}

.analytics-board {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.chart-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 48%),
    rgba(11, 16, 28, 0.88);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.chart-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(221, 229, 255, 0.18), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.chart-wide {
  grid-row: span 2;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.chart-head span {
  color: var(--muted);
}

.chart-head strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  letter-spacing: -0.04em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bar-chart {
  display: grid;
  gap: 22px;
}

.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 48px;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.bar-row i {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.bar-row i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 22px rgba(230, 193, 122, 0.35);
  transition: width 1.4s var(--ease-smooth);
}

.bar-row.is-animated i::after {
  width: var(--bar);
}

.bar-row b {
  color: #fff;
  font-family: var(--font-display);
}

.radial-card {
  display: grid;
  gap: 14px;
  place-items: start;
}

.radial-chart {
  position: relative;
  width: 142px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #0d1322 53%, transparent 54%),
    conic-gradient(from -90deg, var(--accent-2) 0deg, var(--accent) 280deg, rgba(255, 255, 255, 0.09) 280deg);
}

.radial-chart::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 224, 208, 0.2), transparent 70%);
  z-index: -1;
  animation: floatCard 4s ease-in-out infinite;
}

.radial-chart span {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.flow-card {
  display: grid;
  align-content: space-between;
  gap: 20px;
}

.flow-steps {
  display: grid;
  gap: 10px;
}

.flow-steps span {
  position: relative;
  display: block;
  border: 1px solid rgba(221, 229, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 11px 14px 11px 36px;
  color: #e9edf7;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.flow-steps span:hover {
  border-color: rgba(230, 193, 122, 0.45);
  background: rgba(230, 193, 122, 0.06);
}

.flow-steps span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 14px rgba(123, 224, 208, 0.7);
  transform: translateY(-50%);
}

/* ---------- Products ---------- */

.products {
  display: grid;
  gap: 26px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 28px;
  align-items: stretch;
  border-radius: var(--radius-lg);
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 44%),
    rgba(10, 14, 26, 0.92);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(221, 229, 255, 0.18), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.3s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.5);
}

.product-card:hover::before {
  background: linear-gradient(140deg, rgba(230, 193, 122, 0.45), rgba(123, 224, 208, 0.18), transparent 60%);
}

/* Card spotlight — a gold radial glow that follows the cursor inside product,
   faq and review cards. JS sets per-card --mx/--my (px); the overlay is
   revealed on hover only. Purely additive: no effect without JS or on touch. */
.card-spot {
  position: relative;
}

.card-spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 180px at var(--mx, 50%) var(--my, 50%),
    rgba(230, 193, 122, 0.1),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.card-spot:hover::after {
  opacity: 1;
}

/* Keep card content above the spotlight overlay. */
.product-card > *,
.faq-item > *,
.review-item > * {
  position: relative;
  z-index: 2;
}


.product-card-flip .product-info {
  order: 2;
}

.product-info {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 14px;
}

.product-info h3 {
  margin-top: 14px;
}

.product-subtitle {
  margin-top: 14px;
  color: #eef2fb;
  font-weight: 700;
}

.product-info p:not(.product-subtitle) {
  margin-top: 16px;
}

.product-info ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.product-info li {
  position: relative;
  padding-left: 24px;
  color: #d9dfed;
}

.product-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 12px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(230, 193, 122, 0.5);
}

.product-meta {
  margin-top: auto;
}

.product-meta strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.gallery {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 12px;
}

.gallery::before {
  /* Glow halo behind gallery */
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 193, 122, 0.22), transparent 65%);
  transform: translate(-50%, -50%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-card:hover .gallery::before {
  opacity: 1;
}

.gallery-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(221, 229, 255, 0.14);
  border-radius: 14px;
  background: rgba(2, 3, 8, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

/* Единственный скриншот: стрелки не рендерятся, окно растягивается на всю
   сетку (иначе оно свалилось бы в 42-пиксельную колонку стрелки). */
.gallery-window:only-child {
  grid-column: 1 / -1;
}

.gallery-track {
  display: flex;
  transition: transform 0.62s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.gallery img {
  min-width: 100%;
  height: clamp(280px, 32vw, 420px);
  object-fit: contain;
  padding: 14px;
  cursor: zoom-in;
}

.gallery-nav,
.image-modal-nav {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(221, 229, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(8px);
}

.gallery-nav {
  width: 42px;
  height: 42px;
}

.gallery-nav:hover,
.image-modal-nav:hover {
  transform: scale(1.08);
  border-color: rgba(230, 193, 122, 0.6);
  background: rgba(230, 193, 122, 0.14);
}

.gallery-nav svg,
.image-modal-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Proof panel ---------- */

.proof-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: start;
  border-radius: var(--radius-lg);
  padding: 40px;
  background:
    radial-gradient(70% 60% at 8% 10%, rgba(230, 193, 122, 0.2), transparent 50%),
    rgba(12, 16, 28, 0.92);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.proof-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(230, 193, 122, 0.55), rgba(123, 224, 208, 0.18), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.proof-list {
  display: grid;
  gap: 16px;
}

.proof-list p {
  border-bottom: 1px solid rgba(221, 229, 255, 0.09);
  padding-bottom: 14px;
  transition: color 0.3s ease;
}

.proof-list p:last-child {
  border-bottom: 0;
}

.proof-list strong {
  color: #fff;
}

/* ---------- Pricing ---------- */

.pricing-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

.bundle-card,
.price-card,
.review-form,
.reviews-list,
.contact-form,
.faq-list details {
  border-radius: var(--radius-lg);
  background: rgba(12, 16, 28, 0.86);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.bundle-card {
  position: relative;
  min-height: 100%;
  padding: 32px 30px;
  background:
    radial-gradient(80% 60% at 12% 10%, rgba(230, 193, 122, 0.24), transparent 55%),
    rgba(13, 17, 29, 0.94);
  overflow: hidden;
}

.bundle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from 90deg,
    rgba(230, 193, 122, 0.8),
    rgba(123, 224, 208, 0.3) 30%,
    rgba(154, 174, 255, 0.3) 60%,
    rgba(230, 193, 122, 0.8) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
  animation: shell-shimmer 16s linear infinite;
}

.bundle-card h3 {
  margin-top: 14px;
}

.bundle-card p {
  margin-top: 18px;
}

.bundle-savings {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.86rem;
  color: #1b1408;
  background: var(--grad-gold);
  box-shadow: 0 10px 28px rgba(230, 193, 122, 0.4);
  letter-spacing: 0.02em;
}

.bundle-price {
  margin: 36px 0 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.bundle-price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 3.1rem;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #ffffff, #d6cdb6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.bundle-price del {
  color: var(--muted-2);
  font-size: 1.1rem;
  font-family: var(--font-display);
  text-decoration-color: rgba(255, 111, 154, 0.7);
  text-decoration-thickness: 2px;
}

.bundle-price small {
  display: block;
  width: 100%;
  color: var(--muted-2);
  font-size: 0.86rem;
}

.price-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.price-card {
  padding: 22px;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s ease;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(221, 229, 255, 0.15), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.3s ease;
}

.price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.price-card:hover::before {
  background: linear-gradient(140deg, rgba(230, 193, 122, 0.4), transparent 55%);
}

.price-card p {
  min-height: 48px;
  margin-top: 10px;
}

.price-card strong {
  display: block;
  margin: 20px 0 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 42px;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(230, 193, 122, 0.28);
  border-radius: var(--radius-lg);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 193, 122, 0.18), transparent 65%);
  z-index: -1;
  filter: blur(40px);
}

.about-photo img {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.about-badges span {
  border: 1px solid rgba(221, 229, 255, 0.16);
  border-radius: 999px;
  padding: 8px 14px;
  color: #e7edf9;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.about-badges span:hover {
  border-color: rgba(230, 193, 122, 0.45);
  background: rgba(230, 193, 122, 0.08);
}

/* ---------- Reviews ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: minmax(280px, 390px) 1fr;
  gap: 20px;
}

.review-form,
.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.review-form::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(221, 229, 255, 0.18), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.review-form label,
.contact-form label {
  display: grid;
  gap: 7px;
  color: #e9edf7;
  font-size: 0.92rem;
  font-weight: 700;
}

/* Авторское display выше перебивает браузерное [hidden]{display:none}, из-за
   чего скрытые поля формы (ключ в режиме покупки, места в режиме продления)
   оставались видимыми. Возвращаем скрытие явно. */
.contact-form [hidden],
.contact-form label[hidden] {
  display: none;
}

.review-form input,
.review-form textarea,
.review-form select,
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(221, 229, 255, 0.16);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Dark-theme the native <select> so the topic dropdown matches the text
   inputs instead of falling back to the light OS control. The default arrow
   is removed (appearance: none) and replaced with an inline gold SVG chevron
   as a background-image; padding-right leaves room for it. */
.review-form select,
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23e9c577' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

/* Consent checkbox rows on the public forms. Overrides the grid layout of
   .contact-form label so the checkbox sits inline with its small, muted text;
   links inside are accent gold. */
.review-form label.consent,
.contact-form label.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}

/* Text + link flow as one block so the checkbox and its agreement sit on a
   single line (wrapping cleanly under the text, not under the checkbox). */
.review-form label.consent > span,
.contact-form label.consent > span {
  flex: 1 1 auto;
}

/* Reset the text-input chrome the checkbox would otherwise inherit from the
   `.contact-form input` rule (padding, border, background, box-shadow and its
   transition). Those made the native checkbox flicker/resize on click. Keep it
   a clean native control with only accent-color and an accessible focus ring. */
.review-form label.consent input[type="checkbox"],
.contact-form label.consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 2px 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transition: none;
  accent-color: var(--accent);
  cursor: pointer;
}

.review-form label.consent input[type="checkbox"]:focus-visible,
.contact-form label.consent input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(230, 193, 122, 0.7);
  outline-offset: 2px;
}

.review-form label.consent a,
.contact-form label.consent a {
  color: var(--accent);
  text-decoration: underline;
}

/* Best-effort styling for the open dropdown list (browser support varies). */
.review-form select option,
.contact-form select option {
  background: #0b0f1c;
  color: #fff;
}

.review-form input:focus,
.review-form textarea:focus,
.review-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(230, 193, 122, 0.6);
  box-shadow: 0 0 0 4px rgba(230, 193, 122, 0.12);
}

.stars-select {
  display: flex;
  gap: 8px;
}

.star-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(221, 229, 255, 0.16);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.star-btn.is-active {
  color: #f4cb72;
  border-color: rgba(244, 203, 114, 0.55);
  background: rgba(244, 203, 114, 0.12);
  box-shadow: 0 0 16px rgba(244, 203, 114, 0.3);
}

.reviews-list {
  max-height: 470px;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 22px;
}

.review-item {
  border: 1px solid rgba(221, 229, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-smooth);
}

.review-item:hover {
  border-color: rgba(230, 193, 122, 0.3);
  background: rgba(230, 193, 122, 0.06);
  transform: translateY(-2px);
}

.review-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.review-name {
  color: #fff;
  font-weight: 800;
}

.review-stars {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.04em;
}

/* Rendered rating on cards: gold filled glyphs, contour for empty. */
.stars-display {
  font-size: 18px;
  letter-spacing: 0.06em;
  color: #f4cb72;
  white-space: nowrap;
}

.review-meta {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(221, 229, 255, 0.5);
}

/* Interactive 5-star rating widget. The radios are laid out in reverse (5→1)
   so the CSS sibling selector can light up the hovered/checked star and every
   star before it (which, in DOM order, are the ones with a higher value). */
.review-rating {
  display: grid;
  gap: 8px;
}

.review-rating-label {
  font-size: 14px;
  color: rgba(221, 229, 255, 0.7);
}

.stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  font-size: 30px;
  line-height: 1;
  width: max-content;
}

.stars input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.stars label {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.22);
  transition: color 0.15s ease, transform 0.15s ease;
}

.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label {
  color: #f4cb72;
}

.stars label:hover,
.stars label:hover ~ label {
  transform: scale(1.05);
}

.stars input:focus-visible + label {
  outline: 2px solid rgba(244, 203, 114, 0.7);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- About the author ---------- */

.author-panel {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 36px;
  background:
    radial-gradient(80% 70% at 12% 20%, rgba(230, 193, 122, 0.14), transparent 55%),
    rgba(12, 16, 28, 0.9);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.author-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(244, 203, 114, 0.55);
  box-shadow: 0 0 32px rgba(244, 203, 114, 0.28);
}

.author-copy h2 {
  margin: 12px 0 16px;
}

.author-text {
  color: rgba(221, 229, 255, 0.82);
  line-height: 1.7;
  max-width: 68ch;
}

.author-text p {
  margin: 0 0 14px;
}

@media (max-width: 720px) {
  .author-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .author-photo {
    width: 180px;
  }

  .author-text {
    text-align: left;
  }
}

/* ---------- Support the author (donation) ---------- */

.donate-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 36px;
  background:
    radial-gradient(80% 70% at 88% 20%, rgba(230, 193, 122, 0.16), transparent 55%),
    rgba(12, 16, 28, 0.9);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.donate-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(230, 193, 122, 0.55), rgba(123, 224, 208, 0.18), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.donate-copy h2 {
  margin: 12px 0 16px;
}

.donate-text {
  color: rgba(221, 229, 255, 0.82);
  line-height: 1.7;
  max-width: 68ch;
}

.donate-text p {
  margin: 0 0 14px;
}

.donate-actions {
  margin-top: 22px;
}

.donate-qr img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid rgba(230, 193, 122, 0.35);
  background: rgba(255, 255, 255, 0.06);
  padding: 8px;
}

@media (max-width: 720px) {
  .donate-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .donate-text {
    text-align: left;
  }
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
}

.faq-item {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(230, 193, 122, 0.16);
  background:
    radial-gradient(80% 120% at 6% 0%, rgba(230, 193, 122, 0.08), transparent 60%),
    rgba(12, 16, 28, 0.86);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.3s var(--ease-smooth);
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 193, 122, 0.4);
}

.faq-item[open] {
  border-color: rgba(230, 193, 122, 0.4);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  color: rgba(245, 248, 255, 0.94);
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.faq-q {
  flex: 1;
}

.faq-marker {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(230, 193, 122, 0.35);
  border-radius: 999px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-marker::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-marker {
  background: rgba(230, 193, 122, 0.16);
}

.faq-item[open] .faq-marker::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-a {
  padding: 0 24px 22px;
  color: rgba(221, 229, 255, 0.82);
  line-height: 1.7;
}

.faq-a p {
  margin: 0 0 12px;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

.faq-a ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

@media (max-width: 720px) {
  .faq-item summary {
    padding: 16px 18px;
    font-size: 0.98rem;
  }

  .faq-a {
    padding: 0 18px 18px;
  }
}

/* ---------- Contact ---------- */

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 32px;
  align-items: start;
  border-radius: var(--radius-lg);
  padding: 32px;
  background:
    radial-gradient(70% 60% at 8% 18%, rgba(123, 224, 208, 0.16), transparent 50%),
    rgba(12, 16, 28, 0.9);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(123, 224, 208, 0.45), rgba(154, 174, 255, 0.2), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.contact-form {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.04);
}

.contact-status {
  min-height: 1.35em;
  color: #8cf2c8;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 20px 22px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-list details[open] {
  background: rgba(230, 193, 122, 0.05);
}

.faq-list details::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(221, 229, 255, 0.15), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.faq-list details[open]::before {
  background: linear-gradient(140deg, rgba(230, 193, 122, 0.4), transparent 55%);
}

.faq-list summary {
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin-top: 14px;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  width: var(--container);
  margin: 80px auto 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(221, 229, 255, 0.1);
  color: var(--muted-2);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 1px;
  background: var(--grad-gold);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  position: relative;
  color: var(--muted-2);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-soft);
}

/* ---------- Sticky CTA pill ---------- */

.sticky-cta {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  color: #18120a;
  background: var(--grad-gold);
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(230, 193, 122, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease-smooth), opacity 0.4s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-cta::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18120a;
  box-shadow: 0 0 14px rgba(24, 18, 10, 0.4);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.sticky-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(230, 193, 122, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* ---------- Cart panel ---------- */

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(420px, 94vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  padding: 22px;
  background: rgba(9, 13, 24, 0.98);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.55);
  transform: translateX(calc(100% + 28px));
  transition: transform 0.35s var(--ease-smooth);
  backdrop-filter: blur(20px);
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-header h2 {
  font-size: 1.5rem;
}

.cart-header button,
.image-modal-close {
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 1.9rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cart-header button:hover,
.image-modal-close:hover {
  color: var(--accent);
}

.cart-items {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 20px 0;
  overflow: auto;
}

.empty {
  color: var(--muted-2);
}

.cart-item {
  border: 1px solid rgba(221, 229, 255, 0.13);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.cart-item-head,
.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-item-controls {
  justify-content: flex-start;
  margin-top: 10px;
}

.qty-btn,
.remove-btn {
  border: 1px solid rgba(221, 229, 255, 0.16);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s ease;
}

.qty-btn {
  width: 32px;
  height: 32px;
}

.qty-btn:hover {
  background: rgba(230, 193, 122, 0.14);
}

.cart-qty {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
}

.remove-btn {
  margin-left: auto;
  padding: 6px 12px;
  color: #ffadc4;
  border-color: rgba(255, 111, 154, 0.3);
  background: rgba(255, 111, 154, 0.09);
}

.remove-btn:hover {
  background: rgba(255, 111, 154, 0.18);
}

.cart-footer {
  border-top: 1px solid rgba(221, 229, 255, 0.12);
  padding-top: 16px;
}

.cart-footer p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cart-footer p strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

/* ---------- Image modal ---------- */

.image-modal {
  width: min(1380px, 98vw);
  border: 1px solid rgba(221, 229, 255, 0.22);
  border-radius: 22px;
  padding: 12px;
  color: var(--text);
  background: rgba(6, 8, 16, 0.98);
}

.image-modal::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.image-modal-top {
  display: flex;
  justify-content: flex-end;
}

.image-modal-gallery {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 12px;
  align-items: center;
}

.image-modal img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border: 1px solid rgba(221, 229, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.image-modal-nav {
  width: 54px;
  height: 54px;
}

.image-modal-caption {
  margin-top: 12px;
  text-align: center;
}

/* ---------- Lightbox (product gallery) ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 4vw;
  background: rgba(3, 4, 10, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  position: relative;
  max-width: min(1280px, 96vw);
}

/* Листание внутри увеличенного просмотра: стрелки по краям экрана и
   счётчик «2 / 6» под картинкой. Появляются только при 2+ кадрах (JS). */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(221, 229, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.08);
  border-color: rgba(230, 193, 122, 0.6);
  background: rgba(230, 193, 122, 0.16);
}

.lightbox-nav-prev {
  left: max(16px, 2.5vw);
}

.lightbox-nav-next {
  right: max(16px, 2.5vw);
}

.lightbox-nav svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-counter {
  position: fixed;
  left: 50%;
  bottom: max(18px, 3vh);
  transform: translateX(-50%);
  z-index: 2;
  padding: 6px 16px;
  border: 1px solid rgba(221, 229, 255, 0.18);
  border-radius: 999px;
  background: rgba(6, 8, 16, 0.72);
  color: rgba(221, 229, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

@media (max-width: 760px) {
  .lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .lightbox-nav-prev {
    left: 8px;
  }

  .lightbox-nav-next {
    right: 8px;
  }
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid rgba(230, 193, 122, 0.28);
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 46px rgba(230, 193, 122, 0.18);
  background: rgba(6, 8, 16, 0.9);
}

.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 193, 122, 0.4);
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 16, 28, 0.96);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.08);
  border-color: rgba(230, 193, 122, 0.75);
  background: rgba(230, 193, 122, 0.16);
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 760px) {
  .lightbox-close {
    top: -14px;
    right: -6px;
    width: 38px;
    height: 38px;
  }
}

/* ---------- Announcement (важное сообщение) ---------- */

/* Промежуток между шапкой и hero: надпись стоит по центру самым первым
   элементом контента главной и появляется только когда владелец задал
   текст сообщения в админке. */
.announce-wrap {
  display: flex;
  justify-content: center;
  /* Сверху ДВА фиксированных слоя: topbar и бегущая строка под ним
     (~34px: 9px паддинги + строка). Капсула — первый элемент потока,
     поэтому сама отводит место под оба; hero после неё сокращает свой
     отступ (ниже), иначе зазор под шапку задвоился бы. */
  padding: calc(var(--topbar-pad) + 52px) 16px 0;
}

.announce-wrap ~ .hero {
  padding-top: 44px;
}

/* Светящаяся золотая капсула: задача — «нельзя пропустить». Мягкая
   пульсация свечения; под prefers-reduced-motion анимация отключается
   ниже, капсула остаётся ярко подсвеченной статично. */
.announce-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 12px 26px;
  border: 1px solid rgba(243, 220, 164, 0.9);
  border-radius: 999px;
  background: linear-gradient(135deg, #e6c17a, #f3dca4 45%, #d4a955);
  color: #201503;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(230, 193, 122, 0.55), 0 0 30px rgba(230, 193, 122, 0.26);
  animation: announceGlow 2s ease-in-out infinite alternate;
  transition: transform 0.2s ease;
}

.announce-pill:hover {
  transform: translateY(-1px) scale(1.03);
}

@keyframes announceGlow {
  from {
    box-shadow: 0 0 12px rgba(230, 193, 122, 0.55), 0 0 30px rgba(230, 193, 122, 0.26);
  }
  to {
    box-shadow: 0 0 26px rgba(230, 193, 122, 0.9), 0 0 56px rgba(230, 193, 122, 0.45);
  }
}

/* Маленький пульсирующий кружок слева от надписи. */
.announce-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8c2a1c;
  box-shadow: 0 0 0 0 rgba(140, 42, 28, 0.5);
  animation: announceDot 1.6s ease-out infinite;
}

@keyframes announceDot {
  0% {
    box-shadow: 0 0 0 0 rgba(140, 42, 28, 0.45);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(140, 42, 28, 0);
  }
}

/* Окно сообщения: тёмный blur-фон по образцу лайтбокса, центрированная
   панель в стиле сайта. [hidden] держит оверлей вне страницы до первого
   открытия; is-open управляет плавным появлением. */
.announce-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 4vw;
  background: rgba(3, 4, 10, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.announce-overlay[hidden] {
  display: none;
}

.announce-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.announce-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  padding: 30px 34px;
  border: 1px solid rgba(230, 193, 122, 0.4);
  border-radius: 18px;
  background: rgba(12, 16, 28, 0.97);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 46px rgba(230, 193, 122, 0.18);
}

.announce-dialog h3 {
  margin: 0 0 14px;
  padding-right: 40px;
  color: #e6c17a;
  font-size: 1.25rem;
}

.announce-body p {
  margin: 0 0 12px;
}

.announce-body p:last-child {
  margin-bottom: 0;
}

.announce-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 193, 122, 0.4);
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 16, 28, 0.96);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.announce-close:hover {
  transform: scale(1.08);
  border-color: rgba(230, 193, 122, 0.75);
  background: rgba(230, 193, 122, 0.16);
}

@media (max-width: 760px) {
  .announce-wrap {
    padding: calc(var(--topbar-pad) + 46px) 12px 0;
  }

  .announce-pill {
    white-space: normal;
    padding: 11px 20px;
    font-size: 0.95rem;
  }

  .announce-overlay {
    padding: 16px;
  }

  .announce-dialog {
    padding: 22px 16px;
  }

  .announce-dialog h3 {
    padding-right: 34px;
  }
}

/* ---------- Reveal animation ---------- */

/* Only hide reveal targets when JS is available to un-hide them; without JS
   (html has no .js class) the content stays fully visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-smooth), transform 0.85s var(--ease-smooth);
}

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

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Капсула важного сообщения: пульсация отключена, но статичное свечение
     остаётся, чтобы надпись всё равно бросалась в глаза. */
  .announce-pill,
  .announce-dot {
    animation: none !important;
  }
}

/* The pointer-following ambient effects (cursor spotlight, card spotlight,
   hero tilt) are cursor light rather than autonomous motion and are requested
   even under reduce-motion — so re-enable their gentle transitions here, after
   the blanket reset above, so they don't snap. Everything else stays reduced. */
@media (prefers-reduced-motion: reduce) {
  .cursor-glow {
    transition-duration: 0.4s !important;
  }

  .card-spot::after {
    transition-duration: 0.3s !important;
  }

  .hero-windows {
    transition-duration: 0.4s !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .value-grid {
    grid-template-columns: 1fr 1fr;
  }
  .value-card-hero {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 1040px) {
  :root {
    --topbar-pad: 72px;
  }

  .topbar-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
  }

  .nav-burger {
    display: flex;
  }

  /* Collapsed nav becomes a full-width dropdown panel toggled by the burger. */
  .topnav {
    position: absolute;
    top: var(--topbar-pad);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 20px;
    background: rgba(6, 8, 18, 0.97);
    border-bottom: 1px solid rgba(230, 193, 122, 0.18);
    backdrop-filter: saturate(140%) blur(18px);
    -webkit-backdrop-filter: saturate(140%) blur(18px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s var(--ease-smooth), opacity 0.28s ease, visibility 0.28s;
  }

  .nav-toggle:checked ~ .topnav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .topnav a {
    padding: 12px 6px;
    font-size: 1rem;
  }

  .topnav a::after {
    display: none;
  }

  .nav-cta {
    margin: 10px 0 0;
    text-align: center;
    justify-content: center;
  }

  .marquee {
    top: var(--topbar-pad);
  }

  .hero,
  .analytics,
  .pricing-layout,
  .about,
  .proof-panel,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--topbar-pad) + 72px);
  }

  .hero-stage {
    min-height: 520px;
  }

  .hero-windows {
    inset: 0;
    height: 440px;
  }

  .product-card,
  .product-card-flip {
    grid-template-columns: 1fr;
  }

  .product-card-flip .product-info {
    order: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100vw - 24px, 1180px);
    --topbar-pad: 66px;
  }

  .section {
    padding-top: 76px;
  }

  .marquee {
    top: var(--topbar-pad);
  }

  .marquee-track {
    font-size: 0.7rem;
    gap: 32px;
  }

  .hero {
    min-height: auto;
    gap: 36px;
    padding-top: calc(var(--topbar-pad) + 40px);
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5.2rem);
  }

  h1::after {
    width: 96px;
    height: 3px;
  }

  h2 {
    font-size: clamp(1.75rem, 8.4vw, 2.8rem);
  }

  .hero-proof,
  .value-grid,
  .analytics-board,
  .price-list,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .value-card-hero {
    grid-column: auto;
    grid-row: auto;
  }

  .value-card-hero .card-visual {
    height: 140px;
  }

  .hero-proof div {
    min-height: auto;
  }

  .hero-stage {
    min-height: auto;
    perspective: none;
  }

  /* Stack the two windows vertically on small screens: no absolute overlap,
     no tilt — clean and legible with no horizontal overflow. */
  .hero-windows {
    position: relative;
    inset: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: none !important;
  }

  .app-window {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    transform: none !important;
  }

  /* Helper Panel в 3 раза выше своей ширины: на всю ширину экрана она
     растянулась бы на полтора экрана по высоте. Сужаем и центрируем.
     Привязка низа и ограничение высоты нужны только для наложения окон на
     десктопе — в столбике они бы сдвинули и обрезали панель. */
  .app-window-side {
    width: 52%;
    max-width: 180px;
    max-height: none;
    bottom: auto;
    align-self: center;
  }

  .orbital-card {
    width: min(220px, 76vw);
  }

  .orbital-card-a {
    top: auto;
    right: 4%;
    bottom: 22%;
  }

  .orbital-card-b {
    left: 4%;
    bottom: 4%;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-card,
  .proof-panel,
  .contact-panel {
    padding: 18px;
  }

  .bundle-card {
    padding: 24px 22px;
  }

  .bundle-savings {
    top: 16px;
    right: 16px;
    font-size: 0.78rem;
    padding: 4px 12px;
  }

  .gallery {
    grid-template-columns: 34px 1fr 34px;
    gap: 8px;
  }

  .gallery-nav {
    width: 34px;
    height: 34px;
  }

  .gallery img {
    height: 245px;
    padding: 8px;
  }

  .image-modal-gallery {
    grid-template-columns: 36px 1fr 36px;
  }

  .image-modal-nav {
    width: 36px;
    height: 36px;
  }

  .sticky-cta {
    right: 14px;
    bottom: 14px;
    padding: 12px 18px;
    font-size: 0.92rem;
  }
}

/* ---------- Server-rendered site additions (Task 8) ---------- */

.flash-banner {
  width: var(--container);
  margin: calc(var(--topbar-pad) + 24px) auto 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  color: #8ff0a4;
  background: rgba(18, 53, 29, 0.9);
  border: 1px solid rgba(63, 185, 80, 0.5);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: auto;
}

.product-price-tag {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.product-price-tag small {
  color: var(--muted-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.product-version {
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ---------- Product detail page (readable typography) ---------- */

.product-detail {
  max-width: 900px;
  margin: 0 auto;
  padding-top: calc(var(--topbar-pad) + 72px);
  padding-bottom: 24px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted-2);
  font-size: 0.86rem;
}

.crumbs a {
  color: var(--muted-2);
  transition: color 0.2s ease;
}

.crumbs a:hover {
  color: var(--accent-soft);
}

.crumbs-current {
  color: var(--text);
}

.product-hero {
  margin-bottom: 44px;
}

.product-title {
  margin: 14px 0 0;
  font-size: clamp(2.1rem, 4.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #ddd4bd 70%, #c0a877 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-lead {
  max-width: 62ch;
  margin-top: 16px;
  font-size: 1.2rem;
  line-height: 1.55;
  color: #d8deed;
}

.product-hero .product-actions {
  margin-top: 26px;
}

.product-section-title {
  margin: 0 0 20px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

/* Screenshot gallery — thumbnail grid opening into a lightbox */
.product-gallery {
  margin-bottom: 48px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.thumb {
  display: block;
  padding: 0;
  border: 1px solid rgba(221, 229, 255, 0.14);
  border-radius: 14px;
  background: rgba(2, 3, 8, 0.4);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform 0.25s var(--ease-smooth), border-color 0.25s ease, box-shadow 0.25s ease;
}

.thumb:hover,
.thumb:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(230, 193, 122, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(230, 193, 122, 0.16);
  outline: none;
}

.thumb img {
  width: 100%;
  height: clamp(150px, 20vw, 200px);
  object-fit: contain;
  padding: 12px;
}

.product-body {
  margin-bottom: 48px;
}

/* Readable text column: ~72ch, 17px body, 1.6 line-height */
.product-description {
  max-width: 72ch;
  color: #cdd5e6;
  font-size: 17px;
  line-height: 1.7;
}

.product-description h1 {
  margin: 36px 0 14px;
  font-size: 2rem;
  color: var(--text);
}

.product-description h2 {
  margin: 34px 0 14px;
  font-size: 1.5rem;
  color: var(--text);
}

.product-description h3 {
  margin: 28px 0 12px;
  font-size: 1.2rem;
  color: var(--text);
}

.product-description h1:first-child,
.product-description h2:first-child,
.product-description h3:first-child {
  margin-top: 0;
}

.product-description ul {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-left: 4px;
  list-style: none;
}

.product-description li {
  position: relative;
  padding-left: 26px;
  color: #d9dfed;
}

.product-description li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 12px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(230, 193, 122, 0.5);
}

.product-description p {
  margin-top: 16px;
}

.product-description p:first-child {
  margin-top: 0;
}

.product-description strong {
  color: #fff;
}

/* Pricing block on the product page */
.product-buy {
  margin-bottom: 24px;
}

.buy-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 760px;
}

.buy-option {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 24px;
  border: 1px solid rgba(221, 229, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(12, 16, 28, 0.86);
  transition: transform 0.25s var(--ease-smooth), border-color 0.25s ease, box-shadow 0.25s ease;
}

.buy-option:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 193, 122, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.buy-option-featured {
  border-color: rgba(230, 193, 122, 0.4);
  background:
    radial-gradient(80% 70% at 15% 10%, rgba(230, 193, 122, 0.16), transparent 55%),
    rgba(13, 17, 29, 0.94);
  box-shadow: 0 0 32px rgba(230, 193, 122, 0.14);
}

.buy-plan {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.buy-option strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}

.buy-option .btn {
  width: 100%;
}

.buy-panel {
  width: min(560px, var(--container));
  margin: calc(var(--topbar-pad) + 96px) auto 40px;
}

.buy-panel .plan-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.buy-panel .plan-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(221, 229, 255, 0.16);
  border-radius: var(--radius);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
}

.buy-panel .plan-option strong {
  color: #fff;
  font-family: var(--font-display);
}

/* Segmented "Новая лицензия / Продлить" switcher above the order form. Two
   tab-like controls (a <button> and an <a>): the active one is lit with the
   gold accent, the inactive one is muted. */
.order-mode {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 22px;
  border: 1px solid rgba(221, 229, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.order-mode-tab {
  flex: 1 1 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: calc(var(--radius) - 6px);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.order-mode-tab:hover {
  color: #eef3ff;
  background: rgba(255, 255, 255, 0.06);
}

.order-mode-tab.is-active {
  color: #18120a;
  background: var(--grad-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Small muted hint under the license-key field in renewal mode: where to find
   the key inside the program. */
.renew-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
}

/* The license key revealed on /pay/success: monospaced, large and
   select-all so the buyer copies it in one click. */
.license-key strong {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  user-select: all;
}

/* Promo "coin your own word" row: the text input flexes to fill, the
   "Предложить" button sits inline to its right. */
.promo-create-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.promo-create-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.promo-create-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Hints under the seats field and inside the company block: same quiet voice
   as the other form hints. */
.seats-hint,
.company-hint {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
}

/* Строка «От N мест — скидка M%»: то же тихое звучание, что и у соседних
   подсказок, но золотом — это выгода, а не сноска. */
.volume-hint {
  color: var(--accent-soft);
  font-weight: 600;
}

/* Живой итог под полем мест. Заметен (крупнее подсказок, светлее фона), но не
   кричит: это справка, а окончательную сумму всё равно считает сервер. Пустой
   элемент — до выбора варианта или без JS — не занимает места. */
.order-total {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.4;
}

.order-total:empty {
  display: none;
}

/* Optional legal-entity details, folded away by default: most buyers are
   private persons and should not meet an invoice form they do not need. */
.company-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.company-details > summary {
  cursor: pointer;
  font-weight: 600;
  list-style: revert; /* keep the native disclosure triangle */
}

.company-details[open] > summary {
  margin-bottom: 10px;
}

.company-details label {
  margin-bottom: 10px;
}

/* Small muted format hint under the coined-word field. */
.promo-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
}

/* Confirmation note on buy_done showing the buyer their future magic word. */
.promo-word-note {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(230, 193, 122, 0.28);
  border-radius: var(--radius);
  background: rgba(230, 193, 122, 0.08);
}

.promo-word-note strong {
  color: var(--accent);
  font-family: var(--font-display);
}

.gallery-static {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.gallery-static img {
  width: 100%;
  height: clamp(180px, 22vw, 260px);
  object-fit: contain;
  padding: 12px;
  border: 1px solid rgba(221, 229, 255, 0.14);
  border-radius: 14px;
  background: rgba(2, 3, 8, 0.4);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Public version-history page (/releases/{code}) ---------- */

.release-card {
  border: 1px solid rgba(221, 229, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  padding: 22px 24px;
  margin-bottom: 18px;
}

.release-card-latest {
  border-color: rgba(230, 193, 122, 0.35);
  background: rgba(230, 193, 122, 0.06);
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.release-version {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.release-card-latest .release-version {
  font-size: 1.5rem;
}

.release-meta {
  color: var(--muted-2);
  font-size: 0.86rem;
}

.release-changelog {
  margin-top: 12px;
  color: #d8deed;
  line-height: 1.55;
}

.release-changelog h1,
.release-changelog h2,
.release-changelog h3 {
  margin: 12px 0 8px;
  font-size: 1.02rem;
}

.release-card .product-actions {
  margin-top: 16px;
}

.release-older {
  margin-top: 40px;
}

.release-note,
.release-empty {
  color: var(--muted-2);
  margin: 0 0 18px;
}

.link-history {
  color: var(--muted-2);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-history:hover {
  color: var(--accent-soft);
}

/* ---------- Cookie consent ---------- */

/* Карточка внизу слева, а не полоса во всю ширину: полоса на мобильном
   съедает пол-экрана, а карточка остаётся читаемой и на телефоне.
   z-index выше .sticky-cta (45), чтобы кнопка не лезла поверх вопроса. */
.cookie-banner {
  position: fixed;
  left: 28px;
  bottom: 28px;
  z-index: 60;
  width: min(520px, calc(100vw - 56px));
  padding: 20px 22px;
  border: 1px solid var(--line-warm);
  border-radius: 18px;
  background: rgba(12, 16, 28, 0.97);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.cookie-banner a {
  color: var(--accent-soft);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Отказ — обычная кнопка без рамки: выбор равнозначный, просто
   не акцентный. Прятать его или красить в цвет фона нечестно. */
.cookie-decline {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-decline:hover {
  color: var(--text);
}

/* Пока висит вопрос про cookie, плавающая кнопка «купить» не мешается. */
body:has(.cookie-banner:not([hidden])) .sticky-cta {
  display: none;
}

@media (max-width: 760px) {
  .cookie-banner {
    left: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
    padding: 16px 18px;
  }
}

/* Ошибка на форме заказа. Красный, в отличие от зелёного .flash-banner:
   покупатель должен сразу понять, что заказ НЕ оформлен, а не искать
   разницу в формулировке. */
.form-error {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  color: #ffb4ab;
  background: rgba(66, 20, 18, 0.9);
  border: 1px solid rgba(240, 90, 80, 0.5);
}
