:root {
  --bordo: #6b1e2e;
  --bordo-dark: #4a1420;
  --gold: #c9a24a;
  --gold-soft: #e8d3a0;
  --cream: #f8f1ef;
  --paper: #ffffff;
  --ink: #2a1a1e;
  --muted: #6e5c60;
  --line: #eadfd3;
  --radius: 16px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #1a1012;
    --paper: #24161a;
    --ink: #f4ebe4;
    --muted: #c3b2ad;
    --line: #3a272c;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  line-height: 1.2;
  margin: 0 0 .5em;
}

a { color: var(--bordo); }
@media (prefers-color-scheme: dark) { a { color: var(--gold); } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  background: var(--bordo);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { color: var(--gold-soft); }

.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: #fff;
  text-decoration: none;
  font-size: .92rem;
  padding: 6px 10px;
  border-radius: 8px;
  opacity: .9;
}
.nav a:hover { background: rgba(255,255,255,.12); opacity: 1; }

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 4px;
}
.lang-switch button {
  background: transparent;
  color: #fff;
  border: 0;
  padding: 5px 11px;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-switch button.active { background: var(--gold); color: var(--bordo-dark); }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(201,162,74,.28), transparent 60%),
    linear-gradient(160deg, var(--bordo) 0%, var(--bordo-dark) 100%);
  color: #fff;
  padding: 72px 0 84px;
  text-align: center;
}
.hero img.logo { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin-top: 22px; }
.hero h1 em { color: var(--gold-soft); font-style: normal; }
.hero p.lead { font-size: 1.12rem; max-width: 640px; margin: 0 auto 28px; opacity: .92; }

.badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: .92rem;
  color: #fff;
}
.badge small { display: block; font-size: .72rem; opacity: .8; }
.soon {
  display: inline-block;
  margin-top: 18px;
  background: var(--gold);
  color: var(--bordo-dark);
  font-weight: 700;
  font-size: .82rem;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Sections */
section.block { padding: 64px 0; }
section.block h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); text-align: center; }
section.block p.sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 36px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(201,162,74,.18);
  color: var(--bordo);
  font-size: 1.3rem;
  margin-bottom: 12px;
}
@media (prefers-color-scheme: dark) { .card .ic { color: var(--gold); } }
.card h3 { font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.audience {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
}
.audience ul { margin: 12px 0 0; padding-left: 20px; }
.audience li { margin-bottom: 6px; }

.contact {
  background: var(--bordo);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
}
.contact a { color: var(--gold-soft); font-weight: 600; font-size: 1.1rem; }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal .doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 5vw, 48px);
  max-width: 820px;
  margin: 0 auto;
}
.legal h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; color: var(--bordo); }
@media (prefers-color-scheme: dark) { .legal h2 { color: var(--gold); } }
.legal .meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.5em; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }

.steps {
  counter-reset: s;
  list-style: none;
  padding: 0 !important;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 12px 14px 12px 56px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 14px; top: 12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bordo);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: grid; place-items: center;
}
.note {
  background: rgba(201,162,74,.14);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 1.2em 0;
}
.btn {
  display: inline-block;
  background: var(--bordo);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
}
.btn:hover { background: var(--bordo-dark); }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  margin: 1em 0;
}
table.data th, table.data td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); margin-left: 14px; }
.site-footer a:first-child { margin-left: 0; }

/* Language visibility */
[data-lang] { display: none; }
html[lang="az"] [data-lang="az"],
html[lang="en"] [data-lang="en"] { display: revert; }

@media (max-width: 640px) {
  .nav a.hide-sm { display: none; }
  .hero { padding: 52px 0 64px; }
  section.block { padding: 48px 0; }
}
html[lang="ru"] [data-lang="ru"] { display: revert; }
