/* ===== preloader-rings.css ===== */
/* ============================================================
   ПРЕЛОУДЕР — кольца логотипа (SVG).
   ============================================================ */

.preload-ring-bg {
  fill: none;
  stroke: var(--line);
  stroke-width: 2.5;
}

.preload-ring {
  fill: none;
  stroke: url(#preloadGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 60px 48px;
  transition: stroke-dashoffset 0.2s ease;
}

.preload-vi {
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 800;
  fill: var(--gold-bright);
}

.preload-onchiks {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  fill: var(--muted);
}

/* ===== nav.css ===== */
/* ===== НАВИГАЦИЯ (морозная шапка) ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(10, 10, 13, 0.6);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 13, 0.85);
  border-bottom-color: rgba(201, 168, 106, 0.18);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.25s var(--ease);
}

.brand:hover {
  transform: scale(1.04);
}

.brand .logo-mark {
  width: 40px;
}

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

.nav-link {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 2px;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--gold-bright);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-burger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px 28px;
    background: rgba(10, 10, 13, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* ===== hero.css ===== */
/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-logo {
  margin-bottom: 26px;
  display: inline-block;
  animation: heroLogoFloat 4.2s ease-in-out infinite, heroLogoGlowShadow 4.2s ease-in-out infinite;
}

.hero-logo .logo-mark--xl {
  animation: heroLogoSpin 12s linear infinite;
  transform-origin: 50% 50%;
}

.hero-logo .logo-mark--xl {
  width: 132px;
}

.hero-title {
  color: var(--text);
  text-shadow: 0 0 60px rgba(201, 168, 106, 0.22);
  animation: heroTitleGlow 5s ease-in-out infinite;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(20px, 3.2vw, 30px);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
}

.typed {
  color: var(--gold-bright);
}

.typed-caret {
  display: inline-block;
  color: var(--gold);
  margin-left: 2px;
  animation: caretBlink 0.9s steps(1) infinite;
  font-style: normal;
}

.hero-desc {
  margin: 22px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

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

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 54px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.scroll-hint:hover {
  color: var(--gold);
}

.scroll-hint-arrow {
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes heroLogoSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes heroLogoGlowShadow {
  0%, 100% { filter: drop-shadow(0 12px 18px rgba(201, 168, 106, 0.35)); }
  50% { filter: drop-shadow(0 26px 34px rgba(201, 168, 106, 0.6)); }
}

@keyframes heroTitleGlow {
  0%, 100% { text-shadow: 0 0 60px rgba(201, 168, 106, 0.22); }
  50% { text-shadow: 0 0 90px rgba(201, 168, 106, 0.42); }
}

@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.5; }
}

/* ===== АНОНС: бегущая лента с лавовым текстом и спиннер-лого ===== */
.announce {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 36px;
}

/* --- мини-лого загрузки: бесконечный спиннер --- */
.announce-loader {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 8px;
}

.announce-loader::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 201, 138, 0.2), transparent 66%);
  filter: blur(4px);
  animation: announce-glow 2.4s ease-in-out infinite;
}

.announce-loader-svg {
  position: relative;
  width: clamp(38px, 5vw, 52px);
  height: auto;
  animation: announce-float 3.6s ease-in-out infinite;
}

.al-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
}

.al-ring {
  fill: none;
  stroke: url(#announceGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 150 101;
  transform: rotate(-90deg);
  transform-origin: 60px 48px;
  animation: announce-spin 1.1s linear infinite;
  filter: drop-shadow(0 0 5px rgba(230, 201, 138, 0.6));
}

.al-vi {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  fill: var(--gold-bright);
}

.al-onchiks {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.6px;
  fill: var(--muted);
}

@keyframes announce-spin {
  to { transform: rotate(270deg); }
}

@keyframes announce-glow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes announce-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* --- лента с бегущей строкой --- */
.announce-ribbon {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 13px 18px;
  border: 1px solid rgba(201, 168, 106, 0.26);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(46, 12, 8, 0.6), rgba(20, 8, 6, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 18px rgba(0, 0, 0, 0.35);
  animation: announce-ember 4.5s ease-in-out infinite;
}

.announce-ribbon::before,
.announce-ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  z-index: 2;
  pointer-events: none;
}

.announce-ribbon::before {
  left: 0;
  background: linear-gradient(90deg, rgba(14, 6, 8, 0.95), transparent);
}

.announce-ribbon::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(14, 6, 8, 0.95), transparent);
}

.announce-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: announce-marquee 16s linear infinite;
}

.announce-item {
  padding-right: 52px;
  font-family: var(--font-display);
  font-size: clamp(16px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg,
    #2e0a08, #6b150c, #a33a14, #e25e1f, #ffa35c, #ffd9ae,
    #ffa35c, #e25e1f, #a33a14, #6b150c, #2e0a08);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: announce-lava 11s ease-in-out infinite alternate;
}

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

@keyframes announce-lava {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}

@keyframes announce-ember {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 96, 40, 0.2)); }
  50% { filter: drop-shadow(0 0 18px rgba(255, 130, 60, 0.5)); }
}

@media (max-width: 560px) {
  .announce { gap: 10px; margin-bottom: 30px; }
  .announce-ribbon { padding: 10px 12px; }
  .announce-item { padding-right: 36px; letter-spacing: 0.06em; }
}

@media (prefers-reduced-motion: reduce) {
  .announce-track,
  .announce-loader-svg,
  .al-ring,
  .announce-ribbon,
  .announce-item {
    animation: none;
  }
}

/* ===== sun.css ===== */
/* ===== ЦЕНТРАЛЬНОЕ «СОЛНЦЕ» (неоновый фон за логотипом) ===== */
.sun-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sun {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    rgba(255, 224, 178, 0.32),
    rgba(201, 168, 106, 0.16) 38%,
    rgba(155, 140, 196, 0.08) 62%,
    transparent 72%);
  filter: blur(8px);
  animation: sunBreathe 7s ease-in-out infinite;
  pointer-events: auto;
}

.sun::before,
.sun::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 106, 0.16);
}

.sun::after {
  inset: 18%;
  border-color: rgba(201, 168, 106, 0.1);
  animation: sunSpin 22s linear infinite;
}

@keyframes sunBreathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes sunSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== ticker.css ===== */
/* ===== БЕГУЩАЯ СТРОКА ===== */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
  width: max-content;
  animation: tickerScroll 36s linear infinite;
}

.ticker-track span {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--faint);
}

.ticker-track i {
  font-style: normal;
  color: var(--gold);
  font-size: 12px;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== stats.css ===== */
/* ===== СТАТИСТИКА ===== */
.stats {
  padding: 72px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat {
  padding: 30px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: var(--shadow-soft);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.05;
}

.stat-slash {
  color: var(--faint);
  font-weight: 400;
}

.stat-label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== feed.css ===== */
/* ===== ЖИВАЯ ЛЕНТА (VK widget) ===== */
.feed-card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.feed-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.feed-source {
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.vk-feed {
  padding: 20px 24px 24px;
  min-height: 220px;
}

/* официальный виджет VK — подгоняем фон под тему */
#vkFeed iframe {
  border-radius: 12px;
  overflow: hidden;
  background: transparent !important;
}

.feed-loading {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.feed-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}

.feed-error {
  padding: 50px 0;
  text-align: center;
  color: var(--muted);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

