/* ChibiCraft — лёгкая версия без Bulma */
:root {
  --cc-dark-bg: #0d1117;
  --cc-darker: #161b22;
  --cc-card-bg: #21262d;
  --cc-border: #30363d;
  --cc-text: #e6edf3;
  --cc-text-muted: #8b949e;
  --cc-accent: #ff5a00;
  --cc-accent-hover: #e82900;
  --cc-purple: #a371f7;
  --cc-green: #3fb950;
  --cc-gold: #d29922;
  --container: min(1200px, 100% - 2rem);
}

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

html {
  font-size: 18px;
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Fedra Sans Pro', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  background: var(--cc-dark-bg);
  color: var(--cc-text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.row--center {
  align-items: center;
}

.row--vcenter {
  align-items: center;
}

.col {
  flex: 1;
  min-width: 0;
}

.col--half {
  flex: 0 0 100%;
}

.col--third {
  flex: 0 0 100%;
}

.section {
  padding: 3rem 0;
}

.section--dark {
  background: var(--cc-darker);
}

.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.5rem;
}

/* Typography */
h1,
h2,
h3,
h4,
p {
  margin: 0 0 0.5rem;
  color: var(--cc-text);
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.subtitle {
  color: var(--cc-text-muted);
  font-size: 1rem;
}

.subtitle--sm {
  font-size: 0.85rem;
}

.subtitle--xs {
  font-size: 0.8rem;
}

strong {
  font-weight: 600;
}

/* Nav */
header.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: transparent;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__logo {
  color: var(--cc-text);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}

.nav__logo:hover {
  color: var(--cc-accent);
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  background: none;
  border: none;
  border-radius: 10px;
  color: var(--cc-text);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav__toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cc-accent);
}

.nav__glass {
  display: flex;
  flex-grow: 1;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 1rem;
  padding: 0.35rem 0.5rem;
  background: rgba(22, 27, 34, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav__menu--start {
  margin-right: auto;
}

.nav__link {
  color: var(--cc-text);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}

.nav__menu .nav__link {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

button.nav__link {
  font: inherit;
  margin: 0;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cc-accent);
}

.nav__avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.nav__link--profile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__toggle--profile {
  padding: 0.25rem;
}

.nav__toggle--profile .nav__avatar-fallback {
  display: none;
}

.nav__toggle--profile .nav__avatar-mini {
  width: 32px;
  height: 32px;
}

.nav__link--donate {
  text-align: center;
  color: rgb(255, 255, 255);
  font-size: 10vw;
  outline: none;
  text-shadow:
    0 0 20px crimson,
    0 0 20px crimson,
    0 0 10px crimson,
    5px -10px 10px orange,
    -5px -10px 10px yellow;
  animation: 2s fire-animation infinite alternate linear;
}

@keyframes fire-animation {
  0%   { 
    text-shadow: 0 5px 10px crimson, 0 0 10px red,
    0 0 5px orange,
    0 0 5px darkorange,
    -2px -2px 2px yellow,
    5px -5px 5px yellow; 
  }
  25%   { 
    text-shadow: 0 5px 10px crimson, 0 0 10px red,
    0 0 10px orange,
    -2px -2px 2px yellow,
    2px -5px 5px yellow,
    -2px -5px 5px yellow; 
  }
  50%   { 
    text-shadow: 0 10px 20px crimson, 0 0 20px red,
    0 0 5px orange,
    0 0 5px darkorange,
    -2px -2px 2px yellow,
    5px -5px 5px yellow; 
  }
  75%   { 
    text-shadow: 0 5px 10px crimson, 0 0 10px red,
    0 0 10px orange,
    -2px -2px 2px yellow,
    2px -5px 5px yellow,
    -2px -5px 5px yellow; 
  }
  100%   { 
    text-shadow: 0 5px 10px crimson, 0 0 10px red,
    0 0 5px orange,
    0 0 5px darkorange,
    -2px -2px 2px yellow,
    5px -5px 5px yellow; 
  }
}

.nav__link--donate:hover {
  color: rgb(240, 200, 191);
  text-shadow: 0 0 16px rgba(255, 88, 88, 0.8), 0 0 32px rgba(88, 166, 255, 0.45);
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 200px;
  padding: 0.5rem;
  background: rgba(22, 27, 34, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  z-index: 50;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.is-active .nav__dropdown-menu {
  display: block;
}

.nav__dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--cc-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
}

.nav__dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cc-accent);
}

.nav__dropdown-label {
  display: block;
  padding: 0.35rem 0.75rem 0.15rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cc-text-muted);
}

.nav__dropdown-other {
  min-width: 360px;
}

.dropdown-other-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

.nav__dropdown-group {
  min-width: 0;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--cc-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--cc-accent-hover);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--cc-accent);
  color: var(--cc-accent);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.hide-desk {
  display: block;
}

.hide-mob {
  display: none;
}

@media (min-width: 1024px) {
  .hide-desk {
    display: none;
  }

  .hide-mob {
    display: block;
  }

  .nav__wrap {
    display: flex;
    align-items: center;
    flex-grow: 1;
    flex-basis: auto;
    order: 0;
  }

  #navMenu {
    display: flex;
    flex-grow: 1;
  }
}

@media (max-width: 1023px) {
  .nav__wrap {
    flex: 1 1 100%;
    order: 1;
  }

  .nav__glass {
    flex-direction: column;
    margin: 1rem;
    padding: 0.5rem;
  }

  .nav__menu {
    width: 100%;
    flex-direction: column;
  }

  .nav__menu--start {
    margin-right: 0;
  }

  .nav__link {
    width: 100%;
    text-align: center;
  }

  #navMenu {
    display: none;
  }

  #navMenu.is-active {
    display: block;
  }

  #navMenu.is-active .nav__glass {
    display: flex;
  }

  .col--half {
    flex: 0 0 100%;
  }

  /* Прочее: по центру, 1 столбец */
  .nav__dropdown .nav__dropdown-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .nav__dropdown-other {
    min-width: 200px;
    max-width: 280px;
    max-height: 70vh;
    overflow-y: auto;
  }

  .dropdown-other-inner {
    grid-template-columns: 1fr;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 2;
}

.hero__body {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.hero__body .container {
  padding-top: 3.6rem;
}

.hero__body .row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.hero__body .row .col:nth-child(2) {
  flex: none;
}

@media (max-width: 900px) {
  .hero__body .row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__body .row .col:nth-child(1) {
    order: 1;
  }

  .hero__body .row .col:nth-child(2) {
    order: 2;
  }

  .hero__body .row .col:nth-child(3) {
    order: 3;
  }
}

.hero__title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.hero__desc {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--cc-text-muted);
}

.btn--start {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--cc-accent) 0%, var(--cc-purple) 100%);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(88, 166, 255, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn--start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(88, 166, 255, 0.5);
  color: #fff;
}

/* Server page hero */
.server-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--cc-dark-bg);
}

.server-hero__bg {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

/* Фон масштабируется по ширине страницы, высота — по пропорциям */
.server-hero__bg img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.server-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at center, rgba(13, 17, 23, 0) 0%, rgba(13, 17, 23, 0.55) 60%, rgba(13, 17, 23, 0.9) 100%),
    linear-gradient(to bottom, rgba(13, 17, 23, 0.35) 0%, rgba(13, 17, 23, 0.9) 100%);
  pointer-events: none;
}

.server-hero__body {
  position: relative;
  z-index: 3;
  margin-top: 8rem;
  padding: 2.5rem 0 3rem;
}

.server-hero .container {
  max-width: 980px;
  padding-top: 0;
}

.server-hero__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.server-hero__logo {
  width: 80px;
  height: 80px;
}

.server-hero__title {
  font-size: 1.9rem;
  margin: 0 0 0.25rem;
}

.server-hero__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cc-text-muted);
}

.server-hero__online-wrap {
  margin-bottom: 1.5rem;
}

.server-hero__online {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.server-hero__online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.75);
}

.server-hero__online-max {
  opacity: 0.9;
}

.server-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.server-hero__stat {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.server-hero__stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cc-text-muted);
  margin-bottom: 0.25rem;
}

.server-hero__stat-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--cc-text);
}

.server-hero__description {
  font-size: 0.98rem;
  color: var(--cc-text-muted);
  line-height: 1.7;
}

.server-hero__description p {
  margin: 0 0 0.75rem;
}

.server-hero__description p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .server-hero__body {
    padding: 2.25rem 0 2.75rem;
  }

  .server-hero__header {
    flex-direction: row;
    align-items: center;
  }

  .server-hero__title {
    font-size: 1.6rem;
  }

  .server-hero__stats {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

/* Badges, tags */
.badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--online {
  background: var(--cc-green);
  color: #fff;
}

.badge--tps {
  background: var(--cc-gold);
  color: #000;
}

.badge--record {
  background: var(--cc-purple);
  color: #fff;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  background: var(--cc-card-bg);
  color: var(--cc-text);
  text-decoration: none;
}

.tag:hover {
  background: var(--cc-border);
  color: var(--cc-accent);
}

.tag--info {
  background: #238636;
  color: #fff;
}

.tag--success {
  background: #2ea043;
  color: #fff;
}

.tag--warn {
  background: #9e6a03;
  color: #000;
}

.tag--danger {
  background: #da3633;
  color: #fff;
}

.tag--link {
  background: #388bfd;
  color: #fff;
}

/* Card, panel */
.card {
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  overflow: hidden;
  color: var(--cc-text);
}

.card__body {
  padding: 1.25rem;
}

/* Одинаковая высота карточек в блоке серверов */
.row--equal-height { align-items: stretch; }
.row--equal-height .col { display: flex; }
.row--equal-height .card { flex: 1; display: flex; flex-direction: column; }
.row--equal-height .card__body { flex: 1; display: flex; flex-direction: column; }
.row--equal-height .card__body .btn { margin-top: auto; }

.panel {
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  padding: 1rem;
  max-width: 320px;
  margin-left: auto;
}

/* Страницы с текстовым контентом (Политика конфиденциальности, Правила, Оферта) */
.page-text-section {
  min-height: 50vh;
}

.page-text-section__title {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cc-text);
}

.page-content-block {
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  color: var(--cc-text);
  line-height: 1.65;
}

.page-content-block p {
  margin: 0 0 1rem;
  color: var(--cc-text);
}

.page-content-block p:last-child {
  margin-bottom: 0;
}

.page-content-block h1,
.page-content-block h2,
.page-content-block h3,
.page-content-block h4 {
  margin: 1.25rem 0 0.5rem;
  color: var(--cc-text);
  font-weight: 600;
}

.page-content-block h1:first-child,
.page-content-block h2:first-child,
.page-content-block h3:first-child,
.page-content-block h4:first-child {
  margin-top: 0;
}

.page-content-block ul,
.page-content-block ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.page-content-block li {
  margin-bottom: 0.25rem;
}

.page-content-block a {
  color: var(--cc-accent);
  text-decoration: none;
}

.page-content-block a:hover {
  color: var(--cc-accent-hover);
  text-decoration: underline;
}

.page-content-block hr {
  margin: 1.25rem 0;
  border: 0;
  border-top: 1px solid var(--cc-border);
}

.page-text-section__label {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--cc-text-muted);
}

.page-content-block__img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.page-content-block__body {
  color: var(--cc-text);
  line-height: 1.65;
}

.page-content-block__body p {
  margin: 0 0 1rem;
}

.page-content-block__body p:last-child {
  margin-bottom: 0;
}

/* Donate page hero */
.donate-hero {
  align-items: center;
  gap: 2rem;
}

.donate-hero__text {
  text-align: left;
}

.donate-hero__title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.donate-hero__subtitle {
  margin: 0;
  color: var(--cc-text-muted, #8b949e);
  font-size: 1rem;
}

.donate-hero__balance-wrap {
  flex: 0 0 auto;
}

.donate-balance {
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.donate-balance__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.donate-balance__label {
  font-weight: 600;
  font-size: 1rem;
}

.donate-balance__sum {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cc-accent);
}

.donate-balance__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.donate-balance__bonus {
  font-size: 0.8rem;
  color: var(--cc-text-muted, #8b949e);
  max-width: 220px;
}

@media (max-width: 599px) {
  .donate-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .donate-hero__balance-wrap {
    width: 100%;
  }

  .donate-balance {
    min-width: 0;
    width: 100%;
    padding: 1rem 1.25rem;
    box-sizing: border-box;
  }

  .donate-balance__row {
    margin-bottom: 0.75rem;
    gap: 0.5rem;
  }

  .donate-balance__label {
    font-size: 0.9rem;
  }

  .donate-balance__sum {
    font-size: 1.25rem;
  }

  .donate-balance__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .donate-balance__bonus {
    max-width: none;
    font-size: 0.75rem;
    order: 1;
  }

  .donate-balance__actions .btn {
    order: 2;
    width: 100%;
    justify-content: center;
  }
}

/* Donate carousel */
.donate-carousel-section {
  padding-top: 0;
  padding-bottom: 3rem;
}

.donate-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 1rem 1rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  touch-action: pan-y pan-x;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.donate-carousel::-webkit-scrollbar {
  display: none;
}

@media (max-width: 599px) {
  .donate-carousel {
    cursor: grab;
    user-select: none;
  }
  .donate-carousel:active {
    cursor: grabbing;
  }
  .donate-carousel__track {
    gap: 16px;
    padding-top: 1.5rem;
  }
  .donate-card {
    flex: 0 0 140px;
    padding: 0.25rem;
  }
  .donate-card__img-wrap {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
  }
  .donate-card--selected .donate-card__img-wrap {
    box-shadow: 0 0 0 3px var(--donate-accent), 0 0 20px 6px var(--donate-accent);
  }
  .donate-card__badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
  .donate-card__price {
    font-size: 0.8rem;
  }
}

.donate-carousel__track {
  display: flex;
  gap: 25px;
  padding: 2rem 0 0.5rem;
  min-width: min-content;
}

.donate-card {
  flex: 0 0 256px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  background: transparent;
  padding: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.donate-card__img-wrap {
  width: 256px;
  height: 256px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cc-darker);
  transition: box-shadow 0.2s;
}

.donate-card--selected .donate-card__img-wrap {
  box-shadow: 0 0 0 5px var(--donate-accent), 0 0 30px 8px var(--donate-accent);
}

.donate-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.donate-card__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.donate-card__price {
  font-size: 1rem;
  color: var(--cc-text-muted);
  text-align: center;
}

.donate-card--vip {
  --donate-accent: #e67e22;
}

.donate-card--vip .donate-card__badge {
  background: rgba(230, 126, 34, 0.25);
  color: #e67e22;
}

.donate-card--premium {
  --donate-accent: #9b59b6;
}

.donate-card--premium .donate-card__badge {
  background: rgba(155, 89, 182, 0.25);
  color: #9b59b6;
}

.donate-card--deluxe {
  --donate-accent: #e91e8c;
}

.donate-card--deluxe .donate-card__badge {
  background: rgba(233, 30, 140, 0.25);
  color: #e91e8c;
}

.donate-card--elite {
  --donate-accent: #3498db;
}

.donate-card--elite .donate-card__badge {
  background: rgba(52, 152, 219, 0.25);
  color: #3498db;
}

.donate-card--legend {
  --donate-accent: #e74c3c;
}

.donate-card--legend .donate-card__badge {
  background: rgba(231, 76, 60, 0.25);
  color: #e74c3c;
}

/* Donate: что в комплекте + выбор сервера */
.donate-combo-section {
  padding-top: 0;
  padding-bottom: 3rem;
}

.donate-combo__heading {
  font-size: 1rem;
  color: var(--cc-text-muted);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.donate-combo__arrow {
  font-size: 0.75rem;
  opacity: 0.8;
}

.donate-combo__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.donate-combo__badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.donate-combo__privilege-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.25rem;
}

.donate-combo__privilege-badge--vip { background: rgba(230, 126, 34, 0.25); color: #e67e22; }
.donate-combo__privilege-badge--premium { background: rgba(155, 89, 182, 0.25); color: #9b59b6; }
.donate-combo__privilege-badge--deluxe { background: rgba(233, 30, 140, 0.25); color: #e91e8c; }
.donate-combo__privilege-badge--elite { background: rgba(52, 152, 219, 0.25); color: #3498db; }
.donate-combo__privilege-badge--legend { background: rgba(231, 76, 60, 0.25); color: #e74c3c; }

.donate-combo__kits {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cc-text);
}

.donate-server-select {
  position: relative;
}

.donate-server-select__trigger {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  color: var(--cc-text);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  min-width: 200px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.donate-server-select__trigger:hover {
  border-color: var(--cc-accent);
}

.donate-server-select.is-open .donate-server-select__trigger {
  border-color: var(--cc-accent);
}

.donate-server-select__trigger:focus-visible {
  outline: none;
  border-color: var(--cc-accent);
}

.donate-server-select__logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.donate-server-select__name {
  flex: 1;
  text-align: left;
}

.donate-server-select__icon {
  font-size: 0.7rem;
  opacity: 0.7;
  transition: transform 0.25s ease;
}

.donate-server-select.is-open .donate-server-select__icon {
  transform: rotate(180deg);
}

.donate-server-select__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.donate-server-select.is-open .donate-server-select__dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.donate-server-select__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  background: none;
  color: var(--cc-text);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.donate-server-select__option:first-of-type {
  border-radius: 11px 11px 0 0;
}

.donate-server-select__option:last-of-type {
  border-radius: 0 0 11px 11px;
}

.donate-server-select__option:hover {
  background: var(--cc-darker);
}

.donate-server-select__option:active {
  background: var(--cc-border);
}

.donate-server-select__option .donate-server-select__logo {
  width: 24px;
  height: 24px;
}

@media (max-width: 599px) {
  .donate-combo__row {
    flex-direction: column;
    align-items: stretch;
  }
  .donate-combo__badge-wrap {
    justify-content: flex-start;
  }
  .donate-server-select__trigger {
    min-width: 0;
    width: 100%;
  }
}

/* Donate: карточки китов */
.donate-kits-section {
  padding-top: 0;
  padding-bottom: 1.5rem;
}

.donate-kits-extra-section {
  padding-top: 0;
  padding-bottom: 3rem;
}

.donate-kits-extra__intro {
  font-size: 0.95rem;
  color: var(--cc-text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.donate-kits-extra__badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  vertical-align: middle;
}

/* Donate: возможности */
.donate-features-section {
  padding-top: 0;
  padding-bottom: 3rem;
}

.donate-features__heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.donate-features__badge {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.35rem;
}

.donate-features__title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cc-text);
}

.donate-features__badge--vip { background: rgba(230, 126, 34, 0.25); color: #e67e22; }
.donate-features__badge--premium { background: rgba(155, 89, 182, 0.25); color: #9b59b6; }
.donate-features__badge--deluxe { background: rgba(233, 30, 140, 0.25); color: #e91e8c; }
.donate-features__badge--elite { background: rgba(52, 152, 219, 0.25); color: #3498db; }
.donate-features__badge--legend { background: rgba(231, 76, 60, 0.25); color: #e74c3c; }

.donate-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .donate-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.donate-features__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 10px;
}

.donate-features__label-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.donate-features__label {
  color: var(--cc-text);
  font-size: 0.95rem;
  font-weight: 600;
}

.donate-features__sublabel {
  font-size: 0.8rem;
  color: var(--cc-text-muted);
  font-weight: 400;
}

.donate-features__value {
  color: var(--cc-text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.donate-features__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--cc-green);
  color: #fff;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.donate-disclaimer {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  color: var(--cc-text-muted);
  line-height: 1.5;
}

/* Donate: панель покупки (navbar-like) */
.donate-purchase-bar {
  background: var(--cc-card-bg);
  border-top: 1px solid var(--cc-border);
  padding: 1rem 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.donate-purchase-bar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.donate-purchase-bar__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.donate-purchase-bar__select {
  display: none;
}

.donate-period-select {
  position: relative;
}

.donate-period-select__trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  padding-right: 2.5rem;
  background: var(--cc-darker);
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  color: var(--cc-text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.donate-period-select__trigger:hover {
  border-color: var(--cc-accent);
}

.donate-period-select__trigger:focus-visible {
  outline: none;
  border-color: var(--cc-accent);
}

.donate-period-select__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.donate-period-select__label--gradient {
  background: linear-gradient(90deg, #e67e22, #e91e8c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.donate-period-select__discount {
  position: absolute;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: var(--cc-green);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .donate-period-select__discount,
  .donate-purchase-bar__discount {
    display: none !important;
  }
}

.donate-period-select__icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.donate-period-select.is-open .donate-period-select__icon {
  transform: translateY(-50%) rotate(0deg);
}

.donate-period-select__dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 6px;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  z-index: 25;
  max-height: 220px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.donate-period-select.is-open .donate-period-select__dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.donate-period-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  background: none;
  color: var(--cc-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.donate-period-select__option:first-of-type {
  border-radius: 0 0 11px 11px;
}

.donate-period-select__option:last-of-type {
  border-radius: 11px 11px 0 0;
}

.donate-period-select__option:hover {
  background: var(--cc-darker);
}

.donate-period-select__option:active {
  background: var(--cc-border);
}

.donate-period-select__option--gradient {
  background: linear-gradient(90deg, #e67e22, #e91e8c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.donate-period-select__option-discount {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--cc-green);
  color: #fff;
  font-weight: 700;
  -webkit-text-fill-color: initial;
  background-clip: unset;
}

.donate-purchase-bar__switch {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  background: var(--cc-darker);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid var(--cc-border);
}

.donate-purchase-bar__option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
  flex-wrap: wrap;
}

.donate-purchase-bar__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.donate-purchase-bar__option:has(input:checked) {
  background: var(--cc-border);
}

.donate-purchase-bar__option-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cc-text);
}

.donate-purchase-bar__option-text--gradient {
  background: linear-gradient(90deg, #e67e22, #e91e8c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.donate-purchase-bar__discount {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--cc-green);
  color: #fff;
  font-weight: 700;
}

.donate-purchase-bar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex-shrink: 0;
}

.donate-purchase-bar__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cc-text);
}

@media (max-width: 767px) {
  .donate-purchase-bar {
    padding: 0.6rem 0;
  }
  .donate-purchase-bar__inner {
    flex-wrap: nowrap;
    gap: 0.5rem;
    min-width: 0;
    justify-content: space-between;
    padding-left: 0;
    padding-right: 0;
  }
  .donate-purchase-bar__badge {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    flex-shrink: 0;
  }
  .donate-purchase-bar__select {
    display: block;
    flex: 1;
    min-width: 0;
  }
  .donate-purchase-bar__switch {
    display: none;
  }
  .donate-purchase-bar__right {
    margin-left: auto;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .donate-purchase-bar__price {
    font-size: 0.9rem;
  }
  .donate-purchase-bar__right .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
}

.donate-kits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .donate-kits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.donate-kit-card {
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  padding: 1.25rem;
}

.donate-kit-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.donate-kit-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cc-text);
}

.donate-kit-card__badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
}

.donate-kit-card__server {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--cc-text-muted);
}

.donate-kit-card__items {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  margin-bottom: 1rem;
}

.donate-kit-card__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cc-darker);
}

.donate-kit-card__item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.donate-kit-card__item-count {
  position: absolute;
  bottom: 2px;
  right: 2px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.donate-kit-card__cooldown {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cc-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.donate-kit-card__cooldown i {
  opacity: 0.9;
}

.server-card {
  position: relative;
}

.server-card .glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.server-card .glow-1 {
  background: var(--cc-purple);
  top: -50px;
  right: -50px;
}

.server-card .glow-2 {
  background: var(--cc-accent);
  bottom: -50px;
  left: -50px;
}

/* Servers page: header + badges (left align) */
.section--servers .container {
  text-align: left;
}

.servers-header {
  margin-bottom: 2rem;
}

.servers-header__title {
  margin-bottom: 0.5rem;
}

.servers-header__desc {
  color: var(--cc-text-muted);
  margin-bottom: 1rem;
  max-width: 36em;
}

.servers-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.servers-badges .badge {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

/* Server cards grid with background + hover zoom */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.server-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.server-card--bg {
  position: relative;
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--cc-border);
  background: var(--cc-card-bg);
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease;
}

.server-card-link:hover .server-card--bg {
  transform: scale(1.03);
}

.server-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13, 17, 23, 0.92) 0%, rgba(13, 17, 23, 0.6) 50%, rgba(13, 17, 23, 0.4) 100%);
  z-index: 1;
}

.server-card__content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.server-card__tags {
  margin-bottom: 0.5rem;
}

.server-card__logo {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.server-card__name {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cc-text);
}

.server-card__content .badge--online {
  margin-top: auto;
}

/* Launcher page */
.section--launcher .container {
  text-align: center;
}

.launcher-header {
  margin-bottom: 2rem;
}

.launcher-header__title {
  margin-bottom: 0.5rem;
}

.launcher-header__desc {
  color: var(--cc-text-muted);
  margin: 0 auto 1rem;
  max-width: 42em;
  line-height: 1.5;
}

.launcher-preview {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  max-width: 560px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cc-border);
  background: var(--cc-card-bg);
}

.launcher-preview__img {
  width: 100%;
  height: auto;
  display: block;
}

.launcher-downloads__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.launcher-downloads__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.launcher-downloads__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.launcher-downloads__btn:hover {
  color: #fff;
}

.launcher-faq {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cc-border);
  text-align: center;
}

.launcher-faq__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

@media (max-width: 600px) {
  .section--launcher {
    padding-top: 5rem !important;
  }

  .launcher-downloads__grid {
    flex-direction: column;
  }

  .launcher-downloads__btn {
    width: 100%;
    justify-content: center;
  }
}

/* Servers page: адаптивность блоков серверов */
@media (max-width: 900px) {
  .servers-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .server-card--bg,
  .server-card__content {
    min-height: 240px;
  }

  .server-card__content {
    padding: 1.25rem;
  }

  .server-card__logo {
    width: 64px;
    height: 64px;
  }

  .server-card__name {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .section--servers {
    padding-top: 5rem !important;
  }

  .servers-header {
    margin-bottom: 1.5rem;
  }

  .servers-header__title {
    font-size: 1.5rem;
  }

  .servers-header__desc {
    font-size: 0.95rem;
  }

  .servers-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .servers-grid {
    gap: 1rem;
  }

  .server-card--bg,
  .server-card__content {
    min-height: 200px;
  }

  .server-card__content {
    padding: 1rem;
  }

  .server-card__logo {
    width: 56px;
    height: 56px;
    margin-bottom: 0.35rem;
  }

  .server-card__name {
    font-size: 1.1rem;
  }

  .server-card__content .badge--online,
  .server-card__tags .tag {
    font-size: 0.8rem;
  }
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(163, 113, 247, 0.6);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.6;
  }

  50% {
    transform: translate(10px, -10px);
    opacity: 1;
  }
}

.particle:nth-child(1) {
  left: 10%;
  top: 20%;
}

.particle:nth-child(2) {
  left: 30%;
  top: 60%;
  animation-delay: 1s;
}

.particle:nth-child(3) {
  left: 50%;
  top: 30%;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  left: 70%;
  top: 70%;
  animation-delay: 0.5s;
}

.particle:nth-child(5) {
  left: 90%;
  top: 40%;
  animation-delay: 1.5s;
}

.particle:nth-child(6) {
  left: 20%;
  top: 80%;
  animation-delay: 2.5s;
}

/* News list — одна колонка, блок-ссылка */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cc-border);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
}

.news-item:last-of-type {
  border-bottom: none;
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.news-item__img {
  width: 360px;
  min-width: 360px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.news-item__body {
  flex: 1;
  min-width: 0;
}

.news-item__title {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cc-text);
}

.news-item__date {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cc-text-muted);
  background: var(--cc-darker);
  border-radius: 6px;
}

.news-item__desc {
  margin: 0;
  font-size: 1.05rem;
  color: var(--cc-text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
    align-items: stretch;
  }
  .news-item__img {
    width: 100%;
    min-width: 0;
    height: 200px;
    order: -1;
  }
}

/* Profile dropdown card */
.profile-card {
  min-width: 280px;
  padding: 1rem;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-card__row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.profile-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-card__name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.profile-card__balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.profile-card__balance .btn {
  max-width: 7rem;
  flex-shrink: 0;
  margin-bottom: 0;
  text-align: center;
}

.profile-card hr {
  border: none;
  border-top: 1px solid var(--cc-border);
  margin: 0.5rem 0;
}

.profile-card .btn {
  width: 100%;
  margin-bottom: 0.5rem;
}

.profile-card .btn--text {
  background: transparent;
  color: var(--cc-text-muted);
}

.profile-card .btn--text:hover {
  background: transparent;
  color: var(--cc-accent);
}

.profile-card__logout-form {
  margin: 0;
  display: block;
}

.profile-card__logout-form .btn {
  width: 100%;
  margin-bottom: 0;
}

/* Mobile profile panel */
.profile-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--cc-dark-bg);
  overflow-y: auto;
  height: 100vh;
}

.profile-panel.is-active {
  display: block;
}

body.profile-panel-open {
  overflow: hidden;
}

.profile-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--cc-darker);
  border-bottom: 1px solid var(--cc-border);
  position: sticky;
  top: 0;
  z-index: 1;
}

.profile-panel__close {
  background: none;
  border: none;
  color: var(--cc-text);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
}

.profile-panel__close:hover {
  color: var(--cc-accent);
}

.profile-panel__content {
  padding: 1.5rem;
}

/* Footer */
.footer {
  background: var(--cc-darker);
  color: var(--cc-text-muted);
  padding: 2rem 0;
}

.footer a {
  color: var(--cc-text);
  text-decoration: none;
}

.footer a:hover {
  color: var(--cc-accent);
}

.footer .tag {
  background: var(--cc-card-bg);
}

.footer .tag:hover {
  background: var(--cc-border);
  color: var(--cc-accent);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.post-footer {
  background: var(--cc-dark-bg);
  border-top: 1px solid var(--cc-border);
  padding: 1rem 0;
  font-size: 0.85rem;
  text-align: center;
  color: var(--cc-text-muted);
}

.post-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.25rem;
}

.post-footer a {
  color: var(--cc-text-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
}

.post-footer a:hover {
  color: var(--cc-accent);
}

.post-footer p {
  margin: 0.25rem 0;
}

@media (min-width: 768px) {
  .col--half {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

@media (min-width: 1024px) {
  .col--third {
    flex: 0 0 calc(33.333% - 0.67rem);
  }
}

/* Login page */
.login-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  padding: 4rem 0 2rem;
  text-align: center;
}
.login-panel {
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.login-panel__title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}
.login-form {
  text-align: left;
}
.login-form__field {
  margin-bottom: 1.25rem;
  text-align: left;
}
.login-form__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cc-text-muted);
}
.login-form__input {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  color: var(--cc-text);
  background: var(--cc-darker);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  box-sizing: border-box;
}
.login-form__input::placeholder {
  color: var(--cc-text-muted);
}
/* Убираем белый/жёлтый фон автозаполнения браузера под тёмную тему */
.login-form__input:-webkit-autofill,
.login-form__input:-webkit-autofill:hover,
.login-form__input:-webkit-autofill:focus,
.login-form__input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--cc-darker) inset;
  -webkit-text-fill-color: var(--cc-text);
  box-shadow: 0 0 0 1000px var(--cc-darker) inset;
  caret-color: var(--cc-text);
}
.login-form__input:hover {
  border-color: var(--cc-text-muted);
}
.login-form__input:focus {
  border-color: var(--cc-accent);
}
.login-form__input[type="number"] {
  -moz-appearance: textfield;
}
.login-form__input[type="number"]::-webkit-outer-spin-button,
.login-form__input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
select.login-form__input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b949e' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.login-form__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.login-form__submit {
  min-width: 10rem;
}
.login-form__reg {
  min-width: 10rem;
  text-align: center;
}

.login-form__field--captcha {
  display: flex;
  justify-content: flex-start;
}
.login-form__field--captcha .g-recaptcha {
  transform: scale(1);
}
@media (max-width: 400px) {
  .login-form__field--captcha .g-recaptcha {
    transform: scale(0.9);
    transform-origin: left center;
  }
}

/* Profile page */
.section--profile .container {
  text-align: left;
}

.profile-header {
  margin-bottom: 2rem;
}

.profile-header__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-header__title i {
  opacity: 0.9;
}

.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.profile-sidebar {
  position: sticky;
  top: 5rem;
}

.profile-viewer__body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  padding: 1rem;
}

.profile-viewer #skin-viewer {
  transform: scale(0.8);
  transform-origin: center;
}

.profile-main {
  min-width: 0;
}

.profile-block {
  margin-bottom: 1.5rem;
}

.profile-block:last-child {
  margin-bottom: 0;
}

.profile-block__title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--cc-border);
}

.profile-info {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.profile-info__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
}

.profile-info__term {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cc-text-muted);
  font-weight: 500;
}

.profile-info__value {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-divider {
  border: none;
  border-top: 1px solid var(--cc-border);
  margin: 1.5rem 0;
}

.profile-forms {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-form {
  margin: 0;
}

.profile-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.profile-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.profile-switch__slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--cc-border);
  border-radius: 24px;
  transition: background 0.2s;
}

.profile-switch__slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  background: var(--cc-text);
  border-radius: 50%;
  transition: transform 0.2s;
}

.profile-switch input:checked + .profile-switch__slider {
  background: var(--cc-accent);
}

.profile-switch input:checked + .profile-switch__slider::before {
  transform: translateX(20px);
}

.profile-switch__label {
  font-size: 0.95rem;
  color: var(--cc-text);
}

.profile-table-wrap {
  overflow-x: auto;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.profile-table th,
.profile-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--cc-border);
}

.profile-table th {
  font-weight: 600;
  color: var(--cc-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
  }

  .profile-viewer #skin-viewer {
    transform: scale(0.7);
  }

  .profile-info__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .section--profile {
    padding-top: 5rem !important;
  }

  .profile-header__title {
    font-size: 1.3rem;
  }

  .profile-table th,
  .profile-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}