/* ═══════════════════════════════════════════════════════════
   WINGWAVE — Лидия Тарарышкина · quiet luxury + neuroscience
   Fonts: Playfair Display (Cyrillic) · Manrope (Cyrillic)
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-display-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/playfair-display-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfair-display-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-display-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/playfair-display-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/manrope-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/manrope-800.woff2') format('woff2');
}

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --ink: #16130F;
  --bg: #F6F1E9;
  --bg-alt: #ECE4D7;
  --teal: #0E5B63;
  --teal-bright: #1C8A94;
  --brass: #B08D57;
  --muted: #6B6257;
  --line: rgba(22, 19, 15, 0.12);
  --line-soft: rgba(22, 19, 15, 0.07);
  --ink-soft: rgba(22, 19, 15, 0.72);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, 'Segoe UI', Arial, sans-serif;

  --container: 1200px;
  --radius: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 20px 60px -24px rgba(22, 19, 15, 0.18);
  --shadow-card: 0 2px 6px rgba(22, 19, 15, 0.04), 0 24px 60px -30px rgba(22, 19, 15, 0.16);
  --header-h: 76px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(14, 91, 99, 0.18); color: var(--ink); }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }

/* Visible, accessible focus */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Loader ────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  transition: transform 0.9s var(--ease-out), visibility 0.9s;
}
.loader.done { transform: translateY(-100%); visibility: hidden; }
.loader-inner { text-align: center; padding: 24px; }
.loader-wave {
  width: 180px; height: 44px; margin: 0 auto 26px;
  background: radial-gradient(ellipse at center, rgba(28, 138, 148, 0.9) 0%, transparent 70%);
  filter: blur(0.4px);
  animation: loaderBreath 1.6s ease-in-out infinite;
}
@keyframes loaderBreath {
  0%, 100% { opacity: 0.55; transform: scaleX(0.94); }
  50% { opacity: 1; transform: scaleX(1.05); }
}
.loader-name {
  font-family: var(--font-display); font-size: 30px; font-weight: 600;
  color: var(--bg); letter-spacing: 0.5px;
}
.loader-tag {
  margin-top: 8px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(246, 241, 233, 0.55);
}
.loader-skip {
  margin-top: 34px; background: none; border: 1px solid rgba(246, 241, 233, 0.25);
  color: rgba(246, 241, 233, 0.7); padding: 8px 18px; border-radius: 100px;
  font-size: 12px; letter-spacing: 1px; transition: all 0.25s;
}
.loader-skip:hover { border-color: rgba(246, 241, 233, 0.6); color: #fff; }

/* ── Custom cursor ─────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  body a, body button, body input, body textarea, body label { cursor: none; }
}
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300;
  border-radius: 50%; opacity: 0;
}
.cursor-dot { width: 6px; height: 6px; background: var(--teal); }
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid rgba(14, 91, 99, 0.45);
  transition: width 0.25s, height 0.25s, opacity 0.3s, background 0.25s;
}
.cursor-ring.is-hover {
  width: 56px; height: 56px; background: rgba(14, 91, 99, 0.08);
  border-color: rgba(14, 91, 99, 0.7);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(246, 241, 233, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.wordmark { display: flex; flex-direction: column; line-height: 1.2; }
.wordmark-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); }
.wordmark-sub { font-size: 10px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--teal); }
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  position: relative; font-size: 13.5px; font-weight: 600; letter-spacing: 0.4px;
  color: var(--ink-soft); transition: color 0.25s; padding: 6px 0;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--teal); transition: width 0.3s var(--ease-out);
}
.site-nav a:hover { color: var(--teal); }
.site-nav a:hover::after { width: 100%; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0.2px;
  padding: 16px 30px; border-radius: 100px;
  border: 1px solid transparent; text-decoration: none;
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn-primary {
  background: var(--teal); color: #F6F1E9;
  box-shadow: 0 12px 30px -12px rgba(14, 91, 99, 0.55);
}
.btn-primary:hover {
  background: var(--teal-bright); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(28, 138, 148, 0.6);
}
.btn-ghost {
  background: transparent; color: var(--teal);
  border-color: rgba(14, 91, 99, 0.35);
}
.btn-ghost:hover { border-color: var(--teal); background: rgba(14, 91, 99, 0.06); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ── Mini progress nav ─────────────────────────────────────── */
.mini-nav {
  position: fixed; top: 50%; right: 18px; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transition: opacity 0.6s;
}
.mini-nav.visible { opacity: 1; }
.mini-nav a {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 6px 8px; font-size: 10px; letter-spacing: 1.5px; color: var(--muted);
  transition: color 0.25s; border-radius: 6px;
}
.mini-nav a span { font-family: var(--font-display); font-size: 13px; color: var(--brass); transition: opacity 0.25s; opacity: 0.55; }
.mini-nav a em { font-style: normal; font-weight: 600; opacity: 0; transform: translateX(6px); transition: all 0.25s; }
.mini-nav a:hover { color: var(--teal); }
.mini-nav a:hover em, .mini-nav a.active em { opacity: 1; transform: translateX(0); }
.mini-nav a.active { color: var(--teal); }
.mini-nav a.active span { opacity: 1; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 56px) 0 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(176, 141, 87, 0.1), transparent 60%),
    linear-gradient(180deg, #FAF6EE 0%, var(--bg) 70%);
}
.neuro-wave {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.85; pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 90px); align-items: center;
  position: relative; z-index: 2;
}
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 26px;
}
.eyebrow-line { width: 42px; height: 1.5px; background: var(--brass); }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.16; letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 26px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; will-change: transform; }
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px); font-weight: 400; color: var(--ink-soft);
  max-width: 620px; margin-bottom: 34px;
}
.hero-cta { margin-bottom: 18px; }
.hero-note {
  font-size: 13px; line-height: 1.6; color: var(--muted);
  max-width: 560px; margin-bottom: 26px;
  border-left: 2px solid var(--brass); padding-left: 16px;
}
.hero-contacts { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.credentials-strip {
  display: flex; flex-wrap: wrap; gap: 12px 26px; list-style: none;
  padding-top: 24px; border-top: 1px solid var(--line-soft);
}
.credentials-strip li {
  font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--muted);
}
.credentials-strip li::before { content: '◆ '; color: var(--brass); font-size: 9px; }

.hero-media { position: relative; justify-self: end; width: min(100%, 480px); }
.portrait-frame { position: relative; }
.portrait-frame img {
  width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transform: translateZ(0);
}
.portrait-frame::after {
  content: ''; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid rgba(176, 141, 87, 0.4); border-radius: var(--radius);
  pointer-events: none; z-index: -1;
}
.portrait-frame figcaption {
  margin-top: 14px; text-align: right;
  font-size: 12px; letter-spacing: 1px; color: var(--muted);
}
.hero-seal { position: absolute; bottom: -12px; left: -34px; width: 118px; height: 118px; }
.hero-seal svg { width: 100%; height: 100%; }
.hero-seal text { font-family: var(--font-body); font-size: 9.5px; letter-spacing: 1.6px; fill: var(--teal); }
.seal-wave { stroke: var(--brass); stroke-width: 2.4; stroke-linecap: round; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1.5px solid rgba(14, 91, 99, 0.5);
  border-radius: 14px; display: flex; justify-content: center; padding-top: 7px;
}
.scroll-hint span { width: 3px; height: 9px; border-radius: 3px; background: var(--teal); animation: scrollNudge 1.8s ease-in-out infinite; }
@keyframes scrollNudge {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ── Sections shared ───────────────────────────────────────── */
.section { padding: clamp(90px, 11vw, 150px) 0; position: relative; }
.section:nth-child(even) .container { }
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.22; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 48px;
  max-width: 18em;
}
.section-title .line { display: block; overflow: hidden; }
.section-title .line > span { display: block; }
.sec-num {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 700;
  color: var(--brass); margin-bottom: 18px;
}
.sec-num-name {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--muted);
}
.sec-num::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); align-self: center; }

/* ── Reveal animation primitives ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── 02 Context ────────────────────────────────────────────── */
.context { background: var(--bg); }
.failure-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  margin-bottom: 48px;
}
.failure-card { background: var(--bg); padding: clamp(26px, 3.4vw, 44px); }
.failure-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--teal); margin-bottom: 14px;
  display: flex; align-items: baseline; gap: 12px;
}
.failure-card h3::before { content: '—'; color: var(--brass); font-family: var(--font-body); }
.failure-card p { font-size: 16px; color: var(--ink-soft); line-height: 1.75; }
.physiology-inset {
  position: relative; background: var(--bg-alt);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(26px, 3.4vw, 42px);
  max-width: 820px;
}
.inset-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--teal); display: block; margin-bottom: 12px;
}
.physiology-inset p { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 25px); font-style: italic; color: var(--ink); line-height: 1.5; }

/* ── 03 Compare ────────────────────────────────────────────── */
.compare { background: var(--bg-alt); }
.compare-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch;
}
.compare-card {
  background: rgba(246, 241, 233, 0.7); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: clamp(26px, 2.6vw, 38px);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.compare-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.compare-head { display: flex; align-items: center; gap: 14px; }
.compare-index {
  font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--brass);
}
.compare-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.3; }
.compare-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.75; }
.compare-card-highlight {
  background: var(--teal); border-color: var(--teal);
  color: #F6F1E9; box-shadow: 0 30px 60px -30px rgba(14, 91, 99, 0.6);
}
.compare-card-highlight .compare-index { color: var(--brass); }
.compare-card-highlight h3 { color: #fff; }
.compare-card-highlight p { color: rgba(246, 241, 233, 0.85); }

/* ── 04 Technology (dark inverse) ──────────────────────────── */
.tech.dark {
  background: var(--ink); color: var(--bg);
}
.tech.dark .sec-num { color: var(--brass); }
.tech.dark .sec-num-name { color: rgba(246, 241, 233, 0.55); }
.tech.dark .sec-num::after { background: rgba(246, 241, 233, 0.12); }
.tech.dark .section-title { color: var(--bg); }
.tech-intro { font-size: 18px; color: rgba(246, 241, 233, 0.75); margin-bottom: 56px; }
.tech-list { display: flex; flex-direction: column; }
.tech-fact {
  display: grid; grid-template-columns: 72px 1fr; gap: 8px 28px;
  padding: 40px 0; border-top: 1px solid rgba(246, 241, 233, 0.1);
  position: relative;
}
.tech-num {
  font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--brass);
  line-height: 1.2;
}
.tech-fact h3 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; color: #fff; margin-bottom: 12px; }
.tech-fact p { color: rgba(246, 241, 233, 0.72); max-width: 760px; }
.tech-wave { grid-column: 2; width: 100%; height: 90px; margin-top: 18px; opacity: 0.9; }

/* ── 05 Boundaries ─────────────────────────────────────────── */
.boundaries { background: var(--bg); }
.boundaries-lead { font-size: 19px; color: var(--ink-soft); max-width: 640px; margin-bottom: 40px; }
.boundaries-list { list-style: none; }
.boundaries-list li {
  display: grid; grid-template-columns: 48px 1fr; gap: 18px;
  padding: 30px 0; border-bottom: 1px solid var(--line-soft);
}
.boundaries-list li:first-child { border-top: 1px solid var(--line-soft); }
.boundaries-mark { font-family: var(--font-display); font-size: 24px; color: var(--brass); }
.boundaries-list p { font-size: 17px; color: var(--ink-soft); max-width: 780px; line-height: 1.75; }
.boundaries-list strong { color: var(--ink); font-weight: 700; }

/* ── 06 Formats / tiers ────────────────────────────────────── */
.formats { background: var(--bg-alt); }
.tiers { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: stretch; }
.tier-card {
  background: rgba(246, 241, 233, 0.72); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: clamp(28px, 2.6vw, 38px);
  display: flex; flex-direction: column; gap: 16px; position: relative;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.tier-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.tier-tag {
  position: absolute; top: -12px; right: 24px;
  background: var(--brass); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
}
.tier-card h3 { font-family: var(--font-display); font-size: clamp(20px, 2vw, 25px); font-weight: 700; line-height: 1.3; padding-top: 6px; }
.tier-duration {
  font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--teal);
}
.tier-card dl { display: flex; flex-direction: column; gap: 14px; }
.tier-card dt {
  font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--brass); margin-bottom: 2px;
}
.tier-card dd { font-size: 15px; color: var(--ink-soft); line-height: 1.7; margin: 0; }
.tier-cta {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: 14px; font-weight: 700; color: var(--teal);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.25s, gap 0.25s;
}
.tier-cta:hover { color: var(--teal-bright); gap: 12px; }
.tier-card-featured {
  background: var(--teal); border-color: var(--teal); color: #F6F1E9;
  box-shadow: 0 30px 60px -30px rgba(14, 91, 99, 0.6);
}
.tier-card-featured .tier-duration { color: var(--brass); }
.tier-card-featured dd { color: rgba(246, 241, 233, 0.85); }
.tier-card-featured .tier-cta { color: #fff; border-top-color: rgba(246, 241, 233, 0.2); }
.tier-card-featured .tier-cta:hover { color: var(--brass); }

/* ── 07 Expertise ──────────────────────────────────────────── */
.expertise { background: var(--bg); }
.expertise-layout {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 72px); align-items: start; margin-bottom: 56px;
}
.expertise-portrait img {
  width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.expertise-text { display: flex; flex-direction: column; gap: 20px; }
.expertise-text p { font-size: 17px; color: var(--ink-soft); line-height: 1.8; }
.expertise-text p:first-child::first-letter {
  font-family: var(--font-display); font-size: 46px; font-weight: 700;
  float: left; line-height: 0.85; padding: 8px 10px 0 0; color: var(--teal);
}
.credential-badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px;
}
.credential-badges li {
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px;
  color: var(--teal); background: rgba(14, 91, 99, 0.08);
  border: 1px solid rgba(14, 91, 99, 0.18);
  padding: 9px 16px; border-radius: 100px;
}
.cert-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px;
}
.cert-card {
  background: none; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 12px; text-align: left; transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.3s;
  position: relative;
}
.cert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: rgba(14, 91, 99, 0.35); }
.cert-card img { border-radius: 10px; width: 100%; height: auto; }
.cert-caption {
  display: block; margin-top: 12px; padding: 4px 6px 6px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}

/* ── 08 Process ────────────────────────────────────────────── */
.process { background: var(--bg-alt); }
.process-steps { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 0; align-items: stretch; }
.process-step {
  background: rgba(246, 241, 233, 0.72); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.process-num { font-size: 11px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; color: var(--brass); }
.process-step h3 { font-family: var(--font-display); font-size: clamp(21px, 2.2vw, 28px); font-weight: 700; line-height: 1.3; }
.process-step p { font-size: 16px; color: var(--ink-soft); line-height: 1.75; }
.process-connector { display: flex; align-items: center; justify-content: center; }
.process-connector span {
  width: 1.5px; height: 60%; background: linear-gradient(180deg, var(--brass), rgba(176, 141, 87, 0.15));
  position: relative;
}
.process-connector span::after {
  content: '→'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); font-size: 20px; color: var(--teal);
  background: var(--bg-alt); padding: 4px 6px;
}

/* ── 09 Form ───────────────────────────────────────────────── */
.form-sec { background: var(--bg); }
.form-wrap { max-width: 780px; }
.form-sub { font-size: 18px; color: var(--ink-soft); margin-bottom: 44px; }
.lead-form { display: flex; flex-direction: column; gap: 28px; }
.form-field { display: flex; flex-direction: column; gap: 9px; }
.form-field label { font-size: 15px; font-weight: 700; color: var(--ink); }
.form-field input, .form-field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; line-height: 1.5;
  transition: border-color 0.25s, box-shadow 0.25s; resize: vertical;
  width: 100%;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 91, 99, 0.12);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(107, 98, 87, 0.55); }
.field-error { font-size: 13px; color: #B3261E; min-height: 0; }
.form-field.invalid input, .form-field.invalid textarea { border-color: #B3261E; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { font-size: 15px; font-weight: 600; min-height: 24px; }
.form-status.error { color: #B3261E; }
.form-status.ok { color: var(--teal); }
.form-success { margin-top: 26px; padding: 28px; border: 1px solid rgba(14, 91, 99, 0.25); border-radius: var(--radius); background: rgba(14, 91, 99, 0.06); }
.form-success p { font-size: 16px; color: var(--ink); margin-bottom: 18px; }
.form-success-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(246, 241, 233, 0.75); padding: 70px 0 30px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px; }
.footer-brand .wordmark-name { color: var(--bg); }
.footer-brand .wordmark-sub { color: rgba(28, 138, 148, 0.8); }
.footer-legal { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.footer-legal p { font-size: 14px; line-height: 1.7; color: rgba(246, 241, 233, 0.62); }
.footer-legal strong { color: rgba(246, 241, 233, 0.9); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; }
.footer-links a { font-size: 14px; font-weight: 600; color: var(--bg); border-bottom: 1px solid rgba(246, 241, 233, 0.25); padding-bottom: 2px; transition: color 0.25s, border-color 0.25s; }
.footer-links a:hover { color: var(--teal-bright); border-color: var(--teal-bright); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 50px; padding-top: 26px; border-top: 1px solid rgba(246, 241, 233, 0.12);
}
.footer-copy { font-size: 13px; color: rgba(246, 241, 233, 0.45); }
.footer-top { font-size: 13px; font-weight: 600; color: rgba(246, 241, 233, 0.7); transition: color 0.25s; }
.footer-top:hover { color: var(--bg); }

/* ── Sticky mobile CTA ─────────────────────────────────────── */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95;
  display: none; align-items: center; justify-content: center;
  background: var(--teal); color: #fff;
  font-size: 15px; font-weight: 800;
  padding: 17px 20px; border-radius: 100px; text-align: center;
  box-shadow: 0 16px 40px -12px rgba(14, 91, 99, 0.6);
  transform: translateY(120px); transition: transform 0.5s var(--ease-out);
}
.sticky-cta.show { transform: translateY(0); }

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 250;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: rgba(22, 19, 15, 0.92);
  padding: 40px 20px;
  opacity: 0; transition: opacity 0.35s;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox img {
  max-width: min(92vw, 900px); max-height: 82vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.7);
  transform: scale(0.96); transition: transform 0.4s var(--ease-out);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: var(--bg); font-size: 44px; line-height: 1;
  padding: 6px 12px; transition: color 0.25s, transform 0.25s;
}
.lightbox-close:hover { color: var(--brass); transform: rotate(90deg); }
.lightbox-caption { color: rgba(246, 241, 233, 0.75); font-size: 15px; text-align: center; max-width: 620px; }

/* ── Legal pages (terms / privacy) ─────────────────────────── */
.legal-wrap { max-width: 780px; }
.legal-wrap h2 {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  margin: 40px 0 14px; color: var(--teal);
}
.legal-wrap h1.section-title { margin-bottom: 20px; }
.legal-wrap p { font-size: 16px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 16px; }
.legal-alert {
  background: rgba(176, 141, 87, 0.12); border: 1px solid rgba(176, 141, 87, 0.4);
  border-left: 4px solid var(--brass); border-radius: 10px;
  padding: 18px 22px; margin: 30px 0; font-size: 15px; color: var(--ink);
}
.legal-meta { font-size: 13px !important; color: var(--muted) !important; margin-top: 30px; }
.legal-wrap .footer-links { margin-top: 34px; }

/* ── Reveal states for reduced motion ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .loader { transition: none; }
  .cursor-dot, .cursor-ring { display: none; }
  .hero-title .line > span, .section-title .line > span { transform: none !important; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .mini-nav { display: none; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-media { justify-self: start; width: min(100%, 400px); margin-inline: auto; }
  .hero-seal { left: -12px; }
  .compare-grid, .tiers { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .process-steps { grid-template-columns: 1fr; gap: 18px; max-width: 640px; margin-inline: auto; }
  .process-connector { display: none; }
  .expertise-layout { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-cta { display: none; }
  .site-header.scrolled { background: rgba(246, 241, 233, 0.92); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 40px); }
  .section { padding: 76px 0; }
  .failure-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-title { font-size: clamp(30px, 9.5vw, 40px); }
  .hero-note { border-left: none; border-top: 2px solid var(--brass); padding: 12px 0 0; }
  .hero-seal { width: 96px; height: 96px; left: -8px; }
  .credentials-strip { gap: 10px 20px; }
  .tech-fact { grid-template-columns: 1fr; gap: 8px; }
  .tech-num { font-size: 22px; }
  .tech-wave { grid-column: 1; }
  .sticky-cta { display: flex; }
  body.has-sticky-cta .section:last-of-type { padding-bottom: 110px; }
  .site-footer { padding-bottom: 110px; }
}

@media (max-width: 400px) {
  .container { width: calc(100% - 32px); }
  .btn { width: 100%; padding: 15px 20px; font-size: 14px; }
  .hero-contacts { flex-direction: column; }
  .hero-contacts .btn { width: 100%; }
}


/* ── Requests grid (03) ── */
.requests { background: var(--bg-alt); }
.requests-lead { max-width: 720px; color: var(--ink-soft); font-size: clamp(16px,1.8vw,19px); margin: 8px 0 40px; }
.request-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.request-card { background: var(--bg); padding: clamp(24px,2.6vw,36px); display: flex; flex-direction: column; gap: 12px; transition: background .4s var(--ease-soft); }
.request-card:hover { background: var(--bg-alt); }
.request-num { font-family: var(--font-display); font-size: 26px; color: var(--brass); line-height: 1; }
.request-card h3 { font-family: var(--font-display); font-size: clamp(19px,2.1vw,23px); color: var(--ink); font-weight: 600; line-height: 1.2; }
.request-card p { color: var(--muted); font-size: 15.5px; line-height: 1.62; }
.requests-cta { margin-top: 40px; }
@media (max-width: 900px){ .request-grid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .request-grid { grid-template-columns: 1fr;} }

/* ── FAQ (10) ── */
.faq-list { max-width: 860px; margin-top: 14px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 26px 4px; font-family: var(--font-display); font-size: clamp(18px,2.1vw,22px); color: var(--ink); font-weight: 600; transition: color .3s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { position: relative; flex: 0 0 20px; width: 20px; height: 20px; }
.faq-item summary i::before, .faq-item summary i::after { content:''; position:absolute; background: var(--teal); transition: transform .3s var(--ease-soft); }
.faq-item summary i::before { top:9px; left:0; width:20px; height:2px; }
.faq-item summary i::after { left:9px; top:0; width:2px; height:20px; }
.faq-item[open] summary i::after { transform: scaleY(0); }
.faq-item[open] summary { color: var(--teal); }
.faq-answer { padding: 0 4px 26px; }
.faq-answer p { color: var(--ink-soft); font-size: 16px; line-height: 1.72; max-width: 760px; }

/* ── Footer social ── */
.footer-social { display: flex; gap: 22px; margin: 8px 0 2px; }
.footer-social a { font-size: 14px; color: var(--muted); letter-spacing: .3px; transition: color .25s; }
.footer-social a:hover { color: var(--teal); }


/* ── Skip to content (a11y) ── */
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100001; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 10px; font-family: var(--font-body); font-weight: 600; font-size: 15px; text-decoration: none; transform: translateY(-160%); transition: transform .25s var(--ease-out); }
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--teal); outline-offset: 2px; }
