/* ==========================================================================
   Финансовый клуб МГУ — стили сайта и Mini App
   Цвета бренда и шрифты меняются в :root. Разделы файла:
   1. Основа  2. Шапка и меню  3. Кнопки, карточки  4. Главная (hero, тикер, секции)
   5. События  6. Новости  7. Формы  8. Подвал  9. Анимации  10. Mini App
   ========================================================================== */

/* ---------- 1. Основа ---------- */
:root {
  --bg: #030C07;
  --bg-2: #06170D;
  --bg-3: #0A2213;
  --panel: rgba(8, 40, 20, .42);
  --panel-solid: #0B1F13;
  --line: rgba(228, 229, 228, .11);
  --line-strong: rgba(228, 229, 228, .22);
  --text: #E9ECE8;
  --muted: #93A79A;
  --dim: #6C8475;
  --green: #019541;
  --green-hi: #2DBA63;
  --red: #DB2F2F;
  --red-hi: #F2575A;
  --cream: #F3EFE6;
  --gold: #E8B04A;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-hi); text-decoration: none; }
a:hover { color: #5fd88f; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .container { padding: 0 32px; } }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.nw { white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 .74rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-hi); margin: 0;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--plain::before { display: none; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }

/* ---------- 2. Шапка и меню ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled, .page-inner .header {
  background: rgba(3, 12, 7, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: auto; }
.brand__text { display: grid; line-height: 1.15; }
.brand__text strong { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.brand__text small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.nav { display: none; gap: 4px; }
.nav a {
  position: relative; color: var(--muted); font-weight: 600; font-size: .93rem;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.active { color: var(--text); }
.nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--green-hi); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__actions .header__cta { display: none; }
.burger {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; display: grid; place-items: center;
}
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), opacity .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 980px) {
  .nav { display: flex; }
  .header__actions .header__cta { display: inline-flex; }
  .burger { display: none; }
}

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49; padding: 24px 16px 32px;
  background: rgba(3, 12, 7, .97); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: baseline; padding: 16px 4px;
  border-bottom: 1px solid var(--line); color: var(--text); font-family: var(--serif); font-size: 1.7rem;
}
.mobile-menu nav a small { font-family: var(--sans); font-size: .8rem; color: var(--dim); }
.menu-open { overflow: hidden; }

/* ---------- 3. Кнопки, карточки, чипы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 700 .98rem/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 10px 30px -10px rgba(1, 149, 65, .8); }
.btn--primary:hover { background: #06a94b; color: #fff; box-shadow: 0 14px 36px -10px rgba(1, 149, 65, .95); transform: translateY(-2px); }
.btn--ghost { background: rgba(255, 255, 255, .03); color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--text); border-color: var(--green-hi); background: rgba(1, 149, 65, .1); }
.btn--cream { background: var(--cream); color: #0B1F13; }
.btn--cream:hover { color: #0B1F13; background: #fff; transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.card {
  position: relative; display: block; color: var(--text);
  background: linear-gradient(180deg, rgba(10, 46, 23, .55), rgba(6, 23, 13, .55));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
a.card:hover, .card--hover:hover { color: var(--text); border-color: rgba(45, 186, 99, .55); transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(1, 149, 65, .7); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: var(--text);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
}
.chip--green { background: rgba(1, 149, 65, .2); border-color: rgba(45, 186, 99, .35); }
.chip--red { background: rgba(219, 47, 47, .18); border-color: rgba(242, 87, 90, .35); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.card-num { font: 600 .82rem var(--mono); color: var(--green-hi); }

/* ---------- 4. Главная ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section--panel { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 0% 0%, rgba(1, 149, 65, .18), transparent 70%),
              radial-gradient(40% 50% at 100% 100%, rgba(1, 149, 65, .12), transparent 70%);
}
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 820px; position: relative; }
.section-head--row { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--row { grid-template-columns: 1fr auto; } .section-head--row .lead { grid-column: 1; } .section-head--row .section-head__actions { grid-column: 2; grid-row: 1 / span 3; align-self: end; } }
.section-head__num { font-family: var(--mono); font-weight: 500; color: var(--dim); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 40px) 0 0; overflow: hidden; isolation: isolate; }
.hero__chart { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .55; }
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 12% 8%, rgba(1, 149, 65, .32), transparent 70%),
    radial-gradient(45% 50% at 95% 95%, rgba(1, 149, 65, .22), transparent 70%),
    linear-gradient(180deg, rgba(3, 12, 7, .2) 0%, rgba(3, 12, 7, .55) 55%, var(--bg) 100%);
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.25fr .75fr; } }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .85rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 22px; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green-hi); }
.hero__title { margin-bottom: 24px; }
.hero__title em { font-style: italic; color: var(--green-hi); }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #C3D0C7; max-width: 560px; margin-bottom: 34px; }
.hero__crest { position: relative; justify-self: center; width: min(78vw, 400px); }
.hero__crest img { width: 100%; filter: drop-shadow(0 30px 60px rgba(1, 149, 65, .35)); animation: float 7s ease-in-out infinite; }
.hero__crest::before {
  content: ""; position: absolute; inset: 10% 5% 0; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(1, 149, 65, .45), transparent); filter: blur(30px);
}
@media (max-width: 979px) { .hero__crest { order: -1; width: min(52vw, 230px); } }
.hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: clamp(48px, 7vw, 88px);
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 760px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stat { background: rgba(3, 12, 7, .82); backdrop-filter: blur(6px); padding: 22px 22px 20px; }
.hero-stat strong { display: block; font: 800 clamp(1.9rem, 3.4vw, 2.6rem)/1 var(--sans); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.hero-stat strong .up { color: var(--green-hi); font-size: .6em; vertical-align: .35em; margin-left: 4px; }
.hero-stat > span { color: var(--muted); font-size: .88rem; line-height: 1.35; display: block; }
.hero__scroll { display: none; }

/* Бегущая биржевая строка */
.ticker { position: relative; border-block: 1px solid var(--line); background: rgba(6, 23, 13, .9); overflow: hidden; padding: 14px 0; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex-shrink: 0; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; padding: 0 28px; font: 600 .86rem var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: #C9D4CC; }
.ticker__item b { font-weight: 600; color: var(--muted); }
.ticker__item .up { color: var(--green-hi); }
.ticker__item .down { color: var(--red-hi); }
.ticker__item + .ticker__item { border-left: 1px solid var(--line); }

/* Ближайшее событие */
.next-event { display: grid; overflow: hidden; padding: 0; }
@media (min-width: 900px) { .next-event { grid-template-columns: 1.05fr 1fr; } }
.next-event__media { position: relative; min-height: 260px; overflow: hidden; }
.next-event__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.next-event:hover .next-event__media img { transform: scale(1.04); }
.next-event__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, rgba(6, 23, 13, .9)); }
@media (max-width: 899px) { .next-event__media::after { background: linear-gradient(180deg, transparent 50%, rgba(6, 23, 13, .9)); } }
.date-badge {
  position: absolute; left: 20px; top: 20px; z-index: 1; display: grid; justify-items: center;
  min-width: 78px; padding: 10px 12px; border-radius: 16px; background: rgba(3, 12, 7, .78); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); line-height: 1.1;
}
.date-badge b { font: 800 2rem/1 var(--sans); }
.date-badge span { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.next-event__body { padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; align-content: center; }
.next-event__body h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.meta-list { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .95rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 420px; }
.countdown div { text-align: center; padding: 12px 6px; border-radius: 14px; background: rgba(3, 12, 7, .6); border: 1px solid var(--line); }
.countdown b { display: block; font: 800 1.7rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .7rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.countdown.is-live { display: block; padding: 14px 18px; border-radius: 14px; background: rgba(219, 47, 47, .15); border: 1px solid rgba(242, 87, 90, .4); font-weight: 700; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red-hi); margin-right: 8px; animation: pulse 1.4s infinite; }

/* О клубе */
.about { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 980px) { .about { grid-template-columns: 1fr 1fr; } }
.about__photos { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.about__photos figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.about__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.about__photos figure:hover img { transform: scale(1.05); }
.about__photos figure:first-child { grid-row: span 2; aspect-ratio: 3 / 4; }
.about__photos figure:nth-child(2), .about__photos figure:nth-child(3) { aspect-ratio: 4 / 3.4; }
.about__badge {
  position: absolute; left: -10px; bottom: 24px; padding: 14px 18px; border-radius: 16px; max-width: 230px;
  background: var(--cream); color: #0B1F13; font-weight: 700; font-size: .9rem; line-height: 1.35;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
}
.about__badge b { display: block; font: 800 1.6rem/1 var(--sans); color: var(--green); margin-bottom: 4px; }
.values { display: grid; gap: 12px; margin-top: 28px; }
.value { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 20px 22px; }
.value .card-num { grid-row: span 2; padding-top: 3px; }
.value h3 { font-size: 1.2rem; }
.value p { color: var(--muted); font-size: .95rem; }
.quote-line { margin-top: 22px; padding: 16px 20px; border-left: 3px solid var(--green-hi); background: rgba(1, 149, 65, .08); border-radius: 0 14px 14px 0; font-family: var(--serif); font-size: 1.1rem; }

/* Цифры и таймлайн */
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
@media (min-width: 900px) { .numbers { grid-template-columns: repeat(4, 1fr); } }
.number strong { display: block; font: 800 clamp(3rem, 6.5vw, 5rem)/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #8fd9ad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.number span { display: block; margin-top: 10px; color: var(--muted); max-width: 220px; }
.timeline { position: relative; display: grid; gap: 0; margin-top: clamp(48px, 7vw, 80px); }
.timeline__line { display: none; }
.milestone { position: relative; padding: 0 0 26px 30px; }
.milestone::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: -8px; width: 2px; background: var(--line-strong); }
.milestone:last-child::before { display: none; }
.milestone::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--green-hi); }
.milestone.is-now::after { background: var(--green-hi); box-shadow: 0 0 0 6px rgba(45, 186, 99, .2); animation: pulse-ring 2s infinite; }
.milestone b { display: block; font: 600 .9rem var(--mono); color: var(--green-hi); }
.milestone span { color: var(--text); font-weight: 600; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(5, 1fr); padding-top: 34px; }
  .timeline__line { display: block; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line-strong); overflow: hidden; }
  .timeline__line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--green), var(--green-hi)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) .2s; }
  .is-visible .timeline__line i { transform: scaleX(1); }
  .milestone { padding: 0 16px 0 0; }
  .milestone::before { display: none; }
  .milestone::after { top: -34px; }
}
.partner-note { margin-top: 32px; color: var(--muted); font-size: .95rem; }

/* Постеры событий */
.posters { display: grid; gap: 18px; }
@media (min-width: 700px) { .posters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .posters--3 { grid-template-columns: repeat(3, 1fr); } }
.poster { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.poster__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.poster__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.poster:hover .poster__media img { transform: scale(1.06); }
.poster__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(3, 12, 7, .85)); }
.poster__tag { position: absolute; left: 16px; top: 16px; z-index: 1; }
.poster__date { position: absolute; left: 16px; bottom: 14px; z-index: 1; font: 700 .9rem var(--sans); }
.poster__body { padding: 20px 22px 24px; display: grid; gap: 8px; flex: 1; align-content: start; }
.poster__body h3 { font-size: 1.4rem; }
.poster__speaker { color: var(--muted); font-size: .92rem; }
.poster__speaker b { color: var(--text); font-weight: 700; }
.poster--upcoming { border-color: rgba(45, 186, 99, .45); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-hi); margin-top: 6px; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
a:hover .link-arrow::after, .link-arrow:hover::after { transform: translateX(4px); }

/* Форматы */
.formats { display: grid; gap: 14px; }
@media (min-width: 760px) { .formats { grid-template-columns: repeat(2, 1fr); } }
.format { display: grid; gap: 12px; padding: 26px; }
.format__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(1, 149, 65, .16); border: 1px solid rgba(45, 186, 99, .3); color: var(--green-hi); }
.format__icon svg { width: 26px; height: 26px; }
.format p { color: var(--muted); }
.band {
  margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  padding: 18px 22px; border-radius: var(--radius); border: 1px dashed rgba(45, 186, 99, .4); background: rgba(1, 149, 65, .06);
}

/* Принцип */
.principle { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 6vw, 72px); background: radial-gradient(70% 90% at 0% 0%, rgba(1, 149, 65, .35), transparent 60%), var(--bg-3); border: 1px solid rgba(45, 186, 99, .25); }
.principle h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); max-width: 900px; margin: 18px 0 24px; }
.principle h2 em { font-style: normal; color: var(--green-hi); }
.principle__note { margin-top: 26px; display: flex; gap: 10px; align-items: baseline; color: var(--gold); font-weight: 700; }
.principle__candles { position: absolute; right: -20px; bottom: -10px; width: 280px; opacity: .22; pointer-events: none; }

/* Шаги */
.steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: grid; gap: 12px; padding: 28px 26px; }
.step__n { font: 600 .8rem var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.step--accent { border-color: rgba(45, 186, 99, .55); background: linear-gradient(180deg, rgba(1, 149, 65, .28), rgba(6, 23, 13, .6)); }
.step p { color: var(--muted); }
.step .chip { justify-self: start; }

/* Квиз-баннер */
.quiz-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 5vw, 56px);
  background: var(--cream); color: #0B1F13; display: grid; gap: 24px; align-items: center;
}
@media (min-width: 900px) { .quiz-band { grid-template-columns: 1fr auto; } }
.quiz-band .eyebrow { color: var(--green); }
.quiz-band h2 { color: #0B1F13; }
.quiz-band p { color: #3d5246; max-width: 560px; }
.quiz-band__candles { display: flex; gap: 6px; align-items: flex-end; height: 64px; margin-top: 18px; }
.quiz-band__candles i { width: 14px; height: var(--h, 60%); border-radius: 3px; background: var(--green); animation: candle 2.4s ease-in-out infinite; }
.quiz-band__candles i:nth-child(3n) { background: var(--red); }
.quiz-band__candles i:nth-child(odd) { animation-delay: -.6s; }
.quiz-band__candles i:nth-child(4n) { animation-delay: -1.2s; }
.quiz-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-band .btn--ghost { color: #0B1F13; border-color: rgba(11, 31, 19, .25); }
.test-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quiz-band .chip { color: #0B1F13; background: rgba(11, 31, 19, .06); border-color: rgba(11, 31, 19, .16); }
.quiz-band .chip svg { width: 15px; height: 15px; }
.quiz-band .test-stat { margin-top: 12px; font-weight: 700; color: var(--green); }

/* Новости (карточки) */
.news-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .news-grid--4 { grid-template-columns: repeat(4, 1fr); } .news-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.news-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.news-card h3 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.news-card p { color: var(--muted); font-size: .93rem; }
.news-card__source { margin-top: auto; padding-top: 8px; font-size: .8rem; color: var(--dim); display: flex; justify-content: space-between; gap: 10px; }
.news-card--lead { background: linear-gradient(160deg, rgba(1, 149, 65, .3), rgba(6, 23, 13, .6)); }
@media (min-width: 1080px) { .news-card--lead { grid-column: span 2; grid-row: span 2; } .news-card--lead h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; } .news-card--lead p { font-size: 1.05rem; } }

/* Партнёры */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.partner { min-height: 120px; display: grid; align-content: center; gap: 6px; text-align: left; padding: 22px; }
.partner b { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.partner span { color: var(--dim); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq { border: 1px solid var(--line); border-radius: 16px; background: rgba(6, 23, 13, .6); overflow: hidden; transition: border-color .2s; }
.faq[open] { border-color: rgba(45, 186, 99, .45); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: center; padding: 20px 22px; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font: 400 1.6rem/1 var(--sans); color: var(--green-hi); transition: transform .3s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq__num { font: 600 .8rem var(--mono); color: var(--dim); }
.faq__body { padding: 0 22px 22px 56px; color: var(--muted); }

/* Шапка внутренних страниц */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 80% at 0% 0%, rgba(1, 149, 65, .3), transparent 70%); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(.8); }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 12, 7, .55), var(--bg)); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 18px 0 18px; }
.breadcrumbs { display: flex; gap: 8px; font-size: .88rem; color: var(--dim); }
.breadcrumbs a { color: var(--muted); }

/* ---------- 5. Страница события ---------- */
.event-hero { min-height: min(78svh, 720px); display: flex; align-items: flex-end; }
.event-hero .page-hero__bg img { opacity: .55; filter: none; }
.event-hero .page-hero__bg::after { background: linear-gradient(180deg, rgba(3, 12, 7, .25) 0%, rgba(3, 12, 7, .55) 50%, var(--bg) 100%); }
.event-layout { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 980px) { .event-layout { grid-template-columns: 1.4fr .8fr; align-items: start; } }
.event-aside { display: grid; gap: 14px; }
@media (min-width: 980px) { .event-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.speaker-card { display: grid; gap: 4px; }
.speaker-card b { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 14px; align-items: baseline; font-size: 1.08rem; }
.points li::before { content: ""; flex: none; width: 9px; height: 9px; transform: rotate(45deg); background: var(--green-hi); border-radius: 2px; position: relative; top: -2px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery button:first-child { grid-column: span 2; aspect-ratio: 16 / 8; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.materials { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.materials a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); font-weight: 600; transition: border-color .2s, background .2s; }
.materials a:hover { border-color: var(--green-hi); background: rgba(1, 149, 65, .08); color: var(--text); }
.materials a::after { content: "↗"; color: var(--green-hi); }
.prose { font-size: 1.12rem; color: #C7D2CA; max-width: 720px; }
.block-title { font-family: var(--serif); font-size: 1.7rem; margin: clamp(36px, 5vw, 56px) 0 6px; }

.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .9); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; cursor: zoom-out; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 12px; }

/* ---------- 6. Новости ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter { appearance: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 600 .9rem var(--sans); cursor: pointer; transition: background .2s, border-color .2s; }
.filter:hover { border-color: var(--green-hi); }
.filter.active { background: var(--green); border-color: var(--green); color: #fff; }
[data-region].hidden { display: none; }
.ai-note { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(1, 149, 65, .12); border: 1px solid rgba(45, 186, 99, .3); font-size: .85rem; font-weight: 600; color: #bfe6cd; }

/* ---------- 7. Формы ---------- */
.join-layout { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 980px) { .join-layout { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  font: 500 1rem var(--sans); color: var(--text); width: 100%;
  background: rgba(3, 12, 7, .65); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green-hi); box-shadow: 0 0 0 4px rgba(45, 186, 99, .18); }
.form-row { display: grid; gap: 16px; align-items: end; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.directions { display: grid; gap: 10px; }
.direction { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 18px 20px; }
.direction .format__icon { width: 42px; height: 42px; grid-row: span 2; }
.direction .format__icon svg { width: 21px; height: 21px; }
.direction p { color: var(--muted); font-size: .92rem; }
.success { text-align: left; border-color: var(--green-hi); }
.contact-list { display: grid; gap: 10px; margin-top: 18px; }
.contact-list a, .contact-list div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); }
.contact-list a:hover { border-color: var(--green-hi); color: var(--text); }
.contact-list span { color: var(--muted); }

/* ---------- 8. Подвал ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding: 64px 0 28px; overflow: hidden; background: linear-gradient(180deg, var(--bg), #020805); }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer__about p { color: var(--muted); margin-top: 16px; max-width: 380px; }
.footer h4 { margin: 0 0 14px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col a { color: var(--text); }
.footer__col a:hover { color: var(--green-hi); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem; }
.footer__word { display: block; width: 100%; margin-top: 36px; font-family: var(--serif); fill: rgba(1, 149, 65, .14); user-select: none; }

/* ---------- 9. Анимации ---------- */
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(45, 186, 99, .45); } 100% { box-shadow: 0 0 0 14px rgba(45, 186, 99, 0); } }
@keyframes candle { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* Появление при прокрутке: класс .js-reveal ставит app.js, без JS всё видно сразу */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.js-reveal [data-reveal="scale"] { transform: scale(.96) translateY(16px); }
.js-reveal [data-reveal="left"] { transform: translateX(-32px); }
.js-reveal [data-reveal="right"] { transform: translateX(32px); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 10. Режим Telegram Mini App (класс .tg ставит app.js) ---------- */
.tabbar { display: none; }
body.tg { --header-h: 0px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
body.tg .header, body.tg .mobile-menu, body.tg .footer { display: none; }
body.tg .hero { min-height: auto; padding-top: 32px; }
body.tg .hero__crest { width: 150px; }
body.tg .page-hero { padding-top: 40px; }
body.tg .tabbar {
  display: grid; grid-template-columns: repeat(6, 1fr);
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(3, 12, 7, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.tabbar a { display: grid; justify-items: center; gap: 2px; font-size: .68rem; font-weight: 700; color: var(--dim); }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.active { color: var(--green-hi); }

/* ---------- 11. Иконки внутри текста и кнопок ---------- */
.btn svg { width: 18px; height: 18px; flex: none; }
.meta-list span, .ai-note, .principle__note { display: inline-flex; align-items: center; gap: 8px; }
.meta-list svg, .ai-note svg, .principle__note svg { width: 17px; height: 17px; flex: none; color: var(--green-hi); }
.principle__note svg { color: var(--gold); }
.next-event__media { display: block; }
.breadcrumbs span:last-child { color: var(--muted); }
.contact-list b { font-weight: 700; }
.contact-list span { text-align: right; }

/* Команда клуба на странице «Команда» */
.team-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.member { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 22px 16px; }
.member__photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 2px solid var(--line-strong); background: var(--bg-3); }
.member .member__photo--empty { display: grid; place-items: center; font: 700 2.4rem var(--serif); color: var(--green-hi); }
.member b { font-size: 1.05rem; }
.member span { color: var(--muted); font-size: .9rem; }
.member a { font-weight: 700; font-size: .9rem; margin-top: 4px; }

/* Кнопка «Добавить в календарь» на странице события */
.calendar-add { display: grid; gap: 8px; justify-items: center; }
.calendar-add .btn { width: 100%; justify-content: center; }
.calendar-add a.muted { font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 12. Админка для организаторов (/admin) ---------- */
.admin { padding: calc(var(--header-h) + 28px) 0 64px; min-height: 100svh; } /* страница входа */
.adm { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100svh; }
.adm-side { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; border-right: 1px solid var(--line); background: rgba(6, 23, 13, .55); overflow-y: auto; }
.adm-brand { display: flex; gap: 10px; align-items: center; padding: 4px 10px 18px; color: var(--text); }
.adm-brand b { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 400; line-height: 1.15; }
.adm-brand small { display: block; color: var(--green-hi); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.adm-nav { display: grid; gap: 2px; }
.adm-nav a, .adm-side__foot a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 650; font-size: .94rem; }
.adm-nav a:hover, .adm-side__foot a:hover { background: rgba(255, 255, 255, .045); color: var(--text); }
.adm-nav a.active { background: rgba(1, 149, 65, .2); color: #fff; box-shadow: inset 3px 0 0 var(--green-hi); }
.adm-nav svg, .adm-side__foot svg { width: 19px; height: 19px; flex: none; }
.adm-nav a.active svg { color: var(--green-hi); }
.adm .badge { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: .74rem; font-weight: 800; text-align: center; }
.adm-nav .badge { margin-left: auto; }
.adm-side__foot { margin-top: auto; display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.adm-who { padding: 0 12px 8px; color: var(--dim); font-size: .8rem; overflow-wrap: anywhere; }
.adm-main { min-width: 0; width: 100%; max-width: 1180px; padding: 32px clamp(18px, 3.4vw, 44px) 72px; }
.adm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; }
.adm-head h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.adm-head .actions:empty { display: none; }
.adm-intro { max-width: 760px; margin-bottom: 18px; font-size: .92rem; }
.adm-seg { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 12px; background: rgba(6, 23, 13, .7); }
.adm-seg a { padding: 8px 16px; border-radius: 9px; color: var(--muted); font-weight: 700; font-size: .9rem; }
.adm-seg a.active { background: var(--green); color: #fff; }
.adm-mtop, .adm-tabbar { display: none; }
@media (max-width: 900px) {
  .adm { display: block; }
  .adm-side { display: none; }
  .adm-mtop { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: rgba(3, 12, 7, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .adm-mtop .adm-brand { padding: 0; }
  .adm-mtop__actions { display: flex; gap: 6px; }
  .adm-mtop__actions a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); }
  .adm-mtop__actions svg { width: 19px; height: 19px; }
  .adm-main { padding: 18px 16px calc(92px + env(safe-area-inset-bottom)); }
  .adm-head { margin-bottom: 16px; }
  .adm-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(6, 1fr); padding: 6px 2px calc(6px + env(safe-area-inset-bottom)); background: rgba(3, 12, 7, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .adm-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--muted); font-size: .64rem; font-weight: 700; }
  .adm-tabbar a.active { color: var(--green-hi); }
  .adm-tabbar svg { width: 22px; height: 22px; }
  .adm-tabbar .badge { position: absolute; top: 0; left: calc(50% + 4px); min-width: 18px; padding: 0 5px; font-size: .64rem; line-height: 18px; }
}
.adm-body .tabbar { display: none !important; }
/* Редактор вопросов теста */
.qedit { gap: 10px; }
.qcard { padding: 0; }
.qcard summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.qcard summary::-webkit-details-marker { display: none; }
.qcard__n { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: rgba(1, 149, 65, .2); color: var(--green-hi); font-weight: 800; }
.qcard__t { display: grid; min-width: 0; }
.qcard__t b { font-weight: 700; }
.qcard__t small { color: var(--dim); font-size: .8rem; }
.qcard__chev { margin-left: auto; color: var(--dim); transition: transform .2s; }
.qcard[open] .qcard__chev { transform: rotate(180deg); }
.qcard__body { display: grid; gap: 14px; padding: 4px 18px 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.qopts { display: grid; gap: 8px; }
.qopt { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; }
.qopt input[type=radio] { width: 22px; height: 22px; flex: none; accent-color: var(--green); cursor: pointer; }
.qopt__l { width: 18px; color: var(--dim); font-weight: 800; flex: none; }
.qopt input:not([type=radio]) { flex: 1; min-width: 0; }
.qopt:has(input[type=radio]:checked) input:not([type=radio]) { border-color: rgba(45, 186, 99, .7); background: rgba(1, 149, 65, .12); }
.savebar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(3, 12, 7, .94); backdrop-filter: blur(12px); }
@media (max-width: 900px) { .savebar { bottom: calc(80px + env(safe-area-inset-bottom)); } }
.flash ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }
.flash--error { display: block; }
.hard-q { display: grid; gap: 10px; }
.admin-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 28px; }
.admin-card { display: grid; gap: 6px; align-content: start; }
.admin-card .big { font: 800 2.4rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.admin-card .label { color: var(--muted); font-size: .92rem; }
.admin-card .link-arrow { margin-top: 8px; font-size: .92rem; }
.admin-cards--stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .admin-cards--stats { gap: 8px; }
  .admin-cards--stats .admin-card { padding: 14px; }
  .admin-cards--stats .big { font-size: 1.7rem; }
  .admin-cards--stats .label { font-size: .78rem; }
}
.flash { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; font-weight: 600; background: rgba(1, 149, 65, .15); border: 1px solid rgba(45, 186, 99, .45); }
.flash--error { background: rgba(219, 47, 47, .15); border-color: rgba(242, 87, 90, .5); }
.admin-list { display: grid; gap: 10px; }
.admin-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 12px; }
.admin-row__img { width: 88px; height: 66px; border-radius: 10px; object-fit: cover; background: var(--bg-3); }
.admin-row h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; }
.admin-row p { color: var(--muted); font-size: .88rem; }
.admin-row .actions { gap: 8px; }
@media (max-width: 640px) { .admin-row { grid-template-columns: 64px 1fr; } .admin-row__img { width: 64px; height: 52px; } .admin-row .actions { grid-column: 1 / -1; } }
.admin-form { display: grid; gap: 22px; }
.admin-form fieldset { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 16px; background: rgba(6, 23, 13, .45); }
.admin-form legend { padding: 0 8px; font-family: var(--serif); font-size: 1.25rem; }
.admin-form .hint { color: var(--dim); font-size: .82rem; font-weight: 500; }
.admin-form input[type=file] { padding: 12px; cursor: pointer; }
.admin-form .check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.admin-form .check input { width: 20px; height: 20px; accent-color: var(--green); }
.form-row--3 { display: grid; gap: 16px; align-items: end; }
@media (min-width: 760px) { .form-row--3 { grid-template-columns: 1fr 1fr 1fr; } }
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.photo-tile { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.photo-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-tile .tile-actions { display: grid; gap: 4px; padding: 8px 10px; font-size: .8rem; font-weight: 600; }
.photo-tile label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.photo-tile.is-cover { border-color: var(--green-hi); box-shadow: 0 0 0 2px rgba(45, 186, 99, .35); }
.sticky-save { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; border-radius: 18px; background: rgba(3, 12, 7, .92); backdrop-filter: blur(10px); border: 1px solid var(--line-strong); }
.btn--danger { background: transparent; color: var(--red-hi); border-color: rgba(242, 87, 90, .5); }
.btn--danger:hover { background: rgba(219, 47, 47, .15); color: var(--red-hi); }
.tabs-inline { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.app-card { display: grid; gap: 12px; }
.app-card__head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; justify-content: space-between; }
.app-card__head h3 { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; }
.app-card__meta { color: var(--dim); font-size: .85rem; }
.app-card p { color: #C7D2CA; white-space: pre-line; }
.app-card form { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .app-card form { grid-template-columns: 200px 1fr auto; align-items: start; } }
.app-card select, .app-card textarea, .app-search input, .app-search select { font: 500 .95rem var(--sans); color: var(--text); background: rgba(3, 12, 7, .65); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; width: 100%; }
.status-new { background: rgba(232, 176, 74, .18); border-color: rgba(232, 176, 74, .5); }
.status-contacted { background: rgba(80, 140, 255, .16); border-color: rgba(120, 165, 255, .45); }
.status-accepted { background: rgba(1, 149, 65, .22); border-color: rgba(45, 186, 99, .5); }
.status-declined { background: rgba(219, 47, 47, .15); border-color: rgba(242, 87, 90, .45); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); background: rgba(6, 23, 13, .8); }
.table tr:last-child td { border-bottom: 0; }
.table td.wrap { white-space: normal; min-width: 180px; }
.score-pill { display: inline-block; min-width: 46px; text-align: center; padding: 3px 10px; border-radius: 999px; font-weight: 800; background: rgba(255, 255, 255, .06); }
.score-pill.strong { background: rgba(1, 149, 65, .3); }
.score-pill.weak { background: rgba(219, 47, 47, .2); }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: minmax(120px, 1.2fr) 3fr auto; gap: 12px; align-items: center; font-size: .88rem; }
.bar i { display: block; height: 10px; border-radius: 6px; background: var(--green); min-width: 2px; }
.bar span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.login-card { max-width: 440px; margin: 0 auto; }
.team-edit { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.team-edit__photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--bg-3); display: grid; place-items: center; color: var(--dim); font-size: .75rem; text-align: center; border: 1px solid var(--line); }
.team-edit__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .team-edit { grid-template-columns: 1fr; } .team-edit__photo { width: 72px; height: 72px; } }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.bar--low i { background: var(--red); }
@media (max-width: 640px) { .admin-cards { gap: 10px; } .admin-cards:not(.admin-cards--stats) .admin-card { padding: 16px 18px; } .admin-cards:not(.admin-cards--stats) .big { font-size: 1.9rem; } }

/* ---------- Рынки (/markets) и «Итог дня» в новостях ---------- */
.mk-tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .mk-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .mk-tiles { grid-template-columns: repeat(4, 1fr); } }
.mk-tile { display: grid; gap: 6px; align-content: start; padding: 18px; text-align: left; font: inherit; color: var(--text); }
button.mk-tile { cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
button.mk-tile:hover, button.mk-tile.active { border-color: rgba(45, 186, 99, .6); transform: translateY(-2px); }
.mk-tile__label { font-size: .82rem; color: var(--muted); }
.mk-tile__value { font-family: var(--mono); font-size: clamp(1.25rem, 3.6vw, 1.7rem); font-weight: 600; letter-spacing: -.02em; }
.mk-tile__foot { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: .85rem; }
.mk-tile__foot small { color: var(--dim); font-size: .8rem; }
.mk-tile--rate { background: linear-gradient(150deg, rgba(1, 149, 65, .28), rgba(8, 40, 20, .42)); }
.mk-chg { font-family: var(--mono); font-weight: 600; color: var(--muted); white-space: nowrap; }
.mk-chg.up { color: var(--green-hi); }
.mk-chg.down { color: var(--red-hi); }
.mk-chart { padding: 22px; display: grid; gap: 16px; }
.mk-chart__head { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: end; }
.mk-chart__value { font-family: var(--mono); font-size: 1.5rem; margin-top: 4px; }
.mk-chart__value span { font-size: 1rem; }
.mk-periods, .mk-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-periods button, .mk-switch button { font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: all .2s; }
.mk-periods button:hover, .mk-switch button:hover { color: var(--text); border-color: var(--green-hi); }
.mk-periods button.active, .mk-switch button.active { color: #fff; background: var(--green); border-color: var(--green); }
.mk-plot { position: relative; min-height: 260px; }
.mk-plot svg { display: block; width: 100%; height: 300px; overflow: visible; }
@media (max-width: 640px) { .mk-plot svg { height: 230px; } }
.mk-plot .grid line { stroke: var(--line); }
.mk-plot .grid text { fill: var(--dim); font: 11px var(--mono); }
.mk-plot .line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.mk-plot .cursor { stroke: var(--line-strong); stroke-dasharray: 3 3; }
.mk-tip { position: absolute; top: 0; pointer-events: none; padding: 6px 10px; border-radius: 10px; background: var(--panel-solid); border: 1px solid var(--line-strong); font: 600 .82rem var(--mono); white-space: nowrap; transform: translateX(-50%); }
.mk-tip small { display: block; color: var(--dim); font-weight: 400; }
.mk-shares tbody tr { cursor: pointer; transition: background .15s; }
.mk-shares tbody tr:hover, .mk-shares tbody tr:focus-visible { background: rgba(1, 149, 65, .08); outline: none; }
.table th.num, .table td.num { text-align: right; font-family: var(--mono); }
.mk-spark { width: 110px; height: 28px; display: block; }
@media (max-width: 560px) { .mk-spark-col { display: none; } }
.mk-daily { display: grid; gap: 10px; justify-items: start; padding: 24px; }
.mk-daily h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; }

.daily { display: grid; gap: 22px; padding: clamp(22px, 4vw, 36px); background: linear-gradient(160deg, rgba(1, 149, 65, .16), rgba(8, 40, 20, .42) 55%); }
.daily__top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.daily h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.2; }
.daily__cols { display: grid; gap: 22px; }
@media (min-width: 980px) { .daily__cols { grid-template-columns: 1.15fr .85fr; } }
.daily h3 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.daily ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: d; }
.daily ol li { counter-increment: d; display: grid; grid-template-columns: 28px 1fr; gap: 4px 10px; }
.daily ol li::before { content: counter(d); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 .8rem var(--mono); color: var(--green-hi); border: 1px solid rgba(45, 186, 99, .4); }
.daily ol b { font-weight: 700; }
.daily ol p, .daily__impact p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.daily__impact { display: grid; gap: 12px; }
.daily__impact div { padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(3, 12, 7, .45); border: 1px solid var(--line); display: grid; gap: 6px; justify-items: start; }
.daily__watch { padding: 14px 16px; border-left: 3px solid var(--gold); background: rgba(232, 176, 74, .08); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.daily__archive { display: grid; gap: 8px; }
.daily__archive details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.daily__archive summary { cursor: pointer; font-weight: 600; }
.daily__archive summary span { color: var(--dim); font-weight: 400; margin-right: 8px; }
.daily__archive ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; font-size: .93rem; }
@media (max-width: 560px) {
  .mk-shares .table th, .mk-shares .table td { padding: 10px 8px; }
  .mk-shares td .muted { display: none; }
}
/* Тесты в админке */
.adm-back { display: inline-block; margin-bottom: 10px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.test-row { display: grid; gap: 14px; grid-template-columns: 1fr auto; align-items: center; }
.test-row h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; }
.test-row h3 a { color: inherit; }
.test-row p { color: var(--muted); font-size: .88rem; margin: 2px 0 8px; }
.test-row .actions { gap: 8px; justify-content: flex-end; }
@media (max-width: 760px) { .test-row { grid-template-columns: 1fr; } .test-row .actions { justify-content: flex-start; } }
.qcard__tools { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
#qlist { display: grid; gap: 10px; }
.flash--warn { background: rgba(232, 176, 74, .12); border-color: rgba(232, 176, 74, .5); }
[hidden] { display: none !important; }
.form-error { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: rgba(219, 47, 47, .15); border: 1px solid rgba(242, 87, 90, .5); font-weight: 600; }
/* Заявки в админке */
.app-search { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.app-search input[type=search] { flex: 1 1 260px; }
.app-search select { flex: 0 1 260px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.app-actions form { display: contents; }
.app-del { margin-left: auto; color: var(--dim); }
.app-card form.app-note { display: grid; gap: 8px; grid-template-columns: 1fr auto; align-items: start; }
@media (max-width: 640px) { .app-card form.app-note { grid-template-columns: 1fr; } .app-del { margin-left: 0; } }
.app-history summary { cursor: pointer; color: var(--muted); font-size: .88rem; font-weight: 600; }
.app-history ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .88rem; color: #C7D2CA; }
.app-history li.bad { color: var(--red-hi); }
.app-history time { color: var(--dim); font-variant-numeric: tabular-nums; }
.adm-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--panel-solid); color: var(--text); }
.adm-dialog::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.adm-dialog form { padding: 22px; gap: 14px; }
.adm-dialog h2 { font-size: 1.5rem; }

/* ---------- Политика данных (/privacy) и согласие в формах ---------- */
.legal { max-width: 780px; display: grid; gap: 14px; color: #C7D2CA; line-height: 1.65; }
.legal h2 { font-size: 1.35rem; margin-top: 18px; color: var(--text); }
.legal ul { padding-left: 20px; display: grid; gap: 10px; }
.legal a, .consent a { color: var(--green-hi); text-decoration: underline; text-underline-offset: 3px; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--green); }
.event-route { display: flex; gap: 10px; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.event-route svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--green-hi); }
.event-route a { color: var(--green-hi); text-decoration: underline; text-underline-offset: 3px; }
.chip--soon { font-size: .68rem; padding: 3px 9px; vertical-align: middle; margin-left: 6px; color: var(--gold); border-color: rgba(232, 176, 74, .4); background: rgba(232, 176, 74, .08); }
