/* ============================================================
   Vibers MC ❄ — «Зимняя ночь»
   Палитра: глубокая сине-чёрная ночь + иней + янтарь (окно)
   Шрифты: Cormorant (заголовки) + Manrope (текст), самохостинг
   ============================================================ */

@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/cormorant-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/cormorant-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/cormorant-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/cormorant-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 600; font-display: swap;
  src: url('../fonts/cormorant-cyrillic-600-italic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 600; font-display: swap;
  src: url('../fonts/cormorant-latin-600-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/manrope-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/manrope-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/manrope-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/manrope-cyrillic-800-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/manrope-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #060d16;
  --bg-raise: #0a1522;
  --bg-card: #0c1a2a;
  --text: #e9f1f8;
  --text-dim: #9db1c4;
  --frost: #8fcdf2;
  --frost-soft: rgba(143, 205, 242, .09);
  --ember: #f0a64b;
  --ember-bright: #ffc46b;
  --ember-soft: rgba(240, 166, 75, .12);
  --line: rgba(143, 205, 242, .16);
  --line-faint: rgba(143, 205, 242, .08);
  --serif: 'Cormorant', Georgia, serif;
  --sans: 'Manrope', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--frost); text-decoration: none; }
a:hover { color: var(--ember-bright); }

::selection { background: rgba(143, 205, 242, .3); }

:focus-visible {
  outline: 2px solid var(--frost);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- снег ---------- */
#snow {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
}

/* ---------- навигация ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(6, 13, 22, .42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-faint);
}

.nav-logo {
  font: 700 30px/1 var(--serif);
  color: var(--text);
  letter-spacing: .01em;
}
.nav-logo .flake { color: var(--frost); font-family: var(--sans); font-size: .6em; vertical-align: .25em; margin-left: 2px; }
.nav-logo:hover { color: var(--text); }
.nav-logo:hover .flake { color: var(--ember-bright); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dim);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--frost); }

.nav-links .nav-cta {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--ember);
  color: #1c0f02;
  font-weight: 800;
  box-shadow: 0 0 26px rgba(240, 166, 75, .35);
}
.nav-links .nav-cta:hover { background: var(--ember-bright); color: #1c0f02; }

/* ---------- герой ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(6, 13, 22, .62) 32%, rgba(6, 13, 22, .18) 60%, rgba(6, 13, 22, .45) 100%);
}

.hero-inner {
  width: min(1100px, 100% - clamp(40px, 8vw, 96px));
  margin: 0 auto;
  padding: 150px 0 72px;
}

.hero-kicker {
  font: italic 600 clamp(19px, 2.4vw, 24px)/1.4 var(--serif);
  color: var(--frost);
  letter-spacing: .02em;
  margin-bottom: 6px;
}

.hero h1 {
  font: 700 clamp(64px, 11vw, 132px)/.95 var(--serif);
  letter-spacing: .01em;
  text-shadow: 0 4px 40px rgba(3, 8, 14, .8);
}
.hero h1 .flake {
  display: inline-block;
  color: var(--frost);
  font-family: var(--sans);
  font-weight: 400;
  font-size: .38em;
  vertical-align: .9em;
  margin-left: .08em;
  transform: rotate(12deg);
  animation: flake-sway 5s ease-in-out infinite alternate;
  text-shadow: none;
}
@keyframes flake-sway { from { transform: rotate(6deg) } to { transform: rotate(20deg) } }

.hero-sub {
  max-width: 560px;
  margin-top: 18px;
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--text);
  text-shadow: 0 2px 14px rgba(3, 8, 14, .9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.btn-ember {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 10px;
  background: var(--ember);
  color: #1c0f02;
  font: 800 19px/1 var(--sans);
  letter-spacing: .01em;
  box-shadow: 0 0 44px rgba(240, 166, 75, .45), 0 8px 24px rgba(0, 0, 0, .5);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-ember:hover {
  background: var(--ember-bright);
  color: #1c0f02;
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(240, 166, 75, .6), 0 12px 30px rgba(0, 0, 0, .55);
}
.btn-ember .dl-icon { font-size: 22px; line-height: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text);
  font: 600 16px/1 var(--sans);
  background: rgba(6, 13, 22, .35);
  backdrop-filter: blur(6px);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--frost); background: var(--frost-soft); color: var(--text); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(6, 13, 22, .45);
  backdrop-filter: blur(6px);
  font: 600 14px/1 var(--sans);
  color: var(--text-dim);
  white-space: nowrap;
}
.chip b { color: var(--text); font-weight: 800; }
.chip .chip-flake { color: var(--frost); }

/* ---------- герой-открытка (центрированный) ---------- */
.hero--center { align-items: center; }
.hero--center::after {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(6, 13, 22, .12), rgba(6, 13, 22, .58) 88%),
    linear-gradient(to bottom, rgba(6, 13, 22, .5), rgba(6, 13, 22, .78));
}
.hero--center .hero-inner {
  text-align: center;
  padding-top: 120px;
  padding-bottom: 90px;
}
.hero--center .hero-sub { margin-left: auto; margin-right: auto; }
.hero--center .hero-actions { justify-content: center; align-items: stretch; }
.hero--center .hero-meta { justify-content: center; }
.hero--center h1 { margin-right: -.4em; }

.hero-bokeh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
  opacity: .8;
  animation: bokeh-pulse 7s ease-in-out infinite alternate;
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 196, 107, .38) 0 3px, transparent 9px),
    radial-gradient(circle at 27% 14%, rgba(143, 205, 242, .30) 0 2px, transparent 7px),
    radial-gradient(circle at 38% 30%, rgba(255, 111, 97, .30) 0 4px, transparent 11px),
    radial-gradient(circle at 55% 10%, rgba(255, 217, 138, .32) 0 3px, transparent 9px),
    radial-gradient(circle at 68% 22%, rgba(143, 227, 161, .26) 0 3px, transparent 10px),
    radial-gradient(circle at 81% 15%, rgba(255, 196, 107, .36) 0 4px, transparent 12px),
    radial-gradient(circle at 90% 32%, rgba(143, 205, 242, .26) 0 2px, transparent 7px),
    radial-gradient(circle at 18% 44%, rgba(255, 217, 138, .22) 0 5px, transparent 14px),
    radial-gradient(circle at 74% 42%, rgba(255, 111, 97, .20) 0 5px, transparent 14px);
}
@keyframes bokeh-pulse { from { opacity: .55; } to { opacity: .95; } }

.chip-ny { color: var(--ember-bright); border-color: rgba(240, 166, 75, .35); }

/* ---------- герой вторичных страниц ---------- */
.hero--page { min-height: 52svh; }
.hero--page .hero-inner { padding-top: 130px; padding-bottom: 56px; }
.hero--page h1 { font-size: clamp(46px, 7vw, 84px); }
.hero--page .hero-sub { margin-top: 10px; max-width: 760px; }

/* ---------- секции ---------- */
.section {
  width: min(1100px, 100% - clamp(40px, 8vw, 96px));
  margin: 0 auto;
  padding: clamp(56px, 9vh, 104px) 0 0;
}

.section-head { margin-bottom: 36px; }

.section-head h2 {
  font: 600 clamp(30px, 4.4vw, 44px)/1.15 var(--serif);
  letter-spacing: .01em;
}
.h-flake {
  color: var(--ember);
  font-family: var(--sans);
  font-weight: 400;
  font-size: .52em;
  vertical-align: .3em;
  margin-right: .3em;
}
.section-head p {
  margin-top: 10px;
  max-width: 640px;
  color: var(--text-dim);
  font-size: 17px;
}

.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
  margin: clamp(56px, 9vh, 104px) auto 0;
  width: min(1100px, 100% - clamp(40px, 8vw, 96px));
}

/* ---------- шаги установки ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  padding: 28px 26px 30px;
  border: 1px solid var(--line-faint);
  border-radius: 12px;
  background: linear-gradient(to bottom, var(--bg-raise), var(--bg-card));
}

.step-num {
  font: 700 54px/.9 var(--serif);
  font-variant-numeric: lining-nums;
  color: var(--ember);
  opacity: .95;
}
.step-num::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  margin: 12px 0 0;
  background: var(--ember);
  opacity: .75;
}

.step h3 {
  font: 700 21px/1.3 var(--serif);
  letter-spacing: .01em;
  margin-bottom: 8px;
}

.step p { color: var(--text-dim); font-size: 16px; }
.step p b { color: var(--text); font-weight: 600; }
.step p .app { color: var(--frost); font-weight: 600; }

.update-note {
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 3px solid var(--ember);
  border-radius: 0 10px 10px 0;
  background: var(--ember-soft);
  color: var(--text-dim);
  font-size: 15.5px;
}
.update-note b { color: var(--text); }

/* ---------- карточки категорий ---------- */
.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line-faint);
  border-radius: 12px;
  background: var(--bg-card);
  transition: border-color .25s, transform .25s;
}
.cat:hover {
  border-color: var(--line);
  transform: translateY(-3px);
}

.cat .cat-emoji {
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5));
}

.cat h3 {
  font: 700 24px/1.2 var(--serif);
  color: var(--text);
}

.cat p {
  color: var(--text-dim);
  font-size: 15px;
  flex: 1;
}

.cat .cat-go {
  font: 600 14px/1 var(--sans);
  color: var(--frost);
}
.cat:hover .cat-go { color: var(--ember-bright); }

/* ---------- полоса про сервер ---------- */
.server-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.server-fact {
  padding: 22px;
  border: 1px solid var(--line-faint);
  border-radius: 12px;
  background: var(--bg-raise);
}
.server-fact .sf-label { font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.server-fact .sf-value {
  margin-top: 8px;
  font: 800 clamp(17px, 1.6vw, 20px)/1.3 var(--sans);
  color: var(--frost);
  word-break: break-all;
}
.server-fact .sf-value small { display: block; font-weight: 600; font-size: 12.5px; color: var(--text-dim); margin-top: 6px; word-break: normal; }

/* ---------- подарки (декор гайда) ---------- */
.gifts {
  font-size: 34px;
  line-height: 1;
  margin: 4px 0 14px;
  user-select: none;
}
.gifts span {
  display: inline-block;
  margin-right: 10px;
  filter: drop-shadow(0 0 12px rgba(240, 166, 75, .45));
}
.gifts span:nth-child(1) { transform: rotate(-8deg); }
.gifts span:nth-child(2) { font-size: 44px; transform: rotate(4deg); }
.gifts span:nth-child(3) { font-size: 30px; transform: rotate(9deg); }
.gifts span:nth-child(4) { font-size: 38px; transform: rotate(-4deg); }

/* ---------- проза (гайд) ---------- */
.prose { max-width: 780px; margin-inline: auto; }

.gsection { padding-top: clamp(60px, 9vh, 96px); scroll-margin-top: 146px; }
.gsection:first-of-type { padding-top: 14px; }

.gsection h2 {
  font: 600 clamp(28px, 4vw, 38px)/1.2 var(--serif);
  margin-bottom: 14px;
}

.gsection p { margin-bottom: 14px; color: var(--text-dim); }
.gsection p b, .gsection li b { color: var(--text); font-weight: 600; }
.gsection p a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }

.gsection ul { margin: 0 0 14px 20px; color: var(--text-dim); }
.gsection li { margin-bottom: 6px; }

.steps--guide { grid-template-columns: 1fr; gap: 14px; }
.steps--guide .step { display: grid; grid-template-columns: 72px 1fr; gap: 0 18px; align-items: start; }
.steps--guide .step-num { grid-row: 1 / span 2; }
.steps--guide .step h3 { grid-column: 2; margin-top: 6px; }
.steps--guide .step p { grid-column: 2; }
.steps--guide .step-num::after { margin: 10px 0 0; }

.cmd {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--frost-soft);
  font: 600 15px/1.5 var(--sans);
  color: var(--frost);
  white-space: nowrap;
}
.cmd-arg { color: var(--text-dim); font-weight: 400; }

.tip {
  margin: 18px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--ember);
  border-radius: 0 10px 10px 0;
  background: var(--ember-soft);
}
.tip p { margin: 0; color: var(--text-dim); font-size: 15.5px; }
.tip p b { color: var(--ember-bright); }

.key {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: var(--bg-raise);
  font: 600 14px/1.5 var(--sans);
  color: var(--text);
}

/* ---------- моды ---------- */
.gsection p, .modcat-lead, .modcard p, .section-head p, .tip p { text-wrap: pretty; }

.catnav {
  position: sticky;
  top: 71px;
  z-index: 800;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0;
  margin-bottom: 34px;
  background: rgba(6, 13, 22, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-faint);
  scrollbar-width: none;
}
.catnav::-webkit-scrollbar { display: none; }

.catnav a {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font: 600 14px/1 var(--sans);
  color: var(--text-dim);
  transition: color .2s, border-color .2s;
}
.catnav a:hover { color: var(--text); border-color: var(--frost); }

.modcat { padding-top: clamp(48px, 7vh, 76px); scroll-margin-top: 146px; }
.modcat:first-of-type { padding-top: 12px; }

.modcat > h2 {
  font: 600 clamp(28px, 4vw, 40px)/1.2 var(--serif);
}
.modcat .modcat-count {
  font: 600 14px/1 var(--sans);
  color: var(--text-dim);
  vertical-align: .6em;
  margin-left: 12px;
}

.modcat-lead {
  max-width: 720px;
  margin: 10px 0 26px;
  color: var(--text-dim);
}

.modcards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.modcard {
  padding: 22px 24px;
  border: 1px solid var(--line-faint);
  border-radius: 12px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modcard-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.modcard h3 { font: 700 22px/1.2 var(--serif); color: var(--text); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font: 600 11.5px/1.4 var(--sans);
  letter-spacing: .04em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: var(--frost-soft);
  white-space: nowrap;
}
.badge--server { color: var(--ember-bright); border-color: rgba(240, 166, 75, .3); background: var(--ember-soft); }
.badge--client { color: var(--frost); }

.modcard p { color: var(--text-dim); font-size: 15.5px; }
.modcard p b { color: var(--text); font-weight: 600; }

.modcard-links {
  margin-top: auto;
  display: flex;
  gap: 16px;
  padding-top: 6px;
}

.lk {
  font: 600 14px/1 var(--sans);
  color: var(--frost);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
}
.lk:hover { color: var(--ember-bright); }
.lk-wiki { color: var(--ember); text-decoration-color: rgba(240, 166, 75, .25); }

.morelist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.morelist a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-faint);
  background: var(--bg-raise);
  font: 600 14px/1 var(--sans);
  color: var(--text-dim);
  transition: color .2s, border-color .2s;
}
.morelist a:hover { color: var(--text); border-color: var(--line); }

/* ---------- футер ---------- */
.footer {
  margin-top: clamp(64px, 10vh, 110px);
  border-top: 1px solid var(--line-faint);
  background: var(--bg-raise);
  padding: 40px 0 46px;
}

.footer-inner {
  width: min(1100px, 100% - clamp(40px, 8vw, 96px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  color: var(--text-dim);
  font-size: 14px;
}

.footer-inner .footer-logo {
  font: 700 24px/1 var(--serif);
  color: var(--text);
}
.footer-inner .footer-logo .flake { color: var(--frost); font-family: var(--sans); font-size: .6em; vertical-align: .25em; }
.footer-inner .footer-sub { margin-top: 3px; }

.footer-credits { text-align: right; line-height: 1.9; }
.footer-credits a { color: var(--text-dim); text-decoration: underline; text-decoration-color: var(--line-faint); text-underline-offset: 3px; }
.footer-credits a:hover { color: var(--frost); }

/* ---------- новогодняя гирлянда ---------- */
.garland {
  position: absolute;
  top: 58px;
  left: 0;
  width: 100%;
  height: 76px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(240, 166, 75, .10), transparent 100%);
}
.garland-wire { fill: none; stroke: rgba(233, 241, 248, .42); stroke-width: 1.5; }
.garland-stem { stroke: rgba(233, 241, 248, .35); stroke-width: 1.5; }
.garland-halo { filter: blur(8px); opacity: .8; }
.garland-bulb { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .35)); }
.garland-light { animation: bulb-glow 3s ease-in-out infinite; }
@keyframes bulb-glow { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- праздничная полоса-тост ---------- */
.festive-strip {
  position: relative;
  margin-top: clamp(56px, 9vh, 104px);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
}
.festive-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.festive-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, var(--bg), rgba(6, 13, 22, .4) 28%, rgba(6, 13, 22, .4) 72%, var(--bg));
}
.festive-strip p {
  font: italic 600 clamp(24px, 3.6vw, 38px)/1.45 var(--serif);
  text-align: center;
  text-wrap: balance;
  max-width: 820px;
  padding: 56px 24px;
  text-shadow: 0 2px 30px rgba(3, 8, 14, 1), 0 0 18px rgba(3, 8, 14, .95), 0 1px 4px rgba(3, 8, 14, .95);
  position: relative;
}
.festive-strip p::before {
  content: '';
  position: absolute;
  inset: 30px 8%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(6, 13, 22, .72), rgba(6, 13, 22, 0) 70%);
}
.festive-strip p .toast-flake { color: var(--ember-bright); font-style: normal; font-family: var(--sans); font-size: .6em; vertical-align: .3em; margin: 0 .3em; }

/* ---------- плавные появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22, .61, .36, 1);
}
.reveal.reveal-in { opacity: 1; transform: none; }

.stagger > .reveal:nth-child(2) { transition-delay: .09s; }
.stagger > .reveal:nth-child(3) { transition-delay: .18s; }
.stagger > .reveal:nth-child(4) { transition-delay: .27s; }
.stagger > .reveal:nth-child(5) { transition-delay: .36s; }
.stagger > .reveal:nth-child(6) { transition-delay: .45s; }

.hero-inner > * {
  animation: rise .7s cubic-bezier(.22, .61, .36, 1) both;
}
.hero-inner > *:nth-child(2) { animation-delay: .12s; }
.hero-inner > *:nth-child(3) { animation-delay: .22s; }
.hero-inner > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .server-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .modcards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cats { grid-template-columns: 1fr; }
  .server-grid { grid-template-columns: 1fr; }
  .nav { padding: 12px 18px; gap: 14px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 14px; }
  .nav-links li:last-child { margin-left: auto; }
  .hero-inner { padding-bottom: 54px; }
  .footer-credits { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-ember, .cat, .nav-links a { transition: none; }
  .hero h1 .flake { animation: none; }
  .garland-light { animation: none; }
  .hero-bokeh { animation: none; }
  .hero-inner > * { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #snow { display: none; }
}
