:root {
  /* Палитра по макету: кремовый фон, бургунди, сине-бирюзовый */
  --cream: #faf8f4;
  --burg: #730623;              /* PRO / MAX, кнопки, цифры, линии */
  --burg-dark: #590419;
  --burg-soft: #f6e9ed;
  --navy: #003652;              /* заголовки */
  --logo: #004f6f;              /* цвет логотипа bergauf — не менять */
  --teal: #2ca2c3;              /* бирюзовая диагональ */
  --teal-deep: #0e7f9e;
  --teal-soft: #e6f4f8;
  --muted: #5f6f7e;             /* основной текст */
  --line: #e4e9ee;

  /* алиасы для совместимости с кабинетом/админкой */
  --deep: #003652;
  --blue: #004f6f;
  --accent: #730623;
  --accent-dark: #590419;
  --accent-light: #8fd3e6;
  --accent-soft: #e6f4f8;
  --yellow: #8fd3e6;
  --yellow-dark: #730623;
  --burgundy: #730623;
  --burgundy-light: #f6e9ed;
  --paper: #faf8f4;
  --ink: #003652;
  --white: #ffffff;
  --gray-light: #eef2f5;
  --gray: #5f6f7e;
  --success: #27ae60;
  --error: #d64541;
  --warning: #f39c12;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 6px 26px rgba(0,54,82,0.09);
  --shadow-lg: 0 16px 50px rgba(0,54,82,0.16);
  --transition: 0.22s ease;
  --font: 'Montserrat', Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 84px; }

body {
  color: var(--navy);
  background: var(--cream);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,244,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,54,82,0.06);
}
.header-inner { height: 78px; display: flex; align-items: center; gap: 32px; }

.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 42px; width: auto; display: block; }

.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--burg); }

.header-actions { display: flex; gap: 10px; align-items: center; }

.btn-outline {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
  display: inline-block;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-primary {
  background: var(--burg);
  color: #fff;
  padding: 11px 24px;
  font-weight: 800;
  font-size: 13px;
  border-radius: 999px;
  border: none;
  display: inline-block;
  box-shadow: 0 8px 20px rgba(115,6,35,0.28);
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--burg-dark); transform: translateY(-1px); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; margin-left: auto; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; background: var(--cream); border-top: 1px solid var(--line); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 11px 0; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--line); }
.btn-outline-mobile { color: var(--navy) !important; }
.btn-primary-mobile {
  background: var(--burg);
  color: #fff !important;
  text-align: center;
  padding: 13px 20px !important;
  border-radius: 999px;
  font-weight: 800;
  border-bottom: none !important;
  margin-top: 8px;
}

/* ===== HERO ===== */
.hero {
  background: var(--cream);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 50%;
  background: linear-gradient(200deg, #eaf5f9 0%, #8fcde0 38%, #2ca2c3 72%, #0e7f9e 100%);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 72px;
}

.eyebrow {
  display: block;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--burg);
  margin-bottom: 18px;
}

.hero-text h1 {
  font-weight: 800;
  font-size: clamp(36px, 4.7vw, 66px);
  line-height: 1.04;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 28px;
}
.hero-text h1 .h1-line { display: block; white-space: nowrap; }
.hero-text h1 .pro, .hero-text h1 .max { color: var(--burg); }

/* Блок под названием: три строки и бургундские линии */
.hero-lead { max-width: 560px; margin-bottom: 30px; }
.hero-lead p {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(15px, 1.6vw, 21px);
  line-height: 1.26;
  letter-spacing: 0.1px;
}
.hero-lead .lead-rule {
  display: block;
  height: 3px;
  width: 60%;
  background: var(--burg);
  margin: 14px 0;
  border-radius: 2px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }

.btn-hero-primary {
  background: var(--burg);
  color: #fff;
  padding: 17px 32px;
  font-weight: 800;
  font-size: 14.5px;
  border-radius: 999px;
  border: none;
  display: inline-block;
  box-shadow: 0 12px 26px rgba(115,6,35,0.32);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-hero-primary:hover { background: var(--burg-dark); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(115,6,35,0.4); }

.btn-hero-secondary {
  background: #fff;
  color: var(--navy);
  padding: 15px 30px;
  font-weight: 800;
  font-size: 14.5px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  display: inline-block;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-hero-secondary:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

.hero-note { font-size: 12px; font-weight: 700; color: var(--navy); }

/* Hero visual: карточка с продукцией на бирюзовой диагонали */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card { position: relative; width: 100%; max-width: 470px; }
.hero-seller {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  object-position: center top;
  border-radius: 32px;
  box-shadow: 0 30px 60px rgba(0,54,82,0.28);
  border: 6px solid #fff;
}

.prize-badge {
  position: absolute;
  left: -22px;
  bottom: 30px;
  background: #fff;
  border-radius: 16px;
  padding: 11px 18px 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 270px;
  z-index: 3;
}
.prize-badge i {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--burg-soft); color: var(--burg);
  border-radius: 12px; font-size: 17px;
}
.prize-badge span { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.prize-badge strong { display: block; font-size: 13px; color: var(--navy); font-weight: 800; line-height: 1.25; }

/* ===== SECTIONS COMMON ===== */
.section-head { text-align: left; margin-bottom: 40px; }
.section-head.light h2 { color: var(--navy); }
.section-head.light p { color: var(--muted); }

.section-tag {
  display: block;
  color: var(--burg);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-tag.yellow, .section-tag.on-dark { color: var(--burg); background: none; }

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 800;
}
.section-head p { font-size: 16px; color: var(--muted); max-width: 720px; }
.section-head p.prizes-sub { max-width: 940px; }

/* ===== STEPS ===== */
.steps-section { padding: 88px 0 80px; background: var(--cream); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.step-card {
  background: #fff;
  border-radius: 6px 6px 22px 22px;
  padding: 30px 26px 30px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--burg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step-num { font-size: 40px; font-weight: 800; color: var(--burg); line-height: 1; margin-bottom: 14px; letter-spacing: -1px; }
.step-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.step-card p strong { color: var(--navy); }

.steps-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); }

.mechanic-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 36px 0 0; }
.mechanic-item { background: #fff; border-radius: 6px 6px 20px 20px; border-top: 4px solid var(--teal); padding: 24px; box-shadow: var(--shadow); }
.mechanic-item h4 { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.3px; }
.mechanic-item p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.mechanic-item p strong { color: var(--burg); }
.steps-after { margin: 28px auto 0; max-width: 640px; text-align: center; font-size: 14px; color: var(--muted); line-height: 1.7; }
.steps-after strong { color: var(--navy); }

.mechanic-footnote-yellow, .mechanic-footnote {
  margin-top: 28px;
  padding: 16px 22px;
  background: #fff;
  border-left: 4px solid var(--burg);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.65;
  box-shadow: var(--shadow);
}
.mechanic-footnote-yellow sup, .mechanic-footnote sup { color: var(--burg); font-weight: 900; font-size: 1rem; }

.steps-cta { text-align: center; margin-top: 40px; }
.btn-primary-lg {
  display: inline-block;
  background: var(--burg);
  color: #fff;
  padding: 18px 40px;
  font-weight: 800;
  font-size: 15px;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(115,6,35,0.3);
  transition: background var(--transition), transform var(--transition);
}
.btn-primary-lg:hover { background: var(--burg-dark); transform: translateY(-2px); }

/* ===== PRIZES ===== */
.prizes-section { padding: 88px 0; background: #fff; position: relative; overflow: hidden; }
.prize-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  align-items: stretch;
  background: var(--cream);
  border-radius: 32px;
  overflow: hidden;
  margin-bottom: 56px;
  box-shadow: var(--shadow);
}
.prize-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 480px;
  background: linear-gradient(200deg, #eaf5f9 0%, #8fcde0 35%, #2ca2c3 72%, #0e7f9e 100%);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  padding-right: 24px;
}
.prize-glow {
  position: absolute;
  width: 416px; height: 416px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
}
.prize-ring { position: absolute; width: 377px; height: 377px; border-radius: 50%; border: 2px dashed rgba(255,255,255,0.55); animation: spin 40s linear infinite; }
.iphone-center {
  position: relative; z-index: 2;
  width: 377px;
  max-width: 92%;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(0,40,60,0.38));
  animation: floatPhone 3.4s ease-in-out infinite;
}
@keyframes floatPhone { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.prize-hero-info { padding: 44px 44px 44px 24px; align-self: center; }
.prize-tag {
  display: block;
  color: var(--burg);
  font-size: 12px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase;
  margin-bottom: 14px;
}
.prize-hero-info h3 {
  font-size: clamp(28px, 3.3vw, 44px);
  letter-spacing: -0.5px;
  line-height: 1.06;
  margin-bottom: 14px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
}
.prize-hero-info h3 em { font-style: normal; color: var(--burg); }
.prize-lead { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 22px; }
.prize-lead strong { color: var(--navy); }

.prize-conditions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.condition {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  box-shadow: 0 2px 10px rgba(0,54,82,0.06);
}
.condition i {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--burg-soft); color: var(--burg);
  border-radius: 10px; font-size: 14px;
}
.condition strong { color: var(--navy); }

.btn-prize {
  display: inline-block;
  background: var(--burg);
  color: #fff;
  padding: 16px 32px;
  font-weight: 800;
  font-size: 14.5px;
  border-radius: 999px;
  text-align: center;
  box-shadow: 0 12px 26px rgba(115,6,35,0.3);
  transition: background var(--transition), transform var(--transition);
}
.btn-prize:hover { background: var(--burg-dark); transform: translateY(-2px); }

.merch-head { text-align: left; margin-bottom: 28px; }
.merch-head .plus {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--burg); color: #fff; font-size: 18px; margin-bottom: 12px;
}
.merch-head h3 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; color: var(--navy); margin-bottom: 8px; letter-spacing: -0.3px; }
.merch-head p { color: var(--muted); font-size: 15px; max-width: 640px; }

.merch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.merch-card {
  background: #fff;
  border-radius: 6px 6px 22px 22px;
  border-top: 5px solid var(--burg);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.merch-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.merch-img { background: #fff; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; padding: 14px; }
.merch-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.4s ease; }
.merch-card:hover .merch-img img { transform: scale(1.06); }
.merch-card h4 { font-size: 15px; font-weight: 700; color: var(--navy); padding: 6px 14px 4px; }
.merch-card p { font-size: 12.5px; color: var(--muted); padding: 0 14px 18px; }

.merch-note { margin-top: 28px; text-align: center; font-size: 14px; color: var(--muted); }
.merch-note i { color: var(--burg); margin-right: 6px; }
.merch-note.merch-disclaimer { margin-top: 10px; font-size: 12.5px; }
.merch-note strong { color: var(--navy); }

/* ===== PRODUCTS ===== */
.products-section { padding: 88px 0; background: var(--cream); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }

.product-card {
  background: #fff;
  border-radius: 6px 6px 22px 22px;
  border-top: 5px solid var(--burg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.product-img-wrap {
  position: relative;
  height: 200px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-img-wrap img {
  height: 100%; width: 100%;
  object-fit: contain;
  padding: 14px;
  mix-blend-mode: multiply;
  transition: transform var(--transition);
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-img-wrap.nobg { background: #fff; }

.product-info { padding: 6px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-sku { font-size: 11px; font-weight: 800; color: var(--burg); letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 6px; }
.product-info h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.product-info p { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; flex: 1; }

.product-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.weight-badge, .coupon-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px;
}
.weight-badge { background: var(--teal-soft); color: var(--logo); }
.coupon-badge { background: var(--burg-soft); color: var(--burg); }

/* ===== DISTRIBUTORS ===== */
.distrib-section { padding: 88px 0; background: #fff; }
.distrib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.distrib-card {
  background: var(--cream);
  border-radius: 6px 6px 20px 20px;
  border-top: 4px solid var(--burg);
  padding: 22px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.distrib-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.distrib-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.distrib-card.rep { background: #fff; border-top-color: var(--teal); }
.distrib-card.rep .distrib-num { background: var(--logo); }
.distrib-num {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--burg); color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.distrib-card h3 { font-size: 15px; font-weight: 800; color: var(--navy); line-height: 1.3; text-transform: uppercase; }
.distrib-city { display: inline-block; margin-top: 5px; font-size: 12px; font-weight: 700; color: var(--logo); background: var(--teal-soft); padding: 2px 11px; border-radius: 999px; }
.distrib-lines { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: var(--navy); }
.distrib-lines div { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.distrib-lines i { width: 16px; color: var(--teal-deep); margin-top: 3px; flex-shrink: 0; text-align: center; }
.distrib-lines a { color: var(--logo); font-weight: 700; }
.distrib-lines a:hover { text-decoration: underline; }
.distrib-lines .dnote { color: var(--muted); font-size: 12.5px; }
.distrib-footnote { margin-top: 28px; font-size: 13px; color: var(--muted); }
.distrib-footnote a { color: var(--burg); font-weight: 700; }

/* ===== RULES ===== */
.rules-section { padding: 88px 0; background: var(--cream); }
.rules-box { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: stretch; }
.rules-list { background: #fff; border-radius: 6px 6px 22px 22px; border-top: 5px solid var(--burg); padding: 32px; box-shadow: var(--shadow); }
.rules-list h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.rules-list ol { list-style: none; counter-reset: r; display: flex; flex-direction: column; gap: 12px; }
.rules-list li { counter-increment: r; position: relative; padding-left: 42px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.rules-list li::before {
  content: counter(r);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--burg-soft); color: var(--burg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.rules-list li strong { color: var(--navy); }
.rules-download {
  background: linear-gradient(200deg, #3aa9c8 0%, #1189a8 55%, #004f6f 100%);
  color: #fff; border-radius: 22px; padding: 32px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  box-shadow: var(--shadow-lg);
}
.rules-download .rd-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: rgba(255,255,255,0.18); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.rules-download h3 { font-size: 26px; font-weight: 800; }
.rules-download p { font-size: 14px; color: rgba(255,255,255,0.88); line-height: 1.65; }
.btn-download {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--burg); color: #fff; font-weight: 800; font-size: 14px;
  padding: 15px 26px; border-radius: 999px;
  transition: background var(--transition), transform var(--transition);
  margin-top: 4px;
}
.btn-download:hover { background: var(--burg-dark); transform: translateY(-2px); }

/* ===== COUNTDOWN ===== */
.countdown-section { padding: 68px 0; background: linear-gradient(120deg, #004f6f 0%, #0e7f9e 60%, #2ca2c3 100%); }
.countdown-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.countdown-text h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: -0.5px; }
.countdown-text p { color: rgba(255,255,255,0.88); font-size: 15px; max-width: 440px; }
.countdown-text p strong { color: #fff; }

.countdown-timer { display: flex; align-items: center; gap: 12px; }
.time-block { background: #fff; border-radius: 16px; padding: 16px 20px; text-align: center; min-width: 84px; box-shadow: 0 10px 26px rgba(0,40,60,0.22); }
.time-num { display: block; font-size: 38px; font-weight: 800; color: var(--burg); line-height: 1; }
.time-label { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.time-sep { font-size: 32px; color: #fff; font-weight: 800; opacity: 0.7; }

/* ===== FAQ ===== */
.faq-section { padding: 88px 0; background: var(--cream); }
.faq-list { max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 3px 14px rgba(0,54,82,0.07); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; background: none; border: none;
  font-size: 15.5px; font-weight: 700; color: var(--navy); text-align: left; gap: 16px;
}
.faq-q i { color: var(--burg); transition: transform var(--transition); flex-shrink: 0; }
.faq-q.open i { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 24px 20px; border-top: 1px solid var(--line); }
.faq-a p { font-size: 14.5px; color: var(--muted); line-height: 1.7; padding-top: 14px; }
.faq-a.open { display: block; }

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 150;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--burg);
  color: #fff;
  font-weight: 800; font-size: 14px;
  padding: 16px 26px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(115,6,35,0.5), 0 0 0 4px rgba(255,255,255,0.9);
  transition: background var(--transition), transform var(--transition);
}
.floating-cta:hover { background: var(--burg-dark); transform: translateY(-3px); }
.floating-cta::after {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  animation: pulseCta 2.4s infinite;
}
@keyframes pulseCta { 0% { box-shadow: 0 0 0 0 rgba(115,6,35,0.45); } 70% { box-shadow: 0 0 0 16px rgba(115,6,35,0); } 100% { box-shadow: 0 0 0 0 rgba(115,6,35,0); } }

/* ===== FOOTER (светлый — логотип остаётся своего цвета) ===== */
.site-footer { background: #fff; padding: 56px 0 0; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; }
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 40px; width: auto; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 6px; }
.footer-period { color: var(--burg) !important; font-weight: 800; }
.footer-links { display: flex; flex-direction: column; }
.footer-links h4 { color: var(--navy); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer-links a { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 8px; transition: color var(--transition); }
.footer-links a:hover { color: var(--burg); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; }
.footer-bottom p { font-size: 12.5px; color: var(--muted); text-align: center; }
.footer-bottom p.footer-credit { margin-top: 6px; font-size: 12px; opacity: 0.85; }

/* ===== AUTH FORMS ===== */
.auth-page { min-height: 100vh; background: var(--cream); display: flex; flex-direction: column; }
.auth-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 56px 20px; }
.auth-box { background: #fff; border-radius: 6px 6px 26px 26px; border-top: 5px solid var(--burg); padding: 44px; width: 100%; max-width: 500px; box-shadow: var(--shadow-lg); }
.auth-box h1 { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.auth-box .auth-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 32px; }
.auth-logo img { height: 40px; width: auto; margin: 0 auto; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1.5px solid #d8e0e8; border-radius: var(--radius);
  padding: 12px 16px; font-size: 14.5px; color: var(--navy); background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(44,162,195,0.18);
}
.form-group input.error { border-color: var(--error); }
.form-group .field-error { color: var(--error); font-size: 12px; margin-top: 4px; }
.form-group .field-hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.consent-box {
  background: var(--teal-soft);
  border: 1.5px solid rgba(44,162,195,0.3);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.consent-box label { display: flex !important; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 500 !important; margin: 0 !important; }
.consent-box input[type=checkbox] { width: 18px !important; height: 18px; flex-shrink: 0; margin-top: 2px; padding: 0; accent-color: var(--burg); }
.consent-box span { font-size: 13px; color: var(--navy); line-height: 1.5; }
.consent-box a { color: var(--burg); font-weight: 700; text-decoration: underline; }

.btn-submit {
  width: 100%; background: var(--burg); color: #fff; border: none;
  padding: 16px; font-size: 15px; font-weight: 800; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(115,6,35,0.28);
  transition: background var(--transition), transform var(--transition); margin-top: 8px;
}
.btn-submit:hover { background: var(--burg-dark); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--muted); }
.auth-footer a { color: var(--burg); font-weight: 700; }
.auth-footer a:hover { text-decoration: underline; }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.alert-success { background: rgba(39,174,96,0.1); color: #1e8449; border: 1px solid rgba(39,174,96,0.3); }
.alert-error { background: rgba(214,69,65,0.1); color: var(--error); border: 1px solid rgba(214,69,65,0.3); }

.pid-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--burg-soft); color: var(--burg); font-weight: 800; font-size: 12px; letter-spacing: 0.5px; padding: 4px 11px; border-radius: 999px; margin-top: 8px; }

/* ===== CABINET ===== */
.cabinet-page { min-height: 100vh; background: var(--cream); display: flex; flex-direction: column; }
.cabinet-layout { display: flex; flex: 1; min-height: calc(100vh - 78px); }
.cabinet-sidebar {
  width: 270px; background: #fff; border-right: 1px solid var(--line); padding: 32px 0;
  flex-shrink: 0; position: sticky; top: 78px; height: calc(100vh - 78px); overflow-y: auto;
}
.sidebar-user { padding: 0 24px 24px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.sidebar-user .user-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--burg);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; font-weight: 800; margin-bottom: 10px;
}
.sidebar-user .user-name { font-weight: 800; color: var(--navy); font-size: 15px; margin-bottom: 2px; }
.sidebar-user .user-company { font-size: 13px; color: var(--muted); }
.sidebar-user .coupon-count {
  background: var(--burg-soft); color: var(--burg); font-size: 12px; font-weight: 800;
  padding: 4px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
}
.sidebar-nav { padding: 0 12px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius);
  color: var(--navy); font-size: 14px; font-weight: 600;
  transition: background var(--transition), color var(--transition); margin-bottom: 2px;
}
.sidebar-nav a:hover { background: var(--gray-light); color: var(--burg); }
.sidebar-nav a.active { background: var(--navy); color: #fff; }
.sidebar-nav a i { width: 18px; font-size: 15px; }
.sidebar-nav .sidebar-sep { height: 1px; background: var(--line); margin: 12px 0; }

.cabinet-main { flex: 1; padding: 40px; overflow-y: auto; }
.cabinet-main .page-title { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; color: var(--navy); margin-bottom: 28px; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 36px; }
.stat-card { background: #fff; border-radius: 6px 6px 20px 20px; border-top: 4px solid var(--burg); padding: 24px; box-shadow: var(--shadow); }
.stat-card .sc-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--logo); margin-bottom: 14px;
}
.stat-card .sc-num { font-size: 30px; font-weight: 800; color: var(--burg); line-height: 1; margin-bottom: 4px; }
.stat-card .sc-label { font-size: 13px; color: var(--muted); font-weight: 600; }

.data-section { background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 28px; }
.data-section-header { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.data-section-header h3 { font-size: 17px; font-weight: 800; color: var(--navy); }
.btn-add {
  display: inline-flex; align-items: center; gap: 8px; background: var(--burg); color: #fff; border: none;
  padding: 10px 20px; font-weight: 800; font-size: 13px; border-radius: 999px; transition: background var(--transition);
}
.btn-add:hover { background: var(--burg-dark); }

.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; background: var(--gray-light); white-space: nowrap; }
.data-table td { padding: 14px 16px; font-size: 14px; color: var(--navy); border-bottom: 1px solid var(--gray-light); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(238,242,245,0.55); }

.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-pending { background: rgba(243,156,18,0.15); color: #b9770e; }
.status-approved { background: rgba(39,174,96,0.15); color: #1e8449; }
.status-rejected { background: rgba(214,69,65,0.15); color: var(--error); }
.status-active { background: rgba(0,79,111,0.12); color: var(--logo); }
.status-upcoming { background: rgba(39,174,96,0.12); color: #1e8449; }
.status-completed { background: rgba(140,150,160,0.15); color: var(--muted); }

.draws-grid { padding: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.draw-card { border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; transition: box-shadow var(--transition); }
.draw-card:hover { box-shadow: var(--shadow); }
.draw-card-img { height: 160px; background: var(--gray-light); overflow: hidden; }
.draw-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.draw-card-body { padding: 20px; }
.draw-card-body h4 { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.draw-card-body p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.draw-card-meta { display: flex; align-items: center; justify-content: space-between; }
.draw-cost { font-size: 13px; font-weight: 700; color: var(--logo); }
.btn-participate { background: var(--burg); color: #fff; border: none; padding: 9px 18px; font-weight: 800; font-size: 13px; border-radius: 999px; transition: background var(--transition); }
.btn-participate:hover { background: var(--burg-dark); }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,30,46,0.62); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 6px 6px 24px 24px; border-top: 5px solid var(--burg); padding: 40px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); }
.modal-box h2 { font-size: 21px; color: var(--navy); margin-bottom: 8px; font-weight: 800; }
.modal-box .modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; background: var(--gray-light); border: none;
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 16px; transition: background var(--transition);
}
.modal-close:hover { background: #dbe4ec; }

/* Admin */
.admin-badge { background: var(--burg-soft); color: var(--burg); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 3px 11px; border-radius: 999px; display: inline-block; margin-bottom: 6px; }

/* Wheel */
.wheel-section { text-align: center; padding: 40px; }
.wheel-container { display: inline-block; position: relative; margin: 24px auto; }
canvas#wheelCanvas { border-radius: 50%; box-shadow: var(--shadow-lg); }
.spin-btn {
  background: var(--burg); color: #fff; border: none; padding: 18px 48px; font-size: 17px; font-weight: 800;
  border-radius: 999px; margin-top: 24px; transition: background var(--transition), transform var(--transition);
  box-shadow: 0 10px 26px rgba(115,6,35,0.4);
}
.spin-btn:hover { background: var(--burg-dark); transform: scale(1.04); }
.spin-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.loading { text-align: center; padding: 60px; color: var(--muted); }
.loading i { font-size: 32px; margin-bottom: 12px; display: block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--navy); color: #fff; padding: 16px 22px;
  border-radius: var(--radius); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 9999;
  display: flex; align-items: center; gap: 10px; max-width: 360px; transform: translateY(20px); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.info { border-left: 4px solid var(--accent-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .main-nav { gap: 16px; }
  .merch-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .mechanic-detail { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .prize-hero { grid-template-columns: 1fr; }
  .prize-stage { clip-path: none; min-height: 340px; padding-right: 0; }
  .prize-hero-info { padding: 32px 28px 36px; }
  .rules-box { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero::before { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; padding-bottom: 44px; }
  .hero-visual {
    order: 2;
    background: linear-gradient(200deg, #eaf5f9 0%, #8fcde0 35%, #2ca2c3 75%, #0e7f9e 100%);
    border-radius: 28px;
    padding: 36px 20px 28px;
  }
  .hero-card { max-width: 400px; }
  .prize-badge { left: 10px; bottom: 14px; }
  .hero-visual { padding: 28px 22px; }
  .main-nav, .header-actions { display: none; }
  .burger { display: flex; }
  .steps-grid { grid-template-columns: 1fr; }
  .countdown-inner { flex-direction: column; text-align: center; }
  .countdown-text p { margin: 0 auto; }
  .cabinet-layout { flex-direction: column; }
  .cabinet-sidebar { width: 100%; height: auto; position: static; }
  .cabinet-main { padding: 24px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .prize-conditions { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: 68px; }
  .logo img { height: 34px; }
  .auth-box { padding: 32px 22px; }
  .modal-box { padding: 28px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .countdown-timer { gap: 6px; }
  .time-block { padding: 12px 10px; min-width: 62px; }
  .time-num { font-size: 28px; }
  .time-sep { font-size: 24px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-img-wrap { height: 150px; }
  .product-info { padding: 4px 14px 16px; }
  .product-info h3 { font-size: 14.5px; }
  .product-info p { font-size: 12px; }
  .distrib-grid { grid-template-columns: 1fr; }
  .merch-grid { gap: 12px; }
  .hero-text h1 { font-size: clamp(30px, 9.4vw, 40px); }
  .hero-actions a { width: 100%; text-align: center; }
  .floating-cta { right: 12px; left: 12px; bottom: 12px; justify-content: center; padding: 15px 20px; }
  .section-head { margin-bottom: 28px; }
  .steps-section, .products-section, .distrib-section, .faq-section, .prizes-section, .rules-section { padding: 60px 0; }
  .iphone-center { width: 221px; }
  .prize-glow { width: 338px; height: 338px; }
  .prize-ring { width: 312px; height: 312px; }
  .prize-stage { min-height: 360px; }
}
