/* ==========================================================================
   Гамбарян & Партнёры — короткая версия лендинга
   Реализация по docs/SPEC-LANDING-V01.md. Все числа — из spec, не на глаз.
   Токены повторяют дизайн-систему (colors_and_type.css); её element-defaults
   (курсивный serif h1/h2, uppercase h3) намеренно не подключаются — прототип
   их перебивал инлайн-стилями, здесь они просто не создаются.
   ВАЖНО: глобального box-sizing:border-box нет — прототип работал в
   content-box, и от этого зависят пороги переноса flex-колонок.
   ========================================================================== */

:root {
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", Helvetica, Arial, sans-serif;
  --font-narrow: "Archivo Narrow", "Archivo", sans-serif;

  --bg: #101214;
  --bg-hero: #0a0b0d;
  --bg-card-dark: #151b22;
  --bg-cream: #f6f1e8;
  --bg-card: #fff;
  --bg-footer: #0b0d0e;

  --gold: #f0ae1f;
  --gold-light: #f5c451;
  --wine: #8a1f1f;
  --wine-hover: #a02626;

  --ink: #14191f;
  --ink-2: #4b5158;
  --ink-3: #6b7280;
  --ink-4: #9ca3af;
  --input-line: #d1d5db;

  --container: 1200px;
  --container-hero: 1360px;
  --pad-x: 24px;
  --section-pad: clamp(56px, 8vw, 96px);
}

/* --- База: повторяет унаследованные значения прототипа ------------------- */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7; /* наследуется там, где макет не задавал line-height */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}
a:hover { opacity: 0.85; }

a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

input::placeholder, textarea::placeholder { color: var(--ink-4); }

img { max-width: 100%; }

/* <picture> нужен только ради WebP + фолбэка, но он полноценный элемент в
   потоке и становится flex-элементом вместо самого <img>. В карточке
   прецедента это сдвигало текстовую колонку на 201px (space-between делил
   свободное место на три элемента вместо двух).
   display:contents здесь не помогает — Chromium его на <picture> игнорирует
   (проверено: пустой <picture> остаётся flex-элементом). Поэтому там, где
   картинка позиционируется абсолютно, из потока выводится сама обёртка. */
picture { display: block; }

.precedent-card > picture {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.svc-media__person > picture { flex: none; }

/* Неделимые токены. Применяется только к строкам, которые заведомо умещаются
   в самый узкий контейнер (360px): номер телефона. Для длинных строк nowrap
   запрещён — он источник horizontal overflow. */
.nowrap-token { white-space: nowrap; }

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

/* --- Общие примитивы ----------------------------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.section-pad { padding-block: var(--section-pad); }

.eyebrow {
  font-family: var(--font-narrow);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow--wine { color: var(--wine); }

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.2;
  color: #fff;
}
.section-title--ink { color: var(--ink); }
.section-title--narrow { max-width: 640px; }

.rule { width: 56px; height: 2px; background: var(--gold); margin-bottom: 40px; }
.rule--tight { margin-bottom: 22px; }
.rule--flush { margin-bottom: 0; }
.notch { width: 28px; height: 2px; background: var(--gold); }
.notch--wide { width: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  cursor: pointer;
  border: 0;
}
.btn--wine {
  background: var(--wine);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 26px;
  border-radius: 8px;
}
.btn--wine:hover { background: var(--wine-hover); opacity: 1; }
.btn--outline {
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 24px;
  border-radius: 8px;
}
.btn--outline:hover { border-color: rgba(240, 174, 31, 0.7); opacity: 1; }

/* --- 1. Шапка ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header__bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo { display: flex; flex-direction: column; gap: 3px; flex: none; }
.logo__word {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
}
.logo__amp { color: var(--gold); }
.logo__rule { display: flex; align-items: center; gap: 10px; }
.logo__line { height: 2px; flex: 1; background: var(--gold); opacity: 0.85; }
.logo__sub {
  font-family: var(--font-narrow);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.nav-cta {
  flex: none;
  background: var(--wine);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 8px;
}
.nav-cta:hover { background: var(--wine-hover); opacity: 1; }

.nav-burger {
  display: none;
  flex: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(240, 174, 31, 0.55);
  border-radius: 8px;
  color: var(--gold);
  cursor: pointer;
}

.nav-drawer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 12px var(--pad-x) 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-drawer[hidden] { display: none; }
.nav-drawer a {
  padding: 13px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-drawer .nav-drawer__cta {
  margin-top: 14px;
  text-align: center;
  background: var(--wine);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 20px;
  border-radius: 8px;
  border-bottom: 0;
}
.nav-drawer .nav-drawer__cta:hover { background: var(--wine-hover); opacity: 1; }

/* --- 2. Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 84vh, 880px);
  display: flex;
  align-items: flex-start;
  background: var(--bg-hero);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-slide {
  opacity: 0;
  transition: opacity 600ms ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% top;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(10, 11, 13, 0.93) 0%,
    rgba(10, 11, 13, 0.72) 34%,
    rgba(10, 11, 13, 0.25) 58%,
    transparent 78%
  );
}

.hero__body {
  position: relative;
  z-index: 2;
  max-width: var(--container-hero);
  width: 100%;
  margin: 0 auto;
  padding: clamp(72px, 8vw, 96px) var(--pad-x) 56px;
}

.hero-inner {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero-row .eyebrow { margin-bottom: 0; }

.hero__title {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.hero__phone {
  margin: 0 0 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}
.hero__phone a { color: var(--gold); font-weight: 600; }

.hero__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-width: 580px;
}

/* --- 3. Факты ------------------------------------------------------------ */

.facts { background: var(--bg-cream); color: var(--ink); }

/* min(…,100%) в minmax обязателен: без него минимум колонки (300px/380px/180px)
   становится жёстким полом и на 360–414px карточка выпирает за экран.
   Во всех диапазонах, где макет работал, поведение не меняется. */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  align-items: stretch;
}

.fact-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(20, 25, 31, 0.07);
  border-radius: 12px;
  padding: 34px 32px 30px;
  display: flex;
  flex-direction: column;
}
.fact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.fact-card__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.fact-card__num {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(44px, 4.6vw, 60px);
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.fact-card__unit {
  font-family: var(--font-narrow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--wine);
  text-transform: uppercase;
}
.fact-card__sub {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.fact-card .notch { margin-bottom: 14px; }
.fact-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-3);
  text-wrap: pretty;
}

.facts-bar {
  margin-top: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(20, 25, 31, 0.07);
  border-radius: 12px;
  padding: 22px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 40px;
}
.facts-bar__item {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 14px;
  color: var(--ink);
}
.facts-bar__item svg { flex: none; }
.facts-bar strong { font-weight: 600; }

/* --- 4. Услуги ----------------------------------------------------------- */

.services { background: var(--bg); }

.services__head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 34px;
}

.services__arrows { display: flex; gap: 12px; }

.svc-arrow {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-arrow:hover { border-color: rgba(240, 174, 31, 0.7); }

.svc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.svc-tab {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
}
.svc-tab.is-active {
  font-weight: 600;
  color: var(--gold);
  background: rgba(240, 174, 31, 0.1);
  border-color: rgba(240, 174, 31, 0.55);
}

.svc-card {
  position: relative;
  background: var(--bg-card-dark);
  border: 1px solid rgba(240, 174, 31, 0.14);
  border-radius: 16px;
  padding: clamp(26px, 4vw, 46px);
}
.svc-card[hidden] { display: none; }

.svc-card__inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
}

.svc-card__main { flex: 1 1 380px; min-width: 0; }

.svc-card__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.svc-card__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(240, 174, 31, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-eyebrow {
  font-family: var(--font-narrow);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}

.svc-title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.25;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
}

.svc-lead {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  max-width: 52ch;
  text-wrap: pretty;
}

.svc-card__cta {
  display: inline-block;
  background: var(--wine);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  padding: 15px 28px;
  border-radius: 10px;
}
.svc-card__cta:hover { background: var(--wine-hover); opacity: 1; }

.svc-media {
  flex: 0 1 300px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-self: stretch;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: clamp(20px, 3vw, 36px);
}
.svc-media__label {
  font-family: var(--font-narrow);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}
.svc-media__person { display: flex; gap: 14px; align-items: center; }
.svc-media__avatar {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  border: 1px solid rgba(240, 174, 31, 0.35);
}
.svc-media__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  line-height: 1.2;
}
.svc-media__license {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}
.svc-media p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.svc-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 22px;
}
.svc-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.svc-dot__bar {
  display: block;
  width: 6px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}
.svc-dot[aria-current="true"] .svc-dot__bar { width: 26px; background: var(--gold); }

/* --- 5. Прецедент -------------------------------------------------------- */

.precedent { background: var(--bg); }
.precedent__container { padding-block: 0 clamp(48px, 7vw, 80px); }

.precedent-card {
  margin-top: clamp(120px, 13vw, 192px);
  background: linear-gradient(120deg, #1a1c20 0%, #241a0c 100%);
  border: 1px solid rgba(240, 174, 31, 0.18);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 40px);
  position: relative;
  min-height: clamp(280px, 26vw, 360px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}

.precedent-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 100%;
  background: linear-gradient(var(--gold), var(--gold-light), var(--gold));
  border-radius: 20px 0 0 20px;
}

.precedent-photo {
  position: absolute;
  left: 60%;
  bottom: 0;
  transform: translateX(-50%);
  height: clamp(360px, 40vw, 520px);
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  z-index: 1;
  /* Текст и кнопки лежат выше (z-index 2) и перекрывают часть кадра — так в
     макете. Замеренный контраст в зоне перекрытия: 16,97:1 у заголовка,
     8,00:1 у абзаца, 16,99:1 у контурной кнопки. Затемнение не требуется. */
}

.precedent-card__text {
  position: relative;
  z-index: 2;
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 432px;
}
.precedent-card__eyebrow {
  font-family: var(--font-narrow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.precedent-card__title {
  margin: 12px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
}
.precedent-card__text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
  max-width: 42ch;
}

.precedent-card__actions {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  min-width: 240px;
}

.btn--gold-lg {
  height: 52px;
  padding: 0 28px;
  background: var(--gold);
  color: #101214;
  font-weight: 700;
  font-size: 16px;
  border-radius: 12px;
}
.btn--gold-lg:hover { background: var(--gold-light); opacity: 1; }

.btn--ghost-lg {
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
}
.btn--ghost-lg:hover { border-color: rgba(240, 174, 31, 0.7); opacity: 1; }

/* --- 6. Адвокаты --------------------------------------------------------- */

.attorneys { background: var(--bg-cream); color: var(--ink); }

.attorneys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 28px;
}

.attorney-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 14px 14px 24px;
  display: flex;
  flex-direction: column;
}

.attorney-photo {
  display: block;
  width: 100%;
  height: clamp(320px, 34vw, 440px);
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  margin-bottom: 24px;
}
.attorney-photo--yulia { object-position: center 16%; }

.attorney-card__body {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.attorney-card__name {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 23px;
  line-height: 1.2;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.attorney-card__role {
  font-family: var(--font-narrow);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--wine);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.attorney-card .notch--wide { margin-bottom: 18px; }

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  flex: 1;
}
.checklist li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.checklist svg { flex: none; margin-top: 4px; }

.btn--gold-block {
  display: block;
  text-align: center;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  padding: 13px 20px;
  border-radius: 6px;
}
.btn--gold-block:hover { background: var(--gold-light); opacity: 1; }

.attorneys__note {
  margin: 32px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 68ch;
  text-wrap: pretty;
}

/* --- 7. Контакт ---------------------------------------------------------- */

.contact { background: var(--bg); }

.contact__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 60px);
}

.contact__info { flex: 1 1 380px; min-width: 0; }
.contact__form-col { flex: 1 1 440px; min-width: 0; }

.contact__lead {
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  max-width: 480px;
}

.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-list__row { display: flex; gap: 14px; align-items: center; }
.contact-list__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(240, 174, 31, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-list__label {
  display: block;
  font-family: var(--font-narrow);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.contact-list__value { font-size: 15px; font-weight: 600; color: #fff; }

.lead-form {
  background: var(--bg-card);
  border-radius: 14px;
  padding: clamp(26px, 4vw, 38px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}
.lead-form[hidden], .form-success[hidden] { display: none; }

.lead-form__title {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.lead-form__note {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--ink-3);
  text-wrap: pretty;
}

.lead-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.field { display: block; }
.field--last { margin-bottom: 22px; }
.field__label {
  display: block;
  font-family: var(--font-narrow);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.lead-form input,
.lead-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--input-line);
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 16px; /* < 16px вызывает zoom на iOS */
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  outline: none;
}
.lead-form select { cursor: pointer; }
.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(240, 174, 31, 0.25);
}

.lead-form__submit {
  width: 100%;
  border: none;
  background: var(--wine);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-body);
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
}
.lead-form__submit:hover { background: var(--wine-hover); }

.lead-form__legal {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-4);
  text-align: center;
}

.form-success {
  background: var(--bg-card);
  border-radius: 14px;
  padding: clamp(36px, 5vw, 56px) 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.form-success__icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(240, 174, 31, 0.14);
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.form-success__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 10px;
}
.form-success p {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.form-success__again {
  border: 1px solid var(--input-line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  font-family: var(--font-body);
  padding: 11px 22px;
  border-radius: 8px;
  cursor: pointer;
}
.form-success__again:hover { border-color: var(--gold); }

/* --- 8. Футер ------------------------------------------------------------ */

.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px var(--pad-x) 28px;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}
.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
.site-footer__label {
  display: block;
  font-family: var(--font-narrow);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.site-footer__cols a { color: rgba(255, 255, 255, 0.85); }
.site-footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 20px;
}
.site-footer__legal {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Breakpoint-контракт — границы из spec, ни одна не «примерно»
   ========================================================================== */

/* Навигация: ссылки и CTA уходят в бургер */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
}

/* Hero: текст не должен налезать на лица */
@media (max-width: 1200px) and (min-width: 861px) {
  .hero-scrim {
    background: linear-gradient(
      90deg,
      rgba(10, 11, 13, 0.96) 0%,
      rgba(10, 11, 13, 0.9) 46%,
      rgba(10, 11, 13, 0.6) 72%,
      rgba(10, 11, 13, 0.2) 100%
    );
  }
  .hero-inner { max-width: 440px; }
}

/* Портрет в баннере прецедента показывается только там, где для него есть место */
@media (max-width: 1200px) {
  .precedent-photo { display: none; }
}

/* Мобильная компоновка */
@media (max-width: 860px) {
  /* Верх темнее: H1 стоит в верхней трети, лицо на портрете — там же.
     Плотный верхний градиент отделяет текст от лица (решение владельца:
     «чтобы не попадало на голову»). */
  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(10, 11, 13, 0.96) 0%,
      rgba(10, 11, 13, 0.88) 34%,
      rgba(10, 11, 13, 0.45) 58%,
      rgba(10, 11, 13, 0.92) 100%
    );
  }
  .hero__body { padding-top: 48px; }
  .hero-inner { text-align: center; align-items: center; }
  .hero-inner .hero-row { justify-content: center; }
  .hero-inner p { margin-left: auto; margin-right: auto; }
  .facts-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, button { transition: none; }
  .hero-slide { transition: none; }
}
