/*
  Игрални зали ELITBET, дизайн 2 „Пътеводител“
  Тъмната тема на elitbet.bg. Лаймът е линията, която свързва залите като линия на метро;
  по нея се движат влакчета, а джакпотите са на табло с пластинки като на гара.
  Шрифт: Geologica, с български форми на кирилицата.
*/

:root {
  --night: #11181b;
  --deep: #0c1113;
  --panel: #1d2429;
  --raise: #292e30;
  --line-strong: #3a4144;
  --lime: #a6cd36;
  --lime-hover: #b8d75e;
  --lime-pale: #c3de78;
  --lime-tint: rgba(166, 205, 54, 0.1);
  --chalk: #e1e1e1;
  --mist: #9d9fa6;
  --white: #ffffff;
  --gold: #ffc941;
  --alert: #f26f63;

  --font: "Geologica", "Segoe UI", system-ui, sans-serif;

  --fs-sm: 0.9375rem;
  --fs-base: 1.125rem;
  --fs-md: 1.3125rem;
  --fs-lg: 1.75rem;
  --fs-xl: 2.5rem;
  --fs-2xl: 3.5rem;

  --r-s: 4px;
  --r-m: 8px;
  --r-l: 12px;
  --line: 8px;
  /* Тънка лаймова рамка със сияние, като картите на elitbet.bg. */
  --glow: 0 0 0 1px rgba(166, 205, 54, 0.6), 0 0 22px rgba(166, 205, 54, 0.18);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 7vw, 96px);
  --header-h: 76px;

  --z-fab: 30;
  --z-menu: 39;
  --z-header: 40;
  --z-skip: 100;
}

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

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

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

html.menu-open,
html:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font: 400 var(--fs-base) / 1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

p,
ul,
ol,
dl,
figure {
  margin: 0;
}

p,
li,
dd {
  text-wrap: pretty;
}

a {
  color: var(--chalk);
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

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

button {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--lime);
  color: var(--night);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  border-radius: var(--r-s);
  background: var(--lime);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---------- Бутони и връзки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--r-s);
  font: 600 1rem / 1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn--primary {
  background: var(--lime);
  color: var(--night);
}

.btn--primary:hover {
  background: var(--lime-hover);
  color: var(--night);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--chalk);
}

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

.btn--outline {
  background: transparent;
  border-color: var(--lime);
  color: var(--lime);
}

.btn--outline:hover {
  background: var(--lime);
  color: var(--night);
}

.btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

.btn--lg {
  min-height: 60px;
  padding: 0 28px;
  font-size: 1.0625rem;
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: var(--fs-sm);
}

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

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

.link-strong {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  font-weight: 700;
}

.text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--lime);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

/* ---------- Хедър ---------- */

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: var(--chalk);
  text-decoration: none;
}

.brand img {
  width: 132px;
  height: auto;
}

/* Подзаглавието започва със спирка на линията. */
.brand-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 0.9375rem / 1 var(--font);
}

.brand-sub::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 3px solid var(--lime);
  border-radius: 50%;
}

/* Менюто е отсечка от линия: всяка страница е спирка, текущата е запълнена. */
.main-nav {
  margin-left: auto;
}

.main-nav ul {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 0;
  list-style: none;
}

.main-nav ul::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 3px;
  height: 3px;
  border-radius: 2px;
  background: var(--line-strong);
}

.main-nav a {
  position: relative;
  display: block;
  padding: 10px 14px 18px;
  color: var(--chalk);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border: 3px solid var(--line-strong);
  border-radius: 50%;
  background: var(--deep);
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}

.main-nav a:hover {
  color: var(--white);
}

.main-nav a:hover::after {
  border-color: var(--lime);
}

.main-nav a[aria-current="page"] {
  color: var(--white);
  font-weight: 700;
}

.main-nav a[aria-current="page"]::after {
  border-color: var(--lime);
  background: var(--lime);
  transform: scale(1.3);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  place-items: center;
  border: 2px solid var(--line-strong);
  border-radius: var(--r-s);
  background: transparent;
  color: var(--chalk);
  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: var(--z-menu);
  overflow-y: auto;
  background: var(--deep);
  padding: 24px var(--gutter) 48px;
}

/* В мобилното меню линията е вертикална. */
.mobile-menu-main {
  position: relative;
  padding: 0 0 0 36px;
  list-style: none;
}

.mobile-menu-main::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 9px;
  width: 4px;
  border-radius: 2px;
  background: var(--line-strong);
}

.mobile-menu-main a {
  position: relative;
  display: block;
  padding: 12px 0;
  color: var(--white);
  font: 700 var(--fs-lg) / 1.2 var(--font);
  text-decoration: none;
}

.mobile-menu-main a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -36px;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border: 4px solid var(--line-strong);
  border-radius: 50%;
  background: var(--deep);
}

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

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

.mobile-menu-sub {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.mobile-menu-sub a {
  display: inline-block;
  padding: 8px 0;
  color: var(--mist);
  text-decoration: none;
}

.mobile-menu .btn {
  margin-top: 24px;
}

@media (max-width: 1000px) {
  .main-nav,
  .header-online {
    display: none;
  }

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

@media (max-width: 420px) {
  .brand img {
    width: 108px;
  }

  .brand-sub {
    gap: 8px;
    font-size: 0.875rem;
  }
}

/* ---------- Секции ---------- */

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.section--deep {
  background: var(--deep);
}

.section--flush-top {
  padding-top: 0;
}

/* Заглавието на секция „тръгва“ по сива линия, както на elitbet.bg. */
.section-title {
  display: flex;
  align-items: center;
  gap: 24px;
  font: 800 clamp(2.25rem, 4.4vw, var(--fs-2xl)) / 1.04 var(--font);
  letter-spacing: -0.02em;
}

.section-title::after {
  content: "";
  flex: 1;
  min-width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--line-strong);
  transform-origin: left;
}

@media (max-width: 560px) {
  .section-title::after {
    display: none;
  }
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head > div {
  flex: 1;
}

.section-intro {
  max-width: 60ch;
  margin-top: 14px;
  color: var(--mist);
}

.section-body {
  margin-top: clamp(28px, 4vw, 44px);
}

.lead {
  font-size: var(--fs-md);
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.split-text > * + * {
  margin-top: 20px;
}

.split-text .section-title::after {
  display: none;
}

.split-text .actions {
  margin-top: 32px;
}

.split--board {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
}

.split--board .jp-board {
  max-width: none;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Начало: търсене и схема ---------- */

.hero {
  padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-title {
  max-width: 12ch;
  font: 800 clamp(2.75rem, 5.4vw, 4.6rem) / 1 var(--font);
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 40ch;
  margin-top: 20px;
  font-size: var(--fs-md);
  line-height: 1.5;
}

.hero-search {
  margin-top: clamp(28px, 4vw, 40px);
}

.search-row {
  display: flex;
  gap: 8px;
}

.search-row .search {
  flex: 1;
}

.nearest {
  margin-top: 16px;
}

.nearest-result {
  max-width: 46ch;
}

.nearest-result:not(:empty) {
  margin-top: 16px;
  padding: 16px 18px;
  border-left: var(--line) solid var(--lime);
  border-radius: 0 var(--r-m) var(--r-m) 0;
  background: var(--panel);
}

.nearest-result .link-strong {
  min-height: 36px;
  margin-top: 4px;
}

.online {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-m);
  background: var(--panel);
  box-shadow: var(--glow);
}

.online-title {
  font: 800 clamp(1.75rem, 3vw, 2.25rem) / 1.1 var(--font);
  letter-spacing: -0.02em;
}

.online p {
  max-width: 56ch;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .search-row {
    flex-direction: column;
  }
}

/* ---------- Схема на мрежата ---------- */

/* Размерът на надписите зависи от ширината на самата схема, не на екрана. */
.net {
  position: relative;
  width: 100%;
  container-type: inline-size;
}

.net-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(166, 205, 54, 0.35));
}

.net-lines path {
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.net-stations {
  position: absolute;
  inset: 0;
}

.station {
  --mark: 22px;
  --gap: 19px;
  position: absolute;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--chalk);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.station--big {
  --mark: 30px;
  --gap: 23px;
}

.station::before,
.station::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--mark);
  height: var(--mark);
  margin: auto;
  border-radius: 50%;
}

.station::before {
  border: 5px solid var(--chalk);
  background: var(--net-bg, var(--night));
  transition: background-color 0.2s, border-color 0.2s;
}

/* Кръг, който се разлива при избор на град. */
.station::after {
  border: 3px solid var(--lime);
  opacity: 0;
  pointer-events: none;
}

.station.is-pinged::after {
  animation: ping 0.9s ease-out;
}

@keyframes ping {
  from {
    opacity: 0.9;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(2.6);
  }
}

/* Надписът е с фона на схемата, за да остава четим и над линия. */
.station-label {
  position: absolute;
  padding: 4px 7px;
  border-radius: var(--r-s);
  background: var(--net-bg, var(--night));
  font: 700 1rem / 1.15 var(--font);
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.station-count {
  color: var(--mist);
  font-weight: 500;
}

.station[data-side="right"] .station-label {
  left: calc(50% + var(--gap));
  top: 50%;
  transform: translateY(-50%);
}

.station[data-side="left"] .station-label {
  right: calc(50% + var(--gap));
  top: 50%;
  transform: translateY(-50%);
}

.station[data-side="bottom"] .station-label {
  top: calc(50% + var(--gap));
  left: 50%;
  transform: translateX(-50%);
}

.station[data-side="top"] .station-label {
  bottom: calc(50% + var(--gap));
  left: 50%;
  transform: translateX(-50%);
}

.station[data-side="top-right"] .station-label {
  bottom: calc(50% + var(--gap) * 0.7);
  left: calc(50% + var(--gap) * 0.7);
}

.station[data-side="bottom-right"] .station-label {
  top: calc(50% + var(--gap) * 0.7);
  left: calc(50% + var(--gap) * 0.7);
}

.station[data-side="top-left"] .station-label {
  bottom: calc(50% + var(--gap) * 0.7);
  right: calc(50% + var(--gap) * 0.7);
}

.station[data-side="bottom-left"] .station-label {
  top: calc(50% + var(--gap) * 0.7);
  right: calc(50% + var(--gap) * 0.7);
}

.station:not([data-side]) .station-label {
  visibility: hidden;
}

.station:hover::before,
.station.is-arriving::before {
  border-color: var(--lime);
}

.station:hover .station-label {
  color: var(--white);
}

/* Избраният град: лаймова гара и надпис като табела. */
.station.is-active::before {
  border-color: var(--white);
  background: var(--lime);
}

.station.is-active .station-label {
  background: var(--lime);
  color: var(--night);
}

.station.is-active .station-count {
  color: var(--night);
}

.station.is-dim::before {
  border-color: var(--line-strong);
}

.station.is-dim .station-label {
  color: var(--mist);
}

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

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

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

/* Влакче: светла точка, която обикаля линиите и спира по гарите. */
.train {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(166, 205, 54, 0.45), 0 0 14px 2px rgba(166, 205, 54, 0.8);
  pointer-events: none;
  will-change: transform;
}

/*
  Първо появяване: линиите се изрисуват от най-големия град навън, гарите изскачат,
  когато линията стигне до тях. Закъсненията (--d) идват от JavaScript.
*/
/* Тире с дължината на цялата линия и празнина след него: отместването го скрива изцяло. */
.net.is-waiting .net-lines path {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1.01;
}

.net.is-waiting .station::before,
.net.is-waiting .station-label {
  opacity: 0;
}

.net.is-drawing .net-lines path {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1.01;
  animation: draw 0.36s ease-in-out var(--d, 0s) forwards;
}

.net.is-drawing .station::before {
  opacity: 0;
  animation: pop 0.3s cubic-bezier(0.2, 1.6, 0.4, 1) var(--d, 0s) forwards;
}

.net.is-drawing .station-label {
  opacity: 0;
  animation: fade-in 0.3s ease-out calc(var(--d, 0s) + 0.15s) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pop {
  from {
    opacity: 1;
    transform: scale(0);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@container (max-width: 600px) {
  .station-label {
    padding: 2px 5px;
    font-size: 0.8125rem;
  }

  /* В тясна схема броят на залите остава само за екранните четци. */
  .station-count {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@container (max-width: 420px) {
  .station {
    --mark: 18px;
    --gap: 15px;
  }

  .station--big {
    --mark: 24px;
    --gap: 18px;
  }

  .station::before {
    border-width: 4px;
  }

  .station-label {
    padding: 2px 4px;
    font-size: 0.75rem;
  }

  .train {
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
  }
}

@media (max-width: 640px) {
  :root {
    --line: 6px;
  }
}

/* ---------- Табло с пластинки ---------- */

/* Всяка цифра е пластинка с хоризонтален процеп; при смяна тя се преобръща. */
.flaps {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  perspective: 300px;
}

.flap {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 0.78em;
  height: 1.32em;
  padding: 0 0.08em;
  border-radius: 3px;
  background: var(--raise);
  color: var(--white);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}

.flap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--deep);
}

.flap-sep {
  color: var(--mist);
}

.station-board {
  margin-top: 16px;
  padding: 20px 24px 12px;
  border-radius: var(--r-m);
  background: var(--panel);
}

.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 12px;
}

.board-title {
  font: 800 var(--fs-lg) / 1.1 var(--font);
}

.board-title .flaps {
  gap: 2px;
}

.board-title .flap {
  min-width: 0.8em;
  font-size: 0.82em;
}

.board-head p {
  color: var(--mist);
  font-size: var(--fs-sm);
}

.board-list {
  padding: 0;
  list-style: none;
}

.board-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--raise);
  animation: row-in 0.4s ease-out calc(var(--i, 0) * 70ms + 0.15s) both;
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.board-list a {
  color: var(--white);
  font-weight: 700;
}

.board-list .status {
  margin-top: 0;
  white-space: nowrap;
}

.station-board .link-strong {
  margin-top: 4px;
}

/* На началната страница табелата е лента под схемата: град, зали, връзка. */
.station-board--wide {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 3fr) auto;
  align-items: center;
  gap: 16px 32px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 20px 28px;
  box-shadow: var(--glow);
}

.station-board--wide .board-head {
  display: block;
  padding: 0;
}

.station-board--wide .board-head p {
  margin-top: 6px;
}

.station-board--wide .board-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px 24px;
}

.station-board--wide .board-list li {
  display: grid;
  gap: 2px;
  padding: 2px 0 2px 16px;
  border-top: 0;
  border-left: 4px solid var(--lime);
}

.station-board--wide .link-strong {
  margin-top: 0;
}

@media (max-width: 900px) {
  .station-board--wide {
    grid-template-columns: 1fr;
    padding: 20px 22px;
  }
}

/* ---------- Джакпоти ---------- */

.jp-board {
  max-width: 760px;
  padding: clamp(12px, 2vw, 20px) clamp(16px, 3vw, 32px);
  border-radius: var(--r-m);
  background: var(--panel);
}

.jp-list {
  display: grid;
}

.jp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 14px 0;
}

.jp + .jp {
  border-top: 1px solid var(--raise);
}

.jp dt {
  color: var(--mist);
  font-size: var(--fs-md);
  font-weight: 600;
}

.jp dd {
  margin: 0;
  font: 700 clamp(1.5rem, 2.8vw, 2.25rem) / 1 var(--font);
}

.jp--grand dt {
  color: var(--gold);
}

.jp--grand .flap {
  color: var(--gold);
}

.board-note {
  margin-top: 20px;
  color: var(--mist);
  font-size: var(--fs-sm);
}

/* ---------- Оферти ---------- */

.plaque {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(166, 205, 54, 0.6);
  border-radius: var(--r-m);
  background: var(--lime-tint);
  color: var(--lime);
}

.plaque-icon {
  width: 32px;
  height: 32px;
}

.plaque--lg {
  width: 112px;
  height: 112px;
  border-radius: var(--r-l);
}

.plaque--lg .plaque-icon {
  width: 56px;
  height: 56px;
}

.plaque--sm {
  width: 46px;
  height: 46px;
}

.plaque--sm .plaque-icon {
  width: 26px;
  height: 26px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px clamp(32px, 6vw, 80px);
  padding: 0;
  list-style: none;
}

.offer-cell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.offer-cell:hover .plaque {
  box-shadow: var(--glow);
}

.offer-cell h3 {
  font: 700 var(--fs-lg) / 1.15 var(--font);
  letter-spacing: -0.015em;
}

.offer-cell p:last-child {
  max-width: 44ch;
  margin-top: 8px;
  color: var(--mist);
}

.offer-when {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--lime-pale);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.offer-when .icon {
  width: 17px;
  height: 17px;
}

@media (max-width: 760px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }
}

.offer-list {
  display: grid;
}

.offer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  padding-block: 40px;
  border-bottom: 1px solid var(--raise);
}

.offer-row:first-child {
  padding-top: 0;
}

.offer-body h2 {
  font: 800 clamp(2rem, 3.6vw, 2.75rem) / 1.05 var(--font);
  letter-spacing: -0.02em;
}

.offer-body p:last-child {
  max-width: 58ch;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .offer-row .plaque--lg {
    width: 64px;
    height: 64px;
    border-radius: var(--r-m);
  }

  .offer-row .plaque--lg .plaque-icon {
    width: 34px;
    height: 34px;
  }
}

.offer-lines {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  padding: 0;
  list-style: none;
}

.offer-line {
  display: flex;
  gap: 18px;
  padding: 16px 0;
}

.offer-line h3 {
  font: 700 var(--fs-md) / 1.25 var(--font);
}

.offer-line p {
  max-width: 60ch;
  margin-top: 4px;
  color: var(--mist);
}

/* ---------- Линия със спирки: стъпки, история ---------- */

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

.steps {
  counter-reset: step;
}

.steps li,
.timeline li {
  position: relative;
  padding-top: 64px;
}

/* Отсечката до следващата спирка. */
.steps li:not(:last-child)::after,
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 22px;
  width: calc(100% + 32px);
  height: var(--line);
  border-radius: 4px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(166, 205, 54, 0.3);
}

.steps li::before,
.timeline li::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 5px solid var(--chalk);
  border-radius: 50%;
  background: var(--night);
  color: var(--white);
  font: 800 1.0625rem / 1 var(--font);
}

.steps li::before {
  content: counter(step);
  counter-increment: step;
}

.timeline li::before {
  content: "";
}

.timeline li:last-child::before {
  border-color: var(--white);
  background: var(--lime);
}

.steps h3,
.timeline h3 {
  font: 700 var(--fs-md) / 1.25 var(--font);
}

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

.timeline-year {
  display: block;
  margin-bottom: 10px;
  color: var(--lime);
  font: 800 var(--fs-xl) / 1 var(--font);
  letter-spacing: -0.03em;
}

@media (max-width: 760px) {
  .steps,
  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .steps li,
  .timeline li {
    padding: 4px 0 36px 68px;
  }

  .steps li:not(:last-child)::after,
  .timeline li:not(:last-child)::after {
    top: 22px;
    left: 18px;
    width: var(--line);
    height: 100%;
  }
}

/* ---------- Партньори ---------- */

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

.partner-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-m);
  color: var(--mist);
  font-size: var(--fs-sm);
  text-align: center;
}

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

/* ---------- Текстов блок (SEO) ---------- */

.text-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(32px, 6vw, 80px);
}

.text-cols h3 {
  font: 700 var(--fs-md) / 1.25 var(--font);
}

.text-cols p {
  max-width: 60ch;
  margin-top: 10px;
  color: var(--mist);
}

@media (max-width: 760px) {
  .text-cols {
    grid-template-columns: 1fr;
  }
}

/* ---------- Подстраници ---------- */

.page-hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px);
}

.page-hero + .section {
  padding-top: 8px;
}

.page-title {
  max-width: 18ch;
  font: 800 clamp(2.5rem, 6vw, 4.5rem) / 1.02 var(--font);
  letter-spacing: -0.03em;
}

.page-title--md {
  max-width: 22ch;
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  line-height: 1.06;
}

.page-lead {
  max-width: 58ch;
  margin-top: 20px;
  font-size: var(--fs-md);
  line-height: 1.5;
}

/* Пътеката е отсечка от линията: всяка страница е спирка. */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 6px;
  margin-bottom: 28px;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "";
  width: 26px;
  height: 5px;
  margin-inline: 10px;
  border-radius: 3px;
  background: var(--lime);
}

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

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

.breadcrumb [aria-current="page"] {
  color: var(--white);
  font-weight: 700;
}

/* ---------- Зали: списък ---------- */

.halls-tools {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.halls-search {
  max-width: 640px;
}

.halls-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.halls-map {
  --net-bg: var(--deep);
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 8px;
  border-radius: var(--r-l);
  background: var(--deep);
}

.halls-map-note {
  padding: 4px 12px 10px;
  color: var(--mist);
  font-size: var(--fs-sm);
}

.halls-status {
  color: var(--mist);
  font-size: var(--fs-sm);
}

@media (max-width: 900px) {
  .halls-layout {
    grid-template-columns: 1fr;
  }

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

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.search {
  position: relative;
}

.search .icon {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--mist);
  transform: translateY(-50%);
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px 0 46px;
  border: 2px solid var(--line-strong);
  border-radius: var(--r-s);
  background: var(--deep);
  color: var(--white);
  font: 500 1.0625rem var(--font);
}

.search--lg input {
  min-height: 60px;
  padding-left: 50px;
  font-size: 1.125rem;
}

.search--lg .icon {
  left: 17px;
  width: 22px;
  height: 22px;
}

.search input::placeholder {
  color: #82878a;
}

.search input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(166, 205, 54, 0.25);
}

.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--mist);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  cursor: pointer;
}

.search input::-webkit-search-cancel-button:hover {
  background: var(--white);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: var(--panel);
  color: var(--chalk);
  font: 600 var(--fs-sm) / 1 var(--font);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.chip span {
  color: var(--mist);
  font-weight: 500;
}

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

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

.chip[aria-pressed="true"] span {
  color: rgba(17, 24, 27, 0.7);
}

/*
  Списъкът по градове е линия: градът е голяма спирка, а всяка зала е спирка по линията.
  Центърът на линията е на 20px от левия край.
*/
.city-group,
.line-list {
  position: relative;
  padding-left: 56px;
}

.city-group {
  padding-bottom: 40px;
}

.city-group::before,
.line-list::before,
.city-group::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 0;
  left: calc(20px - var(--line) / 2);
  width: var(--line);
}

.city-group::before,
.line-list::before {
  background: var(--lime);
}

.city-group:last-child::before,
.city-group:last-child::after,
.line-list::before {
  bottom: 40px;
  border-radius: 0 0 4px 4px;
}

.city-group::after {
  display: none;
}

/* Където браузърът поддържа анимации според превъртането, линията се „изпълва“ при четене. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .city-group::before {
      background: var(--line-strong);
    }

    .city-group::after {
      display: block;
      background: var(--lime);
      box-shadow: 0 0 10px rgba(166, 205, 54, 0.4);
      transform-origin: top;
      animation: fill-line linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 55%;
    }

    .section-title::after {
      animation: fill-line-x linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 40%;
    }
  }
}

@keyframes fill-line {
  from {
    transform: scaleY(0);
  }
}

@keyframes fill-line-x {
  from {
    transform: scaleX(0);
  }
}

.city-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding-bottom: 6px;
}

.city-head::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 3px;
  left: -51px;
  width: 30px;
  height: 30px;
  border: 5px solid var(--chalk);
  border-radius: 50%;
  background: var(--night);
}

.city-head h2 {
  font: 800 var(--fs-lg) / 1.25 var(--font);
  letter-spacing: -0.02em;
}

.city-head p {
  color: var(--mist);
  font-size: var(--fs-sm);
}

.hall-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--raise);
}

.city-group .hall-row::before,
.line-list .hall-row::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 26px;
  left: -44px;
  width: 16px;
  height: 16px;
  border: 4px solid var(--chalk);
  border-radius: 50%;
  background: var(--night);
  transition: background-color 0.2s, border-color 0.2s;
}

.city-group .hall-row:hover::before,
.line-list .hall-row:hover::before {
  border-color: var(--lime);
  background: var(--lime);
}

.hall-name {
  font: 700 1.25rem / 1.25 var(--font);
}

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

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

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

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  color: var(--lime-pale);
  font-size: var(--fs-sm);
  font-weight: 600;
}

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

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

.status.is-closed::before {
  background: var(--alert);
  box-shadow: none;
}

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

/* „Вие сте тук“ на страницата на залата. */
.hall-row.is-here {
  grid-template-columns: 1fr;
}

.line-list .hall-row.is-here::before {
  top: 20px;
  left: -51px;
  width: 30px;
  height: 30px;
  border-width: 5px;
  border-color: var(--white);
  background: var(--lime);
  animation: here 1.8s ease-out 3;
}

@keyframes here {
  0% {
    box-shadow: 0 0 0 0 rgba(166, 205, 54, 0.7);
  }

  100% {
    box-shadow: 0 0 0 16px rgba(166, 205, 54, 0);
  }
}

.hall-row.is-here .hall-name {
  font-weight: 800;
}

.here-note {
  margin-top: 2px;
  color: var(--lime);
  font-weight: 600;
}

@media (max-width: 640px) {
  .hall-row {
    grid-template-columns: 1fr;
  }
}

.empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 32px 0;
}

.empty-title {
  color: var(--white);
  font-size: var(--fs-md);
  font-weight: 700;
}

.empty p:not(.empty-title) {
  color: var(--mist);
}

.empty .btn {
  margin-top: 8px;
}

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

/* Табела на залата, като табела на спирка: с лентата на линията отдолу. */
.hall-sign {
  display: inline-block;
  max-width: 100%;
  padding: clamp(20px, 3vw, 28px) clamp(22px, 3.4vw, 36px) clamp(24px, 3.4vw, 32px);
  border-radius: var(--r-l);
  background: var(--panel);
  box-shadow: var(--glow), inset 0 -12px 0 var(--lime);
}

.hall-sign-title {
  display: grid;
  gap: 8px;
  font: 800 clamp(2.5rem, 6vw, 4.5rem) / 1 var(--font);
  letter-spacing: -0.03em;
}

.hall-sign-kind {
  color: var(--lime-pale);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
}

.hall-sign-place {
  margin: 14px 0 12px;
  font-size: var(--fs-md);
}

.hall-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 24px;
}

.hall-meta .status {
  margin-top: 0;
  font-size: 1rem;
}

.hall-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.hall-top .jp-board {
  max-width: none;
}

.hall-top .jp dd {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
}

.facts div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--raise);
}

.facts div:first-child {
  border-top: 1px solid var(--raise);
}

.facts dt {
  color: var(--mist);
}

.facts dd {
  margin: 0;
  color: var(--white);
  font-weight: 600;
}

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

.hall-text {
  max-width: 58ch;
  margin-top: 28px;
}

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

.subsection-title {
  margin-bottom: 24px;
  font: 800 clamp(1.875rem, 3.4vw, 2.5rem) / 1.08 var(--font);
  letter-spacing: -0.02em;
}

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

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

.photo-slot,
.tour-slot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-m);
  background: var(--panel);
  color: var(--mist);
  font-size: var(--fs-sm);
  text-align: center;
}

.photo-slot {
  aspect-ratio: 4 / 3;
}

.photo-slot .icon,
.tour-slot .icon {
  width: 28px;
  height: 28px;
}

.tour-slot {
  aspect-ratio: 16 / 5;
  padding: 24px;
  border-radius: var(--r-l);
}

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

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  filter: invert(0.9) hue-rotate(180deg) saturate(0.7) brightness(0.95);
}

.map-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .hall-top {
    grid-template-columns: 1fr;
  }

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

  .map-frame,
  .tour-slot {
    aspect-ratio: 4 / 3;
  }
}

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

/* ---------- Новини ---------- */

.news-list {
  padding: 0;
  list-style: none;
}

.news-item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 32px;
  padding-block: 32px;
  border-bottom: 1px solid var(--raise);
}

.news-item:first-child {
  padding-top: 0;
}

.news-item time {
  padding-top: 6px;
  color: var(--mist);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.news-item h2 {
  font: 700 clamp(1.5rem, 2.6vw, 2rem) / 1.2 var(--font);
  letter-spacing: -0.015em;
}

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

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

.news-item p {
  max-width: 60ch;
  margin-top: 10px;
  color: var(--mist);
}

@media (max-width: 700px) {
  .news-item {
    grid-template-columns: 1fr;
  }

  .news-item time {
    padding-top: 0;
  }
}

.article-date {
  display: block;
  margin-top: 18px;
  color: var(--mist);
  font-weight: 600;
}

/* ---------- Текстови страници ---------- */

.prose,
.container.prose > * {
  max-width: 68ch;
}

/* В .container текстът остава подравнен вляво със заглавието на страницата. */
.container.prose {
  max-width: none;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 1.8em;
  font: 800 clamp(1.625rem, 3vw, 2.125rem) / 1.12 var(--font);
  letter-spacing: -0.02em;
}

.prose h3 {
  margin-top: 1.4em;
  font: 700 var(--fs-md) / 1.3 var(--font);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose li::marker {
  color: var(--lime);
}

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

.note {
  padding: 16px 20px;
  border-left: var(--line) solid var(--gold);
  border-radius: 0 var(--r-m) var(--r-m) 0;
  background: var(--panel);
  font-size: 1rem;
}

.help-list {
  padding: 0 !important;
  list-style: none;
  border-top: 1px solid var(--raise);
}

.help-list li {
  margin: 0 !important;
  padding: 16px 0;
  border-bottom: 1px solid var(--raise);
}

.help-list strong {
  display: block;
}

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

.back-link {
  margin-top: 48px;
}

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

.finder-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px 0 18px;
  border: 2px solid var(--lime);
  border-radius: var(--r-s);
  background: var(--deep);
  color: var(--white);
  font: 700 1rem / 1 var(--font);
  box-shadow: 0 0 22px rgba(166, 205, 54, 0.25), 0 12px 28px -10px #000;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.finder-fab .icon {
  color: var(--lime);
}

.finder-fab:hover {
  background: var(--lime);
  color: var(--night);
}

.finder-fab:hover .icon {
  color: var(--night);
}

.finder {
  width: min(480px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line-strong);
  background: var(--night);
  color: var(--chalk);
}

.finder::backdrop {
  background: rgba(5, 8, 9, 0.72);
}

.finder[open] {
  animation: sheet-in 0.2s ease-out;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
}

.finder-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.finder-head h2 {
  font: 800 var(--fs-lg) / 1.1 var(--font);
  letter-spacing: -0.02em;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--line-strong);
  border-radius: var(--r-s);
  background: transparent;
  color: var(--chalk);
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--lime);
  color: var(--white);
}

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

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

.finder-count {
  color: var(--mist);
  font-size: var(--fs-sm);
}

.finder-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 24px 32px;
}

.finder .hall-row {
  grid-template-columns: 1fr;
}

.finder [data-finder-map] {
  padding-top: 24px;
}

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

.seg button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--mist);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}

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

/* ---------- Футър ---------- */

.site-footer {
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--raise);
  background: var(--deep);
  color: var(--chalk);
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  width: 150px;
  height: auto;
}

.footer-brand p {
  max-width: 32ch;
  margin-top: 18px;
  color: var(--mist);
}

.footer-title {
  margin-bottom: 14px;
  font: 700 1rem / 1.2 var(--font);
}

.footer-links {
  display: grid;
  gap: 4px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 5px 0;
  color: var(--mist);
  text-decoration: none;
}

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

.social {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  color: var(--chalk);
}

.social a:hover {
  border-color: var(--lime);
  color: var(--white);
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-legal {
  display: grid;
  gap: 14px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-block: 28px 104px;
  border-top: 1px solid var(--raise);
  color: var(--mist);
  font-size: var(--fs-sm);
}

.footer-warning {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--chalk);
  font-size: 1rem;
  font-weight: 600;
}

.age-badge {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 3px solid var(--alert);
  border-radius: 50%;
  color: var(--white);
  font: 800 1.0625rem / 1 var(--font);
}

.footer-legal p:not(.footer-warning) {
  max-width: 110ch;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 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;
  }
}
