/* =========================================================
   ASCENT: узконишевое агентство. Premium dark minimalist.
   Accent color lives in ONE place: --accent (below).
   Swap it in a single line to recolor the whole site.
   ========================================================= */

:root {
  /* ---- ACCENT: change this one line to recolor everything ---- */
  --accent: #C7F464;            /* electric lime, growth/premium. NOT orange. */
  --accent-ink: #10120E;        /* near-black text that sits ON the accent */

  --bg: #0B0B0C;                /* near-black charcoal base */
  --bg-2: #111214;             /* raised surface */
  --bg-3: #17181B;             /* cards */
  --line: rgba(255,255,255,0.09);
  --line-2: rgba(255,255,255,0.16);
  --fg: #F4F4F1;               /* primary text */
  --fg-dim: #9A9A97;           /* secondary text */
  --fg-faint: #63635F;         /* faint text */

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.accent { color: var(--accent); }
.dim { color: var(--fg-dim); }

/* ---------- Section scaffolding ---------- */
section { position: relative; padding-block: clamp(72px, 12vw, 160px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim); font-weight: 600;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: var(--accent);
  display: inline-block;
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 {
  font-size: clamp(30px, 5.4vw, 60px);
  margin-top: 20px;
}
.section-head p { color: var(--fg-dim); margin-top: 20px; font-size: clamp(16px, 2vw, 19px); max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 100px; font-weight: 600; font-size: 15px;
  transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s;
  will-change: transform;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-3px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translate(3px,-3px); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(11,11,12,0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand .dot { color: var(--accent); }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a.link { font-size: 14px; color: var(--fg-dim); transition: color .25s; }
.nav a.link:hover { color: var(--fg); }
.nav .btn { padding: 11px 20px; }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 120px; padding-bottom: 60px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 55% at 78% 8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(255,255,255,0.05), transparent 70%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px;
  font-size: 13px; color: var(--fg-dim); margin-bottom: 34px; background: var(--bg-2);
}
.hero-tag .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);} 70%{box-shadow:0 0 0 10px transparent;} 100%{box-shadow:0 0 0 0 transparent;} }

.hero h1 {
  font-size: clamp(38px, 8.2vw, 104px);
  max-width: 15ch;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; will-change: transform; }
.hero-sub {
  margin-top: 34px; max-width: 560px; color: var(--fg-dim);
  font-size: clamp(16px, 2.1vw, 20px);
}
.hero-sub b { color: var(--fg); font-weight: 600; }
.hero-cta { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-mini { margin-top: 56px; display: flex; gap: clamp(24px, 5vw, 60px); flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.hero-mini .m-num { font-family: 'Space Grotesk', sans-serif; font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; }
.hero-mini .m-lab { font-size: 13px; color: var(--fg-dim); margin-top: 2px; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding-block: 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 44px; padding-block: 20px; will-change: transform; }
.marquee-track span { font-family: 'Space Grotesk', sans-serif; font-size: 15px; color: var(--fg-faint); letter-spacing: 0.04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 44px; }
.marquee-track span::after { content: '✦'; color: var(--accent); }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: clamp(26px, 3vw, 44px) clamp(20px, 2.4vw, 34px); transition: background .4s var(--ease); }
.stat:hover { background: var(--bg-3); }
.stat .num { font-family: 'Space Grotesk', sans-serif; font-size: clamp(34px, 5vw, 66px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat .num .suf { color: var(--accent); }
.stat .lab { color: var(--fg-dim); font-size: 14px; margin-top: 14px; }

/* ---------- Problem / Solution ---------- */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 30px); }
.ps-col { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); background: var(--bg-2); }
.ps-col.solve { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--bg-2)), var(--bg-2)); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.ps-col h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 22px; }
.ps-list { list-style: none; display: grid; gap: 14px; }
.ps-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--fg-dim); font-size: 16px; }
.ps-list .ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; margin-top: 2px; }
.ps-col.prob .ic { background: rgba(255,255,255,0.06); color: var(--fg-faint); }
.ps-col.solve .ic { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.ps-col.solve .ps-list li { color: var(--fg); }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc {
  background: var(--bg); padding: clamp(24px, 2.6vw, 34px);
  display: flex; flex-direction: column; min-height: 260px; position: relative;
  transition: background .4s var(--ease);
}
.svc:hover { background: var(--bg-3); }
.svc .idx { font-family: 'Space Grotesk', sans-serif; font-size: 13px; color: var(--fg-faint); letter-spacing: 0.1em; }
.svc h3 { font-size: 20px; margin-top: 18px; }
.svc p { color: var(--fg-dim); font-size: 14.5px; margin-top: 12px; flex: 1; }
.svc .price { margin-top: 18px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 17px; }
.svc .price .from { color: var(--fg-faint); font-size: 12px; font-weight: 400; display: block; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 3px; }
.svc .price .val { color: var(--accent); }

/* ---------- Configurator ---------- */
.cfg { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 2.6vw, 30px); align-items: start; }
.cfg-presets { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.preset {
  border: 1px solid var(--line-2); border-radius: 100px; padding: 10px 20px; font-size: 14px; font-weight: 600;
  color: var(--fg-dim); transition: all .3s var(--ease);
}
.preset:hover { color: var(--fg); border-color: var(--fg); }
.preset.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.preset .p-price { opacity: .7; font-weight: 400; margin-left: 6px; }

.cfg-items { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cfg-item {
  background: var(--bg-2); padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; transition: background .3s var(--ease); user-select: none;
}
.cfg-item:hover { background: var(--bg-3); }
.cfg-item.on { background: color-mix(in srgb, var(--accent) 10%, var(--bg-2)); }
.cfg-item .ci-main { display: flex; align-items: center; gap: 14px; }
.cfg-item .ci-name { font-weight: 600; font-size: 15px; }
.cfg-item .ci-price { font-size: 13px; color: var(--fg-dim); font-family: 'Space Grotesk', sans-serif; }
.toggle {
  flex: none; width: 44px; height: 26px; border-radius: 100px; background: rgba(255,255,255,0.12);
  position: relative; transition: background .3s var(--ease);
}
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--fg); transition: transform .3s var(--ease); }
.cfg-item.on .toggle { background: var(--accent); }
.cfg-item.on .toggle::after { transform: translateX(18px); background: var(--accent-ink); }

.cfg-summary {
  position: sticky; top: 100px; border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 32px); background: var(--bg-2);
}
.cfg-summary h4 { font-family: 'Space Grotesk', sans-serif; font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-dim); margin-bottom: 20px; }
.sum-list { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; min-height: 24px; }
.sum-list li { display: flex; justify-content: space-between; font-size: 14px; color: var(--fg-dim); }
.sum-list li .sv { color: var(--fg); font-family: 'Space Grotesk', sans-serif; }
.sum-empty { color: var(--fg-faint); font-size: 14px; }
.sum-div { height: 1px; background: var(--line); margin: 6px 0 18px; }
.sum-discount { display: flex; justify-content: space-between; font-size: 14px; color: var(--accent); margin-bottom: 14px; }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; }
.sum-total .t-lab { font-size: 15px; color: var(--fg-dim); }
.sum-total .t-val { font-family: 'Space Grotesk', sans-serif; font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -0.02em; }
.cfg-summary .btn { width: 100%; justify-content: center; margin-top: 24px; }
.cfg-note { font-size: 12px; color: var(--fg-faint); margin-top: 16px; text-align: center; }
.sum-indiv { margin-top: 12px; font-size: 13px; color: var(--accent); font-weight: 600; }
.sum-total .t-val .from { font-size: 0.5em; color: var(--fg-dim); font-weight: 400; margin-right: 6px; letter-spacing: 0; vertical-align: middle; }

/* ---------- Process ---------- */
.proc-lead { border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg-2)), var(--bg-2)); border-radius: var(--radius); padding: clamp(28px, 3.4vw, 46px); margin-bottom: clamp(30px,4vw,48px); }
.proc-lead .big { font-size: clamp(24px, 4vw, 40px); font-family: 'Space Grotesk', sans-serif; font-weight: 600; letter-spacing: -0.02em; }
.proc-lead .big em { font-style: normal; color: var(--accent); }
.proc-lead p { color: var(--fg-dim); margin-top: 16px; max-width: 640px; }
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.proc { background: var(--bg); padding: clamp(24px,2.6vw,34px); min-height: 210px; display: flex; flex-direction: column; }
.proc .step { font-family: 'Space Grotesk', sans-serif; font-size: 14px; color: var(--accent); letter-spacing: 0.1em; }
.proc h3 { font-size: 20px; margin-top: auto; }
.proc p { color: var(--fg-dim); font-size: 14px; margin-top: 10px; }

/* ---------- About / Case ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.about-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: clamp(28px,3vw,40px); }
.about-face { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.about-avatar { width: 66px; height: 66px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #666)); display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 26px; color: var(--accent-ink); }
.about-face .n { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 20px; }
.about-face .r { color: var(--fg-dim); font-size: 14px; }
.about-card p { color: var(--fg-dim); margin-bottom: 16px; }
.about-card p b { color: var(--fg); font-weight: 600; }
.about h2 { font-size: clamp(28px, 4.6vw, 52px); }
.about .lead { color: var(--fg-dim); margin-top: 22px; font-size: clamp(16px,2vw,19px); }
.flag { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; border: 1px solid var(--line-2); border-radius: 100px; padding: 10px 18px; font-size: 14px; }
.flag b { color: var(--accent); }

.cases { margin-top: clamp(40px, 6vw, 72px); }

/* Featured case: real screenshot + numbers */
.case-feat {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px,3vw,36px);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: var(--radius); background: var(--bg-2); padding: clamp(18px,2.4vw,26px);
  align-items: center;
}
.case-shot {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2);
  background: #fff; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7);
}
.case-shot img { width: 100%; height: auto; display: block; }
.case-body { padding: clamp(6px,1vw,14px) clamp(6px,1.4vw,18px); }
.case-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-ink); background: var(--accent);
  padding: 6px 12px; border-radius: 100px; font-weight: 700;
}
.case-body h3 { font-size: clamp(22px,3vw,32px); margin-top: 18px; }
.case-sub { color: var(--fg-dim); font-size: 15px; margin-top: 10px; }
.case-figures {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 24px;
}
.figure { background: var(--bg); padding: 18px 20px; }
.figure.figure-wide { grid-column: span 2; }
.figure .fg-num { font-family: 'Space Grotesk', sans-serif; font-size: clamp(22px,2.8vw,30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.figure .fg-lab { color: var(--fg-dim); font-size: 13px; margin-top: 8px; }
.case-take { margin-top: 22px; font-size: 15px; color: var(--fg); border-left: 2px solid var(--accent); padding-left: 16px; }

.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2vw,22px); }

/* Real Avito results gallery (masonry via CSS columns) */
.proof { margin-top: clamp(30px, 4vw, 48px); }
.proof-caption {
  color: var(--fg-dim); font-size: clamp(15px, 2vw, 18px); max-width: 820px;
  margin-bottom: clamp(24px, 3vw, 34px); border-left: 2px solid var(--accent); padding-left: 18px;
}
.gallery { columns: 2; column-gap: clamp(14px, 1.8vw, 20px); }
.shot {
  break-inside: avoid; margin-bottom: clamp(14px, 1.8vw, 20px);
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2);
  background: #fff; cursor: zoom-in; position: relative; display: block;
  transition: transform .4s var(--ease), border-color .3s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.shot:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); box-shadow: 0 24px 50px -26px rgba(0,0,0,0.7); }
.shot img { width: 100%; height: auto; display: block; }
.shot::after {
  content: '⤢'; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
  border-radius: 8px; background: rgba(16,18,14,0.72); color: var(--accent);
  display: grid; place-items: center; font-size: 15px; opacity: 0; transition: opacity .3s;
  backdrop-filter: blur(4px);
}
.shot:hover::after { opacity: 1; }

/* Proof groups (categorized showcase) */
.proof-group { margin-top: clamp(40px, 6vw, 76px); }
.proof-group:first-of-type { margin-top: clamp(30px, 4vw, 48px); }
.group-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: clamp(22px, 3vw, 34px); }
.group-num { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; color: var(--accent-ink); background: var(--accent); border-radius: 8px; padding: 5px 10px; flex: none; margin-top: 4px; }
.group-head h3 { font-size: clamp(21px, 3vw, 30px); }
.group-cap { color: var(--fg-dim); font-size: clamp(14px, 1.8vw, 16px); margin-top: 10px; max-width: 760px; }

/* Stacked featured card (wide short image on top, numbers below) */
.case-feat.stacked { grid-template-columns: 1fr; }
.case-feat.stacked .case-shot { background: #fff; }
.case-feat.stacked .case-body { padding-top: 4px; }

.case-shot.shot { cursor: zoom-in; display: block; position: relative; transition: border-color .3s var(--ease), box-shadow .4s var(--ease); }
.case-shot.shot::after {
  content: '⤢'; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
  border-radius: 8px; background: rgba(16,18,14,0.72); color: var(--accent);
  display: grid; place-items: center; font-size: 15px; opacity: 0; transition: opacity .3s; backdrop-filter: blur(4px); z-index: 2;
}
.case-shot.shot:hover::after { opacity: 1; }
.case-shot.shot:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }

/* Social gallery: 3-column masonry (portrait phone screenshots) */
.gallery--social { columns: 3; }
.shot-cap {
  display: block; font-family: 'Space Grotesk', sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--accent-ink); background: var(--accent); padding: 8px 12px; letter-spacing: 0.01em;
}

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 22px); }
.review-card { cursor: zoom-in; }
.review-card .shot-cap { background: var(--bg-3); color: var(--fg-dim); border-top: 1px solid var(--line); }

/* Training */
.training-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 22px); max-width: 720px; }
.training-card { cursor: zoom-in; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(6,6,7,0.92);
  backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 56px); opacity: 0; transition: opacity .3s var(--ease);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox .lb-img {
  max-width: 100%; max-height: 90vh; width: auto; border-radius: 12px;
  background: #fff; box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8);
  transform: scale(.96); transition: transform .35s var(--ease);
}
.lightbox.open .lb-img { transform: scale(1); }
.lb-close {
  position: absolute; top: clamp(14px, 3vw, 26px); right: clamp(14px, 3vw, 26px);
  width: 46px; height: 46px; border-radius: 50%; background: var(--bg-2);
  border: 1px solid var(--line-2); color: var(--fg); font-size: 18px;
  display: grid; place-items: center; transition: background .25s, color .25s, transform .3s var(--ease);
}
.lb-close:hover { background: var(--accent); color: var(--accent-ink); transform: rotate(90deg); }

@media (max-width: 620px) {
  .gallery { columns: 1; }
  .gallery--social { columns: 1; }
  .reviews-grid { grid-template-columns: 1fr; }
  .training-grid { grid-template-columns: 1fr; }
  .group-head { gap: 12px; }
}
.case-slot { aspect-ratio: 4/3; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--bg-2); display: grid; place-items: center; text-align: center; color: var(--fg-faint); font-size: 13px; padding: 20px; transition: border-color .3s, color .3s; }
.case-slot:hover { border-color: var(--accent); color: var(--fg-dim); }
.case-slot .ph-ic { font-size: 26px; margin-bottom: 10px; opacity: .5; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.faq-item { background: var(--bg); }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(22px,2.6vw,30px) 4px; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: clamp(17px,2.2vw,22px); letter-spacing: -0.01em; }
.faq-q .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; position: relative; transition: background .3s, border-color .3s; }
.faq-q .pm::before, .faq-q .pm::after { content: ''; position: absolute; background: var(--fg); transition: transform .3s var(--ease), background .3s; }
.faq-q .pm::before { width: 12px; height: 1.5px; }
.faq-q .pm::after { width: 1.5px; height: 12px; }
.faq-item.open .faq-q .pm { background: var(--accent); border-color: var(--accent); }
.faq-item.open .faq-q .pm::before, .faq-item.open .faq-q .pm::after { background: var(--accent-ink); }
.faq-item.open .faq-q .pm::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a-inner { padding: 0 4px 28px; color: var(--fg-dim); max-width: 720px; }

/* ---------- Final CTA / Form ---------- */
.cta { position: relative; }
.cta-card { border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: clamp(20px, 3vw, 30px); overflow: hidden; background: var(--bg-2); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; }
.cta-left { padding: clamp(30px, 4vw, 60px); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, var(--bg-2)), var(--bg-2)); }
.cta-left h2 { font-size: clamp(28px, 4.4vw, 52px); }
.cta-left p { color: var(--fg-dim); margin-top: 20px; max-width: 400px; }
.cta-left .assure { margin-top: 30px; display: grid; gap: 12px; }
.cta-left .assure div { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.cta-left .assure .ic { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.form { padding: clamp(30px, 4vw, 60px); display: grid; gap: 16px; align-content: center; }
.field label { display: block; font-size: 13px; color: var(--fg-dim); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px; color: var(--fg); font-family: inherit; font-size: 15px; transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-content: center; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-err { display: none; color: #ff8a8a; font-size: 13px; margin-top: 4px; text-align: center; }
.form-err.show { display: block; }
.form-ok { display: none; text-align: center; padding: 20px; }
.form-ok.show { display: block; }
.form-ok .big-check { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 30px; margin: 0 auto 20px; }
.form-ok h3 { font-size: 26px; }
.form-ok p { color: var(--fg-dim); margin-top: 10px; }
.form.hidden { display: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 64px); }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.footer .brand { font-size: 26px; }
.footer .f-tag { color: var(--fg-dim); max-width: 320px; margin-top: 14px; font-size: 15px; }
.footer-links { display: flex; gap: clamp(30px, 6vw, 80px); flex-wrap: wrap; }
.footer-links .col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-faint); margin-bottom: 16px; }
.footer-links .col a { display: block; color: var(--fg-dim); font-size: 15px; margin-bottom: 10px; transition: color .25s; }
.footer-links .col a:hover { color: var(--accent); }
.footer-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); color: var(--fg-faint); font-size: 13px; }

/* ---------- Reveal animation base ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: span 2; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .cfg { grid-template-columns: 1fr; }
  .cfg-summary { position: static; }
}
@media (max-width: 820px) {
  .nav .link { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .case-feat { grid-template-columns: 1fr; }
  .gallery--social { columns: 2; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .ps-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat:last-child { grid-column: span 1; }
  .proc-grid { grid-template-columns: 1fr; }
  .cfg-items { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .footer-bot { flex-direction: column; gap: 10px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
