/* ==========================================================================
   Rukoder — design system v4
   Light corporate-tech: Plus Jakarta Sans, indigo primary, orange accent.
   Order: tokens → base → layout → components → pages → responsive.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-mute: #f1f5f9;
  --surface: #ffffff;

  /* Ink */
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-2: #8593a8;

  /* Lines */
  --line: #e2e8f0;
  --line-2: #cbd5e1;

  /* Brand */
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-ring: rgba(79, 70, 229, 0.18);
  --accent-2: #f97316;
  --accent-2-soft: #fff7ed;

  /* Status */
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --error: #dc2626;
  --error-soft: #fef2f2;

  /* Typography */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 10px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);
  --shadow-accent: 0 10px 30px rgba(79, 70, 229, 0.25);

  /* Layout */
  --max: 1180px;
  --max-narrow: 780px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4.25rem;
  --section-y: clamp(3.5rem, 7vw, 6.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.45s;
}

/* Per-service gradient tiles. Keyed by Service::$accent. */
.tile--indigo  { --tile-a: #6366f1; --tile-b: #4338ca; }
.tile--blue    { --tile-a: #3b82f6; --tile-b: #1d4ed8; }
.tile--cyan    { --tile-a: #22d3ee; --tile-b: #0891b2; }
.tile--emerald { --tile-a: #34d399; --tile-b: #059669; }
.tile--teal    { --tile-a: #2dd4bf; --tile-b: #0d9488; }
.tile--amber   { --tile-a: #fbbf24; --tile-b: #d97706; }
.tile--orange  { --tile-a: #fb923c; --tile-b: #ea580c; }
.tile--rose    { --tile-a: #fb7185; --tile-b: #e11d48; }
.tile--violet  { --tile-a: #a78bfa; --tile-b: #7c3aed; }
.tile--slate   { --tile-a: #94a3b8; --tile-b: #475569; }

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
/* Pages with an in-page section bar need room for both sticky rows. */
html:has(.svc-nav) { scroll-padding-top: calc(var(--header-h) + 4.25rem); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--accent-hover); }

img, svg, picture { max-width: 100%; display: block; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }
li:last-child { margin-bottom: 0; }

/* Prose spacing above is only for unstyled lists in legal and article text.
   Any list with a class sets its own rhythm through `gap`, and leaving the
   margin on breaks grid rows: the last item, being the only one without it,
   stretches taller than its siblings and shifts its content down. */
:is(ul, ol)[class] > li { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 600; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.wrap--narrow { max-width: var(--max-narrow); }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3.25rem);
  text-align: center;
}
.section-head--left {
  margin-inline: 0;
  text-align: left;
  max-width: 640px;
}
.section-head p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section-head:not(.section-head--left) .eyebrow { justify-content: center; }

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.stack { display: grid; gap: 1.25rem; }

/* --------------------------------------------------------------------------
   4. Decorative background mesh
   -------------------------------------------------------------------------- */
.mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.mesh__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.mesh__blob--a {
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  top: -14%; right: -8%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.55), transparent 68%);
}
.mesh__blob--b {
  width: 38vw; height: 38vw;
  max-width: 520px; max-height: 520px;
  top: 22%; left: -12%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.32), transparent 68%);
}
.mesh__blob--c {
  width: 34vw; height: 34vw;
  max-width: 460px; max-height: 460px;
  bottom: -18%; left: 38%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.34), transparent 68%);
}

/* Faint dot grid, layered under the blobs to give large surfaces some texture. */
.mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.07) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 40%, transparent 100%);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { background: var(--accent-hover); color: #fff; }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover { border-color: var(--line-2); color: var(--ink); }

.btn--light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--light:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

.btn--white { background: #fff; color: var(--accent); }
.btn--white:hover { background: #fff; color: var(--accent-hover); }

.btn--full { width: 100%; }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Inline text link with arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.94rem;
}
.arrow-link .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.arrow-link:hover .icon { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. Icons and tiles
   -------------------------------------------------------------------------- */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--r);
  color: #fff;
  background: linear-gradient(135deg, var(--tile-a, #6366f1), var(--tile-b, #4338ca));
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
  transition: transform 0.25s var(--ease);
}
.tile .icon { width: 22px; height: 22px; stroke-width: 1.8; }
.tile--sm { width: 34px; height: 34px; border-radius: var(--r-sm); }
.tile--sm .icon { width: 17px; height: 17px; }
.tile--lg { width: 56px; height: 56px; border-radius: var(--r-lg); }
.tile--lg .icon { width: 27px; height: 27px; }

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.top.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(15, 23, 42, 0.05);
}

.top__inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.038em;
  color: var(--ink);
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 29px; height: 29px; flex: none; }
/* Столбцы подрастают от собственного основания, а не от угла холста,
   поэтому им нужен fill-box: по умолчанию SVG считает начало от viewBox. */
.brand__mark rect {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 0.35s var(--ease);
}
.brand:hover .brand__mark rect:nth-child(1) { transform: scaleY(1.07); }
.brand:hover .brand__mark rect:nth-child(2) { transform: scaleY(1.13); }
.brand:hover .brand__mark rect:nth-child(3) { transform: scaleY(1.19); }
.brand__word { line-height: 1; }
.brand__city {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  padding-left: 0.55rem;
  margin-left: 0.1rem;
  border-left: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav__link .icon { width: 14px; height: 14px; stroke-width: 2.2; }

.nav__cta { margin-left: 0.5rem; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Mega menu */
.has-mega { position: relative; }

.mega {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translate(-50%, -8px);
  width: min(92vw, 900px);
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 20;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega,
.mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.mega__col-title {
  margin: 0 0 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.mega__list { list-style: none; margin: 0; padding: 0; }
.mega__list li { margin: 0; }
.mega__link {
  display: block;
  padding: 0.4rem 0.5rem;
  margin-inline: -0.5rem;
  border-radius: var(--r-xs);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
}
.mega__link:hover { background: var(--accent-soft); color: var(--accent); }

.mega__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.mega__foot p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__title { margin-bottom: 1.1rem; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), #8b5cf6 55%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 52ch;
  margin-bottom: 1.75rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
}
.chip .icon { width: 14px; height: 14px; color: var(--accent); }

/* Hero mockup */
.mock {
  position: relative;
  padding: clamp(1rem, 3vw, 2rem);
}
.mock__window {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.mock__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}
.mock__dot:nth-child(1) { background: #fca5a5; }
.mock__dot:nth-child(2) { background: #fcd34d; }
.mock__dot:nth-child(3) { background: #86efac; }
.mock__url {
  margin-left: 0.5rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.7rem;
  color: var(--muted);
}
.mock__body { padding: 1.1rem; display: grid; gap: 0.75rem; }
.mock__line {
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--bg-mute);
}
.mock__line--accent {
  height: 30px;
  width: 62%;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
}
.mock__line--w70 { width: 70%; }
.mock__line--w45 { width: 45%; }
.mock__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.3rem;
}
.mock__card {
  height: 58px;
  border-radius: var(--r-sm);
  background: var(--bg-mute);
}
.mock__card:nth-child(2) { background: var(--accent-soft); }
.mock__card:nth-child(3) { background: var(--accent-2-soft); }

.mock__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  animation: float 6s ease-in-out infinite;
}
.mock__float--a { top: 6%; right: -2%; }
.mock__float--b { bottom: 16%; left: -4%; animation-delay: -2s; }
.mock__float--c { bottom: -2%; right: 8%; animation-delay: -4s; }

.mock__float small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   9. Logo / marquee strip
   -------------------------------------------------------------------------- */
.strip {
  padding-block: 1.5rem;
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.strip__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: slide 38s linear infinite;
}
.strip:hover .strip__track { animation-play-state: paused; }
.strip__group {
  display: flex;
  gap: 3rem;
  padding-right: 3rem;
}
.strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.strip__item .icon { width: 16px; height: 16px; color: var(--accent); }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--tile-a, #6366f1), var(--tile-b, #4338ca));
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.card--bar::before { opacity: 1; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.card:hover::before { opacity: 1; }
.card:hover .tile { transform: scale(1.06) rotate(-3deg); }

.card h3 { margin: 0; }
.card p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.card__foot { margin-top: auto; padding-top: 0.5rem; }

a.card { color: inherit; }
a.card:hover { color: inherit; }

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card__num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Compact list card used in service hub */
.mini {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  color: inherit;
}
.mini:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
  color: inherit;
}
.mini__body { display: block; min-width: 0; }
.mini__body strong { display: block; font-size: 0.98rem; color: var(--ink); }
.mini__body span { display: block; font-size: 0.86rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   11. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stat {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  box-shadow: var(--shadow-xs);
}
.stat__num {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.stat__num em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span:not(.stat__num) {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   12. Process / steps
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.steps--row { grid-template-columns: repeat(4, 1fr); }

.step {
  position: relative;
  margin: 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.step__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}
.step h3 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* Vertical timeline variant used on service pages */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 2.25rem;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.68rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-soft));
  border-radius: 2px;
}
.timeline li {
  position: relative;
  margin: 0 0 1.6rem;
  padding: 0;
}
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.79rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
}
.timeline h3 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.timeline p { margin: 0; font-size: 0.94rem; color: var(--muted); }

.timeline--lg li { margin-bottom: 2.35rem; }
.timeline--lg h3 { font-size: 1.15rem; }
.timeline--lg p + p { margin-top: 0.6rem; }
.timeline__meta {
  font-size: 0.88rem !important;
  color: var(--accent) !important;
  font-weight: 600;
}

/* Compact numbered list used inside panels */
.steps--compact { gap: 1.1rem; }
.steps--compact li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0;
}
.steps--compact .steps__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}
.steps--compact h4 { margin: 0 0 0.2rem; font-size: 0.98rem; }
.steps--compact p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   13. Feature list (checkmarks)
   -------------------------------------------------------------------------- */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.checks li {
  position: relative;
  margin: 0;
  padding-left: 1.9rem;
  font-size: 0.97rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks--2 { grid-template-columns: repeat(2, 1fr); gap: 0.7rem 1.75rem; }

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 0.75rem; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq details:hover { border-color: var(--line-2); }
.faq details[open] {
  border-color: var(--accent-ring);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s var(--ease), border-color 0.2s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
  border-color: var(--accent);
}
.faq__body {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.96rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   15. Panels, notes, tables
   -------------------------------------------------------------------------- */
.panel {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.panel--soft { background: var(--bg-soft); box-shadow: none; }
.panel--accent {
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.86);
}
.panel--accent h2,
.panel--accent h3 { color: #fff; }
.panel--accent a { color: #fff; text-decoration: underline; }

.panel h3 { margin: 0 0 0.6rem; }
.panel > p:last-child { margin-bottom: 0; }

.note {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--accent-soft);
  font-size: 0.95rem;
  color: var(--ink-2);
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.facts li:last-child { padding-bottom: 0; border-bottom: 0; }
.facts dt, .facts .facts__k { color: var(--muted); }
.facts dd, .facts .facts__v { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

/* --------------------------------------------------------------------------
   16. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.25rem, 5vw, 3.75rem) clamp(2.25rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, var(--bg-soft), #fff);
  border-bottom: 1px solid var(--line);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.page-hero h1 { margin-bottom: 0.9rem; max-width: 24ch; }
.page-hero--center h1 { margin-inline: auto; }
.page-hero__lead {
  max-width: 58ch;
  font-size: 1.06rem;
  color: var(--muted);
}
.page-hero .btn-row { margin-top: 1.5rem; }
.page-hero--slim { padding-block: clamp(1.75rem, 4vw, 2.75rem); background: var(--bg-soft); }
.page-hero--art {
  padding-block: clamp(2.5rem, 5vw, 4.25rem) clamp(3rem, 6vw, 4.75rem);
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  border-bottom: 0;
}
.page-hero--art .page-hero__grid { grid-template-columns: 1.02fr 0.98fr; }
.page-hero--art h1 { max-width: 21ch; }
.page-hero--art .page-hero__lead { max-width: 46ch; }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero--center .crumbs { justify-content: center; }

.error-code {
  margin: 0 0 0.75rem;
  font-size: clamp(4rem, 14vw, 7.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-row--center { justify-content: center; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.panel--form { padding: 0; background: none; border: 0; box-shadow: none; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { color: var(--line-2); }

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
.form__row { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.form label { display: grid; gap: 0.4rem; }
.form label > span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.form input::placeholder,
.form textarea::placeholder { color: var(--muted-2); }
.form input:focus,
.form textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.form textarea { resize: vertical; min-height: 120px; }

/* Beats ".form label { display: grid }", which would stack the box above the text. */
.form label.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.form label.form__check > span { font-size: inherit; font-weight: 500; color: var(--muted); }
.form__check input {
  margin: 0.2rem 0 0;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex: none;
}
.form__check span { display: block; }

.form__status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.2em;
}
.form__status.is-ok { color: var(--ok); font-weight: 600; }
.form__status.is-error { color: var(--error); font-weight: 600; }

.form__note { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   18. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 55%, #7c3aed 100%);
  color: rgba(255, 255, 255, 0.85);
}
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.cta::before {
  width: 380px; height: 380px;
  top: -40%; right: -5%;
  background: rgba(249, 115, 22, 0.35);
}
.cta__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.22) 1px, transparent 0);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(105deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(105deg, #000 0%, transparent 55%);
}
.cta__rings {
  position: absolute;
  top: 50%;
  right: -4%;
  width: min(46vw, 460px);
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.7;
}
.cta::after {
  width: 320px; height: 320px;
  bottom: -50%; left: 5%;
  background: rgba(56, 189, 248, 0.3);
}
.cta .wrap { position: relative; z-index: 2; }
.cta__grid {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 2rem;
  align-items: center;
}
.cta h2 { color: #fff; margin-bottom: 0.75rem; }
.cta p { margin: 0; max-width: 60ch; }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.foot {
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.92rem;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}
.foot .brand { color: #fff; }
.foot .brand__city { color: #94a3b8; border-left-color: rgba(255, 255, 255, 0.16); }
.foot__about { margin: 1rem 0 0; max-width: 34ch; }
.foot h3 {
  margin: 0 0 0.9rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 0.55rem; }
.foot a { color: #cbd5e1; }
.foot a:hover { color: #fff; }

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   20. City-specific pieces
   -------------------------------------------------------------------------- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.6rem;
}
.city-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.city-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}
.city-link small { font-size: 0.75rem; color: var(--muted); }
.city-link:hover small { color: var(--accent); }

/* Alphabetical index: column flow keeps single-city letters from eating a row. */
.letter-columns {
  columns: 4;
  column-gap: 2rem;
}
.letter-group {
  break-inside: avoid;
  margin-bottom: 1.6rem;
}
.letter-group__title {
  margin: 0 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
}
.letter-list { list-style: none; margin: 0; padding: 0; }
.letter-list li { margin: 0; }
.letter-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.4rem;
  border-radius: var(--r-xs);
  font-size: 0.93rem;
  color: var(--ink-2);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.letter-list a:hover { background: var(--accent-soft); color: var(--accent); }
.letter-list small { font-size: 0.72rem; color: var(--muted); }
.letter-list a:hover small { color: var(--accent); }

/* --------------------------------------------------------------------------
   20b. Service hero artwork
   -------------------------------------------------------------------------- */
.art {
  position: relative;
  padding: clamp(0.75rem, 2.5vw, 1.75rem);
  font-size: 0.8rem;
}

.art__window {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.art__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.art__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.art__dot:nth-child(1) { background: #fca5a5; }
.art__dot:nth-child(2) { background: #fcd34d; }
.art__dot:nth-child(3) { background: #86efac; }
.art__url {
  margin-left: 0.5rem;
  padding: 0.12rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.68rem;
  color: var(--muted);
}

.art__page { padding: 0.9rem; display: grid; gap: 0.8rem; }
.art__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.art__logo {
  width: 18px; height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
}
.art__navline {
  height: 6px;
  width: 34px;
  border-radius: var(--r-pill);
  background: var(--bg-mute);
}
.art__navline:nth-of-type(3) { width: 26px; }
.art__navbtn {
  margin-left: auto;
  height: 18px;
  width: 54px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
}

.art__block { display: grid; gap: 0.5rem; }
.art__h {
  height: 20px;
  width: 78%;
  border-radius: var(--r-xs);
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
}
.art__t {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--bg-mute);
}
.art__t--short { width: 52%; }
.art__t--title { height: 11px; width: 72%; background: var(--accent-soft); }
.art__t--dim { opacity: 0.7; }
.art__cta {
  margin-top: 0.35rem;
  height: 26px;
  width: 108px;
  border-radius: var(--r-pill);
  background: var(--accent);
}
.art__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
.art__tileblock { height: 52px; border-radius: var(--r-sm); background: var(--bg-mute); }
.art__tileblock:nth-child(2) { background: var(--accent-soft); }
.art__tileblock:nth-child(3) { background: var(--accent-2-soft); }

/* Search results scene */
.art__serp {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.art__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg-soft);
}
.art__search .icon { width: 15px; height: 15px; color: var(--muted); }
.art__query { font-size: 0.78rem; color: var(--muted); }
.art__result {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
}
.art__result--own {
  border-color: var(--accent-ring);
  background: var(--accent-soft);
}
.art__result--own .art__t { background: rgba(79, 70, 229, 0.22); }
.art__result--own .art__t--title { background: var(--accent); opacity: 0.85; }
.art__badge {
  flex: none;
  padding: 0.1rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}
.art__lines { display: grid; gap: 0.4rem; flex: 1; }

/* Floating data cards */
.art__card {
  position: absolute;
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  animation: float 7s ease-in-out infinite;
}
.art__card-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.art__card--chart { bottom: -8%; right: -6%; width: 205px; animation-delay: -2s; }
.art__chart { width: 100%; height: 54px; }
.art__axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  font-style: normal;
  color: var(--muted);
}
.art__axis i { font-style: normal; }
.art__card--stack { bottom: -4%; right: -2%; width: 190px; animation-delay: -3s; }
.art__stack { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.art__stack i {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.45rem;
  border-radius: var(--r-xs);
  background: var(--bg-soft);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  color: var(--ink-2);
}
.art__stack .icon { width: 13px; height: 13px; color: var(--accent); }

/* Small floating chips */
.art__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.art__chip--tl { top: 2%; left: -4%; }
.art__chip--tr { top: 1%; right: -3%; animation-delay: -1.5s; }
.art__chip--bl { bottom: 4%; left: -5%; animation-delay: -3s; }
.art__chip--br { bottom: 1%; right: -4%; animation-delay: -4.5s; }
.art__pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: none;
}
.art__pulse--indigo { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.art__pulse--emerald { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.art__pulse--orange { background: var(--accent-2); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2); }
.art__pulse--violet { background: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2); }

/* Technical dashboard scene */
.art__dash {
  display: grid;
  gap: 1.1rem;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.art__gauge { display: flex; align-items: center; gap: 1rem; }
.art__gauge svg { width: 118px; flex: none; }
.art__gauge-label { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.art__gauge-label b { color: var(--ink); font-size: 0.9rem; }
.art__meters { display: grid; gap: 0.6rem; }
.art__meter { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 0.6rem; }
.art__meter i {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.art__meter b {
  display: block;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--bg-mute);
  overflow: hidden;
}
.art__meter s {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #34d399, #059669);
}

/* Brand specimen scene */
.art__spec {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.art__type { display: flex; align-items: center; gap: 1rem; }
.art__aa {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  flex: none;
  border-radius: var(--r);
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.art__typemeta { display: grid; gap: 0.15rem; }
.art__typemeta b { font-size: 0.88rem; color: var(--ink); }
.art__typemeta i { font-style: normal; font-size: 0.74rem; color: var(--muted); }
.art__palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.4rem; }
.art__palette span { height: 34px; border-radius: var(--r-xs); }
.art__preview {
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem;
  border-radius: var(--r);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   20c. Service page sections
   -------------------------------------------------------------------------- */
.svc-crumbs { margin-bottom: 1rem; }

.svc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  margin-bottom: 1.1rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
}
.svc-badge .tile { width: 24px; height: 24px; border-radius: 7px; }
.svc-badge .tile .icon { width: 14px; height: 14px; }

.svc-facts {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.85fr;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  list-style: none;
}
.svc-facts li { display: grid; gap: 0.2rem; }
.svc-facts dt,
.svc-facts b {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.svc-facts span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

/* Sticky in-page navigation */
.svc-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.svc-nav__inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.svc-nav__inner::-webkit-scrollbar { display: none; }
.svc-nav a {
  position: relative;
  flex: none;
  padding: 0.9rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.svc-nav a::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.svc-nav a:hover { color: var(--ink); }
.svc-nav a.is-active { color: var(--accent); }
.svc-nav a.is-active::after { transform: scaleX(1); }
.svc-nav__cta { margin-left: auto; padding-left: 1rem; }

/* Opening copy with an accent rail */
.svc-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.svc-intro__lead {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: pretty;
}
.svc-intro__rail {
  display: grid;
  gap: 1rem;
  padding-left: clamp(1rem, 2vw, 1.75rem);
  border-left: 2px solid var(--line);
}
.svc-intro__rail p { margin: 0; color: var(--ink-2); }

/* Numbered "what's included" grid */
.spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.spec__item {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  /* The 1px grid gap is filled by each cell's own ring, so trailing empty
     cells stay white instead of showing the container colour. */
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
  transition: background 0.3s var(--ease);
}
.spec__item::before {
  content: attr(data-num);
  position: absolute;
  top: 0.55rem;
  right: 0.9rem;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--bg-mute);
  transition: color 0.3s var(--ease);
  pointer-events: none;
}
.spec__item:hover { background: var(--bg-soft); }
.spec__item:hover::before { color: var(--accent-soft); }
.spec__item h3 {
  position: relative;
  margin-bottom: 0.6rem;
  padding-right: 2.5rem;
  font-size: 1.06rem;
}
.spec__item p { position: relative; margin: 0; color: var(--muted); font-size: 0.94rem; }
.spec__item::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), #8b5cf6);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.spec__item:hover::after { transform: scaleY(1); }

/* Horizontal process flow */
.flow {
  display: grid;
  grid-template-columns: repeat(var(--flow-n, 4), minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
.flow li {
  position: relative;
  counter-increment: flow;
  padding-top: 3.25rem;
}
.flow li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  z-index: 1;
}
.flow li::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 40px;
  right: -1.25rem;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 5px, transparent 5px 10px);
}
.flow li:last-child::after { display: none; }
.flow h3 { margin-bottom: 0.45rem; font-size: 1.02rem; }
.flow p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* Deliverables band */
.deliver {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--accent-soft), #fdf4ff 60%, var(--accent-2-soft));
  border: 1px solid var(--accent-ring);
}
.deliver h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.deliver p { margin: 0.65rem 0 0; color: var(--ink-2); font-size: 0.95rem; }
.deliver .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 1.5rem; }

/* Pricing factors */
.factors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.factor {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.35rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.factor:hover {
  transform: translateY(-3px);
  border-color: var(--accent-ring);
  box-shadow: var(--shadow-md);
}
.factor__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}
.factor h3 { margin-bottom: 0.35rem; font-size: 1rem; }
.factor p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* Full-cycle ring diagram */
.cycle {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.cycle__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.cycle__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.1rem;
  width: 42%;
  aspect-ratio: 1;
  padding: 0 1rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.cycle__core b {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cycle__core i { font-style: normal; font-size: 0.76rem; color: var(--muted); }
.cycle__node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem 0.5rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.cycle__node .tile { width: 30px; height: 30px; border-radius: 9px; }
.cycle__node .tile .icon { width: 16px; height: 16px; }
.cycle__node--n { top: -2%; left: 50%; transform: translateX(-50%); }
.cycle__node--e { top: 50%; right: -6%; transform: translateY(-50%); }
.cycle__node--s { bottom: -2%; left: 50%; transform: translateX(-50%); }
.cycle__node--w { top: 50%; left: -6%; transform: translateY(-50%); }

/* Statistics band */
.stats--band {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* Timezone coverage chart */
.tzmap {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.tzmap__title {
  margin: 0 0 1.25rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tzmap__scale {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.5rem;
  margin: 0;
  padding: 0 0 0.25rem;
  list-style: none;
}
.tzmap__scale li {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}
/* The plot area has a fixed height, so every bar shares a baseline no matter
   how the surrounding grid tracks resolve. */
.tzmap__col {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 6.5rem;
}
.tzmap__bar {
  width: 100%;
  height: var(--tz-p);
  min-height: 8px;
  border-radius: var(--r-xs) var(--r-xs) 3px 3px;
  background: linear-gradient(180deg, var(--accent), #8b5cf6);
  opacity: 0.9;
}
.tzmap__scale li:nth-child(even) .tzmap__bar {
  background: linear-gradient(180deg, #818cf8, var(--accent));
}
.tzmap__zone {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-2);
}
.tzmap__count {
  font-size: 0.72rem;
  color: var(--muted);
}
.tzmap__note {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

/* District coverage panel */
.coverage {
  padding: clamp(1.25rem, 3vw, 1.85rem);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.coverage__title {
  margin: 0 0 1.1rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.coverage__list { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.coverage__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34% 1.5rem;
  align-items: center;
  gap: 0.75rem;
}
.coverage__name { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.coverage__track {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--bg-mute);
  overflow: hidden;
}
.coverage__fill {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #818cf8, var(--accent));
}
.coverage__count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}
.coverage__note {
  margin: 1.1rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

/* Contractor comparison diagram */
.compare {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.compare__side {
  padding: 1.1rem 1.15rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.compare__side--good { background: var(--accent-soft); border-color: var(--accent-ring); }
.compare__label {
  margin: 0 0 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.compare__box {
  padding: 0.55rem 0.4rem;
  border-radius: var(--r-xs);
  background: var(--surface);
  border: 1px dashed var(--line-2);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.compare__caption {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.compare__side--good .compare__caption { color: var(--accent-hover); font-weight: 600; }
.compare__vs {
  justify-self: center;
  padding: 0.2rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare__hub { display: grid; gap: 0.6rem; }
.compare__core {
  justify-self: start;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.compare__spokes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent-ring);
}
.compare__spokes i {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--r-xs);
  background: var(--surface);
  border: 1px solid var(--line);
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
}
.compare__spokes .tile { width: 22px; height: 22px; border-radius: 6px; }
.compare__spokes .tile .icon { width: 12px; height: 12px; }

/* Stage-by-stage payment ladder */
.ladder {
  padding: clamp(1.25rem, 3vw, 1.85rem);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ladder__title {
  margin: 0 0 1.1rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ladder__list { margin: 0; padding: 0; list-style: none; }
.ladder__list li {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
}
.ladder__list li::after {
  content: "";
  position: absolute;
  top: 50%;
  bottom: -50%;
  left: 0.6rem;
  width: 2px;
  background: var(--line);
}
.ladder__list li.is-last::after { display: none; }
.ladder__dot {
  width: 14px;
  height: 14px;
  margin-left: 0.15rem;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  z-index: 1;
}
.ladder__list li.is-free .ladder__dot { border-color: var(--line-2); }
.ladder__step { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.ladder__pay {
  padding: 0.15rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-hover);
  white-space: nowrap;
}
.ladder__list li.is-free .ladder__pay { background: var(--ok-soft); color: var(--ok); }
.ladder__note {
  margin: 1.1rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

/* Service directions panel (hub hero) */
.dirs {
  display: grid;
  gap: 0.6rem;
  padding: clamp(0.9rem, 2vw, 1.15rem);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dirs__item {
  position: relative;
  display: grid;
  grid-template-columns: 1.6rem 40px 1fr 18px;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.dirs__item:hover {
  transform: translateX(3px);
  border-color: var(--accent-ring);
  box-shadow: var(--shadow-sm);
}
.dirs__step {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.dirs__item .tile { width: 40px; height: 40px; border-radius: 11px; }
.dirs__text { display: grid; gap: 0.05rem; min-width: 0; }
.dirs__text strong {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.dirs__text span { font-size: 0.82rem; color: var(--muted); }
.dirs__arrow {
  width: 18px;
  height: 18px;
  color: var(--muted-2);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.dirs__item:hover .dirs__arrow { color: var(--accent); transform: translateX(3px); }

/* Category heading band on the hub */
.cat-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.cat-head__text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cat-head__text p {
  margin: 0.4rem 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.98rem;
}
.cat-head__count {
  display: grid;
  justify-items: end;
  gap: 0.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.cat-head__count em {
  font-style: normal;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--tile-a, var(--accent)), var(--tile-b, #4338ca));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Related services as richer cards */
.related {
  display: grid;
  gap: 0.7rem;
}
.related__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-areas:
    "tile title"
    "tile text";
  align-items: center;
  gap: 0.1rem 0.85rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.related__item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-ring);
  box-shadow: var(--shadow-md);
}
.related__item strong {
  grid-area: title;
  font-size: 0.96rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.related__item > span:last-child {
  grid-area: text;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}
.related__item .tile { grid-area: tile; width: 36px; height: 36px; border-radius: 10px; }
.related__item .tile .icon { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   21. Reveal animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .mega { width: min(94vw, 720px); }
  .mega__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  /* The closed nav panel is parked one viewport to the right, which would
     otherwise double the document's scrollable width. Clipping only the
     horizontal axis keeps the panel's full-height overlay visible. */
  .top {
    overflow-x: clip;
    overflow-y: visible;
  }

  /* The header uses backdrop-filter, which makes it the containing block for
     fixed descendants — so the panel is positioned against .top, not the
     viewport, and its height has to be stated explicitly. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1.25rem var(--gutter) 2rem;
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
  }
  .nav.is-open { transform: none; }
  body.is-locked { overflow: hidden; }
  .nav__link { padding: 0.8rem 0.75rem; font-size: 1rem; }
  .nav__cta { margin: 0.75rem 0 0; }
  .burger { display: grid; place-content: center; }

  .has-mega { position: static; }
  .mega {
    position: static;
    width: auto;
    padding: 0.5rem 0 0.75rem;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: none;
  }
  .mega.is-open { display: block; }
  .has-mega:hover .mega:not(.is-open) { display: none; }
  .mega__grid { grid-template-columns: 1fr; gap: 1rem; }
  .mega__foot { display: none; }

  /* Иллюстрации уходят под текст: заголовок должен быть первым экраном,
     а плавающие карточки на узком экране становятся обычной строкой. */
  .hero__grid { grid-template-columns: 1fr; }
  .mock { padding: 0; }
  .mock__floats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
  }
  .mock__float {
    position: static;
    animation: none;
    font-size: 0.82rem;
  }
  .mock__float small { display: none; }

  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero--art .page-hero__grid { grid-template-columns: 1fr; }
  .art { padding: 0.5rem; }
  .art__chip { display: none; }
  .art__card { position: static; width: auto; animation: none; margin-top: 0.9rem; }

  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
  .flow li:nth-child(2n)::after { display: none; }
  .deliver { grid-template-columns: 1fr; }
  .svc-intro { grid-template-columns: 1fr; }
  .factors { grid-template-columns: 1fr; }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dirs,
  .coverage,
  .compare,
  .ladder { order: -1; }
  .cat-head { grid-template-columns: auto 1fr; }
  .cat-head__count { grid-column: 2; justify-items: start; }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats--band { grid-template-columns: repeat(2, 1fr); }
  .steps--row { grid-template-columns: repeat(2, 1fr); }
  .cycle { width: min(100%, 340px); }
  .foot__grid { grid-template-columns: repeat(2, 1fr); }
  .cta__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .letter-columns { columns: 2; }
}

@media (max-width: 640px) {
  :root { --header-h: 3.85rem; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps--row { grid-template-columns: 1fr; }
  .checks--2 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 auto; }
  .city-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .city-link { padding: 0.55rem 0.7rem; font-size: 0.88rem; }
  .city-link small { font-size: 0.7rem; }
  .letter-columns { columns: 1; }

  .svc-facts { grid-template-columns: 1fr; gap: 1rem; }
  .flow { grid-template-columns: 1fr; gap: 1.5rem; }
  .flow li::after { display: none; }
  .deliver .checks { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .svc-nav__cta { display: none; }
  .cat-head { grid-template-columns: 1fr; gap: 0.9rem; }
  .cat-head__count { grid-column: 1; }
  .dirs__item { grid-template-columns: 36px 1fr 18px; }
  .dirs__step { display: none; }

  /* Кольцо не помещается в узкую колонку: подписи наезжают на центр.
     На мобильном тот же цикл разворачивается в вертикальную цепочку. */
  .cycle {
    width: 100%;
    aspect-ratio: auto;
    display: grid;
    gap: 0.5rem;
    justify-items: stretch;
  }
  .cycle__ring { display: none; }
  .cycle__core {
    position: static;
    transform: none;
    width: auto;
    aspect-ratio: auto;
    margin-bottom: 0.35rem;
    padding: 0.9rem;
    border-radius: var(--r-lg);
  }
  .cycle__node {
    position: relative;
    inset: auto;
    transform: none;
    justify-content: flex-start;
    border-radius: var(--r);
  }
  .cycle__node + .cycle__node { margin-top: 1.15rem; }
  .cycle__node + .cycle__node::before {
    content: "";
    position: absolute;
    left: 1.35rem;
    top: -1.05rem;
    width: 2px;
    height: 0.95rem;
    background: var(--line-2);
  }
  .tzmap__scale { grid-auto-flow: row; grid-auto-columns: auto; gap: 0.65rem; }
  .tzmap__scale li {
    grid-template-columns: 3.5rem 1fr auto;
    align-items: center;
    justify-items: start;
  }
  .tzmap__col { height: auto; }
  .tzmap__bar { width: var(--tz-p); height: 0.7rem; min-height: 0; min-width: 10px; border-radius: var(--r-pill); }
  .tzmap__zone { order: -1; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}

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

@media print {
  .top, .foot, .cta, .mesh, .strip { display: none; }
  body { color: #000; }
  .card, .panel { box-shadow: none; border-color: #ccc; }
}
