/* ============================================================
   AkiMine — mockup v2
   BG #000000 · blocks #0F081A · Michroma + Onest (Micro Technic)
   ============================================================ */

:root {
  --bg: #000000;
  --block: #0d0b14;
  --block-hover: #12101c;
  --purple: #510b8c;
  --purple-light: #8b5cf6;
  --purple-glow: rgba(81, 11, 140, 0.45);
  --text: #ffffff;
  --muted: #999999;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 20px;
  --radius-sm: 14px;
  --font-display: "Onest", "Segoe UI", sans-serif;
  --font-body: "Onest", "Segoe UI", sans-serif;
  --font-michroma: "Michroma", sans-serif;
  --font-news: "Micro Technic Extended", "Onest", sans-serif;
  --wrap: min(1140px, 92vw);
  --page-pad: max(20px, 4vw);
  --nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-dur: 0.65s;
  /* Figma dashboard: online/event 384×309, news 1187×661 */
  --dash-side-ratio: 384 / 309;
  --dash-news-ratio: 1187 / 661;
  --dash-col-left: 384fr;
  --dash-col-right: 1187fr;
}

@font-face {
  font-family: "Micro Technic Extended";
  src:
    local("Micro Technic Extended [RUS by Bold"),
    local("MicroTechnicExtBold"),
    url("../assets/fonts/micro-technic-extended-rus.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: clip;
  background: var(--bg);
}

html::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 280px;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
  background:
    radial-gradient(ellipse 90% 100% at 50% -12%, rgba(81, 11, 140, 0.24) 0%, transparent 70%),
    radial-gradient(ellipse 65% 62% at 50% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 64%);
}

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  background: transparent;
  position: relative;
  z-index: 1;
}

a { color: var(--purple-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  width: var(--wrap);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

/* ── Top brand nav (mayak | maggram | akimine) ── */
.topbar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(48px, 7vh, 72px) var(--page-pad) 0;
}

.brand-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  min-height: 44px;
  overflow: visible;
}

.brand-nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  gap: 0;
  padding: 8px 4px;
  min-height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-michroma);
  font-size: clamp(0.72rem, 1.1vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  line-height: normal;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.35s ease;
}

.brand-nav__item:hover { opacity: 0.92; }

.brand-nav__item:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 4px;
  border-radius: 6px;
}

.brand-nav__icon {
  flex-shrink: 0;
  display: block;
  height: auto;
  object-fit: contain;
  transition: opacity var(--nav-dur) var(--nav-ease), transform var(--nav-dur) var(--nav-ease);
}

.brand-nav__icon--mayak {
  width: clamp(28px, 2.5vw, 36px);
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.brand-nav__icon--maggram {
  width: clamp(32px, 2.8vw, 40px);
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.brand-nav__icon--akimine {
  width: clamp(22px, 2vw, 28px);
  opacity: 0.5;
}

.brand-nav__item.is-active .brand-nav__icon,
.brand-nav__item:hover .brand-nav__icon {
  opacity: 1;
}

/* Плавное выезжание названия */
.brand-nav__label {
  display: grid;
  grid-template-columns: 0fr;
  margin-left: 0;
  overflow: hidden;
  transition:
    grid-template-columns var(--nav-dur) var(--nav-ease),
    margin-left var(--nav-dur) var(--nav-ease),
    opacity 0.4s ease 0.08s;
  opacity: 0;
  pointer-events: none;
}

.brand-nav__label-text {
  display: block;
  overflow: hidden;
  min-width: 0;
  white-space: nowrap;
  font-family: var(--font-michroma);
  font-weight: 400;
  font-size: inherit;
  line-height: 1.35;
  padding: 4px 0 6px;
  transform: translateX(-6px);
  transition: transform var(--nav-dur) var(--nav-ease);
}

.brand-nav__item.is-active .brand-nav__label {
  grid-template-columns: 1fr;
  opacity: 1;
  margin-left: clamp(8px, 1.2vw, 14px);
  pointer-events: auto;
  transition:
    grid-template-columns var(--nav-dur) var(--nav-ease),
    margin-left var(--nav-dur) var(--nav-ease),
    opacity 0.45s ease 0.12s;
}

.brand-nav__item.is-active .brand-nav__label-text {
  transform: translateX(0);
}

.brand-nav__sep {
  flex-shrink: 0;
  width: 1px;
  height: clamp(22px, 2.5vw, 28px);
  background: rgba(255, 255, 255, 0.22);
  margin: 0 clamp(14px, 2vw, 22px);
}

/* legacy .spotlight removed — glow is html::before */

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.1s; }
.reveal[data-d="2"] { transition-delay: 0.2s; }

/* ── Hero logo (logo.png) ── */
.hero {
  padding: clamp(72px, 10vh, 112px) 0 clamp(24px, 4vw, 40px);
  text-align: center;
}

.hero__wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero__logo {
  width: min(780px, calc(100vw - var(--page-pad) * 2));
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 8px 24px rgba(81, 11, 140, 0.18));
}

/* ── Blocks (base) ── */
.block {
  background: var(--block);
  border-radius: var(--radius);
  border: none;
  padding: 20px 22px;
  transition: background 0.25s, transform 0.35s ease, box-shadow 0.35s ease;
}

.block__label {
  font-family: var(--font-michroma);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ── Dashboard ── */
.dash { padding-bottom: 24px; }

.dash__grid {
  display: grid;
  grid-template-columns: minmax(0, var(--dash-col-left)) minmax(0, var(--dash-col-right));
  gap: 22px;
  align-items: start;
}

.dash__left {
  display: grid;
  grid-template-rows: auto auto;
  gap: 20px;
  width: 100%;
  min-width: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.dash__left:has(.block--event:hover) {
  z-index: 20;
}

.block--online,
.block--event {
  width: 100%;
  aspect-ratio: var(--dash-side-ratio);
  min-width: 0;
}

/* ── Online live graph ── */
.block--online {
  padding: 16px 18px 14px;
  border-radius: clamp(20px, 3.5vw, 28px);
  background: var(--block);
  overflow: hidden;
}

.online-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.online-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.online-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.online-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.75), 0 0 22px rgba(52, 211, 153, 0.35);
  animation: online-pulse 2.4s ease-in-out infinite;
}

@keyframes online-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.82; transform: scale(0.92); }
}

.online-card__label {
  font-family: var(--font-michroma);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--text);
}

.online-card__count {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.65rem);
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.online-card__count.is-loading {
  opacity: 0.45;
}

.online-card__count.is-scrubbing {
  color: #c084fc;
}

.online-card__graph-wrap {
  position: relative;
  flex: 1;
  min-height: 72px;
  width: 100%;
  padding: 0 2px;
  cursor: crosshair;
  touch-action: none;
}

.online-card__graph {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.online-card__graph-wrap.is-scrubbing {
  cursor: ew-resize;
}

.online-card__line {
  filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.4));
}

.block--online.is-flat-zero .online-card__line {
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.55));
}

.block--online.is-flat-zero .online-card__area {
  opacity: 0.95;
}

.online-card__marker {
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.7));
  pointer-events: none;
}

.online-card__scrub {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s;
}

.online-card__graph-wrap.is-scrubbing .online-card__scrub {
  opacity: 1;
  visibility: visible;
}

.block--event {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 22px;
  min-height: 0;
  overflow: visible;
  border: none;
  background: var(--block);
  border-radius: clamp(22px, 3.5vw, 26px);
}

.block--event::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(13, 11, 20, 0) 38%, rgba(28, 14, 42, 0.82) 100%),
    radial-gradient(ellipse 88% 52% at 50% 100%, rgba(139, 92, 246, 0.24) 0%, transparent 68%);
  transition: background 0.45s ease;
}

.block--event--live::before {
  background:
    linear-gradient(180deg, rgba(13, 11, 20, 0) 28%, rgba(36, 14, 56, 0.88) 100%),
    radial-gradient(ellipse 92% 58% at 50% 100%, rgba(167, 139, 250, 0.38) 0%, transparent 72%);
}

.event-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.event-card__head {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  width: 100%;
  padding-left: 2px;
}

.event-card__icon {
  display: block;
  width: 12px;
  height: 10px;
  opacity: 0.92;
}

.event-card__label {
  font-family: var(--font-michroma);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.92);
}

.event-card__live-badge {
  margin-left: auto;
  padding: 3px 8px 2px;
  border-radius: 999px;
  font-family: var(--font-michroma);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #fff;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
  animation: event-live-pulse 2s ease-in-out infinite;
}

@keyframes event-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.block--event--live .event-card__ip {
  color: rgba(216, 180, 254, 0.95);
}

.event-card__art-wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 2px -9% 0;
  overflow: visible;
}

.event-card__art {
  display: block;
  width: 118%;
  max-width: none;
  height: auto;
  object-fit: contain;
  transform: translateY(6px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.block--event:hover .event-card__art {
  transform: translateY(6px) scale(1.06);
}

.block--event:hover .event-card__art-wrap {
  z-index: 10;
}

.event-card__ip {
  margin-top: auto;
  padding-top: 12px;
  padding-bottom: 6px;
  text-align: center;
  font-family: var(--font-michroma);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  flex-shrink: 0;
}

.event-card__ip-suffix {
  font-family: var(--font-body);
  letter-spacing: 0;
  font-weight: 500;
}

/* News panel — Figma 1187×661 */
.block--news {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: var(--dash-news-ratio);
  min-width: 0;
  min-height: 0;
  padding: 18px 16px 20px;
  border: none;
  background: var(--block);
  border-radius: clamp(22px, 3.5vw, 26px);
  overflow: hidden;
}

.news-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.news-card__head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding-left: 2px;
  margin-bottom: 14px;
}

.news-card__icon {
  display: block;
  width: 15px;
  height: 13px;
  opacity: 0.92;
}

.news-card__label {
  font-family: var(--font-michroma);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.92);
}

.news-list-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.news-list-wrap::before,
.news-list-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 4px;
  height: 44px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.news-list-wrap::before {
  top: 0;
  background: linear-gradient(180deg, var(--block) 0%, rgba(13, 11, 20, 0.72) 42%, transparent 100%);
}

.news-list-wrap::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--block) 0%, rgba(13, 11, 20, 0.72) 42%, transparent 100%);
}

.news-list-wrap.is-scrollable:not(.is-at-top)::before {
  opacity: 1;
}

.news-list-wrap.is-scrollable:not(.is-at-bottom)::after {
  opacity: 1;
}

.news-list {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 4px 2px 0;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.35) transparent;
}

.news-list::-webkit-scrollbar {
  width: 5px;
}

.news-list::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.35);
  border-radius: 999px;
}

.news-list::-webkit-scrollbar-track {
  background: transparent;
}

.news-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 4px 2px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.news-item:hover,
.news-item:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.news-item__thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

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

.news-item__title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 4px;
  line-height: 1.35;
}

.news-item__sub {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list__empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 24px 12px;
}

.news-card__foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 14px;
}

.btn--news {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 12px 20px;
}

/* ── Stream ── */
.stream { padding: 8px 0 24px; }

.stream__wrap {
  max-width: min(960px, 100%);
}

.block--stream {
  padding: 0;
  overflow: hidden;
  min-height: 0;
  background: var(--block);
}

.stream__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  background: #000;
  overflow: hidden;
}

.stream__embed {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  min-height: 240px;
}

.stream__embed iframe,
.stream__embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.is-hidden {
  display: none !important;
}

/* ── Pricing ── */
.pricing { padding: 32px 0 16px; }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  overflow: visible;
}

.block--tier {
  display: flex;
  flex-direction: column;
  padding: 30px 20px 24px;
  position: relative;
  background: var(--block);
  overflow: visible;
}

.block--tier-feat {
  transform: scale(1.02);
  padding-top: 34px;
}

.block--tier > .tier__badge {
  position: absolute;
  top: 0;
  left: 50%;
  right: auto;
  width: max-content;
  max-width: calc(100% - 24px);
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(81, 11, 140, 0.35);
  pointer-events: none;
}

.tier__name {
  margin: 6px 0 20px;
  padding-top: 2px;
  line-height: 0;
}

.tier__name-img {
  display: block;
  width: auto;
  height: clamp(20px, 2.8vw, 28px);
  max-width: 92%;
  object-fit: contain;
  object-position: left center;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.tier__price {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.tier__price span {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.tier__feats {
  list-style: none;
  flex: 1;
  margin-bottom: 20px;
}

.tier__feats li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.tier__feats li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple-light);
  transform: translateY(-50%);
}

.pricing__note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
  color: inherit;
}

.btn--block { width: 100%; }

.btn--purple {
  background: linear-gradient(135deg, var(--purple) 0%, #7c3aed 50%, var(--purple-light) 100%);
  color: #fff;
  box-shadow: 0 4px 24px var(--purple-glow);
}
.btn--purple:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45);
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
}
.btn--outline:hover {
  border-color: var(--purple-light);
  background: rgba(81, 11, 140, 0.15);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn--ghost:disabled { opacity: 0.45; cursor: not-allowed; }

.formmsg { margin-top: 10px; font-size: 0.9rem; }
.formmsg.ok { color: #4ade80; }
.formmsg.err { color: #f87171; }

/* ── Footer ── */
.footer {
  padding: 28px 0 24px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(81, 11, 140, 0.04) 100%);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer__network {
  margin: 0;
  font-family: var(--font-michroma);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.32);
}

.footer__sep {
  margin: 0 0.4em;
  color: rgba(255, 255, 255, 0.18);
}

.footer__network-active {
  color: rgba(196, 132, 252, 0.55);
}

.footer__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: center;
}

.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 0.84rem;
}

.footer__contacts a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer__contacts a:hover {
  color: var(--purple-light);
}

.footer__requisites {
  margin: 0;
  max-width: 640px;
  font-size: 0.74rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.38);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15em 0.35em;
  max-width: 720px;
  margin: 2px 0 0;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: var(--purple-light);
  text-decoration: none;
}

.footer__legal-sep {
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  user-select: none;
}

.footer__copy {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.03em;
}

/* ── Modal (checkout) ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.overlay.show { opacity: 1; visibility: visible; }

.modal {
  width: min(420px, 100%);
  max-height: 90vh;
  overflow-y: auto;
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.modal__tier {
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.modal__head h3 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 4px;
}

.modal__x {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}
.modal__x:hover { color: var(--text); }

.modal__price {
  margin-bottom: 16px;
  color: var(--muted);
}

.modal__price b {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple-light);
}

.field { margin-bottom: 12px; }

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.45;
}

.field input:focus,
.field textarea:focus { border-color: var(--purple-light); }

.field input[type="file"] {
  padding: 10px 0;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  color: var(--muted);
}

.modal--news-vk {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal__x--float {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  line-height: 1;
}

.news-vk__media {
  flex-shrink: 0;
  background: var(--block);
}

.news-vk__media img {
  display: block;
  width: 100%;
  max-height: min(52vh, 420px);
  object-fit: cover;
}

.news-vk__content {
  padding: 20px 22px 24px;
  overflow-y: auto;
}

.news-vk__title {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 8px;
  padding-right: 28px;
}

.news-vk__date {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.news-vk__body {
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  white-space: pre-wrap;
  word-break: break-word;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
  cursor: pointer;
}

.req { color: #f87171; }

/* Card spotlight — фиолетовое свечение внутри блока у курсора */
[data-spot] {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
}

[data-spot]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(139, 92, 246, 0.18) 0%,
    rgba(81, 11, 140, 0.09) 30%,
    transparent 55%
  );
}

[data-spot].is-spot-active::before {
  opacity: 1;
}

[data-spot] > *:not(.tier__badge) {
  position: relative;
  z-index: 1;
}

/* ── Legal pages (shared) ── */
.legal-hero {
  padding: 100px 0 32px;
  text-align: center;
}

.legal-hero h1 {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  margin: 12px 0;
}

.legal-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.back svg { width: 18px; height: 18px; }

.legal-body {
  padding-bottom: 64px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--purple-light);
}

.legal-content p,
.legal-content li {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  line-height: 1.6;
}

.legal-content ul { padding-left: 20px; margin-bottom: 16px; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-michroma);
  font-size: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.nav { display: flex; gap: 20px; }
.nav a {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.kicker {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--purple-light);
  text-transform: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .dash__grid,
  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .block--online,
  .block--event,
  .block--news {
    aspect-ratio: auto;
  }

  .block--event {
    min-height: 240px;
  }

  .block--tier-feat { transform: none; }
}

@media (max-width: 600px) {
  .topbar { padding: clamp(32px, 5vh, 48px) var(--page-pad) 0; }

  .brand-nav__sep { margin: 0 10px; height: 22px; }

  .brand-nav__item.is-active .brand-nav__label { margin-left: 8px; }

  .burger { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    background: var(--block);
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  [data-tilt] { transform: none !important; }
  .event-card__art { transition: none; }
  .block--event:hover .event-card__art { transform: translateY(6px); }
}
