/* ===== Главная: стили блоков (hero, баннеры, поддержка, cta, инфраструктура, мероприятия) ===== */

/* Hero */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero-radar { position: absolute; right: -60px; top: 50%; margin-top: -470px; }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 104px; }
.eyebrow {
  display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 32px;
}
.eyebrow::before { content: ''; width: 36px; height: 2px; background: var(--accent); flex: 0 0 auto; }
.h1 {
  font-family: Unbounded, sans-serif; font-weight: 800; font-size: 92px;
  line-height: .98; letter-spacing: -3.5px; margin: 0;
}
.h1-accent {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 2px 22px 10px; margin: 10px 0 10px -6px; border-radius: 18px;
  transform: rotate(-1.5deg);
}
.hero-sub { margin: 44px 0 0; max-width: 520px; font-size: 20px; line-height: 1.5; color: var(--on-dark); }

/* Ticker (бегущая строка) */
.ticker {
  position: relative; border-top: 1px solid var(--line-dark); background: var(--navy-deep);
  padding: 22px 0; overflow: hidden;
}

/* Заголовки секций */
.sec-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 24px; margin-bottom: 36px;
}
.sec-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.sec-desc { margin: 0; max-width: 380px; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* ===== БАННЕРЫ «АКТУАЛЬНО» ===== */
.banners { padding-top: 112px; }
.banners-note { font-size: 15px; color: var(--muted); }
.banners-rows { display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }
.banners-row { display: flex; gap: 16px; flex-wrap: wrap; }
.bt {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--navy);
  min-width: 0; transition: transform .15s, box-shadow .15s;
}
a.bt:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(14,34,64,.4); color: var(--navy); }
.bt img { display: block; width: 100%; height: auto; object-fit: cover; }
.bt .c {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 64px; padding: 0 18px; border-top: 1px solid #EEF1F5;
  font-weight: 700; font-size: 14px; line-height: 1.3;
}
.bt .c span:first-child { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bt .gi {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid #C5CFDC; display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s;
}
a.bt:hover .gi { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== ПОДДЕРЖКА (плитки) ===== */
.support-section { padding-top: 112px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 36px; border-radius: 24px; text-decoration: none; min-height: 340px;
  box-sizing: border-box; transition: transform .2s;
}
.tile:hover { transform: translateY(-4px); }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tile-num { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 64px; line-height: .8; }
.tile-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tile-title { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 26px; line-height: 1.15; }
.tile-desc { margin-top: 12px; font-size: 16px; line-height: 1.5; }
.go {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid currentColor; display: inline-flex; align-items: center;
  justify-content: center; transition: all .2s;
}
.tile:hover .go, .org:hover .go { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== CTA «ДЕВИЗ» ===== */
.cta-section {
  margin-top: 112px; background: var(--navy); color: #fff;
  position: relative; overflow: hidden;
}
.cta-radar { position: absolute; left: -200px; top: 50%; margin-top: -300px; }
.cta-section .wrap { position: relative; padding-top: 104px; padding-bottom: 104px; text-align: right; }
.cta-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 28px; }
.cta-title { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 84px; line-height: 1.02; letter-spacing: -3px; margin: 0; }
.cta-accent { display: inline-block; background: var(--accent); padding: 0 20px 8px; border-radius: 16px; transform: rotate(-1.5deg); }
.cta-muted { color: #6F87A8; }

/* ===== ИНФРАСТРУКТУРА ===== */
.infra-section { padding-top: 112px; }
.infra-flex { display: flex; flex-wrap: wrap; gap: 48px; }
.infra-intro { flex: 1 1 280px; }
.infra-intro .h2 { font-size: 34px; line-height: 1.15; letter-spacing: -1px; }
.infra-intro p { margin: 20px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 300px; }
.infra-grid {
  flex: 999 1 640px; min-width: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
}
.org {
  display: flex; flex-direction: column; gap: 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  text-decoration: none; color: var(--navy); transition: border-color .2s;
}
.org:hover { border-color: var(--navy); }
.org-logo { height: 88px; display: flex; align-items: center; }
.org-logo img { max-height: 80px; max-width: 220px; display: block; }
.org-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-top: 1px solid #EEF1F5; padding-top: 18px; }
.org-name { font-weight: 700; font-size: 16px; line-height: 1.4; }

/* ===== МЕРОПРИЯТИЯ ===== */
.events-section { padding-top: 112px; padding-bottom: 112px; }
.events-flex { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.events-list { flex: 999 1 560px; min-width: 0; }
.ev {
  display: flex; gap: 28px; padding: 28px 0; border-top: 1px solid #D5DCE6;
  text-decoration: none; color: var(--navy);
}
.ev-date { flex: 0 0 96px; display: flex; flex-direction: column; align-items: flex-start; }
.ev-day { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 52px; line-height: .9; color: var(--accent); }
.ev-month { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-top: 8px; }
.ev-year { font-size: 13px; color: var(--muted); }
.ev-content { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ev-title { font-family: Unbounded, sans-serif; font-weight: 500; font-size: 20px; line-height: 1.3; transition: color .2s; }
.ev:hover .ev-title { color: var(--accent); }
.ev-text {
  font-size: 15px; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.events-all { border-top: 1px solid #D5DCE6; padding-top: 32px; }

/* ===== КАЛЕНДАРЬ ===== */
.cal {
  flex: 1 1 340px; background: var(--navy); color: #fff; border-radius: 24px;
  padding: 28px; box-sizing: border-box;
}
.cal a { color: #fff; text-decoration: none; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 8px; }
.cal-title { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 20px; text-align: center; flex: 1; min-width: 0; line-height: 1.1; }
.cal-month { display: block; text-transform: uppercase; white-space: nowrap; }
.cal-year { display: block; color: var(--on-dark-muted); font-weight: 400; font-size: 18px; }
.arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor;
  background: transparent; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: inherit; transition: all .2s; flex-shrink: 0;
}
.arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-wd { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 8px 0; }
.cal-wd.weekend { color: #FF8A70; }
.cal-wd.weekday { color: var(--on-dark-muted); }
.cal-day {
  height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; font-weight: 700; font-size: 15px;
}
.cal-day.today { background: var(--accent); color: #fff; }
.cal-day a { color: inherit; }
.cal-grid .cal-day:nth-child(7n), .cal-grid .cal-day:nth-child(7n-1) { color: #FF8A70; }
.cal-grid .cal-day.today { color: #fff; }
.cal-links { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.cal-link { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; min-height: 44px; }

/* ===== Анимации (радар, бегущая строка) ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinr { to { transform: rotate(-360deg); } }
@keyframes pulse { 0% { r: 8; opacity: .9; } 100% { r: 44; opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
.spin { transform-origin: 450px 450px; animation: spin 120s linear infinite; }
.spinr { transform-origin: 450px 450px; animation: spinr 80s linear infinite; }
.spinr-cal { transform-origin: 300px 300px; animation: spinr 80s linear infinite; }
.pulse { animation: pulse 2.4s ease-out infinite; }
.pulse2 { animation: pulse 2.4s ease-out 1.2s infinite; }
.mq { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.mq:hover { animation-play-state: paused; }
.mq a {
  display: inline-flex; align-items: center; gap: 28px; padding: 0 28px;
  color: #fff; text-decoration: none; font-family: Unbounded, sans-serif;
  font-size: 18px; font-weight: 500; white-space: nowrap;
}
.mq a:hover { color: var(--accent-light); }

/* ===== Слабовидящие ===== */
.visually-impaired { font-size: 18px !important; }
.visually-impaired .h1 { font-size: 48px !important; }
.visually-impaired .h2 { font-size: 28px !important; }

/* ===== Адаптив ===== */
@media (prefers-reduced-motion: reduce) {
  .spin, .spinr, .spinr-cal, .pulse, .pulse2, .mq { animation: none; }
}

@media (max-width: 1239px) {
  .h1 { font-size: 64px; letter-spacing: -2px; }
  .cta-title { font-size: 60px; letter-spacing: -2px; }
  .banners-row { gap: 12px; }
}

@media (max-width: 767px) {
  .hide-m { display: none !important; }
  .h1 { font-size: 40px !important; letter-spacing: -1px !important; }
  .cta-title { font-size: 40px !important; letter-spacing: -1px !important; }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; }
  .banners, .support-section, .infra-section, .events-section { padding-top: 64px; }
  .events-section { padding-bottom: 64px; }
  .cta-section { margin-top: 64px; }
  .cta-section .wrap { padding-top: 56px; padding-bottom: 56px; text-align: left; }
  .banners-rows { display: block; }
  .banners-row {
    display: flex; gap: 10px; overflow-x: auto; flex-wrap: nowrap;
    scroll-snap-type: x mandatory; scroll-padding: 0 20px;
    padding: 0 20px 6px; margin: 0 -20px; scrollbar-width: none;
  }
  .banners-row::-webkit-scrollbar { display: none; }
  .bt { flex: 0 0 auto; scroll-snap-align: start; border-radius: 18px; }
  .bt img { height: 170px; width: auto; }
  .bt .c { height: 60px; padding: 0 14px; font-size: 13px; }
  .bt .gi { width: 28px; height: 28px; flex-basis: 28px; }
  .tile { gap: 28px; padding: 24px; border-radius: 22px; min-height: 210px; }
  .tile-num { font-size: 44px; }
  .tile-title { font-size: 21px; }
  .go { width: 40px; height: 40px; flex-basis: 40px; }
  .org {
    flex-direction: row; align-items: center; gap: 16px;
    border-radius: 18px; padding: 14px 16px;
  }
  .org-logo { height: 56px; flex: 0 0 76px; justify-content: center; }
  .org-logo img { max-width: 76px; max-height: 56px; }
  .org-bottom { border-top: 0; padding-top: 0; flex: 1; min-width: 0; }
  .org-name { font-size: 14px; }
  .ev { gap: 16px; padding: 20px 0; }
  .ev-day { font-size: 36px; }
  .ev-date { flex-basis: 64px; }
  .ev-title { font-size: 17px; }
}
