:root {
  --bg: #0a0a12;
  --bg-soft: #12121e;
  --bg-card: rgba(18,18,30,0.55);
  --gold: #c9a86c;
  --gold-soft: #d4b87e;
  --gold-bright: #e0c890;
  --gold-glow: rgba(201,168,108,0.35);
  --gold-dim: rgba(201,168,108,0.12);
  --text: #e8e4d8;
  --text-dim: #8a8676;
  --text-bright: #f5f1e6;
  --border: rgba(201,168,108,0.15);
  --border-soft: rgba(201,168,108,0.08);
  --glass: rgba(18,18,30,0.5);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', -apple-system, sans-serif;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === ФОН === */
.cosmos-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,18,0.72) 0%, rgba(10,10,18,0.92) 100%),
    url('/background.webp') center center / cover no-repeat;
}
.stars {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; opacity: 0.35;
}
.star {
  position: absolute; width: 2px; height: 2px;
  background: #fff; border-radius: 50%;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.8; }
}

/* === NAV === */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,18,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px 30px;
  display: flex; justify-content: space-between; align-items: center;
}
nav .logo {
  font-family: var(--serif);
  color: var(--gold); font-size: 1.3rem;
  font-weight: 600; letter-spacing: 2px;
  text-decoration: none;
}
nav .links { display: flex; gap: 28px; align-items: center; }
nav .links a {
  color: var(--text-dim); text-decoration: none;
  font-family: var(--sans);
  font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}
nav .links a:hover { color: var(--gold-soft); }
nav .tg-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 9px 22px; border-radius: 24px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}
nav .tg-btn:hover { background: var(--gold); color: var(--bg); }
.nav-burger { display: none; font-size: 1.5rem; color: var(--gold); cursor: pointer; background: none; border: none; }

/* === ARTICLE === */
.article-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 20px 40px;
}
.breadcrumbs {
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.breadcrumbs a { color: var(--gold-soft); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--gold-dim); margin: 0 8px; }

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 44px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative; overflow: hidden;
}
.article-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.article-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.article-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 400;
  color: var(--text-bright);
  line-height: 1.2;
  margin-bottom: 18px;
}
.article-meta {
  font-family: var(--sans);
  font-size: 0.78rem; color: var(--text-dim);
  letter-spacing: 0.5px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-soft);
}
.article-meta .dot { color: var(--gold-dim); margin: 0 8px; }

.article-hero {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 0 28px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.article-body { color: var(--text); }
.article-body p {
  color: var(--text);
  font-size: 1rem; font-weight: 300;
  line-height: 1.9;
  margin-bottom: 20px;
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 500;
  color: var(--gold-soft);
  margin: 40px 0 16px;
  line-height: 1.3;
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 1.25rem; font-weight: 500;
  color: var(--text-bright);
  margin: 30px 0 12px;
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 0;
  padding-left: 22px;
  color: var(--text);
}
.article-body li {
  margin-bottom: 10px;
  line-height: 1.8;
}
.article-body li::marker { color: var(--gold); }
.article-body strong { color: var(--gold-soft); font-weight: 500; }
.article-body em { color: var(--gold-bright); }
.article-body a {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  transition: all 0.3s;
}
.article-body a:hover { color: var(--gold-bright); border-color: var(--gold); }

.article-body blockquote {
  border-left: 2px solid var(--gold);
  background: var(--gold-dim);
  padding: 18px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold-soft);
  line-height: 1.7;
}

/* === CTA === */
.article-cta {
  margin-top: 40px;
  padding: 30px 28px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  backdrop-filter: blur(12px);
}
.article-cta h3 {
  font-family: var(--serif);
  color: var(--gold-soft);
  font-size: 1.4rem; font-weight: 500;
  margin-bottom: 10px;
}
.article-cta p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.article-cta .btn {
  display: inline-block;
  padding: 12px 32px; border-radius: 24px;
  background: var(--gold); color: var(--bg);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500; font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--gold-glow);
}
.article-cta .btn:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

/* === RELATED === */
.related {
  margin-top: 40px;
}
.related h3 {
  font-family: var(--serif);
  color: var(--gold-soft);
  font-size: 1.3rem; font-weight: 500;
  margin-bottom: 18px;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.related-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  text-decoration: none;
  transition: all 0.4s ease;
  display: block;
}
.related-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  background: rgba(18,18,30,0.7);
}
.related-card .rc-label {
  font-family: var(--sans);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.related-card .rc-title {
  font-family: var(--serif);
  color: var(--text-bright);
  font-size: 1.1rem; font-weight: 500;
  line-height: 1.3;
}
.related-card .rc-desc {
  color: var(--text-dim);
  font-size: 0.82rem; font-weight: 300;
  margin-top: 8px;
  line-height: 1.6;
}

/* === FOOTER === */
footer {
  text-align: center; padding: 50px 20px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  background: var(--glass);
  backdrop-filter: blur(12px);
}
footer .social {
  display: flex; gap: 20px; justify-content: center;
  margin-bottom: 24px; flex-wrap: wrap;
}
footer .social a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 22px;
  color: var(--text-dim); text-decoration: none;
  font-family: var(--sans);
  font-size: 0.82rem; font-weight: 400;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
footer .social a:hover {
  color: var(--gold-soft);
  border-color: var(--gold-dim);
  background: var(--glass);
}
footer .social svg { width: 20px; height: 20px; }
footer .copyright {
  font-family: var(--serif);
  color: var(--text-dim); font-size: 0.8rem;
}

/* === MOBILE === */
@media (max-width: 600px) {
  nav .links { display: none; }
  nav .links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,10,18,0.95);
    padding: 20px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-burger { display: block; }
  nav .logo { font-size: 1.1rem; }
  .article-wrap { padding: 40px 16px 30px; }
  .article-card { padding: 32px 22px; }
  .article-hero {
    border-radius: 0;
    margin: 0 -22px 24px;
    width: calc(100% + 44px);
    max-width: none;
  }
  .related-grid { grid-template-columns: 1fr; }
}
