/* ==========================================================
   Template 9 — sticky header + scroll progress + reveal-in
   ========================================================== */

:root{
  --bg-base:      #0e0d0c;
  --bg-panel:     #161311;
  --bg-panel-alt: #1c1815;
  --accent-yellow:#f5b93f;
  --accent-orange:#d9601c;
  --text-primary: #f4efe6;
  --text-muted:   #9b8f7e;
  --line:         rgba(244,239,230,0.13);

  --font-head: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --head-h: 68px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: var(--head-h); }

body{
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 16.5px;
}

img{ max-width: 100%; display: block; }

h1,h2,h3{
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text-primary);
}
h1{ font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2{ font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h3{ font-size: 1.08rem; }

p{ margin: 0 0 1em; color: var(--text-muted); max-width: 60ch; }
a{ color: var(--accent-yellow); }

.section-label{
  margin-bottom: 0.65rem;
  color: var(--accent-orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- scroll progress bar ---------- */
.progress{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 60;
}
.progress__bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow));
  transition: width .1s linear;
}

/* ---------- sticky header ---------- */
.site-head{
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--head-h);
  display: flex;
  align-items: center;
  background: rgba(14,13,12,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head__row{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-head__brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
}
.site-head__brand img{ border-radius: 4px; }
.site-head__nav{ display: flex; gap: 26px; }
.site-head__nav a{
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color .2s ease;
}
.site-head__nav a:hover{ color: var(--accent-yellow); }

/* ---------- reveal-on-scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ---------- hero ---------- */
.hero{ padding: 56px 0 80px; border-bottom: 1px solid var(--line); }
.hero__grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero__kicker{
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.6em;
}
.hero__media{ border: 1px solid var(--line); }

.hero__specs{
  display: flex;
  gap: 28px;
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hero__specs dt{ font-size: 0.72rem; color: var(--text-muted); margin-bottom: 4px; }
.hero__specs dd{ margin: 0; font-weight: 700; color: var(--accent-yellow); }

/* ---------- about ---------- */
.about{ background: var(--bg-panel); padding: 76px 0; border-bottom: 1px solid var(--line); }
.about .wrap{ max-width: 920px; }
.about__list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.about__list li{ padding: 10px 0; border-top: 1px solid var(--line); color: var(--text-muted); }

.facts{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0;
  padding: 1px;
  background: var(--line);
}
.facts div{ min-width: 0; padding: 18px; background: var(--bg-panel-alt); }
.facts dt{ margin-bottom: 4px; color: var(--text-muted); font-size: 0.78rem; }
.facts dd{ margin: 0; color: var(--text-primary); font-weight: 700; overflow-wrap: anywhere; }
.notice{
  max-width: none;
  padding: 18px 20px;
  border-left: 3px solid var(--accent-orange);
  background: rgba(245,185,63,0.06);
}

/* ---------- registration steps ---------- */
.steps-section{ padding: 76px 0; border-bottom: 1px solid var(--line); }
.steps-section .wrap{ max-width: 920px; }
.steps{
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 32px;
  padding: 0;
}
.steps li{
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text-muted);
}
.steps li span{ color: var(--accent-yellow); font-size: 0.78rem; font-weight: 700; }

/* ---------- gallery ---------- */
.gallery{ padding: 76px 0; border-bottom: 1px solid var(--line); }
.gallery__intro{ max-width: 760px; }
.gallery__row{ display: flex; flex-wrap: wrap; gap: 14px; }
.gallery__row figure{ margin: 0; border: 1px solid var(--line); width: 188px; flex: 1 1 160px; background: var(--bg-panel); }
.gallery__row img{ width: 100%; height: auto; image-rendering: auto; }
.gallery__row figcaption{ padding: 12px 14px; color: var(--text-primary); font-size: 0.9rem; font-weight: 700; }

/* ---------- advantages ---------- */
.advantages{ padding: 76px 0; border-bottom: 1px solid var(--line); background: var(--bg-panel); }
.advantages__grid{
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 40px 56px;
  align-items: start;
}
.pros, .consider{ padding: 24px; border: 1px solid var(--line); background: var(--bg-panel-alt); }
.pros ul{ margin: 0; padding-left: 1.15rem; color: var(--text-muted); }
.pros li + li{ margin-top: 7px; }
.consider{ grid-column: 1 / -1; }
.consider p{ margin-bottom: 0; max-width: 78ch; }

/* ---------- FAQ ---------- */
.faq{ background: var(--bg-panel-alt); padding: 76px 0; border-bottom: 1px solid var(--line); }
.faq__list{ max-width: 800px; }
.faq__item{ border-top: 1px solid var(--line); padding: 18px 0; }
.faq__list .faq__item:last-child{ border-bottom: 1px solid var(--line); }
.faq__item summary{
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.faq__item summary::-webkit-details-marker{ display: none; }
.faq__item summary::after{
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent-orange);
  border-bottom: 2px solid var(--accent-orange);
  transform: rotate(-45deg);
  transition: transform .2s ease;
}
.faq__item[open] summary::after{ transform: rotate(45deg); }
.faq__item p{ margin-top: 12px; }

/* ---------- footer ---------- */
.site-foot{ padding: 60px 0 0; }
.site-foot__grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 36px;
  align-items: start;
  padding-bottom: 40px;
}
.site-foot__logos{ display: flex; gap: 10px; }
.site-foot__logos img{ border: 1px solid var(--line); padding: 6px; background: var(--bg-panel); }
.site-foot__legal{ border-top: 1px solid var(--line); padding: 16px 28px; font-size: 0.8rem; color: var(--text-muted); }

@media (max-width: 860px){
  .site-head__nav{ display: none; }
  .hero__grid{ grid-template-columns: 1fr; }
  .facts{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advantages__grid{ grid-template-columns: 1fr; }
  .consider{ grid-column: auto; }
  .site-foot__grid{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .wrap{ padding-left: 20px; padding-right: 20px; }
  .hero{ padding: 42px 0 56px; }
  .hero__specs{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .facts, .steps{ grid-template-columns: 1fr; }
  .about, .steps-section, .gallery, .advantages, .faq{ padding: 58px 0; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; }
}
