:root {
  --court: #1b3a2b;
  --court-deep: #0c1812;
  --clay: #a8443b;
  --clay-soft: #c46a5c;
  --sand: #e8dcc7;
  --paper: #f6f1e7;
  --ink: #14100c;
  --line: rgba(20, 16, 12, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ---- language show/hide (7 languages) ---- */
.lang-tr, .lang-en, .lang-ru, .lang-fr, .lang-fa, .lang-es, .lang-it { display: none; }
:root[data-lang="tr"] .lang-tr,
:root[data-lang="en"] .lang-en,
:root[data-lang="ru"] .lang-ru,
:root[data-lang="fr"] .lang-fr,
:root[data-lang="fa"] .lang-fa,
:root[data-lang="es"] .lang-es,
:root[data-lang="it"] .lang-it { display: revert; }

/* ---- language switch (segmented) ---- */
.lang-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100vw - 2rem);
  gap: 2px;
  background: rgba(12,24,18,.55);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lang-switch button {
  font: 800 .72rem/1 "Inter", sans-serif;
  letter-spacing: .04em;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: .4rem .55rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-switch button:hover { background: rgba(255,255,255,.14); }
.lang-switch button.is-active { background: var(--clay); color: #fff; }

/* ---- per-language typography ---- */
:root[data-lang="ru"] .hero h1,
:root[data-lang="ru"] .section h2,
:root[data-lang="ru"] .cta-line { font-family: "Oswald", "Anton", sans-serif; font-weight: 700; }

:root[data-lang="fa"] body { font-family: "Vazirmatn", "Inter", sans-serif; }
:root[data-lang="fa"] .hero h1,
:root[data-lang="fa"] .section h2,
:root[data-lang="fa"] .cta-line,
:root[data-lang="fa"] .rules li::before { font-family: "Vazirmatn", sans-serif; }
:root[data-lang="fa"] .hero h1,
:root[data-lang="fa"] .section h2,
:root[data-lang="fa"] .cta-line,
:root[data-lang="fa"] .tagline { letter-spacing: 0; }
/* Persian-digit list markers in RTL */
:root[data-lang="fa"] .rules li::before { content: counter(r, arabic-indic); }

/* ---- music toggle ---- */
.music-toggle {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font: 800 .85rem/1 "Inter", sans-serif;
  letter-spacing: .05em;
  color: var(--paper);
  background: var(--court);
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: .55rem .95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .15s ease, background .15s ease;
}
.music-toggle:hover { transform: translateY(-1px); }
.music-toggle:active { transform: translateY(0); }
.music-toggle.is-playing { background: var(--clay); }
.music-icon { font-size: .8rem; line-height: 1; }

/* ---- hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  padding: 2rem 1.5rem 3.5rem;
  background: var(--court-deep);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(12,24,18,.45), rgba(12,24,18,.8));
}
.hero-inner { position: relative; z-index: 2; max-width: 60rem; margin: 0 auto; width: 100%; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: var(--sand);
}
.hero h1 {
  font-family: "Anton", "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: .95;
  margin: 0 0 1rem;
  letter-spacing: .01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.tagline {
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  font-weight: 800;
  margin: 0 0 .75rem;
  color: #fff;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 42rem;
  margin: 0;
  color: var(--sand);
}

/* ---- sections ---- */
.section {
  max-width: 60rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-alt { background: var(--court); color: var(--paper); max-width: none; }
.section-alt > * { max-width: 60rem; margin-left: auto; margin-right: auto; }
.section-alt a { color: var(--sand); }

.section h2 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  letter-spacing: .01em;
}
.section-alt h2 { color: #fff; }
.section h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin-top: .8rem;
  background: var(--clay);
  border-radius: 2px;
}
.section-alt h2::after { background: var(--sand); }

.section p { font-size: 1.08rem; margin: 0 0 1rem; }
.lead { font-size: 1.2rem; font-weight: 600; }

/* keep full-width section children aligned consistently (override the
   higher-specificity .section h2 / .section p margin resets) */
.section-alt h2, .section-alt p, .section-alt ol,
.section-cta h2, .section-cta p, .section-cta .btn-row,
.section-cta .court-figure {
  margin-left: auto;
  margin-right: auto;
}

/* ---- rules ---- */
.rules, .code-list { padding-left: 0; list-style: none; counter-reset: r; display: grid; gap: 1rem; }
.rules li {
  counter-increment: r;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: baseline;
  font-size: 1.08rem;
}
.rules li::before {
  content: counter(r);
  font-family: "Anton", sans-serif;
  font-size: 1.35rem;
  color: #fff;
  background: var(--clay);
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.code-list li {
  padding-inline-start: 1.5rem;
  position: relative;
  font-size: 1.08rem;
}
.code-list li::before {
  content: "●";
  position: absolute;
  inset-inline-start: 0;
  color: var(--clay);
}

/* ---- gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  background: var(--court-deep);
}
.gallery-item img,
.gallery-item video {
  display: block;
  width: 100%;
  height: clamp(260px, 42vw, 400px);
  object-fit: cover;
}

/* ---- figure ---- */
.court-figure { margin: 2.5rem 0 0; }
.court-figure img {
  width: 100%;
  border-radius: 14px;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* ---- cta ---- */
.section-cta {
  background: var(--court-deep);
  color: var(--paper);
  max-width: none;
  text-align: center;
}
.section-cta > * { max-width: 48rem; margin-left: auto; margin-right: auto; }
.section-cta h2 { color: #fff; }
.section-cta h2::after { margin-left: auto; margin-right: auto; background: var(--clay); }
.cta-line {
  font-family: "Anton", sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--clay-soft);
  margin: 1.5rem 0 0;
}

/* ---- directions button + map ---- */
.btn-row { margin: 1.75rem 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font: 800 1rem/1 "Inter", sans-serif;
  letter-spacing: .03em;
  color: var(--paper);
  background: var(--clay);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: .85rem 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--clay-soft); }
.btn:active { transform: translateY(0); }

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 2rem auto 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.15);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- footer ---- */
.footer {
  background: #000;
  color: var(--sand);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: .9rem;
  letter-spacing: .05em;
}
.footer p { margin: 0; }
