/* ==== QBOne (латиница) + TT Octosquares (кириллица) ==== */
@font-face {
  font-family: "QBOne";
  src: url("../fonts/QBOne-Bold.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0100-024F, U+1E00-1EFF, U+2000-206F, U+2074, U+20A0-20CF, U+2122, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "QBOne";
  src: url("../fonts/QBOne-Cyrillic.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F, U+2116;
}
/* QBOne на всех контролах/тексте */
body, input, textarea, select, button, .iti, .iti * {
  font-family: "QBOne", "Manrope", system-ui, sans-serif;
}

/* ==========================================================================
   WinnerSoft — iGaming Software Development
   Design system + landing styles
   Palette: obsidian + champagne gold + amethyst
   Type: Fraunces (display/editorial) · Manrope (body/data)
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* surfaces */
  --bg:          #0a0710;
  --bg-2:        #100b1a;
  --surface:     #16101f;
  --surface-2:   #1d1629;
  --line:        rgba(212, 175, 95, 0.14);
  --line-soft:   rgba(255, 255, 255, 0.07);

  /* gold */
  --gold:        #d4af5f;
  --gold-bright: #f2d68a;
  --gold-deep:   #a9832f;
  --gold-foil:   linear-gradient(135deg, #f7e2a3 0%, #d4af5f 42%, #a9832f 78%, #e6c579 100%);

  /* accent */
  --violet:      #8b6cff;
  --violet-dim:  #5b45b8;

  /* text */
  --text:        #efe9f2;
  --text-2:      #c4bcce;
  --muted:       #8b8398;
  --muted-2:     #6b6478;

  /* effects */
  --ring:        0 0 0 1px rgba(242, 214, 138, 0.35);
  --shadow-lg:   0 40px 90px -30px rgba(0, 0, 0, 0.75);
  --shadow-md:   0 20px 50px -20px rgba(0, 0, 0, 0.6);

  /* type */
  --display: "QBOne", "Fraunces", "Times New Roman", serif;
  --body:    "QBOne", "Manrope", system-ui, -apple-system, sans-serif;

  /* layout */
  --maxw: 1200px;
  --pad:  clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 26px;
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

/* ---- Custom scrollbars (gold / obsidian) -------------------------------- */
* { scrollbar-width: thin; scrollbar-color: rgba(212,175,95,0.45) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-deep), var(--gold));
  border-radius: 10px;
  border: 3px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--gold), var(--gold-bright)); }
::-webkit-scrollbar-corner { background: var(--bg-2); }
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Ambient background ------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(139, 108, 255, 0.16), transparent 60%),
    radial-gradient(900px 700px at 12% 8%, rgba(212, 175, 95, 0.10), transparent 55%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---- Layout helpers ----------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 96px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .eyebrow { margin-bottom: 20px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
.lead { color: var(--text-2); font-size: clamp(1.02rem, 1.7vw, 1.2rem); }

.gold-text {
  background: var(--gold-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  --btn-pad: 15px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad);
  border-radius: 100px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.005em;
  line-height: 1;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--gold {
  background: var(--gold-foil);
  color: #201705;
  box-shadow: 0 12px 30px -10px rgba(212, 175, 95, 0.55), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -12px rgba(212, 175, 95, 0.7), inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.btn--ghost:hover {
  border-color: rgba(242, 214, 138, 0.5);
  background: rgba(212, 175, 95, 0.07);
  transform: translateY(-2px);
}

.btn--sm { --btn-pad: 12px 20px; font-size: 14px; }
.btn--block { width: 100%; }

.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 7, 16, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--gold-foil);
  color: #201705;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 18px -8px rgba(212,175,95,0.6);
}
.brand__name {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 15px;
  text-transform: uppercase;
}
.brand__name span { color: var(--gold); }

.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  font-size: 14.5px;
  color: var(--text-2);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.28s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 14px; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-items: center; justify-content: center;
}
.nav__toggle span {
  position: relative;
  width: 18px; height: 1.5px; background: var(--text);
  transition: background 0.2s;
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 1.5px; background: var(--text);
  transition: transform 0.28s ease;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: clip; padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px); }
.hero__spot {
  position: absolute;
  top: -140px; left: 50%;
  transform: translateX(-30%);
  width: 900px; height: 900px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(212, 175, 95, 0.16) 0%, transparent 62%);
  filter: blur(10px);
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-2);
  background: rgba(255,255,255,0.02);
  margin-bottom: 26px;
}
.hero__badge b { color: var(--gold-bright); font-weight: 700; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(242,214,138,0.2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(242,214,138,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(242,214,138,0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 4.3vw, 3.6rem);
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero__sub {
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  max-width: 30ch;
  margin-bottom: 34px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero__note { color: var(--muted); font-size: 14.5px; }
.hero__note b { color: var(--text); font-weight: 700; }
.hero__trust {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 14.5px;
}
.hero__trust strong { color: var(--text); font-weight: 700; }
.hero__trust .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* Product preview panel (signature) */
.preview {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 20px;
  background: linear-gradient(160deg, rgba(29, 22, 41, 0.9), rgba(16, 11, 26, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transform-style: preserve-3d;
}
.preview::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(242,214,138,0.5), transparent 40%, rgba(139,108,255,0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.preview__top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.preview__title { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.preview__title .brand__mark { width: 26px; height: 26px; font-size: 15px; border-radius: 7px; }
.preview__live {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #7be0a4; display: inline-flex; align-items: center; gap: 6px;
}
.preview__live::before { content:""; width:6px; height:6px; border-radius:50%; background:#7be0a4; box-shadow:0 0 8px #7be0a4; }

.preview__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 13px 13px 12px;
}
.kpi__label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.kpi__value { font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.kpi__delta { font-size: 11px; margin-top: 6px; color: #7be0a4; font-weight: 600; }
.kpi__delta.is-down { color: var(--gold-bright); }

.preview__chart {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px;
}
.preview__chart-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom: 10px; }
.preview__chart-head span { font-size: 12px; color: var(--muted); }
.preview__chart-head b { font-family: var(--display); font-size: 1.15rem; color: var(--gold-bright); font-weight: 400; }
.spark { width: 100%; height: 84px; }

.preview__float {
  position: absolute;
  right: -18px; bottom: 34px;
  background: rgba(16, 11, 26, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
}
.preview__float .badge-ring {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-foil); color: #201705;
  font-weight: 800; font-size: 13px;
}
.preview__float small { display:block; font-size: 11px; color: var(--muted); }
.preview__float b { font-size: 14px; }

/* ==========================================================================
   METRICS BAND
   ========================================================================== */
.metrics { border-block: 1px solid var(--line-soft); }
.metrics__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.metric {
  padding: clamp(28px, 4vw, 44px) 24px;
  border-right: 1px solid var(--line-soft);
  position: relative;
}
.metric:last-child { border-right: none; }
.metric__value {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.6vw, 3.5rem);
  line-height: 1;
  margin-bottom: 12px;
}
.metric__label { color: var(--muted); font-size: 14.5px; max-width: 18ch; }

/* ==========================================================================
   ADVANTAGES
   ========================================================================== */
.adv__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card {
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 38px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 160px at var(--mx, 50%) 0%, rgba(212,175,95,0.10), transparent 70%);
  opacity: 0; transition: opacity 0.35s ease;
  pointer-events: none;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }

.adv__stat {
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  line-height: 1;
  margin-bottom: 6px;
}
.adv__title {
  color: var(--gold);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 16px;
}
.adv__desc { color: var(--text-2); font-size: 15.5px; }

/* ==========================================================================
   STAGES (real sequence -> numbered)
   ========================================================================== */
.stages__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}
.stage { position: relative; display: flex; flex-direction: column; }
.stage__icon {
  width: 64px; height: 64px;
  object-fit: contain; object-position: left center;
  display: block; margin-bottom: 18px;
}
.stage__icon-ph {
  width: 64px; height: 64px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.stage__icon-ph span { font-family: var(--display); font-size: 2rem; color: var(--muted-2); }
.stage__num {
  align-self: flex-start;
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--line);
  font-family: var(--body); font-weight: 700; font-size: 14px;
  color: var(--gold-bright);
  background: var(--bg-2);
  margin-bottom: 14px; white-space: nowrap;
}
.stage p { color: var(--text-2); font-size: 15px; }

/* ==========================================================================
   CASES (horizontal scroll)
   ========================================================================== */
.cases__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.cases__nav { display: flex; gap: 10px; }
.scroll-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--text);
  transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s;
}
.scroll-btn:hover { background: rgba(212,175,95,0.1); border-color: var(--gold); }
.scroll-btn:disabled { opacity: 0.35; cursor: default; }

.cases__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.case {
  background: linear-gradient(168deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 34px);
  display: flex; flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.case:hover { border-color: var(--line); transform: translateY(-4px); }
.case__type {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 22px;
}
.case__type::before { content:""; width: 6px; height: 6px; background: var(--violet); border-radius: 2px; transform: rotate(45deg); }
.case__result-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.case__result {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  line-height: 1;
  margin-bottom: 4px;
}
.case__result-sub { color: var(--text-2); font-size: 14px; margin-bottom: 24px; }

.case__metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 0;
  border-block: 1px solid var(--line-soft);
  margin-bottom: 22px;
}
.case__metric b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--gold-bright); font-weight: 400; }
.case__metric span { font-size: 11.5px; color: var(--muted); line-height: 1.3; display: block; margin-top: 4px; }

.case__quote { color: var(--text-2); font-size: 15px; font-style: italic; margin-bottom: 20px; flex: 1; }
.case__quote::before { content: "“"; font-family: var(--display); color: var(--gold); font-size: 2.2rem; line-height: 0; vertical-align: -0.35em; margin-right: 4px; }
.case__author { display: flex; align-items: center; gap: 12px; }
.case__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--display); color: var(--gold-bright); font-size: 1rem;
}
.case__author b { display: block; font-size: 14.5px; }
.case__author span { font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   CTA BANDS
   ========================================================================== */
.cta-band {
  text-align: center;
  max-width: 720px; margin-inline: auto;
}
.cta-band h2 { margin-bottom: 26px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq__list { border-top: 1px solid var(--line-soft); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  text-align: left;
  padding: 24px 4px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}
.faq__q:hover { color: var(--gold-bright); }
.faq__icon {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  position: relative;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute;
  background: var(--gold-bright);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq__icon::before { width: 12px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 12px; }
.faq__item.is-open .faq__icon { background: rgba(212,175,95,0.12); border-color: var(--gold); }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.faq__a-inner { padding: 0 4px 26px; color: var(--text-2); font-size: 15.5px; }

/* ==========================================================================
   OPEN FORM
   ========================================================================== */
.formsec__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.formcard {
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.6vw, 44px);
  box-shadow: var(--shadow-md);
}
.formsec__aside .eyebrow { margin-bottom: 20px; }
.formsec__aside h2 { margin-bottom: 20px; }
.formsec__aside p { color: var(--text-2); }
.formsec__aside .assure { margin-top: 28px; display: grid; gap: 14px; }
.assure__item { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.assure__item svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-2); margin-bottom: 8px; letter-spacing: 0.01em;
}
.field label .req { color: var(--gold); }
.input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--text);
  font: inherit; font-size: 15.5px;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.input::placeholder { color: var(--muted-2); }
.input:hover { border-color: var(--line); }
.input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(212,175,95,0.05);
  box-shadow: 0 0 0 3px rgba(212,175,95,0.12);
}
textarea.input { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.has-error .input { border-color: #e5766f; }
.field .err {
  display: none; color: #e5877f; font-size: 12.5px; margin-top: 6px;
}
.field.has-error .err { display: block; }
.form__note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.form__note a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { border-top: 1px solid var(--line-soft); padding-block: clamp(40px, 5vw, 60px) 28px; }
.footer__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 28px;
}
.footer__links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__links a { color: var(--text-2); font-size: 14.5px; transition: color 0.2s ease; }
.footer__links a:hover { color: var(--gold-bright); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: 13px;
}

/* ==========================================================================
   MODAL / POPUP
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(6, 4, 10, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  width: 100%; max-width: 460px;
  background: linear-gradient(165deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  position: relative;
}
.modal.is-open .modal__box { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-soft);
  display: grid; place-items: center;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.modal__close:hover { color: var(--text); border-color: var(--line); background: rgba(255,255,255,0.04); }
.modal__eyebrow { margin-bottom: 16px; }
.modal__box h3 { font-size: 1.7rem; margin-bottom: 10px; }
.modal__box .modal__sub { color: var(--text-2); font-size: 15px; margin-bottom: 26px; }

.modal--success { text-align: center; }
.success__ring {
  width: 72px; height: 72px; margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(123, 224, 164, 0.12);
  border: 1px solid rgba(123, 224, 164, 0.4);
}
.success__ring svg { color: #7be0a4; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
html.reveal-ready .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal__head { max-width: 760px; margin-bottom: 48px; }
.legal__head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 18px 0 14px; }
.legal__head p { color: var(--muted); }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.legal__body h3 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--gold-bright); }
.legal__body p, .legal__body li { color: var(--text-2); font-size: 16px; margin-bottom: 14px; }
.legal__body ul { padding-left: 22px; list-style: disc; }
.legal__body ul li { margin-bottom: 8px; }
.legal__body a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.legal__note {
  margin-top: 8px; padding: 16px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(212,175,95,0.05);
  color: var(--muted);
  font-size: 14px;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2); font-size: 14.5px; font-weight: 600;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--gold-bright); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .preview { transform: none; max-width: 520px; }
  .preview__float { right: 10px; }
  .faq__grid, .formsec__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__cta .btn--gold { display: none; }
  .nav__toggle { display: flex; z-index: 120; position: relative; }

  .nav__links {
    display: flex;
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    gap: 2px;
    padding: clamp(90px, 14vh, 130px) clamp(28px, 8vw, 56px) clamp(32px, 6vh, 52px);
    background:
      radial-gradient(120% 80% at 100% 0%, rgba(139,108,255,0.14), transparent 55%),
      radial-gradient(120% 80% at 0% 100%, rgba(212,175,95,0.12), transparent 55%),
      rgba(9, 6, 14, 0.97);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    transform: translateX(100%);
    opacity: 0; visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease, visibility 0.45s;
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }

  .nav__links li { opacity: 0; transform: translateY(14px); }
  .nav.is-open .nav__links li { animation: menuItemIn 0.5s cubic-bezier(0.16,1,0.3,1) forwards; }
  .nav.is-open .nav__links li:nth-child(1) { animation-delay: 0.08s; }
  .nav.is-open .nav__links li:nth-child(2) { animation-delay: 0.14s; }
  .nav.is-open .nav__links li:nth-child(3) { animation-delay: 0.20s; }
  .nav.is-open .nav__links li:nth-child(4) { animation-delay: 0.26s; }
  .nav.is-open .nav__links li:nth-child(5) { animation-delay: 0.32s; }
  @keyframes menuItemIn { to { opacity: 1; transform: none; } }

  .nav__links a {
    display: block; width: 100%;
    font-family: var(--display); font-weight: 400;
    font-size: clamp(1.7rem, 8vw, 2.2rem);
    color: var(--text);
    padding: 20px 2px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__links a:active { color: var(--gold-bright); }

  .nav .nav__cta-mobile { display: block; margin-top: auto; padding-top: 28px; border: none; }
  .nav__cta-mobile a {
    text-align: center;
    font-family: var(--body); font-weight: 700;
    font-size: 16px;
    padding: 17px 0; border: none;
    border-radius: 100px;
    background: var(--gold-foil); color: #201705;
    box-shadow: 0 14px 34px -12px rgba(212,175,95,0.6);
  }

  .metrics__grid { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line-soft); }

  .adv__grid { grid-template-columns: 1fr; }

  .stages__grid { grid-template-columns: 1fr; gap: 22px; }

  .cases__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .metrics__grid { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .metric:last-child { border-bottom: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
}

/* ==========================================================================
   FORMS — .f-group / .pf-group system (works with phone-input.js + main.js)
   ========================================================================== */
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-group, .pf-group { position: relative; }
.f-group.full { grid-column: 1 / -1; }
.f-group label, .pf-group label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text-2); margin-bottom: 8px; letter-spacing: 0.01em;
}
.f-group input, .f-group textarea,
.pf-group input, .pf-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--text);
  font: inherit; font-size: 15px;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.f-group input::placeholder, .f-group textarea::placeholder,
.pf-group input::placeholder { color: var(--muted-2); }
.f-group input:hover, .pf-group input:hover { border-color: var(--line); }
.f-group input:focus, .f-group textarea:focus,
.pf-group input:focus, .pf-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(212,175,95,0.05);
  box-shadow: 0 0 0 3px rgba(212,175,95,0.12);
}
.f-group textarea { resize: vertical; min-height: 92px; }

.field-err {
  display: none;
  color: #e5877f; font-size: 12.5px; margin-top: 6px;
}
.f-group.has-error input, .f-group.has-error textarea,
.pf-group.has-error input {
  border-color: rgba(229,118,111,0.6);
  background: rgba(229,118,111,0.05);
}
.f-group.has-error .field-err, .pf-group.has-error .field-err { display: block; }
.f-group.is-valid input, .pf-group.is-valid input {
  border-color: rgba(123,224,164,0.45);
}

/* Submit button — premium gold */
.form-submit-btn {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 100px;
  font-weight: 700; font-size: 15.5px; line-height: 1;
  color: #201705;
  background: var(--gold-foil);
  box-shadow: 0 12px 30px -10px rgba(212,175,95,0.55), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.25s ease, box-shadow 0.3s ease, opacity 0.2s ease;
  cursor: pointer;
}
.form-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -12px rgba(212,175,95,0.7), inset 0 1px 0 rgba(255,255,255,0.4); }
.form-submit-btn:active { transform: translateY(0) scale(0.99); }
.form-submit-btn:disabled { cursor: default; opacity: 0.75; transform: none; }
.form-submit-btn .btn-arrow { transition: transform 0.25s ease; }
.form-submit-btn:hover .btn-arrow { transform: translateX(4px); }
.form-submit-btn.loading { position: relative; color: transparent; }
.form-submit-btn.loading .btn-text, .form-submit-btn.loading .btn-arrow { visibility: hidden; }
.form-submit-btn.loading::after {
  content: ""; position: absolute; width: 20px; height: 20px;
  border: 2.5px solid rgba(32,23,5,0.35); border-top-color: #201705;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-send-error {
  margin-top: 12px; padding: 11px 14px;
  background: rgba(229,118,111,0.1); border: 1px solid rgba(229,118,111,0.3);
  border-radius: 10px; color: #e5a49e; font-size: 13.5px; text-align: center;
}
.popup-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.popup-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   POPUPS — #popup (КП) and #success-popup
   ========================================================================== */
#popup-overlay, #success-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(6, 4, 10, 0.72);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  animation: ovIn 0.25s ease;
}
@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }

#popup, #success-popup {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px); max-width: 460px;
  z-index: 201; display: none;
  background: linear-gradient(165deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  animation: popIn 0.4s cubic-bezier(0.16,1,0.3,1);
  max-height: calc(100vh - 40px); overflow-y: auto;
}
@keyframes popIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.97); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
/* gold hairline frame */
#popup::before, #success-popup::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(242,214,138,0.5), transparent 42%, rgba(139,108,255,0.32));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.popup-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-soft);
  display: grid; place-items: center;
  color: var(--muted); font-size: 15px; line-height: 1;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.popup-close:hover { color: var(--text); border-color: var(--line); background: rgba(255,255,255,0.04); }

.popup-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 24px;
  background: rgba(212,175,95,0.1); border: 1px solid var(--line);
  margin-bottom: 20px;
}
.popup-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
#popup h3, #success-popup h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.7rem; line-height: 1.1; margin-bottom: 10px; color: var(--text);
}
.popup-sub { color: var(--text-2); font-size: 15px; margin-bottom: 24px; }
#popup form .pf-group { margin-bottom: 14px; }

/* Success */
#success-popup { text-align: center; max-width: 440px; }
.success-anim { margin: 0 auto 22px; width: 74px; height: 74px; }
.success-circle {
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(212,175,95,0.1); border: 1px solid var(--line);
}
.success-circle svg { width: 46px; height: 46px; }
.success-circle .check-path {
  stroke: var(--gold-bright);
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: checkDraw 0.5s 0.15s ease forwards;
}
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
#success-popup p { color: var(--text-2); font-size: 15px; margin-bottom: 24px; }

@media (max-width: 600px) {
  .f-grid { grid-template-columns: 1fr; }
}

/* mobile-only nav CTA hidden on desktop */
.nav__cta-mobile { display: none; }

/* ==========================================================================
   BRAND LOGO (image, replaces "W" mark) + HERO IMAGE + CONTACTS PAGE
   ========================================================================== */
.brand__logo { height: 30px; width: auto; max-width: 190px; display: block; }

/* Hero image frame (swap-in screenshot) */
.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 11;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
}
.hero__media.has-img { aspect-ratio: auto; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(242,214,138,0.45), transparent 45%, rgba(139,108,255,0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.hero__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero__media.has-img img { height: auto; object-fit: fill; }
.hero__media-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--muted); font-size: 14px; text-align: center; padding: 24px;
}
.hero__media-ph svg { width: 46px; height: 46px; opacity: 0.6; }

/* ---- Contacts page ---- */
.subhero { padding-block: clamp(48px, 8vw, 96px) clamp(20px, 3vw, 36px); position: relative; overflow: clip; text-align: center; }
.subhero .hero__spot { top: -180px; }
.subhero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 16px; }
.subhero p { color: var(--text-2); font-size: clamp(1.02rem, 1.8vw, 1.2rem); max-width: 560px; margin: 0 auto; }

.contacts { padding-bottom: clamp(72px, 11vw, 130px); }
.contacts__grid {
  display: grid; grid-template-columns: 0.95fr 1.25fr;
  gap: clamp(24px, 4vw, 52px); align-items: start;
}
.contacts__cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px 22px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.contact-card:hover { border-color: var(--line); transform: translateY(-3px); }
.contact-card__ic {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center; font-size: 22px;
  background: rgba(212,175,95,0.1); border: 1px solid var(--line);
}
.contact-card h3 { font-family: var(--body); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.contact-card p { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.contact-card a { color: var(--gold-bright); font-size: 14.5px; font-weight: 600; }
.contact-card a:hover { color: var(--gold); }
.contact-card__val { color: var(--text); font-size: 14.5px; font-weight: 600; }

.contacts__form { background: linear-gradient(165deg, var(--surface-2), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); position: relative; }
.contacts__form h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 8px; }
.contacts__form > p { color: var(--text-2); font-size: 15px; margin-bottom: 24px; }

/* legal pages back link */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; }
.back-link:hover { color: var(--gold-bright); }

@media (max-width: 860px) {
  .contacts__grid { grid-template-columns: 1fr; }
}
