/* ==========================================================
   Адвокат Кузнецова Ю. Н. — макет стилистики (этап 1, v2)
   ========================================================== */

/* ---------- Шрифт: Alice (Cyreal, OFL), локально, один на весь сайт ----------
   У Alice одно начертание — обычное. Жирного нет, поэтому акценты делаем размером и цветом,
   а не font-weight; браузер не дорисовывает «поддельный» жирный (font-synthesis). */
@font-face {
  font-family: "Alice";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alice-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Alice";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alice-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --black: #0E0E0F;
  --graphite: #1C1C1F;
  --gray-700: #4A4A50;   /* вторичный текст на светлом — 8.3:1 на --paper */
  --gray-300: #C9C9CE;
  --paper: #F5F4F2;
  --stone: #ABABAB;       /* фон «Направлений» — серый «как кожа на фото» (Александр 19.11), белые карточки на нём */
  --white: #FFFFFF;
  --gold: #B8975A;
  --dark: #1F1F22;        /* шапка, первый экран, контакты — чуть светлее чёрного (просьба 10.11) */
  --dark-raised: #2A2A2E; /* форма и карта на тёмном */
  --dark-input: #17171A;  /* поля формы */       /* только логотип, «27 лет», фокус и hover-линии */

  --muted-dark: #A3A3A9; /* вторичный текст на тёмном — 6.5:1 на --dark, 5.6:1 на --dark-raised */
  --line-dark: rgba(255, 255, 255, .16);
  --line-light: #DCDBD8;

  --font-head: "Alice", Georgia, "Times New Roman", serif;
  --font-text: "Alice", Georgia, "Times New Roman", serif;

  --radius: 2px;
  --header-h: 64px;
  --gutter: 20px;
}
@media (min-width: 768px) {
  :root { --header-h: 76px; --gutter: 40px; }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--black);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
/* Переносы по правилам: в HTML неразрывные пробелы (скилл ru-typograf), браузер избегает одного слова в строке */
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Заголовки — тот же Alice, обычными буквами (правка Александра 18.11: шрифт мягче) */
.hero__title,
.section__title,
.service__title,
.form__title,
.brand__name,
.footer__name {
  font-family: var(--font-head);
  font-weight: 400;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.btn--dark-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn--dark-outline:hover { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
}
.header__row {
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-width: 0;
  text-decoration: none;
}
.brand__logo { width: 40px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__name { font-size: 19px; white-space: nowrap; }
.brand__role { font-size: 15px; color: var(--muted-dark); }

.nav { display: flex; gap: 32px; }
.nav a {
  font-size: 18px;
  text-decoration: none;
  color: rgba(255,255,255,.88);
  text-underline-offset: 6px;
}
.nav a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); }
.nav__mobile-extra { display: none; }

.header__right { display: flex; align-items: center; gap: 36px; }
.messengers { display: flex; align-items: center; gap: 18px; }
.messengers a {
  display: grid;
  place-items: center;
  height: 32px;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  transition: color .2s;
}
.messengers a:hover { color: var(--gold); }
.messengers svg { width: 22px; height: 22px; }
.messengers__max { font-size: 14px; font-weight: 400; letter-spacing: .04em; }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.header__phone svg { width: 18px; height: 18px; color: var(--gold); }

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--white);
  transition: transform .2s, top .2s;
}
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1199px) {
  .header__row { gap: 28px; }
  .burger { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--gutter) 24px;
    background: var(--dark);
    border-bottom: 1px solid var(--line-dark);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
    font-family: var(--font-head);
    font-weight: 400;
    font-size: 22px;
  }
  .nav__mobile-extra { display: block; padding-top: 16px; }
  .nav__msg { display: flex; gap: 24px; margin-top: 10px; }
  .nav .nav__msg a {
    padding: 4px 0;
    border: 0;
    font-family: var(--font-text);
    font-size: 18px;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--muted-dark);
  }
  .nav .nav__phone { border: 0; font-family: var(--font-text); text-transform: none; letter-spacing: 0; font-size: 21px; }
}
@media (min-width: 960px) { .nav .nav__msg { display: none; } }
@media (min-width: 1200px) {
  .header__row { display: grid; grid-template-columns: 1fr auto 1fr; }
  .brand { margin-right: 0; justify-self: start; }
  .header__right { justify-self: end; }
}
@media (max-width: 959px) {
  .header__row { gap: 16px; }
  .header__right { gap: 16px; }
  .messengers { display: none; }
}
@media (max-width: 599px) {
  .header__row { gap: 6px; }
  .brand { gap: 10px; }
  .brand__logo { width: 34px; }
  .brand__name { font-size: clamp(13px, 3.7vw, 17px); overflow: hidden; text-overflow: ellipsis; }  /* Alice шире PT Sans: имя должно влезать до значка телефона */
  .brand__role { font-size: 14px; }
  .header__phone { width: 44px; height: 44px; justify-content: center; }
  .header__phone span { display: none; }
  .header__phone svg { width: 22px; height: 22px; }
}
/* Самые узкие телефоны (320–359 px): имя в шапке в две строки вместо многоточия, «адвокат» прячем */
@media (max-width: 359px) {
  .brand__name { white-space: normal; font-size: 14px; line-height: 1.15; overflow: visible; }
  .brand__role { display: none; }
}

/* ---------- Первый экран ---------- */
/* Тёмный экран занимает всё окно под шапкой: белый раздел ниже видно только после прокрутки.
   svh — высота окна телефона без учёта выезжающей адресной строки. */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  background: var(--dark);
  color: var(--white);
}
/* Фоновая картинка: тусклая, без видимых краёв — растворяется в фон */
.hero__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 40%;
  opacity: .2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 75%, transparent 100%);
}
.hero__grid { position: relative; }
.hero__grid {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__head { padding-top: 24px; }
.hero__photo {
  display: block;
  margin-top: 20px;
}
.hero__photo img {
  border: 1px solid var(--gold);
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: 50% 14%;
}
.hero__body { padding-bottom: 56px; }

/* Адрес кабинета у фото — как подпись, без рамок и значков */
.hero__address {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(255,255,255,.88);
}
.hero__address-label { display: block; color: #B9B9BE; }
.hero__address .nowrap { white-space: nowrap; }

/* Главная надпись: «Адвокат» светлым над ФИО, ФИО крупно золотым (просьба Александра 18.11).
   Золото на --dark — контраст 6:1, для крупного текста с запасом. */
.hero__head { text-align: center; }
.hero__title {
  font-size: clamp(32px, 9.4vw, 44px);   /* на телефоне: «Кузнецова» / «Юлия Николаевна» */
  line-height: 1.15;
}
.hero__role { display: block; color: var(--white); }
.hero__name { display: block; margin-top: .08em; }
.hero__name-rest { white-space: nowrap; }
/* Золото светлее и с переливом, как в образце: на тёмном фоне читается заметно лучше ровного #B8975A.
   У Alice нет жирного — тонкий контур того же цвета чуть утолщает буквы. */
.hero__name {
  color: #D9BE86;
  -webkit-text-stroke: .012em #D9BE86;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__name {
    background: linear-gradient(120deg, #C6A564 0%, #EBD7A4 45%, #C9A96C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke-color: transparent;
  }
}
.hero__role { -webkit-text-stroke: .012em var(--white); }
/* Текст об адвокате (от Александра) и рег. номер. Светлее обычного серого: под текстом фоновая картинка */
.hero__about {
  margin-top: 22px;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.55;
  color: #F4F4F6;           /* почти белый: под текстом фоновая картинка, так читается лучше (просьба Дмитрия 18.11) */
}
.hero__about p + p { margin-top: 10px; }
.hero__reg {
  margin-top: 16px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.45;
  color: #CFCFD4;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.hero__actions .btn { flex: 1 1 140px; padding: 0 16px; }

@media (min-width: 600px) {
  .hero__photo img { height: 480px; }
  .hero__actions .btn { flex: 0 0 auto; padding: 0 28px; }
}

@media (min-width: 960px) {
  .hero__grid {
    display: grid;
    grid-template-columns: 1fr 440px;
    grid-template-rows: auto auto;            /* надпись во всю ширину, под ней текст и фото */
    align-content: center;
    column-gap: 72px;
    row-gap: 48px;
    padding-top: 48px;
    padding-bottom: 56px;
  }
  .hero__head { grid-column: 1 / -1; grid-row: 1; padding-top: 0; }
  .hero__body { grid-column: 1; grid-row: 2; align-self: center; padding-bottom: 0; }
  .hero__media { grid-column: 2; grid-row: 2; align-self: center; }
  .hero__photo { margin: 0; }
  .hero__address { margin-top: 16px; font-size: 18px; }
  .hero__bg {
    top: 0;
    right: auto;
    width: 64%;
    height: 100%;
    object-position: 20% 45%;
    opacity: .22;
    -webkit-mask-image:
      linear-gradient(to right, #000 0%, #000 45%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, #000 0%, #000 45%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
    mask-composite: intersect;
  }
  .hero__photo img { height: auto; aspect-ratio: 4 / 5; }
  .hero__title { font-size: clamp(48px, 5.4vw, 72px); }   /* ФИО в одну строку во всю ширину */
  .hero__about { margin-top: 0; font-size: 17px; line-height: 1.5; }
  .hero__about p + p { margin-top: 8px; }
  .hero__reg { margin-top: 14px; font-size: 15px; }
  .hero__actions { margin-top: 26px; }
}

/* Широкий экран: адрес справа от фото, по нижнему краю (как просил Александр) */
@media (min-width: 1280px) {
  .hero__grid { grid-template-columns: 1fr auto; column-gap: 56px; }
  .hero__media { display: flex; align-items: flex-end; gap: 32px; }
  .hero__photo { flex: none; width: 400px; }
  .hero__address { flex: none; margin: 0; font-size: 19px; }
  .hero__address .nowrap { display: block; }
}

/* Невысокие экраны ноутбуков (1366×768, 1440×900 с панелями браузера): первый экран плотнее,
   чтобы надпись, текст, фото и кнопки по возможности помещались в окно без прокрутки */
@media (min-width: 960px) and (max-height: 940px) {
  .hero__grid { row-gap: 28px; padding-top: 28px; padding-bottom: 36px; }
  .hero__title { font-size: clamp(44px, 4.3vw, 60px); }
  .hero__about { font-size: 16px; }
  .hero__about p + p { margin-top: 6px; }
  .hero__reg { margin-top: 10px; font-size: 14px; }
  .hero__actions { margin-top: 18px; }
}
@media (min-width: 1280px) and (max-height: 940px) {
  .hero__photo { width: 340px; }
}

/* ---------- Секции ---------- */
.section { padding: 64px 0; }
[hidden] { display: none !important; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* поле-ловушка для ботов */
.section--paper { background: var(--paper); }
.section--stone { background: var(--stone); }
.section--stone .section__lead { color: #2A2A2E; }   /* --gray-700 на сером слишком бледный */
.section--white { background: var(--white); }
.section--dark { background: var(--dark); color: var(--white); }

.section__head { max-width: 640px; margin-bottom: 32px; }
.section__title { font-size: 34px; line-height: 1.05; }
.section__lead { margin-top: 12px; color: var(--gray-700); }
.section--dark .section__lead { color: var(--muted-dark); }

@media (min-width: 960px) {
  .section { padding: 96px 0; }
  .section__head { margin-bottom: 48px; }
  .section__title { font-size: 46px; }
  .section__lead { margin-top: 16px; font-size: 20px; }
}

/* ---------- Направления: карточки (3 в первом ряду, 2 широкие во втором) ---------- */
.services { display: grid; gap: 16px; }
.service {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
}
.service__title { font-size: 24px; line-height: 1.1; }
.service__list {
  margin-top: 14px;
  margin-bottom: 20px;
  padding-left: 1.1em;
  list-style: square;
  color: var(--gray-700);
  font-size: 17px;
}
.service__list li + li { margin-top: 5px; }
.service__list li::marker { color: #9A9AA0; }
.service__link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 400;
  font-size: 17px;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.service__link:hover { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* Длинный список: видны первые 5 пунктов, остальные по кнопке (js/main.js) */
.service__list.is-collapsed li:nth-child(n+6) { display: none; }
.service__more {
  align-self: flex-start;
  margin: -8px 0 20px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 16px;
  color: var(--gray-700);
  text-decoration: underline dotted;
  text-underline-offset: 4px;
  cursor: pointer;
}
.service__more:hover { color: var(--black); text-decoration-color: var(--gold); }

/* Появление карточек при прокрутке (правка 7 Александра, как в образце из Салехарда):
   выезжают справа налево по очереди, один раз, заметно (19.11 — Александр просил сильнее и с запозданием).
   Класс .reveal ставит скрипт — без скрипта карточки видны сразу. */
.service.reveal {
  opacity: 0;
  transform: translateX(110px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.service.reveal.is-in { opacity: 1; transform: none; }
#services { overflow-x: clip; }   /* сдвинутая карточка не даёт горизонтальной прокрутки на телефоне */
@media (max-width: 699px) { .service.reveal { transform: translateX(70px); } .service.reveal.is-in { transform: none; } }

@media (min-width: 700px) {
  .services { grid-template-columns: repeat(2, 1fr); gap: 20px; }   /* без 1fr-строк: раскрытая карточка не растягивает остальные ряды */
}
@media (min-width: 1000px) {
  .services { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .service { padding: 32px 30px 28px; }
  .service__title { font-size: 27px; }
}
.service--other {
  background: #EAE9E5;
  border-color: #D9D8D3;
  box-shadow: 0 14px 28px -16px rgba(14, 14, 15, .35);
}
.service__text { margin-top: 14px; margin-bottom: 22px; font-size: 17px; color: var(--gray-700); }
.service__actions { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.service__actions .service__link { margin-top: 0; }

/* ---------- Практика ---------- */
.practice__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.practice__icon { flex: none; width: 76px; height: auto; margin-bottom: 32px; }
@media (min-width: 960px) {
  .practice__icon { width: 128px; margin-bottom: 48px; margin-right: 12px; }
}
.practice { display: grid; }
@media (min-width: 700px) { .practice { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1000px) { .practice { grid-template-columns: repeat(3, 1fr); } }

.case {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line-light);
}
.case__thumb {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-light);
}
.case__body { display: flex; flex-direction: column; }
.case__title { font-size: 19px; font-weight: 400; line-height: 1.3; }
.case__text { margin-top: 6px; font-size: 17px; color: var(--gray-700); line-height: 1.45; }
.case__link {
  margin-top: auto;
  padding-top: 10px;
  align-self: flex-start;
  font-size: 17px;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.case__link:hover { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
@media (min-width: 1000px) {
  .case { grid-template-columns: 100px 1fr; gap: 20px; padding: 28px 0; }
}

.practice__more {
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
}
@media (min-width: 700px) { .practice__more { padding-top: 36px; } }

/* ---------- Контакты ---------- */
.contacts { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .contacts { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
}
.contact-list { margin-top: 28px; border-top: 1px solid var(--line-dark); }
.contact-list > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact-list dt { font-size: 16px; color: var(--muted-dark); }
.contact-list dd { margin-top: 2px; font-size: 19px; overflow-wrap: anywhere; }
.contact-list a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact-list a:hover { text-decoration-color: var(--gold); }
.contact-list__msg { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.contact-list__phones { display: flex; flex-direction: column; gap: 2px; }
.contact-list__phones a { align-self: flex-start; }
@media (min-width: 600px) {
  .contact-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: baseline; }
  .contact-list dd { margin-top: 0; }
}

.map {
  margin-top: 28px;
  height: 280px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark-raised);
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (min-width: 960px) { .map { height: 320px; } }

.form {
  scroll-margin-top: 12px;
  padding: 28px 22px;
  background: var(--dark-raised);
  border-radius: var(--radius);
}
@media (min-width: 960px) { .form { padding: 40px; } }
.form__title { font-size: 28px; line-height: 1.1; }
.form__note { margin-top: 6px; margin-bottom: 24px; color: var(--muted-dark); }

.field { display: block; margin-bottom: 16px; }
.field__label { display: block; margin-bottom: 6px; font-size: 16px; color: rgba(255,255,255,.88); }
.field__opt { color: var(--muted-dark); }
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--dark-input);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 18px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23A3A3A9' stroke-width='1.8' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 42px;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--gold); }
.field input::placeholder { color: #7A7A80; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 6px 0 24px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted-dark);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--white);
  cursor: pointer;
}
.check a { color: var(--white); text-underline-offset: 3px; }
.form__status { margin-top: 14px; font-size: 16px; color: var(--muted-dark); min-height: 1.4em; }

/* ---------- Документы: политика, согласие ---------- */
.doc { background: var(--paper); padding: 40px 0 72px; }
.doc__inner { max-width: 820px; }
.doc__back { font-size: 17px; color: var(--gray-700); text-underline-offset: 4px; }
.doc__back:hover { color: var(--black); text-decoration-color: var(--gold); }
.doc__title {
  margin-top: 20px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(24px, 7.5vw, 34px);   /* «конфиденциальности» целиком влезает даже на 320 px */
  line-height: 1.1;
  overflow-wrap: break-word;
}
.doc__updated { margin-top: 10px; color: var(--gray-700); font-size: 17px; }
.doc section { margin-top: 32px; }
.doc h2 { font-size: 21px; font-weight: 400; line-height: 1.3; }
.doc p, .doc li { margin-top: 10px; font-size: 18px; line-height: 1.6; color: #2A2A2E; }
.doc ul { margin-top: 6px; padding-left: 1.2em; list-style: square; }
.doc li { margin-top: 6px; }
.doc li::marker { color: #9A9AA0; }
.doc a { text-underline-offset: 3px; }
@media (min-width: 960px) {
  .doc { padding: 56px 0 96px; }
  .doc__title { font-size: 46px; }
  .doc section { margin-top: 40px; }
  .doc h2 { font-size: 22px; }
}

/* ---------- Подвал ---------- */
.footer {
  background: var(--black);
  color: var(--muted-dark);
  border-top: 1px solid var(--line-dark);
  padding: 36px 0 28px;
  font-size: 16px;
}
.footer__row { display: grid; gap: 18px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 44px; height: auto; flex: none; }
.footer__name { font-size: 19px; color: var(--white); line-height: 1.2; }
.footer__role { margin-top: 2px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}
.footer__bottom a { text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--white); }
@media (min-width: 960px) {
  .footer { padding: 48px 0 32px; }
  .footer__row { grid-template-columns: 1fr auto; align-items: center; gap: 24px 40px; }
  .footer__req { text-align: right; }
  .footer__bottom { grid-column: 1 / -1; }
}
