@charset "UTF-8";
/* ============================================================
   КЛУБ ИИ ПРАКТИКИ — дизайн-система
   Наследует визуальный язык Nova AI: глубокий нави + электрический циан,
   Unbounded / Inter / JetBrains Mono, стеклянные карточки со свечением.
   ============================================================ */

:root {
  --bg-0: #04070f;
  --bg-1: #060b18;
  --bg-2: #0a1224;
  --panel: rgba(13, 22, 42, 0.55);
  --panel-solid: #0b1426;
  --line: rgba(122, 162, 255, 0.14);
  --line-bright: rgba(84, 209, 255, 0.4);
  --text: #e9eefb;
  --muted: #93a3c4;
  --faint: #5c6a8a;

  --cyan: #54d1ff;
  --blue: #4f7cff;
  --violet: #8b7cff;
  --glow: rgba(84, 209, 255, 0.35);
  --grad: linear-gradient(100deg, #54d1ff 0%, #6d8bff 100%);
  --grad-ink: var(--grad);
  --accent-soft: rgba(84, 209, 255, 0.08);
  --accent-line: rgba(84, 209, 255, 0.22);
  --btn-ink: #041018;

  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --radius: 18px;
  --header-h: 76px;
  --section-pad: clamp(80px, 11vw, 140px);
}

/* --- Акцентные пресеты (переключаются в админке) --- */

.accent-violet {
  --cyan: #a78bfa;
  --blue: #7c5cff;
  --glow: rgba(167, 139, 250, 0.35);
  --grad: linear-gradient(100deg, #a78bfa 0%, #6d8bff 100%);
  --accent-soft: rgba(167, 139, 250, 0.09);
  --accent-line: rgba(167, 139, 250, 0.24);
  --line-bright: rgba(167, 139, 250, 0.42);
  --btn-ink: #0d0620;
}

.accent-emerald {
  --cyan: #4ade9e;
  --blue: #2fb4a6;
  --glow: rgba(74, 222, 158, 0.32);
  --grad: linear-gradient(100deg, #4ade9e 0%, #38bdf8 100%);
  --accent-soft: rgba(74, 222, 158, 0.09);
  --accent-line: rgba(74, 222, 158, 0.24);
  --line-bright: rgba(74, 222, 158, 0.42);
  --btn-ink: #03170f;
}

.accent-amber {
  --cyan: #fbbf5c;
  --blue: #f97362;
  --glow: rgba(251, 191, 92, 0.32);
  --grad: linear-gradient(100deg, #fbbf5c 0%, #f97362 100%);
  --accent-soft: rgba(251, 191, 92, 0.09);
  --accent-line: rgba(251, 191, 92, 0.26);
  --line-bright: rgba(251, 191, 92, 0.44);
  --btn-ink: #1c1004;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

/* Плёночное зерно поверх всего */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #1a2a4a; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #24385f; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed; top: 12px; left: 12px;
  width: auto; height: auto; clip: auto;
  z-index: 9999;
  background: var(--cyan); color: #04070f;
  padding: 10px 18px; border-radius: 10px;
}

/* ---------- Типографика ---------- */

.overline {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.overline::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--grad);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-top: 18px;
  text-wrap: balance;
}

.section-title--tight { margin-top: 0; }

.section-lead {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 640px;
  margin-top: 18px;
  text-wrap: pretty;
}

.accent-text {
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.btn--primary {
  background: var(--grad);
  color: var(--btn-ink);
  box-shadow: 0 0 0 1px var(--accent-line), 0 8px 32px rgba(59, 130, 246, 0.28), 0 0 44px var(--accent-soft);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--line-bright), 0 14px 44px rgba(59, 130, 246, 0.4), 0 0 72px var(--glow);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(10, 18, 36, 0.4);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: var(--line-bright);
  box-shadow: 0 0 24px var(--accent-soft);
  transform: translateY(-2px);
}

.btn--sm { padding: 11px 20px; font-size: 14px; border-radius: 10px; }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- Шапка ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(4, 7, 15, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  flex-shrink: 0;
}

.logo-img { max-height: 38px; width: auto; align-self: center; }

.logo-accent {
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-dot { color: var(--cyan); }

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

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

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

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

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cta { flex-shrink: 0; }

/* Переключатель темы */
.theme-toggle {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(10, 18, 36, 0.4);
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
}

.theme-toggle:hover {
  color: var(--cyan);
  border-color: var(--line-bright);
  box-shadow: 0 0 20px var(--accent-soft);
}

.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: opacity 0.3s ease, transform 0.4s ease; }
.theme-toggle .theme-toggle-label { display: none; }

.theme-toggle-sun { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle-moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }

:root[data-theme="light"] .theme-toggle-sun { opacity: 0; transform: rotate(90deg) scale(0.6); }
:root[data-theme="light"] .theme-toggle-moon { opacity: 1; transform: rotate(0) scale(1); }

.theme-toggle--mobile {
  width: auto; height: auto;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  justify-content: flex-start;
  display: inline-flex;
  align-items: center;
}

.theme-toggle--mobile svg { position: static; }
.theme-toggle--mobile .theme-toggle-moon { display: none; }
:root[data-theme="light"] .theme-toggle--mobile .theme-toggle-sun { display: none; }
:root[data-theme="light"] .theme-toggle--mobile .theme-toggle-moon { display: inline; opacity: 1; transform: none; }
.theme-toggle--mobile .theme-toggle-label { display: inline; font-family: var(--font-display); font-size: 16px; }

.mobile-menu-footer { margin-top: 24px; display: grid; gap: 12px; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }

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

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

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: rgba(4, 7, 15, 0.97);
  backdrop-filter: blur(20px);
  padding: 40px 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

body.menu-open .mobile-menu { display: flex; }

.mobile-menu > a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 72px;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 72% 38%, rgba(37, 78, 165, 0.22), transparent 65%),
    radial-gradient(900px 600px at 18% 78%, rgba(80, 60, 180, 0.12), transparent 60%),
    var(--bg-0);
}

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg-0));
  z-index: 2;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-copy { position: relative; z-index: 2; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 9px 16px;
  border-radius: 100px;
}

.badge .pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: 22px;
  text-wrap: balance;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 18.5px);
  line-height: 1.6;
  max-width: 540px;
  margin-top: 18px;
  text-wrap: pretty;
}

.hero-bullets { margin-top: 26px; display: grid; gap: 13px; max-width: 560px; }

.hero-bullets li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.5;
}

.hero-bullet-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--cyan);
}

.hero-bullet-icon svg { width: 12px; height: 12px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.cta-note { width: 100%; font-size: 13.5px; color: var(--faint); margin-top: 2px; }

.hero-stats {
  display: flex;
  gap: clamp(22px, 4vw, 44px);
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label { font-size: 13px; color: var(--muted); margin-top: 6px; max-width: 165px; line-height: 1.45; }

/* --- Hero: портрет с орбитами --- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.deity {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  aspect-ratio: 1;
}

.halo {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0deg, var(--glow) 40deg, transparent 90deg,
    transparent 160deg, rgba(109, 139, 255, 0.4) 210deg, transparent 260deg,
    transparent 320deg, var(--glow) 350deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
  animation: halo-spin 22s linear infinite;
}

.halo--inner { inset: 3%; animation-duration: 30s; animation-direction: reverse; opacity: 0.7; }

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

.deity-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, rgba(59, 130, 246, 0.08) 45%, transparent 70%);
  animation: deity-breathe 7s ease-in-out infinite;
  filter: blur(6px);
}

@keyframes deity-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.portrait-wrap {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  overflow: hidden;
  animation: levitate 9s ease-in-out infinite;
}

@keyframes levitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.portrait {
  width: 100%; height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 52%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 42%, #000 52%, transparent 74%);
  animation: portrait-breathe 8s ease-in-out infinite;
}

@keyframes portrait-breathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.018); filter: brightness(1.06); }
}

/* Заглушка, если фото не загружено */
.portrait--placeholder {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(84, 209, 255, 0.16), rgba(8, 14, 30, 0.9) 62%, transparent 78%);
}

.portrait-core {
  width: 42%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--grad);
  filter: blur(28px);
  opacity: 0.55;
  animation: deity-breathe 6s ease-in-out infinite;
}

.scanline {
  position: absolute;
  left: 6%; right: 6%;
  top: -30%; height: 26%;
  background: linear-gradient(to bottom, transparent, rgba(84, 209, 255, 0.045) 40%, rgba(84, 209, 255, 0.1) 50%, rgba(84, 209, 255, 0.045) 60%, transparent);
  mix-blend-mode: screen;
  animation: scan 7.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

@keyframes scan {
  0%, 24% { top: -30%; opacity: 0; }
  30% { opacity: 1; }
  62% { top: 105%; opacity: 1; }
  63%, 100% { top: 105%; opacity: 0; }
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(122, 162, 255, 0.16);
  animation: orbit-spin linear infinite;
}

.orbit--1 { inset: -7%; animation-duration: 52s; }
.orbit--2 { inset: -17%; animation-duration: 80s; animation-direction: reverse; }

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

.orbit-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(8, 14, 30, 0.82);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 13px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.orbit-node::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  flex-shrink: 0;
}

.orbit--1 .orbit-node { animation: orbit-counter-1 52s linear infinite; }
.orbit--2 .orbit-node { animation: orbit-counter-2 80s linear infinite; }

@keyframes orbit-counter-1 { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes orbit-counter-2 { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---------- Бегущая строка ---------- */

.ticker {
  border-block: 1px solid var(--line);
  background: rgba(8, 14, 30, 0.5);
  overflow: hidden;
  padding: 15px 0;
  position: relative;
}

.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.ticker::before { left: 0; background: linear-gradient(to right, var(--bg-0), transparent); }
.ticker::after { right: 0; background: linear-gradient(to left, var(--bg-0), transparent); }

.ticker-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}

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

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

.ticker-item {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
}

.ticker-item::after { content: '\2726'; color: var(--cyan); font-size: 10px; }
.ticker-item b { color: var(--cyan); font-weight: 600; }

/* ---------- Секции ---------- */

.section { padding-block: var(--section-pad); position: relative; }

.section--alt {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(37, 78, 165, 0.1), transparent 60%),
    var(--bg-1);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--center .overline { justify-content: center; }

.section-outro {
  margin-top: 54px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.section-outro p {
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 500;
  max-width: 680px;
  text-wrap: balance;
  line-height: 1.55;
}

/* ---------- Карточки ---------- */

.glow-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.glow-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-bright);
  box-shadow: 0 18px 48px rgba(2, 6, 16, 0.55), 0 0 36px rgba(84, 209, 255, 0.07);
}

.glow-card:hover::before { opacity: 1; }

/* ---------- Векторные арты ---------- */

.art-svg { width: 100%; height: 100%; display: block; }

/* Рамка вокруг визуала — приём из референса: тонкий акцентный контур со смещённым дублем */
.art-frame {
  position: relative;
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--bg-2), var(--bg-0));
  aspect-ratio: 4 / 3.2;
  isolation: isolate;
}

.art-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--cyan);
  opacity: 0.55;
  pointer-events: none;
  border-radius: inherit;
}

.art-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Смещённый контур-«тень» за рамкой */
.note-art {
  position: relative;
  margin: 0;
}

.note-art::before {
  content: '';
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  pointer-events: none;
  z-index: -1;
}

/* Фоновый арт секции */
.section-bg-art {
  position: absolute;
  top: 0; right: 0;
  width: min(58%, 720px);
  height: 100%;
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 92%);
  mask-image: linear-gradient(to left, #000 10%, transparent 92%);
}

.section-bg-art--center {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1100px);
  opacity: 0.24;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000 20%, transparent 78%);
  mask-image: radial-gradient(60% 60% at 50% 50%, #000 20%, transparent 78%);
}

.offers .container,
.price .container { position: relative; z-index: 1; }

/* ---------- Цитата основателя ---------- */

.founder-note { padding-block: clamp(64px, 9vw, 110px); overflow: hidden; }

.founder-note--alt {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(37, 78, 165, 0.1), transparent 60%),
    var(--bg-1);
  border-block: 1px solid var(--line);
}

.note-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: clamp(36px, 5.5vw, 76px);
  align-items: center;
}

.note-grid--solo { grid-template-columns: 1fr; max-width: 860px; }

.founder-note--reverse .note-copy { order: 2; }
.founder-note--reverse .note-art { order: 1; }
.founder-note--reverse .note-art::before { inset: 22px 22px -22px -22px; }

.note-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-top: 20px;
  text-wrap: balance;
}

/* Текст в рамке — как в референсе */
.note-card {
  margin-top: 30px;
  padding: clamp(24px, 3vw, 34px) clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(to right, var(--accent-soft), transparent 75%);
}

.note-text { color: var(--muted); font-size: clamp(15.5px, 1.7vw, 17px); }
.note-text p + p { margin-top: 16px; }

.note-author {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  margin-left: clamp(0px, 2vw, 22px);
}

.note-avatar {
  width: 76px; height: 76px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid var(--accent-line);
  flex-shrink: 0;
}

.note-avatar--empty {
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
}

.note-author-meta { display: grid; gap: 4px; }
.note-author-meta b { font-weight: 600; font-size: 18px; font-family: var(--font-display); }
.note-author-meta span { font-size: 14px; color: var(--muted); }

/* ---------- Топ-10 материалов ---------- */

.mat-list { margin-top: 54px; display: grid; gap: 14px; counter-reset: mat; }

.mat-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px 30px;
}

.mat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-bright);
  line-height: 1;
}

.mat-speaker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: block;
}

.mat-topic { font-size: 16px; margin-top: 9px; color: var(--text); line-height: 1.5; text-wrap: pretty; }

/* ---------- Расписание ---------- */

.tt-list { margin-top: 54px; display: grid; gap: 14px; }

.tt-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 26px;
  align-items: center;
  padding: 26px 30px;
}

.tt-when {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 26px;
  border-right: 1px dashed var(--line);
}

.tt-date { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.tt-time { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; color: var(--cyan); }

.tt-speaker { font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.35; }
.tt-topic { color: var(--muted); font-size: 15.5px; margin-top: 9px; text-wrap: pretty; }

/* ---------- Промокоды ---------- */

.offers-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.offer-card { padding: 30px 28px 32px; display: flex; flex-direction: column; }

.offer-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--cyan);
  margin-bottom: 20px;
}

.offer-icon svg { width: 22px; height: 22px; }

.offer-partner { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.35; }
.offer-text { color: var(--muted); font-size: 15px; margin-top: 12px; }

.offer-card--more {
  background: linear-gradient(140deg, var(--accent-soft), transparent 60%), var(--panel);
  border-color: var(--accent-line);
  justify-content: center;
}

.offer-card--more .offer-partner {
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* ---------- Шаблоны ---------- */

.tpl-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.tpl-card { padding: 28px 24px; display: flex; flex-direction: column; }

.tpl-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--cyan);
  margin-bottom: 18px;
  flex-shrink: 0;
}

.tpl-icon svg { width: 21px; height: 21px; }

.tpl-name { font-weight: 600; font-size: 16.5px; line-height: 1.35; font-family: var(--font-display); }
.tpl-text { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

.tpl-more {
  margin-top: 18px;
  padding: 26px 28px;
  background: linear-gradient(120deg, var(--accent-soft), transparent 55%), var(--panel);
  border-color: var(--accent-line);
  position: relative;
}

.tpl-more-copy { display: flex; gap: 22px; align-items: center; position: relative; z-index: 1; }
.tpl-more .tpl-icon { margin-bottom: 0; }

.tpl-more--art { padding-right: min(38%, 380px); }

.tpl-more-art {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(46%, 460px);
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 96%);
  mask-image: linear-gradient(to left, #000 30%, transparent 96%);
}

/* ---------- Партнёры ---------- */

.partners-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.partner-item {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 14, 30, 0.45);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-item:hover {
  border-color: var(--line-bright);
  transform: translateY(-3px);
  box-shadow: 0 0 26px var(--accent-soft);
}

.partner-item img { max-height: 46px; width: auto; object-fit: contain; opacity: 0.85; transition: opacity 0.25s ease; }
.partner-item:hover img { opacity: 1; }

.partner-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ---------- Резиденты ---------- */

.res-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.res-card { padding: 34px 30px 36px; }

.res-index { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; color: var(--cyan); }

.res-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
  margin-top: 16px;
}

.res-text { color: var(--muted); font-size: 15.5px; margin-top: 14px; }

/* --- Чат --- */

.chat-block {
  margin-top: 22px;
  padding: 34px 34px 30px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: linear-gradient(130deg, var(--accent-soft), transparent 55%), var(--panel);
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 2.2vw, 24px);
}

.chat-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--cyan);
  flex-shrink: 0;
}

.chat-icon svg { width: 21px; height: 21px; }

.chat-names { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }

.chat-names li {
  font-size: 14.5px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(8, 14, 30, 0.55);
  padding: 9px 17px;
  border-radius: 100px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.chat-names li:hover { border-color: var(--line-bright); color: var(--cyan); }

/* ---------- Основатель ---------- */

.fnd-stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding-block: 30px;
  border-block: 1px solid var(--line);
}

.fnd-stat { display: flex; flex-direction: column; }

.fnd-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fnd-stat-unit { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-top: 10px; }
.fnd-stat-label { font-size: 14.5px; color: var(--muted); margin-top: 4px; }

.fnd-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(34px, 5vw, 68px);
  align-items: start;
}

.fnd-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 30%, #0d1b36, var(--bg-0));
}

.fnd-photo img { width: 100%; height: auto; aspect-ratio: 0.92; object-fit: cover; object-position: 50% 20%; }

.fnd-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 7, 15, 0.78), transparent 45%);
}

.fnd-photo-caption { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 2; display: grid; gap: 5px; }
.fnd-photo-caption .name { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: #fff; }
.fnd-photo-caption .role { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }

.fnd-body--wide { grid-column: 1 / -1; max-width: 860px; }

.fnd-regalia { display: grid; gap: 0; }

.fnd-regalia li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.5;
}

.fnd-regalia li:last-child { border-bottom: 1px solid var(--line); }
.fnd-regalia b { color: var(--text); font-weight: 600; }

.fnd-reg-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  margin-top: 10px;
  flex-shrink: 0;
}

.fnd-appeal {
  margin-top: 38px;
  padding: 28px 32px;
  border-left: 2px solid var(--cyan);
  background: linear-gradient(to right, var(--accent-soft), transparent 70%);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.fnd-appeal-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.3; }
.fnd-appeal p { color: var(--muted); font-size: 16px; margin-top: 14px; }

/* ---------- Цена ---------- */

.price-card {
  margin-top: 54px;
  position: relative;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, var(--line-bright), transparent 35%, transparent 65%, rgba(109, 124, 255, 0.4));
  max-width: 980px;
  margin-inline: auto;
}

.price-card-inner {
  border-radius: 23px;
  background: var(--panel-solid);
  padding: clamp(32px, 4vw, 50px);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.price-features { display: grid; gap: 13px; }

.price-features li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }

.price-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--cyan);
}

.price-check svg { width: 12px; height: 12px; }

.price-side {
  text-align: center;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 14, 30, 0.55);
  display: grid;
  gap: 8px;
  justify-items: center;
}

.price-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.price-label { font-size: 14.5px; color: var(--muted); margin-top: 6px; }

.price-value { display: flex; align-items: baseline; gap: 12px; margin-block: 4px 14px; }
.price-old { color: var(--faint); font-size: 19px; }

.price-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-side .btn { width: 100%; }

/* ---------- FAQ ---------- */

.faq-list { margin-top: 54px; max-width: 860px; margin-inline: auto; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: 24px 4px;
  font-weight: 600;
  font-size: clamp(15.5px, 1.7vw, 17.5px);
  transition: color 0.25s ease;
}

.faq-q:hover { color: var(--cyan); }

.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.3s ease;
}

.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 10px; }

.faq-item.open .faq-icon { border-color: var(--line-bright); background: var(--accent-soft); transform: rotate(180deg); }
.faq-item.open .faq-icon::after { transform: scaleY(0); }

.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { color: var(--muted); font-size: 15.5px; padding: 0 4px 24px; max-width: 740px; }

.faq-cta { margin-top: 48px; text-align: center; }

/* ---------- Футер ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-1); }

.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand .logo { font-size: 17px; }
.footer-tagline { color: var(--faint); font-size: 13.5px; margin-top: 12px; max-width: 300px; }

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}

.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--muted); font-size: 14.5px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 13px;
}

/* ---------- Модальное окно ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.82);
  backdrop-filter: blur(10px);
  animation: fade-in 0.3s ease;
}

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

.modal-window {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(28px, 4vw, 42px);
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(2, 6, 16, 0.7);
  animation: modal-in 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-window::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 23px;
  padding: 1px;
  background: linear-gradient(135deg, var(--line-bright), transparent 30%, transparent 70%, rgba(109, 124, 255, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover { color: var(--cyan); border-color: var(--line-bright); }
.modal-close svg { width: 16px; height: 16px; }

.modal-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2.4vw, 26px); padding-right: 40px; }
.modal-sub { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

.modal-product {
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-product-name { font-size: 14.5px; font-weight: 500; }
.modal-product-price { display: flex; align-items: baseline; gap: 10px; }
.modal-product-price s { color: var(--faint); font-size: 14px; }
.modal-product-price b { font-family: var(--font-display); font-size: 20px; color: var(--cyan); }

/* --- Форма --- */

.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.field label .req { color: var(--cyan); }

.field input, .field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: rgba(4, 7, 15, 0.6);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.field input::placeholder { color: var(--faint); }

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--line-bright);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input.invalid { border-color: #ff6b81; box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.12); }

.promo-toggle {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
  align-self: flex-start;
}

.promo-wrap { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--faint);
  cursor: pointer;
  line-height: 1.5;
}

.consent input { accent-color: var(--cyan); width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.consent a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.consent a:hover { color: var(--cyan); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead-form .btn { width: 100%; margin-top: 22px; }
.lead-form .btn[disabled] { opacity: 0.6; pointer-events: none; }

.form-status { margin-top: 14px; font-size: 14px; text-align: center; min-height: 20px; }
.form-status.ok { color: #5ee8a4; }
.form-status.err { color: #ff6b81; }

/* ---------- Внутренние страницы ---------- */

.inner-page { padding: calc(var(--header-h) + 60px) 0 110px; min-height: 70vh; }
.inner-page--center { text-align: center; }
.inner-page--center .section-lead { margin-inline: auto; }

.entry-content { color: var(--muted); max-width: 780px; font-size: 16.5px; margin-top: 34px; }
.entry-content h2, .entry-content h3 { font-family: var(--font-display); color: var(--text); font-weight: 500; margin: 38px 0 14px; line-height: 1.35; }
.entry-content h2 { font-size: 24px; }
.entry-content h3 { font-size: 19px; }
.entry-content p { margin: 14px 0; }
.entry-content ul, .entry-content ol { margin: 14px 0 14px 24px; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin: 7px 0; }
.entry-content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.entry-content strong { color: var(--text); }
.entry-content img { border-radius: var(--radius); margin: 24px 0; }

.single-thumb { margin-top: 30px; border-radius: var(--radius); overflow: hidden; }
.single-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; justify-content: inherit; }
.inner-page--center .single-cta { justify-content: center; }

.posts-list { display: grid; gap: 18px; margin-top: 44px; }
.post-card { padding: 28px 30px; }
.card-title { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.4; }
.card-text { color: var(--muted); font-size: 15.5px; margin-top: 12px; }
.post-card a:hover { color: var(--cyan); }

.pagination { margin-top: 40px; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; margin-right: 8px; color: var(--muted); }
.pagination .page-numbers.current { color: var(--cyan); border-color: var(--line-bright); }

/* ---------- Появление при скролле ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].revealed { opacity: 1; transform: none; }

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

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero { padding-bottom: 72px; }
  .hero-visual { min-height: 0; order: -1; margin-top: -8px; }
  .deity { width: min(70vw, 360px); }
  .orbit--2 { display: none; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-inline: auto; }
  .hero-bullets { text-align: left; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .fnd-grid { grid-template-columns: 1fr; }
  .fnd-photo { max-width: 420px; }
  .price-card-inner { grid-template-columns: 1fr; }
  .note-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder-note--reverse .note-copy { order: 1; }
  .founder-note--reverse .note-art { order: 2; }
  .note-art { max-width: 620px; }
  .note-art::before,
  .founder-note--reverse .note-art::before { inset: 16px -16px -16px 16px; }
  .tpl-more--art { padding-right: 28px; padding-bottom: 180px; }
  .tpl-more-art {
    width: 100%; top: auto; height: 190px;
    -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 96%);
    mask-image: linear-gradient(to top, #000 30%, transparent 96%);
  }
  .section-bg-art { width: 100%; opacity: 0.16; }
}

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { width: min(1200px, 100% - 32px); }
  .mat-item { grid-template-columns: 1fr; gap: 10px; padding: 22px 22px 24px; }
  .mat-num { font-size: 24px; }
  .tt-item { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .tt-when { flex-direction: row; align-items: baseline; gap: 12px; padding-right: 0; padding-bottom: 12px; border-right: 0; border-bottom: 1px dashed var(--line); }
  .form-fields { grid-template-columns: 1fr; }
  .chat-block { padding: 26px 22px; }
  .fnd-appeal { padding: 22px 20px; }
  .price-card-inner { padding: 26px 22px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .tpl-more { flex-direction: column; align-items: flex-start; gap: 16px; }
  .note-card { padding: 28px 22px 30px; }
  .section-outro { margin-top: 40px; }
}

@media (max-width: 460px) {
  .hero-title { font-size: 30px; }
  .orbit-node { font-size: 9.5px; padding: 5px 10px; gap: 5px; }
  .partners-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   СВЕТЛАЯ ТЕМА
   ============================================================ */

:root { color-scheme: dark; }

:root[data-theme="light"] {
  color-scheme: light;

  --bg-0: #eef1f9;
  --bg-1: #e6eaf4;
  --bg-2: #dde3f0;
  --panel: rgba(255, 255, 255, 0.75);
  --panel-solid: #ffffff;
  --line: rgba(18, 34, 66, 0.11);
  --line-bright: rgba(10, 150, 205, 0.5);
  --text: #101a2d;
  --muted: #4b5670;
  --faint: #838ea6;
  --cyan: #0a92c6;
  --blue: #3b62e0;
  --violet: #6d5cf0;
  --glow: rgba(10, 150, 210, 0.24);
  --grad-ink: linear-gradient(100deg, #0596c9 0%, #4c63e8 100%);
  --accent-soft: rgba(10, 150, 210, 0.08);
  --accent-line: rgba(10, 150, 210, 0.22);
  --btn-ink: #ffffff;
}

:root[data-theme="light"].accent-violet { --cyan: #6d4fe0; --grad-ink: linear-gradient(100deg, #7c5cff 0%, #4c63e8 100%); --glow: rgba(124, 92, 255, 0.22); --accent-soft: rgba(124, 92, 255, 0.09); --accent-line: rgba(124, 92, 255, 0.24); --line-bright: rgba(124, 92, 255, 0.5); }
:root[data-theme="light"].accent-emerald { --cyan: #0f9d6b; --grad-ink: linear-gradient(100deg, #0f9d6b 0%, #0891b2 100%); --glow: rgba(15, 157, 107, 0.2); --accent-soft: rgba(15, 157, 107, 0.09); --accent-line: rgba(15, 157, 107, 0.24); --line-bright: rgba(15, 157, 107, 0.5); }
:root[data-theme="light"].accent-amber { --cyan: #c2760b; --grad-ink: linear-gradient(100deg, #d4890f 0%, #e05545 100%); --glow: rgba(194, 118, 11, 0.2); --accent-soft: rgba(194, 118, 11, 0.09); --accent-line: rgba(194, 118, 11, 0.24); --line-bright: rgba(194, 118, 11, 0.5); }

:root[data-theme="light"] body { background: var(--bg-0); }
:root[data-theme="light"] body::after { opacity: 0.03; }
:root[data-theme="light"] ::selection { background: var(--glow); color: #06121f; }
:root[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-1); }
:root[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c3ccdd; }

:root[data-theme="light"] .btn--primary { background: var(--grad-ink); color: #fff; }
:root[data-theme="light"] .site-header.scrolled { background: rgba(238, 241, 249, 0.85); }
:root[data-theme="light"] .theme-toggle, :root[data-theme="light"] .btn--ghost { background: rgba(255, 255, 255, 0.75); }
:root[data-theme="light"] .theme-toggle--mobile { background: #fff; }
:root[data-theme="light"] .mobile-menu { background: rgba(240, 243, 250, 0.98); }
:root[data-theme="light"] .burger span { background: var(--text); }

:root[data-theme="light"] .hero {
  background:
    radial-gradient(1100px 720px at 74% 40%, rgba(120, 165, 255, 0.22), transparent 62%),
    radial-gradient(880px 600px at 12% 82%, rgba(150, 130, 245, 0.14), transparent 60%),
    linear-gradient(180deg, #f3f5fc 0%, var(--bg-0) 100%);
}

:root[data-theme="light"] .hero-visual::before {
  content: '';
  position: absolute;
  left: 50%; top: 44%;
  width: 128%; height: 128%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, #0a1226 0%, rgba(9, 16, 34, 0.92) 34%, rgba(9, 16, 34, 0.55) 52%, rgba(9, 16, 34, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

:root[data-theme="light"] .hero-canvas {
  -webkit-mask: radial-gradient(58% 58% at 72% 42%, #000 34%, transparent 68%);
  mask: radial-gradient(58% 58% at 72% 42%, #000 34%, transparent 68%);
}

:root[data-theme="light"] .badge { color: var(--cyan); border-color: var(--accent-line); background: var(--accent-soft); }

:root[data-theme="light"] .orbit-node {
  background: rgba(255, 255, 255, 0.94);
  color: #2c3a55;
  border-color: rgba(18, 34, 66, 0.12);
  box-shadow: 0 4px 16px rgba(20, 40, 80, 0.14);
}

:root[data-theme="light"] .orbit { border-color: rgba(60, 98, 224, 0.16); }
:root[data-theme="light"] .ticker { background: rgba(255, 255, 255, 0.6); }

:root[data-theme="light"] .glow-card { background: var(--panel-solid); box-shadow: 0 10px 30px rgba(23, 42, 82, 0.07); }
:root[data-theme="light"] .glow-card:hover { box-shadow: 0 18px 44px rgba(23, 42, 82, 0.13), 0 0 30px var(--accent-soft); }

:root[data-theme="light"] .mat-num { -webkit-text-stroke-color: var(--line-bright); }
:root[data-theme="light"] .partner-item { background: #fff; }
:root[data-theme="light"] .chat-names li { background: #fff; }
:root[data-theme="light"] .price-side { background: #f7f9fd; }
:root[data-theme="light"] .field input, :root[data-theme="light"] .field textarea { background: #f7f9fd; color: var(--text); }
:root[data-theme="light"] .modal-backdrop { background: rgba(20, 32, 56, 0.55); }

/* Арты в светлой теме: тёмная подложка, иначе тонкие линии тонут в фоне */
:root[data-theme="light"] .art-frame { background: linear-gradient(150deg, #0c1730, #050a16); }
:root[data-theme="light"] .art-frame .art-svg { --bg-0: #050a16; --cyan: #54d1ff; --blue: #6d8bff; }
:root[data-theme="light"] .section-bg-art { opacity: 0.5; }
:root[data-theme="light"] .tpl-more-art { opacity: 0.42; }
:root[data-theme="light"] .fnd-photo-caption .name { color: #fff; }
:root[data-theme="light"] .site-footer { background: var(--bg-1); }

/* ---------- Доступность: отключение движения ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-canvas { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
