/* Dry Fire Training — стили сайта
   Шрифты (OFL) хранятся на сайте, а не грузятся с Google: так IP посетителей не уходит за рубеж (152-ФЗ). */
@font-face { font-family: "Tektur"; src: url("/assets/fonts/Tektur-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tektur"; src: url("/assets/fonts/Tektur-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("/assets/fonts/GolosText-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("/assets/fonts/GolosText-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --black: #000;
  --paper: #f3f4f4;
  --concrete: #d8dada;
  --graphite: #54585b;
  --red: #d42b2b;
  --red-led: #ff3b2f;
  --white: #fff;

  --display: "Tektur", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--black); font: 400 17px/1.6 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4.4vw, 54px); margin-bottom: 0.7em; }
h3 { font-size: 26px; margin-bottom: 0.5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  font: 600 16px/1 var(--text); text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #b82020; color: var(--white); }
.btn-line { border-color: currentColor; color: var(--white); background: transparent; }
.btn-line:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-ghost { border-color: var(--concrete); color: var(--black); background: transparent; }
.btn-ghost:hover { border-color: var(--black); color: var(--black); }
.btn-wide { width: 100%; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--red); color: var(--white); }

/* ---------- Шапка ---------- */
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gutter); color: var(--white); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); text-decoration: none; }
.brand-mark { width: 14px; height: 18px; background: var(--red);
  clip-path: polygon(30% 0, 70% 0, 80% 15%, 100% 30%, 100% 85%, 80% 100%, 20% 100%, 0 85%, 0 30%, 20% 15%); }
.topnav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; }
.topnav a { text-decoration: none; }
.topnav-cta { border: 2px solid currentColor; padding: 9px 16px; border-radius: 2px; }
.topnav-cta:hover { background: var(--white); color: var(--black); }

/* ---------- Первый экран ---------- */
.hero { position: relative; min-height: min(100svh, 900px); background: var(--black); color: var(--white); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 75%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 140px var(--gutter) clamp(48px, 8vh, 96px); }
.hero h1 { font-size: clamp(36px, 5.2vw, 72px); max-width: 17ch; margin-bottom: 18px; }
.lead { max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255,255,255,.88); margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: rgba(255,255,255,.6); }

/* ---------- Режимы ---------- */
.modes { padding: clamp(72px, 10vw, 128px) 0; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--black); }
.mode { padding: 36px 40px 8px 0; }
.mode + .mode { padding-left: 40px; border-left: 1px solid var(--concrete); }
.mode-icon { width: 48px; height: 52px; color: var(--red); margin-bottom: 22px; }
.mode p { max-width: 52ch; margin: 0 0 16px; }
.mode ul { margin: 0; padding: 0; list-style: none; }
.mode li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--graphite); max-width: 52ch; }
.mode li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--red); }

/* ---------- Фото ---------- */
.gallery { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; gap: 4px; background: var(--black); height: clamp(420px, 56vw, 760px); }
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-a { grid-row: 1 / 3; }
.g-a img { object-position: 45% 40%; }

/* ---------- Шаги ---------- */
.steps { padding: clamp(72px, 10vw, 128px) 0; }
.step-list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-list li { counter-increment: step; border-top: 2px solid var(--black); padding-top: 18px; }
.step-list li::before { content: counter(step); display: block; font: 700 64px/1 var(--display); color: var(--red); margin-bottom: 14px; }
.step-list b { display: block; font-weight: 600; margin-bottom: 6px; }

.download { margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--black); }
.download h3 { margin-bottom: 18px; }
.download-list { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Покупка ---------- */
.buy { background: var(--black); color: var(--white); padding: clamp(72px, 10vw, 128px) 0; }
.buy-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.price { font: 700 clamp(84px, 11vw, 150px)/0.9 var(--display); margin: 0; font-variant-numeric: tabular-nums; }
.price-sub { color: rgba(255,255,255,.7); margin: 14px 0 34px; }
.compare { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.compare li { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.18); }
.compare li span:nth-child(2) { color: rgba(255,255,255,.55); }
.compare li span:nth-child(3) { font-weight: 600; }
.compare .compare-head { border-top: 0; padding-top: 0; font-size: 13px; color: rgba(255,255,255,.55); }
.compare .compare-head span:nth-child(3) { font-weight: 400; color: var(--white); }

.pay-form { background: var(--paper); color: var(--black); padding: clamp(24px, 3vw, 40px); border-radius: 2px; }
.pay-form > label:not(.check) { display: block; font-weight: 600; margin-bottom: 8px; }
.pay-form input[type=text] { letter-spacing: .08em; text-transform: uppercase; }
.pay-form input[type=email], .pay-form input[type=text] { width: 100%; min-height: 54px; padding: 0 16px; font: 400 18px var(--text); border: 2px solid var(--black); border-radius: 2px; background: var(--white); }
.pay-form input[type=email]:focus-visible, .pay-form input[type=text]:focus-visible { outline-offset: 0; }
.field-hint { font-size: 14px; color: var(--graphite); margin: 8px 0 22px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; line-height: 1.5; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); }
.form-error { color: var(--red); font-weight: 600; font-size: 15px; margin: 0 0 16px; }
.pay-methods { font-size: 14px; color: var(--graphite); margin: 14px 0 0; text-align: center; }

/* ---------- Безопасность ---------- */
.safety { padding: clamp(56px, 7vw, 88px) 0; background: var(--concrete); }
.safety-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: baseline; }
.safety h2 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); }
.safety p { margin: 0; max-width: 60ch; padding-left: 22px; border-left: 4px solid var(--red); }

/* ---------- Вопросы ---------- */
.faq { padding: clamp(72px, 10vw, 128px) 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.author { margin: 0; position: sticky; top: 24px; }
.author figcaption { margin-top: 12px; font-size: 15px; color: var(--graphite); max-width: 34ch; }
.faq-list details { border-top: 1px solid var(--concrete); }
.faq-list details:last-child { border-bottom: 1px solid var(--concrete); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 2px; background: var(--black);
  box-shadow: none; transition: transform .2s; }
.faq-list summary::before { content: ""; position: absolute; right: 10px; top: calc(50% - 6px); width: 2px; height: 14px; background: var(--black); transition: transform .2s; }
.faq-list details[open] summary::before { transform: scaleY(0); }
.faq-list details p { margin: 0 0 22px; max-width: 62ch; color: var(--graphite); }

/* ---------- Подвал ---------- */
.site-foot { background: var(--black); color: rgba(255,255,255,.75); padding: 48px 0; font-size: 14px; }
.site-foot .brand { color: var(--white); margin-bottom: 14px; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-seller { margin: 0; line-height: 1.7; }
.foot-nav { display: flex; flex-direction: column; gap: 8px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Баннер cookie ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 620px; margin-left: auto;
  background: var(--white); color: var(--black); border: 2px solid var(--black); padding: 20px 22px; font-size: 14px; line-height: 1.5;
  transform: translateY(16px); opacity: 0; transition: transform .25s, opacity .25s; }
.cookie-banner.show { transform: none; opacity: 1; }
.cookie-banner p { margin: 0 0 14px; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-actions .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }

/* ---------- Юридические страницы ---------- */
body.legal { background: var(--white); }
.legal-top { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); background: var(--black); color: var(--white); }
.legal-top .back { font-size: 15px; text-decoration: none; }
.legal-doc { max-width: 780px; margin: 0 auto; padding: 56px var(--gutter) 80px; font-size: 16px; line-height: 1.65; }
.legal-doc h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.legal-doc h2 { font-size: 22px; margin: 2em 0 .6em; }
.legal-doc p { margin: 0 0 .8em; }
.legal-doc ul { margin: 0 0 1em; padding-left: 1.3em; }
.legal-doc li { margin-bottom: .4em; }
.doc-meta { color: var(--graphite); margin-bottom: 2em !important; }
.doc-note { background: var(--paper); padding: 16px 18px; border-left: 4px solid var(--black); }
.warn { padding: 14px 18px; border-left: 4px solid var(--red); background: #fbecec; font-weight: 600; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 1.5em; display: block; overflow-x: auto; }
.doc-table th, .doc-table td { border: 1px solid var(--concrete); padding: 10px 12px; text-align: left; vertical-align: top; min-width: 140px; }
.doc-table th { background: var(--paper); font-weight: 600; }
.legal-foot { border-top: 1px solid var(--concrete); padding: 28px var(--gutter) 40px; font-size: 14px; color: var(--graphite); max-width: 780px; margin: 0 auto; }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }

/* ---------- Страницы результата оплаты ---------- */
.status-page { min-height: 100svh; display: grid; place-items: center; background: var(--black); color: var(--white); padding: 40px var(--gutter); text-align: center; }
.status-page .box { max-width: 560px; }
.status-page h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 18px; }
.status-page p { color: rgba(255,255,255,.8); }
.status-page .btn { margin-top: 18px; }

/* ---------- Мобильная версия ---------- */
@media (max-width: 860px) {
  .topnav a:not(.topnav-cta) { display: none; }
  .hero { min-height: 92svh; }
  .hero-img { object-position: 78% 40%; }
  .hero::after { background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.2) 100%); }
  .mode-grid, .buy-grid, .faq-grid, .safety-inner { grid-template-columns: 1fr; }
  .mode { padding-right: 0; }
  .mode + .mode { padding-left: 0; border-left: 0; border-top: 1px solid var(--concrete); margin-top: 20px; }
  .step-list { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .g-a { grid-row: auto; }
  .gallery img { aspect-ratio: 3 / 2; }
  .author { position: static; max-width: 420px; }
  .compare li { grid-template-columns: 1.4fr 1fr 1fr; font-size: 14px; }
  .actions .btn { flex: 1 1 100%; }
}
