/* ============================================
   STARSTICK — МАГІЧНА ЗІРКА ДЛЯ ОПЛАТИ
   Apple-style landing: airy, bold type, soft cards
   ============================================ */

/* --- Variables --- */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-card: #ffffff;
  --text: #1d1d1f;
  --muted: #56565c;
  --border: #d8d8dd;
  --accent: #0071e3;

  /* Колір зірки (керується конфігуратором) */
  --star-base: #FFD700;
  --star-light: #FFE566;
  --star-dark: #E0B400;
  --star-glow: rgba(255, 215, 0, 0.38);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --radius: 14px;
  --radius-lg: 28px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 52px;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

section { scroll-margin-top: calc(var(--nav-h) + 16px); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(255, 215, 0, 0.4); }

/* --- Section headings --- */
.section-eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 48px;
}

/* --- Reveal on scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(18, 18, 20, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: #f5f5f7;
  transition: background var(--transition);
}

.nav.is-scrolled { background: rgba(18, 18, 20, 0.88); }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav__logo { width: 20px; height: 20px; flex: none; }

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav__links a { opacity: 0.75; transition: opacity var(--transition); }
.nav__links a:hover { opacity: 1; }

.nav__cta {
  background: #f5f5f7;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition);
}

.nav__cta:hover { background: #fff; transform: scale(1.04); }

/* ============ 1. HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: #050506;
  color: #f5f5f7;
  overflow: hidden;
  padding: calc(var(--nav-h) + 48px) 0 72px;
}

/* Плейсхолдер фонового відео/фото */
.hero__media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 44% at 50% 30%, var(--star-glow) 0%, transparent 70%),
    radial-gradient(40% 34% at 82% 78%, rgba(30, 144, 255, 0.14) 0%, transparent 70%),
    radial-gradient(36% 30% at 14% 72%, rgba(255, 105, 180, 0.12) 0%, transparent 70%),
    #050506;
}

.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero__spark {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ffe566;
  box-shadow: 0 0 12px 3px rgba(255, 229, 102, 0.55);
  animation: twinkle 3.2s ease-in-out infinite;
}

.hero__spark--1 { top: 22%; left: 16%; }
.hero__spark--2 { top: 14%; left: 74%; animation-delay: 0.6s; }
.hero__spark--3 { top: 58%; left: 8%;  animation-delay: 1.2s; width: 3px; height: 3px; }
.hero__spark--4 { top: 70%; left: 88%; animation-delay: 1.8s; }
.hero__spark--5 { top: 38%; left: 92%; animation-delay: 2.3s; width: 3px; height: 3px; }
.hero__spark--6 { top: 82%; left: 30%; animation-delay: 0.9s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.25); }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  margin-bottom: 28px;
}

.hero__badge svg { width: 14px; height: 14px; }

.hero__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.05;
  max-width: 850px;
}

.hero__title-magic {
  background: linear-gradient(100deg, #ffe566 10%, #ffb800 45%, #ff69b4 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__subtitle {
  margin-top: 22px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  color: rgba(245, 245, 247, 0.78);
  max-width: 640px;
}

/* Сцена: паличка нахиляється до термінала, іскри, зелений ✓ — все в одному 5.6s циклі */
.hero__scene {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 36px;
  margin: 40px 0 44px;
}

.hero__wand {
  position: relative;
  z-index: 2;
  transform-origin: 50% 97%;
  animation: wandTap 5.6s ease-in-out infinite;
}

@keyframes wandTap {
  0%, 12% { transform: rotate(-2deg); }
  30%     { transform: rotate(23deg); }
  34%     { transform: rotate(21deg); }
  38%     { transform: rotate(23deg); }
  52%     { transform: rotate(22deg); }
  70%     { transform: rotate(-3.5deg); }
  84%, 100% { transform: rotate(-2deg); }
}

.hero__wand .wand-svg {
  width: clamp(150px, 24vw, 210px);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

.hero__wand-glow {
  position: absolute;
  inset: -30% -55%;
  background: radial-gradient(50% 42% at 50% 34%, var(--star-glow) 0%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

/* Платіжний термінал */
.hero__terminal {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

.terminal-svg {
  width: clamp(96px, 15vw, 132px);
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
}

/* Зелений ✓ на екрані в момент дотику */
.terminal__ok {
  opacity: 0;
  animation: terminalOk 5.6s ease infinite;
}

@keyframes terminalOk {
  0%, 32%  { opacity: 0; }
  37%, 58% { opacity: 1; }
  66%, 100% { opacity: 0; }
}

/* Іскри біля точки дотику */
.tap-spark {
  position: absolute;
  left: -6px;
  top: 56px;
  width: 14px;
  height: 14px;
  background: #ffe566;
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  filter: drop-shadow(0 0 6px rgba(255, 229, 102, 0.8));
  opacity: 0;
  animation: sparkFly 5.6s ease-out infinite;
}

.tap-spark--1 { --fx: -38px; --fy: -46px; }
.tap-spark--2 { --fx: 30px;  --fy: -52px; top: 40px; left: 4px;  width: 10px; height: 10px; animation-delay: 0.08s; }
.tap-spark--3 { --fx: -52px; --fy: 4px;   top: 78px; left: -10px; width: 11px; height: 11px; animation-delay: 0.15s; }
.tap-spark--4 { --fx: -24px; --fy: 46px;  top: 92px; left: 0;    width: 9px;  height: 9px;  animation-delay: 0.22s; }

@keyframes sparkFly {
  0%, 30% { opacity: 0; transform: translate(0, 0) scale(0.3) rotate(0deg); }
  35%     { opacity: 1; transform: translate(0, 0) scale(1.05) rotate(25deg); }
  50%     { opacity: 1; }
  64%, 100% { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(0.5) rotate(170deg); }
}

/* CTA — той самий нео-бруталізм, що й на чекауті (.btn-order нижче),
   але рамка/тінь світлі, інакше на чорному фоні їх не видно */
.btn-order.btn-order--hero {
  display: inline-block;
  width: auto;
  padding: 20px 56px;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  text-align: center;
  border-color: #f5f5f7;
  box-shadow: 7px 7px 0 #f5f5f7;
}

.btn-order.btn-order--hero:hover {
  box-shadow: 4px 4px 0 #f5f5f7;
}

.btn-order.btn-order--hero:active {
  box-shadow: 0 0 0 #f5f5f7;
}

.hero__hint {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(245, 245, 247, 0.55);
}

/* ============ 2. SOCIAL PROOF ============ */
.proof {
  position: relative;
  padding: 0 0 110px;
  background: var(--bg);
  overflow: hidden;
}

.proof::before,
.proof::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}

.proof::before { background: #ffd700; top: 30%; left: -160px; }
.proof::after  { background: #ff69b4; bottom: -120px; right: -140px; opacity: 0.22; }

/* Marquee */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-bottom: 1px solid var(--bg-alt);
  margin-bottom: 74px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 22px;
}

.marquee__item svg { width: 15px; height: 15px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* TikTok відео (зациклені, autoplay) */
.proof__videos {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1020px;
  margin: 0 auto;
}

.tiktok-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: #050506;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  transition: transform var(--transition), box-shadow var(--transition);
}

.tiktok-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.22);
}

.tiktok-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============ 3. BENTO ============ */
.how {
  background: var(--bg-alt);
  padding: 110px 0;
}

.bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento__card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.bento__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.09);
}

.bento__card--tall {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.bento__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 18px;
  margin-bottom: 22px;
}

.bento__icon svg { width: 30px; height: 30px; }

.bento__icon--print { background: rgba(255, 215, 0, 0.16); color: #a87e00; }
.bento__icon--card  { background: rgba(30, 144, 255, 0.13); color: #0b6ac9; }
.bento__icon--tap   { background: rgba(50, 205, 50, 0.14); color: #1d8a1d; }

.bento__card h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.bento__card p {
  font-size: 15.5px;
  color: var(--muted);
  max-width: 42ch;
}

/* Декоративні "шари друку" у високій картці */
.bento__visual--layers {
  margin-top: auto;
  padding-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bento__visual--layers span {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--star-light), var(--star-base));
  opacity: 0.85;
}

.bento__visual--layers span:nth-child(1) { width: 34%; }
.bento__visual--layers span:nth-child(2) { width: 58%; opacity: 0.65; }
.bento__visual--layers span:nth-child(3) { width: 78%; opacity: 0.45; }
.bento__visual--layers span:nth-child(4) { width: 96%; opacity: 0.3; }

/* ============ 4. CONFIGURATOR ============ */
.configurator { padding: 110px 0; }

.configurator__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
}

.configurator__preview {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.configurator__stage {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.configurator__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(46% 40% at 50% 38%, var(--star-glow) 0%, transparent 72%);
  transition: background 0.4s ease;
  pointer-events: none;
}

.configurator__wand {
  position: relative;
  width: min(56%, 250px);
  height: auto;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.16));
  transition: filter 0.4s ease;
}

.configurator__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.configurator__color-name {
  text-align: center;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

/* Colors */
.colors { border: 0; margin-bottom: 26px; }

.colors .form-label { margin-bottom: 14px; }

.colors__row { display: flex; gap: 18px; }

.swatch-wrap {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.swatch-wrap input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Кільце вибору малюємо всередині кружечка (бордер + внутрішній зазор),
   щоб воно ніколи не вилазило за межі панелі */
.swatch {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: var(--sw);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08), inset 0 -6px 10px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.swatch-wrap:hover .swatch { transform: scale(1.08); }

.swatch-wrap input:checked + .swatch {
  transform: scale(1.06);
  border-color: var(--text);
  box-shadow:
    inset 0 0 0 3px var(--bg),
    inset 0 -6px 10px rgba(0, 0, 0, 0.12);
}

.swatch-wrap input:focus-visible + .swatch {
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 3px var(--bg),
    inset 0 -6px 10px rgba(0, 0, 0, 0.12);
}

/* Price */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0 26px;
  border-top: 1px solid var(--bg-alt);
}

.price {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-note { font-size: 14px; color: var(--muted); }

/* Коли відправимо замовлення */
.dispatch-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14.5px;
  color: var(--text);
  background: rgba(52, 199, 89, 0.09);
  border: 1px solid rgba(52, 199, 89, 0.35);
  border-radius: var(--radius);
}

.dispatch-note svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: #1d8a1d;
}

.dispatch-note strong {
  color: #1d8a1d;
  font-weight: 700;
}

/* Form */
.form-field { margin-bottom: 18px; position: relative; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}

.req { color: #e0245e; }

.form-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356565c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
  cursor: pointer;
}

.form-input::placeholder { color: #9a9aa1; }

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}

.form-input[aria-invalid="true"] {
  border-color: #e0245e;
  box-shadow: 0 0 0 4px rgba(224, 36, 94, 0.12);
}

.form-error {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #e0245e;
}

.form-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* Autocomplete міст */
.form-field--suggest { position: relative; }

.suggest {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0; right: 0;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  max-height: 264px;
  overflow-y: auto;
  padding: 6px;
}

.suggest button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 15px;
  transition: background var(--transition);
}

.suggest button:hover,
.suggest button.is-active { background: var(--bg-alt); }

.suggest small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}

.suggest__hint {
  padding: 11px 12px;
  font-size: 14px;
  color: var(--muted);
}

/* Спосіб оплати */
.pay { border: 0; margin: 4px 0 20px; }

.pay .form-label { margin-bottom: 10px; }

.pay__row {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.pay__option { position: relative; cursor: pointer; }

.pay__option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pay__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
  transition: color var(--transition);
}

.pay__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c2c2c9;
  background: transparent;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  flex: none;
}

.pay__option:hover .pay__pill { color: var(--text); }

.pay__option input:checked + .pay__pill { color: var(--text); }

.pay__option input:checked + .pay__pill .pay__dot {
  border-color: #34c759;
  background: #34c759;
  box-shadow: inset 0 0 0 4px var(--bg-card);
}

.pay__option input:focus-visible + .pay__pill .pay__dot {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Статус замовлення / оплати */
.order-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 46px 26px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}

.order-status .order-status__btn { width: 100%; }

.order-status h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.order-status p { color: var(--muted); font-size: 15px; }

.order-status p + p { margin-top: 8px; }

.order-status p a {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.order-status p a:hover { text-decoration: underline; }

.status-spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  margin-bottom: 18px;
}

.status-icon--error { background: #e0245e; }

.order-status__btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 15px 22px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--text);
  border: 0;
  border-radius: var(--radius);
  transition: opacity var(--transition), transform var(--transition);
}

.order-status__btn:hover { opacity: 0.85; transform: scale(1.01); }

.order-status__link {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 14.5px;
}

.order-status__link:hover { text-decoration: underline; }

/* Neo-brutalism submit */
.btn-order {
  width: 100%;
  margin-top: 8px;
  padding: 19px 24px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #111;
  background: var(--star-base);
  border: 3px solid #111;
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 #111;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.4s ease;
}

.btn-order:hover {
  transform: translate(3px, 3px);
  box-shadow: 4px 4px 0 #111;
}

.btn-order:active {
  transform: translate(7px, 7px);
  box-shadow: 0 0 0 #111;
}

.btn-order:disabled {
  opacity: 0.65;
  cursor: progress;
  transform: none;
  box-shadow: 7px 7px 0 #111;
}

/* Success state */
.order-success {
  text-align: center;
  padding: 46px 26px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}

.order-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #34c759;
  color: #fff;
  margin-bottom: 18px;
}

.order-success__icon svg { width: 30px; height: 30px; }

.order-success h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.order-success p { color: var(--muted); font-size: 15.5px; }

.order-success__note { margin-top: 8px; }

.order-success__again {
  margin-top: 22px;
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

.order-success__again:hover { text-decoration: underline; }

/* ============ 5. FAQ ============ */
.faq {
  background: var(--bg-alt);
  padding: 110px 0;
}

.faq__container { max-width: 780px; }

.faq__list {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 8px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.faq__item { border-bottom: 1px solid var(--bg-alt); }
.faq__item:last-child { border-bottom: 0; }

.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}

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

.faq__item summary::after {
  content: '';
  flex: none;
  width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.3s ease;
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__body {
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 60ch;
}

/* ============ FOOTER (як у MetroMapWebSite) ============ */
.footer {
  padding: 40px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

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

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.footer__copy {
  font-size: 13px;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.footer__links a {
  opacity: 0.6;
  transition: opacity var(--transition);
}

.footer__links a:hover { opacity: 1; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer__legal-link {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--transition);
}

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

/* ============ POLICY POPUP ============ */
.policy-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.policy-overlay.active {
  opacity: 1;
  visibility: visible;
}

.policy-modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  transform: translateY(14px) scale(0.98);
  transition: transform var(--transition);
}

.policy-overlay.active .policy-modal {
  transform: translateY(0) scale(1);
}

.policy-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  font-size: 22px;
  line-height: 1;
  transition: background var(--transition);
}

.policy-modal__close:hover { background: var(--border); }

.policy-modal__title {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-right: 44px;
}

.policy-content {
  margin-top: 18px;
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 10px;
  font-size: 15px;
  line-height: 1.7;
}

.policy-content h2,
.policy-content h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 24px 0 12px;
}

.policy-content h2 { font-size: 18px; }
.policy-content h3 { font-size: 16px; }
.policy-content :first-child { margin-top: 0; }

.policy-content p { margin-bottom: 14px; color: var(--muted); }

.policy-content ul,
.policy-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted);
}

.policy-content li { margin-bottom: 8px; }

.policy-content a { color: var(--accent); text-decoration: underline; }

.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}

.policy-content th,
.policy-content td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  color: var(--muted);
  vertical-align: top;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .configurator__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .configurator__preview { position: static; }

  .configurator__stage { min-height: 420px; }

  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .bento__card--tall { grid-row: auto; }

  .bento__visual--layers { padding-top: 32px; }
}

@media (max-width: 700px) {
  .nav__links { display: none; }

  .hero__scene { gap: 16px; }

  .hero__terminal { margin-top: 18px; }

  .proof__videos {
    grid-template-columns: 1fr;
    max-width: 320px;
    gap: 22px;
  }

  .how, .configurator, .faq { padding: 72px 0; }

  .proof { padding-bottom: 72px; }

  .marquee { margin-bottom: 52px; }

  .bento__card { padding: 30px 26px; }

  .faq__list { padding: 4px 20px; }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .colors__row { gap: 14px; }

  .swatch { width: 50px; height: 50px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__wand,
  .hero__spark,
  .tap-spark,
  .terminal__ok,
  .marquee__track {
    animation: none;
  }
}
