:root {
  --bg-deep: #05060a;
  --bg-panel: #0c101c;
  --bg-elev: #12182a;
  --neon: #2ef4c1;
  --neon-dim: #1a9f7a;
  --magenta: #ff3d8a;
  --chrome: #c8d4f0;
  --ink: #eef2ff;
  --muted: #8f9ab8;
  --line: rgba(255, 255, 255, 0.07);
  --glow: 0 0 42px rgba(46, 244, 193, 0.12);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Syne", system-ui, sans-serif;
  --shell: min(1180px, calc(100vw - 2rem));
  --radius: 4px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body.ac-page {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.02rem;
  line-height: 1.66;
  background: var(--bg-deep);
  position: relative;
}

.ac-grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 45%, rgba(255, 61, 138, 0.04) 50%, transparent 55%),
    linear-gradient(-18deg, rgba(46, 244, 193, 0.05) 0%, transparent 38%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.015) 80px,
      rgba(255, 255, 255, 0.015) 81px
    ),
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(46, 244, 193, 0.08), transparent 50%),
    var(--bg-deep);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  z-index: 9999;
}

.skip-link:focus {
  left: 0.5rem;
}

a {
  color: var(--neon);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #7dffdf;
}

.ac-shell {
  width: var(--shell);
  margin-inline: auto;
}

/* —— Top header —— */
.ac-top {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 10, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
}

.ac-top__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 0.65rem 0;
}

@media (max-width: 900px) {
  .ac-top__bar {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .ac-pills {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ac-btn--cta {
    grid-column: 2;
    grid-row: 1;
  }
}

.ac-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.ac-brand__logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--neon), #8afce3);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: var(--glow);
}

.ac-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ac-brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.ac-brand__sub {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

.ac-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.15rem 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}

.ac-pills a {
  flex: 0 0 auto;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 24, 42, 0.6);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ac-pills a:hover {
  color: var(--ink);
  border-color: rgba(46, 244, 193, 0.35);
  background: rgba(46, 244, 193, 0.06);
}

.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.ac-btn:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.ac-btn--cta {
  color: var(--bg-deep);
  background: linear-gradient(90deg, var(--neon), #9fffea);
  box-shadow: 0 0 0 1px rgba(46, 244, 193, 0.35), var(--glow);
}

.ac-btn--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(46, 244, 193, 0.5), 0 12px 40px rgba(46, 244, 193, 0.2);
}

.ac-btn--ghost {
  color: var(--chrome);
  background: transparent;
  border: 1px solid var(--line);
}

.ac-btn--ghost:hover {
  border-color: rgba(255, 61, 138, 0.45);
  color: var(--ink);
}

.ac-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

/* —— Age strip —— */
.ac-age {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 61, 138, 0.12), transparent 40%, rgba(46, 244, 193, 0.08));
}

.ac-age p {
  margin: 0;
  width: var(--shell);
  margin-inline: auto;
  padding: 0.4rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #ffb8d4;
}

/* —— Main —— */
.ac-main {
  position: relative;
  z-index: 1;
}

/* —— Hero —— */
.ac-hero {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.ac-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

@media (max-width: 960px) {
  .ac-hero__grid {
    grid-template-columns: 1fr;
  }
}

.ac-hero__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ac-eyebrow {
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta);
  border: 1px solid rgba(255, 61, 138, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 61, 138, 0.06);
}

.ac-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--ink) 20%, var(--neon) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .ac-hero h1 {
    color: var(--ink);
  }
}

.ac-lead {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

.ac-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 52ch;
}

.ac-hero__visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

/* Единый блок медиа: фиксированное соотношение сторон, без «рваной» сетки */
.ac-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.ac-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.ac-media--hero {
  aspect-ratio: 16 / 9;
}

/* Главный баннер: cover, но мягче старых 50% 14% + scale(1.04) — меньше «зума» на лицо */
.ac-media__img--hero-main {
  object-fit: cover;
  object-position: 80% 70%;
  transform: scale(1);
  transform-origin: center center;
}

@media (max-width: 50px) {
  .ac-media__img--hero-main {
    object-position: 50% 30%;
    transform: scale(0);
  }
}

.ac-hero__bonus {
  margin-top: 0.35rem;
}

.ac-btn--bonus {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #120508;
  background: linear-gradient(95deg, #ffd54a 0%, #ff9e2c 35%, #ff6b35 70%, #ff3d6a 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2) inset,
    0 10px 36px rgba(255, 120, 60, 0.35);
}

.ac-btn--bonus:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.ac-thumb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.ac-thumb {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.ac-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 520px) {
  .ac-thumb-row {
    grid-template-columns: 1fr;
  }
}

.ac-media--4x3 {
  aspect-ratio: 4 / 3;
}

.ac-media--16x9 {
  aspect-ratio: 16 / 9;
}

.ac-igry-solo {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}

.ac-ribbons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 1.5rem auto 0;
  padding: 0;
}

.ac-ribbons li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px dashed rgba(46, 244, 193, 0.25);
}

/* —— Section bands —— */
.ac-band {
  padding: clamp(2.2rem, 5vw, 3.75rem) 0;
  border-bottom: 1px solid var(--line);
}

.ac-band--tint {
  background: linear-gradient(180deg, rgba(18, 24, 42, 0.35), transparent);
}

.ac-band--glow {
  background: radial-gradient(ellipse 70% 50% at 80% 20%, rgba(255, 61, 138, 0.06), transparent 55%);
}

.ac-sec-head {
  max-width: 48rem;
  margin-bottom: 1.75rem;
}

.ac-sec-head h2 {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.ac-sec-head .ac-eyebrow {
  margin-bottom: 0.5rem;
}

/* —— Блок «о зале»: одна карточка, две колонки —— */
.ac-split-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.ac-split-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, var(--magenta), var(--neon));
  opacity: 0.95;
}

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

.ac-split-panel > * {
  position: relative;
  z-index: 1;
}

.ac-split-panel__text {
  min-width: 0;
  padding-top: 0.25rem;
}

.ac-split-panel__aside {
  min-width: 0;
}

.ac-split-panel__label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.ac-split-panel .ac-media {
  box-shadow: none;
}

.ac-split-panel .ac-tags {
  margin-top: 1rem;
}

.ac-sheet {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 2.5vw, 1.65rem);
  position: relative;
  overflow: hidden;
}

.ac-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--magenta), var(--neon));
  opacity: 0.85;
}

.ac-sheet > * {
  position: relative;
  z-index: 1;
}

.prose p {
  margin: 0 0 1rem;
  color: #b9c3e6;
}

.prose h3 {
  margin: 1.5rem 0 0.6rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--chrome);
}

.prose ul {
  margin: 0 0 1rem 1.1rem;
  color: #b9c3e6;
}

.prose li {
  margin-bottom: 0.35rem;
}

.ac-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.ac-tag {
  font-size: 0.68rem;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}

/* —— Слоты: текст + медиа в одной сетке —— */
.ac-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 1.25rem;
  align-items: start;
}

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

.ac-split__content {
  margin: 0;
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.ac-split__content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--magenta));
  opacity: 0.85;
}

.ac-split__content > * {
  position: relative;
  z-index: 1;
}

/* —— Horizontal gallery —— */
.ac-strip-head {
  width: var(--shell);
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.ac-gallery-scroll {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.35rem clamp(1rem, 4vw, 3rem) 1rem;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  scrollbar-color: var(--neon-dim) var(--bg-panel);
}

.ac-gallery-scroll figure {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  aspect-ratio: 1/1;
}

.ac-gallery-scroll img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ac-gallery-scroll figure:hover img {
  transform: scale(1.04);
}

.ac-gallery-scroll figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(0deg, rgba(5, 6, 10, 0.92), transparent);
}

/* —— Full-width prose blocks —— */
.ac-sheet--wide {
  max-width: 52rem;
}

.ac-sheet--wide + .ac-sheet--wide {
  margin-top: 1rem;
}

/* —— FAQ grid —— */
.ac-faq {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.ac-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

@media (max-width: 720px) {
  .ac-faq-grid {
    grid-template-columns: 1fr;
  }
}

.ac-faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  background: rgba(12, 16, 28, 0.65);
}

.ac-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--chrome);
  font-size: 0.95rem;
  list-style: none;
}

.ac-faq summary::-webkit-details-marker {
  display: none;
}

.ac-faq details p {
  margin: 0.75rem 0 0;
  color: #b9c3e6;
  font-size: 0.95rem;
}

/* —— Footer —— */
.ac-foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.75rem;
  background: linear-gradient(0deg, rgba(46, 244, 193, 0.04), transparent);
}

.ac-foot__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: end;
}

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

.ac-foot p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 52rem;
}

.ac-disclaimer {
  border-left: 3px solid var(--magenta);
  padding-left: 1rem;
  margin-top: 0.75rem;
  color: #b9c3e6;
}

.ac-foot__cta {
  text-align: right;
}

@media (max-width: 640px) {
  .ac-foot__cta {
    text-align: left;
  }
}

.ac-foot__cta a {
  display: inline-flex;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg-deep);
  background: linear-gradient(90deg, var(--neon), #b8fff0);
}

.ac-foot__cta a:hover {
  filter: brightness(1.06);
}

.ac-foot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.ac-foot-tags span {
  font-size: 0.68rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
