:root {
  --bg:        #f2f2f2;
  --bg2:       #ffffff;
  --bg3:       #f7f7f7;
  --accent:    #1a3a6b;
  --accent2:   #2550a0;
  --gold:      #c9a84c;
  --text:      #1a1a2e;
  --text-muted:#6b7280;
  --border:    #e0e0e0;
  --radius:    10px;
  --shadow:    0 2px 16px rgba(0,0,0,.08);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-gold {
  background: var(--accent);
  color: #fff;
}
.btn-gold:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,58,107,.3);
}
.btn-full { width: 100%; text-align: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.logo-gem { color: var(--accent); font-size: 16px; }
.logo-text { color: var(--text); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--accent);
  background: rgba(26,58,107,.06);
}
.nav-link.active { color: var(--accent); font-weight: 600; }

.header-socials {
  display: flex;
  gap: 8px;
  align-items: center;
}
.social-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: var(--transition);
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { color: var(--accent); border-color: var(--accent); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Section title */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

/* Footer */
.site-footer {
  background: var(--accent);
  color: #fff;
  padding: 48px 0 0;
  margin-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.footer-brand .logo-gem { color: #a8c4ff; }
.footer-brand p {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.7;
}
.footer-links, .footer-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a, .footer-socials a {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  transition: color var(--transition);
}
.footer-links a:hover, .footer-socials a:hover { color: #fff; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 18px 0;
  color: rgba(255,255,255,.5);
  font-size: 12px;
}

/* Alert */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
}
.alert-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; }
.alert-error   { background: #fce4ec; border: 1px solid #f48fb1; color: #c62828; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav, .header-socials { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    z-index: 99;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
  }
  .burger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

.main-content { flex: 1; }
