/* ============================================================
   Федерация баскетбола Дагестана — дизайн-система
   Золото #B68E50 · триколор Дагестана · светлая тема
   ============================================================ */

@font-face { font-family: "Gotham"; src: url("/assets/fonts/Gotham-Light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("/assets/fonts/Gotham-Book.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("/assets/fonts/Gotham-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("/assets/fonts/Gotham-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("/assets/fonts/Gotham-Black.woff") format("woff"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --gold: #b68e50;
  --gold-50: #faf6ee;
  --gold-100: #f5eee0;
  --gold-200: #e9dbbf;
  --gold-300: #d9c295;
  --gold-400: #c8a86e;
  --gold-600: #9e7942;
  --gold-700: #826235;

  --ink: #1c1a17;
  --ink-soft: #403b33;
  --ink-muted: #6b6459;

  --cream: #faf8f4;
  --line: #ece5d8;
  --white: #fff;

  --green: #1e9b44;
  --blue: #1b4fa0;
  --red: #dc1e26;

  --shadow-soft: 0 2px 8px rgba(28, 26, 23, 0.04), 0 12px 32px rgba(28, 26, 23, 0.06);
  --shadow-lift: 0 8px 20px rgba(28, 26, 23, 0.08), 0 24px 56px rgba(130, 98, 53, 0.1);
  --shadow-gold: 0 10px 30px rgba(182, 142, 80, 0.25);

  --font: "Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image: radial-gradient(48rem 48rem at 85% -10%, rgba(182, 142, 80, 0.05), transparent 60%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

::selection { background: rgba(182, 142, 80, 0.22); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #e3d8c2; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.section { padding: 72px 0; position: relative; }
.section--cream { background: var(--cream); }
@media (min-width: 640px) { .section { padding: 92px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::before { display: none; }

.section-head { max-width: 640px; }
.section-head--center { margin: 0 auto; text-align: center; }
.section-head__title { margin-top: 16px; font-size: clamp(28px, 4vw, 44px); }
.section-head__intro { margin-top: 18px; color: var(--ink-muted); font-size: 17px; line-height: 1.65; }

.gold-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-300), transparent); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: #fff;
  padding: 12px 24px;
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover { background: var(--gold-600); transform: translateY(-2px); }
.btn--outline {
  border-color: var(--gold-300);
  color: var(--ink);
  padding: 12px 24px;
}
.btn--outline:hover { border-color: var(--gold); background: var(--gold-50); }
.btn--ghost { color: var(--gold-700); padding: 10px 14px; }
.btn--ghost:hover { color: var(--gold); }
.btn--full { width: 100%; }

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--gold-200); }

/* ── Chips / tags ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}
.chip--gold { background: var(--gold-50); color: var(--gold-700); box-shadow: inset 0 0 0 1px var(--gold-200); }
.chip--green { background: rgba(30, 155, 68, 0.1); color: #157a34; box-shadow: inset 0 0 0 1px rgba(30, 155, 68, 0.22); }
.chip--blue { background: rgba(27, 79, 160, 0.1); color: #163f80; box-shadow: inset 0 0 0 1px rgba(27, 79, 160, 0.22); }
.chip--red { background: rgba(220, 30, 38, 0.1); color: #b3151c; box-shadow: inset 0 0 0 1px rgba(220, 30, 38, 0.22); }
.chip--neutral { background: rgba(28, 26, 23, 0.05); color: var(--ink-soft); box-shadow: inset 0 0 0 1px rgba(28, 26, 23, 0.1); }
.chip--away { background: rgba(13, 148, 136, 0.12); color: #0e7490; box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.28); font-weight: 700; }

/* ── Decorative gold lines ── */
.gold-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; z-index: 0; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo__img { width: 44px; height: 44px; flex-shrink: 0; transition: transform 0.3s; }
.logo:hover .logo__img { transform: scale(1.05); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }
.logo__sub { margin-top: 3px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.34em; color: var(--gold-600); }
@media (min-width: 640px) { .logo__name { font-size: 14px; } .logo__sub { font-size: 10px; } }

.nav__menu { display: none; align-items: center; gap: 2px; }
.nav__link {
  position: relative;
  isolation: isolate;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
}
/* Золотая «пилюля», вырастающая при наведении */
.nav__link::before {
  content: "";
  position: absolute; inset: 2px; z-index: -1;
  border-radius: 999px;
  background: radial-gradient(120% 130% at 50% 0%, var(--gold-100), var(--gold-50));
  box-shadow: inset 0 0 0 1px var(--gold-200), 0 6px 16px rgba(130, 98, 53, 0.14);
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.2, 0.8, 0.3, 1);
}
/* Подчёркивание, раскрывающееся из центра */
.nav__link::after {
  content: "";
  position: absolute; left: 50%; right: 50%; bottom: 5px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: left 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), right 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--gold-700); transform: translateY(-1px); }
.nav__link:hover::before, .nav__link:focus-visible::before { opacity: 1; transform: scale(1); }
.nav__link:hover::after, .nav__link:focus-visible::after { left: 15px; right: 15px; }
.nav__link.active { color: var(--gold-700); }
.nav__link.active::after { left: 16px; right: 16px; background: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .nav__link, .nav__link::before, .nav__link::after { transition: none; }
}
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__tg { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: linear-gradient(155deg, #d0a865, #a87f3f); box-shadow: 0 4px 12px rgba(168, 127, 63, 0.3); transition: transform 0.2s, box-shadow 0.2s, filter 0.2s; }
@media (min-width: 640px) { .nav__tg { display: inline-flex; } }
.nav__tg:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(168, 127, 63, 0.42); filter: brightness(1.05); }
.nav__tg svg { margin-left: -1px; }
@media (min-width: 1024px) { .nav__menu { display: flex; } }

/* Burger */
.burger {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  cursor: pointer; color: var(--ink);
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger__box { position: relative; width: 20px; height: 14px; }
.burger__box span {
  position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, top 0.3s, bottom 0.3s;
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 6px; }
.burger__box span:nth-child(3) { bottom: 0; }
.burger.is-open .burger__box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger.is-open .burger__box span:nth-child(2) { opacity: 0; }
.burger.is-open .burger__box span:nth-child(3) { bottom: 6px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 72px 0 0; z-index: 40;
  background: #fff; overflow-y: auto;
  display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu nav { padding: 8px 0; }
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; font-size: 18px; font-weight: 500;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.mobile-menu a.active { color: var(--gold-700); }
.mobile-menu a span { color: var(--gold-400); }
.mobile-menu .btn { margin: 24px 20px; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::after {
  content: ""; position: absolute; top: -160px; right: -160px;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(182, 142, 80, 0.13); filter: blur(60px); pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; gap: 48px; align-items: center;
  padding-block: 64px;
}
.hero__title { margin-top: 0; font-size: clamp(38px, 7vw, 64px); line-height: 1.04; }
.hero__title span { color: var(--gold-600); }
.hero__lead { margin-top: 24px; max-width: 36rem; font-size: 18px; line-height: 1.65; color: var(--ink-muted); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__hl { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; color: var(--ink-muted); }
.hl { display: inline-flex; align-items: center; gap: 8px; }
.hl__dot { width: 8px; height: 8px; border-radius: 50%; }
.hl__dot--green { background: var(--green); }
.hl__dot--blue { background: var(--blue); }
.hl__dot--red { background: var(--red); }

.hero__emblem { position: relative; width: 100%; max-width: 24rem; margin: 0 auto; aspect-ratio: 1 / 1; }
.hero__ring { position: absolute; inset: 0; border: 1px dashed rgba(217, 194, 149, 0.7); border-radius: 50%; animation: spin 60s linear infinite; }
.hero__disc { position: absolute; inset: 14%; border-radius: 50%; background: linear-gradient(135deg, #fff, var(--gold-50)); box-shadow: var(--shadow-lift); }
.hero__badge { position: absolute; inset: 0; margin: auto; width: 85%; height: 85%; animation: float 7s ease-in-out infinite; }
@media (min-width: 768px) {
  .hero__grid { grid-template-columns: 7fr 5fr; }
}
@media (min-width: 1024px) {
  .hero__grid { padding-block: 104px; }
}
/* Телефон: эмблема — фоновой частью героя, а не отдельным блоком снизу */
@media (max-width: 767px) {
  .hero__grid { position: relative; padding-block: 36px 16px; }
  .hero__media {
    position: absolute; top: 56px; right: -18%;
    width: min(72vw, 300px); margin: 0;
    opacity: 0.4; z-index: 0; pointer-events: none;
  }
  .hero__media .hero__emblem { max-width: none; width: 100%; margin: 0; }
  .hero__copy { position: relative; z-index: 1; }
  .hero__lead { max-width: 26rem; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Quick links ── */
.quick__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .quick__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .quick__grid { grid-template-columns: repeat(4, 1fr); } }
.quick-card { display: flex; flex-direction: column; height: 100%; padding: 24px; }
.quick-card__icon { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; }
.qi--blue { background: rgba(27, 79, 160, 0.1); color: var(--blue); }
.qi--red { background: rgba(220, 30, 38, 0.1); color: var(--red); }
.qi--green { background: rgba(30, 155, 68, 0.1); color: var(--green); }
.qi--gold { background: var(--gold-100); color: var(--gold-600); }
.quick-card h3 { margin-top: 20px; font-size: 20px; }
.quick-card p { margin-top: 6px; font-size: 14px; color: var(--ink-muted); }
.quick-card__go { margin-top: 16px; display: inline-flex; gap: 4px; font-size: 14px; font-weight: 600; color: var(--gold-700); transition: gap 0.2s; }
.quick-card:hover .quick-card__go { gap: 10px; }

/* ── News ── */
.news__head { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 640px) { .news__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.news__body { margin-top: 48px; }
.news-featured { display: grid; overflow: hidden; }
@media (min-width: 1024px) { .news-featured { grid-template-columns: 1fr 1fr; } }
.news-media { position: relative; overflow: hidden; background: var(--gold-50); aspect-ratio: 16 / 10; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card--hover:hover .news-media img { transform: scale(1.05); }
.news-featured .news-media { aspect-ratio: 16 / 10; }
@media (min-width: 1024px) { .news-featured .news-media { aspect-ratio: auto; min-height: 340px; } }
.news-featured__body { display: flex; flex-direction: column; justify-content: center; padding: 28px; }
@media (min-width: 1024px) { .news-featured__body { padding: 40px; } }
.news-grid { margin-top: 24px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { display: flex; flex-direction: column; overflow: hidden; }
.news-card__bar { height: 6px; background: linear-gradient(90deg, var(--gold-400), var(--gold-200)); }
.news-card__inner { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.news-text { font-size: 14px; line-height: 1.6; color: var(--ink-soft); white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.news-featured .news-text { font-size: 16px; -webkit-line-clamp: 6; }
.news-meta { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-muted); }
.news-meta__right { display: inline-flex; align-items: center; gap: 12px; }
.news-meta__tg { font-weight: 600; color: var(--gold-700); }
.news-card:hover .news-meta__tg { color: var(--gold); }
.play-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.9);
  color: var(--gold-700); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lift);
}
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 64px 24px;
}
.empty__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--gold-50); color: var(--gold-600);
  display: flex; align-items: center; justify-content: center; }
.empty h3 { margin-top: 20px; font-size: 22px; }
.empty p { margin-top: 8px; max-width: 28rem; font-size: 14px; color: var(--ink-muted); }

/* ── Stats ── */
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
@media (min-width: 1024px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
@media (min-width: 1024px) { .stat { text-align: left; } }
.stat__num { font-family: var(--font-display); font-size: clamp(36px, 5vw, 48px); font-weight: 700; color: var(--gold-600); }
.stat__label { margin-top: 8px; font-size: 14px; color: var(--ink-muted); }

/* ── About teaser ── */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }
.values { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.value { display: flex; gap: 12px; align-items: flex-start; }
.value__check { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-100); color: var(--gold-700);
  display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.value span { color: var(--ink-soft); }
.brand-card { position: relative; overflow: hidden; padding: 32px; }
@media (min-width: 1024px) { .brand-card { padding: 40px; } }
.brand-card__head { position: relative; display: flex; align-items: center; gap: 20px; }
.brand-card__head img { width: 80px; height: 80px; }
.brand-card__name { font-family: var(--font); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; }
.brand-card__sub { font-size: 14px; color: var(--ink-muted); }
.tricolor { position: relative; margin-top: 32px; height: 6px; border-radius: 999px; overflow: hidden; display: flex; }
.tricolor span { flex: 1; height: 100%; }
.tricolor span:nth-child(1) { background: var(--green); }
.tricolor span:nth-child(2) { background: var(--blue); }
.tricolor span:nth-child(3) { background: var(--red); }
.brand-card__quote { position: relative; margin-top: 32px; font-family: var(--font-display); font-size: 20px; line-height: 1.4; color: var(--ink); }
.brand-card__note { position: relative; margin-top: 32px; font-size: 14px; line-height: 1.6; color: var(--ink-muted); }

/* ── Partners ── */
.marquee { position: relative; margin-top: 48px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partner-plate { flex-shrink: 0; width: 224px; height: 96px; display: flex; align-items: center; justify-content: center;
  padding: 0 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft);
  text-align: center; transition: border-color 0.3s, box-shadow 0.3s; }
.partner-plate:hover { border-color: var(--gold-200); box-shadow: var(--shadow-lift); }
.partner-plate span { font-size: 14px; font-weight: 600; text-transform: uppercase; line-height: 1.2; color: var(--ink-soft); }
.partner-plate img { max-height: 52px; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.3s, opacity 0.3s; }
.partner-plate:hover img { filter: none; opacity: 1; }

/* ── Page header ── */
.page-header { position: relative; overflow: hidden; background: var(--cream); border-bottom: 1px solid var(--line); }
.page-header__inner { position: relative; z-index: 1; padding-block: 56px; }
@media (min-width: 640px) { .page-header__inner { padding-block: 80px; } }
.page-header h1 { font-size: clamp(32px, 5vw, 48px); margin-top: 20px; }
.page-header p { margin-top: 16px; max-width: 42rem; font-size: 18px; line-height: 1.6; color: var(--ink-muted); }

/* ── Calendar ── */
.stack { display: flex; flex-direction: column; gap: 16px; }
.block-title { font-size: clamp(22px, 3vw, 30px); }
.cal-section-note { margin-top: 6px; color: var(--ink-muted); font-size: 14px; line-height: 1.5; }
.events-group + .events-group { margin-top: 56px; }
.event { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
@media (min-width: 640px) { .event { flex-direction: row; align-items: center; } }
.event__date { flex-shrink: 0; width: 80px; height: 64px; border-radius: 12px; background: var(--gold-50); color: var(--gold-700);
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event__day { font-family: var(--font-display); font-size: 17px; line-height: 1.05; font-weight: 700; white-space: nowrap; }
.event__month { margin-top: 2px; font-size: 11px; text-transform: uppercase; }
.event__body { flex: 1; min-width: 0; }
.event__title { margin-top: 8px; font-size: 18px; line-height: 1.35; }
.event__meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--ink-muted); }
.event__meta .mi { display: inline-flex; align-items: center; gap: 6px; }
.event__side { display: flex; align-items: center; gap: 12px; }
@media (min-width: 640px) { .event__side { flex-direction: column; align-items: flex-end; } }

/* Активное мероприятие: подсветка, пока идёт (сегодня в пределах его дат) */
.event--now, .event--now:hover {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 1.5px var(--gold-300), 0 14px 34px rgba(182, 142, 80, 0.22);
  background: linear-gradient(180deg, var(--gold-50), #fff 62%);
}
.event--now .event__date { background: linear-gradient(180deg, #c79a55, #a87f3f); color: #fff; box-shadow: 0 6px 14px rgba(168, 127, 63, 0.3); }
.chip--now { background: linear-gradient(180deg, #c79a55, #a87f3f); color: #fff; box-shadow: none; display: inline-flex; align-items: center; gap: 7px; }
.now-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.now-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: nowPulse 1.6s ease-out infinite; }
@keyframes nowPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .now-dot::after { animation: none; } }

/* ── Broadcasts ── */
.br-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .br-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .br-grid { grid-template-columns: repeat(3, 1fr); } }
.br-card { display: flex; flex-direction: column; overflow: hidden; }
.br-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--ink), #33302a); }
.br-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.br-poster { position: absolute; inset: 0; display: grid; place-items: center; }
.br-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.br-poster__play { position: relative; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, 0.9);
  color: var(--gold-700); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lift); transition: transform 0.3s; }
.br-card:hover .br-poster__play { transform: scale(1.1); }
.br-poster__soon { position: relative; color: rgba(255, 255, 255, 0.85); font-size: 14px; font-weight: 500; }
.br-plat { position: absolute; bottom: 12px; right: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.br-badge { position: absolute; top: 12px; left: 12px; }
.br-badge--live { background: var(--red); color: #fff; }
.br-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.br-card__plat { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); }
.br-card__title { margin-top: 6px; font-size: 18px; line-height: 1.35; }
.br-card__link { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--gold-700); }

/* Заглушка «Скоро будут трансляции» */
.br-empty { max-width: 560px; margin: 12px auto; text-align: center; padding: 48px 32px; border: 1px solid var(--line);
  border-radius: 20px; background: linear-gradient(180deg, #fffdf9, var(--cream)); box-shadow: 0 1px 2px rgba(28,26,23,.03), 0 26px 52px rgba(130,98,53,.07); }
.br-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 86px; height: 86px; border-radius: 50%;
  color: var(--gold-700); background: radial-gradient(circle at 50% 40%, var(--gold-100), #fff); border: 1px solid var(--gold-100); box-shadow: inset 0 0 0 6px rgba(255,255,255,.6); }
.br-empty h2 { margin: 22px 0 0; font-size: clamp(22px, 3vw, 28px); }
.br-empty p { margin: 12px auto 0; max-width: 42rem; color: var(--ink-muted); font-size: 16px; line-height: 1.6; }
.br-empty__btn { margin-top: 24px; }

/* ── Documents ── */
.doc-group + .doc-group { margin-top: 48px; }
.doc-grid { margin-top: 20px; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
.doc-row { display: flex; align-items: center; gap: 16px; padding: 16px; }
@media (min-width: 640px) { .doc-row { padding: 20px; } }
.doc-row__icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.di--pdf { background: rgba(220, 30, 38, 0.1); color: var(--red); }
.di--doc { background: rgba(27, 79, 160, 0.1); color: var(--blue); }
.di--link { background: var(--gold-100); color: var(--gold-600); }
.doc-row__body { flex: 1; min-width: 0; }
.doc-row__title { font-size: 16px; font-weight: 500; line-height: 1.35; }
.doc-row__meta { margin-top: 4px; font-size: 12px; color: var(--ink-muted); }
.doc-row__arrow { flex-shrink: 0; color: var(--gold-600); }
.doc-row__soon { flex-shrink: 0; font-size: 12px; color: rgba(107, 100, 89, 0.6); }

/* ── Footer ── */
.site-footer { position: relative; overflow: hidden; margin-top: 48px; border-top: 1px solid var(--line); background: var(--cream); }
.footer__inner { position: relative; z-index: 1; padding-block: 64px; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand-badge { flex-shrink: 0; width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; }
.footer__brand-badge img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45)); }
.footer__brand-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.footer__brand-name { font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.22; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; }
.footer__brand-name span { color: var(--gold-300); }
.footer__brand-legal { font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, 0.5); max-width: 23rem; }
.footer__desc { margin-top: 18px; max-width: 20rem; font-size: 14px; line-height: 1.6; color: var(--ink-muted); }
.footer__h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-soft); }
.footer__list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__list a, .footer__list li { color: var(--ink-muted); transition: color 0.2s; }
.footer__list a:hover { color: var(--gold-700); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-muted); }
@media (min-width: 640px) { .footer__bottom { flex-direction: row; } }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Helpers ── */
.mt-0 { margin-top: 0; }
.fit { width: fit-content; }

/* Gotham Black для крупных заголовков (фирменный «спортивный» акцент) */
.hero__title, .page-header h1, .section-head__title, .stat__num, .logo__name { font-weight: 900; }
.section-head__title { letter-spacing: -0.015em; }

/* Карусель медиа (Telegram-альбомы) */
.mc__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.mc__slide.active { opacity: 1; }
.mc__slide img { width: 100%; height: 100%; object-fit: cover; }
.mc__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 6px; justify-content: center; z-index: 3; }
.mc__dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: width 0.3s, background 0.3s; }
.mc__dots span.active { background: #fff; width: 18px; }

/* ===================== RICH / BOLD REFRESH ===================== */

/* Золото-градиентная кнопка с «бликом» */
.btn--primary {
  background: linear-gradient(135deg, #cdab72 0%, #b68e50 52%, #9a7740 100%);
  box-shadow: 0 10px 26px rgba(158, 121, 66, 0.32);
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 32%, rgba(255, 255, 255, 0.38) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
}
.btn--primary:hover {
  background: linear-gradient(135deg, #d8b880, #b68e50 60%, #8a6a38);
  transform: translateY(-2px);
}
.btn--primary:hover::after { transform: translateX(130%); }

/* Золотой «фойл» для акцентного текста (НЕ для hero — у него свой анимированный перелив ниже) */
.foil {
  background: linear-gradient(100deg, #9a7740 0%, #cdab72 34%, #f0d9a8 50%, #cdab72 66%, #9a7740 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Крупнее и смелее hero */
.hero__title { font-size: clamp(44px, 8vw, 80px); letter-spacing: -0.03em; }
.hero::before {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -30%;
  width: 52%;
  height: 85%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 142, 80, 0.1), transparent 70%);
  pointer-events: none;
}
.hero__ring { border-color: rgba(182, 142, 80, 0.55); box-shadow: inset 0 0 60px rgba(182, 142, 80, 0.07); }
.hero__disc { box-shadow: var(--shadow-lift), 0 0 80px rgba(182, 142, 80, 0.18); }

/* Богаче карточки: золотой акцент сверху на ховере + глубже тень */
.card--hover { position: relative; }
.card--hover::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold), var(--gold-700));
  border-radius: 18px 18px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.card--hover:hover::before { opacity: 1; }
.card--hover:hover { box-shadow: 0 12px 28px rgba(28, 26, 23, 0.1), 0 30px 64px rgba(130, 98, 53, 0.15); }

.eyebrow::before { background: linear-gradient(90deg, var(--gold-700), var(--gold-300)); width: 36px; }
.section-head__title { font-size: clamp(30px, 4.4vw, 48px); }

/* Тёмная «дорогая» полоса статистики */
.stats-band {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 150% at 0% 0%, #20242e 0%, #14120f 48%, #0f0d0b 100%);
  color: #fff;
}
.stats-band .stat__num {
  color: #e7c995;
}
.stat__num { white-space: nowrap; }

/* Шапка: вордмарк ЗАГЛАВНЫМИ (Gotham, «Дагестана» золотом) */
.logo__text { gap: 2px; line-height: 1.05; }
.logo__name { font-family: var(--font-display); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); line-height: 1.08; }
.logo__sub { margin-top: 0; font-family: var(--font-display); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold-600); line-height: 1.08; }
@media (min-width: 640px) { .logo__name, .logo__sub { font-size: 15px; } }
@media (max-width: 380px) { .logo__name, .logo__sub { font-size: 12px; } }
.stats-band .stat__label { color: rgba(255, 255, 255, 0.66); }

/* Тёмный богатый футер */
.site-footer {
  background: radial-gradient(120% 130% at 100% 0%, #1d212b 0%, #14120f 52%, #100e0c 100%);
  border-top: none;
  margin-top: 0;
}
.stats-band .gold-lines { opacity: 1; mix-blend-mode: screen; }
.stats-band .gold-lines path { stroke: #D2A968; stroke-opacity: 0.5; stroke-width: 1; }
.footer__desc { color: rgba(255, 255, 255, 0.6); }
.footer__h { color: var(--gold-300); }
.footer__list a, .footer__list li { color: rgba(255, 255, 255, 0.62); }
.footer__list a:hover { color: var(--gold-300); }
.footer__bottom { border-top-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.45); }
.footer__legal {
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  color: #fff;
  max-width: 22rem;
}
.footer__dev { color: var(--gold-300); font-weight: 600; }
.footer__dev:hover { color: #fff; }

/* Hero: чистый плавающий логотип с мягким свечением (без круглой подложки) */
.hero__emblem::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(182, 142, 80, 0.20), transparent 62%); filter: blur(16px); z-index: 0; pointer-events: none; }
.hero__badge { position: relative; z-index: 1; }
/* Статистика: центрируем на тёмной полосе */
.stats-band .stat { text-align: center; }
.stats-band .stat__label { margin-top: 10px; }

/* Новости: вертикальный формат медиа + интерактивная карусель */
.news-media { aspect-ratio: 4 / 5; }
.news-card__inner { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.play-badge { pointer-events: none; z-index: 2; }
.mc__open { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.mc__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.85); color: var(--ink); font-size: 22px; line-height: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22); opacity: 0; transition: opacity 0.25s, background 0.2s; padding-bottom: 3px; }
.news-media:hover .mc__arrow { opacity: 1; }
.mc__arrow:hover { background: #fff; }
.mc__prev { left: 8px; }
.mc__next { right: 8px; }
.mc__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 6px; justify-content: center; z-index: 3; }
.mc__dot { width: 7px; height: 7px; border-radius: 999px; border: none; padding: 0; background: rgba(255, 255, 255, 0.55); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); cursor: pointer; transition: width 0.3s, background 0.3s; }
.mc__dot.active { background: #fff; width: 20px; }
@media (hover: none) { .mc__arrow { opacity: 1; } }

/* ── Модалка: видео из Telegram играет прямо на сайте ── */
.mc__open--video { cursor: pointer; }
body.tg-modal-open { overflow: hidden; }
.tgmodal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.tgmodal[hidden] { display: none; }
.tgmodal__backdrop { position: absolute; inset: 0; background: rgba(20, 16, 10, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: tgfade 0.2s ease; }
.tgmodal__dialog { position: relative; width: min(94vw, 468px); max-height: 90vh; display: flex; flex-direction: column; animation: tgpop 0.26s cubic-bezier(0.2, 0.8, 0.3, 1); }
.tgmodal__close { position: absolute; top: -16px; right: -16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: none; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32); transition: transform 0.2s; }
.tgmodal__close:hover { transform: scale(1.08); }
.tgmodal__frame { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; border-radius: 16px; background: #fff; box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45); -webkit-overflow-scrolling: touch; }
.tgmodal__frame iframe { display: block; width: 100%; min-height: 480px; border: 0; }
.tgmodal__spinner { position: absolute; top: 26px; left: 50%; margin-left: -13px; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--gold-100); border-top-color: var(--gold-600); animation: tgspin 0.8s linear infinite; }
.tgmodal.is-loaded .tgmodal__spinner { display: none; }
@keyframes tgfade { from { opacity: 0; } }
@keyframes tgpop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes tgspin { to { transform: rotate(360deg); } }
@media (max-width: 440px) { .tgmodal__close { top: 8px; right: 8px; background: rgba(255, 255, 255, 0.92); } }

/* ── Кнопки документов на странице календаря ── */
.cal-docs-band { padding: 32px 0 0; }
.cal-docs { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--cream), #fff); box-shadow: var(--shadow-soft); }
.cal-docs__label { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.cal-docs__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-left: auto; }
.cal-docs__btn { gap: 9px; }
@media (max-width: 560px) { .cal-docs__btns { margin-left: 0; width: 100%; } .cal-docs__btn { flex: 1; justify-content: center; } }

/* ════════════════════════════════════════════════════════════
   PREMIUM PACK — «дорого и богато»
   ════════════════════════════════════════════════════════════ */

/* Верхняя золотая полоса бренда */
.site-header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, var(--gold-300), var(--gold) 35%, var(--gold-700) 60%, var(--gold) 85%, var(--gold-300));
}

/* Богатые шапки страниц — золотой медальон-печать справа */
.page-header { background: linear-gradient(180deg, #fffdf8, var(--cream) 85%); }
.page-header__decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; }
.page-header__decor > *,
.page-header__decor::before, .page-header__decor::after {
  position: absolute; top: 50%; right: 5%; transform: translate(40%, -50%); border-radius: 50%;
}
.page-header__decor::before { content: ""; width: 432px; height: 432px; border: 1px solid rgba(182, 142, 80, 0.14); }
.page-header__decor::after  { content: ""; width: 300px; height: 300px; border: 1px solid rgba(182, 142, 80, 0.28); }
.page-header__glow { width: 560px; height: 560px; background: radial-gradient(circle, rgba(182, 142, 80, 0.20), transparent 62%); }
.page-header__seal { width: 216px; height: 216px; object-fit: contain; opacity: 0.9; filter: drop-shadow(0 12px 28px rgba(130, 98, 53, 0.22)); }
@media (max-width: 900px) {
  .page-header__decor > *, .page-header__decor::before, .page-header__decor::after { right: 2%; }
  .page-header__seal { width: 140px; height: 140px; }
  .page-header__decor::after { width: 200px; height: 200px; }
  .page-header__decor::before { width: 290px; height: 290px; }
  .page-header__glow { width: 360px; height: 360px; }
}
@media (max-width: 620px) { .page-header__decor { opacity: 0.28; } }

/* Живой золотой блеск на «Дагестана» — ОДИН ровный перелив (концы градиента
   совпадают → шов незаметен, цикл бесшовный, без второго «свечения») */
.hero__title span {
  background-image: linear-gradient(90deg, #9a7740 0%, #c79a55 35%, #f4e2bb 50%, #c79a55 65%, #9a7740 100%);
  background-size: 200% auto; background-position: 0 center;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: goldSheen 6.5s linear infinite;
}
@keyframes goldSheen { to { background-position: 200% center; } }
@media (prefers-reduced-motion: reduce) { .hero__title span { animation: none; } }

/* Золотые «корешки» у заголовков блоков — структурируют страницы */
.block-title { position: relative; padding-left: 20px; }
.block-title::before {
  content: ""; position: absolute; left: 0; top: 0.12em; bottom: 0.12em; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold) 55%, var(--gold-700));
}

/* Больше глубины у карточек */
.card { box-shadow: 0 1px 2px rgba(28, 26, 23, 0.03), 0 8px 18px rgba(28, 26, 23, 0.05), 0 26px 52px rgba(130, 98, 53, 0.08); }

/* Документы: одинокая карточка категории — во всю ширину */
.doc-grid > .reveal:only-child { grid-column: 1 / -1; }

/* Благородное зерно на тёмных секциях */
.stats-band, .site-footer { position: relative; }
.stats-band::after, .site-footer::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stats-band > .container, .site-footer > .footer__inner { position: relative; z-index: 1; }

/* Микро-анимации (премиум-интерактив) */
.hero__emblem { transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.card--hover { transition: transform 0.18s ease-out, box-shadow 0.3s ease, border-color 0.3s ease; transform-style: preserve-3d; }
@media (prefers-reduced-motion: reduce) {
  .hero__emblem, .card--hover { transition: none !important; }
}

/* ════════════════════════════════════════════════════════════
   ГАЛЕРЕЯ + ЛАЙТБОКС
   ════════════════════════════════════════════════════════════ */
.gallery-back { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-700); font-weight: 600; font-size: 14px; }
.gallery-back:hover { color: var(--gold); }

.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 22px; }
.album-card { display: flex; flex-direction: column; overflow: hidden; }
.album-card__cover { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--gold-100), var(--cream)); overflow: hidden; }
.album-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.album-card:hover .album-card__cover img { transform: scale(1.06); }
.album-card__count { position: absolute; right: 10px; bottom: 10px; background: rgba(20, 16, 10, 0.66); color: #fff; font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: 999px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.album-card__body { padding: 15px 18px 18px; }
.album-card__body h3 { font-size: 16px; line-height: 1.3; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 26px; }
.photo-cell { display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--gold-50); cursor: zoom-in; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.photo-cell:hover img { transform: scale(1.07); }

.lightbox { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(10, 8, 6, 0.93); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: tgfade 0.2s ease; }
.lightbox__stage { position: relative; z-index: 1; margin: 0; max-width: 94vw; display: flex; flex-direction: column; align-items: center; animation: tgpop 0.24s cubic-bezier(0.2, 0.8, 0.3, 1); }
.lightbox__img { max-width: 94vw; max-height: 82vh; object-fit: contain; border-radius: 6px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); background: #1a1714; opacity: 0; transform: translateX(var(--lb-from, 0)) scale(0.985); transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1); }
.lightbox__img.in { opacity: 1; transform: translateX(0) scale(1); }
.lightbox.is-loading .lightbox__img { opacity: 0; }
.lightbox__spin { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.22); border-top-color: var(--gold); animation: tgspin 0.8s linear infinite; opacity: 0; transition: opacity 0.2s ease; pointer-events: none; z-index: 2; }
.lightbox.is-loading .lightbox__spin { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lightbox__img { transition: opacity 0.2s ease; transform: none; } }
.lightbox__cap { color: rgba(255, 255, 255, 0.82); font-size: 14px; line-height: 1.5; margin-top: 14px; max-width: 760px; text-align: center; }
.lightbox__close { position: absolute; top: 18px; right: 22px; z-index: 3; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; transition: background 0.2s; }
.lightbox__nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 30px; line-height: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; padding-bottom: 4px; transition: background 0.2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }
.lightbox__count { position: absolute; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.7); font-size: 13px; letter-spacing: 0.04em; }
@media (max-width: 640px) {
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 24px; background: rgba(255, 255, 255, 0.16); }
  .lightbox__prev { left: 6px; } .lightbox__next { right: 6px; }
  .lightbox__close { top: 10px; right: 12px; background: rgba(255, 255, 255, 0.16); }
  .lightbox__img { max-height: 74vh; }
}

/* ── Мобильные фиксы ── */
/* Грид-ячейки не должны раздуваться от «нерасторжимого» контента (1fr = minmax(auto,1fr)). */
.quick__grid > *, .news-grid > *, .br-grid > *, .doc-grid > *, .stats__grid > *, .footer__grid > *, .album-grid > *, .photo-grid > * { min-width: 0; }
/* Длинные ссылки/слова переносятся */
.footer__list a, .doc-row__meta, .news-text, .event__title, .event__meta { overflow-wrap: anywhere; }
/* Длинные кнопки на узких экранах переносятся, а не вылезают */
@media (max-width: 600px) { .btn { white-space: normal; } }
/* Новости: на мобилке не больше 4 (на ПК максимум 6 задаётся в PHP) */
@media (max-width: 639px) { .news-grid > *:nth-child(n+5) { display: none; } }

/* Документы у события — иконки скачивания */
.ev-docs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ev-doc { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--gold-200); background: var(--gold-50); color: var(--gold-700); font-size: 12.5px; font-weight: 600; transition: background 0.2s, border-color 0.2s; }
.ev-doc:hover { background: var(--gold-100); border-color: var(--gold); }
.ev-doc svg { flex-shrink: 0; }

/* ── Логотип: автодвижение на ПК (вращение + парение) ── */
@keyframes floatSpin {
  0%   { transform: translateY(0)     rotate(-8deg); }
  50%  { transform: translateY(-13px) rotate(8deg); }
  100% { transform: translateY(0)     rotate(-8deg); }
}
@media (min-width: 768px) {
  .hero__badge { animation: floatSpin 8s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__badge { animation: float 7s ease-in-out infinite; }
}

/* ── Футер: дизайн без полосок (золотая кромка сверху + эмблема-водяной знак) ── */
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--gold-700), var(--gold) 30%, var(--gold-300) 50%, var(--gold) 70%, var(--gold-700));
}
.footer__seal {
  position: absolute; right: -64px; bottom: -84px; width: 340px; height: 340px;
  z-index: 0; pointer-events: none; opacity: 0.07;
}
.footer__seal img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 700px) {
  .footer__seal { width: 220px; height: 220px; right: -48px; bottom: -40px; opacity: 0.06; }
}

/* ── Фильтры календаря ── */
.cal-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 32px; }
.cal-filter { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cal-filter select {
  font: inherit; font-size: 14.5px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink);
  padding: 11px 38px 11px 15px; border: 1px solid var(--line); border-radius: 11px; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c6c3c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  -webkit-appearance: none; appearance: none; cursor: pointer; min-width: 190px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cal-filter select:hover { border-color: var(--gold-300); }
.cal-filter select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(182, 142, 80, 0.12); }
.cal-reset { padding: 11px 18px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--gold-700); cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.cal-reset:hover { background: var(--gold-50); border-color: var(--gold); }
@media (max-width: 560px) {
  .cal-filter { flex: 1 1 100%; }
  .cal-filter select { width: 100%; min-width: 0; }
  .cal-reset { width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   РУКОВОДСТВО + СУДЕЙСКАЯ КОЛЛЕГИЯ
   ════════════════════════════════════════════════════════════ */
.leaders-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 700px) { .leaders-grid { grid-template-columns: repeat(3, 1fr); } }
.leader-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; }
.leader-card__ava {
  flex-shrink: 0; width: 66px; height: 66px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--gold-700);
  background: radial-gradient(circle at 50% 32%, var(--gold-100), var(--gold-50));
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--gold-200);
}
.leader-card__ava.has-photo { box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--gold-300), 0 8px 18px rgba(130, 98, 53, 0.2); }
.leader-card__ava img { width: 100%; height: 100%; object-fit: cover; }
.leader-card__name { font-weight: 700; font-size: 16px; line-height: 1.25; }
.leader-card__role { font-size: 13.5px; color: var(--ink-muted); margin-top: 4px; }

.ref-table { margin-top: 32px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); }
.ref-row { display: grid; grid-template-columns: 54px 1fr 150px 160px; align-items: center; gap: 14px; padding: 13px 22px; border-top: 1px solid var(--line); }
.ref-row:first-child { border-top: none; }
.ref-row--head { background: var(--gold-50); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold-700); font-weight: 700; }
.ref-num { color: var(--gold-700); font-weight: 700; font-size: 14px; }
.ref-name { font-weight: 600; }
.ref-date { color: var(--ink-muted); font-size: 14px; }
.ref-note { margin-top: 14px; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 640px) {
  .ref-row { grid-template-columns: 34px 1fr auto; gap: 10px; padding: 12px 16px; }
  .ref-col-date { display: none; }
}


/* ── Плашка грантовой поддержки (п. 4.3.17 договора 2026-1-164) ───────────── */
.grant-band {
  padding: 22px 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.grant-band__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.grant-band__logo {
  height: 58px;
  width: auto;
  flex: none;
}
.grant-band__text {
  margin: 0;
  max-width: 520px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  text-align: left;
}
.grant-band__text b { color: var(--ink-soft); font-weight: 600; }
@media (max-width: 640px) {
  .grant-band { padding: 18px 0; }
  .grant-band__logo { height: 46px; }
  .grant-band__text { text-align: center; font-size: 13px; }
}
