﻿/* ═══════════════════════════════════════════════
   DobroXayc.pro — Shared Design System v1
   Подключать ПОСЛЕ <style> на каждой странице
   чтобы shared-правила выигрывали каскад.
   ═══════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  --cream:       #FAF5EA;
  --cream-dark:  #F0E8D5;
  --burgundy:    #5C1A1B;
  --burgundy-2:  #7A2223;
  --gold:        #C79A4D;
  --gold-light:  #E8C07A;
  --gold-glow:   rgba(199,154,77,.35);
  --green:       #1E5A3F;
  --green-light: #2A7A55;
  --terra:       #C35E3C;
  --ink:         #2A2622;
  --ink-light:   #4A3E38;
  --smoke:       #8A7E76;
  --hero-bg:     #0D0806;
  --card-bg:     #1A1410;
  --card2-bg:    #211B16;
  --border:      rgba(199,154,77,.18);
  --r12: 12px;
  --r20: 20px;
  --shadow-warm: 0 8px 40px rgba(92,26,27,.15);
  --shadow-gold: 0 4px 24px rgba(199,154,77,.25);
}

/* ─── Base reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; overflow-x: hidden; }
img { max-width: 100%; display: block; }

/* ─── Navigation — единый для всего сайта ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,8,6,.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(199,154,77,.15);
  height: 54px; display: flex; align-items: center; padding: 0 20px; gap: 12px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 700; letter-spacing: 1px; flex-shrink: 0;
  background: linear-gradient(90deg, var(--gold) 0%, #f5e0a0 45%, var(--gold) 55%, var(--gold-light) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-decoration: none;
  animation: shared-nav-shimmer 4s ease-in-out infinite;
}
.nav-logo:hover { -webkit-text-fill-color: transparent; }
@keyframes shared-nav-shimmer {
  0%, 100% { background-position: 120% 0; }
  50%       { background-position: -30% 0; }
}
.nav-links {
  display: flex; gap: 2px; list-style: none; flex: 1;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.7); white-space: nowrap;
  padding: 5px 8px; border-radius: 6px;
  transition: color .2s, background .2s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.cur {
  color: var(--gold); background: rgba(199,154,77,.1);
}
.nav-cta {
  background: var(--burgundy) !important;
  color: var(--cream) !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  margin-left: 6px;
}
.nav-cta:hover { background: var(--burgundy-2) !important; }

/* ─── Section base ─── */
.section-tag {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}

/* Unified section padding (venue pages) */
.section { padding: 80px 40px; }

/* Unified section heading size */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 20px;
}
.section-title em { font-style: italic; }

/* Dark-page section headings (praktiki / mastera / simsima) */
.section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; line-height: 1.2;
}

/* ─── Footer — единый для всего сайта ─── */
footer.footer {
  background: var(--hero-bg);
  padding: 60px 28px 40px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.5); font-size: 14px;
}
.footer-in {
  max-width: 1160px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 32px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 700;
  color: var(--gold); margin-bottom: 6px;
}
.footer-addr { font-size: 13px; color: rgba(255,255,255,.35); line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: rgba(255,255,255,.5); font-size: 13px;
  transition: color .2s; text-decoration: none;
}
.footer-links a:hover { color: var(--gold); }
.footer-event {
  display: inline-flex; flex-direction: column; gap: 2px;
  margin-top: 14px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(199,154,77,.3);
  background: rgba(199,154,77,.07);
  color: rgba(255,255,255,.85) !important;
  font-size: 13px; line-height: 1.4;
  transition: background .2s, transform .2s;
  text-decoration: none;
}
.footer-event:hover { background: rgba(199,154,77,.14); transform: translateY(-1px); }
.footer-event-tag { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.footer-bot {
  max-width: 1160px; margin: 0 auto;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,.4);
}
.footer-bot a { color: var(--gold); text-decoration: none; }
.footer-tg {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(199,154,77,.12);
  border: 1px solid rgba(199,154,77,.2);
  color: var(--gold) !important;
  padding: 8px 18px; border-radius: 40px;
  font-size: 13px; transition: background .2s;
  text-decoration: none;
}
.footer-tg:hover { background: rgba(199,154,77,.22); }

/* ─── GSAP fade helpers ─── */
.reveal       { opacity: 0; transform: translateY(32px); }
.reveal-left  { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-scale { opacity: 0; transform: scale(0.92); }
.fade-up      { opacity: 0; transform: translateY(28px); }

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-links { display: none; }
  .section { padding: 56px 20px; }
  footer.footer { padding: 40px 20px 30px; }
  .footer-in { flex-direction: column; }
}

/* ─── Штаб-кнопка в nav (💰) ─── */
.nav-shtab {
  font-size: 20px; text-decoration: none;
  padding: 4px 8px; border-radius: 8px; flex-shrink: 0;
  transition: background .2s, transform .2s; line-height: 1;
}
.nav-shtab:hover { background: rgba(199,154,77,.15); transform: scale(1.15); }
