/* ============================================================
   НЕФОРМАТ — публичная часть. Дизайн по Figma OB7BeJqamPuABpG5tK7SkT.
   ============================================================ */

/* ============== 1. Шрифты ============== */
/* TT Travels Next Trial Bold — пока единственный начертательный вес.
   Используем для тяжёлых заголовков (700/900). Лёгкие веса берутся из Inter. */

@font-face {
  font-family: 'TT Travels Next';
  src: url('/public/fonts/TTTravelsNext-Bold.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* ============== 2. Токены ============== */
:root {
  /* Палитра */
  --bg-primary: #000000;
  --bg-elev-1: #0F0F12;
  --bg-card: #16161A;
  --bg-card-hover: #1C1C20;
  --bg-card-muted: #232327;
  --bg-light: #E8E8EA;
  --bg-grey-card: #D9D9DC;

  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);
  --text-on-light: #0A0A0F;
  --text-on-light-muted: #6B6B6F;

  --accent: #2148FF;
  --accent-hover: #1A3DE0;
  --accent-text: #FFFFFF;
  --accent-on-light: #2148FF;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-on-light: rgba(0, 0, 0, 0.08);

  --danger: #FF5252;
  --success: #2EE686;

  /* Типографика */
  --font-display: 'TT Travels Next', 'Unbounded', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Скругления */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 40px;
  --radius-pill: 999px;

  /* Контейнер и сетка */
  --container-max: 1280px;
  --container-pad: 80px;
  --section-gap: 96px;

  /* Скорости */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s ease;

  /* Тени */
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-blue: 0 8px 32px rgba(33, 72, 255, 0.35);
}

@media (max-width: 1024px) {
  :root { --container-pad: 40px; --section-gap: 72px; }
}
@media (max-width: 768px) {
  :root { --container-pad: 20px; --section-gap: 56px; }
}

/* Светлая тема — оставляем рабочей (переключатель скрыт, но при желании можно вернуть) */
[data-theme="light"] {
  --bg-primary: #F4F4F5;
  --bg-elev-1: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F0F0F2;
  --text-primary: #0A0A0F;
  --text-secondary: rgba(10, 10, 15, 0.65);
  --text-muted: rgba(10, 10, 15, 0.4);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
}

/* ============== 3. Reset + база ============== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: clip;       /* блокирует горизонтальный скролл от любых внутренних элементов */
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: clip;
  width: 100%;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { -webkit-user-drag: none; user-select: none; }

a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
input, textarea, select {
  font: inherit;
  color: inherit;
}

ul, ol { list-style: none; }

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

/* ============== 4. Типографика ============== */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.t-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============== 5. Контейнер ============== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container--wide { max-width: 1440px; }

main {
  position: relative;
  z-index: 1;
}

/* ============== 6. Кнопки ============== */
.btn-primary,
.btn-secondary,
.btn-cta,
.btn-ticket-buy,
.btn-ticket-privileges {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-base);
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary,
.btn-cta,
.btn-ticket-buy {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover,
.btn-cta:hover,
.btn-ticket-buy:hover {
  background: var(--accent-hover);
}

.btn-secondary,
.btn-ticket-privileges {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-secondary:hover,
.btn-ticket-privileges:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.btn-on-blue {
  background: #fff;
  color: var(--accent);
}
.btn-on-blue:hover { background: #F0F0F2; }

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
}

/* Круглая кнопка-стрелка (карточки) */
.btn-icon-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-base), transform var(--t-base);
}
.btn-icon-arrow:hover {
  background: var(--accent-hover);
  transform: translate(2px, -2px);
}
.btn-icon-arrow svg {
  width: 18px;
  height: 18px;
}

/* Стрелка для slider'а */
.btn-slider {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--text-primary);
  background: transparent;
  transition: background var(--t-base), border-color var(--t-base);
}
.btn-slider:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-primary);
}
.btn-slider--active {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-slider--active:hover {
  background: var(--accent-hover);
}
.btn-slider svg { width: 20px; height: 20px; }
.btn-slider:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ============== 7. Header ============== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bg-primary);
  padding: 22px 0 18px;
  transition: padding var(--t-base), background var(--t-base);
}

.header.scrolled {
  padding: 14px 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Лого — слева, меню — прижато к правому краю (по фото). */
.header__top {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: auto; /* всё, что после, прижимается вправо */
}
.header__logo-img {
  display: block;
  height: 40px;
  width: auto;
}
@media (max-width: 768px) {
  .header__logo-img { height: 44px; }
}
@media (max-width: 480px) {
  .header__logo-img { height: 40px; }
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header__nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
  text-decoration: none;
  white-space: nowrap;
}
.header__nav a:hover {
  border-color: rgba(255, 255, 255, 0.25);
}
.header__nav a.active {
  border-color: rgba(255, 255, 255, 0.95);
}

.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
}
.header__burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

@media (max-width: 1024px) {
  .header__nav { display: none; }
  .header__burger { display: inline-flex; }
}

/* ============== 8. Mobile menu ============== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0A0A0F;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 20px 24px 32px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 240ms ease, transform 240ms ease;
  height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Блокируем прокрутку фона, когда мобильное меню открыто */
html.is-menu-open,
body.is-menu-open {
  overflow: hidden;
  touch-action: none;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 28px;
}
.mobile-menu__logo img {
  display: block;
  height: 40px;
  width: auto;
}

.mobile-menu__close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 28px;
  line-height: 1;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.mobile-menu__nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  padding: 6px 0;
  line-height: 1.1;
}
.mobile-menu__nav a:hover { color: var(--accent); }

.mobile-menu__socials {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.mobile-menu__socials a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
}

/* ============== 9. Footer ============== */
.footer {
  margin-top: var(--section-gap);
  padding: 0 var(--container-pad) 40px;
}
.footer .container { padding: 0; }

/* Сетка: две колонки одной высоты — синий блок НЕ выступает над серым по вертикали */
.footer__grid {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  gap: 0;
  position: relative;
}

.footer__left {
  background: var(--bg-light);
  color: var(--text-on-light);
  padding: 56px 56px 40px;
  border-radius: var(--radius-2xl) 0 0 var(--radius-2xl);
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 540px;
  position: relative;
  z-index: 1;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 2.6vw, 36px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text-on-light);
  line-height: 1;
}
.footer__brand-sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-on-light-muted);
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  align-content: start;
}
.footer__nav a {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-on-light);
  padding: 4px 0;
  transition: color var(--t-fast);
}
.footer__nav a:hover { color: var(--accent); }

.footer__copyright {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-on-light-muted);
  margin-top: auto;
}

/* Синий блок: совпадает по высоте с серым; небольшое горизонтальное перекрытие слева */
.footer__right {
  background: var(--accent);
  color: #fff;
  padding: 56px;
  border-radius: var(--radius-2xl);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 2;
  margin-top: 0;
  margin-left: -32px;      /* лёгкий горизонтальный нахлёст */
  min-height: 540px;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
}
.footer__right-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.2vw, 30px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.footer__right-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.footer__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.footer__form-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding: 10px 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-base);
}
.footer__form-input::placeholder { color: rgba(255, 255, 255, 0.7); }
.footer__form-input:focus { border-color: #fff; }
.footer__form-thanks {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 4px;
}
.footer__form-submit {
  align-self: flex-start;
  background: #fff;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--t-base);
  border: 0;
}
.footer__form-submit:hover { background: #F0F0F2; }

.footer__subscribe {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__subscribe-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer__subscribe-icons { display: flex; gap: 12px; }
.footer__subscribe-icons a {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.9;
  transition: opacity var(--t-fast);
}
.footer__subscribe-icons a:hover { opacity: 1; }
.footer__subscribe-icons svg { width: 22px; height: 22px; }

/* старые элементы футера — удаляем визуально (классы остаются доступны на случай если где-то используются) */
.footer__logo,
.footer__cta,
.footer__bottom,
.footer__contacts,
.footer__contact-group,
.footer__contact-label,
.footer__contact-value,
.footer__socials {
  display: none;
}

@media (max-width: 1024px) {
  .footer__left { min-height: auto; padding: 40px 32px; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .footer__right { margin-top: 0; margin-left: 0; min-height: auto; padding: 40px 32px; border-radius: 0 0 var(--radius-xl) var(--radius-xl); box-shadow: none; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .footer__nav { grid-template-columns: 1fr; gap: 6px; }
}

/* ============== 10. Floating contact (Telegram) ============== */
.floating-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  transition: transform var(--t-base);
}
.floating-contact:hover { transform: translateY(-2px); }
.floating-contact svg { width: 28px; height: 28px; }

/* ============== 11. Hero (главная — слайдер) ============== */
.hero {
  padding: 16px var(--container-pad) 0;
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  height: clamp(520px, 68vh, 720px);
  background: #0a0a0a;
}
.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 48px 56px;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg picture,
.hero__bg img,
.hero__bg > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 35%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.6) 100%);
}
.hero__top,
.hero__center,
.hero__bottom {
  position: relative;
  z-index: 2;
}
.hero__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.hero__meta-date {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.hero__meta-place {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  text-align: right;
}
.hero__center {
  margin-top: auto;
  text-align: left;
  max-width: 820px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 12vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #fff;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  max-width: 100%;
}
@media (min-width: 1025px) {
  .hero__title {
    white-space: normal;            /* перенос по словам если не лезет */
    word-break: keep-all;
    overflow-wrap: normal;
    font-size: clamp(96px, 10vw, 240px);
    max-width: 100%;
  }
}
.hero__lineup,
.hero__sub {
  margin-top: 18px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 480px;
}
.hero__bottom {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__cta {
  border-color: rgba(255, 255, 255, 0.95);
  padding: 14px 28px;
}

/* Стрелки слайдера: правый край, по центру вертикали */
.hero__nav {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
}
.hero__nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 1024px) {
  .hero__slide { padding: 36px 36px; }
  .hero__inner { height: clamp(480px, 72vh, 640px); }
  .hero__nav { right: 20px; }
}
@media (max-width: 768px) {
  .hero { padding-top: 8px; }
  .hero__inner { height: clamp(520px, 84vh, 620px); border-radius: var(--radius-xl); }
  .hero__slide { padding: 24px 24px 80px; }   /* нижний паддинг под стрелки слайдера */
  .hero__title { font-size: clamp(40px, 10vw, 80px); letter-spacing: -0.03em; }
  .hero__top { flex-direction: column; gap: 8px; }
  .hero__meta-place { text-align: left; }
  .hero__bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
    margin-bottom: -66px;
  }
  .hero__cta { padding: 12px 22px; font-size: 16px; }
  /* Стрелки — внизу справа в полосе padding-bottom */
  .hero__nav {
    flex-direction: row;
    top: auto;
    bottom: 18px;
    right: 18px;
    transform: none;
    gap: 8px;
  }
  .hero__nav-btn { width: 40px; height: 40px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .hero__slide { padding-bottom: 96px; }
  .hero__nav { bottom: 24px; right: 24px; flex-direction: row; top: auto; transform: none; }
}

/* старая marquee — отключаем (в дизайне нет) */
.marquee { display: none; }

/* ============== 12. Page hero (вторичные страницы) ============== */
.page-hero {
  padding: 16px var(--container-pad) 0;
  position: relative;
}
.page-hero__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  min-height: 320px;
  padding: 32px;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero__bg img,
.page-hero__bg > div {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #fff;
}

/* ============== 13. Section title ============== */
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.section { padding: var(--section-gap) 0 0; }
.section--no-top { padding-top: 56px; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section__head .section-title { margin-bottom: 0; }
.section__nav {
  display: flex;
  gap: 12px;
}

/* ============== 14. Партнёры (логобар) ============== */
.partners {
  padding: 64px var(--container-pad) 0;
}
.partners__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: clamp(40px, 8vw, 120px);
  flex-wrap: wrap;
}
.partners__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  opacity: 0.92;
}
.partners__item img { height: clamp(64px, 8vw, 110px); width: auto; max-width: 100%; display: block; }
.partners__item--samtrope svg { width: 70px; height: 24px; }
.partners__item--nfrmt img { height: clamp(64px, 8vw, 110px); width: auto; display: block; }
.partners__item--scratch svg { width: 34px; height: 34px; }
/* Планшет — лого партнёров в 2 раза крупнее десктопного 8vw */
@media (min-width: 768px) and (max-width: 1024px) {
  .partners__inner { gap: clamp(48px, 6vw, 96px); }
  .partners__item img,
  .partners__item--nfrmt img { height: clamp(140px, 16vw, 200px); width: auto; object-fit: contain; }
}
@media (max-width: 767px) {
  .partners { padding-top: 48px; }
  .partners__inner { gap: 24px; flex-wrap: nowrap; justify-content: space-between; }
  .partners__item img,
  .partners__item--nfrmt img { height: 86px; max-width: 32vw; object-fit: contain; }
}
@media (max-width: 480px) {
  .partners__item img,
  .partners__item--nfrmt img { height: 72px; }
}
.partners__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
}
.partners__name--stack {
  display: inline-flex;
  flex-direction: column;
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* ============== 15. АФИШИ — три карточки (по фигме) ============== */
.afisha-section { padding-top: var(--section-gap); }
.afisha-section .container { max-width: 1440px; }

.afisha-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.afisha-head__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 9.5vw, 130px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0;
}
.afisha-head__nav {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.afisha-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}
.afisha-arrow svg { width: 22px; height: 22px; display: block; }
.afisha-arrow--ghost:hover { border-color: #fff; }
.afisha-arrow--solid {
  background: #fff;
  border-color: #fff;
  color: var(--accent);
}
.afisha-arrow--solid:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Карусель: вьюпорт обрезает кубики, что уходят за край; track двигается transform'ом */
.afisha-viewport {
  position: relative;
  overflow: hidden;
  padding: 40px 0 24px;       /* верх — место для приподнятой синей карты */
}
.afisha-track {
  display: flex;
  column-gap: 16px;
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.afisha-card {
  position: relative;
  flex: 0 0 calc((100% - 32px) / 3);     /* ровно три кубика на экран при gap 16 */
  border-radius: var(--radius-2xl);
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(360px, 38vw, 460px);
  text-decoration: none;
  background: #0F0F12;
  color: #fff;
  border: 1.5px solid rgba(33, 72, 255, 0.55);
  overflow: hidden;
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1),
              background var(--t-base),
              box-shadow var(--t-base),
              border-color var(--t-base);
}
.afisha-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.55);
}
.afisha-card__quote {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  margin-top: auto;
  padding-top: 24px;
  max-width: 90%;
  color: rgba(255, 255, 255, 0.55);
}

/* Левая видимая — тёмная с тонкой синей обводкой */
.afisha-card.is-left {
  background: #0F0F12;
  border-color: rgba(33, 72, 255, 0.55);
}

/* Центральная синяя карточка — приподнята и выделена */
.afisha-card.is-center {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-32px);
  box-shadow: 0 16px 48px rgba(33, 72, 255, 0.45);
  z-index: 3;
}
.afisha-card.is-center .afisha-card__title { color: #fff; }
.afisha-card.is-center .afisha-card__quote { color: rgba(255, 255, 255, 0.95); }

/* Правая видимая — всегда светлая, кремовая (как в Figma) */
.afisha-card.is-right {
  background: var(--bg-grey-card);
  border-color: var(--bg-grey-card);
  color: var(--text-on-light);
}
.afisha-card.is-right .afisha-card__title { color: var(--text-on-light); }
.afisha-card.is-right .afisha-card__quote { color: var(--text-on-light-muted); }

@media (max-width: 1024px) {
  .afisha-card { padding: 28px 24px; }
  .afisha-card.is-center { transform: translateY(-20px); }
}
@media (max-width: 768px) {
  .afisha-head__nav .afisha-arrow { width: 44px; height: 44px; }
  .afisha-track { column-gap: 12px; }
  .afisha-card {
    flex: 0 0 86%;          /* почти на весь экран — мобилка */
    min-height: 320px;
    padding: 24px;
  }
  .afisha-card.is-center { transform: translateY(0); }
}

/* ============== 16. Event banner (карточка события) ============== */
.event-banner {
  position: relative;
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  min-height: 320px;
  transition: transform var(--t-base);
}
.event-banner:hover { transform: translateY(-4px); }
.event-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.event-banner__bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.event-banner__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.75) 100%);
}
.event-banner__content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 320px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.event-banner__meta {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.event-banner__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.event-banner__date {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.event-banner__btn {
  margin-top: 16px;
  display: flex;
}
/* Кликабельная подложка карточки события (вместо <a> wrapper, чтобы кнопки работали) */
.event-banner__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px;
  overflow: hidden;
}
.event-banner__actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 4;
}
.event-banner__actions .btn-primary,
.event-banner__actions .btn-secondary { position: relative; z-index: 4; }
.event-banner__buy {
  background: var(--accent);
  color: #fff;
  border: 0;
}
.event-banner__buy:hover { background: var(--accent-hover); }
.event-banner__past-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-banner__past-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  border: 2px solid #fff;
  padding: 8px 24px;
  border-radius: var(--radius-pill);
}

/* ============== 17. ФОТО — пары (инфо + обложка) ============== */
.photo-tiles-section { padding-top: var(--section-gap); }
.photo-tiles-section .container { max-width: 1440px; }

.photo-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(360px, 32vw, 460px);
  gap: 18px;
}

.photo-tile {
  position: relative;
  display: block;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--t-base);
}
.photo-tile:hover { transform: translateY(-3px); }

/* INFO-карточка: светло-серый фон, тёмный текст, синяя круглая стрелка снизу */
.photo-tile--info {
  background: var(--bg-grey-card);
  color: var(--text-on-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  min-height: 360px;
}
.photo-tile--info .photo-tile__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-on-light);
  text-transform: none;
}
.photo-tile--info .photo-tile__meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-on-light-muted);
  display: block;
  margin-bottom: 14px;
}
.photo-tile--info .photo-tile__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.photo-tile--info .btn-icon-arrow {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border: none;
}
.photo-tile--info .btn-icon-arrow svg { width: 18px; height: 18px; }
.photo-tile--info:hover .btn-icon-arrow { background: var(--accent-hover); }

/* COVER-карточка: только фото в скруглённой рамке */
.photo-tile--cover {
  background: var(--bg-card-muted);
}
.photo-tile--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-tile--cover-empty {
  background: #6b6b6f; /* нейтральный серый плейсхолдер как в дизайне */
}

/* PLACEHOLDER — пустые ячейки до конца ряда */
.photo-tile--placeholder {
  background: transparent;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .photo-tiles { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(320px, 48vw, 420px); }
}
@media (max-width: 640px) {
  .photo-tiles {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: clamp(140px, 38vw, 200px);
    gap: 10px;
  }
  /* На мобиле показываем максимум 3 пары (6 карточек) */
  .photo-tiles > .photo-tile:nth-child(n+7) { display: none; }
  .photo-tile--info { padding: 16px; min-height: 0; border-radius: var(--radius-xl, 18px); }
  .photo-tile--info .photo-tile__title { font-size: 16px; }
  .photo-tile--info .photo-tile__meta { font-size: 12px; margin-bottom: 8px; }
  .photo-tile--info .btn-icon-arrow { width: 32px; height: 32px; }
  .photo-tile--info .btn-icon-arrow svg { width: 14px; height: 14px; }
  .photo-tile--cover { border-radius: var(--radius-xl, 18px); }
}

/* Кнопка «Смотреть все» под блоком фото */
.photo-tiles__more {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  text-decoration: none;
  width: fit-content;
  transition: background var(--t-base), border-color var(--t-base);
}
.photo-tiles__more:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }
.photo-tiles__more svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .photo-tiles__more { display: inline-flex; }
}

/* ============== 18. О НАС ============== */
.about-section { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.about-section .container { max-width: 1440px; }

/* Адаптивный gap между блоком ФОТО и О НАС: на мобилке сжимаем сильно */
.photo-tiles-section + .about-section { padding-top: clamp(24px, 4vw, 64px); }

.about-block {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: clamp(28px, 4vw, 56px) clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  position: relative;
  overflow: hidden;
  min-height: clamp(380px, 42vw, 540px);
}
/* Геометрический бэкграунд: синие «лепестки» в нижнем левом углу */
.about-block__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.about-block__col {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}
.about-block__col p + p { margin-top: 14px; }

/* Левая колонка: текст сверху, под ним место для лепестков */
.about-block__col--left {
  align-self: flex-start;
}

/* Правая колонка: цитата прижата к низу-правому углу */
.about-block__col--right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.about-block__quote {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
}
.about-block__quote p + p { margin-top: 14px; }

@media (max-width: 1024px) {
  .about-block { grid-template-columns: 1fr; padding: 28px; gap: 28px; min-height: auto; }
  .about-block__bg { width: 100%; height: 100%; inset: 0; }
  .about-block__col--right { justify-content: flex-start; }
  .about-block__quote { text-align: left; }
}
@media (max-width: 600px) {
  .about-block { padding: 22px; gap: 22px; border-radius: var(--radius-xl, 18px); }
  .about-block__col,
  .about-block__quote { font-size: 13px; line-height: 1.55; }
}

/* ============== 19. Artist tiles — пары (инфо + фото), как в блоке ФОТО ============== */
.artists-section { padding-top: var(--section-gap); }
.artists-section .container { max-width: 1440px; }

.artists-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(360px, 32vw, 460px);
  gap: 18px;
}

.artist-tile {
  position: relative;
  display: block;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--t-base);
}
.artist-tile:hover { transform: translateY(-3px); }

/* INFO-карточка: светло-серый фон, имя сверху, синяя круглая стрелка снизу */
.artist-tile--info {
  background: var(--bg-grey-card);
  color: var(--text-on-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  min-height: 360px;
}
.artist-tile--info .artist-tile__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-on-light);
  text-transform: none;
}
.artist-tile--info .artist-tile__meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-on-light-muted);
  display: block;
  margin-bottom: 14px;
}
.artist-tile--info .artist-tile__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.artist-tile--info .btn-icon-arrow {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border: none;
}
.artist-tile--info .btn-icon-arrow svg { width: 18px; height: 18px; }
.artist-tile--info:hover .btn-icon-arrow { background: var(--accent-hover); }

/* COVER-карточка: только фото артиста в скруглённой рамке */
.artist-tile--cover {
  background: var(--bg-card-muted);
}
.artist-tile--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.artist-tile--cover-empty {
  background: #6b6b6f;
}

.artist-tile--placeholder {
  background: transparent;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .artists-tiles { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(320px, 48vw, 420px); }
}
@media (max-width: 640px) {
  .artists-tiles {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: clamp(150px, 38vw, 220px);
    gap: 10px;
  }
  .artist-tile--info {
    padding: 16px;
    min-height: 0;
    border-radius: var(--radius-xl, 18px);
  }
  .artist-tile--info .artist-tile__name { font-size: 16px; }
  .artist-tile--info .artist-tile__meta { font-size: 12px; margin-bottom: 8px; }
  .artist-tile--info .btn-icon-arrow { width: 32px; height: 32px; }
  .artist-tile--info .btn-icon-arrow svg { width: 14px; height: 14px; }
  .artist-tile--cover { border-radius: var(--radius-xl, 18px); }
}

/* ============== 20. Album card / photo cards ============== */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .albums-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .albums-grid { grid-template-columns: 1fr; } }

.album-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  aspect-ratio: 4 / 5;
  background: var(--bg-card-muted);
  transition: transform var(--t-base);
}
.album-card:hover { transform: translateY(-3px); }
.album-card > img {
  width: 100%; height: 100%; object-fit: cover;
}
.album-card__overlay {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 100%);
}
.album-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.album-card__meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* ============== 21. Events list ============== */
.events-list {
  padding-top: var(--section-gap);
}
.events-list .container { max-width: 1440px; }
.events-list__section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.events-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .events-stack { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .events-stack { grid-template-columns: 1fr; } }

/* ============== 22. Event detail ============== */
.event-detail { padding-bottom: 0; }
.event-detail__hero {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 16px auto 0;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  height: clamp(380px, 55vh, 560px);
}
.event-detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Видео-обложка: ложится точно поверх картинки-обложки (постера), не меняя вёрстку.
   Картинка остаётся под видео как мгновенный фолбэк, пока видео грузится. */
.cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.event-detail__hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.75) 100%);
}
.event-detail__hero-content {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
}
.event-detail__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 130px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.event-detail__meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .event-detail__hero { margin: 0 var(--container-pad); border-radius: var(--radius-xl); }
  .event-detail__hero-content { left: 20px; right: 20px; bottom: 20px; }
}

.event-detail__body {
  padding: var(--section-gap) var(--container-pad) 0;
  max-width: 1440px;
  margin: 0 auto;
}
.event-detail__description {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 900px;
}
.event-detail__description p + p { margin-top: 14px; }
.event-detail__description h2,
.event-detail__description h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  margin: 24px 0 12px;
  letter-spacing: -0.01em;
}

.event-detail__lineup { margin-top: var(--section-gap); }
.event-detail__lineup-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.event-detail__lineup-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .event-detail__lineup-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .event-detail__lineup-list { grid-template-columns: repeat(2, 1fr); } }

.event-detail__lineup-list a {
  background: var(--bg-grey-card);
  color: var(--text-on-light);
  padding: 22px;
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-decoration: none;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  transition: transform var(--t-base);
}
.event-detail__lineup-list a:hover { transform: translateY(-3px); }
.event-detail__lineup-list a::after {
  content: '↗';
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Локация */
.event-detail__location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.event-detail__location-grid > div {
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.event-detail__location-grid > div:first-child {
  aspect-ratio: 16 / 10;
}
.event-detail__location-grid > div:last-child iframe {
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-width: 768px) {
  .event-detail__location-grid { grid-template-columns: 1fr; }
}

/* ============== 23. Tickets ============== */
.tickets-section {
  padding: var(--section-gap) var(--container-pad) 0;
  max-width: 1440px;
  margin: 0 auto;
}
.tickets-section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.tickets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .tickets-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .tickets-grid { grid-template-columns: 1fr; } }

.ticket-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-primary);
  position: relative;
  min-height: 240px;
}
.ticket-card__category {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.ticket-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.ticket-card__desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.ticket-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  margin-top: auto;
  letter-spacing: -0.01em;
}
.ticket-card__buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.ticket-card .btn-ticket-buy { padding: 12px 22px; font-size: 14px; }
.ticket-card .btn-ticket-privileges { padding: 12px 22px; font-size: 14px; }

.ticket-single {
  padding: 32px var(--container-pad);
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* ============== 24. Countdown — гигантский 1-в-1 по фигме ============== */
.countdown-section {
  padding-top: var(--section-gap);
  overflow: hidden;          /* титульные размеры не должны давать горизонтальный скролл */
}
.countdown-section .container { max-width: 1440px; }

/* Заголовок «Обратный / отчёт» — занимает почти всю ширину контейнера */
.countdown-section__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 32px;
  margin-bottom: 32px;
}
.countdown-section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 9vw, 140px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}
.countdown-section__sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(11px, 0.95vw, 14px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-align: right;
  line-height: 1.35;
  margin-top: 8px;
  white-space: nowrap;
}

/* Карточка таймера: тёмная, скруглённая, цифры выровнены по высоте с солнцем */
.countdown {
  position: relative;
  background: #111114;
  border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(32px, 4vw, 72px) clamp(32px, 5vw, 80px) clamp(28px, 3.5vw, 56px);
  overflow: hidden;
  min-height: clamp(280px, 32vw, 420px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
}

/* Цифры + подписи: каждая пара цифр в .countdown__group — подпись центрируется под ней */
.countdown__numbers {
  display: flex;
  align-items: flex-start;
  gap: clamp(6px, 0.9vw, 16px);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}
.countdown__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
}
.countdown__num { font-variant-numeric: tabular-nums; line-height: 0.9; }
.countdown__sep {
  color: #fff;
  line-height: 0.9;
  align-self: flex-start;
}
.countdown__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(10px, 0.85vw, 14px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: clamp(6px, 0.8vw, 14px);
  text-align: center;
  white-space: nowrap;
}

/* Солнце-взрыв: справа карточки, по высоте равно высоте цифр + чуть больше */
.countdown__sun {
  position: absolute;
  right: clamp(-120px, -7vw, -48px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 32vw, 460px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

@media (max-width: 1024px) {
  .countdown-section__head {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .countdown-section__sub { text-align: left; white-space: normal; }
  .countdown__sun { width: 38vw; right: -10vw; opacity: 0.85; }
}
@media (max-width: 640px) {
  .countdown {
    padding: 22px 18px;
    min-height: 160px;
    gap: 10px;
  }
  .countdown__numbers {
    font-size: clamp(36px, 11vw, 56px);
    gap: 6px;
    letter-spacing: -0.03em;
  }
  .countdown__label {
    font-size: 10px;
    margin-top: 4px;
    letter-spacing: 0.1em;
  }
  .countdown__sun { width: 45vw; right: -18vw; opacity: 0.5; }
  .countdown-section__title { font-size: clamp(36px, 10vw, 56px); }
}

/* ============== 25. Location section (страница локаций) ============== */
.location-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1440px;
  margin: 24px auto 0;
  padding: 0 var(--container-pad);
}
.location-section__photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 11;
}
.location-section__photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.location-section__info {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.location-section__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 38px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}
.location-section__address {
  font-family: var(--font-body);
  font-size: 14px;
  opacity: 0.95;
}
.location-section__desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.95;
}
.location-section__map {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.location-section__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(92%) hue-rotate(180deg);
}
@media (max-width: 768px) {
  .location-section { grid-template-columns: 1fr; }
}

/* ============== 26. Pages: about / contacts / artists / gallery / album / artist ============== */
.about-page,
.contacts-page,
.artists-page,
.gallery-page,
.album-page,
.artist-detail {
  padding: 32px 0 0;
}

/* About page */
.about-hero {
  text-align: center;
  padding: 32px var(--container-pad) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.about-hero__label {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}
.about-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 10vw, 140px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.about-hero__tagline {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
}
.about-hero__line {
  width: 80px; height: 2px; background: var(--accent); margin-top: 16px;
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: var(--section-gap) auto 0;
  padding: 0 var(--container-pad);
}
.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-sidebar__block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-sidebar__label {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.about-sidebar__value {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
}
.about-sidebar__cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
  font-size: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color var(--t-base);
}
.about-sidebar__cta:hover { border-color: var(--text-primary); }
.about-content {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
}
.about-content p + p { margin-top: 14px; }

.about-stats {
  max-width: 1100px;
  margin: var(--section-gap) auto 0;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.about-stats__item {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-stats__number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.about-stats__label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Artists page */
.artists-page {
  padding: 24px var(--container-pad) 0;
  max-width: 1440px;
  margin: 0 auto;
}
.artists-page__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* Gallery page */
.gallery-page {
  padding: 24px var(--container-pad) 0;
  max-width: 1440px;
  margin: 0 auto;
}
.gallery-page__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* Album page */
.album-page { padding-top: 24px; }
.album-page .container { max-width: 1440px; }
.album-header {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.album-header__back {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-base);
}
.album-header__back:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.35); }
.album-header__back:active { transform: scale(0.97); }
.album-header__back svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .album-header__back { font-size: 15px; padding: 12px 22px; gap: 10px; }
  .album-header__back svg { width: 16px; height: 16px; }
}
.album-header__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.photo-masonry {
  columns: 3 280px;
  column-gap: 16px;
}
.photo-masonry__item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-card);
}
.photo-masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--t-base);
}
.photo-masonry__item:hover img { transform: scale(1.03); }

/* Artist detail */
.artist-detail__hero {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 16px auto 0;
  height: clamp(360px, 55vh, 540px);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}
.artist-detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artist-detail__hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.7) 100%);
}
.artist-detail__info {
  max-width: 1100px;
  margin: -120px auto 0;
  padding: 32px var(--container-pad) 0;
  position: relative;
  z-index: 2;
  color: #fff;
}
.artist-detail__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.artist-detail__genres {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
}
.artist-detail__bio {
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 780px;
}
.artist-detail__bio p + p { margin-top: 12px; }
.artist-detail__socials {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.artist-detail__socials a {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color var(--t-base);
}
.artist-detail__socials a:hover { border-color: var(--text-primary); }
.artist-detail__events { margin-top: var(--section-gap); }
.artist-detail__events-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* Contacts */
.contacts-page {
  padding: 24px var(--container-pad) 0;
  max-width: 1440px;
  margin: 0 auto;
}
.contacts-page__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.contacts-info {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contacts-info__text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contacts-info__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contacts-info__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contacts-info__value {
  font-family: var(--font-body);
  font-size: 18px;
}
.contacts-info__value a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.contacts-info__socials { display: flex; gap: 16px; margin-top: 4px; }
.contacts-info__socials a {
  font-family: var(--font-body);
  font-size: 15px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form__group input,
.contact-form__group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--t-base);
  resize: vertical;
}
.contact-form__group textarea { min-height: 140px; }
.contact-form__group input::placeholder,
.contact-form__group textarea::placeholder {
  color: var(--text-muted);
}
.contact-form__group input:focus,
.contact-form__group textarea:focus {
  border-color: var(--accent);
}
.contact-form__submit {
  align-self: flex-start;
  margin-top: 8px;
}
.contact-form__success {
  background: rgba(46, 230, 134, 0.12);
  color: var(--success);
  border: 1px solid rgba(46, 230, 134, 0.4);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .contacts-grid { grid-template-columns: 1fr; gap: 16px; }
  .contacts-info, .contact-form { padding: 24px; }
  .contacts-info p,
  .contacts-info__value,
  .contacts-info__value a { word-break: break-word; overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .contacts-info, .contact-form { padding: 20px; border-radius: var(--radius-xl, 18px); }
  .contacts-page { padding-left: 16px; padding-right: 16px; }
}

/* ============== Контакт-виджет (универсальный) ============== */
.cw { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.cw__tabs {
  display: inline-flex;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
}
.cw__tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.7);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base);
  white-space: nowrap;
}
.cw__tab:hover { color: #fff; }
.cw__tab.is-active {
  background: var(--accent, #2148FF);
  color: #fff;
}
.cw__field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 0 14px;
  transition: border-color var(--t-base);
}
.cw__field:focus-within { border-color: var(--accent, #2148FF); }
.cw__prefix {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  padding-right: 8px;
  border-right: 1px solid rgba(255,255,255,0.12);
  margin-right: 8px;
  white-space: nowrap;
}
.cw__prefix[hidden] { display: none; }
.cw__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 14px 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary, #fff);
}
.cw__input::placeholder { color: var(--text-muted, rgba(255,255,255,0.5)); }
.cw__error {
  font-family: var(--font-body);
  font-size: 12px;
  color: #ff5a5a;
}

/* Компактный вариант для футера: тонкая подложка, в одну линию */
.cw--compact .cw__tabs {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}
.cw--compact .cw__tab { padding: 5px 10px; font-size: 11px; }
.cw--compact .cw__field {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  border-radius: 0;
  padding: 0;
}
.cw--compact .cw__field:focus-within { border-bottom-color: #fff; }
.cw--compact .cw__input { padding: 10px 0; color: #fff; }
.cw--compact .cw__input::placeholder { color: rgba(255,255,255,0.7); }
.cw--compact .cw__prefix { color: rgba(255,255,255,0.85); border-right: 0; padding-right: 6px; margin-right: 4px; }

/* Honeypot — невидимое поле */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 480px) {
  .cw__tabs { width: 100%; justify-content: space-between; }
  .cw__tab { flex: 1; text-align: center; }
}

/* ============== 27. Lightbox ============== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox__image {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}
.lightbox__download {
  position: absolute;
  top: 24px;
  right: 84px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-decoration: none;
  transition: background var(--t-base), border-color var(--t-base);
}
.lightbox__download:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__download svg { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .lightbox__close,
  .lightbox__download { width: 44px; height: 44px; top: 16px; }
  .lightbox__close { right: 16px; }
  .lightbox__download { right: 72px; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 26px; }
  .lightbox__prev { left: 12px; }
  .lightbox__next { right: 12px; }
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 32px;
  line-height: 1;
}
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* ============== 28. Error pages ============== */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 24px;
  text-align: center;
}
.error-page__code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(120px, 22vw, 240px);
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.error-page__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 36px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.error-page__link { margin-top: 16px; }

/* ============== 29. Анимации появления ============== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============== 30. Утилиты ============== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#webgl-canvas { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .animate-on-scroll { opacity: 1; transform: none; }
}

/* ============== ПЛАНШЕТ — крупнее заголовки (≤1024px) ============== */
@media (max-width: 1024px) {
  .section-title { font-size: clamp(48px, 8vw, 88px); }
  .page-hero__title,
  .artist-detail__name,
  .contacts-page__title { font-size: clamp(56px, 10vw, 120px); }
  .album-header__title { font-size: clamp(48px, 8vw, 72px); }
  .artist-detail__events-title { font-size: clamp(40px, 6vw, 56px); }
  .artist-detail__bio { font-size: 16px; line-height: 1.6; }
  .artist-detail__genres { font-size: 15px; }
  .event-detail__title { font-size: clamp(48px, 9vw, 96px); }
  .event-detail__description { font-size: 16px; }
}

/* ============== МОБИЛКА — заголовки в размер «АФИШ» (≤640px) ============== */
@media (max-width: 640px) {
  .section-title { font-size: clamp(56px, 12vw, 80px); margin-bottom: 24px; }
  .page-hero__title,
  .artist-detail__name,
  .contacts-page__title { font-size: clamp(64px, 14vw, 100px); }
  .album-header__title { font-size: clamp(56px, 12vw, 76px); }
  .artist-detail__events-title { font-size: clamp(44px, 9vw, 56px); }
  .afisha-head { gap: 16px; margin-bottom: 24px; }
  .afisha-head__title { font-size: clamp(64px, 13vw, 100px); width: 100%; }
  .afisha-head__nav { width: 100%; justify-content: flex-end; }
  .afisha-head__nav .afisha-arrow { width: 52px; height: 52px; }

  /* === БАЗА: текст на мобиле читабельный, но не вылезает === */
  body { font-size: 17px; line-height: 1.55; overflow-wrap: break-word; hyphens: none; }
  p, li, span, label,
  td, th, dd, dt,
  input, textarea, select, button { font-size: 17px; line-height: 1.5; overflow-wrap: break-word; }

  /* Все мелкие подписи / лейблы / меты / карточки — 17px */
  .hero__meta-date, .hero__meta-place,
  .hero__lineup, .hero__sub,
  .event-card__meta, .event-card__title,
  .event-detail__meta,
  .location-card__title,
  .photo-tile--info .photo-tile__title,
  .photo-tile--info .photo-tile__meta,
  .afisha-card__quote,
  .footer__brand-sub, .footer__copyright,
  .footer__nav a, .footer__right-text,
  .footer__form-input, .footer__form-submit,
  .footer__subscribe-label,
  .contacts-info__label, .contacts-info__value, .contacts-info__value a,
  .contact-form__group input, .contact-form__group textarea,
  .cw__input, .cw__tab,
  .about-block__col, .about-block__col p,
  .about-block__quote, .about-block__quote p,
  .artist-detail__bio, .artist-detail__bio p,
  .artist-detail__genres,
  .artist-detail__socials a,
  .event-detail__description, .event-detail__description p,
  .btn-primary, .btn-secondary,
  .hero__cta,
  .album-header__back,
  .photo-tiles__more,
  .mobile-menu__socials a { font-size: 17px; line-height: 1.5; }

  /* Афиша-тайтл и брендовые куски — крупнее, но в одном ритме */
  .afisha-card__title { font-size: 28px; line-height: 1.15; }
  .footer__brand-name { font-size: 30px; }
  .footer__right-title { font-size: 26px; }

  /* Хедер — бургер крупнее */
  .header__burger { width: 48px; height: 48px; }

  /* Мобильное меню — компактнее, центрированно */
  .mobile-menu { padding: 20px 24px 24px; align-items: center; justify-content: flex-start; }
  .mobile-menu__nav { align-items: center; gap: 6px; margin-top: 12px; }
  .mobile-menu__nav a { font-size: 32px; line-height: 1.05; padding: 8px 0; font-weight: 700; text-align: center; }
  .mobile-menu__close { width: 48px; height: 48px; font-size: 28px; }
  .mobile-menu__logo img { height: 36px; }
  .mobile-menu__top { margin-bottom: 12px; }
  .mobile-menu__socials { margin-top: 24px; justify-content: center; }

  /* Футер: убираем горизонтальный нахлёст синего блока */
  .footer__grid { grid-template-columns: 1fr; gap: 0; }
  .footer__left { padding: 36px 24px 28px; min-height: auto; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .footer__right { padding: 36px 24px; min-height: auto; margin-left: 0 !important; margin-top: 0 !important; border-radius: 0 0 var(--radius-xl) var(--radius-xl); box-shadow: none; }

  /* Заголовок «Сотрудничество» — 22px по запросу */
  .footer__right-title { font-size: 22px !important; }

  /* Hero — отступ и кнопки */
  .hero__lineup, .hero__sub { margin-top: 16px; }
  .hero__cta, .btn-primary { padding: 16px 30px; }
  .hero__nav-btn { width: 48px; height: 48px; }

  /* Артист — отступ инфы */
  .artist-detail__info { padding: 0 var(--container-pad); margin-top: -80px; }
  .artist-detail__socials a { padding: 12px 20px; }

  /* Поля форм — паддинги под крупный шрифт */
  .contact-form__group input,
  .contact-form__group textarea { padding: 16px 18px; }
  .cw__input { padding: 16px 0; }
  .cw__tab { padding: 10px 18px; }
  .footer__form-input { padding: 14px 0; }
  .footer__form-submit { padding: 14px 30px; }
  .album-header__back { padding: 12px 22px; }
  .contact-form__submit { padding: 14px 28px; }
}

/* ============== УЗКИЙ СМАРТФОН (≤380px) — чтобы не вылезало ============== */
@media (max-width: 380px) {
  .section-title { font-size: clamp(48px, 13vw, 64px); }
  .page-hero__title,
  .artist-detail__name,
  .contacts-page__title { font-size: clamp(54px, 14vw, 72px); }
  .album-header__title { font-size: clamp(46px, 13vw, 60px); }
  .afisha-head__title { font-size: clamp(54px, 14vw, 72px); }
}

/* ============== БОЛЬШИЕ МОНИТОРЫ — масштаб для впечатления ============== */
@media (min-width: 1920px) {
  :root {
    --container-max: 1600px;
    --container-pad: 120px;
    --section-gap: 128px;
  }
  .container,
  .container--wide,
  .photo-tiles-section .container,
  .about-section .container,
  .events-list .container,
  .afisha-section .container,
  .artists-section .container { max-width: 1720px; }

  .hero__inner,
  .page-hero__inner,
  .artist-detail__hero { max-width: 1720px; height: clamp(640px, 64vh, 820px); }

  .section-title { font-size: clamp(80px, 6vw, 120px); }
  .page-hero__title,
  .contacts-page__title,
  .artist-detail__name { font-size: clamp(120px, 9vw, 180px); }
  .afisha-head__title { font-size: clamp(120px, 9vw, 180px); }
  .album-header__title { font-size: clamp(80px, 6vw, 120px); }

  .partners__inner { max-width: 1720px; }
  .partners__item img { height: clamp(96px, 7vw, 140px); }
}
@media (min-width: 2400px) {
  :root { --container-max: 1920px; --container-pad: 160px; }
  body { font-size: 18px; }
  .container { max-width: 2080px; }
  .hero__inner, .page-hero__inner { max-width: 2080px; }
}

/* ============== Универсальный модал ============== */
.nf-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.nf-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.nf-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-2xl);
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 84vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: translateY(20px);
  transition: transform 200ms ease;
}
.nf-modal.is-open .nf-modal__panel { transform: translateY(0); }
.nf-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.nf-modal__close:hover { background: rgba(255,255,255,0.18); }
.nf-modal__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding-right: 48px;
}
.nf-modal__body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
}
.nf-modal__body p { margin-bottom: 10px; }
.nf-modal__body p:last-child { margin-bottom: 0; }
.nf-modal__body ul, .nf-modal__body ol { margin: 8px 0 8px 24px; }
.nf-modal__body li { margin-bottom: 4px; }
@media (max-width: 480px) {
  .nf-modal__panel { padding: 24px; max-height: 90vh; }
}

/* ============== Quill — базовые стили в админке ============== */
.rich-editor { min-height: 200px; }
.rich-editor .ql-toolbar { border-radius: 8px 8px 0 0; border-color: var(--admin-border, #e5e7eb); background: #fafafa; }
.rich-editor .ql-container { border-radius: 0 0 8px 8px; border-color: var(--admin-border, #e5e7eb); font-family: var(--font-body); font-size: 15px; min-height: 160px; }
.rich-editor + .ql-toolbar { display: none; }
