/* ===== Tokens ===== */
:root {
  --bg: #1b140d;
  --bg-alt: #221a11;
  --panel: #2a2013;
  --panel-border: #3d2f1c;
  --gold: #e0a627;
  --gold-light: #f3c968;
  --cream: #f2e8d5;
  --cream-dim: #cbbfa6;
  --green: #3f7d4f;
  --shadow: rgba(0, 0, 0, 0.45);
  --font-display: 'Yeseva One', 'PT Sans', serif;
  --font-body: 'PT Sans', Arial, sans-serif;
  --radius: 10px;
  --header-h: 76px;
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }

/* Language toggling: hidden by default until JS sets html[data-lang] */
html:not([data-lang]) [data-i18n] { display: none; }
html[data-lang="ru"] [data-i18n="en"] { display: none; }
html[data-lang="en"] [data-i18n="ru"] { display: none; }

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

section[id] { scroll-margin-top: var(--header-h); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-body);
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #241a0a;
  box-shadow: 0 6px 18px rgba(224, 166, 39, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(224, 166, 39, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream-dim);
}
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-lg { padding: 18px 42px; font-size: 1.15rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(27, 20, 13, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--panel-border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  flex-shrink: 0;
}
.logo-emblem { width: 32px; height: 32px; color: var(--gold-light); }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.logo-text small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--cream-dim);
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 0.95rem;
  color: var(--cream-dim);
  transition: color .15s ease;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--gold-light); }
.main-nav a.nav-cta {
  background: var(--gold);
  color: #241a0a;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
}
.main-nav a.nav-cta:hover { background: var(--gold-light); color: #241a0a; }

.header-controls { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.lang-switch { display: flex; border: 1px solid var(--panel-border); border-radius: 6px; overflow: hidden; }
.lang-switch button {
  background: transparent;
  color: var(--cream-dim);
  border: none;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-switch button.active { background: var(--gold); color: #241a0a; }
.lang-switch button:not(.active):hover { color: var(--gold-light); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.burger span { display: block; width: 100%; height: 2px; background: var(--cream); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 15, 8, 0.55) 0%, rgba(20, 15, 8, 0.75) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 8, 4, 0.65) 0%, rgba(10, 8, 4, 0.15) 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; padding-top: 60px; padding-bottom: 60px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--gold-light);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
}
.hero-lead { font-size: 1.15rem; color: var(--cream); margin-bottom: 30px; text-shadow: 0 2px 8px rgba(0,0,0,.5); max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { color: var(--cream-dim); font-size: 0.9rem; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 3px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 46px;
  align-items: center;
}
.about-text p { margin-bottom: 18px; color: var(--cream); }
.about-text strong { color: var(--gold-light); }
.note-box {
  background: var(--panel);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--cream-dim) !important;
}
.about-media img {
  border-radius: var(--radius);
  box-shadow: 0 16px 40px var(--shadow);
  border: 1px solid var(--panel-border);
}

/* ===== Cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.15rem; color: var(--gold-light); margin-bottom: 10px; }
.card p { color: var(--cream-dim); font-size: 0.95rem; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid button {
  padding: 0;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--panel);
  aspect-ratio: 4 / 3;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-grid button:hover img { transform: scale(1.08); }

.gallery-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.gallery-collapse .gallery-grid { margin-top: 16px; }

.gallery-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 30px auto 0;
}
.gallery-toggle-chevron { width: 18px; height: 18px; transition: transform .25s ease; }
.gallery-toggle[aria-expanded="true"] .gallery-toggle-chevron { transform: rotate(180deg); }
.gallery-toggle .label-open { display: none; }
.gallery-toggle[aria-expanded="true"] .label-closed { display: none; }
.gallery-toggle[aria-expanded="true"] .label-open { display: inline; }

/* ===== Reviews ===== */
.reviews-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.stat-box { text-align: center; max-width: 240px; }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { color: var(--cream-dim); font-size: 0.9rem; }

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.quote-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px;
}
.quote-card p { color: var(--cream); margin-bottom: 14px; font-style: italic; }
.quote-card cite { color: var(--cream-dim); font-size: 0.85rem; font-style: normal; }
.quote-card cite a { color: var(--gold-light); }
.quote-card cite a:hover { text-decoration: underline; }

/* ===== Requirements ===== */
.req-list {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.req-list li {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--cream-dim);
}
.req-list strong { color: var(--gold-light); margin-right: 6px; }

/* ===== Download ===== */
.section-download { text-align: center; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.download-inner { max-width: 560px; }
.steps-list {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.steps-list li {
  color: var(--cream-dim);
  padding-left: 30px;
  position: relative;
  counter-increment: step;
}
.steps-list { counter-reset: step; }
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #241a0a;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-download .hero-note { margin-top: 16px; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 40px 0;
  background: var(--bg-alt);
}
.footer-inner { text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 22px; margin-bottom: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--gold-light); font-size: 0.9rem; }
.footer-links a:hover { text-decoration: underline; }
.footer-disclaimer { color: var(--cream-dim); font-size: 0.8rem; max-width: 620px; margin: 0 auto 14px; }
.footer-copy { color: var(--cream-dim); font-size: 0.8rem; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 4, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 30px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: transparent;
  border: none;
  color: var(--cream);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { color: var(--gold-light); }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--panel-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav a { width: 100%; padding: 14px 24px; border-bottom: 1px solid var(--panel-border); }
  .main-nav a.nav-cta { margin: 14px 24px; width: calc(100% - 48px); text-align: center; }
  .burger { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes-grid { grid-template-columns: 1fr; }
  .reviews-stats { gap: 34px; }
}

@media (max-width: 540px) {
  .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 92vh; }
  .section { padding: 56px 0; }
}
