:root {
  --bg: #07090a;
  --bg-soft: #0c0f0d;
  --panel: rgba(255,255,255,0.035);
  --panel-border: rgba(212,175,55,0.18);
  --gold: #d4af37;
  --gold-light: #f3d98b;
  --green: #1b3a2f;
  --green-light: #2f6f52;
  --text: #eae6db;
  --muted: #9a988e;
  --maxw: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  line-height: 1.65;
}
a { color: var(--gold-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.bg-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block;
}
.page-shell { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(7,9,10,0.72);
  border-bottom: 1px solid var(--panel-border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: Georgia, serif; letter-spacing: 0.06em; font-size: 15px; color: var(--gold-light); }
nav.main-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
nav.main-nav a { color: var(--text); font-size: 14px; letter-spacing: 0.02em; }
nav.main-nav a.active { color: var(--gold); font-weight: 600; }
nav.main-nav a.lang-switch {
  border: 1px solid var(--panel-border); border-radius: 999px;
  padding: 4px 12px; font-size: 12px; letter-spacing: 0.08em; color: var(--gold-light);
}
nav.main-nav a.lang-switch:hover { border-color: var(--gold); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: 90px 24px 60px;
  text-align: center;
}
.kicker {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 5.4vw, 58px);
  margin: 0 0 18px 0; letter-spacing: -0.01em;
}
.hero p.lead {
  max-width: 620px; margin: 0 auto 34px auto;
  color: var(--muted); font-size: 17px;
}
.logo-hero {
  width: 96px; margin: 0 auto 28px auto; cursor: pointer;
  filter: drop-shadow(0 0 20px rgba(212,175,55,0.35));
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
}
.logo-hero:hover { transform: scale(1.06) rotate(3deg); }
.logo-hero.clicked { transform: scale(0.86) rotate(-6deg); }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid var(--panel-border); cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #14100a; border: none; }
.btn-primary:hover { text-decoration: none; filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { text-decoration: none; border-color: var(--gold); }

/* ---------- Sections / cards ---------- */
section.block { max-width: var(--maxw); margin: 0 auto; padding: 50px 24px; }
h2.section-title {
  font-family: Georgia, serif; font-size: clamp(24px, 3.4vw, 34px);
  margin: 0 0 8px 0;
}
p.section-sub { color: var(--muted); margin: 0 0 32px 0; max-width: 640px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }

.card {
  display: block; text-decoration: none;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 14px; padding: 24px; backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.card { cursor: pointer; }
.card:hover { border-color: var(--gold); transform: translateY(-3px); text-decoration: none; }
.card .badge {
  display: inline-block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-light); background: rgba(47,111,82,0.18);
  border: 1px solid rgba(47,111,82,0.4); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}
.card h3 { margin: 0 0 10px 0; font-size: 18px; font-family: Georgia, serif; color: var(--gold-light); overflow-wrap: break-word; }
.card p { color: var(--muted); font-size: 14px; margin: 0; overflow-wrap: break-word; }
.card .meta { margin-top: 14px; font-size: 12px; color: var(--gold-light); font-weight: 600; }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--muted); letter-spacing: 0.02em;
}
.contact-form input, .contact-form textarea {
  background: rgba(255,255,255,0.04); border: 1px solid var(--panel-border);
  border-radius: 8px; padding: 10px 12px; color: var(--text);
  font-family: inherit; font-size: 14px; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold);
}
.contact-form button { align-self: flex-start; }
.form-status { font-size: 13px; margin: 0; min-height: 18px; }
.form-status.success { color: var(--green-light); }
.form-status.error { color: #e08a8a; }

/* ---------- Blog list ---------- */
.post-row {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--panel-border);
  flex-wrap: wrap;
}
.post-row h3 { margin: 0 0 6px 0; font-size: 19px; font-family: Georgia, serif; }
.post-row .tags { font-size: 12px; color: var(--green-light); }
.post-row .date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.post-row p.excerpt { color: var(--muted); font-size: 14px; max-width: 640px; margin: 8px 0 0 0; }

/* ---------- Article page ---------- */
article.post {
  max-width: 720px; margin: 40px auto; padding: 48px 44px 70px;
  background: rgba(7,9,10,0.62);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  backdrop-filter: blur(4px);
}
@media (max-width: 640px) {
  article.post { padding: 34px 22px 50px; margin: 20px auto; }
}
article.post .post-meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
article.post h1 {
  font-family: Georgia, serif; font-size: clamp(28px, 4vw, 42px); margin: 6px 0 18px 0;
}
article.post .tags { margin-bottom: 30px; }
article.post .tags span {
  display: inline-block; font-size: 11px; color: var(--green-light);
  border: 1px solid rgba(47,111,82,0.4); padding: 3px 9px; border-radius: 999px; margin-right: 6px;
}
article.post h2 { font-family: Georgia, serif; color: var(--gold-light); margin-top: 38px; font-size: 22px; }
article.post p { color: #d9d6ca; font-size: 16px; }
article.post ul { color: #d9d6ca; font-size: 16px; }
article.post .back-link { display: inline-block; margin-top: 40px; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 40px 24px; margin-top: 40px;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  color: var(--text); font-size: 15px;
}
.footer-inner a { color: var(--gold-light); margin-left: 16px; font-weight: 500; }
.footer-inner a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .nav-inner { flex-direction: column; gap: 12px; }
  nav.main-nav { justify-content: center; }
}
