/* ============ Шрифты (локальные) ============ */
@font-face {
  font-family: 'PT Serif';
  src: url('fonts/ptserif-700-cyrillic.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Serif';
  src: url('fonts/ptserif-700-latin.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: 'PT Serif';
  src: url('fonts/ptserif-700-rub.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+20BD;
}
@font-face {
  font-family: 'Golos Text';
  src: url('fonts/golos-cyrillic.woff2') format('woff2');
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  src: url('fonts/golos-latin.woff2') format('woff2');
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: 'Golos Text';
  src: url('fonts/golos-rub.woff2') format('woff2');
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+20BD;
}

/* ============ Токены ============ */
:root {
  --bg: #0B221A;
  --bg-2: #0F2C22;
  --line: #1E4536;
  --text: #ECEAE3;
  --muted: #9DB0A5;
  --gold: #C8A951;
  --gold-lt: #E2C06A;
  --gold-soft: rgba(200, 169, 81, .09);
  --serif: 'PT Serif', 'Times New Roman', serif;
  --sans: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --w: 1080px;
  --r: 5px;
  --sp: clamp(44px, 6vw, 72px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; line-height: 1.15; letter-spacing: -.005em; }
p { margin: 0; }
ul, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

a { color: var(--gold-lt); text-decoration: none; border-bottom: 1px solid rgba(226, 192, 106, .35); transition: border-color .15s, color .15s; }
a:hover { border-bottom-color: var(--gold-lt); }

:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 3px; border-radius: 2px; }

::selection { background: rgba(200, 169, 81, .3); color: #fff; }

.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 20px; }

.section { padding: var(--sp) 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.section--alt { background: var(--bg-2); }

.rule { width: 36px; height: 2px; background: var(--gold); border-radius: 1px; margin-bottom: 16px; }

.eyebrow { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 18px; max-width: 46ch; }

h2 { font-size: clamp(25px, 3.4vw, 34px); }

.lead { color: var(--muted); font-size: clamp(16px, 1.7vw, 18px); max-width: 60ch; margin-top: 14px; }
.note { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-top: 18px; max-width: 78ch; }

/* ============ Кнопки ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 13px 26px;
  font: 500 16px/1.2 var(--sans); text-align: center;
  border: 1px solid transparent; border-radius: var(--r);
  cursor: pointer; background: none; color: inherit;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn--gold { background: var(--gold); color: #0B221A; font-weight: 600; border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lt); }
.btn[aria-disabled="true"] { opacity: .38; cursor: default; }
.btn--gold[aria-disabled="true"]:hover { background: var(--gold); border-color: var(--gold); }
.btn--ghost[aria-disabled="true"]:hover { border-color: var(--line); color: var(--text); }

.linklike {
  font: inherit; color: var(--gold-lt); background: none; border: 0;
  border-bottom: 1px solid rgba(226, 192, 106, .35);
  padding: 0; cursor: pointer;
}
.linklike:hover { border-bottom-color: var(--gold-lt); }

/* ============ Шапка ============ */
.head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 34, 26, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.head__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 62px; }
.brand { font-family: var(--serif); font-size: 17px; color: var(--text); border: 0; }
.brand:hover { color: var(--gold-lt); }
.nav a { color: var(--gold-lt); font-size: 15px; border: 0; }
.nav a:hover { color: var(--text); }

/* ============ Первый экран ============ */
.hero { padding: clamp(34px, 4.5vw, 56px) 0 clamp(40px, 5vw, 64px); scroll-margin-top: 72px; }
.hero h1 { font-size: clamp(29px, 4.7vw, 48px); line-height: 1.13; max-width: 17ch; }
.hero__note { color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ============ Выбор варианта ============ */
.models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; scroll-margin-top: 82px; }
.models input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.model {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-2); padding: 20px 60px 22px 22px;
  cursor: pointer; transition: border-color .16s ease;
}
.model:hover { border-color: #2A5A47; }
.model__mark {
  position: absolute; top: 21px; right: 20px;
  width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 50%;
  transition: border-color .16s ease;
}
.model__mark::after {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--gold);
  opacity: 0; transition: opacity .16s ease;
}
.model__tag { font-size: 13px; color: var(--gold-lt); line-height: 1.4; }
.model__name { font-family: var(--serif); font-size: 19px; margin-top: 12px; }
.model__price { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 34px); color: var(--gold-lt); margin-top: 8px; line-height: 1.1; }
.model__text { color: var(--muted); font-size: 15px; line-height: 1.55; margin-top: 10px; }

.models input:checked + .model { border-color: var(--gold); }
.models input:checked + .model .model__mark { border-color: var(--gold); }
.models input:checked + .model .model__mark::after { opacity: 1; }
.models input:focus-visible + .model { outline: 2px solid var(--gold-lt); outline-offset: 3px; }

/* ============ Чек-лист ============ */
.checklist { display: grid; gap: 12px; margin-top: 24px; }
.checklist--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 32px; }
.checklist li { position: relative; padding-left: 28px; line-height: 1.5; font-size: 16.5px; }
.checklist li::before {
  content: ''; position: absolute; left: 3px; top: 6px;
  width: 6px; height: 11px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(42deg);
}

/* ============ Заявка ============ */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); margin-top: 26px; align-items: start; }

.field { margin-bottom: 18px; }
.field > label, .field__legend { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.req { color: var(--gold-lt); }

.input, textarea.input {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  padding: 13px 14px; transition: border-color .15s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: rgba(157, 176, 165, .55); }
.input:hover { border-color: #2A5A47; }
.input:focus { border-color: var(--gold); outline: none; }
.input:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 2px; }
textarea.input { min-height: 92px; resize: vertical; }

.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.row--3 { grid-template-columns: 104px minmax(0, 1fr) minmax(0, 1fr); }

select.input {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 38px;
}
select.input option { background: var(--bg-2); color: var(--text); }
input[type="date"].input { min-height: 50px; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(72%) sepia(14%) saturate(340%) hue-rotate(91deg) brightness(92%); cursor: pointer; }

.preview-panel--sticky { position: sticky; top: 82px; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choices input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choices label {
  display: inline-flex; padding: 11px 16px;
  border: 1px solid var(--line); border-radius: 4px;
  font-size: 15px; color: var(--text); cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.choices label:hover { border-color: #2A5A47; }
.choices input:checked + label { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-lt); }
.choices input:focus-visible + label { outline: 2px solid var(--gold-lt); outline-offset: 2px; }

.preview-panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); padding: 22px; }
.preview-panel__label { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; display: flex; justify-content: space-between; gap: 16px; }
.preview { white-space: pre-wrap; font-size: 15.5px; line-height: 1.7; min-height: 130px; }
.send { display: grid; gap: 10px; margin-top: 18px; }
.hint { font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.hint--warn { color: var(--gold-lt); }

/* ============ Подвал ============ */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 38px 0 32px; }
.foot__rules { height: 5px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); margin-bottom: 26px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; }
.foot__name { font-family: var(--serif); font-size: 18px; }
.foot__about { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 46ch; }
.foot__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.foot__mail { font-size: 15px; }
.foot__bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot__note { color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 76ch; }

/* ============ Прилипшая кнопка ============ */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 34, 26, .94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(0);
  transition: transform .25s ease;
  display: none;
}
.sticky .btn { width: 100%; }
.sticky[data-hidden="true"] { transform: translateY(130%); }

/* ============ Отдельные страницы ============ */
.page { padding: clamp(44px, 6vw, 72px) 0 var(--sp); }
.page h1 { font-size: clamp(27px, 3.8vw, 38px); max-width: 20ch; }
.page__body { max-width: 70ch; margin-top: 26px; display: grid; gap: 16px; color: var(--muted); font-size: 16.5px; }
.page__body h2 { font-size: 20px; color: var(--text); margin-top: 14px; }
.page__body ul { display: grid; gap: 9px; }
.page__body li { position: relative; padding-left: 20px; }
.page__body li::before { content: ''; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: var(--gold); }
.page__back { margin-top: 32px; }

.e404 { min-height: 64vh; display: flex; align-items: center; }
.e404__n { font-family: var(--serif); font-size: clamp(64px, 12vw, 104px); color: var(--gold); line-height: 1; }

/* ============ Адаптив ============ */
@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .preview-panel--sticky { position: static; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; padding-bottom: 76px; }
  .models { grid-template-columns: 1fr; }
  .checklist--two { grid-template-columns: 1fr; }
  .sticky { display: block; }
  .hero__cta .btn { width: 100%; }
  .model, .preview-panel { padding-left: 20px; padding-right: 20px; }
  .model { padding-right: 56px; }
  .model__tag--empty { display: none; }
  .model__tag--empty + .model__name { margin-top: 0; }
  .row, .row--3 { grid-template-columns: 1fr 1fr; }
  .foot__contact .btn { width: 100%; }
  .preview { min-height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
