/* =========================================================================
   Mobile Service — Modern Stylesheet
   Design tokens, base styles, and components
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette */
  --brand-primary: #004585;
  --brand-primary-dark: #003366;
  --brand-primary-light: #1A5FA0;
  --brand-primary-50: #EAF2FA;
  --brand-primary-100: #D1E2F2;

  /* Accent — warm gold */
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --accent-light: #FCD34D;

  /* Neutrals */
  --ink-900: #0A1628;
  --ink-700: #1E293B;
  --ink-500: #475569;
  --ink-400: #64748B;
  --ink-300: #94A3B8;
  --ink-200: #CBD5E1;
  --ink-100: #E2E8F0;
  --ink-50: #F1F5F9;
  --ink-25: #F8FAFC;
  --white: #FFFFFF;

  /* Semantic */
  --success: #10B981;
  --error: #DC2626;

  /* Layout */
  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, .06);
  --shadow-md: 0 4px 16px rgba(10, 22, 40, .08);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, .10);
  --shadow-brand: 0 12px 32px rgba(0, 69, 133, .25);

  /* Type */
  --font-display: "Unbounded", "Manrope", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Motion */
  --easing: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 150ms;
  --t-base: 280ms;
  --t-slow: 520ms;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv01";
  overflow-x: clip;
  width: 100%;
}

body.nav-open {
  overflow: hidden;
}

/* Backdrop behind mobile nav drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, .4);
  opacity: 0;
  visibility: hidden;
  z-index: 98;
  transition: opacity var(--t-base) var(--easing),
              visibility 0s linear var(--t-base);
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--t-base) var(--easing),
              visibility 0s linear 0s;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--t-fast) var(--easing);
}

a:hover {
  color: var(--brand-primary-light);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Focus */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(64px, 9vw, 128px) 0;
  position: relative;
  overflow: hidden;
}

.section--tight {
  padding: clamp(48px, 6vw, 80px) 0;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7.5vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  max-width: 100%;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  max-width: 100%;
}

.h-card {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-500);
  max-width: 60ch;
}

.hero-text,
.hero-visual,
.services-head > *,
.problems-head > *,
.contacts-grid > *,
.contact-value {
  min-width: 0;
}

.text-muted {
  color: var(--ink-500);
}

.accent-text {
  color: var(--accent-dark);
}

mark {
  background: linear-gradient(120deg, transparent 0 60%, rgba(245, 158, 11, .35) 60%);
  color: inherit;
  padding: 0 .1em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--easing),
              box-shadow var(--t-base) var(--easing),
              background var(--t-base) var(--easing),
              color var(--t-base) var(--easing);
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brand-primary);
  color: var(--white);
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  background: var(--brand-primary-dark);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(0, 69, 133, .35);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--accent);
  color: var(--ink-900);
}

.btn--accent:hover {
  background: var(--accent-dark);
  color: var(--ink-900);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245, 158, 11, .35);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--ink-200);
}

.btn--ghost:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-primary-50);
}

.btn--white {
  background: var(--white);
  color: var(--brand-primary);
}

.btn--white:hover {
  background: var(--ink-25);
  color: var(--brand-primary-dark);
  transform: translateY(-2px);
}

.btn--sm {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.btn--lg {
  height: 64px;
  padding: 0 36px;
  font-size: 16px;
}

.btn .arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--t-base) var(--easing);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--ink-900);
  color: var(--white);
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  gap: 24px;
}

.topbar a {
  color: var(--ink-200);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar a:hover {
  color: var(--accent);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-light);
}

.topbar-rating strong {
  color: var(--white);
  font-weight: 600;
}

.topbar .sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, .15);
}

@media (max-width: 900px) {
  .topbar-inner { font-size: 12px; gap: 12px; }
  .topbar-left .topbar-rating { display: none; }
  .topbar-right .sep:first-of-type { display: none; }
}

@media (max-width: 640px) {
  .topbar-inner {
    height: auto;
    min-height: 36px;
    padding: 8px 0;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  .topbar-left a:not(.topbar-rating) { display: none; }
  .topbar-right a[href^="mailto"] { display: none; }
  .topbar .sep { display: none; }
  .topbar-rating { display: none; }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(10, 22, 40, .06);
  transition: box-shadow var(--t-base) var(--easing);
}

@media (max-width: 980px) {
  body.nav-open .header {
    z-index: 100;
  }
}

.header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.logo:hover {
  color: var(--brand-primary);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-primary);
  display: grid;
  place-items: center;
  color: var(--white);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, .12) 50%);
}

.logo-mark svg {
  position: relative;
  z-index: 1;
}

.logo-text-line {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-top: 2px;
  font-family: var(--font-body);
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  color: var(--ink-700);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--easing);
}

.nav a:hover {
  color: var(--brand-primary);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink-900);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--brand-primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 101;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink-900);
  position: relative;
  border-radius: 2px;
  transition: background var(--t-fast) var(--easing);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  left: 0;
  transition: transform var(--t-base) var(--easing), top var(--t-base) var(--easing);
}

.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(85vw, 360px);
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 96px 28px 32px;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path var(--t-base) var(--easing),
                opacity var(--t-base) var(--easing),
                visibility 0s linear var(--t-base);
    box-shadow: -24px 0 60px rgba(10, 22, 40, .12);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    clip-path: inset(0);
    visibility: visible;
    transition: clip-path var(--t-base) var(--easing),
                opacity var(--t-base) var(--easing),
                visibility 0s linear 0s;
  }

  .nav a {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--ink-100);
    font-size: 18px;
  }

  .header-phone { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn:not(.menu-toggle) { display: none; }
}

@media (max-width: 420px) {
  .header-inner { gap: 12px; }
  .logo-text-line { display: none; }
  .logo { font-size: 16px; }
  .logo-mark { width: 36px; height: 36px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
  background: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(closest-side, var(--brand-primary-50), transparent);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  margin-bottom: 28px;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title .accent-word {
  position: relative;
  white-space: nowrap;
  color: var(--brand-primary);
}

.hero-title .accent-word::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 8%;
  height: 18%;
  background: var(--accent);
  z-index: -1;
  border-radius: 4px;
  opacity: 0.45;
}

.hero-lead {
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-meta-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-primary-50);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-meta-text {
  font-size: 14px;
  line-height: 1.4;
}

.hero-meta-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-900);
}

.hero-meta-text span {
  color: var(--ink-500);
  font-size: 13px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 560px;
  width: 100%;
  margin-left: auto;
}

.hero-visual-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-visual-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-visual-frame::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(245, 158, 11, .25), transparent 70%);
}

.hero-visual-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 40px);
  color: var(--white);
}

.hero-stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 10vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-stat-num sup {
  font-size: 0.4em;
  font-weight: 500;
  color: var(--accent-light);
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  margin-top: 8px;
  max-width: 240px;
}

.hero-services-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 28px;
}

.hero-services-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
}

.hero-services-list .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink-900);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-badge {
  position: absolute;
  top: 24px;
  right: -16px;
  background: var(--white);
  color: var(--ink-900);
  padding: 14px 18px;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  transform: rotate(3deg);
}

.hero-badge-rating {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--accent-dark);
}

.hero-badge-stars {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.hero-badge-text {
  font-size: 11px;
  color: var(--ink-500);
  line-height: 1.3;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    margin: 0 auto;
    max-width: 480px;
    width: 100%;
  }

  .hero-badge {
    right: 12px;
    top: 12px;
    transform: rotate(2deg);
    padding: 10px 14px;
  }

  .hero-badge-rating { font-size: 20px; }
  .hero-badge-text { font-size: 10px; }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 48px;
  }

  .hero-title {
    font-size: clamp(32px, 8.8vw, 36px);
    line-height: 1.05;
    overflow-wrap: normal;
  }

  .hero-title .accent-word {
    white-space: normal;
    overflow-wrap: normal;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    flex: none;
    min-width: 0;
  }

  .hero-actions .btn--lg { padding: 0 18px; font-size: 14px; }
  .hero-meta { gap: 16px; }
  .hero-visual-content { padding: 20px; }
  .hero-stat-num { font-size: clamp(56px, 18vw, 88px); }
  .hero-stat-label { max-width: 100%; overflow-wrap: anywhere; }
}

/* ---------- Marquee / ticker ---------- */
.marquee {
  background: var(--ink-900);
  color: var(--white);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee 32s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.marquee-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 120s; }
}

/* ---------- Services ---------- */
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.services-head .lead {
  max-width: 480px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 36px 32px 32px;
  background: var(--ink-25);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  transition: transform var(--t-base) var(--easing),
              border-color var(--t-base) var(--easing),
              box-shadow var(--t-base) var(--easing);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.service-card--featured {
  background: var(--brand-primary);
  color: var(--white);
  border-color: var(--brand-primary);
  grid-column: span 6;
}

.service-card--featured:hover {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
}

.service-card--featured .h-card,
.service-card--featured .service-desc {
  color: var(--white);
}

.service-card--featured .service-desc {
  color: rgba(255, 255, 255, .8);
}

.service-card--featured .service-icon {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
}

.service-card:not(.service-card--featured) {
  grid-column: span 3;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--brand-primary-50);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  transition: transform var(--t-base) var(--easing);
}

.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.05);
}

.service-card .h-card {
  margin-bottom: 12px;
}

.service-desc {
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 24px;
  flex: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.service-tag {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-500);
  border: 1px solid var(--ink-100);
}

.service-card--featured .service-tag {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .85);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-primary);
  margin-top: auto;
}

.service-card--featured .service-link {
  color: var(--accent);
}

.service-link svg {
  transition: transform var(--t-base) var(--easing);
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

@media (max-width: 980px) {
  .service-card:not(.service-card--featured) { grid-column: span 6; }
  .service-card--featured { grid-column: span 12; }
}

@media (max-width: 600px) {
  .service-card,
  .service-card:not(.service-card--featured),
  .service-card--featured { grid-column: span 12; }
  .services-grid > .service-card[style] { grid-column: span 12 !important; }
  .service-card { min-height: auto; padding: 28px 24px; }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--ink-25);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  padding: 36px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base) var(--easing);
}

.stat:hover {
  transform: translateY(-4px);
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent);
  transition: height var(--t-base) var(--easing);
}

.stat:hover::before {
  height: 100%;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand-primary);
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.stat-num sup {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--accent-dark);
}

.stat-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-500);
}

.stat-label strong {
  color: var(--ink-900);
  font-weight: 600;
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ---------- Process / How we work ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--ink-200) 0 6px, transparent 6px 14px);
  z-index: 0;
}

.step {
  position: relative;
  padding-top: 0;
  z-index: 1;
}

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  transition: all var(--t-base) var(--easing);
}

.step:hover .step-num {
  background: var(--brand-primary);
  color: var(--white);
  transform: scale(1.05);
}

.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--ink-900);
}

.step-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-500);
}

@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
}

@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Why us / Advantages ---------- */
.why {
  background: var(--ink-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.why::after {
  content: "";
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(0, 69, 133, .35), transparent);
  pointer-events: none;
}

.why .container {
  position: relative;
  z-index: 1;
}

.why .h-section,
.why .eyebrow {
  color: var(--white);
}

.why .lead {
  color: rgba(255, 255, 255, .7);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.why-card {
  padding: 36px 32px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all var(--t-base) var(--easing);
}

.why-card:hover {
  background: rgba(255, 255, 255, .07);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(245, 158, 11, .15);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.why-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--white);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .7);
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- Problems / what we fix ---------- */
.problems-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
  align-items: end;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-100);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.problem {
  padding: 36px 32px;
  background: var(--white);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: background var(--t-base) var(--easing);
  cursor: default;
}

.problem:hover {
  background: var(--brand-primary-50);
}

.problem-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-primary-50);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all var(--t-base) var(--easing);
}

.problem:hover .problem-icon {
  background: var(--brand-primary);
  color: var(--white);
}

.problem-content h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.problem-content p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-500);
}

@media (max-width: 980px) {
  .problems-head { grid-template-columns: 1fr; gap: 24px; }
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .h-section {
    font-size: clamp(28px, 8.8vw, 34px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .lead {
    overflow-wrap: anywhere;
  }

  .services-head,
  .problems-head {
    gap: 20px;
  }

  .problems-grid { grid-template-columns: 1fr; }
}

/* ---------- Reviews ---------- */
.reviews {
  background: var(--ink-25);
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-100);
}

.reviews-summary-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--accent-dark);
}

.reviews-summary-stars {
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.reviews-summary-text {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.4;
}

.reviews-summary-text strong {
  color: var(--ink-900);
  font-weight: 600;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--t-base) var(--easing), border-color var(--t-base) var(--easing);
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
}

.review-stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-700);
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-100);
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
}

.review-author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-900);
}

.review-date {
  font-size: 12px;
  color: var(--ink-400);
}

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ---------- Form / CTA section ---------- */
.cta-section {
  position: relative;
  padding: clamp(64px, 8vw, 112px) 0;
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
  color: var(--white);
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.cta-section::after {
  content: "";
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(245, 158, 11, .18), transparent);
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-section .eyebrow,
.cta-section .h-section {
  color: var(--white);
}

.cta-section .eyebrow {
  color: var(--accent-light);
}

.cta-section .lead {
  color: rgba(255, 255, 255, .8);
  margin-bottom: 36px;
}

.cta-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, .9);
}

.cta-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(245, 158, 11, .15);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Form */
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-lg);
  color: var(--ink-700);
  position: relative;
}

.form-card-head {
  margin-bottom: 28px;
}

.form-card-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 30px);
  color: var(--ink-900);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.form-card-head p {
  color: var(--ink-500);
  font-size: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row--single { grid-template-columns: 1fr; }

.field {
  position: relative;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  background: var(--ink-25);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color var(--t-fast) var(--easing), background var(--t-fast) var(--easing);
}

.field textarea {
  height: auto;
  min-height: 100px;
  padding: 16px 18px;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: var(--white);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-400);
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0 24px;
  cursor: pointer;
  user-select: none;
}

.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink-200);
  border-radius: 6px;
  background: var(--white);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  margin-top: 1px;
  transition: all var(--t-fast) var(--easing);
}

.consent input[type="checkbox"]:checked {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 7px;
  height: 12px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.consent-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-500);
}

.consent-text a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.form-submit {
  width: 100%;
}

.form-submit:disabled {
  background: var(--ink-200);
  color: var(--ink-400);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.form-success,
.form-error {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.form-success {
  background: rgba(16, 185, 129, .08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, .25);
}

.form-error {
  background: rgba(220, 38, 38, .06);
  color: var(--error);
  border: 1px solid rgba(220, 38, 38, .25);
}

.form-success.is-visible,
.form-error.is-visible { display: block; }

@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr; }
  .cta-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Contacts / Map ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: stretch;
}

.contacts-info {
  background: var(--ink-25);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}

.contacts-info h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--ink-900);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.contact-block {
  padding: 20px 0;
  border-bottom: 1px solid var(--ink-100);
}

.contact-block:last-of-type { border-bottom: none; }

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 8px;
}

.contact-value {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.contact-value a { color: var(--ink-900); }
.contact-value a:hover { color: var(--brand-primary); }

.contact-multi {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.messengers {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.messenger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  transition: all var(--t-fast) var(--easing);
}

.messenger:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.messenger svg { flex-shrink: 0; }

.socials {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  display: grid;
  place-items: center;
  color: var(--ink-700);
  transition: all var(--t-fast) var(--easing);
}

.social-link:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.contacts-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-100);
  min-height: 460px;
  position: relative;
}

.contacts-map iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .contacts-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, .7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-about {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
  max-width: 360px;
}

.footer h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
  transition: color var(--t-fast) var(--easing);
}

.footer-list a:hover { color: var(--accent); }

.footer-requisites {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.7;
}

.footer-requisites strong {
  color: rgba(255, 255, 255, .8);
  font-weight: 500;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, .65);
}

.footer-bottom a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 200;
  background: var(--ink-900);
  color: var(--white);
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(10, 22, 40, .35);
  display: none;
  align-items: center;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .08);
  animation: cookieIn .5s var(--easing) both;
}

.cookie-banner.is-visible { display: flex; }

@keyframes cookieIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 158, 11, .15);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .85);
}

.cookie-text strong {
  color: var(--white);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 15px;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner .btn--accent { height: 44px; padding: 0 22px; font-size: 14px; }
.cookie-banner .btn--ghost {
  height: 44px; padding: 0 18px; font-size: 14px;
  border-color: rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .85);
}
.cookie-banner .btn--ghost:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .3);
  color: var(--white);
}

@media (max-width: 760px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    gap: 14px;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
  }
  .cookie-actions { width: 100%; }
  .cookie-banner .btn { flex: 1; min-width: 0; }
  .cookie-icon { width: 38px; height: 38px; }
  .cookie-text { font-size: 13px; }
}

/* ---------- Privacy page specific ---------- */
.legal {
  padding: clamp(48px, 6vw, 96px) 0 clamp(64px, 8vw, 112px);
}

.legal-head {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ink-100);
}

.legal-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-500);
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legal-content {
  max-width: 820px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--ink-900);
  margin: 48px 0 16px;
  letter-spacing: -0.015em;
  scroll-margin-top: 100px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-900);
  margin: 28px 0 12px;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-700);
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li { margin-bottom: 8px; }

.legal-content strong { color: var(--ink-900); font-weight: 600; }

.legal-toc {
  background: var(--ink-25);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 48px;
}

.legal-toc h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}

.legal-toc li {
  margin-bottom: 6px;
  font-size: 14px;
  break-inside: avoid;
}

.legal-toc a {
  color: var(--ink-500);
  display: block;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.legal-toc a:hover {
  color: var(--brand-primary);
  border-bottom-color: currentColor;
}

@media (max-width: 600px) {
  .legal-toc ol { columns: 1; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--easing), transform .8s var(--easing);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Selection ---------- */
::selection {
  background: var(--accent);
  color: var(--ink-900);
}
