/*
  Игрални зали ELITBET, дизайн 3 „Билет“
  Тъмната тема на elitbet.bg. Бялото е хартията на билетите, които печатат автоматите в залите:
  принтерът печата нов билет за всеки слайд, старият се откъсва, купоните се „късат“ при посочване.
  Шрифтове: Unbounded за заглавията, IBM Plex Sans за текста (и двата с български форми),
  IBM Plex Mono за отпечатаното върху хартия.
*/

: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;
  --paper: #ffffff;
  --gold: #ffc941;
  --alert: #f26f63;

  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Unbounded", "IBM Plex Sans", sans-serif;
  --font-print: "IBM Plex Mono", ui-monospace, monospace;

  --fs-sm: 0.9375rem;
  --fs-base: 1.125rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.625rem;
  --fs-xl: 2.25rem;
  --fs-2xl: 3.25rem;

  --r-s: 4px;
  --r-m: 8px;
  --r-l: 12px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 7vw, 104px);
  --header-h: 72px;
  --tooth: 18px;

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

/* ---------- Скъсан ръб на хартия ---------- */

/* Зъбци по долния край; височината им е половината от --tooth. */
.hero,
.page-hero,
.ticket,
.slip {
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
}

/* Зъбци горе и долу. */
.section--torn {
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) 51% repeat-x,
    conic-gradient(from -225deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--tooth) 51% repeat-x;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) 51% repeat-x,
    conic-gradient(from -225deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--tooth) 51% repeat-x;
}

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

*,
*::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(--lime-pale);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

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: 999px;
  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: 50px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  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--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-decoration-color: var(--lime);
}

.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.2em;
  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 {
  padding-left: 14px;
  border-left: 2px dashed var(--line-strong);
  font: 600 0.9375rem / 1 var(--font);
}

.main-nav {
  margin-left: auto;
}

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

.main-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--chalk);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

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

.main-nav a[aria-current="page"] {
  background: var(--lime-tint);
  color: var(--lime);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(166, 205, 54, 0.5);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  place-items: center;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  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 {
  padding: 0;
  list-style: none;
}

.mobile-menu-main a {
  display: block;
  padding: 16px 0;
  border-bottom: 2px dashed var(--raise);
  color: var(--white);
  font: 800 var(--fs-lg) / 1.1 var(--font-display);
  text-decoration: none;
}

.mobile-menu-main a:hover,
.mobile-menu-main a[aria-current="page"] {
  color: 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 {
    padding-left: 10px;
    font-size: 0.875rem;
  }
}

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

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

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

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

.section-title {
  font: 800 clamp(2rem, 4vw, var(--fs-2xl)) / 1.08 var(--font-display);
  letter-spacing: -0.02em;
}

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

.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.55;
}

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

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

.split-text p:not(.lead) {
  max-width: 54ch;
  color: var(--mist);
}

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

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

/* ---------- Начало: принтер за билети ---------- */

.hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 104px);
  background: var(--deep);
}

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

.hero-title {
  max-width: 11ch;
  font: 900 clamp(2.5rem, 5.2vw, 4.25rem) / 1 var(--font-display);
  letter-spacing: -0.03em;
}

.carousel {
  margin-top: clamp(28px, 4vw, 48px);
}

.slides {
  display: grid;
}

.slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s ease 0.2s, transform 0.35s ease-out 0.2s;
}

.slide-title {
  font: 700 clamp(1.5rem, 2.4vw, 2rem) / 1.15 var(--font-display);
  letter-spacing: -0.015em;
}

.slide p {
  max-width: 46ch;
  margin-top: 14px;
}

.slide .actions {
  margin-top: 28px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: clamp(28px, 4vw, 40px);
}

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

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

.carousel-dots {
  display: flex;
  margin-inline: 8px;
}

.carousel-dot {
  display: grid;
  align-items: center;
  width: 52px;
  height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  cursor: pointer;
}

.carousel-dot span {
  position: relative;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-strong);
}

.carousel-dot span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
}

.carousel-dot[aria-current="true"] span::after {
  transform: scaleX(1);
}

.carousel.is-running .carousel-dot[aria-current="true"] span::after {
  animation: progress 8s linear both;
}

.carousel-pause {
  margin-left: 8px;
}

@keyframes progress {
  from {
    transform: scaleX(0);
  }
}

.hero-printer {
  width: min(100%, 430px);
  margin-inline: auto;
}

/* Корпусът на принтера: процеп, от който излиза билетът, и светлина, която мига при печат. */
.printer {
  position: relative;
  z-index: 2;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 30px -12px #000;
}

.printer-slot {
  position: absolute;
  left: 44px;
  right: 26px;
  bottom: 14px;
  height: 6px;
  border-radius: 3px;
  background: #000;
}

.printer-led {
  position: absolute;
  left: 20px;
  bottom: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.hero-printer.is-printing .printer-led {
  background: var(--lime);
  box-shadow: 0 0 10px 2px rgba(166, 205, 54, 0.8);
  animation: led 0.24s steps(2, jump-none) infinite;
}

@keyframes led {
  to {
    opacity: 0.25;
  }
}

.ticket-stack {
  display: grid;
  margin: -18px 30px 0;
  clip-path: inset(0 -80px -140px -80px);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.6));
}

.ticket {
  --tooth: 14px;
  grid-area: 1 / 1;
  align-self: start;
  padding: 30px 24px 34px;
  background: var(--paper);
  color: var(--night);
  font: 500 0.875rem / 1.55 var(--font-print);
  text-transform: uppercase;
  transform-origin: 50% 0;
}

.ticket a {
  color: var(--night);
}

.ticket-stack .ticket {
  visibility: hidden;
}

/* Билетът излиза на стъпки, като от принтер, и после се залюлява на процепа. */
.ticket-stack .ticket.is-active {
  visibility: visible;
  animation: print 1.7s var(--print-delay, 0s) both;
}

@keyframes print {
  0% {
    transform: translateY(-101%);
    animation-timing-function: steps(12, end);
  }

  60% {
    transform: translateY(0);
    animation-timing-function: ease-out;
  }

  74% {
    transform: rotate(1.4deg);
  }

  87% {
    transform: rotate(-0.7deg);
  }

  100% {
    transform: none;
  }
}

/* Предишният билет се откъсва и пада. */
.ticket-stack .ticket.is-torn {
  visibility: visible;
  transform-origin: 100% 0;
  animation: tear 0.6s ease-in forwards;
}

@keyframes tear {
  0% {
    transform: none;
  }

  30% {
    transform: rotate(-4deg) translateY(6px);
    opacity: 1;
  }

  100% {
    transform: rotate(-11deg) translate(-40px, 120px);
    opacity: 0;
  }
}

.tk-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--night);
}

.tk-brand {
  grid-column: 1 / -1;
  font: 900 1.375rem / 1.1 var(--font-display);
  letter-spacing: 0.02em;
}

.tk-clock {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tk-title {
  margin: 16px 0 10px;
  color: var(--night);
  font: 600 0.9375rem / 1.35 var(--font-print);
}

.tk-lines {
  display: grid;
  gap: 4px;
}

/* Точки от етикета до сумата. */
.tk-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tk-line dt {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.tk-line dt::after {
  content: "";
  flex: 1;
  min-width: 12px;
  border-bottom: 2px dotted currentColor;
}

.tk-line dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tk-line--grand {
  margin-inline: -8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--gold);
}

.tk-note {
  margin-top: 10px;
  font-size: 0.75rem;
}

.tk-big {
  margin-top: 16px;
  font: 600 1.25rem / 1.35 var(--font-print);
}

.tk-small {
  margin-top: 10px;
}

.tk-foot {
  position: relative;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px dashed var(--night);
  container-type: inline-size;
}

.barcode {
  width: 100%;
  height: 46px;
  fill: var(--night);
}

/* Лъч на четец минава през баркода, докато билетът се вижда. */
.is-scanning .ticket.is-active .tk-foot::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: -6px;
  left: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 12px 3px rgba(166, 205, 54, 0.75);
  opacity: 0;
  animation: scan 4.8s ease-in-out 1.8s infinite;
}

@keyframes scan {
  0% {
    opacity: 0;
    transform: translateX(0);
  }

  6% {
    opacity: 1;
  }

  34% {
    opacity: 1;
    transform: translateX(calc(100cqw - 3px));
  }

  40%,
  100% {
    opacity: 0;
    transform: translateX(calc(100cqw - 3px));
  }
}

.is-off {
  visibility: hidden;
}

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

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

@media (max-width: 420px) {
  .ticket-stack {
    margin-inline: 18px;
  }

  .ticket {
    padding-inline: 18px;
    font-size: 0.8125rem;
  }
}

/* ---------- Карта с табелки ---------- */

.tagmap {
  position: relative;
}

.tagmap-land {
  width: 100%;
  height: auto;
}

.tagmap-land path {
  fill: var(--panel);
  stroke: var(--line-strong);
  stroke-width: 2;
}

.tagmap-tags {
  position: absolute;
  inset: 0;
}

.tag {
  position: absolute;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.tag::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 12px;
  height: 12px;
  margin: auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px var(--deep), 0 0 12px rgba(166, 205, 54, 0.7);
}

/* Етикетът позиционира табелката; хартията вътре се люлее. */
.tag-label {
  position: absolute;
  white-space: nowrap;
}

.tag-paper {
  display: block;
  padding: 6px 9px;
  border-radius: var(--r-s);
  background: var(--paper);
  color: var(--night);
  font: 600 0.75rem / 1 var(--font-print);
  text-transform: uppercase;
  box-shadow: 0 6px 14px -6px #000;
  transition: background-color 0.15s, color 0.15s;
}

.tag-count {
  color: #4b5a14;
}

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

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

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

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

.tag[data-side="top-right"] .tag-label {
  bottom: calc(50% + 5px);
  left: calc(50% + 5px);
}

.tag[data-side="bottom-right"] .tag-label {
  top: calc(50% + 5px);
  left: calc(50% + 5px);
}

.tag[data-side="top-left"] .tag-label {
  bottom: calc(50% + 5px);
  right: calc(50% + 5px);
}

.tag[data-side="bottom-left"] .tag-label {
  top: calc(50% + 5px);
  right: calc(50% + 5px);
}

/* Табелката се люлее около ъгъла, който е най-близо до карфицата. */
.tag[data-side="right"] .tag-paper {
  transform-origin: 0 50%;
}

.tag[data-side="left"] .tag-paper {
  transform-origin: 100% 50%;
}

.tag[data-side="top"] .tag-paper {
  transform-origin: 50% 100%;
}

.tag[data-side="bottom"] .tag-paper {
  transform-origin: 50% 0;
}

.tag[data-side="top-right"] .tag-paper {
  transform-origin: 0 100%;
}

.tag[data-side="bottom-right"] .tag-paper {
  transform-origin: 0 0;
}

.tag[data-side="top-left"] .tag-paper {
  transform-origin: 100% 100%;
}

.tag[data-side="bottom-left"] .tag-paper {
  transform-origin: 100% 0;
}

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

.tag:hover .tag-paper {
  animation: swing 0.8s ease-out;
}

@keyframes swing {
  20% {
    transform: rotate(9deg);
  }

  45% {
    transform: rotate(-6deg);
  }

  70% {
    transform: rotate(3deg);
  }

  100% {
    transform: none;
  }
}

.tag.is-active .tag-paper {
  background: var(--lime);
}

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

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

.tag.is-dim::before {
  background: var(--line-strong);
  box-shadow: 0 0 0 3px var(--deep);
}

.tag.is-dim .tag-paper {
  background: var(--raise);
  color: var(--mist);
}

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

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

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

/* Табелките падат на картата, когато тя се покаже. Закъсненията (--i) идват от JavaScript. */
.tagmap--drop .tag-paper {
  opacity: 0;
  transform: translateY(-18px);
}

.tagmap--drop.is-in .tag-paper {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.3s ease-out calc(var(--i, 0) * 70ms),
    transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--i, 0) * 70ms),
    background-color 0.15s,
    color 0.15s;
}

/* Избраният град: къс отрязък под картата. */
.map-callout {
  margin-top: 20px;
  padding: 20px 24px 12px;
  border-radius: var(--r-m);
  background: var(--panel);
}

.callout-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--line-strong);
}

.callout-title {
  font: 800 var(--fs-lg) / 1.1 var(--font-display);
  letter-spacing: -0.02em;
}

.callout-head p {
  color: var(--mist);
  font: 600 0.8125rem / 1 var(--font-print);
  text-transform: uppercase;
}

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

.callout-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--raise);
}

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

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

/* ---------- Оферти: купони ---------- */

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

/*
  Купонът е от две части с перфорация между тях. Всяка част има собствен фон и маска с
  полукръгли изрези (--hole-1, --hole-2), затова отрязъкът може да се „откъсне“ отделно.
*/
.coupon {
  display: grid;
  grid-template-rows: 96px auto;
}

.coupon-stub,
.coupon-body {
  -webkit-mask:
    radial-gradient(circle 11px at var(--hole-1), #0000 98%, #000),
    radial-gradient(circle 11px at var(--hole-2), #0000 98%, #000);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 11px at var(--hole-1), #0000 98%, #000),
    radial-gradient(circle 11px at var(--hole-2), #0000 98%, #000);
  mask-composite: intersect;
}

.coupon-stub {
  --hole-1: 0 100%;
  --hole-2: 100% 100%;
  display: grid;
  align-items: center;
  padding: 0 24px;
  border-radius: var(--r-l) var(--r-l) 0 0;
  background: var(--lime);
  color: var(--night);
  transform-origin: 100% 100%;
  transition: transform 0.25s ease-out;
}

.coupon-icon {
  width: 44px;
  height: 44px;
}

.coupon-body {
  --hole-1: 0 0;
  --hole-2: 100% 0;
  padding: 22px 24px 26px;
  border-top: 3px dashed var(--deep);
  border-radius: 0 0 var(--r-l) var(--r-l);
  background: var(--panel);
}

@media (hover: hover) {
  .coupon:hover .coupon-stub {
    transform: rotate(-4deg) translate(-3px, -5px);
  }
}

.coupon-body h3,
.coupon-body h2 {
  font: 700 1.25rem / 1.2 var(--font-display);
  letter-spacing: -0.01em;
}

.offer-when {
  margin-top: 8px;
  color: var(--lime-pale);
  font: 600 0.8125rem / 1.35 var(--font-print);
  text-transform: uppercase;
}

.coupon-body p:last-child {
  margin-top: 10px;
  color: var(--mist);
  font-size: 1rem;
}

/* На страницата с оферти купоните лежат хоризонтално: отрязъкът е вляво. */
.coupon--wide {
  grid-template-columns: 168px minmax(0, 1fr);
  grid-template-rows: auto;
}

.coupon--wide .coupon-stub {
  --hole-1: 100% 0;
  --hole-2: 100% 100%;
  place-items: center;
  border-radius: var(--r-l) 0 0 var(--r-l);
}

.coupon--wide .coupon-icon {
  width: 64px;
  height: 64px;
}

.coupon--wide .coupon-body {
  --hole-1: 0 0;
  --hole-2: 0 100%;
  padding: clamp(24px, 3.4vw, 36px) clamp(24px, 4vw, 44px);
  border-top: 0;
  border-left: 3px dashed var(--deep);
  border-radius: 0 var(--r-l) var(--r-l) 0;
}

.coupon--wide h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
}

.coupon--wide .coupon-body p:last-child {
  max-width: 58ch;
  color: var(--chalk);
  font-size: var(--fs-base);
}

.offer-list {
  display: grid;
  gap: 20px;
}

.coupon-grid--stack {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-bottom: 12px;
}

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

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

  .coupon--wide {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .coupon--wide .coupon-icon {
    width: 40px;
    height: 40px;
  }
}

/* ---------- Стъпки ---------- */

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

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--night);
  font: 900 1.75rem / 1 var(--font-display);
}

.steps h3 {
  margin-top: 18px;
  font: 700 1.25rem / 1.25 var(--font-display);
}

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

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

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

.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 1.25rem / 1.25 var(--font-display);
}

.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(48px, 6vw, 80px);
  background: var(--deep);
}

.page-title {
  max-width: 16ch;
  font: 900 clamp(2.25rem, 5.4vw, 4rem) / 1.04 var(--font-display);
  letter-spacing: -0.03em;
}

.page-title--md {
  max-width: 22ch;
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.1;
}

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

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 0;
  list-style: none;
  color: var(--mist);
  font-size: var(--fs-sm);
}

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

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

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

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

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

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

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

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

.halls-map-note {
  margin-top: 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: 18px;
  color: var(--mist);
  transform: translateY(-50%);
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 54px;
  padding: 0 20px 0 50px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: var(--deep);
  color: var(--white);
  font: 500 1.0625rem var(--font);
}

.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;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--chalk);
  font: 600 var(--fs-sm) / 1 var(--font);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, 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);
}

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

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

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

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

/*
  Залата като билет с откъсваща се част: двете половини имат собствен фон,
  а полукръглите изрези на перфорацията се режат с маска от всяка половина.
*/
.hall-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 10px;
}

.hall-row-main,
.hall-actions {
  background: var(--panel);
  -webkit-mask:
    radial-gradient(circle 9px at var(--hole-1), #0000 98%, #000),
    radial-gradient(circle 9px at var(--hole-2), #0000 98%, #000);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 9px at var(--hole-1), #0000 98%, #000),
    radial-gradient(circle 9px at var(--hole-2), #0000 98%, #000);
  mask-composite: intersect;
}

.hall-row-main {
  --hole-1: 100% 0;
  --hole-2: 100% 100%;
  padding: 18px 22px;
  border-radius: var(--r-l) 0 0 var(--r-l);
}

.hall-actions {
  --hole-1: 0 0;
  --hole-2: 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 8px;
  padding: 18px 22px;
  border-left: 3px dashed var(--line-strong);
  border-radius: 0 var(--r-l) var(--r-l) 0;
  transform-origin: 0 0;
  transition: transform 0.25s ease-out;
}

/* При посочване отрязъкът с бутоните леко се отлепя. */
@media (hover: hover) {
  .hall-row:hover .hall-actions {
    transform: translate(4px, 1px) rotate(0.8deg);
  }
}

.hall-name {
  font: 700 1.1875rem / 1.25 var(--font-display);
  letter-spacing: -0.01em;
}

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

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

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

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  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-row .status {
  font: 600 0.8125rem / 1.35 var(--font-print);
  text-transform: uppercase;
}

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

  .hall-row-main {
    --hole-1: 0 100%;
    --hole-2: 100% 100%;
    border-radius: var(--r-l) var(--r-l) 0 0;
  }

  .hall-actions {
    --hole-1: 0 0;
    --hole-2: 100% 0;
    border-left: 0;
    border-top: 3px dashed var(--line-strong);
    border-radius: 0 0 var(--r-l) var(--r-l);
  }
}

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

.empty-title {
  color: var(--white);
  font: 700 var(--fs-md) / 1.3 var(--font-display);
}

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

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

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

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

.page-title-kind {
  display: block;
  margin-bottom: 8px;
  color: var(--lime-pale);
  font: 600 1.0625rem / 1.2 var(--font);
  letter-spacing: 0;
}

.hall-hero .status {
  margin-top: 20px;
}

.hall-hero .hall-text {
  max-width: 50ch;
  margin-top: 16px;
}

.hall-hero .actions {
  margin-top: 28px;
}

.ticket--hall .tk-title {
  margin-bottom: 6px;
  font: 800 1.375rem / 1.2 var(--font-display);
  text-transform: none;
}

.tk-facts div {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
}

.tk-facts div + div {
  border-top: 1px dotted var(--night);
}

.tk-facts dt {
  color: #4a5255;
}

.tk-facts dd {
  margin: 0;
  font-weight: 600;
}

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

/* Джакпотите на залата: къса разписка. */
.slip {
  --tooth: 14px;
  max-width: 440px;
  padding: 22px 24px 30px;
  background: var(--paper);
  color: var(--night);
  font: 500 0.9375rem / 1.6 var(--font-print);
  text-transform: uppercase;
}

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

.subsection-title {
  margin-bottom: 24px;
  font: 800 clamp(1.625rem, 3vw, 2.25rem) / 1.12 var(--font-display);
  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-hero-grid,
  .hall-split {
    grid-template-columns: 1fr;
  }

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

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

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

.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: 2px dashed 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.375rem, 2.4vw, 1.75rem) / 1.25 var(--font-display);
  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.5rem, 2.8vw, 1.875rem) / 1.2 var(--font-display);
  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: 8px solid var(--gold);
  border-radius: var(--r-m);
  background: var(--panel);
  font-size: 1rem;
}

.help-list {
  padding: 0 !important;
  list-style: none;
}

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

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

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

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

/* ---------- За нас: история ---------- */

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

.timeline li {
  padding-top: 20px;
  border-top: 3px dashed var(--line-strong);
}

.timeline-year {
  display: block;
  color: var(--lime);
  font: 900 clamp(2.5rem, 5vw, 3.5rem) / 1 var(--font-display);
  letter-spacing: -0.03em;
}

.timeline h3 {
  margin-top: 14px;
  font: 700 1.25rem / 1.25 var(--font-display);
}

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

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

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

.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: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--night);
  font: 700 1rem / 1 var(--font);
  box-shadow: 0 0 0 3px var(--deep), 0 12px 28px -8px #000;
  cursor: pointer;
}

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

.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 12px;
  background: var(--deep);
}

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

.finder-tools {
  display: grid;
  gap: 14px;
  padding: 8px 24px 18px;
  background: var(--deep);
  border-bottom: 2px dashed var(--line-strong);
}

.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: 8px 24px 32px;
}

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

.finder .hall-row-main {
  --hole-1: 0 100%;
  --hole-2: 100% 100%;
  border-radius: var(--r-l) var(--r-l) 0 0;
}

.finder .hall-actions {
  --hole-1: 0 0;
  --hole-2: 100% 0;
  border-left: 0;
  border-top: 3px dashed var(--line-strong);
  border-radius: 0 0 var(--r-l) var(--r-l);
}

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

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

.seg button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  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-display);
}

.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(--lime);
}

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

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

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

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--chalk);
}

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

.footer-legal a {
  color: var(--chalk);
}

.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 0.9375rem / 1 var(--font-display);
}

.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;
  }
}
