/* ============================================================
   YOVO GROUP — shared styles for every page
   (index.html, user-acquisition.html, privacy.html, terms.html).
   Cool blue-charcoal dark base + bright "coloring-game" accents.
   Green is reserved for the studio / UA-service path.
   ============================================================ */
:root {
  --bg:        #0E1116;
  --bg-2:      #141a24;
  --bg-3:      #1b2333;
  --line:      #263041;
  --line-2:    #33465e;

  --ink:       #eef4fb;
  --ink-soft:  #ccd7e6;
  --ink-mute:  #8b98ad;

  --blue:      #2F9BEE;
  --cyan:      #23C4C4;
  --green:     #35C759;
  --magenta:   #E84AA0;   /* decorative only: homepage hero paint drops */
  --orange:    #FF8A3D;   /* decorative only, not a UI color */
  --red:       #FF7A7A;
  --yellow:    #FFD21F;   /* brand yellow from the Google Play logo — logo only */
  --on-bright: #06222f;

  --maxw: 1160px;
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Instrument Sans", ui-sans-serif, sans-serif;
  background: var(--bg);
  color: var(--ink-soft);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(1200px 700px at 78% -8%, rgba(47,155,238,0.13), transparent 60%),
    radial-gradient(900px 600px at 8% 12%, rgba(35,196,196,0.09), transparent 55%),
    radial-gradient(1000px 900px at 50% 120%, rgba(232,74,160,0.06), transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4, .display {
  font-family: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h2 { text-wrap: balance; }

[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, select, summary, [role="button"] { cursor: pointer; }

/* Keyboard focus: visible on every control, never removed */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible, .lang button:focus-visible { border-radius: 999px; }

/* Anchored targets are not hidden under the fixed header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; flex-shrink: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
}
.eyebrow.green { color: var(--green); }
.eyebrow.green::before { background: linear-gradient(90deg, var(--cyan), var(--green)); }
.eyebrow.yellow { color: var(--yellow); }
.eyebrow.yellow::before { background: var(--yellow); }

/* Yellow = brand / player world (logo, reviews, games). Never used for buttons. */
::selection { background: var(--yellow); color: var(--on-bright); }
.stars { display: block; width: 104px; height: 20px; margin-top: 12px; fill: var(--yellow); }

section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }

.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 14px; max-width: 860px; }
.section-head .intro { margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.18rem); max-width: 760px; }

/* ---------- HEADER ---------- */
header.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(13,16,21,0.80);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease);
}
header.site-header.scrolled { background: rgba(13,16,21,0.92); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
/* Logo: company wordmark derived from the Google Play logo —
   rounded Fredoka, yellow YOVO + light spaced GROUP */
.logo {
  font-family: "Fredoka", "Bricolage Grotesque", sans-serif;
  display: inline-flex; align-items: baseline; gap: 9px;
  line-height: 1; white-space: nowrap;
  min-height: 44px; padding-top: 10px;
}
.logo-mark {
  font-weight: 700; font-size: 1.9rem; letter-spacing: 0.01em;
  color: var(--yellow);
  text-shadow: 0 2px 0 rgba(0,0,0,0.28);
}
.logo-sub {
  font-weight: 600; font-size: 0.86rem; letter-spacing: 0.24em;
  color: var(--ink);
}
.logo:hover .logo-mark { color: #FFE066; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
/* "For Studios" — accent pill */
.nav-links a.nav-cta {
  color: var(--green);
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid rgba(53,199,89,0.45);
  border-radius: 999px;
  background: rgba(53,199,89,0.08);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover, .nav-links a.nav-cta[aria-current="page"] { background: var(--green); color: var(--on-bright); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.lang {
  display: inline-flex;
  background: rgba(255,244,234,0.06);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 4px; gap: 2px;
}
.lang button {
  font-family: inherit; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-soft); background: transparent; border: 0;
  min-height: 32px; padding: 6px 14px; border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang button.active { color: var(--on-bright); background: linear-gradient(135deg, var(--blue), var(--cyan)); }

.menu-btn {
  display: none; background: transparent; border: 0;
  width: 44px; height: 44px; color: var(--ink);
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- BUTTONS ---------- */
.btn {
  font-family: inherit; font-weight: 600; font-size: 1rem;
  border: 0; min-height: 48px;
  padding: 14px 28px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--on-bright); background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.btn-green   { color: var(--on-bright); background: linear-gradient(135deg, var(--cyan), var(--green)); }
.btn-ghost   { color: var(--ink); background: rgba(255,244,234,0.06); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,244,234,0.12); }
.btn[disabled] { opacity: 0.65; transform: none; cursor: progress; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 88px;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 70% 20%, rgba(47,155,238,0.32), transparent 55%),
    radial-gradient(120% 120% at 15% 85%, rgba(35,196,196,0.24), transparent 55%),
    radial-gradient(85% 85% at 88% 92%, rgba(232,74,160,0.16), transparent 60%),
    linear-gradient(160deg, #141d2b, #0b0e14 72%);
}
.hero.hero-page { min-height: 86svh; }
.hero.hero-page.green-tint {
  background:
    radial-gradient(110% 110% at 75% 15%, rgba(53,199,89,0.20), transparent 55%),
    radial-gradient(120% 120% at 12% 85%, rgba(35,196,196,0.22), transparent 55%),
    linear-gradient(160deg, #121c22, #0b0e14 72%);
}
.hero-field { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-media { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.hero-media::after, .hero-shade {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(130% 105% at 22% 46%, rgba(8,11,17,0.82) 0%, rgba(8,11,17,0.38) 44%, transparent 68%),
    linear-gradient(90deg, rgba(8,11,17,0.92) 0%, rgba(8,11,17,0.58) 48%, rgba(8,11,17,0.22) 100%),
    linear-gradient(0deg, rgba(8,11,17,0.90), transparent 58%);
}
.hero-shade { z-index: 1; opacity: 0.55; }
.hero-inner { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 5.1rem); font-weight: 800; margin: 22px 0 20px; }
.hero.hero-page h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--blue) 8%, var(--cyan) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero.green-tint h1 .accent { background-image: linear-gradient(120deg, var(--cyan) 8%, var(--green) 92%); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 600px; }
.hero .btn-row { margin-top: 34px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 2;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-mute); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.scroll-cue .mouse { width: 22px; height: 34px; border: 2px solid var(--ink-mute); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; border-radius: 3px; background: var(--yellow);
  transform: translateX(-50%);
  animation: wheel 1.7s var(--ease) infinite;
}
@keyframes wheel { 0%{opacity:0; transform:translate(-50%,0)} 40%{opacity:1} 100%{opacity:0; transform:translate(-50%,11px)} }

/* ---------- METRICS (5 cards: 3 + 2) ---------- */
.metrics-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin-top: 44px; }
.metric {
  grid-column: span 2;
  padding: 36px 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
  position: relative; overflow: hidden;
}
.metric.wide { grid-column: span 3; }
.metric::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.metric.ua::before { background: linear-gradient(90deg, var(--cyan), var(--green)); }
.metric .num {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.8rem); color: var(--ink);
  line-height: 1; letter-spacing: -0.03em;
  display: flex; align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.metric .num .suffix { color: var(--cyan); }
.metric.ua .num .suffix { color: var(--green); }
.metric.yellow::before { background: var(--yellow); }
.metric.yellow .num .suffix { color: var(--yellow); }
.metric.yellow .label { margin-top: 10px; }
.metric .label { margin-top: 14px; color: var(--ink-mute); font-size: 1rem; font-weight: 500; }

/* ---------- ABOUT ---------- */
.about-lead {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--ink); max-width: 900px;
  margin: 18px 0 24px; letter-spacing: -0.02em; line-height: 1.1;
}
.about-body { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 780px; }

/* ---------- HIGHLIGHTED BAND (studio path) ---------- */
.band {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(53,199,89,0.09), transparent 60%),
    linear-gradient(180deg, rgba(20,26,36,0) 0%, rgba(20,26,36,0.8) 12%, rgba(20,26,36,0.8) 88%, rgba(20,26,36,0) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band .btn-row { margin-top: 40px; }

/* ---------- CARDS ---------- */
.cards { display: grid; gap: 20px; margin-top: 44px; }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
  padding: 28px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(165deg, var(--bg-3), var(--bg-2));
}
.card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--green);
  background: rgba(53,199,89,0.12);
  border: 1px solid rgba(53,199,89,0.35);
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.16rem; margin-bottom: 8px; letter-spacing: -0.01em; line-height: 1.2; }
.card p { font-size: 0.96rem; color: var(--ink-mute); line-height: 1.55; }

/* ---------- FEATURED GAMES ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin-top: 48px; }
.game-card {
  position: relative; display: flex; flex-direction: column;
  padding: 24px 22px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(165deg, var(--bg-2), var(--bg));
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.game-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.game-card .icon { width: 86px; height: 86px; border-radius: 20px; object-fit: cover; box-shadow: 0 12px 26px rgba(6,9,14,0.45); margin-bottom: 18px; }
.game-card.flagship { border-color: rgba(255,210,31,0.45); }
.tag {
  position: absolute; top: 16px; right: 16px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--on-bright); background: var(--yellow);
  padding: 4px 10px; border-radius: 999px;
}
.game-card h3 { font-size: 1.18rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.game-card .genre { font-size: 0.92rem; color: var(--ink-mute); margin-bottom: 18px; flex-grow: 1; }
.play-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px;
  font-size: 0.88rem; font-weight: 600; color: var(--blue); margin-top: auto;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.play-link:hover { color: var(--cyan); gap: 11px; }
.play-link svg { width: 15px; height: 15px; }
.games-cta { text-align: center; margin-top: 56px; }
.btn-store {
  font-size: 1.1rem; padding: 18px 36px;
  color: var(--on-bright); background: linear-gradient(135deg, var(--blue), var(--cyan));
  animation: pulse-glow 2.8s var(--ease) infinite;
}
@keyframes pulse-glow {
  0%   { box-shadow: 0 0 0 0 rgba(47,155,238,0.45); }
  70%  { box-shadow: 0 0 0 22px rgba(47,155,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,155,238,0); }
}

/* ---------- STAT STRIP (UA page) ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.stat-strip > div { padding: 26px 24px; border-left: 1px solid var(--line); }
.stat-strip > div:first-child { border-left: 0; }
.stat-strip .snum {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem); color: var(--ink); line-height: 1; letter-spacing: -0.03em;
}
.stat-strip .snum span { color: var(--green); }
.stat-strip .yellow .snum span { color: var(--yellow); }
.stat-strip .stars { width: 84px; height: 16px; margin-top: 8px; }
.stat-strip .slabel { margin-top: 8px; font-size: 0.94rem; color: var(--ink-mute); }
section.strip-section { padding: 0; margin-top: -56px; z-index: 3; }

/* ---------- PROBLEM LIST ---------- */
.problems { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.problems li {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  padding: 22px 24px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2);
  font-size: 1.04rem; color: var(--ink-soft); line-height: 1.5;
}
.problems li .x {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--red); border: 1.5px solid rgba(255,122,122,0.4);
}
.problems li .x svg { width: 18px; height: 18px; }
.problem-close {
  margin-top: 28px; padding: 22px 26px;
  border-left: 3px solid var(--green); border-radius: 0 14px 14px 0;
  background: rgba(53,199,89,0.07);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--ink); line-height: 1.3;
}

/* ---------- STEPS ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
}
.steps li::before {
  content: counter(step);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.15rem;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 18px;
  color: var(--green); border: 1.5px solid rgba(53,199,89,0.55);
}
.steps h3 { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.2; }
.steps p { font-size: 0.95rem; color: var(--ink-mute); line-height: 1.55; }

/* ---------- WHY ---------- */
.why { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 44px; }
.why .card { grid-column: span 2; }
.why .card:nth-child(4), .why .card:nth-child(5) { grid-column: span 3; }

/* ---------- WAYS + FIT ---------- */
.ways-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; align-items: stretch; }
.panel {
  padding: 32px 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(165deg, var(--bg-3), var(--bg-2));
}
.panel h3 { font-size: 1.4rem; margin-bottom: 14px; letter-spacing: -0.01em; }
.panel .kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; display: block; }
.panel p { color: var(--ink-soft); }
.panel .note { margin-top: 20px; font-size: 0.92rem; color: var(--ink-mute); }
.panel.fit { border-color: rgba(53,199,89,0.4); background: linear-gradient(165deg, rgba(53,199,89,0.08), var(--bg) 70%); }
.ways-list { display: grid; gap: 16px; }
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--ink-soft); line-height: 1.45; }
.checklist li svg { width: 22px; height: 22px; margin-top: 1px; }
.checklist li.yes svg { color: var(--green); }
.checklist li.no { color: var(--ink-mute); padding-top: 14px; border-top: 1px solid var(--line); }
.checklist li.no svg { color: var(--red); }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; display: grid; gap: 12px; max-width: 880px; }
.faq details {
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.faq details[open] { border-color: var(--line-2); background: var(--bg-3); }
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 16px 22px;
  font-weight: 600; font-size: 1.04rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 22px; height: 22px; flex-shrink: 0; color: var(--ink-mute); transition: transform 0.25s var(--ease); }
.faq details[open] summary .chev { transform: rotate(180deg); color: var(--green); }
.faq details > p { padding: 0 22px 20px; color: var(--ink-soft); max-width: 760px; }

/* ---------- FORMS ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 44px; align-items: start; }
form.lead-form {
  display: grid; gap: 18px;
  padding: 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2);
}
.field { display: grid; gap: 7px; }
.field label, .field .label {
  font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.01em;
}
.field .opt { color: var(--ink-mute); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #6f7c94; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); background: var(--bg-3); box-shadow: 0 0 0 3px rgba(47,155,238,0.25); }
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b98ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
.field select option { background: var(--bg-2); color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field .hint { font-size: 0.84rem; color: var(--ink-mute); }
.error-msg { font-size: 0.86rem; color: var(--red); font-weight: 500; }
.error-msg[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.93rem; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.check a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.check-wrap { display: grid; gap: 6px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.95rem; border-radius: 14px; padding: 16px 18px; }
.form-status[hidden] { display: none; }
.form-status.ok { background: rgba(53,199,89,0.1); border: 1px solid rgba(53,199,89,0.45); color: var(--ink); }
.form-status.err { background: rgba(255,122,122,0.08); border: 1px solid rgba(255,122,122,0.45); color: var(--ink); }
.form-status a { color: var(--blue); text-decoration: underline; }
.form-note { font-size: 0.84rem; color: var(--ink-mute); }
.form-note a { color: var(--blue); }
.form-success-panel { padding: 34px 30px; border: 1px solid rgba(53,199,89,0.45); border-radius: var(--radius); background: rgba(53,199,89,0.08); }
.form-success-panel h3 { font-size: 1.4rem; margin-bottom: 10px; }

.review-aside h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); margin-top: 14px; }
.review-aside .intro { margin: 20px 0 28px; font-size: 1.08rem; }
.review-aside .checklist li { font-size: 1rem; }
.mail-alt { margin-top: 28px; font-size: 0.95rem; color: var(--ink-mute); }
.mail-alt a { color: var(--blue); font-weight: 600; display: inline-block; padding: 10px 0; }

/* ---------- CONTACTS ---------- */
.contact-info h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 14px; }
.contact-info .intro { margin-top: 16px; font-size: 1.08rem; max-width: 460px; }
.contact-info .email-row { margin: 26px 0 36px; }
.contact-info .email-row a {
  display: inline-block; padding: 6px 0;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.85rem); color: var(--blue); letter-spacing: -0.02em;
  word-break: break-word;
}
.contact-info .email-row a:hover { color: var(--cyan); }
.offices { display: grid; gap: 16px; }
.office { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; background: var(--bg-2); }
.office .oname { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.office .oname .dot { width: 9px; height: 9px; border-radius: 50%; }
.office.bg .dot { background: var(--blue); }
.office.ua .dot { background: var(--green); }
.office .oaddr { color: var(--ink-mute); font-size: 0.95rem; }

/* ---------- FOOTER ---------- */
footer.site-footer { border-top: 1px solid var(--line); padding: 34px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot .logo { padding-top: 6px; }
.foot .logo-mark { font-size: 1.35rem; }
.foot .logo-sub { font-size: 0.7rem; }
.foot .copy { color: var(--ink-mute); font-size: 0.9rem; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-mute); font-size: 0.92rem; font-weight: 500; transition: color 0.25s var(--ease); min-height: 32px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--blue); }

/* ---------- COOKIE CONSENT (shown only when GA4 is configured) ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  max-width: 560px; margin-left: auto;
  padding: 20px 22px;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: rgba(20,26,36,0.97);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  display: grid; gap: 14px;
  font-size: 0.93rem; color: var(--ink-soft);
}
.consent a { color: var(--blue); text-decoration: underline; }
.consent .btn { min-height: 44px; padding: 10px 20px; font-size: 0.93rem; }

/* ---------- LEGAL PAGES ---------- */
.legal-main { padding: calc(var(--header-h) + clamp(40px, 7vw, 80px)) 0 clamp(48px, 8vw, 90px); }
.legal-main .wrap { max-width: 868px; }
.legal-main h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; margin: 16px 0 6px; }
.legal-main .entity { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 10px; }
.legal-main .updated { color: var(--ink-mute); font-size: 0.92rem; margin-bottom: 36px; }
.legal { line-height: 1.7; }
.legal h2 { font-size: 1.45rem; font-weight: 700; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal h3 { font-size: 1.08rem; font-weight: 600; color: var(--ink); margin: 24px 0 8px; }
.legal p { margin-bottom: 16px; }
.legal ul { margin: 0 0 20px; padding-left: 22px; }
.legal li { margin-bottom: 10px; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal a:hover { color: var(--cyan); }
.legal .allcaps {
  border-left: 3px solid var(--blue); background: var(--bg-2);
  padding: 18px 20px; border-radius: 0 12px 12px 0; margin: 0 0 22px;
  font-size: 0.9rem; letter-spacing: 0.02em; line-height: 1.6;
  color: var(--ink-soft); text-transform: uppercase;
}
.legal .contact-block { border: 1px solid var(--line); background: var(--bg-2); border-radius: 14px; padding: 22px 24px; margin-top: 22px; }
.legal .contact-block p { margin-bottom: 6px; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1060px) {
  .nav-links { gap: 22px; }
  .cards.c4, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(13,16,21,0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px;
    transform: translateY(-140%); visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; transition: transform 0.4s var(--ease); }
  .nav-links a { padding: 12px 0; font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-links a.nav-cta { text-align: center; padding: 12px 16px; margin-top: 8px; }
  .menu-btn { display: inline-flex; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .metric, .metric.wide { grid-column: span 1; }
  .metric:first-child { grid-column: span 2; }
  .cards.c3 { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .why .card, .why .card:nth-child(4) { grid-column: span 1; }
  .why .card:nth-child(5) { grid-column: span 2; }
  .ways-fit, .form-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip > div:nth-child(3) { border-left: 0; }
  .stat-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .problems { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .lang button { padding: 6px 11px; }
  .logo-mark { font-size: 1.5rem; }
  .logo-sub { font-size: 0.72rem; letter-spacing: 0.2em; }
  .logo { gap: 7px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric:first-child { grid-column: span 1; }
  .cards.c4, .steps, .why { grid-template-columns: 1fr; }
  .why .card:nth-child(5) { grid-column: span 1; }
  .games-grid { grid-template-columns: 1fr; }
  .hero .btn-row, .band .btn-row { flex-direction: column; align-items: stretch; }
  .field-row { grid-template-columns: 1fr; }
  form.lead-form { padding: 22px 18px; }
  .panel { padding: 26px 22px; }
  .stat-strip > div { padding: 20px 18px; }
  section.strip-section { margin-top: -36px; }
}

/* ---------- REDUCED MOTION ---------- */
@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; }
  .reveal { opacity: 1; transform: none; }
  .btn-store { animation: none; box-shadow: 0 8px 30px rgba(47,155,238,0.30); }
  .hero-media video { display: none; }
}
