:root {
  --bg-dark: #1a1f16;
  --bg-card: #242b1e;
  --bg-muted: #2d3528;
  --accent: #c9a227;
  --accent-soft: #e8d48a;
  --text: #e8e6e0;
  --text-muted: #a8a69e;
  --border: #3d4536;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

body.loading .main-content {
  opacity: 0;
  pointer-events: none;
}

body.loading .page-loader {
  opacity: 1;
  visibility: visible;
}

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.main-content {
  transition: opacity 0.25s ease;
}

.site-header {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(36,43,30,0.97) 100%);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-soft);
}

.nav-desktop {
  display: none;
}

.nav-desktop a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-desktop a:hover {
  color: var(--accent-soft);
  background: var(--bg-muted);
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

.burger-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.burger-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.burger-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  padding: 4rem 1.5rem 2rem;
  z-index: 98;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.burger-menu.open {
  transform: translateX(0);
}

.burger-menu .nav-list {
  list-style: none;
}

.burger-menu .nav-list li {
  margin-bottom: 0.5rem;
}

.burger-menu .nav-list a {
  display: block;
  padding: 0.75rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.burger-menu .nav-list a:hover {
  background: var(--bg-muted);
  color: var(--accent-soft);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 97;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.overlay.visible {
  opacity: 1;
  visibility: visible;
}

.hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, rgba(201,162,39,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-content .lead {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  max-height: 320px;
  aspect-ratio: 4/3;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  loading: lazy;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent-soft);
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--accent);
}

.card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  loading: lazy;
}

.card-body {
  padding: 1.25rem;
}

.card-body h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-body h2 a {
  color: var(--text);
  text-decoration: none;
}

.card-body h2 a:hover {
  color: var(--accent-soft);
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.article-page .article-header {
  padding: 2rem 1.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.article-page .article-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.article-page .article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-page .article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.article-page .article-body p {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.article-page .article-body img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  loading: lazy;
}

.article-page .article-body h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent-soft);
}

.article-page .article-body ul {
  margin: 1rem 0 1rem 1.5rem;
}

.article-page .article-body li {
  margin-bottom: 0.4rem;
}

.article-page .article-body a {
  color: var(--accent-soft);
  text-decoration: underline;
}

.article-page .article-body a:hover {
  text-decoration: none;
}

.layout-aside {
  display: grid;
  gap: 2rem;
}

.layout-aside .aside-image {
  border-radius: 12px;
  overflow: hidden;
  max-height: 280px;
}

.layout-aside .aside-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  loading: lazy;
}

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-contact {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-contact p {
  margin-bottom: 0.35rem;
}

.footer-contact a {
  color: var(--accent-soft);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner button {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.cookie-banner button:hover {
  background: var(--border);
}

.cookie-banner button.accept {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
}

.cookie-banner button.accept:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .burger-btn {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-aside {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
