@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500&display=swap');

/* ============================================================
   1. ROOT / DESIGN TOKENS
   All magic numbers live here — change once, applies everywhere.
   ============================================================ */

:root {
  /* — Brand colors — */
  --gold:         #C9A84C;
  --gold-light:   #E8C96A;
  --red:          #B8232A;

  /* — Neutral palette — */
  --dark:         #0A0A0A;
  --dark-2:       #111111;
  --dark-3:       #1A1A1A;
  --mid:          #2A2A2A;
  --text:         #F0EDE6;
  --muted:        #888888;
  --text-25:      rgba(240, 237, 230, 0.25);

  /* — Gold with opacity (avoids repeating rgba everywhere) — */
  --gold-10:  rgba(201, 168, 76, 0.10);
  --gold-15:  rgba(201, 168, 76, 0.15);
  --gold-25:  rgba(201, 168, 76, 0.25);
  --gold-30:  rgba(201, 168, 76, 0.30);
  --gold-35:  rgba(201, 168, 76, 0.35);
  --gold-40:  rgba(201, 168, 76, 0.40);
  --gold-50:  rgba(201, 168, 76, 0.50);

  /* — Typography — */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* — Layout grid — */
  --cols:         12;
  --gutter:       24px;
  --content-w:    1280px;
  --nav-h:        56px;
  --section-v-pad: 80px;
  --section-h-pad: 40px;

  /* — Section overlay: dark semi-transparent backdrop over global bg — */
  --section-overlay: rgba(10, 10, 10, 0.91);

  /* — Section shell: grey card background — */
  --section-bg:   rgba(26, 26, 26, 0.96);
}

/* ============================================================
   2. RESET / BASE
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  background: var(--dark);
}

/* Fixed background via pseudo-element.
   Avoids iOS Safari bug where background-attachment:fixed
   on <body> does not scale correctly. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("images/bg.avif") center center / cover no-repeat;
}

@media (max-width: 768px) {
  body::before {
    background: url("images/bg-mobile.avif") center center / cover no-repeat;
  }
}

.page-wrap {
  max-width: 1440px;
  margin: 0 auto;
}

/* scroll-margin-top prevents the sticky nav from covering anchor targets */
.anchor-section {
  scroll-margin-top: var(--nav-h);
}

/* ============================================================
   3. SECTION WRAPPERS
   .section-shell — повноширинний фон секції
   .section-inner — 12-колонковий grid-контейнер, max 1280px
   hero & stats-bar — без .section-shell (прозорі)
   ============================================================ */

.section-shell {
  background: var(--section-bg);
  border-top: 1px solid var(--gold-10);
  border-bottom: 1px solid var(--gold-10);
}

.section-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: var(--section-v-pad) var(--section-h-pad);
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gutter);
  align-items: start;
}

/* Shared section typography — завжди на всю ширину */
.section-label {
  grid-column: 1 / -1;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0;
}

.section-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 64px);
  letter-spacing: clamp(1px, 0.4vw, 3px);
  line-height: 1.05;
  margin-bottom: 0;
}

/* ============================================================
   4. NAVIGATION
   ============================================================ */

#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--section-h-pad);
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--gold-15);
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--gold);
  line-height: 1;
  white-space: nowrap;
}

.nav-logo-dash {
  color: var(--red);
}

.nav-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#navMenu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}

#navMenu li a {
  display: block;
  white-space: nowrap;
  padding: 0 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
  line-height: var(--nav-h);
}

#navMenu li a:hover {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--gold-light);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--gold-30);
  cursor: pointer;
  padding: 0;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   5. BUTTONS
   ============================================================ */

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text-25);
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Keyboard focus ring */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-submit:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================================
   6. HERO  (transparent over global bg)
   ============================================================ */

.hero {
  position: relative;
  height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 12px var(--section-h-pad) 24px;
  overflow: hidden;
}

/* Top gradient vignette */
.hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 35%;
  background: linear-gradient(to bottom, rgba(10,10,10,0.5) 0%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

/* Bottom gradient vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(10,10,10,0.5) 0%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-sub {
  position: relative;
  z-index: 1;
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 1px;
  font-weight: 300;
  max-width: 440px;
  line-height: 1.7;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 400;
}

/* Wrapper carries the shadow so mix-blend-mode on the img stays clean */
.hero-logo-wrap {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 40px rgba(0, 0, 0, 0.85));
}

.hero-logo-img {
  width: 48vw;
  max-width: 830px;
  min-width: 320px;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
  display: block;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.6));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gold-40);
  padding: 6px 16px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(4px);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ============================================================
   7. COUNTDOWN
   ============================================================ */

.hero-countdown {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-countdown-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-countdown-date {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 6px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  background: rgba(10,10,10,0.6);
  border: 1px solid var(--gold-25);
  padding: 6px 4px 4px;
}

.cd-unit b {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  font-weight: normal;
}

.cd-unit em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.cd-over {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* ============================================================
   8. STATS BAR  (transparent — between hero and content sections)
   ============================================================ */

.stats-bar {
  border-top: 1px solid var(--gold-10);
  border-bottom: 1px solid var(--gold-10);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(6px);
}

.stats-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 28px var(--section-h-pad);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 8px;
}

.stat {
  text-align: center;
  min-width: 80px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.stat-platforms {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.platform-icon {
  color: var(--gold);
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}

.platform-icon:hover {
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* ============================================================
   9. CATEGORIES
   ============================================================ */

/* .cats займає всі 12 колонок і розподіляє картки рівномірно */
.cats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.cat {
  background: var(--dark-3);
  border: 1px solid var(--mid);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.cat::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.cat:hover {
  background: var(--mid);
  border-color: var(--gold-30);
}

.cat:hover::after {
  transform: scaleX(1);
}

.cat-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.cat-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--text);
}

.cat-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* ============================================================
   10. PRIZE
   ============================================================ */

/* Картка призу — ліві 6 колонок, benefits — праві 6 */
.prize-card-main {
  grid-column: 1 / 7;
  position: relative;
  border: 1px solid var(--gold-40);
  background: rgba(201, 168, 76, 0.04);
  padding: 48px 40px;
  text-align: center;
  overflow: hidden;
}

.prize-benefits {
  grid-column: 7 / 13;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prize-note {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.3px;
  padding-top: 8px;
  border-top: 1px solid var(--gold-10);
}

/* Radial glow behind the card */
.prize-card-main-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.prize-card-main-crown {
  font-size: 48px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.prize-card-main-title {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.prize-card-main-amount {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 88px);
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.prize-card-main-divider {
  width: 40px;
  height: 1px;
  background: var(--gold-40);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.prize-card-main-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Benefits */
.prize-benefit {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--dark-3);
  border: 1px solid var(--mid);
  padding: 24px;
  transition: border-color 0.2s;
}

.prize-benefit:hover {
  border-color: var(--gold-25);
}

.prize-benefit-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.prize-benefit-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 6px;
}

.prize-benefit-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   11. TIMELINE
   ============================================================ */

/* Steps займають всі 12 колонок */
.steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  margin-top: 0;
}

/* Horizontal connector line */
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--mid), var(--mid), transparent);
}

.step {
  padding: 24px 20px;
  text-align: center;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold-40);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold);
  background: var(--dark-2);
  position: relative;
  z-index: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* ============================================================
   12. FAQ
   ============================================================ */

/* FAQ список — 8 колонок по центру (col 3–10) */
.faq-list {
  grid-column: 3 / 11;
  margin-top: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  letter-spacing: 0.2px;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold-40);
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before { width: 8px; height: 1px; }
.faq-icon::after  { width: 1px; height: 8px; transition: transform 0.25s; }

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   13. REGISTRATION FORM
   ============================================================ */

/* Форма — 8 колонок по центру (col 3–10) */
.form-shell {
  grid-column: 3 / 11;
  border: 1px solid var(--mid);
  background: var(--dark-3);
  overflow: hidden;
}

/* Titlebar */
.form-titlebar {
  background: var(--mid);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--gold-10);
}

.titlebar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.titlebar-dot--red    { background: var(--red); }
.titlebar-dot--yellow { background: var(--gold); }
.titlebar-dot--green  { background: #3A7D44; }

.titlebar-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  margin: 0 auto;
  text-transform: uppercase;
}

/* --- Form blocks --- */

.form-block {
  padding: 28px 28px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.form-block--last {
  border-bottom: none;
  padding-bottom: 28px;
}

.form-block-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-15);
}

/* --- Form layout --- */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row--full {
  grid-template-columns: 1fr;
}

/* --- Fields --- */

.field {
  position: relative;
}

.field label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--mid);
  color: var(--text);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-50);
}

.field textarea {
  resize: none;
  min-height: 80px;
}

/* Custom select arrow */
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* Error state */
.field-error {
  font-size: 11px;
  color: var(--red);
  margin-top: 4px;
  display: none;
}

.field.has-error .field-error { display: block; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: rgba(184, 35, 42, 0.7);
}

/* Utility text variants */
.label-hint {
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
}

.required {
  color: var(--red);
}

.char-count {
  font-size: 11px;
  color: var(--muted);
}

/* --- Video divider --- */

.video-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.video-divider::before,
.video-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mid);
}

/* --- File drop zone --- */

.file-drop {
  position: relative;
  border: 1px dashed var(--mid);
  background: var(--dark);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
}

.file-drop-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.file-drop-icon {
  font-size: 18px;
  color: var(--muted);
  line-height: 1;
  transition: color 0.2s;
}

.file-drop-icon--ok  { color: #3A7D44; }
.file-drop-icon--err { color: var(--red); }

.file-drop:hover           { border-color: var(--gold-40); background: rgba(201, 168, 76, 0.03); }
.file-drop.drag-over       { border-color: var(--gold); background: rgba(201, 168, 76, 0.06); }
.file-drop.has-file        { border-color: rgba(58, 125, 68, 0.5); border-style: solid; }
.file-drop.has-file .file-drop-content { color: var(--text); }
.file-drop.has-error       { border-color: rgba(184, 35, 42, 0.7); border-style: solid; }
.file-drop.has-error .file-drop-content { color: var(--red); }

/* --- Consent checkboxes --- */

.consent-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.consent-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.consent-row strong { color: var(--text); }

.consent-row--optional {
  opacity: 0.6;
  font-size: 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.form-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
  letter-spacing: 0.3px;
}

/* Inline link style */
.link-accent {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-accent:hover { color: var(--gold-light); }

/* --- Submit button --- */

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover    { background: var(--gold-light); }
.btn-submit:disabled { background: var(--mid); color: var(--muted); cursor: not-allowed; opacity: 0.5; }

/* --- Success screen --- */

/* JS додає/знімає клас .hidden — display контролює CSS */
.form-body.hidden   { display: none; }
.success-screen     { display: none; padding: 48px 24px; text-align: center; background: rgba(0, 0, 0, 0.3); }
.success-screen.show { display: block; }

.success-icon   { font-size: 48px; margin-bottom: 16px; }
.success-title  { font-family: var(--font-display); font-size: 32px; letter-spacing: 3px; color: var(--gold); margin-bottom: 12px; }
.success-number { font-size: 24px; font-weight: 300; color: var(--text); margin-bottom: 8px; }
.success-sub    { font-size: 13px; color: var(--muted); }

.success-steps {
  margin: 24px auto 0;
  max-width: 400px;
  text-align: left;
}

.success-steps p {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.success-steps ol {
  padding-left: 20px;
}

.success-steps ol li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.success-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* ============================================================
   14. FOOTER
   ============================================================ */

#site-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--gold-10);
  padding: 48px var(--section-h-pad) 32px;
}

.footer-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gutter);
}

/* Brand — 4 колонки, навігація і legal — по 3 колонки кожна */
.footer-brand              { grid-column: 1 / 5; }
.footer-links:nth-child(2) { grid-column: 6 / 9; }
.footer-links:nth-child(3) { grid-column: 10 / 13; }

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 240px;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links ul li a:hover { color: var(--text); }

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 12px; color: var(--muted); }

.gdpr-badge {
  border: 1px solid var(--gold-25);
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}

/* ============================================================
   15. RESPONSIVE — Tablet (≤ 1024px)
   ============================================================ */

@media (max-width: 1024px) {

  :root {
    --cols:   8;
    --gutter: 20px;
  }

  /* FAQ і форма — на всю ширину */
  .faq-list  { grid-column: 1 / -1; }
  .form-shell { grid-column: 1 / -1; }

  /* Prize — вертикально */
  .prize-card-main { grid-column: 1 / -1; }
  .prize-benefits  { grid-column: 1 / -1; }

  /* Footer — brand на всю ширину, лінки поруч */
  .footer-brand                { grid-column: 1 / -1; }
  .footer-links:nth-of-type(1) { grid-column: 1 / 4; }
  .footer-links:nth-of-type(2) { grid-column: 5 / 9; }

  /* Nav — бургер з 1024px */
  .nav-hamburger { display: flex; }
  .nav-cta       { display: none; }

  #navMenu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--gold-15);
    padding: 8px 0;
    gap: 0;
    z-index: 99;
  }

  #navMenu.open { display: flex; }

  #navMenu li a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    letter-spacing: 0.5px;
    line-height: 1;
  }
}

/* ============================================================
   16. RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {

  :root {
    --cols:          4;
    --gutter:        16px;
    --section-v-pad: 56px;
    --section-h-pad: 20px;
  }

  /* Hero */
  .hero-sub     { font-size: 14px; max-width: 100%; }
  .hero-btns    { flex-direction: column; align-items: center; gap: 10px; }

  .hero-logo-img {
    width: 72vw;
    max-width: 320px;
    min-width: unset;
  }

  .btn-primary,
  .btn-secondary { width: 100%; max-width: 300px; padding: 15px 32px; }

  /* Stats */
  .stats-inner {
    padding: 20px var(--section-h-pad);
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stats-inner .stat:last-child { grid-column: 1 / -1; }
  .stat-value  { font-size: 28px; }

  /* Section title */
  .section-title { letter-spacing: clamp(0px, 0.3vw, 1px); }

  /* Categories — 2 колонки */
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat  { padding: 24px 16px; }

  /* Timeline — 1 колонка */
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }

  .step {
    padding: 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }

  .step-num   { margin: 0; flex-shrink: 0; width: 44px; height: 44px; font-size: 18px; }
  .step-title { margin-bottom: 4px; }
  .step-body  { flex: 1; }

  /* Countdown */
  .cd-unit b { font-size: 22px; }
  .cd-unit   { min-width: 40px; }

  /* Form */
  .form-row   { grid-template-columns: 1fr; }
  .form-block { padding: 20px 16px 4px; }
  .form-block--last { padding-bottom: 20px; }
  .field textarea { min-height: 120px; }

  /* Prevent iOS auto-zoom on form inputs */
  .field input,
  .field select,
  .field textarea { font-size: 16px; }

  /* Footer — все в одну колонку */
  .footer-links:nth-of-type(1),
  .footer-links:nth-of-type(2) { grid-column: 1 / -1; }
}

/* ============================================================
   17. RESPONSIVE — Small mobile (≤ 380px)
   ============================================================ */

@media (max-width: 380px) {
  .cats { grid-template-columns: 1fr; }

  .btn-primary,
  .btn-secondary { max-width: 100%; }
}
