@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&display=swap");

:root {
  --bg-deep: #060304;
  --bg-card: rgba(18, 10, 12, 0.72);
  --glass: rgba(28, 14, 16, 0.55);
  --text: #f5f0f0;
  --muted: #a8989a;
  --accent: #d42c2c;
  --accent-hot: #ff3a3a;
  --accent-glow: rgba(212, 44, 44, 0.45);
  --blood: #7a0f18;
  --blood-bright: rgba(200, 30, 40, 0.35);
  --line: rgba(200, 80, 90, 0.28);
  --radius-lg: 22px;
  --radius-md: 14px;
  --font: "Montserrat", system-ui, sans-serif;
  --fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fx-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fx-shadow-hover: 0 28px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 44, 44, 0.22),
    0 0 48px rgba(180, 30, 40, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  /* Прозрачно: иначе z-index:-2 у .page-bg оказывается ПОД заливкой body — фото не видно */
  background: transparent;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Atmospheric background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 130% 55% at 50% 52%, rgba(110, 55, 35, 0.14), transparent 52%),
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(90, 12, 18, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 40%, rgba(60, 8, 12, 0.4), transparent 50%),
    radial-gradient(ellipse 60% 45% at 10% 70%, rgba(50, 6, 10, 0.35), transparent 45%),
    linear-gradient(168deg, #0f0305 0%, #060203 40%, #080304 100%);
}

/* Фон: арт улицы / survival (локальный файл на хостинге). */
.page-bg__img {
  position: absolute;
  inset: -72px;
  z-index: 0;
  background-color: #0a0608;
  background-image: url("/assets/bg-apocalypse.png");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  filter: blur(16px) brightness(0.58) saturate(0.72) contrast(1.04);
  transform: scale(1.08);
  transform-origin: center center;
  opacity: 1;
  animation: fx-bg-drift 42s ease-in-out infinite;
}

.fx-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 72% 62% at 50% 38%,
    transparent 0%,
    rgba(4, 2, 4, 0.28) 58%,
    rgba(0, 0, 0, 0.72) 100%
  );
  opacity: 0.92;
}

.fx-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: fx-grain-jitter 10s steps(6) infinite;
}

.page-bg__veil {
  position: absolute;
  inset: 0;
  /* Дымка, копоть, акцент на горизонте + «кровавый» верх */
  background:
    radial-gradient(ellipse 95% 42% at 50% 48%, rgba(75, 38, 22, 0.22), transparent 58%),
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(90, 18, 22, 0.35), transparent 50%),
    radial-gradient(ellipse 80% 55% at 80% 60%, rgba(40, 8, 12, 0.4), transparent 45%),
    radial-gradient(ellipse 70% 50% at 15% 70%, rgba(25, 6, 10, 0.55), transparent 40%),
    linear-gradient(180deg, rgba(18, 4, 8, 0.38) 0%, rgba(4, 1, 3, 0.72) 55%, rgba(2, 0, 2, 0.82) 100%);
  pointer-events: none;
  z-index: 2;
  animation: fx-veil-breathe 14s ease-in-out infinite;
}

@keyframes fx-bg-drift {
  0%,
  100% {
    transform: scale(1.08) translate(0, 0);
  }
  33% {
    transform: scale(1.095) translate(-0.4%, 0.35%);
  }
  66% {
    transform: scale(1.085) translate(0.35%, -0.25%);
  }
}

@keyframes fx-veil-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.94;
  }
}

@keyframes fx-grain-jitter {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-2%, -1.5%);
  }
}

@keyframes fx-enter-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fx-shimmer-line {
  0% {
    background-position: 180% 0;
  }
  100% {
    background-position: -80% 0;
  }
}

@keyframes fx-glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 16px rgba(255, 74, 46, 0.35);
  }
  50% {
    box-shadow: 0 0 22px rgba(255, 100, 80, 0.55);
  }
}

@keyframes fx-float-slow {
  0% {
    transform: rotate(-12deg) translate(0, 0);
  }
  100% {
    transform: rotate(-11deg) translate(-10px, 14px);
  }
}

@keyframes fx-float-slower {
  0% {
    transform: rotate(18deg) translate(0, 0);
  }
  100% {
    transform: rotate(16deg) translate(8px, -10px);
  }
}

@keyframes fx-float-mid {
  0% {
    transform: rotate(8deg) translate(0, 0);
  }
  100% {
    transform: rotate(7deg) translate(-6px, 12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-bg__img,
  .page-bg__veil,
  .fx-grain,
  .fx-vignette,
  .badge-hot,
  .blood-decor,
  .section-title__line::after,
  .hero-block .section-title,
  .hero-block .section-title__line,
  .server-card,
  .advantages .section-title,
  .advantages .section-title__line,
  .advantages__grid .adv-card,
  .contact-section .section-title,
  .contact-section .section-title__line,
  .contact-grid,
  .cabinet-panel--login {
    animation: none !important;
  }
}

/* Floating blood decals (SVG) */
.blood-decor {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  color: var(--blood-bright);
  opacity: 0.55;
}

.blood-decor--1 {
  top: 8%;
  right: -3%;
  width: min(420px, 55vw);
  height: auto;
  animation: fx-float-slow 22s ease-in-out infinite alternate;
}

.blood-decor--2 {
  bottom: 15%;
  left: -5%;
  width: min(360px, 48vw);
  opacity: 0.4;
  animation: fx-float-slower 28s ease-in-out infinite alternate;
}

.blood-decor--3 {
  top: 42%;
  left: 50%;
  width: min(280px, 40vw);
  margin-left: -140px;
  opacity: 0.22;
  animation: fx-float-mid 24s ease-in-out infinite alternate;
}

a {
  color: var(--accent-hot);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent-hot);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

button:focus-visible,
.btn-connect:focus-visible,
.btn-icon:focus-visible,
.cabinet-logout:focus-visible {
  outline-offset: 4px;
}

.wrap {
  position: relative;
  z-index: 2;
  width: min(1100px, 94vw);
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* Header */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 20px 12px 16px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transition: border-color 0.35s var(--fx-ease), box-shadow 0.45s var(--fx-ease), transform 0.35s var(--fx-ease);
}

.site-header__bar:hover {
  border-color: rgba(200, 85, 95, 0.42);
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(212, 44, 44, 0.1),
    0 0 56px rgba(160, 30, 45, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: #e8d4d6;
  filter: drop-shadow(0 0 12px var(--accent-glow));
  transition: transform 0.45s var(--fx-ease), filter 0.45s var(--fx-ease);
}

.brand:hover .brand__icon {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 0 18px var(--accent-glow));
}

.brand__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.1;
}

.brand__subtitle {
  margin: 2px 0 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.nav a {
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 240, 240, 0.88);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.28s var(--fx-ease), color 0.28s var(--fx-ease), transform 0.28s var(--fx-ease),
    box-shadow 0.28s var(--fx-ease);
}

.nav a:hover {
  background: rgba(212, 44, 44, 0.18);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.btn-vk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 40px;
  padding: 0 14px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s var(--fx-ease), background 0.3s var(--fx-ease), border-color 0.3s var(--fx-ease),
    box-shadow 0.3s var(--fx-ease);
}

.btn-vk:hover {
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.btn-donate-wrap {
  position: relative;
  display: inline-block;
}

.btn-donate-wrap .blood-behind {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130%;
  height: 180%;
  transform: translate(-50%, -50%);
  z-index: 0;
  color: rgba(180, 25, 35, 0.5);
  pointer-events: none;
}

.btn-donate {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #e83838 0%, #b01e1e 55%, #8a1515 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 24px var(--accent-glow);
  text-decoration: none;
}

.btn-donate:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

/* Section titles */
.section-title {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title__line {
  display: block;
  position: relative;
  overflow: hidden;
  width: 120px;
  height: 4px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.section-title__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 220, 220, 0.55) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 240% 100%;
  animation: fx-shimmer-line 4.8s ease-in-out infinite;
}

.section-title--left {
  text-align: left;
}

.section-title--left .section-title__line {
  margin: 14px 0 0;
}

/* Hero + servers */
.hero-block {
  padding: 36px 0 8px;
}

.hero-block .section-title {
  animation: fx-enter-up 0.75s var(--fx-ease-out) 0.06s both;
  text-shadow: 0 0 48px rgba(140, 35, 45, 0.2);
}

.hero-block .section-title__line {
  animation: fx-enter-up 0.75s var(--fx-ease-out) 0.14s both;
}

/* Server card */
.server-card {
  position: relative;
  max-width: 520px;
  margin: 0 auto 48px;
  padding: 28px 26px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: fx-enter-up 0.8s var(--fx-ease-out) 0.2s both;
  transition: transform 0.45s var(--fx-ease), box-shadow 0.45s var(--fx-ease), border-color 0.35s var(--fx-ease);
}

.server-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 80, 90, 0.38);
  box-shadow: var(--fx-shadow-hover);
}

.server-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 80%;
  background: radial-gradient(circle, rgba(180, 30, 40, 0.12), transparent 70%);
  pointer-events: none;
}

.server-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.server-card__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.server-card__zicon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  color: #dcc8ca;
  filter: drop-shadow(0 0 10px rgba(212, 44, 44, 0.35));
}

.badge-hot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ff4a2e, #c41e1e);
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(255, 74, 46, 0.4);
}

.badge-hot svg {
  width: 12px;
  height: 12px;
}

.server-card__ip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.server-card__ip {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.25s var(--fx-ease), background 0.25s var(--fx-ease), border-color 0.25s var(--fx-ease),
    box-shadow 0.25s var(--fx-ease);
}

.btn-icon:hover {
  background: rgba(212, 44, 44, 0.2);
  border-color: rgba(212, 44, 44, 0.5);
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(212, 44, 44, 0.2);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.online-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.online-box__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 8px;
  color: var(--accent-hot);
  background: rgba(212, 44, 44, 0.15);
  border-radius: 12px;
}

.online-box__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  color: #fff;
}

.online-box__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.online-box__value {
  margin-top: 4px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.btn-connect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #e83838 0%, #9e1818 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 8px 28px var(--accent-glow);
  transition: transform 0.3s var(--fx-ease), filter 0.3s var(--fx-ease), box-shadow 0.3s var(--fx-ease);
}

.btn-connect svg {
  width: 22px;
  height: 22px;
  transition: transform 0.35s var(--fx-ease);
}

.btn-connect:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(212, 44, 44, 0.45);
}

.btn-connect:hover svg {
  transform: scale(1.08);
}

.status-copy {
  min-height: 22px;
  margin-top: 12px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.status-copy--ok {
  color: #7dffb3;
}

.status-copy--err {
  color: #ff7a8a;
}

/* Advantage cards */
.advantages {
  margin-bottom: 56px;
}

.advantages .section-title {
  animation: fx-enter-up 0.75s var(--fx-ease-out) 0.04s both;
}

.advantages .section-title__line {
  animation: fx-enter-up 0.75s var(--fx-ease-out) 0.12s both;
}

.advantages__grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 900px) {
  .advantages__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.adv-card {
  position: relative;
  padding: 22px 22px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 0.45s var(--fx-ease), box-shadow 0.45s var(--fx-ease), border-color 0.35s var(--fx-ease);
}

.advantages__grid .adv-card:nth-child(1) {
  animation: fx-enter-up 0.68s var(--fx-ease-out) 0.18s both;
}

.advantages__grid .adv-card:nth-child(2) {
  animation: fx-enter-up 0.68s var(--fx-ease-out) 0.3s both;
}

.advantages__grid .adv-card:nth-child(3) {
  animation: fx-enter-up 0.68s var(--fx-ease-out) 0.42s both;
}

.adv-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 80, 90, 0.35);
  box-shadow: var(--fx-shadow-hover);
}

.adv-card::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(120, 15, 25, 0.2), transparent 65%);
  pointer-events: none;
}

.adv-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.adv-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adv-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 8px;
  color: #fff;
  background: linear-gradient(145deg, rgba(180, 35, 45, 0.9), rgba(90, 10, 18, 0.95));
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.adv-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  color: #fff;
}

.adv-card__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
}

.adv-card__subtitle {
  margin: 4px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.adv-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.adv-card__body {
  position: relative;
  z-index: 1;
  font-size: 0.88rem;
  color: rgba(245, 235, 235, 0.88);
  line-height: 1.65;
}

.adv-card__body strong {
  color: #fff;
  font-weight: 700;
}

/* Links + contact */
.links-section {
  margin-bottom: 48px;
}

.links-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.links-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.links-grid a:hover {
  border-color: rgba(212, 44, 44, 0.55);
  box-shadow: 0 0 24px rgba(212, 44, 44, 0.12);
  text-decoration: none;
}

.contact-section {
  margin-bottom: 40px;
}

.contact-section .section-title {
  animation: fx-enter-up 0.75s var(--fx-ease-out) 0.05s both;
}

.contact-section .section-title__line {
  animation: fx-enter-up 0.75s var(--fx-ease-out) 0.13s both;
}

.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  animation: fx-enter-up 0.78s var(--fx-ease-out) 0.22s both;
}

@media (min-width: 720px) {
  .contact-grid--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--fx-ease), box-shadow 0.4s var(--fx-ease), border-color 0.35s var(--fx-ease);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 80, 90, 0.32);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 40px rgba(160, 35, 45, 0.1);
}

.contact-card__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(145deg, #d42c2c, #6a0f14);
  border-radius: 14px;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.contact-card__icon--vk {
  font-family: var(--font);
}

.contact-card__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.contact-card__hint {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.btn-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #e02e2e 0%, #901818 100%);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 22px var(--accent-glow);
  transition: transform 0.3s var(--fx-ease), filter 0.3s var(--fx-ease), box-shadow 0.3s var(--fx-ease);
}

.btn-join:hover {
  filter: brightness(1.08);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 44, 44, 0.4);
}

.hint {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.hint code {
  font-size: 0.85em;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  color: var(--accent-hot);
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 32px 20px 40px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent-hot);
}

.icon {
  display: block;
}

@media (max-width: 720px) {
  .site-header {
    top: 8px;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  .nav__actions {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}

/* Личный кабинет */
.cabinet-wrap {
  padding-top: 20px;
  padding-bottom: 56px;
  max-width: 920px;
  margin: 0 auto;
}

.cabinet-panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px 36px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s var(--fx-ease), box-shadow 0.45s var(--fx-ease), border-color 0.35s var(--fx-ease);
}

.cabinet-panel:hover {
  border-color: rgba(212, 80, 90, 0.26);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.42), 0 0 40px rgba(160, 35, 45, 0.08);
}

.cabinet-panel--narrow {
  max-width: 440px;
  margin: 0 auto;
}

.cabinet-panel--login {
  overflow: hidden;
  animation: fx-enter-up 0.68s var(--fx-ease-out) both;
}

.cabinet-login__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-hot), transparent);
  opacity: 0.85;
}

.cabinet-login__title {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 8px 0 0;
  color: var(--text);
}

.cabinet-panel--profile {
  padding-top: 24px;
}

.cabinet-lead {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 12px 0 22px;
  line-height: 1.5;
}

.cabinet-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cabinet-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cabinet-field input {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cabinet-field input::placeholder {
  color: rgba(168, 152, 154, 0.45);
}

.cabinet-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.cabinet-submit {
  margin-top: 6px;
  width: 100%;
  justify-content: center;
}

.cabinet-error {
  color: var(--accent-hot);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.4;
}

.cabinet-error--banner {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(196, 30, 30, 0.12);
  border: 1px solid rgba(212, 44, 44, 0.35);
}

.cabinet-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  padding: 56px 16px;
  font-size: 0.95rem;
}

/* display:flex перекрывает стандартное скрытие по [hidden] */
.cabinet-loading[hidden] {
  display: none !important;
}

.cabinet-loading__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-hot);
  animation: cabinet-pulse 0.9s ease-in-out infinite alternate;
}

@keyframes cabinet-pulse {
  from {
    opacity: 0.35;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Шапка профиля */
.cabinet-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 18px 22px;
  margin: -8px -10px 8px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(40, 12, 18, 0.55), rgba(12, 6, 10, 0.5));
  border: 1px solid rgba(200, 80, 90, 0.2);
}

.cabinet-hero__avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--accent-hot);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  box-shadow: 0 0 24px rgba(212, 44, 44, 0.15);
}

.cabinet-hero__avatar svg {
  width: 44px;
  height: 44px;
}

.cabinet-hero__text {
  flex: 1;
  min-width: 160px;
}

.cabinet-hero__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cabinet-hero__nick {
  margin: 6px 0 0;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}

.cabinet-logout {
  margin-left: auto;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.45);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.cabinet-logout:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(90, 12, 18, 0.35);
}

/* Группы статов */
.cabinet-character {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.cabinet-stat-group__head {
  margin-bottom: 14px;
}

.cabinet-stat-group__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}

.cabinet-stat-group__subtitle {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.cabinet-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.cabinet-stat {
  position: relative;
  padding: 14px 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--stat-bar, rgba(200, 80, 90, 0.5));
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 88px;
  transition: transform 0.35s var(--fx-ease), border-color 0.25s var(--fx-ease), box-shadow 0.35s var(--fx-ease);
}

.cabinet-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35), 0 0 24px rgba(140, 35, 45, 0.08);
  border-color: rgba(200, 80, 90, 0.2);
}

.cabinet-stat__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

.cabinet-stat__value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  word-break: break-word;
}

.cabinet-stat--blood {
  --stat-bar: #b91c1c;
}
.cabinet-stat--armor {
  --stat-bar: #64748b;
}
.cabinet-stat--temp {
  --stat-bar: #ea580c;
}
.cabinet-stat--surv {
  --stat-bar: #0ea5e9;
}
.cabinet-stat--danger {
  --stat-bar: #dc2626;
}
.cabinet-stat--money {
  --stat-bar: #ca8a04;
}
.cabinet-stat--combat {
  --stat-bar: #c41e3a;
}
.cabinet-stat--karma {
  --stat-bar: #a855f7;
}
.cabinet-stat--klan {
  --stat-bar: #e11d48;
}
.cabinet-stat--neutral {
  --stat-bar: rgba(168, 152, 154, 0.55);
}
.cabinet-stat--muted {
  --stat-bar: rgba(100, 90, 92, 0.7);
}

/* Секции + донат */
.cabinet-block {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(200, 80, 90, 0.18);
}

.cabinet-wheel__lead {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.cabinet-wheel__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 16px 8px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(200, 80, 90, 0.2);
}

.cabinet-wheel__stage {
  position: relative;
  width: min(280px, 88vw);
  margin: 0 auto;
  padding-top: 18px;
}

.cabinet-wheel__pointer {
  position: absolute;
  left: 50%;
  top: 4px;
  z-index: 3;
  width: 0;
  height: 0;
  margin-left: -14px;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid rgba(255, 200, 120, 0.95);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.cabinet-wheel__disk-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(145deg, rgba(60, 30, 35, 0.9), rgba(20, 8, 10, 0.95));
  box-shadow:
    0 0 0 2px rgba(212, 44, 44, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 24px rgba(0, 0, 0, 0.35);
}

.cabinet-wheel__disk {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  transform: rotate(0deg);
  transform-origin: center center;
  will-change: transform;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.25);
}

.cabinet-wheel__slot {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  max-width: 44%;
  margin: 0;
  padding: 0 2px;
  pointer-events: none;
}

.cabinet-wheel__icon {
  width: clamp(22px, 7.5vw, 30px);
  height: clamp(22px, 7.5vw, 30px);
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75));
}

.cabinet-wheel__cap {
  max-width: 100%;
  font-size: clamp(0.5rem, 1.95vw, 0.65rem);
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  color: rgba(255, 248, 245, 0.94);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cabinet-wheel__status {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
  min-height: 1.35em;
}

.cabinet-wheel__result {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  text-align: center;
  font-weight: 600;
}

.cabinet-wheel__btn {
  margin-top: 4px;
  min-width: 200px;
}

.cabinet-block--donate {
  border-top: none;
  padding-top: 8px;
}

.cabinet-block__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cabinet-block__title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.65rem;
  color: var(--accent-hot);
  background: rgba(212, 44, 44, 0.15);
  border: 1px solid rgba(212, 44, 44, 0.28);
}

.cabinet-donate-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(212, 44, 44, 0.22), transparent 55%),
    linear-gradient(165deg, rgba(28, 10, 14, 0.95), rgba(8, 4, 6, 0.88));
  border: 1px solid rgba(212, 80, 90, 0.35);
  box-shadow: 0 0 40px rgba(180, 30, 40, 0.12);
}

.cabinet-donate-card__value {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 40px rgba(255, 60, 60, 0.35);
}

.cabinet-donate-card__hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Предметы */
.cabinet-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.cabinet-items__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px 16px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(200, 80, 90, 0.22);
}

.cabinet-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cabinet-item:hover {
  border-color: rgba(200, 80, 90, 0.35);
  background: rgba(40, 12, 18, 0.35);
}

.cabinet-item__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cabinet-item__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.cabinet-item__meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cabinet-item__qty {
  flex-shrink: 0;
  min-width: 2.5rem;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  color: var(--accent-hot);
  background: rgba(212, 44, 44, 0.14);
  border: 1px solid rgba(212, 44, 44, 0.28);
}

@media (max-width: 520px) {
  .cabinet-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .cabinet-logout {
    margin-left: 0;
    width: 100%;
  }

  .cabinet-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
