/* ============================================================
   AntiAds31 — design system
   Темна/світла тема (auto за prefers-color-scheme), червоний акцент
   ============================================================ */

:root {
  color-scheme: dark;

  /* base surfaces */
  --bg:        #0a0a0c;
  --bg-2:      #101014;
  --bg-alt:    #101014;
  --surface:   #16161c;
  --surface-2: #1d1d25;
  --line:      rgba(255, 255, 255, 0.09);

  /* text */
  --text:    #f5f5f7;
  --muted:   #a0a0ab;
  --muted-2: #71717f;

  /* accent */
  --accent:      #ec1c24;
  --accent-2:    #ff3b43;
  --accent-soft: rgba(236, 28, 36, 0.12);
  --accent-glow: rgba(236, 28, 36, 0.35);

  /* misc */
  --header-bg: rgba(10, 10, 12, 0.82);
  --ghost-num: rgba(255, 255, 255, 0.05);
  --shadow:        0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 20px 50px -18px var(--accent-glow);

  /* type */
  --font-head: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* layout */
  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --gap: clamp(16px, 3vw, 28px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* light palette — applied when browser prefers light (no manual override)
   or when user forces light via [data-theme="light"] */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg:        #f7f7f5;
    --bg-2:      #ffffff;
    --bg-alt:    #ececeb;
    --surface:   #ffffff;
    --surface-2: #f2f2f0;
    --line:      rgba(0, 0, 0, 0.10);
    --text:    #0d0d10;
    --muted:   #55555f;
    --muted-2: #8a8a93;
    --accent:      #e11d24;
    --accent-2:    #c8161d;
    --accent-soft: rgba(225, 29, 36, 0.10);
    --accent-glow: rgba(225, 29, 36, 0.20);
    --header-bg: rgba(247, 247, 245, 0.85);
    --ghost-num: rgba(0, 0, 0, 0.05);
    --shadow:        0 20px 50px -24px rgba(0, 0, 0, 0.20);
    --shadow-accent: 0 18px 44px -18px var(--accent-glow);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg:        #f7f7f5;
  --bg-2:      #ffffff;
  --bg-alt:    #ececeb;
  --surface:   #ffffff;
  --surface-2: #f2f2f0;
  --line:      rgba(0, 0, 0, 0.10);
  --text:    #0d0d10;
  --muted:   #55555f;
  --muted-2: #8a8a93;
  --accent:      #e11d24;
  --accent-2:    #c8161d;
  --accent-soft: rgba(225, 29, 36, 0.10);
  --accent-glow: rgba(225, 29, 36, 0.20);
  --header-bg: rgba(247, 247, 245, 0.85);
  --ghost-num: rgba(0, 0, 0, 0.05);
  --shadow:        0 20px 50px -24px rgba(0, 0, 0, 0.20);
  --shadow-accent: 0 18px 44px -18px var(--accent-glow);
}

/* dark override — forces dark even if browser prefers light */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #0a0a0c;
  --bg-2:      #101014;
  --bg-alt:    #101014;
  --surface:   #16161c;
  --surface-2: #1d1d25;
  --line:      rgba(255, 255, 255, 0.09);
  --text:    #f5f5f7;
  --muted:   #a0a0ab;
  --muted-2: #71717f;
  --accent:      #ec1c24;
  --accent-2:    #ff3b43;
  --accent-soft: rgba(236, 28, 36, 0.12);
  --accent-glow: rgba(236, 28, 36, 0.35);
  --header-bg: rgba(10, 10, 12, 0.82);
  --ghost-num: rgba(255, 255, 255, 0.05);
  --shadow:        0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 20px 50px -18px var(--accent-glow);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

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

/* ── typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}
.accent { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }

/* ── layout ── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 5vw, 40px); }

.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

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

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 26px 60px -18px var(--accent-glow); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── decorative glow orbs ── */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; z-index: 0; }
.glow--red { background: var(--accent-glow); }
.glow--white { background: rgba(255, 255, 255, 0.06); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .glow--white { background: rgba(0, 0, 0, 0.03); } }
:root[data-theme="light"] .glow--white { background: rgba(0, 0, 0, 0.03); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand__tag { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand__tag b { color: var(--accent); font-weight: 700; }

.nav__menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--text); background: var(--surface); }

.nav__item { position: relative; }
.nav__item--has-drop:hover .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; list-style: none; margin: 0; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.22s var(--ease);
}
.nav__drop a { display: block; padding: 10px 12px; border-radius: 9px; font-size: 0.92rem; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav__drop a:hover { color: var(--accent-2); background: var(--accent-soft); }

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

.socials { display: flex; gap: 8px; }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; color: var(--muted);
  transition: all 0.22s var(--ease);
}
.socials a:hover { color: var(--accent-2); border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.theme-toggle {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--accent-2); border-color: var(--accent); transform: translateY(-2px); }
.theme-toggle svg { width: 19px; height: 19px; }
/* JS toggles .is-dark: dark theme active → show sun (switch to light); else show moon */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle.is-dark .icon-sun { display: block; }
.theme-toggle.is-dark .icon-moon { display: none; }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang button { background: none; border: none; color: var(--muted); font-weight: 700; font-size: 0.8rem; padding: 9px 11px; transition: color 0.2s, background 0.2s; }
.lang button.active { color: #fff; background: var(--accent); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(120px, 18vh, 190px) 0 clamp(70px, 10vw, 120px); overflow: hidden; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); margin-bottom: 22px; }
.hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; color: var(--muted); margin-bottom: 26px; }
.hero__badge b { color: var(--text); }
.hero__dot { width: 22px; height: 22px; display: grid; place-items: center; background: var(--accent); border-radius: 50%; font-size: 0.7rem; color: #fff; }

.hero__panel { position: relative; background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.hero__panel h3 { font-size: 1.15rem; margin-bottom: 20px; }
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--accent-2); line-height: 1; }
.stat__label { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

/* ── marquee ── */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; overflow: hidden; background: var(--bg-alt); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: scroll 26s linear infinite; white-space: nowrap; }
.marquee__track span { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--muted-2); display: inline-flex; gap: 60px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   SERVICES
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: rgba(236, 28, 36, 0.4); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }

.card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 20px; }
.card__icon svg { width: 26px; height: 26px; }
.card__num { position: absolute; top: 24px; right: 26px; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--ghost-num); }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card > p { color: var(--muted); font-size: 0.96rem; margin: 0 0 18px; }
.card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.card__list li { position: relative; padding-left: 24px; font-size: 0.9rem; color: var(--muted); }
.card__list li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   CASES
   ============================================================ */
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform 0.3s var(--ease), border-color 0.3s; }
.case:hover { transform: translateY(-6px); border-color: rgba(236, 28, 36, 0.4); }
.case__tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 8px; }
.case h3 { font-size: 1.5rem; margin-bottom: 6px; }
.case__client { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.case__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.case__metric { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.case__metric b { font-family: var(--font-body); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--accent-2); display: block; line-height: 1.15; overflow-wrap: break-word; hyphens: none; }
.case__metric span { font-size: 0.78rem; color: var(--muted); display: block; margin-top: 7px; overflow-wrap: break-word; }

/* ============================================================
   WHY US
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.why-intro { position: sticky; top: 100px; }
.why-intro h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 14px 0 14px; }
.why-intro > p { color: var(--muted); font-size: 1.04rem; margin: 0; }
.why-hl { margin-top: 30px; padding: 28px; border-radius: var(--radius); background: linear-gradient(160deg, var(--accent-soft), var(--surface)); border: 1px solid rgba(236, 28, 36, 0.3); }
.why-hl h3 { font-size: 1.25rem; margin-bottom: 10px; }
.why-hl p { color: var(--muted); margin: 0 0 22px; font-size: 0.98rem; }
.why-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.why-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.why-card:hover { transform: translateY(-5px); border-color: rgba(236, 28, 36, 0.4); box-shadow: var(--shadow); }
.why-card__num { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--accent); margin-bottom: 12px; }
.why-card h3 { font-size: 1.14rem; margin-bottom: 10px; color: var(--text); }
.why-card p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ============================================================
   PROCESS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step__n { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin-bottom: 18px; }
.step h3 { font-size: 1.1rem; margin-bottom: 12px; }
.step ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 7px; }
.step ul li { position: relative; padding-left: 18px; font-size: 0.88rem; color: var(--muted); }
.step ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.step__res { font-size: 0.85rem; color: var(--text); border-top: 1px solid var(--line); padding-top: 14px; }
.step__res b { color: var(--accent-2); }

/* ============================================================
   CTA / FORM
   ============================================================ */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta__box { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: 26px; padding: clamp(32px, 5vw, 54px); box-shadow: var(--shadow); }
.cta__box h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.cta__box > p { color: var(--muted); margin-bottom: 30px; }

.form { display: grid; gap: 14px; text-align: left; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; color: var(--text); font-family: inherit; font-size: 0.96rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .btn { width: 100%; margin-top: 6px; }
.form__note { font-size: 0.78rem; color: var(--muted-2); text-align: center; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form__status { font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form__status.ok { color: #22c55e; }
.form__status.err { color: var(--accent-2); }

/* ── custom select ── */
.select { position: relative; }
.select__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); font-size: 0.96rem; text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.select__btn.placeholder { color: var(--muted-2); }
.select.open .select__btn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.select__btn svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform 0.25s var(--ease); }
.select.open .select__btn svg { transform: rotate(180deg); }
.select__menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; margin: 0; list-style: none; box-shadow: var(--shadow);
  max-height: 280px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.select.open .select__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.select__opt { padding: 12px 14px; border-radius: 9px; font-size: 0.94rem; color: var(--muted); cursor: pointer; transition: background 0.15s, color 0.15s; }
.select__opt:hover, .select__opt.active { background: var(--accent-soft); color: var(--text); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer__contacts { display: flex; flex-wrap: wrap; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__contact { display: flex; align-items: center; gap: 16px; }
.footer__contact svg { width: 26px; height: 26px; color: var(--accent-2); }
.footer__contact span { display: block; font-size: 0.8rem; color: var(--muted); }
.footer__contact a, .footer__contact b { font-size: 1.15rem; font-weight: 700; }

.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 40px 0; }
.footer__about p { color: var(--muted); font-size: 0.92rem; max-width: 360px; margin: 16px 0 20px; }
.footer__col h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__col a { color: var(--muted); font-size: 0.94rem; transition: color 0.2s; }
.footer__col a:hover { color: var(--accent-2); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 0.85rem; color: var(--muted-2); }

/* ============================================================
   SUB-PAGES (services / about / pricing / faq)
   ============================================================ */
.subhero { position: relative; overflow: hidden; padding: clamp(120px, 16vh, 170px) 0 clamp(40px, 6vw, 70px); }
.subhero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 56px); align-items: center; }
.subhero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); margin: 14px 0 20px; }
.subhero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.subhero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.subhero--center { text-align: center; }
.subhero--center .subhero__lead { margin-left: auto; margin-right: auto; }
.subhero--center .subhero__cta { justify-content: center; }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--muted-2); margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb span { color: var(--accent-2); }

.subhero__card { position: relative; background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.subhero__card h3 { font-size: 1.1rem; margin-bottom: 18px; }
.subhero__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.subhero__card li { position: relative; padding-left: 30px; color: var(--muted); font-size: 0.95rem; }
.subhero__card li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); border-radius: 6px; font-size: 0.72rem; font-weight: 700; }

/* feature grid */
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.feature:hover { transform: translateY(-5px); border-color: rgba(236, 28, 36, 0.4); box-shadow: var(--shadow); }
.feature__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 16px; }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* audience chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 0.95rem; color: var(--text); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* FAQ accordion */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: none; border: none; text-align: left; font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; color: var(--text); }
.faq__q svg { width: 20px; height: 20px; flex: none; color: var(--accent-2); transition: transform 0.3s var(--ease); }
.faq__item.open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq__a p { margin: 0; padding: 0 22px 22px; color: var(--muted); font-size: 0.96rem; }

/* prose (legal / about text) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 34px 0 12px; }
.prose p { color: var(--muted); margin: 0 0 14px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; color: var(--muted); margin: 0 0 14px; }

/* detailed works checklist */
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 30px; margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 16px 16px 16px 52px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.95rem; color: var(--text); }
.checklist li::before { content: "✓"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); border-radius: 7px; font-size: 0.78rem; font-weight: 700; }
@media (max-width: 700px) { .checklist { grid-template-columns: 1fr; } }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); align-items: stretch; }
.price { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.price:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(236, 28, 36, 0.4); }
.price--featured { border-color: var(--accent); box-shadow: var(--shadow-accent); }
.price__badge { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.price__name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; margin-bottom: 6px; }
.price__desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; min-height: 40px; }
.price__amount { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--text); line-height: 1.05; overflow-wrap: break-word; }
.price__amount span { font-size: 0.9rem; font-family: var(--font-body); color: var(--muted); font-weight: 600; }
.price__per { color: var(--muted-2); font-size: 0.82rem; margin: 8px 0 24px; }
.price__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.price__list li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--muted); }
.price__list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-2); font-weight: 700; }
.price .btn { margin-top: auto; width: 100%; }
.price-note { text-align: center; color: var(--muted-2); font-size: 0.9rem; margin-top: 30px; }

@media (max-width: 900px) { .subhero__grid { grid-template-columns: 1fr; } .subhero__card { max-width: 460px; } }

/* ============================================================
   MODAL (consultation popup)
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.modal.open { opacity: 1; visibility: visible; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.modal__box { position: relative; z-index: 1; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto; background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: 22px; padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); transform: translateY(16px) scale(0.98); transition: transform 0.3s var(--ease); }
.modal.open .modal__box { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.modal__close:hover { color: var(--accent-2); border-color: var(--accent); }
.modal__close svg { width: 18px; height: 18px; }
.modal__box .eyebrow { margin-bottom: 12px; }
.modal__box h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 8px; }
.modal__box > p { color: var(--muted); margin-bottom: 24px; font-size: 0.95rem; }
body.modal-open { overflow: hidden; }

/* clickable service cards */
a.card { text-decoration: none; color: inherit; display: block; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--accent-2); font-weight: 700; font-size: 0.9rem; transition: gap 0.25s var(--ease); }
.card__more::after { content: "→"; }
a.card:hover .card__more { gap: 12px; }

/* cases page */
.cases-list { display: grid; gap: var(--gap); }
.case--wide { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 44px); align-items: center; }
.case--wide .case__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case__desc { color: var(--muted); font-size: 0.98rem; margin: 0 0 6px; }
a.case { text-decoration: none; color: inherit; display: block; }
.case__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--accent-2); font-weight: 700; font-size: 0.9rem; transition: gap 0.25s var(--ease); }
.case__more::after { content: "→"; }
a.case:hover .case__more { gap: 12px; }
.case.is-hidden { display: none; }
@media (max-width: 760px) { .case--wide { grid-template-columns: 1fr; } }

/* case filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: clamp(28px, 4vw, 44px); }
.filter { padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 700; font-size: 0.9rem; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.filter:hover { color: var(--text); border-color: var(--accent); }
.filter.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* case detail badge */
.case-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 8px; }
.case-period { color: var(--muted-2); font-size: 0.92rem; margin-top: 10px; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.results-grid .stat__num { font-size: 2.1rem; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { max-width: 460px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-intro { position: static; }
}

@media (max-width: 820px) {
  .burger { display: block; }
  .nav__menu {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 16px;
    transform: translateY(-120%); transition: transform 0.35s var(--ease);
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav__menu.open { transform: translateY(0); }
  .nav__link { padding: 14px; font-size: 1.05rem; justify-content: space-between; }
  .nav__drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 0 0 8px 14px; display: none; }
  .nav__item--has-drop.open .nav__drop { display: block; }
  .nav__right .socials { display: none; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .case__metrics, .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-cards { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
}
