@font-face {
  font-family: 'Sovetnik Afisha Display';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/sv-title/playfair-display-cyrillic-600-italic.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

.afisha-zone {
  --white:    #ffffff;
  --bg-dark:  #0d0d0d;
  --bg-card:  #161616;
  --gold:     #C8A84B;
  --gold-dim: rgba(200,168,75,.15);
  --gold-line:rgba(200,168,75,.20);
  --fg-dark:  #e8dfd4;
  --fg-muted: #8a7f72;
  --fg-dim:   #55504a;
  --red:      #8B2020;
  --text-main:#1a1a1a;
}

.afisha-zone .dark-filters {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--gold-line);
}

.afisha-zone .dark-filters > nav[hidden] { display: none; }

/* ГОРОД */
.afisha-zone .city-tabs-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.afisha-zone .city-tabs-wrap::-webkit-scrollbar { display: none; }
.afisha-zone .city-tabs {
  display: flex;
  gap: 0;
  padding: 0 max(16px, env(safe-area-inset-left,0px));
  white-space: nowrap;
  min-width: 100%;
}
.afisha-zone .city-tab {
  font-size: 13px;
  color: var(--fg-muted);
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  background: none;
  border-top: none; border-left: none; border-right: none;
  font-family: 'Inter', sans-serif;
}
.afisha-zone .city-tab:first-child { padding-left: 0; }
.afisha-zone .city-tab.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 500; }
.afisha-zone .city-tab:hover { color: var(--fg-dark); }

/* КАТЕГОРИИ */
.afisha-zone .cat-tabs-wrap {
  overflow-x: auto;
  scrollbar-width: none;
}
.afisha-zone .cat-tabs-wrap::-webkit-scrollbar { display: none; }
.afisha-zone .cat-tabs {
  display: flex;
  gap: 0;
  padding: 0 max(16px, env(safe-area-inset-left,0px));
  white-space: nowrap;
  min-width: 100%;
  align-items: center;
}
.afisha-zone .cat-tab {
  font-size: 12px;
  color: var(--fg-dim);
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none; border-left: none; border-right: none;
  font-family: 'Inter', sans-serif;
  transition: color .12s;
  letter-spacing: .02em;
}
.afisha-zone .cat-tab:first-child { padding-left: 0; }
.afisha-zone .cat-tab.active { color: var(--fg-dark); border-bottom-color: var(--fg-muted); }
.afisha-zone .cat-tab:hover { color: var(--fg-dark); }

/* ЗАГОЛОВОК РАЗДЕЛА */
.afisha-zone .afisha-hero {
  padding: 24px max(16px, env(safe-area-inset-left,0px)) 20px;
}
.afisha-zone .afisha-hero-title {
  font-family: 'Sovetnik Afisha Display', Georgia, serif;
  font-size: 48px;
  font-weight: 600;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.afisha-zone .afisha-hero-sub {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: .06em;
}

/* ═══════════════════════════════════
   ТЁМНАЯ ЗОНА — АФИША
═══════════════════════════════════ */
.afisha-zone {
  background: var(--bg-dark);
  padding-bottom: 48px;
}

/* ── Секция ── */
.afisha-zone .afisha-section {
  color: inherit;
  background-color: transparent;
  padding: 32px 0 0;
  overflow: visible;
}
.afisha-zone .afisha-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 max(16px, env(safe-area-inset-left,0px)) 14px max(16px, env(safe-area-inset-right,0px));
}
.afisha-zone .afisha-section-title {
  font-family: 'Sovetnik Afisha Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  color: var(--gold);
  letter-spacing: -.01em;
}
.afisha-zone .afisha-section-more {
  font-size: 12px;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .12s, border-color .12s;
}
.afisha-zone .afisha-section-more:hover { color: var(--gold); border-bottom-color: var(--gold-line); }

/* ── Горизонтальный скролл карточек ── */
.afisha-zone .cards-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 10px;
  padding-left: max(16px, env(safe-area-inset-left,0px));
  padding-right: max(32px, calc(env(safe-area-inset-right,0px) + 16px));
  padding-top: 2px;
  padding-bottom: 4px;
}
.afisha-zone .cards-scroll::-webkit-scrollbar { display: none; }

/* ── Карточка события ── */
.afisha-zone .event-card {
  flex-shrink: 0;
  width: 160px;
  scroll-snap-align: start;

}
.afisha-zone .event-card.wide { width: 220px; }

.afisha-zone .event-photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 8px;
  position: relative;
}
.afisha-zone .event-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.afisha-zone .event-card:hover .event-photo img { transform: scale(1.04); }

/* Плейсхолдер-фото (SVG-градиент) когда нет реального фото */
.afisha-zone .photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  background: linear-gradient(135deg, #1e1a16 0%, #2a2318 60%, #1a1510 100%);
}
.afisha-zone .photo-placeholder-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px;
  color: rgba(201,169,110,.6);
  letter-spacing: .06em;
  line-height: 1.3;
}

/* Бейдж «осталось N дней» */
.afisha-zone .days-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(139,32,32,.85);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

.afisha-zone .event-name {
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 4px;
}
.afisha-zone .event-venue {
  font-size: 11px;
  color: var(--fg-muted);
  margin-bottom: 2px;
}
.afisha-zone .event-date {
  font-size: 12px;
  color: var(--gold);
  font-style: italic;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
}

/* ── Список (компактный) ── */
.afisha-zone .event-list { padding: 0 max(16px, env(safe-area-inset-left,0px)); }
.afisha-zone .event-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(201,169,110,.08);

}
.afisha-zone .row-day {
  text-align: center;
  padding-top: 1px;
}
.afisha-zone .row-day-num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.afisha-zone .row-day-mon {
  display: block;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.afisha-zone .row-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  color: var(--fg-dark);
  line-height: 1.25;
  margin-bottom: 2px;
}
.afisha-zone .row-venue {
  font-size: 11px;
  color: var(--fg-muted);
}
.afisha-zone .row-tag {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
  margin-top: 2px;
}

/* ── Разделитель секций ── */
.afisha-zone .afisha-section-divider {
  height: 1px;
  background: var(--gold-line);
  margin: 32px max(16px, env(safe-area-inset-left,0px)) 0;
}

/* ── Responsive ── */
@media (min-width: 480px) {
  .afisha-zone .event-card { width: 190px; }
  .afisha-zone .event-card.wide { width: 260px; }
}

.afisha-zone { font: 400 15px/1.5 Inter, system-ui, sans-serif; color: var(--fg-dark); }
.afisha-zone *, .afisha-zone *::before, .afisha-zone *::after { box-sizing: border-box; }
.afisha-zone h1, .afisha-zone h2 { margin-top: 0; }
.afisha-zone .city-tab, .afisha-zone .cat-tab { display: block; white-space: nowrap; text-decoration: none; }
.afisha-zone .event-card { color: inherit; text-decoration: none; }
.afisha-zone .photo-placeholder { margin: 0; }
.afisha-zone .afisha-empty { padding: 32px 16px; }
.afisha-zone .cards-scroll { scroll-padding-inline-start: 16px; }
.afisha-zone .afisha-month { color: var(--fg-muted); }


.afisha-zone a,
.afisha-zone a:visited,
.afisha-zone a:hover {
  text-decoration: none;
}
.afisha-zone a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.afisha-zone .event-name a,
.afisha-zone .event-name a:visited,
.afisha-zone .event-name a:hover {
  color: inherit;
}
.afisha-zone .cat-tab.active { border-bottom-color: var(--fg-dark); }

/* Layout proportions from the approved visual reference. */
.afisha-zone {
  --afisha-gutter: clamp(12px, 2.65vw, 36px);
  --afisha-gap: clamp(10px, 2.65vw, 36px);
  --bg-dark: #060708;
  --gold: #e6b457;
  --fg-muted: #a0a0a3;
  --fg-dim: #a0a0a3;
}
.afisha-zone .dark-filters { border-bottom-color: #292a2d; }
.afisha-zone .city-tabs-wrap { margin-inline: var(--afisha-gutter); border-bottom-color: #292a2d; }
.afisha-zone .city-tabs,
.afisha-zone .cat-tabs { padding-inline: var(--afisha-gutter); gap: clamp(14px, 3.9vw, 52px); }
.afisha-zone .city-tabs { padding-inline: 0; }
.afisha-zone .city-tab,
.afisha-zone .cat-tab {
  padding: clamp(10px, 2.8vw, 35px) 0;
  font-size: clamp(12px, 2.2vw, 23px);
  line-height: 1.2;
}
.afisha-zone .afisha-hero { padding: clamp(22px, 5.8vw, 72px) var(--afisha-gutter) clamp(13px, 3vw, 36px); }
.afisha-zone .afisha-hero-title { font-size: clamp(38px, 8.2vw, 100px); margin-bottom: clamp(8px, 1.7vw, 22px); }
.afisha-zone .afisha-hero-sub { font-size: clamp(12px, 2vw, 24px); letter-spacing: 0; }
.afisha-zone .afisha-section { padding-top: clamp(16px, 3.4vw, 48px); }
.afisha-zone .afisha-section-head { padding: 0 var(--afisha-gutter) clamp(16px, 3.8vw, 48px); }
.afisha-zone .afisha-section-title { font-size: clamp(21px, 4.65vw, 56px); line-height: 1.16; margin: 0; }
.afisha-zone .afisha-section-more { margin-left: 12px; font-size: clamp(12px, 2.2vw, 26px); white-space: nowrap; }
.afisha-zone .cards-scroll {
  margin-inline: var(--afisha-gutter);
  padding: 0;
  gap: var(--afisha-gap);
  scroll-padding-inline-start: 0;
}
.afisha-zone .event-card { width: 39.7%; }
.afisha-zone .event-photo { aspect-ratio: 460 / 297; border-radius: clamp(6px, 1.3vw, 16px); margin-bottom: clamp(8px, 2vw, 24px); }
.afisha-zone .event-name {
  font-size: clamp(13px, 2.82vw, 34px);
  line-height: 1.32;
  block-size: 3.96em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-bottom: 0;
}
.afisha-zone .event-venue { display: none; }
.afisha-zone .event-date {
  margin-top: clamp(8px, 1.8vw, 22px);
  font-family: 'Sovetnik Afisha Display', Georgia, serif;
  font-size: clamp(13px, 2.7vw, 32px);
  font-weight: 400;
  font-synthesis: none;
}
.afisha-zone .afisha-section-divider { margin: clamp(22px, 5.7vw, 70px) var(--afisha-gutter) clamp(6px, 2.75vw, 34px); background: #292a2d; }

.afisha-zone .event-photo.event-photo--contain img { object-fit: contain; }
.afisha-zone .event-photo--contain:hover img { transform: none; }
.afisha-zone .event-name { text-wrap: balance; }

.afisha-zone .city-tab--disabled { cursor: default; }
.afisha-zone .city-tab--disabled:hover { color: var(--fg-muted); }
.afisha-zone .event-photo img { object-fit: cover; }
.afisha-zone .event-card--no-photo { padding: .8em; background: var(--bg-card); border-radius: .65em; }

.afisha-zone .event-card { position: relative; }
.afisha-zone .event-name a::after { content: ''; position: absolute; inset: 0; }
.afisha-zone .event-name a:focus-visible::after { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: .65em; }

.afisha-zone .afisha-photo-credit { margin: .55em 0 0; font-size: .75rem; color: var(--fg-muted); }
.afisha-zone .afisha-photo-credit a { color: inherit; position: relative; z-index: 1; }

@media (min-width: 992px) {
  .afisha-zone {
    --afisha-content-width: 960px;
    --afisha-gutter: calc((100% - var(--afisha-content-width)) / 2 + 12px);
    --afisha-gap: 20px;
  }
  .afisha-zone .city-tabs,
  .afisha-zone .cat-tabs { gap: 28px; }
  .afisha-zone .city-tab,
  .afisha-zone .cat-tab { padding-block: 14px; font-size: 15px; }
  .afisha-zone .afisha-hero { padding-block: 28px 24px; }
  .afisha-zone .afisha-hero-title { font-size: clamp(48px, 4.4vw, 60px); margin-bottom: 8px; }
  .afisha-zone .afisha-hero-sub { font-size: 15px; }
  .afisha-zone .afisha-section { padding-top: 26px; }
  .afisha-zone .afisha-section-head { padding-bottom: 18px; }
  .afisha-zone .afisha-section-title { font-size: clamp(30px, 2.8vw, 38px); }
  .afisha-zone .event-card { width: 22%; }
  .afisha-zone .event-photo { border-radius: 12px; margin-bottom: 12px; }
  .afisha-zone .event-name { font-size: 17px; }
  .afisha-zone .event-date { margin-top: 8px; font-size: 16px; }
  .afisha-zone .afisha-section-divider { margin-block: 26px 8px; }
}

@media (min-width: 1200px) {
  .afisha-zone { --afisha-content-width: 1140px; }
}

@media (min-width: 1400px) {
  .afisha-zone { --afisha-content-width: 1320px; }
}

@media (max-width: 1199.98px) {
  body #header.header-editorial.header-masthead .header-top {
    border-bottom-color: transparent !important;
  }
}
