/* =====================================================
   base.css — общие стили всех страниц сайта
   Палитра объявлена ОДИН раз. Чтобы поменять фирменный
   цвет — правьте только здесь, и он изменится везде.
   ===================================================== */

:root {
  /* Фирменные цвета */
  --gold:       #C8A64D;   /* золото: кнопки, ссылки, акценты */
  --cream:      #E6D2B8;   /* кремовый: основной текст */
  --ink:        #1a140a;   /* тёмный текст на золотых кнопках */
  --ink-deep:   #2c241b;   /* стрелки/иконки на золоте */

  /* Фон и карточки */
  --bg:         #000000;   /* фон страницы */
  --card-top:   #1a1a1a;   /* карточки (градиент сверху) */
  --card-bottom:#0d0d0d;   /* карточки (градиент снизу) */

  /* Рамки */
  --border:       #333333; /* футер, шапки, разделители */
  --border-field: #4a4a4a; /* рамки полей формы */

  /* Оттенки текста */
  --muted: #cccccc;        /* приглушённый текст */
  --dim:   #999999;        /* тусклый текст */
  --faint: #666666;        /* плейсхолдеры */

  /* Прочее */
  --danger: #ff8888;       /* возрастное ограничение 18+ */

  /* Шрифты */
  --font-heading: 'Libre Bodoni', Georgia, serif;
  --font-body:    'Montserrat', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  min-height: 100vh;
}

a { color: var(--gold); transition: color 0.3s ease; }
a:hover { color: var(--cream); }

/* Скрытые label для доступности (скринридеры) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-block;
  padding: 10px 22px;
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-secondary:hover {
  background: rgba(200, 166, 77, 0.1);
  color: var(--cream);
  border-color: var(--cream);
}

/* ===== ФУТЕР (линия — по ширине контента) ===== */
.footer {
  background: var(--bg);
  color: var(--cream);
  padding: 0 40px 40px;
  margin-top: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  padding: 25px 80px 0 0;
  border-top: 1px solid var(--border);
}

.footer-logo { flex-shrink: 0; }
.footer-logo img {
  height: 80px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-text { flex: 1; font-size: 13px; line-height: 1.55; color: var(--cream); }
.footer-text p { margin: 0 0 6px; }
.footer-text p,
.footer-text .legal-note { font-size: 13px; line-height: 1.55; color: var(--cream); }
.footer-text .legal-note { display: block; margin-top: 0; }
.footer-text a { color: var(--gold); text-decoration: underline; transition: color 0.3s; }
.footer-text a:hover { color: var(--cream); }

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 25px 0 0;
    margin-bottom: 60px;
  }
  .footer-logo img { height: 60px; }
  .footer { padding: 0 20px 40px; }
}

/* ===== КНОПКА НАВЕРХ (рисованная стрелка) ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  font-size: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--ink-deep);
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.back-to-top::after {
  content: '';
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid var(--ink-deep);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--cream); transform: translateY(-3px); }

@media (max-width: 768px) {
  .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }
}
/* ===== БЛОК COOKIES В AGE-GATE ===== */
.age-gate__cookies {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.age-gate__cookies-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.age-gate__cookies-text a {
  color: var(--gold);
  text-decoration: underline;
}
.age-gate__cookies-text a:hover {
  color: var(--cream);
}
/* ===== ВОЗРАСТНОЙ ЧЕК 18+ ===== */
.age-gate { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.92); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.age-gate__card { max-width: 420px; width: 100%; background: linear-gradient(145deg, var(--card-top) 0%, var(--card-bottom) 100%); border: 1px solid var(--border); border-radius: 12px; padding: 40px 30px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.7); }
.age-gate__logo { height: 50px; margin: 0 auto 20px; display: block; filter: brightness(0) invert(1); }
.age-gate__title { font-family: var(--font-heading); font-size: 24px; color: var(--cream); margin-bottom: 10px; }
.age-gate__text { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 25px; }
.age-gate__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.age-gate__denied { font-size: 15px; color: var(--cream); line-height: 1.6; }
.age-gate__cookies { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.age-gate__cookies-text { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0; }
.age-gate__cookies-text a { color: var(--gold); text-decoration: underline; }
.age-gate__cookies-text a:hover { color: var(--cream); }