/* ai.stuff — Quiet Grid redesign
   Палитра: молочный фон, графит, акцент — приглушённый олив + янтарь.
   Дух: швейцарская сетка, мягкие пузатые карточки, плотные данные.
*/

:root {
  --bg: #f6f3ec;
  --bg-soft: #fffaf1;
  --panel: rgba(255, 255, 255, 0.92);
  --paper: #ffffff;
  --text: #18181a;
  --text-2: #3a3a3d;
  --muted: #6b6b68;
  --line: rgba(24, 24, 26, 0.10);
  --line-strong: #18181a;
  --brand: oklch(0.52 0.06 110);        /* приглушённый олив */
  --brand-dark: oklch(0.42 0.06 110);
  --accent: oklch(0.62 0.09 70);        /* тёплый янтарь */
  --accent-soft: oklch(0.94 0.03 110);
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 16px 36px rgba(24, 24, 26, 0.08), 0 1px 0 rgba(24, 24, 26, 0.04);
  --shadow-hover: 0 24px 48px rgba(24, 24, 26, 0.12), 0 1px 0 rgba(24, 24, 26, 0.04);
  --shadow-btn: 0 10px 24px rgba(24, 24, 26, 0.18), 0 1px 0 rgba(24, 24, 26, 0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

/* ── фоновая текстура ──────────────── */
.bg-layer {
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(700px 500px at 8% 6%, oklch(0.86 0.06 110 / 0.55), transparent 60%),
    radial-gradient(620px 480px at 92% 22%, oklch(0.82 0.08 70 / 0.40), transparent 60%),
    radial-gradient(800px 600px at 50% 78%, oklch(0.86 0.05 110 / 0.32), transparent 65%),
    linear-gradient(168deg, #f6f3ec 0%, #f1eee5 50%, #f4efe2 100%);
  filter: saturate(1.05);
}

/* ── Topbar ────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.topnav { display: none; }
.topnav a {
  text-decoration: none;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.topnav a:hover { color: var(--brand); }

/* ── секции ────────────────────────── */
.section {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0;
}

/* ── Hero ──────────────────────────── */
.hero {
  display: block;
  padding-top: 3.5rem;
}

.hero-copy {
  display: grid;
  gap: 1rem;
}

.hero-copy h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1rem;
  max-width: 19ch;
  font-weight: 500;
}

.hero-copy h1 .hl {
  white-space: nowrap;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-2);
  max-width: 62ch;
  text-wrap: pretty;
}

.eyebrow {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0.8rem 0 0;
}

.hero-meta {
  display: grid;
  gap: 0.35rem;
  margin: 0.5rem 0 1rem;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a8a87;
  font-size: 0.86rem;
}

.hero-lede {
  margin: 0.2rem 0 0;
  max-width: 30ch;
}

/* ── Кнопки ─────────────────────────── */
.btn {
  appearance: none;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
  padding: 1.15rem 1.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(24, 24, 26, 0.22);
}

.btn-small {
  height: 42px;
  padding: 0 1.1rem;
  line-height: 1;
  font-size: 0.92rem;
  min-width: 128px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
  box-shadow: 0 2px 0 rgba(24, 24, 26, 0.04);
}
.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ── Hero списки и метрики ──────────── */
.hero-points {
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--text-2);
  font-size: 1rem;
}
.hero-points li {
  position: relative;
  padding-left: 1.4rem;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-metrics {
  display: grid;
  gap: 1rem;
}
.hero-metrics article {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-metrics article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.hero-metrics article:nth-child(2) { background: linear-gradient(160deg, var(--paper) 0%, oklch(0.96 0.04 110) 100%); }
.hero-metrics article:nth-child(3) { background: linear-gradient(160deg, var(--paper) 0%, oklch(0.96 0.04 70) 100%); }
.hero-metrics h2 {
  margin: 0 0 0.4rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 4.6vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-metrics p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

/* ── KPI strip — пузатые тайлы под hero ── */
.kpis {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 1rem;
}
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.kpi {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-height: 11.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.kpi:nth-child(2) { background: linear-gradient(160deg, var(--paper) 0%, oklch(0.96 0.04 110) 100%); }
.kpi:nth-child(3) { background: linear-gradient(160deg, var(--paper) 0%, oklch(0.96 0.04 70) 100%); }
.kpi .label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text);
  font-weight: 600;
  line-height: 1.25;
}
.kpi .kpi-copy {
  margin: 0;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.45;
  text-wrap: pretty;
}
.kpi .v {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.kpi .v sup {
  font-size: 0.45em;
  vertical-align: top;
  margin-left: 0.05em;
  color: var(--muted);
  font-weight: 500;
}

/* ── Funnel ─────────────────────────── */
.funnel-block {
  display: grid;
  gap: 1.6rem;
  margin-top: 1.6rem;
}
.funnel-svg-wrap {
  background: color-mix(in oklab, var(--bg) 96%, white 4%);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 1.9rem 1.75rem;
  display: flex;
  align-items: stretch;
}

.funnel-svg-wrap svg {
  width: 100%;
  height: 100%;
}
.funnel-side ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 2px solid rgba(24, 24, 26, 0.75);
}
.funnel-side li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}
.funnel-side .num {
  font-family: "Space Grotesk", sans-serif;
  color: #8f8f8b;
  font-weight: 600;
  font-size: 1.05rem;
  min-width: 2.5rem;
}
.funnel-side h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.03rem;
  font-weight: 500;
}
.funnel-side p {
  margin: 0.35rem 0 0.4rem;
  color: #7d7d79;
  font-size: 0.92rem;
}
.funnel-side .day {
  font-family: "Space Grotesk", sans-serif;
  margin-top: 0.25rem;
  display: inline-block;
  color: #6e7049;
  letter-spacing: 0.11em;
  font-size: 0.76rem;
  text-transform: uppercase;
}

/* ── Section heading с нумерацией ───── */
.section-head .id {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.4rem;
}
.section-head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0.7rem 0 0;
  max-width: 22ch;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hl {
  color: var(--brand);
  border-bottom: 0.085em solid currentColor;
  padding-bottom: 0.02em;
}

/* ── Карточки общие ─────────────────── */
.grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.6rem;
}

.card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card h3 {
  margin: 0 0 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.card p, .card a {
  margin: 0;
  color: var(--text-2);
}

/* услуги — мягкое световое пятно */
#services .card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 110px; height: 110px;
  background: radial-gradient(circle at 70% 30%, oklch(0.86 0.06 110 / 0.55), transparent 65%);
  pointer-events: none;
}
#services .card:nth-child(2)::after { background: radial-gradient(circle at 70% 30%, oklch(0.84 0.08 70 / 0.50), transparent 65%); }
#services .card:nth-child(3)::after { background: radial-gradient(circle at 70% 30%, oklch(0.86 0.05 200 / 0.40), transparent 65%); }

.card-accent {
  background: linear-gradient(155deg, var(--paper) 60%, oklch(0.94 0.05 110) 100%);
}
.card-accent:nth-of-type(even) {
  background: linear-gradient(155deg, var(--paper) 60%, oklch(0.94 0.06 70) 100%);
}

/* ── Timeline (как работаем) ─────────── */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 1rem;
}
.timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.timeline li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.timeline span {
  font-family: "Space Grotesk", sans-serif;
  color: var(--brand);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.timeline h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
}
.timeline p {
  margin: 0.4rem 0 0;
  color: var(--text-2);
}

/* ── CTA блок ───────────────────────── */
.section-cta {
  display: grid;
  gap: 1.2rem;
  align-items: center;
  background: linear-gradient(135deg, #18181a 0%, #232327 100%);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 380px at 90% 20%, oklch(0.78 0.10 70 / 0.35), transparent 60%),
    radial-gradient(440px 320px at 10% 90%, oklch(0.78 0.10 110 / 0.30), transparent 60%);
  pointer-events: none;
}
.section-cta > * { position: relative; z-index: 1; }
.section-cta h2 {
  margin: 0.6rem 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.section-cta p {
  margin: 0;
  color: rgba(246, 243, 236, 0.78);
  max-width: 50ch;
}
.section-cta .eyebrow {
  color: oklch(0.78 0.12 110);
}
.section-cta .hl {
  color: oklch(0.78 0.12 110);
}
.section-cta .btn {
  background: var(--bg);
  color: var(--text);
  border-color: var(--bg);
}
.section-cta .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Направления (specialty) ────────── */
.specialty-grid {
  margin-top: 1.6rem;
  display: grid;
  gap: 1.1rem;
}
.specialty-card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
  display: grid;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.specialty-card::after {
  content: "";
  position: absolute;
  bottom: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle at center, oklch(0.86 0.06 110 / 0.45), transparent 70%);
  pointer-events: none;
  transition: transform 0.4s ease;
}
.specialty-card:nth-child(2)::after { background: radial-gradient(circle at center, oklch(0.84 0.08 70 / 0.40), transparent 70%); }
.specialty-card:nth-child(3)::after { background: radial-gradient(circle at center, oklch(0.86 0.05 200 / 0.35), transparent 70%); }
.specialty-card:nth-child(4)::after { background: radial-gradient(circle at center, oklch(0.84 0.08 30 / 0.40), transparent 70%); }
.specialty-card:nth-child(5)::after { background: radial-gradient(circle at center, oklch(0.86 0.06 150 / 0.40), transparent 70%); }
.specialty-card:nth-child(6)::after { background: radial-gradient(circle at center, oklch(0.86 0.06 280 / 0.35), transparent 70%); }
.specialty-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.specialty-card:hover::after { transform: scale(1.4); }
.specialty-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  position: relative;
  z-index: 1;
}
.specialty-card ul {
  margin: 0.2rem 0 0.4rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}
.specialty-card ul li {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(24, 24, 26, 0.06);
  color: var(--text);
}
.specialty-card a {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease, gap 0.2s ease;
}
.specialty-card a::after {
  content: "→";
  transition: transform 0.2s ease;
}
.specialty-card a:hover {
  color: var(--brand);
}
.specialty-card a:hover::after {
  transform: translateX(4px);
}

/* ── Страница специалистов ──────────── */
.specialist-page {
  padding-top: 2rem;
}
.back-link {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.back-link:hover { opacity: 1; color: var(--brand); }

.page-intro h1 {
  margin: 0.7rem 0 0.6rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.06;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.specialists-layout {
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
}
.profile-card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.profile-card h2 {
  margin: 0;
  font-size: 1.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.profile-card .meta {
  color: var(--brand);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0.5rem 0 0.85rem;
}
.profile-card p {
  margin: 0.6rem 0 0;
  color: var(--text-2);
  text-wrap: pretty;
}

.chip-list {
  list-style: none;
  margin: 0.5rem 0 0.8rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip-list li {
  font-family: "Space Grotesk", sans-serif;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(24, 24, 26, 0.06);
  border: 1px solid rgba(24, 24, 26, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ── Контакты ──────────────────────── */
.contacts-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.contacts-grid .card a {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.contacts-grid .card a:hover { color: var(--brand); }

/* ── Footer ────────────────────────── */
.footer {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 2.4rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

/* ── Specialists V2 ─────────────────── */
.spec-page .spec-back {
  display: inline-block;
  margin: 1.8rem 2.5rem 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.spec-page .spec-back:hover {
  color: var(--brand);
}

.spec-page .spec-head {
  padding: 3rem 2.5rem 4rem;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  align-items: end;
}

.spec-page .spec-head .id {
  grid-column: 1 / span 12;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
}

.spec-page .spec-head h1 {
  grid-column: 1 / span 8;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 0.98;
  margin: 0;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.spec-page .spec-head h1 mark {
  background: transparent;
  color: var(--brand);
  border-bottom: 3px solid var(--brand);
}

.spec-page .spec-head .lede {
  grid-column: 9 / span 4;
  color: var(--text-2);
  font-size: 0.98rem;
  margin: 0;
}

.spec-page .spec-list {
  border-top: 1px solid var(--line-strong);
}

.spec-page .profile {
  display: grid;
  grid-template-columns: 4rem 14rem 1fr 10rem 7rem;
  gap: 1.5rem;
  padding: 1.6rem 2.5rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transition: background 0.2s ease;
}

.spec-page .profile:hover {
  background: var(--accent-soft);
}

.spec-page .profile .n,
.spec-page .profile .nº {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.spec-page .profile h3 {
  font-size: 1.2rem;
  margin: 0 0 0.3rem;
  font-weight: 500;
}

.spec-page .profile .role {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.spec-page .profile p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
  max-width: 48ch;
}

.spec-page .profile .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.6rem;
}

.spec-page .profile .chip {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text-2);
  border-radius: 0;
}

.spec-page .profile .stat {
  font-family: "Space Grotesk", sans-serif;
  min-width: 0;
}

.spec-page .profile .stat .v {
  font-size: 1.3rem;
  display: block;
  line-height: 1;
}

.spec-page .profile .stat .l {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  display: block;
}

.spec-page .profile .request {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  border: 1px solid var(--text);
  padding: 0.55rem 0.9rem;
  text-align: center;
  align-self: start;
  border-radius: 0;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.spec-page .profile:hover .request {
  background: var(--text);
  color: var(--bg);
}

@media (max-width: 1080px) {
  .spec-page .spec-back {
    margin: 1.2rem 1.1rem 0;
  }

  .spec-page .spec-head {
    grid-template-columns: 1fr;
    padding: 2rem 1.1rem 2.2rem;
    gap: 0.9rem;
  }

  .spec-page .spec-head .id,
  .spec-page .spec-head h1,
  .spec-page .spec-head .lede {
    grid-column: auto;
  }

  .spec-page .spec-head .id {
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.7rem;
  }

  .spec-page .spec-list {
    border-top: 0;
  }

  .spec-page .profile {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 0 1.1rem 0.8rem;
    padding: 1rem;
    background: var(--paper);
  }

  .spec-page .profile .request {
    justify-self: start;
  }
}

/* ── Modal ─────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}
.modal.is-open { display: block; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 30, 0.55);
  backdrop-filter: blur(2px);
}
.modal-panel {
  position: relative;
  width: min(560px, calc(100% - 1.4rem));
  margin: 6vh auto 0;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: 0 30px 80px rgba(5, 10, 25, 0.35);
}
.modal-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.modal-panel p {
  margin: 0.5rem 0 1.2rem;
  color: var(--text-2);
}
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.95rem;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.contact-form { display: grid; gap: 0.9rem; }
.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--text-2);
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(24, 24, 26, 0.16);
  padding: 0.85rem 0.95rem;
  font: inherit;
  background: #fafaf7;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  background: #fff;
  outline: 2px solid oklch(0.78 0.10 110 / 0.25);
  outline-offset: 1px;
}
.hidden-field {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ── Reveal анимация ────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease forwards;
}
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }
.reveal:nth-child(5) { animation-delay: 0.32s; }
.reveal:nth-child(6) { animation-delay: 0.40s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Респонсив ─────────────────────── */
@media (min-width: 760px) {
  .topbar { padding: 1.1rem 1.6rem; }
  .topnav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
  }
  .hero-copy {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    align-items: end;
    gap: 1rem 1.8rem;
  }
  .hero-copy h1 { grid-column: 1; grid-row: 1; max-width: 15.5ch; margin-bottom: 0.2rem; }
  .hero-copy .hero-meta { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; text-align: right; }
  .hero-copy .hero-lede { grid-column: 1; grid-row: 2; align-self: start; margin-top: 0; }
  .hero-copy .hero-actions {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
    margin-top: 0.2rem;
  }
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specialty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specialists-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .funnel-block { grid-template-columns: 1.38fr 0.92fr; align-items: start; gap: 1.35rem; }
  .funnel-svg-wrap {
    min-height: 592px;
  }
  .section-cta {
    grid-template-columns: 1fr auto;
    padding: 3.5rem 3rem;
  }
  .modal-panel { padding: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
