/* ============================================================
   РЕСУРС · ДИАГНОСТИКА · КОНТРОЛЬ — design tokens + components
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces — cool steel/graphite, precision-instrument feel */
  --color-bg: #f3f5f6;
  --color-surface: #ffffff;
  --color-surface-2: #fbfcfd;
  --color-surface-offset: #eaedef;
  --color-surface-offset-2: #dfe3e6;
  --color-surface-dynamic: #d6dbdf;
  --color-divider: #dde1e4;
  --color-border: #d1d7db;

  /* Text */
  --color-text: #11161a;
  --color-text-muted: #57636c;
  --color-text-faint: #9aa4aa;
  --color-text-inverse: #f5f8f9;

  /* Primary accent — diagnostic teal/cyan */
  --color-primary: #067a87;
  --color-primary-hover: #056370;
  --color-primary-active: #044c56;
  --color-primary-highlight: #cfe6e9;

  /* Error / Success (form states) */
  --color-error: #af3f39;
  --color-error-hover: #8c322d;
  --color-error-highlight: #f1d9d7;
  --color-success: #3d7d4a;
  --color-success-hover: #2f6339;
  --color-success-highlight: #d9e9dc;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.9rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 210 / 0.07);
  --shadow-md: 0 6px 16px oklch(0.2 0.02 210 / 0.09);
  --shadow-lg: 0 18px 44px oklch(0.2 0.02 210 / 0.14);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;
  --content-full: 100%;

  --font-display: 'Cabinet Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Satoshi', 'Inter', 'Segoe UI', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0c1013;
  --color-surface: #121720;
  --color-surface-2: #151b23;
  --color-surface-offset: #181f27;
  --color-surface-offset-2: #1d252e;
  --color-surface-dynamic: #232c35;
  --color-divider: #212a32;
  --color-border: #2b3540;
  --color-text: #dde3e6;
  --color-text-muted: #8b969e;
  --color-text-faint: #5c666d;
  --color-text-inverse: #0c1013;

  --color-primary: #3fb3bf;
  --color-primary-hover: #62c4cf;
  --color-primary-active: #8ad4dc;
  --color-primary-highlight: #1c3639;

  --color-error: #e0847e;
  --color-error-hover: #e79b96;
  --color-error-highlight: #3a2723;
  --color-success: #7fc28e;
  --color-success-hover: #96cea2;
  --color-success-highlight: #22331f;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 18px 44px oklch(0 0 0 / 0.5);
}

/* ---------- Type scale ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* =====================================================
   Base layout helpers
   ===================================================== */
html,
body {
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-10));
}

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

section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow::before {
  content: '';
  width: 1.4em;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-top: var(--space-3);
  max-width: 34ch;
}

.section-lede {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 62ch;
  margin-top: var(--space-4);
}

.section-head {
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-12));
}

/* =====================================================
   Header / Nav
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header--hidden {
  transform: translateY(-100%);
}
.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.brand svg {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-text span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* Main nav is a persistent slide-in drawer at every viewport width: five
   full-length Russian labels cannot fit inline within the 1240px header
   container even on ultra-wide screens, so a menu button + drawer is the
   primary (not just mobile-fallback) navigation pattern here. */
.main-nav {
  position: fixed;
  inset: 0 0 0 auto;
  top: var(--header-h, 68px);
  width: min(360px, 88vw);
  height: calc(100dvh - var(--header-h, 68px));
  background: var(--color-surface);
  border-left: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: var(--space-4);
  gap: var(--space-1);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  z-index: 95;
}
.main-nav.open {
  transform: translateX(0);
}
.main-nav a {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--color-divider);
}
.main-nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.main-nav a[aria-current='page'] {
  color: var(--color-primary);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: var(--color-text);
  line-height: 1.25;
}
.header-phone strong {
  font-size: var(--text-sm);
  font-weight: 700;
}
.header-phone span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.nav-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  place-items: center;
  color: var(--color-text);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .brand-text span {
    display: none;
  }
  .header-phone {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Full company name no longer fits next to the theme/menu buttons at
     phone widths; the logo mark alone keeps the header on one line. The
     full name still appears in every page hero and the footer. */
  .brand-text {
    display: none;
  }
  .header-inner {
    gap: var(--space-3);
  }
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: oklch(0.1 0 0 / 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 90;
}
.nav-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.1;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-block {
  width: 100%;
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32)) clamp(var(--space-12), 8vw, var(--space-24));
  overflow: hidden;
  background:
    radial-gradient(circle at 85% -10%, color-mix(in oklab, var(--color-primary) 16%, transparent), transparent 60%),
    var(--color-bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}
.hero-copy .eyebrow {
  margin-bottom: var(--space-5);
}
.hero-copy h1 {
  font-size: var(--text-3xl);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.hero-copy p {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-12);
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
}
.hero-stat span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  aspect-ratio: 4/3.4;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, color-mix(in oklab, var(--color-primary) 30%, transparent) 0%, transparent 45%);
  mix-blend-mode: multiply;
}

.hero-badge {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  background: color-mix(in oklab, var(--color-surface) 88%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  z-index: 1;
}
.hero-badge svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.hero-badge strong {
  display: block;
  font-size: var(--text-sm);
}
.hero-badge span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: var(--text-2xl);
  }
}

/* Simple page header for interior pages */
.page-hero {
  padding-block: clamp(var(--space-12), 8vw, var(--space-20)) clamp(var(--space-8), 5vw, var(--space-12));
  background: linear-gradient(180deg, color-mix(in oklab, var(--color-primary) 8%, var(--color-bg)), var(--color-bg));
  border-bottom: 1px solid var(--color-divider);
}
.page-hero .eyebrow {
  margin-bottom: var(--space-4);
}
.page-hero h1 {
  font-size: var(--text-2xl);
  font-weight: 650;
  max-width: 30ch;
}
.page-hero p {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 62ch;
}
.breadcrumb {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.breadcrumb a {
  color: var(--color-text-faint);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--color-primary);
}

/* =====================================================
   Cards / grids
   ===================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: grid;
  place-items: center;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.check-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.check-list svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tag {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* Section band with alternate surface */
.band {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

/* Two column text/media */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}
.split.reverse .split-media {
  order: 2;
}
@media (max-width: 860px) {
  .split,
  .split.reverse .split-media {
    grid-template-columns: 1fr;
    order: initial;
  }
}
.split-media img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/3.2;
  object-fit: cover;
}
.split-body h2 {
  font-size: var(--text-xl);
  font-weight: 650;
}
.split-body p {
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}
.split-body ul {
  margin-top: var(--space-5);
}

/* Numbered process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  position: relative;
  padding-top: var(--space-10);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-3);
}
.step h3 {
  font-size: var(--text-base);
  font-weight: 600;
}
.step p {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.gallery a {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 1/1;
  position: relative;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery a:hover img {
  transform: scale(1.06);
}
@media (max-width: 860px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  background: oklch(0.08 0 0 / 0.86);
  padding: var(--space-6);
}
.lightbox.open {
  display: grid;
}
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: color-mix(in oklab, var(--color-surface) 90%, transparent);
  display: grid;
  place-items: center;
  color: var(--color-text);
}

/* Spec table */
.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.spec-table {
  min-width: 560px;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-divider);
}
.spec-table th {
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  background: var(--color-surface-offset);
}
.spec-table tr:last-child td {
  border-bottom: none;
}
.spec-table td strong {
  color: var(--color-primary);
  font-family: var(--font-display);
}

/* Product cards for pump models */
.product-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-6);
  align-items: center;
}
.product-card img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  aspect-ratio: 3/4;
  object-fit: cover;
}
@media (max-width: 640px) {
  .product-card {
    grid-template-columns: 1fr;
  }
  .product-card img {
    aspect-ratio: 4/3;
    max-width: 260px;
  }
}
.product-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}
.product-spec {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}
.product-spec div strong {
  display: block;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: var(--text-lg);
}
.product-spec div span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--color-primary), color-mix(in oklab, var(--color-primary) 60%, #1c2b30));
  color: var(--color-text-inverse);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 6vw, var(--space-16));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: var(--text-xl);
  max-width: 28ch;
}
.cta-band p {
  color: color-mix(in oklab, var(--color-text-inverse) 82%, transparent);
  margin-top: var(--space-2);
  max-width: 40ch;
}
.cta-band .btn-primary {
  background: var(--color-text-inverse);
  color: var(--color-primary-active);
}
.cta-band .btn-primary:hover {
  background: color-mix(in oklab, var(--color-text-inverse) 90%, transparent);
}

/* =====================================================
   Contact page
   ===================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.contact-info-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.contact-info-item .feature-icon {
  flex-shrink: 0;
}
.contact-info-item h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-info-item p,
.contact-info-item a {
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
}
.contact-info-item a:hover {
  color: var(--color-primary);
}

.map-embed {
  margin-top: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/10;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-md);
}
.form-card h2 {
  font-size: var(--text-lg);
  font-weight: 650;
}
.form-card > p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.field {
  margin-top: var(--space-5);
}
.field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.field input,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-base);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}

.checkbox-group {
  margin-top: var(--space-5);
}
.checkbox-group > span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.checkbox-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-4);
}
@media (max-width: 480px) {
  .checkbox-options {
    grid-template-columns: 1fr;
  }
}
.checkbox-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.checkbox-option:hover {
  border-color: var(--color-primary);
}
.checkbox-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
}

.form-status {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  display: none;
}
.form-status.show {
  display: block;
}
.form-status.success {
  background: var(--color-success-highlight);
  color: var(--color-success);
}
.form-status.error {
  background: var(--color-error-highlight);
  color: var(--color-error);
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface-offset);
  padding-block: var(--space-12) var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-10);
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.footer-brand svg {
  width: 34px;
  height: 34px;
  color: var(--color-primary);
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  display: block;
}
.footer-col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--color-primary);
}
.footer-bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  z-index: 300;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* =====================================================
   Согласие на обработку ПДн, ссылка на политику, правовые страницы
   ===================================================== */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  cursor: pointer;
}
.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}
.consent-check a,
.form-consent-note a,
.legal a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal-link {
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal-link:hover,
.footer-legal-link:focus-visible {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-check.is-invalid { color: var(--color-error); }

.legal {
  max-width: 78ch;
  padding-block: 0 var(--space-8);
}
.legal h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.legal p,
.legal li {
  color: var(--color-text-muted);
  line-height: 1.65;
}
.legal p + p { margin-top: var(--space-3); }
.legal ul,
.legal ol {
  list-style: disc;
  padding-left: 1.4em;
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.legal .legal-meta {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

/* Убираем маркеры у списков в подвале */
.footer-col ul { list-style: none; padding-left: 0; }

.form-consent-note { line-height: 1.5; }
