:root {
  --bg: #090a0d;
  --bg-soft: #111218;
  --panel: rgba(28, 27, 33, 0.86);
  --panel-strong: rgba(35, 29, 34, 0.96);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f7f5f5;
  --muted: #bdb9bd;
  --accent: #e32630;
  --accent-dark: #9f1720;
  --accent-soft: rgba(227, 38, 48, 0.16);
  --gold: #ffca58;
  --success: #35bf7a;
  --radius-xl: 30px;
  --radius-lg: 23px;
  --radius-md: 17px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 5%, rgba(197, 28, 40, 0.34), transparent 31rem),
    radial-gradient(circle at 93% 9%, rgba(114, 32, 43, 0.3), transparent 34rem),
    linear-gradient(180deg, #281015 0, #121217 42rem, var(--bg) 100%);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

.page-noise {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.shell {
  width: min(1280px, calc(100% - 32px));
  max-width: 100%;
  margin-inline: auto;
}

.afisha-header {
  padding-top: 16px;
}

.afisha-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(36, 27, 32, 0.96), rgba(28, 24, 29, 0.92));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand img {
  width: 60px;
  height: 60px;
  border: 2px solid #fff;
  border-radius: 16px;
  object-fit: cover;
}

.brand__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand__domain {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand strong {
  font-size: clamp(17px, 2vw, 23px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.topbar-links {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-links a,
.afisha-footer__links a {
  display: inline-flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 14px;
  font-weight: 800;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.topbar-links a:hover,
.afisha-footer__links a:hover {
  border-color: rgba(227, 38, 48, 0.58);
  background: rgba(227, 38, 48, 0.12);
  transform: translateY(-2px);
}

.afisha-hero {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.afisha-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(90deg, #000, transparent 74%);
}

.afisha-hero__image,
.afisha-hero__veil {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
}

.afisha-hero__image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.8) contrast(1.04);
}

.afisha-hero__veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(13, 8, 11, 0.97) 0%, rgba(20, 10, 14, 0.9) 47%, rgba(18, 11, 15, 0.55) 76%, rgba(18, 11, 15, 0.66) 100%),
    linear-gradient(0deg, rgba(9, 10, 13, 0.55), transparent 45%);
}

.afisha-hero__content {
  display: flex;
  min-width: 0;
  min-height: 560px;
  width: min(760px, 67%);
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 80px);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.beta-badge,
.city-badge,
.event-category,
.event-card__demo {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.beta-badge {
  padding: 8px 12px;
  background: var(--accent);
}

.city-badge {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.25);
}

.eyebrow {
  margin: 0;
  color: #c9c1c4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.afisha-hero h1 {
  max-width: 750px;
  margin: 12px 0 20px;
  font-family: "Oswald", "Manrope", sans-serif;
  font-size: clamp(48px, 7.1vw, 94px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.afisha-hero__lead {
  max-width: 660px;
  margin: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.65;
}

.hero-actions,
.event-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

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

.button--accent {
  background: linear-gradient(135deg, var(--accent), #f4434c);
  box-shadow: 0 14px 30px rgba(227, 38, 48, 0.22);
}

.button--accent:hover {
  filter: brightness(1.08);
}

.button--glass {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

.hero-feature {
  position: absolute;
  right: clamp(20px, 4vw, 54px);
  bottom: clamp(20px, 4vw, 46px);
  width: min(350px, 38%);
  max-width: calc(100% - 36px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(12, 13, 16, 0.86), rgba(62, 19, 26, 0.86));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.hero-feature__label {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-feature strong {
  display: block;
  margin-top: 11px;
  font-size: 23px;
  line-height: 1.2;
}

.hero-feature p {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.hero-feature__price {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.afisha-main {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding-block: 24px 32px;
}

.beta-notice,
.week-strip,
.filters,
.events-section,
.afisha-promo,
.afisha-footer {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(34, 29, 33, 0.88), rgba(18, 19, 23, 0.9)),
    radial-gradient(circle at 8% 0, rgba(227, 38, 48, 0.1), transparent 34%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.21);
}

.beta-notice {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 16px 19px;
  border-radius: var(--radius-md);
}

.beta-notice,
.week-strip,
.filters,
.events-section,
.afisha-promo {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.beta-notice__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: #ff7179;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 700;
}

.beta-notice strong {
  font-size: 14px;
}

.beta-notice p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.beta-notice button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #ff727a;
  cursor: pointer;
  font-size: 21px;
}

.week-strip,
.filters,
.events-section {
  padding: clamp(19px, 3vw, 30px);
  border-radius: var(--radius-xl);
}

.section-heading,
.filters__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading--compact {
  align-items: center;
}

.section-heading h2,
.filters__header h2,
.afisha-promo h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.text-button {
  border: 0;
  background: transparent;
  color: #ff777e;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.week-day {
  min-width: 0;
  padding: 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.week-day:hover,
.week-day.is-active {
  border-color: rgba(227, 38, 48, 0.76);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.week-day.is-today::after {
  display: block;
  width: 5px;
  height: 5px;
  margin: 7px auto 0;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.week-day span,
.week-day small {
  display: block;
}

.week-day span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.week-day strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 22px;
}

.week-day small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.filters__body {
  display: grid;
  grid-template-columns: minmax(270px, 1.8fr) minmax(180px, 0.8fr) minmax(160px, 0.7fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 22px;
}

.control-label {
  display: block;
  margin: 0 0 8px 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-control__field {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
}

.search-control__field:focus-within,
.filter-control select:focus {
  border-color: rgba(227, 38, 48, 0.7);
  box-shadow: 0 0 0 3px rgba(227, 38, 48, 0.1);
}

.search-control svg {
  width: 19px;
  fill: none;
  stroke: #cfc7ca;
  stroke-linecap: round;
  stroke-width: 2;
}

.search-control input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}

.search-control input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.filter-control select,
.results-meta select {
  min-height: 50px;
  width: 100%;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: 0;
  background-color: #242329;
  color: #fff;
  cursor: pointer;
}

.reset-button {
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(227, 38, 48, 0.48);
  border-radius: 15px;
  background: var(--accent-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.category-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.category-tab:hover,
.category-tab.is-active {
  border-color: var(--accent);
  background: var(--accent);
}

.mobile-filter-toggle {
  display: none;
}

.events-section {
  min-height: 420px;
}

.results-meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.results-meta > span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.results-meta select {
  min-height: 42px;
  width: auto;
  font-size: 12px;
  font-weight: 700;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-top: 23px;
}

.event-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(43, 39, 43, 0.94), rgba(21, 22, 26, 0.98));
  cursor: pointer;
  animation: event-card-in 0.4s both;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.event-card:hover {
  border-color: rgba(227, 38, 48, 0.48);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
  transform: translateY(-5px);
}

@keyframes event-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.event-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #191a1e;
}

.event-card__media::after {
  position: absolute;
  inset: 55% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(13, 14, 17, 0.74));
}

.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover .event-card__media img {
  transform: scale(1.04);
}

.event-card__demo {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  padding: 6px 9px;
  background: rgba(8, 9, 12, 0.78);
  color: rgba(255, 255, 255, 0.8);
}

.favorite-button {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  background: rgba(9, 10, 13, 0.72);
  cursor: pointer;
  font-size: 22px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.event-card .favorite-button {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
}

.favorite-button:hover {
  transform: scale(1.06);
}

.favorite-button.is-active {
  border-color: rgba(227, 38, 48, 0.7);
  background: var(--accent);
}

.event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px;
}

.event-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-category {
  padding: 6px 9px;
  background: var(--accent-soft);
  color: #ff7b82;
}

.event-card__date {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.event-card h3 {
  margin: 13px 0 8px;
  overflow-wrap: anywhere;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.event-card__venue {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.event-card__venue svg {
  flex: 0 0 auto;
  width: 15px;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.event-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.event-card__time {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.event-card__price {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  margin-top: 22px;
  padding: 55px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  text-align: center;
}

.empty-state > span {
  font-size: 45px;
}

.empty-state h3 {
  margin: 12px 0 7px;
  font-size: 24px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
}

.afisha-promo {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
}

.afisha-promo > div {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.afisha-promo p:last-child {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.7;
}

.afisha-promo__mark {
  position: absolute;
  right: -18px;
  bottom: -47px;
  color: rgba(227, 38, 48, 0.12);
  font-family: "Oswald", sans-serif;
  font-size: clamp(100px, 19vw, 250px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
}

.afisha-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 22px 32px;
  margin-bottom: 28px;
  padding: 26px;
  border-radius: 24px;
}

.afisha-footer strong {
  display: block;
  margin-top: 6px;
}

.afisha-footer p:not(.eyebrow) {
  max-width: 460px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.afisha-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-end;
  gap: 9px;
}

.afisha-footer__meta {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.afisha-footer__meta strong {
  display: inline;
  color: #fff;
}

.afisha-footer__meta a {
  color: #fff;
  font-weight: 800;
}

.mobile-bottom-bar {
  display: none;
}

.event-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.event-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 7, 0.82);
  backdrop-filter: blur(10px);
}

.event-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 1.08fr);
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 27px;
  background: #17181d;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.event-modal__close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(9, 10, 13, 0.8);
  cursor: pointer;
  font-size: 24px;
}

.event-modal__media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.event-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-modal__media::after {
  position: absolute;
  inset: 45% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(12, 13, 16, 0.82));
}

.event-modal__demo {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.favorite-button--modal {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
}

.event-modal__content {
  padding: clamp(30px, 5vw, 55px);
}

.event-modal__content h2 {
  margin: 14px 0 13px;
  overflow-wrap: anywhere;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.event-modal__description {
  color: var(--muted);
  line-height: 1.7;
}

.event-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 25px 0 0;
}

.event-facts div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.event-facts dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.event-modal__warning {
  margin: 20px 0 0;
  padding: 11px 13px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: #d8cfd2;
  font-size: 11px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  z-index: 1200;
  right: 22px;
  bottom: 22px;
  max-width: min(390px, calc(100% - 32px));
  padding: 14px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #16171b;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .afisha-hero__content {
    width: 76%;
  }

  .hero-feature {
    width: 42%;
  }

  .filters__body {
    grid-template-columns: 1fr 1fr;
  }

  .reset-button {
    grid-column: 2;
  }

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

  .event-modal__dialog {
    grid-template-columns: 0.82fr 1.18fr;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 84px;
  }

  .shell {
    width: min(calc(100% - 22px), 640px);
  }

  .afisha-header {
    padding-top: 9px;
  }

  .afisha-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .topbar-links {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar-links a {
    min-height: 44px;
    padding-inline: 8px;
    overflow-wrap: anywhere;
    font-size: 13px;
  }

  .afisha-hero {
    min-height: 650px;
    margin-top: 12px;
    border-radius: 24px;
  }

  .afisha-hero__image {
    object-position: 57% center;
  }

  .afisha-hero__veil {
    background: linear-gradient(180deg, rgba(17, 9, 13, 0.5), rgba(15, 9, 12, 0.92) 43%, rgba(11, 9, 11, 0.98));
  }

  .afisha-hero__content {
    justify-content: flex-start;
    min-height: 650px;
    width: 100%;
    padding: 42px 24px 225px;
  }

  .afisha-hero h1 {
    max-width: 100%;
    overflow-wrap: normal;
    font-size: clamp(44px, 14vw, 64px);
  }

  .hero-feature {
    right: 18px;
    bottom: 18px;
    left: 18px;
    width: auto;
    max-width: none;
    padding: 19px;
  }

  .beta-notice {
    align-items: flex-start;
  }

  .week-strip,
  .filters,
  .events-section {
    padding: 18px;
    border-radius: 24px;
  }

  .week-days {
    display: flex;
    margin-right: -18px;
    overflow-x: auto;
    padding: 2px 18px 8px 0;
    scroll-snap-type: x mandatory;
  }

  .week-day {
    flex: 0 0 76px;
    scroll-snap-align: start;
  }

  .filters__header {
    align-items: center;
  }

  .mobile-filter-toggle {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid rgba(227, 38, 48, 0.55);
    border-radius: 13px;
    background: var(--accent);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-filter-toggle__arrow {
    transition: transform 0.2s ease;
  }

  .mobile-filter-toggle[aria-expanded="true"] .mobile-filter-toggle__arrow {
    transform: rotate(180deg);
  }

  .filters__body {
    display: none;
    grid-template-columns: 1fr;
  }

  .filters__body.is-open {
    display: grid;
  }

  .reset-button {
    grid-column: auto;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading--compact {
    align-items: center;
    flex-direction: row;
  }

  .results-meta {
    width: 100%;
    align-items: stretch;
  }

  .results-meta > span,
  .results-meta select {
    flex: 1;
    min-width: 0;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .event-card__media {
    aspect-ratio: 16 / 9;
  }

  .afisha-promo {
    min-height: 320px;
  }

  .afisha-promo__mark {
    right: -8px;
    bottom: -12px;
    font-size: 96px;
  }

  .afisha-footer {
    grid-template-columns: 1fr;
    margin-bottom: 14px;
    padding: 20px;
  }

  .afisha-footer__links {
    justify-content: flex-start;
  }

  .afisha-footer__links a {
    min-height: 43px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .mobile-bottom-bar {
    position: fixed;
    z-index: 100;
    right: 10px;
    bottom: 9px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px;
    border: 1px solid var(--line-strong);
    border-radius: 19px;
    background: rgba(18, 17, 21, 0.94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-bar a {
    display: grid;
    min-width: 0;
    place-items: center;
    gap: 3px;
    padding: 7px 2px;
    border-radius: 13px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-bottom-bar a.is-active {
    background: var(--accent);
    color: #fff;
  }

  .mobile-bottom-bar svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .event-modal {
    align-items: end;
    padding: 8px;
  }

  .event-modal__dialog {
    display: block;
    max-height: calc(100vh - 16px);
    border-radius: 24px;
  }

  .event-modal__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .event-modal__content {
    padding: 25px 20px 28px;
  }

  .event-facts {
    grid-template-columns: 1fr;
  }

  .event-modal__actions .button {
    width: 100%;
  }

  .toast {
    right: 16px;
    bottom: 92px;
    left: 16px;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .hero-actions .button {
    width: 100%;
  }

  .beta-notice {
    grid-template-columns: auto 1fr;
  }

  .beta-notice button {
    position: absolute;
    right: 19px;
  }

  .filters__header h2 {
    font-size: 24px;
  }

  .results-meta {
    flex-direction: column;
  }
}

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