/* Сайт адвоката Марал Сайлаубай. Статика, сначала телефон.
   Токены и решения описаны в DESIGN.md. Цвета, шрифты и отступы только через переменные. */

/* ---------- шрифты (свои файлы, кириллица и казахские буквы) ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/playfair-display-cyr.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("assets/fonts/golos-text-cyr.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
/* запасные шрифты, подогнанные по ширине, чтобы текст не прыгал при загрузке */
@font-face {
  font-family: "Playfair fallback";
  src: local("Georgia"), local("Georgia Regular");
  size-adjust: 103%;
  ascent-override: 92%;
  descent-override: 22%;
}
@font-face {
  font-family: "Golos fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 105%;
  ascent-override: 94%;
  descent-override: 24%;
}

/* ---------- токены ---------- */
:root {
  /* цвет */
  --ink-0: #13110e;
  --ink-1: #1c1915;
  --paper: #f4efe6;
  --paper-2: #ebe4d7;
  --on-dark: #efe8dc;
  --on-dark-2: #b8ae9e;
  --on-light: #1f1b16;
  --on-light-2: #544b3f;
  --gold: #c69c2d;
  --gold-on-dark: #d6b252;
  --gold-on-light: #7a5a14;
  --field-line: #8a7f6e;
  --danger: #a3322a;
  /* кольцо фокуса: светлое золото на тёмном, тёмное золото на светлых секциях (контраст от 3 к 1) */
  --focus-ring: var(--gold);
  --ink-line: color-mix(in srgb, var(--on-dark) 14%, transparent);
  --paper-line: color-mix(in srgb, var(--ink-0) 12%, transparent);

  /* шрифты */
  --serif: "Playfair Display", "Playfair fallback", Georgia, serif;
  --sans: "Golos Text", "Golos fallback", system-ui, sans-serif;

  /* размеры текста: от 375 до 1440 px */
  --fs-h1: clamp(2.5rem, 1.796rem + 3.005vw, 4.5rem);
  --fs-h2: clamp(1.875rem, 1.567rem + 1.315vw, 2.75rem);
  --fs-h3: clamp(1.375rem, 1.287rem + 0.376vw, 1.625rem);
  --fs-lead: clamp(1.125rem, 1.081rem + 0.188vw, 1.25rem);
  --fs-body: clamp(1.0625rem, 1.04rem + 0.094vw, 1.125rem);
  --fs-small: clamp(0.875rem, 0.853rem + 0.094vw, 0.9375rem);

  /* шкала отступов 4/8 */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --gutter: clamp(1.5rem, 0.62rem + 3.756vw, 4rem);
  --section-y: clamp(4rem, 2.591rem + 6.01vw, 8rem);
  --hero-top: clamp(3rem, 1.944rem + 4.507vw, 6rem);
  --header-h: 4rem;
  --maxw: 75rem;

  --radius: 4px;
  --shadow: 0 1px 2px color-mix(in srgb, var(--ink-0) 30%, transparent),
            0 8px 16px color-mix(in srgb, var(--ink-0) 30%, transparent),
            0 24px 48px color-mix(in srgb, var(--ink-0) 40%, transparent);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink-0);
  scrollbar-color: var(--gold) var(--ink-0);
  -webkit-text-size-adjust: 100%;
}
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--on-light);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex: none; }
address { font-style: normal; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

::selection { background: var(--gold); color: var(--ink-0); }
input, textarea { caret-color: var(--gold-on-light); accent-color: var(--gold); }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius);
}

[id] { scroll-margin-top: calc(var(--header-h) + var(--s-4)); }

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

.skip-link {
  position: absolute; left: var(--s-2); top: var(--s-2); z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--gold); color: var(--ink-0);
  font-weight: 600; text-decoration: none; border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3.25rem;
  padding: var(--s-3) var(--s-5);
  font: 600 var(--fs-body)/1.2 var(--sans);
  text-align: center; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), transform 120ms var(--ease);
}
.btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }

/* залитая золотая: главная на тёмном */
.btn-gold { background: var(--gold); color: var(--ink-0); }
.btn-gold:hover { background: var(--gold-on-dark); }
/* контурная на тёмном */
.btn-line-dark { background: transparent; color: var(--on-dark); border-color: color-mix(in srgb, var(--on-dark) 55%, transparent); }
.btn-line-dark:hover { border-color: var(--gold-on-dark); color: var(--gold-on-dark); }
/* залитая тёмная: главная на светлом */
.btn-ink { background: var(--ink-0); color: var(--on-dark); }
.btn-ink:hover { background: var(--ink-1); color: var(--gold-on-dark); }

.text-link {
  display: inline-flex; align-items: center; min-height: 1.5rem;
  color: var(--gold-on-light); font-weight: 600;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold-on-light) 45%, transparent);
  transition: text-decoration-color 220ms var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink-0);
  color: var(--on-dark);
  border-bottom: 1px solid var(--ink-line);
}
.header-inner {
  position: relative;
  display: flex; align-items: center; gap: var(--s-2);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--s-2);
  margin-right: auto;
  padding-block: var(--s-2);
  text-decoration: none;
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.1875rem; line-height: 1.2; color: var(--on-dark); }
.brand-sep { display: none; color: var(--gold); }
.brand-role { width: 100%; font-size: var(--fs-small); line-height: 1.3; color: var(--on-dark-2); }
@media (min-width: 30em) {
  .brand-sep { display: inline; }
  .brand-role { width: auto; }
}

.icon-btn {
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  padding: 0;
  color: var(--on-dark); background: transparent;
  border: 1px solid var(--ink-line); border-radius: var(--radius);
  cursor: pointer;
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}
.icon-btn:hover { color: var(--gold-on-dark); border-color: var(--gold); }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn { display: none; }
.menu-btn .menu-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-close { display: inline; }

.header-phone { display: none; }

/* меню на телефоне */
.nav { width: 100%; }
.nav-list { list-style: none; }
.nav-list a {
  display: flex; align-items: center; min-height: 3rem;
  font-size: var(--fs-lead); text-decoration: none; color: var(--on-dark);
  border-bottom: 1px solid var(--ink-line);
}
.nav-list a:hover { color: var(--gold-on-dark); }
.nav-actions { display: grid; gap: var(--s-3); padding-top: var(--s-5); }

/* без JS меню просто стоит под строкой с именем */
.no-js .header-inner { flex-wrap: wrap; }
.no-js .nav { order: 5; padding-bottom: var(--s-4); }

/* с JS меню раскрывается кнопкой */
.js .menu-btn { display: inline-grid; }
.js .nav {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: var(--s-2) var(--gutter) var(--s-5);
  background: var(--ink-0);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(calc(-1 * var(--s-2)));
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s linear 220ms;
}
.js .nav.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s;
}

@media (min-width: 30em) {
  .icon-btn.header-call { display: none; }
  .header-phone {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: var(--s-2);
    font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; color: var(--on-dark);
    white-space: nowrap;
  }
  .header-phone:hover { color: var(--gold-on-dark); }
}

@media (min-width: 62em) {
  :root { --header-h: 4.5rem; }
  .js .menu-btn { display: none; }
  .no-js .header-inner { flex-wrap: nowrap; }
  .nav, .js .nav, .no-js .nav {
    position: static; width: auto; order: 0;
    padding: 0; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav-list { display: flex; gap: var(--s-5); }
  .nav-list a { min-height: 2.75rem; font-size: var(--fs-small); border: 0; color: var(--on-dark-2); }
  .nav-list a:hover { color: var(--gold-on-dark); }
  .nav-actions { display: none; }
  .header-phone { margin-left: var(--s-5); padding-left: var(--s-5); border-left: 1px solid var(--ink-line); }
}

/* ---------- секции ---------- */
.section { padding-block: var(--section-y); }
.section-light { --focus-ring: var(--gold-on-light); background: var(--paper); color: var(--on-light); }
.section-dark { background: var(--ink-1); color: var(--on-dark); }
.section h2 { font-size: var(--fs-h2); }
.lead { font-size: var(--fs-lead); line-height: 1.5; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--s-3) var(--s-6);
  margin-bottom: var(--s-7);
}

/* ---------- первый экран ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: var(--hero-top) 0 var(--s-8);
  background:
    radial-gradient(70% 60% at 85% 30%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 70%),
    var(--ink-0);
  color: var(--on-dark);
}
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }

.hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  max-width: 12ch;
}
.hero-lead {
  max-width: 34rem;
  margin-top: var(--s-5);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--on-dark-2);
}
.hero-phone {
  display: inline-block;
  margin-top: var(--s-5);
  font-family: var(--serif); font-weight: 600;
  font-size: var(--fs-h3);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--gold-on-dark);
  text-decoration: none;
  white-space: nowrap;
}
.hero-phone:hover { text-decoration: underline; }
.hero-actions { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.hero-meta {
  max-width: 34rem;
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--ink-line);
  font-size: var(--fs-small);
  color: var(--on-dark-2);
}

.hero-portrait { position: relative; max-width: 27.5rem; width: 100%; justify-self: center; }
.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
/* портрет растворяется в фоне снизу, чтобы цитата легла на тёмное */
.hero-portrait picture { position: relative; display: block; }
.hero-portrait picture::after {
  /* inset -1px: иначе по нижней кромке просвечивает строка пикселей белой блузки */
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius);
  background: linear-gradient(to top, var(--ink-0) 4%, color-mix(in srgb, var(--ink-0) 55%, transparent) 26%, transparent 52%);
  pointer-events: none;
}
.hero-quote {
  /* на телефоне цитата под портретом: поверх фото контраст падает до 3,5 на белой блузке */
  margin-top: var(--s-5);
  padding-left: var(--s-4);
  border-left: 2px solid var(--gold);
}
.hero-quote p {
  font-family: var(--serif); font-weight: 600; font-style: normal;
  font-size: var(--fs-h3); line-height: 1.2;
  color: var(--on-dark);
}
.hero-quote footer { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--on-dark-2); }
.hero-quote a, .review figcaption a { display: inline-flex; align-items: center; min-height: 1.5rem; }
.hero-quote a { color: var(--gold-on-dark); }

@media (min-width: 37.5em) {
  .hero-actions { grid-template-columns: repeat(2, max-content); }
}

@media (min-width: 56.25em) {
  /* портрет стоит на нижней кромке первого экрана и растворяется в ней */
  .hero { padding-bottom: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-8); align-items: end; }
  .hero-text { align-self: center; padding-bottom: var(--s-9); }
  .hero-portrait { justify-self: end; max-width: 31rem; }
  .hero-portrait img { border-radius: var(--radius) var(--radius) 0 0; }
  /* слева тоже растворяем, как свет из кабинета в темноту */
  .hero-portrait picture::before {
    content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius);
    background: linear-gradient(to right, color-mix(in srgb, var(--ink-0) 70%, transparent), transparent 35%);
    pointer-events: none;
  }
  .hero-quote { position: absolute; margin: 0; left: calc(-1 * var(--s-8)); right: var(--s-6); bottom: var(--s-5); z-index: 2; }
}

/* одно появление первого экрана, на чистом CSS */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.hero-text > *, .hero-portrait { animation: rise 520ms var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: 40ms; }
.hero-text > :nth-child(3) { animation-delay: 80ms; }
.hero-text > :nth-child(4) { animation-delay: 120ms; }
.hero-text > :nth-child(5) { animation-delay: 160ms; }
.hero-portrait { animation-delay: 80ms; }

/* ---------- об адвокате ---------- */
.about-grid { display: grid; gap: var(--s-7); align-items: start; }
/* на телефоне фото после текста, чтобы не стояло сразу под портретом первого экрана */
.about-photo { order: 2; }
.about-photo img { width: 100%; border-radius: var(--radius); }
.about-text h2 { margin-bottom: var(--s-5); }
.about-text p + p { margin-top: var(--s-4); }
.about-text .lead { color: var(--on-light); margin-bottom: var(--s-5); }
.about-text p:not(.lead) { color: var(--on-light-2); max-width: 38rem; }

.facts {
  display: grid; gap: 0 var(--s-6);
  margin-top: var(--s-7);
  border-top: 1px solid var(--paper-line);
}
.facts > div { padding-block: var(--s-4); border-bottom: 1px solid var(--paper-line); }
.facts dt { font-size: var(--fs-small); color: var(--on-light-2); }
.facts dd { margin-top: var(--s-1); font-weight: 600; }

/* заметная заглушка: нет данных от клиентки */
.stub {
  display: inline-block;
  padding: 0 var(--s-2);
  font-weight: 400; font-style: italic;
  color: var(--gold-on-light);
  border: 1px dashed var(--gold-on-light);
  border-radius: var(--radius);
}

@media (min-width: 40em) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 56.25em) {
  .about-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-9); }
  .about-photo { order: 0; position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}

/* ---------- направления ---------- */
.practice h2 { margin-bottom: var(--s-7); max-width: 20ch; }
.practice-cols { display: grid; gap: var(--s-7); }
.practice-col {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--gold);
}
.practice-col h3 { font-size: var(--fs-h3); color: var(--on-dark); }
.practice-col > p { color: var(--on-dark-2); }
/* все дела одним списком под колонками. На широком экране заголовок занимает первую
   ячейку сетки, пять дел встают в остальные: две полные строки по три, без остатка */
.cases {
  display: grid; gap: 0 var(--s-6);
  margin-top: var(--s-8);
}
.cases-title {
  padding-top: var(--s-4);
  border-top: 1px solid var(--gold);
  font-family: var(--sans); font-size: var(--fs-small); font-weight: 600;
  letter-spacing: 0; line-height: 1.6;
  color: var(--gold-on-dark);
}
.cases ul { list-style: none; display: grid; gap: 0 var(--s-6); }
.cases li {
  padding-block: var(--s-4) var(--s-5);
  border-top: 1px solid var(--ink-line);
  font-size: var(--fs-small);
  color: var(--on-dark);
}
.cases-title + ul > li:first-child { border-top: 0; padding-top: var(--s-2); }

@media (min-width: 40em) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases-title { grid-area: 1 / 1; }
  .cases ul { grid-area: 1 / 1 / span 3 / -1; grid-template-columns: subgrid; }
  .cases-title + ul > li:first-child { grid-column-start: 2; border-top: 1px solid var(--ink-line); padding-top: var(--s-4); }
}

@media (min-width: 56.25em) {
  .practice-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
  .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s-7); }
  .cases ul { gap: 0 var(--s-7); }
}

/* ---------- отзывы ---------- */
.review-cols { display: grid; gap: var(--s-7); }
.review {
  display: flex; flex-direction: column; gap: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--paper-line);
}
.review blockquote { display: grid; gap: var(--s-4); }
.review-head {
  font-family: var(--serif); font-weight: 600;
  font-size: var(--fs-h3); line-height: 1.25;
  color: var(--on-light);
}
.review blockquote p:not(.review-head) { color: var(--on-light-2); }
.review figcaption {
  margin-top: auto;
  display: flex; flex-wrap: wrap; gap: 0 var(--s-3);
  font-size: var(--fs-small); color: var(--on-light-2);
}
.review-name { width: 100%; font-weight: 600; color: var(--on-light); }
.review figcaption a { color: var(--gold-on-light); }

@media (min-width: 56.25em) {
  .review-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
}

/* ---------- как проходит работа ---------- */
.process h2 { margin-bottom: var(--s-7); }
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--s-6); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: var(--s-7) minmax(0, 1fr); gap: 0 var(--s-4);
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--serif); font-weight: 600; font-size: var(--fs-h2); line-height: 1;
  font-variant-numeric: lining-nums;
  color: var(--gold-on-dark);
}
.steps h3 { font-size: var(--fs-h3); color: var(--on-dark); margin-bottom: var(--s-2); }
.steps p { color: var(--on-dark-2); }

@media (min-width: 40em) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); }
}
@media (min-width: 62em) {
  /* subgrid: номера, заголовки и тексты четырёх шагов стоят на одних линиях */
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 0 var(--s-6); }
  .steps li {
    grid-row: span 3; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr);
    padding-top: var(--s-5); border-top: 1px solid var(--ink-line);
  }
  .steps li::before { grid-row: auto; margin-bottom: var(--s-5); }
}

/* ---------- контакты и форма ---------- */
.contacts-grid { display: grid; gap: var(--s-7); align-items: start; }
.contacts-info h2 { margin-bottom: var(--s-4); }
.contacts-info .lead { color: var(--on-light-2); max-width: 32rem; }
.contact-list { margin-top: var(--s-6); border-top: 1px solid var(--paper-line); }
.contact-list > div { padding-block: var(--s-4); border-bottom: 1px solid var(--paper-line); }
.contact-list dt { font-size: var(--fs-small); color: var(--on-light-2); }
.contact-list dd { margin-top: var(--s-1); display: grid; justify-items: start; gap: var(--s-1); }
.contact-phone {
  font-family: var(--serif); font-weight: 600; font-size: var(--fs-h3);
  font-variant-numeric: lining-nums tabular-nums;
  text-decoration: none; color: var(--on-light);
}
.contact-phone:hover { color: var(--gold-on-light); }

.lead-form {
  padding: var(--s-6) var(--s-5);
  background: var(--paper-2);
  border-radius: var(--radius);
}
.form-title { font-size: var(--fs-h3); margin-bottom: var(--s-5); }
.field { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.field label { font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: var(--s-3) var(--s-4);
  font: inherit; color: var(--on-light);
  background: var(--paper);
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  transition: border-color 220ms var(--ease);
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:hover, .field textarea:hover { border-color: var(--on-light-2); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.hint { font-size: var(--fs-small); color: var(--on-light-2); }
.error { font-size: var(--fs-small); color: var(--danger); font-weight: 600; }
.error:empty { display: none; }
.form-note { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--on-light-2); }
.form-status { margin-top: var(--s-3); font-size: var(--fs-small); font-weight: 600; color: var(--on-light); }
.form-status:empty { display: none; }
.form-status a { color: var(--gold-on-light); }

@media (min-width: 56.25em) {
  .contacts-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-9); }
  .lead-form { padding: var(--s-7); }
}

/* ---------- подвал ---------- */
.site-footer {
  padding-block: var(--s-8) calc(var(--s-7) + env(safe-area-inset-bottom));
  background: var(--ink-0);
  color: var(--on-dark-2);
  font-size: var(--fs-small);
}
.footer-inner { display: grid; gap: var(--s-5); }
.footer-name { font-family: var(--serif); font-weight: 600; font-size: var(--fs-h3); color: var(--on-dark); margin-bottom: var(--s-1); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  color: var(--on-dark); text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.footer-links a:hover { color: var(--gold-on-dark); }
.footer-copy { padding-top: var(--s-5); border-top: 1px solid var(--ink-line); }

@media (min-width: 56.25em) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .footer-copy { grid-column: 1 / -1; }
}

/* ---------- меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-text > *, .hero-portrait { animation: none; }
  .btn, .icon-btn, .text-link, .js .nav, .js .nav.is-open, .field input, .field textarea { transition: none; }
  .btn:active { transform: none; }
}
