/* ══════════════════════════════════════════════════════════════════
   Smart Business Consult — cinematic legal landing
   Approach: MOBILE-FIRST. Base styles target ~360–414px, then scale up
   at 768 / 1024 / 1440. Dark cinematic base + deep-blue & emerald accents.
   ══════════════════════════════════════════════════════════════════ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Surfaces */
  --bg:        #06070a;
  --bg-1:      #0a0c11;
  --bg-2:      #10131a;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line:      rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);

  /* Ink */
  --ink:       #eef1f6;
  --ink-dim:   #a7b0be;
  --ink-faint: #6a7480;

  /* Accents */
  --blue:      #3f6dff;
  --blue-soft: #7aa0ff;
  --blue-glow: rgba(63, 109, 255, 0.32);
  --emerald:   #34d8a6;
  --gold:      #ceb283;

  /* WhatsApp */
  --wa:        #22c35e;
  --wa-2:      #17a34a;

  /* Type */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant", Georgia, "Times New Roman", serif;

  /* Fluid type scale (mobile → desktop) */
  --fs-eyebrow: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --fs-h1:      clamp(2.15rem, 1.55rem + 3.05vw, 4.6rem);
  --fs-h2:      clamp(1.7rem, 1.3rem + 1.9vw, 3.1rem);
  --fs-h3:      clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --fs-lead:    clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  --fs-body:    clamp(0.95rem, 0.92rem + 0.18vw, 1.05rem);

  /* Layout */
  --container: 1240px;
  --pad-x: clamp(20px, 5vw, 56px);
  --radius: 20px;
  --radius-sm: 14px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* Lenis controls scroll when active; disable native smooth to avoid conflict */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { list-style: none; padding: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

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

.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--blue);
  color: #fff;
  border-radius: 0 0 10px 10px;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.ico { width: 1.15em; height: 1.15em; flex: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
}
.eyebrow--center { justify-content: center; }

.section-head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(36px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.section-head--left { text-align: left; align-items: flex-start; margin-inline: 0; }

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section-lead {
  color: var(--ink-dim);
  font-size: var(--fs-lead);
  max-width: 60ch;
}

.accent-line {
  position: relative;
  color: var(--blue-soft);
  white-space: nowrap;
}

/* ---------- 4. Decorative overlays ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  /* static grain — no ambient loop; all motion on this site is scroll-driven */
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 59;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ══════════════════════════════════════════════════════════════════
   HEADER (sticky, transparent → solid)
   ══════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 10px 12px 0;          /* keeps the pill floating off screen edges */
}
/* the WHOLE header lives in one floating dark plate (pill) */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
  padding-inline: clamp(14px, 2vw, 24px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(32,34,40,0.9) 0%, rgba(9,10,13,0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 18px 44px -20px rgba(0,0,0,0.95);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background .4s var(--ease);
}
.site-header.is-scrolled .header__inner {
  background: linear-gradient(180deg, rgba(17,18,22,0.97) 0%, rgba(6,7,9,0.95) 100%);
}

/* Brand — original logo file (transparent PNG, gold on dark) */
.brand { display: inline-flex; align-items: center; }
.brand__logo {
  height: clamp(34px, 4.5vw, 42px);
  width: auto;
  display: block;
}

.header__nav { display: none; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__phone { display: none; }

/* ══════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════ */
.btn {
  --btn-bg: var(--surface);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform .28s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.975); }

.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 1rem; }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: 0.88rem; }

/* WhatsApp — green accent + subtle sheen */
.btn--wa {
  background: linear-gradient(180deg, var(--wa) 0%, var(--wa-2) 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 40, 15, 0.4);
  box-shadow: 0 10px 30px -12px rgba(34, 195, 94, 0.6),
              inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--wa::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn--wa:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(34, 195, 94, 0.7); }
.btn--wa:hover::after { transform: translateX(120%); }

/* Ghost — outline */
.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: rgba(255,255,255,0.22);
}

/* Glass — for use over video */
.btn--glass {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--glass:hover { transform: translateY(-2px); background: rgba(255,255,255,0.16); }

/* CTA groups */
.cta-group { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.cta-group .btn { width: 100%; }
.cta-group--center { align-items: center; }

/* ══════════════════════════════════════════════════════════════════
   2 · HERO
   ══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-block: 120px 92px;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
/* poster shown as bg fallback before video loads / reduced-motion */
.bg-video[data-poster-bg] { background-size: cover; background-position: center; }

/* cheap progressive dim (opacity-animated) for the bright second half */
.hero__dim {
  position: absolute; inset: 0; z-index: 1;
  background: #04050a;
  opacity: 0;
  pointer-events: none;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    /* vertical: bottom half goes nearly opaque so text always reads */
    linear-gradient(180deg,
      rgba(3,4,7,0.66) 0%,
      rgba(3,4,7,0.36) 15%,
      rgba(3,4,7,0.55) 36%,
      rgba(3,4,7,0.9) 60%,
      rgba(3,4,7,0.97) 82%,
      var(--bg) 100%),
    /* wide, strong left scrim under the text column */
    linear-gradient(90deg, rgba(3,4,7,0.96) 0%, rgba(3,4,7,0.74) 40%, rgba(3,4,7,0.38) 62%, rgba(3,4,7,0) 86%),
    radial-gradient(90% 70% at 20% 96%, rgba(63,109,255,0.12), transparent 60%);
}

/* Stage stacks all 3 blocks in one grid cell so they cross-fade in place */
.hero__stage {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 940px;
}
.hero__block {
  grid-area: 1 / 1;             /* overlap every block */
  align-self: end;              /* bottom-anchored, cinematic */
  justify-self: start;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  /* dark glass panel — guaranteed text contrast over ANY video frame */
  padding: clamp(22px, 4.5vw, 36px);
  border-radius: var(--radius);
  background: rgba(4, 6, 10, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(130%);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  text-shadow: none;            /* no halos — the panel does the work */
  opacity: 0;
  visibility: hidden;          /* JS/scroll reveals; block 1 is active by default */
}
.hero__block.is-active { opacity: 1; visibility: visible; }
.hero__block .eyebrow { color: #dfe4ec; }

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero__title--sm { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.7rem); }
.hero__sub {
  color: #eef1f7;             /* brighter than default dim for contrast over video */
  font-size: var(--fs-lead);
  max-width: 52ch;
}

/* Block 2 — figures */
.hero__figures {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 22px 40px;
  justify-content: start;
}
.hero__figures li { display: flex; flex-direction: column; gap: 4px; }
.hero__fig-num {
  font-size: clamp(1.9rem, 1.3rem + 3vw, 3.3rem);
  font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  /* solid white — NO background-clip gradient: transparent glyphs let any
     text-shadow bleed through and read as a smudge */
  color: #fff;
}
.hero__fig-label { font-size: 0.82rem; color: #e2e7ef; }

/* Block 3 — what we do */
.hero__dolist { display: grid; grid-template-columns: 1fr; gap: 11px 28px; }
.hero__dolist li {
  position: relative; padding-left: 26px;
  font-size: 1rem; color: var(--ink);
}
.hero__dolist li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--emerald); border-bottom: 2px solid var(--emerald);
  transform: rotate(-45deg); border-radius: 1px;
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: none;
}
.hero__scroll-line {
  position: absolute; left: 50%; top: 9px;
  width: 2px; height: 12px; border-radius: 2px;
  background: var(--blue-soft);
  transform: translateX(-50%);
  /* static — the invitation to scroll, without ambient motion */
}

/* ══════════════════════════════════════════════════════════════════
   3 · STATS
   ══════════════════════════════════════════════════════════════════ */
.stats {
  padding-block: clamp(48px, 8vw, 96px);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 5vw, 40px) 16px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  position: relative;
}
.stat__num {
  font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 0%, var(--blue-soft) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 0.85rem;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════════════════════════
   Generic section rhythm
   ══════════════════════════════════════════════════════════════════ */
.services, .fulllist, .why, .testimonials, .faq, .contact {
  padding-block: clamp(72px, 11vw, 150px);
  position: relative;
}
/* Ambient light blooms — мягкие засветы поверх сплошных фонов секций,
   как рассеянный свет на премиальных лендингах. Очень деликатные (5–12%). */
.services {
  background:
    radial-gradient(52% 42% at 10% 0%, rgba(63, 109, 255, 0.11), transparent 70%),
    radial-gradient(44% 36% at 94% 100%, rgba(52, 216, 166, 0.05), transparent 70%),
    var(--bg-1);
}
.fulllist {
  background:
    radial-gradient(48% 40% at 90% 4%, rgba(122, 160, 255, 0.09), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg));
}
.why {
  background:
    radial-gradient(50% 44% at 4% 30%, rgba(63, 109, 255, 0.09), transparent 70%),
    radial-gradient(40% 34% at 100% 88%, rgba(52, 216, 166, 0.05), transparent 70%),
    var(--bg);
}
.testimonials {
  background:
    radial-gradient(60% 46% at 50% 0%, rgba(63, 109, 255, 0.10), transparent 72%),
    linear-gradient(180deg, var(--bg), var(--bg-1));
  overflow: hidden;
}
.faq {
  background:
    radial-gradient(46% 40% at 96% 10%, rgba(63, 109, 255, 0.08), transparent 70%),
    var(--bg-1);
}
.contact {
  background:
    radial-gradient(56% 44% at 50% 100%, rgba(63, 109, 255, 0.12), transparent 72%),
    linear-gradient(180deg, var(--bg-1), var(--bg));
}

/* ══════════════════════════════════════════════════════════════════
   4 · SERVICES
   ══════════════════════════════════════════════════════════════════ */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.svc-card {
  position: relative;
  border-radius: var(--radius);
  transform-style: preserve-3d;
  will-change: transform;
}
.svc-card__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: clamp(24px, 5vw, 36px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.svc-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: radial-gradient(60% 80% at 50% 0%, var(--blue-glow), transparent 70%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  z-index: 0;
}
.svc-card:hover .svc-card__glow { opacity: 1; }
.svc-card:hover .svc-card__inner { border-color: rgba(122,160,255,0.4); }

.svc-card__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 2rem + 3vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(122,160,255,0.5);
  margin-bottom: 18px;
}
.svc-card__title { font-size: var(--fs-h3); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.svc-card__text { color: var(--ink-dim); font-size: 0.96rem; margin-bottom: 20px; }
.svc-card__list { display: flex; flex-direction: column; gap: 11px; }
.svc-card__list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: var(--ink);
}
.svc-card__list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--emerald);
  border-bottom: 2px solid var(--emerald);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* ══════════════════════════════════════════════════════════════════
   5 · FULL LIST CHIPS + CTA band
   ══════════════════════════════════════════════════════════════════ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 1000px;
  margin-inline: auto;
}
.chip {
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.86rem;
  color: var(--ink-dim);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.chip:hover {
  color: var(--ink);
  border-color: rgba(122,160,255,0.45);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.cta-band {
  margin-top: clamp(40px, 7vw, 72px);
  padding: clamp(26px, 5vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(63,109,255,0.16), transparent 60%),
    var(--surface);
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: center;
  align-items: center;
}
.cta-band__text h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); font-weight: 700; margin-bottom: 8px; }
.cta-band__text p { color: var(--ink-dim); }

/* ══════════════════════════════════════════════════════════════════
   6 · WHY US
   ══════════════════════════════════════════════════════════════════ */
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.why-tile {
  padding: clamp(22px, 5vw, 30px);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
.why-tile:hover { border-color: var(--line); background: var(--surface-2); transform: translateY(-3px); }
.why-tile__ico {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(63,109,255,0.2), rgba(63,109,255,0.06));
  border: 1px solid rgba(122,160,255,0.28);
  color: var(--blue-soft);
  margin-bottom: 16px;
}
.why-tile__ico svg { width: 24px; height: 24px; }
.why-tile h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.why-tile p { color: var(--ink-dim); font-size: 0.92rem; }

/* ══════════════════════════════════════════════════════════════════
   7 · TESTIMONIALS
   ══════════════════════════════════════════════════════════════════ */
.tst__track {
  display: flex;
  gap: 16px;
  padding-inline: var(--pad-x);
  padding-block: 8px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tst__track::-webkit-scrollbar { display: none; }
.tst-card {
  position: relative;
  flex: 0 0 84%;
  scroll-snap-align: center;
  padding: clamp(24px, 5vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tst-card__quote {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 0.4;
  color: var(--blue-soft);
  opacity: 0.55;
  height: 22px;
}
.tst-card blockquote { color: var(--ink); font-size: 1rem; line-height: 1.55; flex: 1; }
.tst-card figcaption { display: flex; align-items: center; gap: 13px; }
.tst-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 700;
  color: var(--ink);
  background: linear-gradient(140deg, rgba(63,109,255,0.35), rgba(52,216,166,0.25));
  border: 1px solid var(--line);
}
.tst-card__who { display: flex; flex-direction: column; line-height: 1.3; }
.tst-card__who strong { font-weight: 700; font-size: 0.95rem; }
.tst-card__who span { font-size: 0.82rem; color: var(--ink-faint); }

/* ══════════════════════════════════════════════════════════════════
   8 · CINEMATIC STAMP (pinned)
   ══════════════════════════════════════════════════════════════════ */
.stamp { position: relative; background: var(--bg); }
.stamp__pin {
  position: relative;
  height: 100svh;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.stamp__media { position: absolute; inset: 0; z-index: -2; }
.stamp__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(6,7,10,0.45) 30%, rgba(6,7,10,0.55) 60%, var(--bg) 100%),
    radial-gradient(70% 60% at 50% 50%, transparent, rgba(0,0,0,0.5));
}
.stamp__content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 900px;
}
.stamp__title {
  font-size: clamp(2rem, 1.3rem + 3.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.28em;
  justify-content: center;
}
.stamp__title .word { display: inline-block; will-change: transform, opacity; }
.stamp__sub { color: var(--ink-dim); font-size: var(--fs-lead); max-width: 52ch; }

/* ══════════════════════════════════════════════════════════════════
   9 · FAQ
   ══════════════════════════════════════════════════════════════════ */
.faq__inner {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
}
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.faq-item.is-open { border-color: rgba(122,160,255,0.35); background: var(--surface-2); }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(18px, 4vw, 26px);
  background: none;
  border: none;
  text-align: left;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
  font-weight: 600;
  color: var(--ink);
  min-height: 56px;
}
.faq-item__icon {
  position: relative;
  width: 20px; height: 20px; flex: none;
}
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  background: var(--blue-soft);
  border-radius: 2px;
  transition: transform .4s var(--ease);
}
.faq-item__icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-item__icon::after  { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-item__icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-item__a {
  height: 0;
  overflow: hidden;
  transition: height .45s var(--ease);
}
.faq-item__a-inner { padding: 0 clamp(18px, 4vw, 26px) 22px; }
.faq-item__a-inner p { color: var(--ink-dim); font-size: 0.96rem; }

/* ══════════════════════════════════════════════════════════════════
   10 · CONTACT
   ══════════════════════════════════════════════════════════════════ */
.contact__card {
  position: relative;
  border-radius: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(63,109,255,0.14), transparent 55%),
    radial-gradient(80% 120% at 100% 100%, rgba(52,216,166,0.1), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  overflow: hidden;
  isolation: isolate;
}
.contact__glow {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 60% at 50% 120%, var(--blue-glow), transparent 70%);
}
.contact__body {
  padding: clamp(30px, 7vw, 68px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.contact__title { font-size: var(--fs-h2); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.contact__lead { color: var(--ink-dim); font-size: var(--fs-lead); max-width: 52ch; }
.contact__bullets { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 12px; }
.contact__bullets li { display: flex; align-items: center; gap: 12px; font-size: 0.98rem; }
.contact__bullets .ico { color: var(--emerald); width: 22px; height: 22px; }
.contact .cta-group { margin-top: 6px; }

.contact__details {
  width: 100%;
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.contact__details a { color: var(--ink); font-weight: 600; transition: color .3s var(--ease); }
.contact__details a:hover { color: var(--blue-soft); }

/* ══════════════════════════════════════════════════════════════════
   11 · FOOTER
   ══════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(40px, 6vw, 64px) 28px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.brand__logo--footer { height: 56px; }
.footer__loc { color: var(--ink-faint); font-size: 0.85rem; }
.footer__contacts { display: flex; flex-direction: column; gap: 12px; }
.footer__link--mail { font-size: 0.98rem; }
.footer__addr { color: var(--ink-faint); font-size: 0.85rem; }
.footer__link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 700;
  color: var(--ink);
}
.footer__link .ico { color: var(--blue-soft); }
.footer__socials { display: flex; gap: 12px; }
.social {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.social:hover { transform: translateY(-3px); }
.social--wa:hover { background: rgba(34,195,94,0.18); border-color: var(--wa); color: var(--wa); }
.social--tg:hover { background: rgba(63,109,255,0.18); border-color: var(--blue); color: var(--blue-soft); }
.social .ico { width: 22px; height: 22px; }

.footer__bottom {
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-faint);
  font-size: 0.8rem;
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE CTA BAR
   ══════════════════════════════════════════════════════════════════ */
.mobile-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 10, 14, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-soft);
  transform: translateY(120%);
  transition: transform .5s var(--ease);
}
.mobile-cta.is-visible { transform: translateY(0); }
.btn--bar { flex: 1; min-height: 52px; padding: 12px; font-size: 0.92rem; }
/* keep footer/last content clear of the fixed mobile CTA bar */
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

/* ══════════════════════════════════════════════════════════════════
   REVEAL — base state (visible; JS sets hidden only when GSAP ready,
   guaranteeing content shows even if scripts fail / no-JS)
   ══════════════════════════════════════════════════════════════════ */
.js [data-reveal],
.js [data-hero-el],
.js [data-chip] { will-change: transform, opacity; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — ≥768px (tablet)
   ══════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .header__inner { height: 66px; }
  .header__phone {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: 0.92rem; color: #fff;
  }
  .header__phone .ico { color: var(--blue-soft); }

  .hero { align-items: flex-end; }
  .hero__scroll { display: block; }
  .hero__dolist { grid-template-columns: repeat(2, auto); justify-content: start; }

  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat { text-align: left; align-items: flex-start; }
  .stat::after {
    content: ""; position: absolute; right: -8px; top: 10%;
    width: 1px; height: 80%; background: var(--line-soft);
  }
  .stat:last-child::after { display: none; }

  .services__grid { grid-template-columns: repeat(3, 1fr); }

  .cta-band { flex-direction: row; justify-content: space-between; text-align: left; align-items: center; }
  .cta-band .cta-group { flex-direction: row; width: auto; flex: none; }
  .cta-band .cta-group .btn { width: auto; }

  .why__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .tst__track {
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: var(--container);
    margin-inline: auto;
  }
  .tst-card { flex: none; }

  .cta-group { flex-direction: row; flex-wrap: wrap; width: auto; }
  .cta-group .btn { width: auto; }
  .hero__cta, .contact .cta-group { justify-content: flex-start; }

  .faq__inner { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .section-head--left { position: sticky; top: 100px; }

  .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer__contacts { align-items: flex-end; text-align: right; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }

  /* Mobile CTA bar is desktop/tablet-hidden */
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — ≥1024px (desktop)
   ══════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  /* nav sits INSIDE the header plate — uppercase tracked links, no own box */
  .header__nav {
    display: flex;
    align-items: center;
    gap: 2px;
  }
  .header__nav a {
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e6eaf1;
    transition: background .3s var(--ease), color .3s var(--ease);
  }
  .header__nav a:hover { background: rgba(255,255,255,0.09); color: #fff; }

  .why__grid { grid-template-columns: repeat(3, 1fr); }

  .services__grid { gap: 22px; }
  .svc-card__inner { padding: 40px 34px; }

  /* enable 3D tilt perspective only where hover pointer exists */
  .services__grid { perspective: 1400px; }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — ≥1440px (wide)
   ══════════════════════════════════════════════════════════════════ */
@media (min-width: 1440px) {
  :root { --container: 1340px; }
  .hero__content { max-width: 1000px; }
}

/* pointer-based enhancements: 3D tilt only for real mouse users */
@media (hover: none) {
  .svc-card { transform: none !important; }
}

/* PERFORMANCE — touch GPUs (or any narrow screen) choke on backdrop-filter
   re-blurring the scrubbing video every frame, and on a full-screen mix-blend
   grain. Drop both; use solid backgrounds. Keeps scroll buttery on phones. */
@media (hover: none), (max-width: 767px) {
  .grain { display: none; }
  .header__inner {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: linear-gradient(180deg, rgba(22,23,28,0.97) 0%, rgba(9,10,13,0.96) 100%);
  }
  .site-header.is-scrolled .header__inner { background: linear-gradient(180deg, rgba(15,16,20,0.98), rgba(6,7,9,0.97)); }
  .hero__block {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(6, 8, 13, 0.82);
  }
  .mobile-cta {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(8, 10, 14, 0.97);
  }
  .svc-card__inner, .tst-card, .btn--ghost, .btn--glass, .btn--bar, .chip {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   REDUCED MOTION — kill animation, keep everything readable
   ══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .grain { animation: none; }
  .hero__scroll-line { animation: none; }
  .btn--wa::after { display: none; }
  /* no scroll scrubbing → un-stack the 3 hero blocks so all content reads */
  .hero { align-items: flex-start; }
  .hero__stage { display: block; }
  .hero__block { position: relative; opacity: 1 !important; visibility: visible !important; }
  .hero__block + .hero__block { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line-soft); }
}
