/*
  Игрални зали ELITBET, дизайн 4 „Портал“.
  По мотиви от bm.elitbet.bg: светещ портал от пръстени, едър наклонен сгъстен шрифт
  в бяло и лайм, полупрозрачни зелени карти и светещи кръгове за джакпотите.
  Цветовете са от elitbet.bg.
*/

:root {
  --night: #11181b;
  --deep: #0c1113;
  --panel: #1d2429;
  --raise: #292e30;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: #3a4144;
  --lime: #a6cd36;
  --lime-hover: #b8d75e;
  --lime-pale: #c3de78;
  --lime-dim: #6f8a24;
  --lime-light: #eef7cf;
  --chalk: #e1e1e1;
  --mist: #9d9fa6;
  --white: #fff;
  --gold: #ffc941;
  --alert: #f26f63;

  --glass: linear-gradient(180deg, rgba(166, 205, 54, 0.04) 0%, rgba(166, 205, 54, 0.15) 100%);
  --glass-border: rgba(166, 205, 54, 0.26);
  --glow: 0 0 0 1px rgba(166, 205, 54, 0.6), 0 0 28px rgba(166, 205, 54, 0.22);
  --lime-fill: linear-gradient(90deg, #a6cd36 0%, #8fb02c 55%, #6f8a24 100%);

  --r-s: 4px;
  --r-m: 8px;
  --r-l: 12px;
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --text: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-h: 84px;
}

/* ---------- Основа ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font: 500 1rem / 1.65 var(--text);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--lime);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--lime-hover);
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--white);
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
}

button {
  font: inherit;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-s);
  background: var(--lime);
  color: var(--deep);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.container {
  width: min(100% - 2 * clamp(16px, 4vw, 40px), 1200px);
  margin-inline: auto;
}

/* ---------- Бутони ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--r-s);
  font: 800 0.9375rem / 1.1 var(--text);
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.2s, color 0.2s, background-color 0.2s;
}

.btn .icon {
  width: 20px;
  height: 20px;
}

.btn--primary {
  border-color: rgba(195, 222, 120, 0.55);
  background: var(--lime-fill);
  color: var(--deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 24px -10px rgba(166, 205, 54, 0.7);
}

.btn--primary:hover {
  color: var(--deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(166, 205, 54, 0.7), 0 12px 32px -8px rgba(166, 205, 54, 0.6);
  transform: translateY(-1px);
}

/* Отблясък, който минава през бутона при посочване. */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .btn--primary:hover::after {
    transform: translateX(120%);
    transition: transform 0.75s var(--ease);
  }
}

.btn--ghost {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #242c31, #1a2024);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--white);
  box-shadow: var(--glow);
}

.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn--lg {
  min-height: 58px;
  padding: 16px 32px;
  font-size: 1.0625rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.actions--center {
  justify-content: center;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: var(--panel);
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.icon-btn:hover {
  border-color: var(--lime);
  box-shadow: var(--glow);
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--lime);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-btn .icon {
  width: 18px;
  height: 18px;
}

.link-strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.875rem;
  text-decoration: none;
}

.link-strong::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.link-strong:hover::after {
  transform: translateX(4px);
}

/* ---------- Горна лента ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}

/* Размазването е на псевдоелемент: backdrop-filter върху самата лента би затворил
   мобилното меню (position: fixed) в нейните граници. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 11, 12, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  width: 150px;
  flex: none;
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
}

.brand-badge {
  display: block;
  padding: 4px 6px 3px;
  border-radius: 3px;
  background: var(--lime);
  color: var(--deep);
  font: 800 1rem / 1 var(--display);
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 10px 0;
  color: var(--white);
  font: 800 0.875rem / 1 var(--text);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0) skewX(-24deg);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--lime);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1) skewX(-24deg);
}

.header-actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: var(--panel);
  color: var(--white);
  cursor: pointer;
}

.menu-toggle .i-close,
.menu-toggle[aria-expanded="true"] .i-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .i-close {
  display: block;
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  overflow: auto;
  padding: 28px 0 40px;
  background: radial-gradient(120% 60% at 100% 0%, rgba(166, 205, 54, 0.18), transparent 60%), var(--deep);
}

.mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu-main a {
  display: block;
  padding: 4px 0;
  color: var(--white);
  font: italic 900 clamp(2.6rem, 12vw, 3.6rem) / 1.05 var(--display);
  text-decoration: none;
  text-transform: uppercase;
}

.mobile-menu-main a[aria-current="page"],
.mobile-menu-main a:hover {
  color: var(--lime);
}

.mobile-menu-sub {
  display: grid;
  gap: 6px;
  margin: 28px 0 !important;
  padding-top: 24px !important;
  border-top: 1px solid var(--line);
}

.mobile-menu-sub a {
  color: var(--mist);
  font-weight: 700;
  text-decoration: none;
}

.mobile-menu-sub a[aria-current="page"] {
  color: var(--lime);
}

@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) .mobile-menu-main li {
    animation: slide-in 0.5s var(--ease) both;
  }

  .mobile-menu-main li:nth-child(2) { animation-delay: 0.05s; }
  .mobile-menu-main li:nth-child(3) { animation-delay: 0.1s; }
  .mobile-menu-main li:nth-child(4) { animation-delay: 0.15s; }
  .mobile-menu-main li:nth-child(5) { animation-delay: 0.2s; }
}

html.menu-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .main-nav,
  .header-actions .btn--ghost {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions + .menu-toggle {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 72px;
  }

  .header-actions {
    display: none;
  }

  .header-actions + .menu-toggle {
    margin-left: auto;
  }

  .brand {
    width: 128px;
  }

  .brand-badge {
    font-size: 0.875rem;
  }
}

/* ---------- Секции и заглавия ---------- */

.section {
  position: relative;
  overflow-x: clip;
  padding: clamp(64px, 9vw, 112px) 0;
}

.section--tight {
  padding: 40px 0 clamp(64px, 8vw, 96px);
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-head--center {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.section-title {
  color: var(--lime);
  font: 800 clamp(2rem, 4.4vw, 3.25rem) / 1.05 var(--text);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.section-title--sm {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
}

.section-intro {
  margin-top: 16px;
  color: var(--chalk);
  font-size: 1.0625rem;
}

.section-body {
  margin-top: clamp(32px, 5vw, 52px);
}

.lead {
  font-size: 1.125rem;
  color: var(--chalk);
}

.board-note {
  margin-top: 28px;
  color: var(--mist);
  font-size: 0.875rem;
  text-align: center;
}

/* Двойни дъги по краищата на секциите, като на bm.elitbet.bg. */
.arcs {
  position: absolute;
  top: 50%;
  z-index: 0;
  width: min(68vw, 720px);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.arcs::before,
.arcs::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 14px solid transparent;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 8deg, rgba(166, 205, 54, 0.7) 90deg, transparent 172deg, transparent) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box;
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box;
}

.arcs::after {
  inset: 34px;
  border-width: 8px;
  opacity: 0.75;
}

.arcs--left {
  left: calc(min(68vw, 720px) * -0.64);
}

.arcs--right {
  right: calc(min(68vw, 720px) * -0.64);
  transform: translateY(-50%) scaleX(-1);
}

/* ---------- Поява при превъртане ---------- */

/* Поява с анимация, а не с transition, за да не се губят преходите при посочване. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.is-in) {
    opacity: 0;
  }

  .js [data-reveal].is-in {
    animation: reveal 0.8s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 90ms);
  }

  .js .arcs[data-reveal].is-in {
    animation: arc-in 1.8s var(--ease) both;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 28px;
  }
}

@keyframes arc-in {
  from {
    opacity: 0;
    rotate: -50deg;
  }
}

/* ---------- Герой: портал ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(860px, calc(100svh - var(--header-h)));
  padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 120px);
  overflow: clip;
  background:
    radial-gradient(55% 65% at 74% 46%, rgba(166, 205, 54, 0.22), transparent 70%),
    radial-gradient(45% 28% at 74% 88%, rgba(166, 205, 54, 0.2), transparent 70%),
    linear-gradient(180deg, var(--deep) 0%, #0d1912 55%, var(--deep) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(transparent, var(--night));
  pointer-events: none;
}

.sparks {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-title {
  display: flex;
  flex-direction: column;
  font: italic 900 clamp(4.25rem, 10.5vw, 9.75rem) / 0.84 var(--display);
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.hero-kicker {
  margin-bottom: 22px;
  color: var(--lime);
  font: 800 0.9375rem / 1.2 var(--text);
  font-style: normal;
  letter-spacing: 0.22em;
}

.hero-line {
  display: block;
  padding-right: 0.08em;
  color: var(--white);
}

.hero-line--lime {
  padding-left: 0.38em;
  color: var(--lime);
}

.hero-lead {
  max-width: 46ch;
  margin-top: 30px;
  font-size: 1.125rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 44px 0 0;
}

.hero-stats div {
  display: flex;
  flex-direction: column-reverse;
  padding: 0 28px;
  border-left: 1px solid var(--glass-border);
}

.hero-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stats dd {
  margin: 0;
  color: var(--white);
  font: italic 900 3.25rem / 1 var(--display);
}

.hero-stats dt {
  margin-top: 6px;
  color: var(--mist);
  font: 800 0.75rem / 1.2 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 470px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.portal {
  position: absolute;
  inset: -42%;
  pointer-events: none;
  transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0);
  transition: transform 0.8s var(--ease);
}

.ring {
  position: absolute;
  border: var(--w) solid rgba(166, 205, 54, var(--a));
  border-radius: 50%;
  box-shadow: 0 0 calc(var(--w) * 2.5 + 6px) rgba(166, 205, 54, calc(var(--a) * 0.8)),
    inset 0 0 calc(var(--w) * 2.5 + 6px) rgba(166, 205, 54, calc(var(--a) * 0.6));
}

.r0 { inset: 30.5%; --w: 2px; --a: 0.95; }
.r1 { inset: 27%; --w: 8px; --a: 0.78; }
.r2 { inset: 23.5%; --w: 2px; --a: 0.6; }
.r3 { inset: 19%; --w: 13px; --a: 0.42; }
.r4 { inset: 14%; --w: 3px; --a: 0.34; }
.r5 { inset: 8.5%; --w: 18px; --a: 0.18; }
.r6 { inset: 3%; --w: 3px; --a: 0.14; }

.ripple {
  position: absolute;
  inset: 31%;
  border: 2px solid rgba(214, 236, 150, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(166, 205, 54, 0.6);
  opacity: 0;
}

.horizon {
  position: absolute;
  top: 50%;
  left: -12%;
  right: -12%;
  height: 4px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(238, 247, 207, 0.9) 30%, #fff 50%, rgba(238, 247, 207, 0.9) 70%, transparent);
  box-shadow: 0 0 18px 4px rgba(166, 205, 54, 0.65), 0 0 70px 14px rgba(166, 205, 54, 0.3);
  transform: translateY(-50%);
}

.rails {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280%;
  height: 120%;
  overflow: visible;
  transform: translateX(-50%);
}

.rails path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.rails-lines path {
  stroke: url(#rail-grad);
  stroke-width: 1.5;
}

.rails-pulses path {
  stroke: url(#rail-grad);
  stroke-width: 3;
  stroke-dasharray: 34 966;
  stroke-dashoffset: 1000;
  opacity: 0;
}

.medal--hero {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  width: 64%;
  aspect-ratio: 1;
  padding: 24px;
  border: 2px solid rgba(255, 201, 65, 0.9);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 201, 65, 0.2), transparent 55%),
    radial-gradient(circle at 50% 50%, #18210f 0%, #0c1113 72%);
  box-shadow: 0 0 0 9px rgba(255, 201, 65, 0.08), 0 0 0 10px rgba(255, 201, 65, 0.22), 0 0 70px rgba(255, 201, 65, 0.25),
    inset 0 0 42px rgba(255, 201, 65, 0.18);
  text-align: center;
  transform: translate3d(calc(var(--px, 0) * 8px), calc(var(--py, 0) * 6px), 0);
  transition: transform 0.8s var(--ease);
}

.medal-text {
  margin: 0;
}

.medal-text dt {
  color: var(--gold);
  font: 800 0.8125rem / 1.3 var(--text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.medal-text dd {
  margin: 10px 0 0;
  color: var(--white);
  font: italic 900 clamp(2rem, 4.2vw, 3.1rem) / 1 var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 0 26px rgba(255, 201, 65, 0.4);
}

.medal-note {
  margin-top: 10px;
  color: var(--mist);
  font-size: 0.75rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-line {
    animation: slide-in 0.9s var(--ease) both;
  }

  .hero-kicker {
    animation: fade-up 0.7s var(--ease) both;
  }

  .hero-line:nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero-line--lime {
    animation-delay: 0.2s;
  }

  .hero-lead,
  .hero .actions,
  .hero-stats {
    animation: fade-up 0.8s var(--ease) both;
  }

  .hero-lead { animation-delay: 0.35s; }
  .hero .actions { animation-delay: 0.45s; }
  .hero-stats { animation-delay: 0.55s; }

  /* Отблясък през лаймовия ред след появата му. */
  .hero-line--lime {
    background: linear-gradient(100deg, var(--lime) 42%, var(--lime-light) 50%, var(--lime) 58%) 0 0 / 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: slide-in 0.9s 0.2s var(--ease) both, sheen 7s 1.4s ease-in-out infinite;
  }

  .ring {
    animation: breathe 4.4s ease-in-out infinite;
    animation-delay: calc(var(--n) * 0.22s);
  }

  .ripple {
    animation: ripple 5s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
  }

  .ripple--2 {
    animation-delay: 2.5s;
  }

  .horizon {
    animation: horizon 4.4s ease-in-out infinite;
  }

  .rails-pulses path {
    animation: rail 3.6s linear infinite;
    animation-delay: var(--d);
  }

  .medal--hero {
    animation: medal-in 1s 0.15s var(--ease) both, float 6s 1.2s ease-in-out infinite;
  }

  .portal {
    animation: fade-in 1.4s var(--ease) both;
  }

  .hero.is-paused *,
  .page-hero.is-paused *,
  .page-hero.is-paused::before,
  .page-hero.is-paused::after {
    animation-play-state: paused !important;
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-56px) skewX(-12deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes sheen {
  0%,
  55% {
    background-position: 100% 0;
  }
  100% {
    background-position: -60% 0;
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.985);
  }
  50% {
    opacity: 1;
    transform: scale(1.012);
  }
}

@keyframes ripple {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  12% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(2.35);
  }
}

@keyframes horizon {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

@keyframes rail {
  0% {
    stroke-dashoffset: 1000;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes medal-in {
  from {
    opacity: 0;
    scale: 0.7;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

/* ---------- Джакпоти: светещи кръгове ---------- */

.medals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  margin: 0;
}

.medal {
  --size: 210px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: var(--size);
  aspect-ratio: 1;
  padding: calc(var(--size) * 0.1);
  border: 2px solid rgba(166, 205, 54, 0.9);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(166, 205, 54, 0.24) 0%, rgba(166, 205, 54, 0.08) 46%, rgba(12, 17, 19, 0.9) 74%);
  box-shadow: 0 0 0 10px rgba(166, 205, 54, 0.07), 0 0 0 11px rgba(166, 205, 54, 0.22), 0 0 46px rgba(166, 205, 54, 0.26),
    inset 0 0 28px rgba(166, 205, 54, 0.32);
  text-align: center;
}

.medal--grand {
  --size: 268px;
  border-color: rgba(255, 201, 65, 0.9);
  background: radial-gradient(circle at 50% 38%, rgba(255, 201, 65, 0.2) 0%, rgba(255, 201, 65, 0.06) 46%, rgba(12, 17, 19, 0.9) 74%);
  box-shadow: 0 0 0 10px rgba(255, 201, 65, 0.07), 0 0 0 11px rgba(255, 201, 65, 0.22), 0 0 56px rgba(255, 201, 65, 0.24),
    inset 0 0 30px rgba(255, 201, 65, 0.26);
}

.medal dt {
  color: var(--white);
  font: 800 0.8125rem / 1.2 var(--text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.medal dd {
  margin: 8px 0 0;
  color: var(--lime);
  font: italic 900 calc(var(--size) * 0.135) / 1 var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.medal--grand dd {
  color: var(--gold);
}

/* Светлина, която обикаля по ръба на кръга. */
.medals .medal::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(transparent 0 68%, rgba(238, 247, 207, 0.95) 80%, transparent 90%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  opacity: 0.8;
}

@media (prefers-reduced-motion: no-preference) {
  .medals .medal::before {
    animation: orbit 6s linear infinite;
  }

  .medals .medal:nth-child(2)::before { animation-duration: 7.5s; animation-delay: -2s; }
  .medals .medal:nth-child(3)::before { animation-duration: 5.2s; animation-delay: -4s; }
  .medals .medal:nth-child(4)::before { animation-duration: 8s; animation-delay: -1s; }
}

@keyframes orbit {
  to {
    transform: rotate(1turn);
  }
}

.medals--hall .medal {
  --size: 190px;
}

/* ---------- Карти ---------- */

.card,
.feature,
.news-item {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-m);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

/* Светлина под показалеца (координатите идват от main.js). */
.card::before,
.feature::before,
.news-item::before,
.map-panel::before,
.facts::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(166, 205, 54, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card:hover::before,
.feature:hover::before,
.news-item:hover::before,
.map-panel:hover::before,
.facts:hover::before {
  opacity: 1;
}

.card:hover,
.feature:hover,
.news-item:hover {
  border-color: rgba(166, 205, 54, 0.6);
  box-shadow: 0 22px 44px -24px rgba(166, 205, 54, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.offer-card {
  padding: 28px;
}

.offer-card:hover {
  transform: translateY(-4px);
}

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--lime);
  stroke-width: 1.6;
}

.offer-card h3 {
  margin-top: 22px;
  font: 800 1.375rem / 1.2 var(--text);
}

.offer-when {
  margin-top: 8px;
  color: var(--lime);
  font: 800 0.75rem / 1.3 var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offer-card p:last-child,
.card--wide p:last-child {
  margin-top: 12px;
  color: var(--mist);
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card--wide {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  padding: 32px;
}

.card--wide h2 {
  font: italic 900 2.5rem / 1 var(--display);
  text-transform: uppercase;
}

.card-badge {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(166, 205, 54, 0.3), rgba(12, 17, 19, 0.9) 72%);
  box-shadow: 0 0 0 6px rgba(166, 205, 54, 0.08), 0 0 24px rgba(166, 205, 54, 0.4);
  color: var(--lime);
}

.card-badge .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.6;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.feature {
  padding: 28px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-m);
  background: rgba(166, 205, 54, 0.12);
  color: var(--lime);
}

.feature-icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.7;
}

.feature h3 {
  margin-top: 20px;
  font: 800 1.25rem / 1.2 var(--text);
}

.feature p {
  margin-top: 10px;
  color: var(--mist);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.partner-slot {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 12px;
  border: 1px dashed var(--glass-border);
  border-radius: var(--r-m);
  background: rgba(29, 36, 41, 0.5);
  color: var(--mist);
  font-size: 0.8125rem;
  text-align: center;
}

/* ---------- Стъпки и история: светещи възли, свързани с линия ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 16.6%;
  right: 16.6%;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), rgba(166, 205, 54, 0.35));
  box-shadow: 0 0 12px rgba(166, 205, 54, 0.6);
  transform-origin: left;
}

.steps li {
  position: relative;
  padding: 0 8px;
  text-align: center;
}

.step-n,
.timeline-year {
  display: grid;
  place-items: center;
  border: 2px solid var(--lime);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2a3a12, var(--deep) 72%);
  box-shadow: 0 0 0 6px rgba(166, 205, 54, 0.1), 0 0 26px rgba(166, 205, 54, 0.5);
  color: var(--lime);
  font: italic 900 2.25rem / 1 var(--display);
}

.step-n {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
}

.steps h3,
.timeline h3 {
  font: 800 1.375rem / 1.2 var(--text);
}

.steps p,
.timeline p {
  max-width: 34ch;
  margin: 10px auto 0;
  color: var(--mist);
}

.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 48px;
  left: 43px;
  width: 2px;
  background: linear-gradient(var(--lime), rgba(166, 205, 54, 0.2));
  box-shadow: 0 0 12px rgba(166, 205, 54, 0.5);
  transform-origin: top;
}

.timeline li {
  position: relative;
  min-height: 88px;
  padding: 0 0 44px 124px;
}

.timeline-year {
  position: absolute;
  top: 0;
  left: 0;
  width: 88px;
  height: 88px;
  font-size: 1.75rem;
}

.timeline h3 {
  padding-top: 16px;
}

.timeline p {
  margin-left: 0;
  max-width: 56ch;
}

@media (prefers-reduced-motion: no-preference) {
  .js .steps::before {
    transform: scaleX(0);
    transition: transform 1.4s 0.3s var(--ease);
  }

  .js .steps.is-in::before {
    transform: none;
  }

  .js .timeline::before {
    transform: scaleY(0);
    transition: transform 1.6s 0.2s var(--ease);
  }

  .js .timeline.is-in::before {
    transform: none;
  }
}

/* ---------- Карта ---------- */

.citymap {
  position: relative;
  aspect-ratio: 1000 / 667;
  container-type: inline-size;
}

.citymap-land {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.citymap-land path {
  vector-effect: non-scaling-stroke;
}

.citymap-land .land {
  fill: rgba(166, 205, 54, 0.07);
  stroke: rgba(166, 205, 54, 0.6);
  stroke-width: 1.5;
}

.citymap-land .land-glow {
  fill: none;
  stroke: rgba(166, 205, 54, 0.22);
  stroke-width: 10;
  filter: blur(6px);
}

.citymap-pins {
  position: absolute;
  inset: 0;
}

.pin {
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.4s, scale 0.5s var(--ease);
}

.pin:hover,
.pin:focus-visible,
.pin.is-active {
  z-index: 2;
}

.pin:focus-visible {
  outline: none;
}

.pin-dot {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(166, 205, 54, 0.22), 0 0 18px 2px rgba(166, 205, 54, 0.7);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}

.pin-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(214, 236, 150, 0.85);
  border-radius: 50%;
  opacity: 0;
}

.pin-label {
  position: absolute;
  left: 12px;
  top: 0;
  padding: 6px 10px;
  border: 1px solid rgba(166, 205, 54, 0.35);
  border-radius: 999px;
  background: rgba(12, 17, 19, 0.9);
  color: var(--white);
  font: 800 0.8125rem / 1 var(--text);
  white-space: nowrap;
  transform: translateY(-50%);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.pin-count {
  margin-left: 2px;
  color: var(--lime);
}

.pin[data-side="left"] .pin-label { left: auto; right: 12px; }
.pin[data-side="top"] .pin-label { top: auto; bottom: 12px; transform: translateX(-50%); left: 0; }
.pin[data-side="bottom"] .pin-label { top: 12px; transform: translateX(-50%); left: 0; }
.pin[data-side="top-right"] .pin-label { left: 6px; top: auto; bottom: 6px; transform: none; }
.pin[data-side="bottom-right"] .pin-label { left: 6px; top: 6px; transform: none; }
.pin[data-side="top-left"] .pin-label { left: auto; right: 6px; top: auto; bottom: 6px; transform: none; }
.pin[data-side="bottom-left"] .pin-label { left: auto; right: 6px; top: 6px; transform: none; }

.pin:hover .pin-label {
  border-color: var(--lime);
}

.pin:focus-visible .pin-label {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.pin.is-active .pin-dot {
  background: var(--lime-light);
  transform: scale(1.25);
}

.pin.is-active .pin-label {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--deep);
}

.pin.is-active .pin-count {
  color: var(--deep);
}

/* Градовете извън филтъра са сиви, но надписите им остават четими. */
.citymap .pin.is-dim .pin-dot {
  background: var(--line-strong);
  box-shadow: none;
}

.citymap .pin.is-dim .pin-label {
  border-color: var(--line);
  color: var(--mist);
}

.citymap .pin.is-dim .pin-count {
  color: var(--mist);
}

@media (prefers-reduced-motion: no-preference) {
  .pin.is-active .pin-dot::after {
    animation: ping 2.2s ease-out infinite;
  }

  .citymap.pins-wait:not(.pins-in) .pin {
    opacity: 0;
    scale: 0.4;
  }

  .citymap.pins-in .pin {
    transition-delay: calc(var(--i) * 80ms);
  }
}

@keyframes ping {
  0% {
    opacity: 0.9;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

@container (max-width: 520px) {
  .pin-label {
    padding: 4px 7px;
    font-size: 0.6875rem;
  }

  .pin-dot {
    top: -5px;
    left: -5px;
    width: 10px;
    height: 10px;
  }
}

.map-block {
  position: relative;
  display: grid;
  gap: 20px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-l);
  background: var(--glass);
}

.map-panel {
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.map-callout {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: rgba(12, 17, 19, 0.62);
}

.callout-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.callout-title {
  font: italic 900 2.5rem / 1 var(--display);
  text-transform: uppercase;
}

.callout-head p {
  color: var(--lime);
  font-weight: 800;
}

.callout-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.callout-list li {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: rgba(29, 36, 41, 0.6);
}

.callout-list a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.callout-list a:hover {
  color: var(--lime);
}

.callout-list span {
  color: var(--mist);
  font-size: 0.875rem;
}

.callout-list .status {
  margin-top: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .map-callout > * {
    animation: fade-up 0.5s var(--ease) both;
  }

  .map-callout > :nth-child(2) { animation-delay: 0.06s; }
  .map-callout > :nth-child(3) { animation-delay: 0.12s; }
}

/* ---------- Състояние: отворено / затворено ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--lime-pale);
  font: 700 0.8125rem / 1.3 var(--text);
}

.status::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(166, 205, 54, 0.2), 0 0 10px rgba(166, 205, 54, 0.8);
}

.status.is-closed {
  color: var(--alert);
}

.status.is-closed::before {
  background: var(--alert);
  box-shadow: 0 0 0 3px rgba(242, 111, 99, 0.2);
}

.status--live {
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(166, 205, 54, 0.08);
  font-size: 0.875rem;
}

/* ---------- Вътрешни страници ---------- */

.page-hero {
  position: relative;
  overflow: clip;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(48% 110% at 92% 0%, rgba(166, 205, 54, 0.18), transparent 60%),
    linear-gradient(180deg, var(--deep), var(--night));
}

/* Част от портала в десния край. */
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -190px;
  width: 540px;
  aspect-ratio: 1;
  border: 12px solid rgba(166, 205, 54, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(166, 205, 54, 0.18), inset 0 0 40px rgba(166, 205, 54, 0.14);
  transform: translateY(-50%);
  pointer-events: none;
}

.page-hero::after {
  right: -110px;
  width: 380px;
  border-width: 3px;
  border-color: rgba(166, 205, 54, 0.45);
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-title {
  font: italic 900 clamp(3.25rem, 8vw, 6.75rem) / 0.88 var(--display);
  text-transform: uppercase;
}

.page-title em {
  color: var(--lime);
  font-style: inherit;
}

.page-title--md {
  max-width: 18ch;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 0.92;
}

.page-title-kind {
  display: block;
  margin-bottom: 14px;
  color: var(--mist);
  font: 800 0.9375rem / 1.2 var(--text);
  font-style: normal;
  letter-spacing: 0.2em;
}

.page-lead {
  max-width: 60ch;
  margin-top: 22px;
  font-size: 1.125rem;
}

.article-date {
  display: inline-block;
  margin-top: 18px;
  color: var(--lime);
  font: 800 0.8125rem / 1 var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font: 700 0.8125rem / 1.3 var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--lime);
}

.breadcrumb [aria-current] {
  color: var(--lime);
}

@media (prefers-reduced-motion: no-preference) {
  .page-title,
  .page-hero .page-lead,
  .page-hero .breadcrumb,
  .article-date {
    animation: slide-in 0.8s var(--ease) both;
  }

  .page-hero .page-lead,
  .article-date {
    animation-name: fade-up;
    animation-delay: 0.2s;
  }

  .page-hero::before,
  .page-hero::after {
    animation: breathe 5s ease-in-out infinite;
  }

  .page-hero::after {
    animation-delay: 0.6s;
  }
}

/* ---------- Текст ---------- */

.prose {
  max-width: 74ch;
}

.prose > * + * {
  margin-top: 18px;
}

.prose h2 {
  position: relative;
  margin-top: 44px;
  padding-left: 22px;
  font: 800 1.5rem / 1.25 var(--text);
}

.prose h2::before {
  content: "";
  position: absolute;
  top: 0.18em;
  bottom: 0.18em;
  left: 0;
  width: 6px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(166, 205, 54, 0.6);
  transform: skewX(-14deg);
}

.prose ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: 22px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--lime);
  transform: skewX(-14deg);
}

.prose .lead {
  color: var(--white);
}

.note {
  padding: 16px 18px;
  border: 1px solid rgba(255, 201, 65, 0.4);
  border-radius: var(--r-m);
  background: rgba(255, 201, 65, 0.07);
  color: var(--chalk);
}

.back-link {
  margin-top: 36px !important;
}

.prose .help-list {
  gap: 12px;
}

.prose .help-list li {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-m);
  background: var(--glass);
}

.prose .help-list li::before {
  display: none;
}

.help-list strong {
  color: var(--white);
}

.help-list span {
  color: var(--mist);
}

/* ---------- Актуално ---------- */

.news-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 22px;
}

.news-art {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(166, 205, 54, 0.28), rgba(12, 17, 19, 0.9) 72%);
  box-shadow: 0 0 0 6px rgba(166, 205, 54, 0.08), 0 0 24px rgba(166, 205, 54, 0.35);
  color: var(--lime);
}

.news-art .icon {
  width: 38px;
  height: 38px;
  stroke-width: 1.6;
}

.news-body time {
  color: var(--lime);
  font: 800 0.75rem / 1 var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-body h2 {
  margin-top: 10px;
  font: 800 1.375rem / 1.25 var(--text);
}

.news-body h2 a {
  color: var(--white);
  text-decoration: none;
}

.news-body h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.news-body h2 a:hover {
  color: var(--lime);
}

.news-body p {
  margin-top: 6px;
  color: var(--mist);
}

/* ---------- Игрални зали ---------- */

.halls-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: start;
  gap: 32px;
}

.halls-tools {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--chalk);
  font: 800 0.8125rem / 1.3 var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: var(--deep);
  color: var(--mist);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search:focus-within {
  border-color: var(--lime);
  box-shadow: var(--glow);
}

.search input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 0;
  background: none;
  color: var(--white);
  font: 600 1rem / 1.2 var(--text);
}

.search input:focus {
  outline: none;
}

.search input::placeholder {
  color: var(--mist);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(29, 36, 41, 0.7);
  color: var(--chalk);
  font: 700 0.875rem / 1 var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.chip span {
  color: var(--lime);
  font-weight: 800;
}

.chip:hover {
  border-color: var(--lime);
}

.chip[aria-pressed="true"] {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--deep);
}

.chip[aria-pressed="true"] span {
  color: var(--deep);
}

.halls-status {
  color: var(--mist);
  font-size: 0.875rem;
}

.halls-map {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-l);
  background: var(--glass);
}

.halls-map-note {
  margin-top: 12px;
  color: var(--mist);
  font-size: 0.875rem;
  text-align: center;
}

.city-group + .city-group {
  margin-top: 40px;
}

.city-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 14px;
}

.city-head h2 {
  font: italic 900 2.5rem / 1 var(--display);
  text-transform: uppercase;
}

.city-head p {
  color: var(--mist);
  font-weight: 700;
}

.city-halls,
.others,
.finder-list {
  display: grid;
  gap: 12px;
}

.hall-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.hall-name {
  font: 800 1.1875rem / 1.25 var(--text);
}

.hall-name a {
  color: var(--white);
  text-decoration: none;
}

.hall-name a:hover {
  color: var(--lime);
}

.hall-addr {
  margin-top: 4px;
  color: var(--mist);
  font-size: 0.9375rem;
}

.hall-km {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(166, 205, 54, 0.14);
  color: var(--lime-pale);
  font-size: 0.8125rem;
  font-weight: 800;
}

.hall-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 28px;
  border: 1px dashed var(--glass-border);
  border-radius: var(--r-m);
}

.empty-title {
  color: var(--white);
  font-weight: 800;
}

/* ---------- Страница на зала ---------- */

.hall-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hall-hero .page-title {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
}

.hall-text {
  max-width: 54ch;
  margin-top: 18px;
  font-size: 1.0625rem;
}

.facts {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-l);
  background: rgba(12, 17, 19, 0.7);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(166, 205, 54, 0.2);
}

.facts dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.facts dl > div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mist);
  font: 800 0.75rem / 1.2 var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts dt .icon {
  width: 18px;
  height: 18px;
  color: var(--lime);
}

.facts dd {
  margin: 6px 0 0;
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 700;
}

.facts dd a {
  color: var(--white);
}

.subsection + .subsection {
  margin-top: clamp(56px, 8vw, 88px);
}

.subsection-title {
  margin-bottom: 24px;
  color: var(--lime);
  font: 800 clamp(1.5rem, 3vw, 2rem) / 1.1 var(--text);
  text-transform: uppercase;
}

.subsection--center {
  text-align: center;
}

.subsection-more {
  margin-top: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery img,
.photo-slot {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-m);
  object-fit: cover;
}

.photo-slot,
.tour-slot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed var(--glass-border);
  background: var(--glass);
  color: var(--mist);
  font-size: 0.875rem;
}

.photo-slot .icon,
.tour-slot .icon {
  width: 30px;
  height: 30px;
  color: var(--lime);
}

.tour-slot {
  aspect-ratio: 21 / 9;
  border-radius: var(--r-l);
  text-align: center;
}

[data-hall-tour] iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--r-l);
}

.map-frame {
  display: block;
  width: 100%;
  height: 380px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-l);
  filter: grayscale(0.3) invert(0.92) hue-rotate(180deg) brightness(0.9) contrast(0.92);
}

.map-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--mist);
}

/* ---------- Призив в края на началната страница ---------- */

.cta-band {
  position: relative;
  overflow: clip;
  padding: clamp(88px, 13vw, 160px) 0 clamp(96px, 14vw, 170px);
  background: radial-gradient(60% 85% at 50% 115%, rgba(166, 205, 54, 0.32), transparent 70%), var(--night);
  text-align: center;
}

.cta-band > .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  font: italic 900 clamp(3.25rem, 10vw, 7.5rem) / 0.86 var(--display);
  text-transform: uppercase;
}

.cta-title em {
  display: block;
  color: var(--lime);
  font-style: inherit;
}

.cta-text {
  margin-top: 22px;
  font-size: 1.125rem;
}

/* ---------- Долна лента ---------- */

.site-footer {
  padding: 56px 0 120px;
  border-top: 1px solid var(--line);
  background: var(--deep);
  text-align: center;
}

.brand--footer {
  width: 190px;
  margin-inline: auto;
}

.brand--footer .brand-badge {
  font-size: 1.25rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--white);
  font: 800 0.8125rem / 1.3 var(--text);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--lime);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: var(--panel);
  color: var(--chalk);
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.footer-social a:hover {
  border-color: var(--lime);
  color: var(--lime);
  box-shadow: var(--glow);
}

.footer-warning {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 70ch;
  margin-top: 32px;
  color: var(--chalk);
  font-weight: 700;
  text-align: left;
}

.age-badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--alert);
  border-radius: 50%;
  color: var(--white);
  font: 800 0.875rem / 1 var(--text);
}

.footer-legal {
  max-width: 92ch;
  margin: 18px auto 0;
  color: var(--mist);
  font-size: 0.875rem;
}

.footer-copy {
  margin-top: 16px;
  color: var(--mist);
  font-size: 0.8125rem;
}

/* ---------- „Намери зала“ ---------- */

.finder-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid rgba(195, 222, 120, 0.6);
  border-radius: 999px;
  background: var(--lime-fill);
  color: var(--deep);
  font: 800 0.9375rem / 1 var(--text);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 34px -12px rgba(166, 205, 54, 0.7);
  transition: transform 0.25s var(--ease);
}

.finder-fab:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: no-preference) {
  .finder-fab::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(166, 205, 54, 0.55);
    animation: fab-ping 3.6s 2s infinite;
    pointer-events: none;
  }
}

@keyframes fab-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(166, 205, 54, 0.5);
  }
  60%,
  100% {
    box-shadow: 0 0 0 18px rgba(166, 205, 54, 0);
  }
}

.finder {
  width: min(100% - 24px, 780px);
  max-height: min(88vh, 860px);
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-l);
  background: linear-gradient(180deg, #172117, #0f1517 40%);
  color: var(--chalk);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 60px -20px rgba(166, 205, 54, 0.35);
}

.finder::backdrop {
  background: rgba(5, 8, 9, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: no-preference) {
  .finder[open] {
    animation: dialog-in 0.4s var(--ease);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}

.finder-inner {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.finder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 0;
}

.finder-head h2 {
  font: italic 900 2.5rem / 1 var(--display);
  text-transform: uppercase;
}

.finder-head h2 em {
  color: var(--lime);
  font-style: inherit;
}

.finder-tools {
  display: grid;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.finder-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.finder-count {
  color: var(--chalk);
  font-weight: 700;
}

.finder-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--deep);
}

.seg button {
  min-height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--chalk);
  font: 800 0.8125rem / 1 var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--deep);
}

.finder-body {
  overflow: auto;
  padding: 18px 24px 24px;
  overscroll-behavior: contain;
}

.finder .hall-row {
  padding: 16px 18px;
}

/* ---------- Отзивчивост ---------- */

@media (max-width: 1100px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .halls-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .halls-map {
    position: static;
    order: -1;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .hall-hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 0;
  }

  .hero-stage {
    width: min(78%, 400px);
    margin-top: 24px;
  }

  .map-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 5vw, 56px);
}

.split-text .lead {
  margin-top: 18px;
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    max-width: 420px;
    margin-inline: auto;
  }

  .steps::before {
    top: 36px;
    bottom: 36px;
    left: 35px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(var(--lime), rgba(166, 205, 54, 0.3));
    transform-origin: top;
  }

  .js .steps:not(.is-in)::before {
    transform: scaleY(0);
  }

  .steps li {
    padding: 0 0 0 96px;
    text-align: left;
  }

  .step-n {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
  }

  .steps h3 {
    padding-top: 18px;
  }

  .steps p {
    margin-left: 0;
  }

  .hall-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .card--wide {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
  }

  .news-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-art {
    width: 64px;
    height: 64px;
  }

  .news-art .icon {
    width: 28px;
    height: 28px;
  }

  .map-frame {
    height: 300px;
  }

  .tour-slot {
    aspect-ratio: 4 / 3;
    padding: 16px;
  }
}

@media (max-width: 560px) {
  .features,
  .partner-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-stats div {
    padding: 0 18px;
  }

  .hero-stats dd {
    font-size: 2.5rem;
  }

  .medal {
    --size: 150px;
  }

  .medal--grand {
    --size: 220px;
    flex-basis: 100%;
    max-width: 220px;
  }

  .medals--hall .medal {
    --size: 150px;
  }

  .medal dt {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
  }

  .timeline li {
    padding-left: 96px;
  }

  .timeline-year {
    width: 72px;
    height: 72px;
    font-size: 1.4rem;
  }

  .timeline::before {
    left: 35px;
  }

  .finder-head {
    padding: 18px 16px 0;
  }

  .finder-tools,
  .finder-body {
    padding-inline: 16px;
  }

  .finder-fab {
    right: 16px;
    bottom: 16px;
  }

  .gallery {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
