/* ==========================================================================
   IMINERA Avatar — концепция A «Эталон»
   Светлый инженерный / чертёжный стиль. Mobile-first, breakpoints: 768 / 1280
   ========================================================================== */

/* ---------- 1. Переменные ---------- */
:root {
  /* цвет */
  --color-bg: #FFFFFF;
  --color-bg-alt: #FAFAFA;
  --color-graphite: #2A2A2A;
  --color-grey: #5C5C5C;      /* вторичный текст, контраст 6.68:1 на белом */
  --color-grey-soft: #9A9A9A; /* только декоративные линии / крупные цифры, не для мелкого текста */
  --color-line: #E4E4E4;
  --color-line-strong: #CFCFCF;
  --color-accent: #E91E63;       /* графика: выноски, фокус, крупные цифры */
  --color-accent-dark: #C2185B;  /* текст и фон кнопок: контраст 5.87:1 на белом */
  --color-accent-tint: #FDEBF1;

  /* типографика */
  --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 30px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --text-5xl: 60px;

  /* отступы (шкала 4/8/12/16/24/32/48/64/96/128) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --radius: 2px;
  --container-max: 1280px;
  --header-height: 72px;

  --shadow-tiny: 0 1px 2px rgba(42, 42, 42, 0.06);
  --shadow-small: 0 1px 3px rgba(42, 42, 42, 0.08), 0 1px 2px rgba(42, 42, 42, 0.06);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
input, textarea { font: inherit; color: inherit; }

html {
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-graphite);
  background: var(--color-bg);
  font-weight: 400;
}

h1, h2, h3 { font-weight: 600; line-height: 1.2; }

/* фокус: видимый везде, малиновый (не текст, значит контраст 3:1 достаточен и пройден) */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 1px;
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: var(--space-4);
  z-index: 100;
  background: var(--color-graphite);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--space-4); }

/* ---------- 3. Layout utils ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.container-narrow { max-width: 760px; }

.section { padding-block: var(--space-8); }
.section-alt { background: var(--color-bg-alt); }

.section-title {
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  max-width: 46ch;
}
.section-lead {
  margin-top: var(--space-4);
  max-width: 65ch;
  color: var(--color-grey);
  font-size: var(--text-md);
}

@media (min-width: 768px) {
  .section { padding-block: var(--space-9); }
  .section-title { font-size: var(--text-3xl); }
}

/* ---------- 4. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn-primary {
  background: var(--color-accent-dark);
  color: #fff;
  box-shadow: var(--shadow-small);
}
.btn-primary:hover { background: #A81450; }
.btn-primary:active { transform: translateY(1px) scale(0.99); }

.btn-secondary {
  background: transparent;
  color: var(--color-graphite);
  border-color: var(--color-line-strong);
}
.btn-secondary:hover { background: var(--color-bg-alt); border-color: var(--color-graphite); }
.btn-secondary:active { transform: translateY(1px) scale(0.99); }

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn-block { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}

/* ---------- 5. Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.logo { flex-shrink: 0; line-height: 0; }
.logo img { height: 34px; width: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.main-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-graphite);
  position: relative;
  padding-block: var(--space-2);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

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

.proto-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: 100px;
}
.proto-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 2px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-grey);
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.proto-switch__btn:hover { color: var(--color-graphite); }
.proto-switch__btn.is-active {
  background: var(--color-accent-dark);
  color: #fff;
}
.header-phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-mono);
}
.header-phone .icon { width: 16px; height: 16px; color: var(--color-accent-dark); }
.header-cta { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-graphite);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  padding: var(--space-5) var(--space-4);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.main-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav ul {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

@media (prefers-reduced-motion: reduce) {
  .main-nav { transition: none; }
  .main-nav a::after { transition: none; }
}

@media (min-width: 1280px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    background: none;
    border: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .main-nav ul { flex-direction: row; }
  .header-phone { display: flex; }
  .header-cta { display: inline-flex; }
}

/* ---------- 6. Hero ---------- */
.hero { padding-block: var(--space-7) var(--space-8); }

.hero-inner {
  display: grid;
  gap: var(--space-7);
}

.hero-title {
  font-size: clamp(32px, 5.2vw, 52px);
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.hero-subtitle {
  margin-top: var(--space-5);
  font-size: var(--text-md);
  color: var(--color-grey);
  max-width: 46ch;
}
.hero-actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-visual { position: relative; }
.hero-visual-frame {
  position: relative;
  aspect-ratio: 300 / 392;
  max-width: 420px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  background-image:
    repeating-linear-gradient(to right, var(--color-line) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(to bottom, var(--color-line) 0 1px, transparent 1px 32px);
}
.hero-visual-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.photo-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0) 16%,
    rgba(255, 255, 255, 0) 84%,
    rgba(255, 255, 255, 0.9) 100%
  );
}
.hero-callouts {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-callouts .callout line {
  stroke: var(--color-accent);
  stroke-width: 1;
}
.hero-callouts .callout circle {
  fill: var(--color-accent);
}
.hero-callouts .callout {
  opacity: 0;
  transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-callouts .callout {
    animation: calloutIn 0.5s var(--ease) forwards;
  }
  .callout-1 { animation-delay: 0.15s; }
  .callout-2 { animation-delay: 0.3s; }
  .callout-3 { animation-delay: 0.45s; }
  .callout-4 { animation-delay: 0.6s; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-callouts .callout { opacity: 1; }
}

@keyframes calloutIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.callout-tag {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent-dark);
  border-radius: 50%;
  transform: translateY(-50%);
}
.callout-tag-right { right: 8px; }
.callout-tag-left { left: 8px; }

.hero-legend {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-grey);
  max-width: 420px;
  margin-inline: auto;
}
.legend-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: var(--space-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent-dark);
  border-radius: 50%;
}
.hero-caption {
  margin-top: var(--space-4);
  text-align: center;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--color-grey);
  max-width: 420px;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
  .hero-title { max-width: 15ch; }
}

/* ---------- 7. Проблема ---------- */
.problem-diagram {
  margin-top: var(--space-7);
  padding: var(--space-6);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
}
.problem-diagram svg {
  width: 100%;
  height: auto;
  max-width: 560px;
  display: block;
  margin-inline: auto;
}
.figure-outline {
  fill: none;
  stroke: var(--color-graphite);
  stroke-width: 1.5;
}
.dim-line { stroke-width: 1; fill: none; }
.dim-line-a { stroke: var(--color-line-strong); }
.dim-line-b { stroke: var(--color-grey-soft); }
.dim-line-c { stroke: var(--color-accent); }
.dim-tick { stroke: var(--color-line-strong); stroke-width: 1; }
.dim-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--color-grey);
}
.diagram-caption {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-grey);
  text-align: center;
  max-width: 56ch;
  margin-inline: auto;
}

.problem-columns {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-6);
}
.problem-col {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line);
}
.problem-col h3 {
  font-size: var(--text-md);
  margin-bottom: var(--space-3);
}
.problem-col p { color: var(--color-grey); }

@media (min-width: 768px) {
  .problem-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-7);
  }
  .problem-col {
    border-top: 0;
    border-left: 1px solid var(--color-line);
    padding-top: 0;
    padding-left: var(--space-6);
  }
  .problem-col:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- 8. Решение (диптих) ---------- */
.diptych {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
.diptych-connector {
  display: none;
  text-align: center;
  font-size: var(--text-2xl);
  color: var(--color-line-strong);
  font-weight: 300;
}
.diptych-panel { }
.diptych-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
}
.diptych-avatar .diptych-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    repeating-linear-gradient(to right, var(--color-line) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to bottom, var(--color-line) 0 1px, transparent 1px 24px);
}
.diptych-avatar svg { width: 55%; height: auto; }
.mesh-outline { fill: none; stroke: var(--color-graphite); stroke-width: 1.5; }
.mesh-grid line { stroke: var(--color-accent); stroke-width: 0.6; opacity: 0.55; }
.mesh-nodes circle { fill: var(--color-accent-dark); }

.diptych-etalon .diptych-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.diptych-tag {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-graphite);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-line-strong);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
}
.diptych-tag-photo { color: #fff; background: rgba(42, 42, 42, 0.55); border-color: transparent; }

.diptych-panel figcaption { margin-top: var(--space-4); }
.diptych-panel h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.diptych-panel p { color: var(--color-grey); }

@media (min-width: 768px) {
  .diptych {
    grid-template-columns: 1fr auto 1fr;
  }
  .diptych-connector { display: block; }
}

/* ---------- 9. Продукты ---------- */
.products-grid {
  margin-top: var(--space-7);
  display: grid;
  gap: var(--space-5);
}
.product-card {
  padding: var(--space-6);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
}
.product-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.product-card > p { color: var(--color-grey); }
.product-list {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
}
.product-list li {
  padding-left: var(--space-4);
  position: relative;
  font-size: var(--text-sm);
  color: var(--color-graphite);
}
.product-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 1px;
  background: var(--color-accent);
}
.product-format {
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-grey);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-line);
}

.product-card-photo {
  padding: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
}
.product-card-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(15%);
}
.product-card-tint {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(42,42,42,0.15) 0%, rgba(42,42,42,0.85) 100%);
}
.product-card-body { padding: var(--space-6); }
.product-card-body-light h3, .product-card-body-light > p:not(.product-format) { color: #fff; }
.product-format-light { color: rgba(255,255,255,0.75); border-top-color: rgba(255,255,255,0.25); }

@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card-wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .product-card-wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
  .product-card-photo { grid-row: span 2; }
}

/* ---------- 10. Как это работает ---------- */
.process {
  margin-top: var(--space-7);
  display: grid;
  gap: var(--space-6);
}
.process-step {
  position: relative;
  padding-top: var(--space-5);
  border-top: 2px solid var(--color-graphite);
}
.process-index {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent-dark);
  margin-bottom: var(--space-3);
}
.process-step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.process-step p { color: var(--color-grey); font-size: var(--text-sm); }

@media (min-width: 768px) {
  .process { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
}

/* ---------- 11. Кому ---------- */
.table-scroll {
  margin-top: var(--space-7);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.who-table { min-width: 640px; }
.who-table th, .who-table td {
  text-align: left;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}
.who-table thead th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-grey);
  font-weight: 600;
  border-bottom: 2px solid var(--color-graphite);
}
.who-table td { font-size: var(--text-sm); color: var(--color-grey); }
.who-table td strong { color: var(--color-graphite); font-weight: 600; }

@media (max-width: 767px) {
  .who-table { min-width: 0; }
  .who-table thead { display: none; }
  .who-table tr { display: block; padding-block: var(--space-4); border-bottom: 1px solid var(--color-line); }
  .who-table td { display: block; border: 0; padding: var(--space-1) 0; }
  .who-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-grey-soft);
    margin-bottom: 2px;
  }
}

/* ---------- 12. Почему IMINERA ---------- */
.stat-row {
  margin-top: var(--space-7);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-5);
}
.stat {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-line-strong);
}
.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-grey);
  max-width: 22ch;
}

.fact-list {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-4);
  max-width: 640px;
}
.fact-list li {
  padding-left: var(--space-5);
  position: relative;
  color: var(--color-graphite);
}
.fact-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 1px;
  background: var(--color-accent);
}

@media (min-width: 768px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .stat { padding-top: 0; padding-left: var(--space-5); border-top: 0; border-left: 1px solid var(--color-line-strong); }
  .stat:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- 13. FAQ ---------- */
.faq-list {
  margin-top: var(--space-7);
  border-top: 1px solid var(--color-line);
}
.faq-item {
  border-bottom: 1px solid var(--color-line);
}
.faq-item summary {
  cursor: pointer;
  padding-block: var(--space-5);
  font-size: var(--text-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-right: 2px solid var(--color-accent-dark);
  border-bottom: 2px solid var(--color-accent-dark);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item p {
  padding-bottom: var(--space-5);
  color: var(--color-grey);
  max-width: 65ch;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after { transition: none; }
}

/* ---------- 14. Форма ---------- */
.form-block {
  margin-top: var(--space-7);
  display: grid;
  gap: var(--space-7);
}
.form-intro p { color: var(--color-grey); margin-top: var(--space-4); max-width: 42ch; }
.form-intro-contacts { line-height: 1.9; }
.form-intro-contacts a { color: var(--color-accent-dark); font-weight: 500; }
.form-intro-contacts a:hover { text-decoration: underline; }

.request-form {
  display: grid;
  gap: var(--space-5);
}
.form-row { display: grid; gap: var(--space-2); }
.form-row-split {
  display: grid;
  gap: var(--space-5);
}
.form-row label {
  font-size: var(--text-sm);
  font-weight: 600;
}
.form-row input, .form-row textarea {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-graphite);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--color-grey-soft); }
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent-dark);
  box-shadow: var(--shadow-tiny);
}
.form-row textarea { resize: vertical; min-height: 100px; }

.form-status {
  padding: var(--space-4);
  border: 1px solid var(--color-accent-dark);
  background: var(--color-accent-tint);
  color: var(--color-accent-dark);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
}
.form-status[hidden] { display: none; }

@media (min-width: 640px) {
  .form-row-split { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .form-block { grid-template-columns: 0.8fr 1.2fr; }
}

/* ---------- 15. Футер ---------- */
.site-footer {
  border-top: 1px solid var(--color-line);
  background: var(--color-bg-alt);
  padding-top: var(--space-8);
}
.footer-inner {
  display: grid;
  gap: var(--space-6);
}
.footer-brand img { height: 32px; width: auto; margin-bottom: var(--space-4); }
.footer-brand p { color: var(--color-grey); font-size: var(--text-sm); max-width: 32ch; }
.footer-col h3 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-grey);
  margin-bottom: var(--space-4);
  font-weight: 600;
}
.footer-col ul { display: grid; gap: var(--space-3); }
.footer-col a { font-size: var(--text-sm); color: var(--color-graphite); }
.footer-col a:hover { color: var(--color-accent-dark); }

.footer-bottom {
  margin-top: var(--space-8);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-line);
}
.footer-bottom p { font-size: var(--text-xs); color: var(--color-grey-soft); }

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

/* ---------- 16. Reduced motion: точечные оверрайды без !important ---------- */
/* Позиционируются в конце файла: та же специфичность, но позже в каскаде —
   этого достаточно, чтобы переопределить исходное правило. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .main-nav a::after { transition: none; }
  .nav-toggle span { transition: none; }
  .form-row input, .form-row textarea { transition: none; }
  .skip-link { transition: none; }
}
