/* ════════════════════════════════════════
   МАКСИМ & АЛЯ — 16.08.2026
   style.css
════════════════════════════════════════ */

/* ── FONTS ── */
@font-face {
  font-family: 'Ringbearer';
  src: url('fonts/RingbearerMedium-51mgZ.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── VARIABLES ── */
:root {
  /* Пергамент / светлые фоны */
  --parchment:   #E7D9BE;  /* светлый старый лист — основной фон */
  --parchment2:  #D9C7A4;  /* тёплый пергамент — карточки, блоки */
  --paper:       #C7B08A;  /* потёртая бумага */

  /* Тёмные фоны / секции */
  --forest:      #2C2418;  /* тёмное дерево — navbar, футер */
  --forest2:     #4C4A2E;  /* тёмный мох — тёмные секции */

  /* Оливковые */
  --olive:       #6B683C;  /* оливковый лесной — кнопки primary */
  --olive-hover: #7A7553;  /* выцветший лес — hover кнопок */

  /* Золото / бронза — эльфийские элементы */
  --gold:        #B08A4A;  /* золотистый рунический — акценты, орнаменты */
  --gold-light:  #B08A4A;  /* тот же тон */
  --gold-dark:   #8A6A3B;  /* старая бронза — декоративные элементы */

  /* Текст */
  --brown:       #3B3022;  /* чернильно-коричневый — заголовки */
  --brown-dark:  #4A4033;  /* обычный текст */
  --text-sec:    #7A7553;  /* выцветший лес — вторичный текст */

  /* Glow эффекты */
  --glow-gold:   rgba(176, 138, 74, 0.35);  /* золотое свечение */
  --glow-forest: rgba(76, 74, 46, 0.25);   /* лесной glow */

  /* Алиасы */
  --ink:         #3B3022;
  --cream:       #E7D9BE;
  --mist:        #C7B08A;
  --sage:        #7A7553;
  --wood:        #8A6A3B;
  --old-gold:    #8A6A3B;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--forest);
  color: var(--brown);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── HELPERS ── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.center { text-align: center; }

/* ── SHARED ELEMENTS ── */
.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  text-align: center;
  margin-bottom: 8px;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px 0;
  opacity: 0.5;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 7vw, 36px);
  font-weight: 700;
  text-align: center;
  color: var(--brown);
  line-height: 1.3;
  margin-bottom: 8px;
}
.section-title.light { color: var(--parchment); }

.section-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  max-width: 420px;
  color: var(--brown-dark);
  font-style: italic;
}

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUpDown {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50%       { opacity: 0.8; transform: translateY(4px); }
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 20px;
  z-index: 200;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 36, 24, 0.88);
  border: 1px solid rgba(176, 138, 74, 0.35);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  box-shadow: 0 0 14px var(--glow-gold);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}
.btn-gold {
  background: var(--olive);
  color: var(--parchment);
  font-weight: 600;
  box-shadow: 0 4px 15px var(--glow-forest);
}
.btn-gold:hover {
  background: var(--olive-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--glow-gold);
}
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  font-weight: 600;
}
.btn-whatsapp:hover { background: #1ebe5d; }
