/* ==========================================================
   Ширхан — сайт-визитка отделочника.
   Палитра с вывески: чёрный, золото, светлая стена.
   Ритм страницы: тёмная шапка и первый экран, светлые блоки,
   тёмные «Бригада» и «Контакты».
   Рукописный шрифт — только подпись Ширхана, как надпись на стене.
   ========================================================== */

:root {
  --paper: #fcfbf7;        /* светлая стена */
  --stone: #f3eee4;        /* чередующиеся светлые секции */
  --black: #080808;        /* чёрный из знака */
  --ink: #1c1a17;          /* основной текст */
  --muted: #615b51;        /* второстепенный текст */
  --gold: #c39a52;         /* золото знака: линии, рамки, кнопки */
  --gold-light: #e2c07f;   /* золото на чёрном */
  --gold-deep: #86622a;    /* золото для текста на светлом фоне */
  --gold-metal: linear-gradient(105deg, #a8782f 0%, #e7c47f 48%, #b8893d 100%);
  --rule: rgba(28, 26, 23, 0.14);
  --error: #b3341f;

  /* смысловые токены: тёмные блоки переопределяют их у себя */
  --bg: var(--paper);
  --text: var(--ink);
  --heading: var(--black);
  --text-muted: var(--muted);
  --accent: var(--gold-deep);

  --font-head: "Oswald", "Arial Narrow", sans-serif;   /* высокие узкие буквы, как на вывеске */
  --font-body: "Golos Text", system-ui, sans-serif;
  --font-hand: "Marck Script", cursive;

  --header-h: 84px;
  --dock-h: 0px;
  --container: 1200px;
  color-scheme: light;
}
@media (max-width: 900px) { :root { --header-h: 68px; --dock-h: 76px; } }

/* тёмные блоки в цветах знака */
.is-dark {
  --bg: var(--black);
  --text: #f3eee4;
  --heading: #f3eee4;
  --text-muted: #b3ab9d;
  --accent: var(--gold-light);
  --rule: rgba(226, 192, 127, 0.22);
  background: var(--bg);
  color: var(--text);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  padding-bottom: var(--dock-h);
  background: var(--black);   /* под нижней панелью на телефоне — футер */
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { background: var(--paper); overflow-x: clip; }  /* наклонная лента не даёт прокрутки вбок */

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: 0.005em; margin: 0; color: var(--heading); }
p, li, dd { text-wrap: pretty; }   /* без одинокого слова в последней строке */
p { margin: 0; }
svg { width: 1.2em; height: 1.2em; flex-shrink: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--black);
  color: var(--gold-light);
  font-weight: 600;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }
.container--narrow > * { max-width: 816px; }

/* подпись Ширхана — тот же почерк, что «отвечаю лично» на стене */
.sign {
  font: 400 34px/1 var(--font-hand);
  color: var(--heading);
}

/* ---------- Логотип: знак с вывески + «Ширхан Строй» ----------
   Знак и надпись одной высоты и по центру друг друга; под именем — золотая черта, как на вывеске. */
.logo { display: inline-flex; align-items: center; gap: 14px; color: #f3eee4; }
.logo__mark { width: 60px; height: 52px; }
.logo__gold { fill: var(--gold); }
.logo__roof { stroke: currentColor; }
.logo__win { fill: currentColor; }
.logo__text { display: flex; flex-direction: column; justify-content: center; }
.logo__name {
  padding-bottom: 5px;
  border-bottom: 2px solid var(--gold);
  font: 600 26px/1 var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.logo__tag { margin-top: 6px; font-size: 14px; line-height: 1.1; letter-spacing: 0.01em; color: var(--gold-light); white-space: nowrap; }
@media (max-width: 900px) {
  .logo { gap: 11px; }
  .logo__mark { width: 46px; height: 40px; }
  .logo__name { padding-bottom: 4px; font-size: 20px; letter-spacing: 0.07em; }
  .logo__tag { margin-top: 5px; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  font: 600 16px var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, filter .2s;
}
/* золото с металлическим переливом, как буквы знака; только для главных действий */
.btn--primary { background: var(--gold-metal); color: var(--black); border-color: #a8782f; }
.btn--primary:hover { filter: brightness(1.08); }
.btn--line { color: var(--heading); border-color: currentColor; background: transparent; }
.btn--line:hover { background: var(--heading); color: var(--bg); border-color: var(--heading); }
.btn--block { width: 100%; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  color: #b3ab9d;
  transition: color .2s;
}
.icon-btn:hover { color: var(--gold-light); }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: env(safe-area-inset-top, 0px) 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-color: rgba(226, 192, 127, 0.22); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: #b3ab9d; transition: color .2s; }
.nav a:hover { color: #f3eee4; }

.header__contacts { display: flex; align-items: center; gap: 2px; }
.header__phone { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; margin-right: 10px; white-space: nowrap; color: #f3eee4; }
.header__phone:hover { color: var(--gold-light); }

@media (max-width: 1000px) { .nav { display: none; } .header__contacts { margin-left: auto; } }
@media (max-width: 560px) { .header__phone { display: none; } }

/* ---------- Рулетка: прогресс прокрутки ----------
   Золотая лента с делениями, как у строительной рулетки; ширину задаёт initTape() */
.tape {
  position: fixed;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  left: 0;
  z-index: 49;
  width: 0;
  height: 12px;
  background:
    repeating-linear-gradient(90deg, var(--black) 0 1.5px, transparent 1.5px 40px) 0 0 / 100% 100%,
    repeating-linear-gradient(90deg, var(--black) 0 1px, transparent 1px 8px) 0 0 / 100% 5px no-repeat,
    linear-gradient(180deg, #ecd08f, var(--gold));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
/* металлический крючок на конце ленты */
.tape__hook {
  position: absolute;
  right: -4px;
  top: -2px;
  width: 6px;
  height: 18px;
  border-radius: 1px;
  background: linear-gradient(90deg, #8b9197, #eef0f2 50%, #8b9197);
}
.tape[style*="width: 0"] .tape__hook { display: none; }

/* ---------- Первый экран ---------- */
.hero { padding: calc(var(--header-h) + 56px) 0 104px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-areas:
    "title photo"
    "body  photo";
  grid-template-rows: auto 1fr;
  gap: 32px 64px;
  align-items: start;
}
.hero__title { grid-area: title; align-self: end; }
.hero__photo { grid-area: photo; }
.hero__body { grid-area: body; }

/* слоган — крупная надпись; заголовок h1 для поисковиков — строка .hero__kicker */
.hero__title {
  margin: 0;
  font-family: var(--font-head);
  color: var(--heading);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}
/* каждая фраза заголовка — одной строкой */
.hero__title span { display: block; }
@media (min-width: 360px) { .hero__title span { white-space: nowrap; } }
/* золотая черта под заголовком — как линия под именем в знаке */
.hero__title::after {
  content: "";
  display: block;
  width: 96px;
  height: 4px;
  margin-top: 28px;
  background: var(--gold-metal);
}
.hero__kicker { margin-bottom: 14px; font: 500 22px/1.35 var(--font-head); letter-spacing: 0.01em; color: var(--gold-light); }
.hero__lead { max-width: 30em; font-size: 19px; }

.terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  font-weight: 500;
}
.terms li { position: relative; padding-left: 18px; }
.terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 2px;
  background: var(--gold);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* фото в тонкой золотой раме со сдвигом, как картина на тёмной стене */
.hero__photo { margin: 0; }
.hero__photo picture { display: block; }
.hero__photo img {
  width: 100%;
  aspect-ratio: 1179 / 840;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 14px 14px 0 -1px var(--black), 14px 14px 0 0 var(--gold);
}
.hero__photo figcaption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 30px;
  color: var(--text-muted);
  font-size: 15px;
}
.hero__photo .sign { color: var(--gold-light); }

@media (max-width: 960px) {
  .hero { padding: calc(var(--header-h) + 28px) 0 72px; }
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "photo" "body";
    grid-template-rows: auto;
    gap: 28px;
  }
  .hero__photo img { box-shadow: 8px 8px 0 -1px var(--black), 8px 8px 0 0 var(--gold); }
  .hero__photo figcaption { margin-top: 22px; }
}
@media (max-width: 520px) {
  .hero__kicker { font-size: 20px; }
  .hero__lead { font-size: 17px; }
  .hero__actions .btn { width: 100%; }
  .hero__title::after { margin-top: 20px; }
}

/* ---------- Секции ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--stone); }
@media (max-width: 768px) { .section { padding: 72px 0; } }

.section__title { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: 0; margin-bottom: 28px; text-wrap: balance; }
.section__sub { max-width: 34em; color: var(--text-muted); font-size: 18px; }

/* ---------- Ограждающая лента между первым экраном и светлым блоком ---------- */
.ribbon {
  position: relative;
  z-index: 2;
  height: 0;
  overflow-x: clip;   /* края наклонной ленты не дают горизонтальной прокрутки */
  overflow-y: visible;
}
.ribbon__band {
  position: absolute;
  left: -5%;
  right: -5%;
  top: -30px;
  height: 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #ecd08f, var(--gold));
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
  transform: rotate(-2deg);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.ribbon__band.is-dragging { cursor: grabbing; }
.ribbon__track { display: flex; flex-shrink: 0; will-change: transform; }
.ribbon__item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  font: 600 22px/1 var(--font-head);
  color: var(--black);
  white-space: nowrap;
}
/* разделитель — маленькая крыша из знака */
.ribbon__item::after {
  content: "";
  width: 14px;
  height: 14px;
  border-top: 4px solid var(--black);
  border-left: 4px solid var(--black);
  transform: rotate(45deg) translate(3px, 3px);
}
@media (max-width: 600px) {
  .ribbon__band { height: 50px; top: -25px; }
  .ribbon__item { font-size: 19px; gap: 18px; padding-right: 18px; }
}
/* светлый блок под лентой получает запас сверху */
.ribbon + .section { padding-top: 136px; }
@media (max-width: 768px) { .ribbon + .section { padding-top: 104px; } }

/* ---------- Как бывает / как у нас ---------- */
.compare__head { margin-bottom: 48px; }
.compare__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 64px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.compare__row--head {
  padding: 0 0 14px;
  border-top: 0;
  font: 500 22px/1.25 var(--font-head);
}
.compare__row--head span:first-child { color: var(--muted); }
.compare__row--head span:last-child { color: var(--black); }

/* кривая серая чёрточка у «как бывает», ровная золотая — у «как у нас» */
.compare__row > * { position: relative; padding-left: 30px; }
.compare__row > *::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 16px;
  height: 3px;
}
.compare__row--head > *::before { top: 11px; }
.compare__row > :first-child { color: var(--muted); }
.compare__row > :first-child::before { background: #a59d90; transform: rotate(-16deg); }
.compare__good { color: var(--ink); font-weight: 500; }
.compare__row > :last-child::before { background: var(--gold); }

/* на телефоне шапка таблицы становится легендой к меткам */
@media (max-width: 760px) {
  .compare__row--head { font-size: 18px; gap: 8px 16px; }
  .compare__row:not(.compare__row--head) { grid-template-columns: 1fr; padding: 20px 0; }
  .compare__bad { font-size: 16px; }
}

/* ---------- Комната: ремонт по этапам ---------- */
.room {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 40px 64px;
  align-items: center;
  margin-top: 88px;
}
@media (max-width: 960px) { .room { grid-template-columns: 1fr; gap: 20px; margin-top: 64px; } }
.room__text h3 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 12px; }
.room__text > p { color: var(--muted); max-width: 26em; }

.room__legend {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: stage;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  color: var(--muted);
}
.room__legend li { counter-increment: stage; display: flex; align-items: center; gap: 12px; transition: color .3s; }
.room__legend li::before {
  content: counter(stage);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(28, 26, 23, 0.25);
  border-radius: 50%;
  font: 600 14px/1 var(--font-head);
  transition: background-color .3s, border-color .3s, color .3s;
}
.room__legend li.is-done { color: var(--ink); }
.room__legend li.is-done::before { background: var(--gold); border-color: var(--gold); color: var(--black); }
.room__legend li.is-active { color: var(--black); font-weight: 600; }
.room__legend li.is-active::before { background: var(--black); border-color: var(--black); color: var(--gold-light); }
@media (max-width: 960px) {
  .room__text { display: contents; }
  .room__text h3 { order: 0; margin-bottom: 0; }
  .room__scene { order: 1; margin-top: 8px; }
  .room__legend { order: 2; flex-direction: row; flex-wrap: wrap; gap: 10px 18px; margin-top: 0; }
}

.room__scene { margin: 0; }
.room__svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(28, 26, 23, 0.45);
}

/* исходное состояние — голый бетон; этапы открывает initRoom() */
.r-clip-x,
.r-clip-r { clip-path: inset(0 100% 0 0); }
.r-clip-l { clip-path: inset(0 0 0 100%); }
.r-strip,
.r-side,
.r-plank { clip-path: inset(0 0 100% 0); }
.r-detail,
.r-hide { opacity: 0; }

/* пыль в солнечном луче — комната «дышит» и на паузах между этапами */
.r-dust circle { fill: #fff8e6; animation: dust 9s linear infinite; }
.r-dust circle:nth-child(3n) { animation-duration: 12s; animation-delay: -5s; }
.r-dust circle:nth-child(3n+1) { animation-duration: 8s; animation-delay: -2s; }
.r-dust circle:nth-child(2n) { animation-direction: reverse; }
@keyframes dust {
  0% { transform: translate(0, 0); opacity: 0; }
  20% { opacity: .9; }
  80% { opacity: .5; }
  100% { transform: translate(26px, -38px); opacity: 0; }
}

/* готовая комната: при «меньше движения» и как запасной вариант */
.room__svg.is-finished .r-clip-x,
.room__svg.is-finished .r-clip-l,
.room__svg.is-finished .r-clip-r,
.room__svg.is-finished .r-strip,
.room__svg.is-finished .r-side,
.room__svg.is-finished .r-plank { clip-path: inset(0); }
.room__svg.is-finished .r-detail,
.room__svg.is-finished #plCeil,
.room__svg.is-finished #rLamp,
.room__svg.is-finished #rGlow { opacity: 1; }
.room__svg.is-finished #rWires,
.room__svg.is-finished .r-dust { opacity: 0; }

/* ---------- Бригада ---------- */
.team { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
@media (max-width: 960px) { .team { grid-template-columns: 1fr; gap: 48px; } }

/* цифры бригады — настоящие, со слов заказчика */
.facts { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 32px 0 0; }
.facts dt { font: 600 clamp(40px, 4.4vw, 56px)/1 var(--font-head); color: var(--gold-light); }
.facts dd { margin: 6px 0 0; font-size: 15px; color: var(--text-muted); }
.team__fame { margin-top: 20px; max-width: 30em; font-size: 18px; color: var(--text); }

.promise { margin: 44px 0 0; padding-left: 22px; border-left: 3px solid var(--gold); }
.promise p { font: 400 clamp(30px, 3.4vw, 40px)/1.15 var(--font-hand); color: var(--gold-light); }
.promise footer { margin-top: 12px; font-size: 28px; }

.team__list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; align-content: start; }
@media (max-width: 600px) { .team__list { grid-template-columns: 1fr; gap: 28px; } }
.team__list > div { padding-top: 18px; border-top: 1px solid var(--rule); }
.team__list dt { font: 500 24px/1.25 var(--font-head); margin-bottom: 8px; color: var(--heading); }
.team__list dd { margin: 0; color: var(--text-muted); font-size: 16px; }
/* сам Ширхан — золотая линия вместо обычной */
.team__list .team__me { border-top: 3px solid var(--gold); padding-top: 16px; }
.team__list .team__me dt { color: var(--gold-light); }

/* ---------- Что делаем ---------- */
.objects { border-top: 1px solid var(--rule); }
.object {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 8px 48px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.object h3 { font-size: clamp(32px, 4vw, 48px); }
.object p { max-width: 32em; color: var(--muted); font-size: 18px; }
@media (max-width: 700px) { .object { grid-template-columns: 1fr; padding: 22px 0; } }

.services__notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  margin-top: 40px;
}
.services__notes p { max-width: 30em; color: var(--muted); }
.services__notes strong { color: var(--black); font-weight: 600; }
@media (max-width: 700px) { .services__notes { grid-template-columns: 1fr; } }

/* ---------- Этапы (это последовательность, нумеруем) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step { counter-increment: step; position: relative; padding-top: 64px; }
.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font: 700 44px/1 var(--font-head);
  color: var(--gold);
}
.step::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 44px;
  right: -24px;
  height: 1px;
  background: var(--rule);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
  .step { padding: 0 0 32px 64px; }
  .step::before { font-size: 36px; }
  .step::after { top: 44px; bottom: 8px; left: 12px; right: auto; width: 1px; height: auto; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font: 500 21px/1.35 var(--font-head);
  color: var(--black);
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-deep); }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font: 400 30px/1 var(--font-body);
  color: var(--gold-deep);
  transition: transform .25s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 0 24px; color: var(--muted); max-width: 40em; }

/* ---------- Контакты: номер телефона — главный заголовок ---------- */
#contact .section__title { margin-bottom: 8px; }
.bigphone {
  display: inline-block;
  font: 600 clamp(36px, 10vw, 136px)/1.1 var(--font-head);
  letter-spacing: 0;
  color: var(--heading);
  white-space: nowrap;
  border-bottom: 6px solid var(--gold);
  transition: color .2s;
}
.bigphone:hover { color: var(--gold-light); }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 48px 80px;
  align-items: start;
  margin-top: 64px;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; margin-top: 40px; } }
.contact__side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-size: 18px; }
.contact__side p + p { color: var(--text-muted); font-size: 17px; }
.contact__side .btn { margin-top: 8px; }
@media (max-width: 520px) { .contact__side .btn { width: 100%; } }

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--rule);
  border-radius: 3px;
}
@media (max-width: 520px) { .form { padding: 22px 16px; margin: 0 -4px; } }
.form__title { font-size: 28px; }
.form__hint { margin-top: -8px; color: var(--text-muted); font-size: 15px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 15px; color: var(--text-muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 3px;
  border: 1px solid rgba(243, 238, 228, 0.22);
  background: #141312;
  color: var(--text);
  font: 400 17px var(--font-body);
  transition: border-color .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: #8b8478; }
.field textarea { resize: vertical; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-light) 50%), linear-gradient(135deg, var(--gold-light) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
/* печать «Заявка готова» — ставится по нажатию кнопки */
.form { position: relative; }
.stamp {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 14px;
  border: 3px double var(--gold-light);
  border-radius: 4px;
  font: 700 18px/1.05 var(--font-head);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  transform: rotate(-12deg) scale(1.8);
  opacity: 0;
  pointer-events: none;
}
.stamp.is-on { animation: stamp .45s cubic-bezier(.3, 1.5, .5, 1) forwards; }
@keyframes stamp {
  0% { transform: rotate(-12deg) scale(1.8); opacity: 0; }
  60% { opacity: .95; }
  100% { transform: rotate(-12deg) scale(1); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) { .stamp.is-on { animation: none; opacity: .9; transform: rotate(-12deg); } }
.form__status:empty { display: none; }
.form__status { font-size: 15px; color: var(--text-muted); }
.form__status a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Футер ---------- */
.footer { padding: 40px 0 32px; border-top: 1px solid rgba(226, 192, 127, 0.22); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.footer__about { color: var(--text-muted); font-size: 16px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.footer__links a { display: inline-block; padding: 10px 0; font-weight: 600; }
.footer__links a:hover { color: var(--gold-light); }
.footer__copy { width: 100%; font-size: 14px; color: var(--text-muted); }
@media (max-width: 700px) { .footer__links { margin-left: 0; } }

/* ---------- Нижняя панель на телефоне ---------- */
.dock {
  --heading: #f3eee4;
  --bg: var(--black);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(226, 192, 127, 0.22);
}
.dock .btn { min-height: 54px; padding: 0 12px; }
@media (max-width: 900px) { .dock { display: grid; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Согласие на обработку ПДн у формы (152-ФЗ) ---------- */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
}
.consent input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.consent a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.consent.has-error span { color: #f0a08f; }
.consent__error { margin-top: -10px; font-size: 14px; color: #f0a08f; }

/* ---------- Документы и возрастная маркировка в подвале ---------- */
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 24px; width: 100%; }
.footer__legal a,
.footer__cookie {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: 400 15px var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer__legal a:hover,
.footer__cookie:hover { color: var(--gold-light); }
.footer__cookie[hidden] { display: none; }
.footer__age {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 6px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-size: 14px;
}

/* ---------- Окно согласия на cookie ---------- */
.cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + var(--dock-h) + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px;
  border: 1px solid rgba(226, 192, 127, 0.35);
  border-radius: 3px;
  background: #141312;
  color: #f3eee4;
  box-shadow: 0 20px 48px -20px rgba(0, 0, 0, 0.7);
  font-size: 15px;
  line-height: 1.5;
}
.cookies[hidden] { display: none; }
.cookies p { flex: 1 1 360px; }
.cookies a { color: var(--gold-light); text-underline-offset: 3px; }
.cookies__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookies .btn { min-height: 48px; --heading: #f3eee4; --bg: #141312; }
@media (max-width: 520px) { .cookies__actions { width: 100%; } .cookies .btn { flex: 1; } }
