/* ============================================================
   ПРЕДЛОЖКА TRIXIE_VOX — каталог видео, космический фиолет
   ============================================================ */

:root {
  --bg: #0a0614;
  --bg-soft: #1a0f36;
  --panel: rgba(46, 26, 90, 0.9);
  --panel-solid: #211243;
  --line: rgba(178, 132, 255, 0.34);
  --ink: #f3edff;
  --muted: #bfaeef;
  --violet: #8a2be2;
  --magenta: #d35cff;
  --pink: #ff7ad9;
  --ice: #c3b0ff;
  --grad: linear-gradient(100deg, #7b2bff 0%, #c83bff 45%, #ff7ad9 100%);
  --money-grad: linear-gradient(100deg, #ff3dce 0%, #ff8ae0 100%);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-strong: cubic-bezier(0.2, 1.45, 0.3, 1);
  --font-display: "Unbounded", sans-serif;
  --font-body: "Onest", sans-serif;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

body.has-modal { overflow: hidden; }

::selection { background: var(--violet); color: #fff; }

a { color: var(--ice); }

button { font-family: inherit; }

/* ---------- фон: звёзды и туманности ---------- */

#stars {
  position: fixed;
  inset: 0;
  z-index: -3;
  display: block;
}

.nebula {
  position: fixed;
  z-index: -2;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}

.nebula--a {
  top: -25vmax;
  right: -20vmax;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.55), transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.nebula--b {
  bottom: -30vmax;
  left: -22vmax;
  background: radial-gradient(circle, rgba(255, 122, 217, 0.32), transparent 65%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate(-8vmax, 6vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(9vmax, -7vmax) scale(1.1); } }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--spring), border-radius 0.3s ease-out,
    box-shadow 0.25s ease, background 0.25s ease;
}

.btn--primary {
  background: var(--grad);
  border: none;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(200, 59, 255, 0.45);
}

.btn--primary:hover {
  transform: translateY(-2px);
  border-radius: 18px 34px 18px 34px;
  box-shadow: 0 0 44px rgba(255, 122, 217, 0.6);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ice);
  background: rgba(138, 43, 226, 0.08);
}

.btn--ghost:hover { background: rgba(138, 43, 226, 0.22); transform: translateY(-2px); }

.btn--s { padding: 0.7em 1.4em; font-size: 0.72rem; }
.btn--wide { width: 100%; }

/* ---------- шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 3.5rem);
  background: rgba(10, 6, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__logo {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.7em;
  white-space: nowrap;
}

.header__wordmark {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.header__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.header__section {
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--muted);
}

.header__section::before {
  content: "";
  display: block;
  height: 1.5px;
  margin-bottom: 4px;
  background: linear-gradient(90deg, transparent, var(--magenta) 18%, var(--magenta) 82%, transparent);
  clip-path: polygon(0 50%, 10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%);
}

/* аватар: блоб с вращающимся градиентным кольцом */
.header__avatar {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.header__avatar::before {
  content: "";
  position: absolute;
  inset: -3px;
  background: conic-gradient(#7b2bff, #ff7ad9, #4de3ff, #c83bff, #7b2bff);
  animation: avatar-spin 5s linear infinite, avatar-blob 6s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(200, 59, 255, 0.55));
}

.header__avatar img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: avatar-blob 6s ease-in-out infinite;
}

@keyframes avatar-spin { to { rotate: 360deg; } }

@keyframes avatar-blob {
  0%, 100% { border-radius: 64% 36% 52% 48% / 46% 62% 38% 54%; }
  33% { border-radius: 36% 64% 40% 60% / 64% 36% 60% 40%; }
  66% { border-radius: 52% 48% 64% 36% / 38% 54% 46% 62%; }
}

.header__rate {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  border: 1px solid rgba(255, 122, 217, 0.35);
  background: rgba(255, 122, 217, 0.08);
  padding: 0.5em 1em;
  border-radius: 999px;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  align-items: center;
}

.header__link {
  color: #ddd3ff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.header__link:hover { color: var(--pink); }

.header__tg {
  display: inline-flex;
  align-items: center;
  color: #ddd3ff;
  transition: color 0.2s, transform 0.35s var(--spring);
}

.header__tg:hover {
  color: var(--pink);
  transform: translateY(-1px);
}

.header__tg svg {
  width: 19px;
  height: 19px;
}

.header__cta {
  padding: 1.05em 2.2em;
  font-size: 0.88rem;
  box-shadow: 0 0 32px rgba(200, 59, 255, 0.6), 0 0 80px rgba(200, 59, 255, 0.25);
}

.header__cta:hover {
  box-shadow: 0 0 52px rgba(255, 122, 217, 0.75), 0 0 110px rgba(255, 122, 217, 0.3);
}

/* ---------- инфо-полоса (бегущая строка) ---------- */

.infobar {
  overflow: hidden;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(19, 10, 38, 0.55);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.infobar__track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.infobar__group {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 1.1rem;
  min-width: 100vw;
  white-space: nowrap;
}

@keyframes marquee { to { transform: translateX(-50%); } }

.infobar strong { color: var(--ice); }
.infobar__sep { color: var(--magenta); }

/* ---------- каталог ---------- */

.catalog {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.2rem, 4vw, 2.5rem) clamp(4rem, 8vw, 6rem);
}

.catalog__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.catalog__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.catalog__title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* RGB-глитч с векторной обводкой при наведении */
.catalog__title::before,
.catalog__title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px;
  opacity: 0;
  pointer-events: none;
}

.catalog__title::before { -webkit-text-stroke-color: var(--pink); }
.catalog__title::after { -webkit-text-stroke-color: #4de3ff; }

.catalog__title:hover::before { opacity: 0.7; animation: glitch-a 0.9s steps(2) infinite; }
.catalog__title:hover::after { opacity: 0.7; animation: glitch-b 0.9s steps(2) infinite; }

@keyframes glitch-a {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(-4px, 2px); }
  75% { transform: translate(3px, -2px); }
}

@keyframes glitch-b {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(4px, -2px); }
  75% { transform: translate(-3px, 2px); }
}

.catalog__stats {
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.catalog__stats strong { color: var(--pink); font-weight: 600; }

/* ---------- сетка карточек ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
  gap: 1.4rem;
}

.grid__empty {
  grid-column: 1 / -1;
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* волнистый лоадер очереди */
.grid__loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wave {
  width: min(320px, 70vw);
  height: 26px;
  overflow: visible;
}

.wave__base {
  stroke: rgba(178, 132, 255, 0.15);
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
}

.wave__flow {
  stroke: url(#waveGrad);
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 60 500;
  animation: wave-flow 1.4s linear infinite;
}

@keyframes wave-flow { to { stroke-dashoffset: -560; } }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px 16px 26px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(4, 2, 12, 0.55), inset 0 1px 0 rgba(178, 132, 255, 0.14);
  transition: transform 0.4s var(--spring), border-radius 0.4s var(--spring),
    border-color 0.3s ease, box-shadow 0.3s ease;
  animation: card-in 0.6s var(--spring) both;
}

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

.card:hover {
  transform: translateY(-5px);
  border-radius: 16px 26px 16px 26px;
  border-color: rgba(211, 92, 255, 0.5);
  box-shadow: 0 18px 44px rgba(10, 4, 26, 0.7);
}

.card.is-live {
  border-color: rgba(255, 122, 217, 0.6);
  box-shadow: 0 0 30px rgba(255, 122, 217, 0.16);
}

.card.is-done { opacity: 0.45; }
.card.is-done:hover { opacity: 0.7; }

/* превью */

.card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  overflow: hidden;
}

.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card__thumb img { transform: scale(1.05); }

.card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(200, 59, 255, 0.35), transparent 60%),
    radial-gradient(circle at 75% 80%, rgba(255, 122, 217, 0.25), transparent 55%),
    var(--bg-soft);
}

.card__thumb-icon {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(200, 59, 255, 0.5));
}

/* бейджи на превью */

.card__chip {
  position: absolute;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  background: rgba(10, 6, 20, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--ice);
  white-space: nowrap;
}

.card__chip--status { top: 0.7rem; left: 0.7rem; }

.card__chip--live {
  border-color: var(--pink);
  color: var(--pink);
  animation: pulse 1.6s ease-in-out infinite, chip-blob 5s ease-in-out infinite;
}

@keyframes chip-blob {
  0%, 100% { border-radius: 999px; }
  33% { border-radius: 999px 14px 999px 14px; }
  66% { border-radius: 14px 999px 14px 999px; }
}

.card__chip--done { color: var(--muted); }

.card__chip--pos {
  top: 0.7rem;
  right: 0.7rem;
  color: var(--magenta);
  border-color: rgba(211, 92, 255, 0.4);
  border-radius: 999px 999px 6px 999px;
}

.card__chip--duration { bottom: 0.7rem; right: 0.7rem; }
.card__chip--source { bottom: 0.7rem; left: 0.7rem; }

@keyframes pulse {
  50% { box-shadow: 0 0 16px rgba(255, 122, 217, 0.55); }
}

/* тело карточки */

.card__body {
  position: relative;
  padding: 1.1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.card__title {
  position: relative;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* всплывашка с полным текстом (добавляется JS при обрезке) */
.has-tip { position: relative; }

.tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 260px;
  background: var(--panel-solid);
  border: 1px solid rgba(178, 132, 255, 0.35);
  border-radius: 12px;
  padding: 0.6em 0.9em;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 14px 40px rgba(4, 2, 12, 0.8), 0 0 24px rgba(138, 43, 226, 0.15);
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transform-origin: bottom left;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.2s ease;
  z-index: 5;
}

.has-tip:hover + .tip {
  opacity: 1;
  transform: none;
  transition: opacity 0.25s ease 0.55s, transform 0.35s var(--spring) 0.55s;
}

.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--pink); }

.card__comment {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.card__comment span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__comment-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.7;
  color: var(--magenta);
}

.card__channel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.card__author {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.card__views {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}

.card__views svg {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

.card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.card__nick {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__price {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

/* ---------- модалки ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 3, 14, 0.78);
  backdrop-filter: blur(8px);
  animation: fade-in 0.25s ease both;
}

.modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 3rem);
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  background: var(--panel-solid);
  border: 1px solid rgba(178, 132, 255, 0.3);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  box-shadow: 0 30px 90px rgba(4, 2, 12, 0.85), 0 0 60px rgba(138, 43, 226, 0.18);
  animation: modal-in 0.45s var(--spring-strong) both;
}

@keyframes fade-in { from { opacity: 0; } }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
}

.modal__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  line-height: 1.2;
}

.modal__title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal__close {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(138, 43, 226, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.modal__close:hover {
  color: var(--pink);
  border-color: rgba(255, 122, 217, 0.5);
  transform: rotate(90deg);
}

/* ---------- форма ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
}

.field__label small { color: var(--muted); text-transform: none; letter-spacing: 0; }

.field__input {
  background: rgba(10, 6, 20, 0.75);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7em 0.9em;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.field__input::placeholder { color: rgba(161, 144, 207, 0.55); }

.field__input:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(211, 92, 255, 0.18);
}

.field.is-invalid .field__input { border-color: #ff5c8a; }

.field__input.is-locked {
  border-style: dashed;
  border-color: rgba(211, 92, 255, 0.45);
  color: var(--ice);
  background: rgba(138, 43, 226, 0.14);
  cursor: default;
  caret-color: transparent;
}

.field__error {
  display: none;
  color: #ff5c8a;
  font-size: 0.85rem;
}

.field.is-invalid .field__error { display: block; }

.field__hint {
  font-size: 0.85rem;
  color: var(--ice);
}

.field__hint strong { color: var(--pink); font-weight: 600; }

.form__note {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* строка цены в форме */

.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
  background: rgba(138, 43, 226, 0.1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 1rem;
}

.price-line__label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-line__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  background: var(--money-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.2s ease;
}

.price-line__value.bump { animation: bump 0.3s ease; }

@keyframes bump { 40% { transform: scale(1.08); } }

.price-line__hint { font-size: 0.85rem; color: var(--muted); flex-basis: 100%; }

.price-line__rules {
  margin-left: auto;
  background: none;
  border: none;
  padding: 0;
  color: var(--pink);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- экран успеха ---------- */

.success__text {
  color: var(--muted);
  max-width: 44ch;
}

.success__text strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05em;
}

.success__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

/* ценник в правилах */
.rules__price {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  background: rgba(138, 43, 226, 0.12);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.4rem;
  position: relative;
  overflow: hidden;
}

.rules__price::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
}

.rules__price-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  background: var(--money-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rules__price-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
}

.rules__price-note {
  flex-basis: 100%;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- правила (табы) ---------- */

.tabs {
  display: inline-flex;
  gap: 0.4rem;
  background: rgba(10, 6, 20, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem;
  margin-bottom: 1.4rem;
}

.tabs__btn {
  position: relative;
  isolation: isolate;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 0.65em 1.6em;
  cursor: pointer;
  transition: color 0.25s ease;
}

.tabs__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(200, 59, 255, 0.4);
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 0.25s ease, transform 0.4s var(--spring);
}

.tabs__btn.is-active { color: #fff; }

.tabs__btn.is-active::before {
  opacity: 1;
  transform: scale(1);
}

.rules__panel { display: none; }

.rules__panel.is-active {
  display: block;
  animation: panel-in 0.45s var(--spring) both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
}

.rules__panel h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.rules__badge {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.45em 1em;
  border-radius: 999px;
}

.rules__badge--ok { background: rgba(120, 255, 178, 0.12); color: #7dffb2; border: 1px solid rgba(120, 255, 178, 0.35); }
.rules__badge--no { background: rgba(255, 92, 138, 0.12); color: #ff5c8a; border: 1px solid rgba(255, 92, 138, 0.35); }

.rules__panel p { color: var(--muted); }
.rules__panel strong { color: var(--ink); }

.rules__list {
  margin-top: 1.2rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rules__list li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}

.rules__list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--magenta);
}

/* ---------- модалка доната ---------- */

.donate__text { color: var(--muted); margin-bottom: 1.4rem; }

.donate__options {
  display: grid;
  gap: 0.9rem;
}

.donate__option {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: rgba(138, 43, 226, 0.1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  transition: transform 0.35s var(--spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.donate__option:hover {
  transform: translateY(-3px);
  border-color: rgba(211, 92, 255, 0.55);
  box-shadow: 0 12px 30px rgba(10, 4, 26, 0.6);
}

.donate__option-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.donate__option-url {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- футер ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 1.8rem clamp(1.2rem, 4vw, 3.5rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ddd3ff;
}

.footer__dim { color: #bfaeef; }

.footer__link {
  color: #ddd3ff;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover { color: var(--pink); }

/* ---------- тост ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, calc(100% + 3rem));
  visibility: hidden;
  z-index: 120;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  padding: 1em 1.8em;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(200, 59, 255, 0.45);
  transition: transform 0.5s var(--spring-strong), visibility 0s 0.5s;
  max-width: min(90vw, 480px);
  text-align: center;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform 0.5s var(--spring-strong);
}

/* ---------- адаптив ---------- */

@media (max-width: 860px) {
  .header__rate { display: none; }
}

@media (max-width: 640px) {
  /* шапка в два ряда: лого+нав, ниже кнопка на всю ширину */
  .header {
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    padding: 0.75rem 1rem;
  }
  .header__avatar { width: 32px; height: 32px; }
  .header__avatar::before { inset: -2px; }
  .header__name { font-size: 0.85rem; }
  .header__section { font-size: 0.58rem; letter-spacing: 0.38em; }
  .header__nav { gap: 0.9rem; margin-left: auto; }
  .header__link { font-size: 0.95rem; }
  .header__cta {
    flex-basis: 100%;
    white-space: nowrap;
  }

  .infobar { font-size: 0.72rem; }

  .grid { grid-template-columns: 1fr; }
  .catalog__head { flex-direction: column; gap: 0.4rem; }
  .footer { flex-direction: column; }
}

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