/* ===== Списки записей: новости (макет news / news-mobile) ===== */

/* Заголовок */
.ls-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.ls-hero .wrap { position: relative; padding-top: 40px; padding-bottom: 150px; }
.ls-hero-radar { position: absolute; right: -120px; top: -260px; }
.ls-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 48px; }
.ls-h1 { margin: 0; font-family: Unbounded, sans-serif; font-weight: 800; font-size: 104px; line-height: .95; letter-spacing: -4px; }
.ls-sub { margin: 0; max-width: 440px; font-size: 18px; line-height: 1.55; color: var(--on-dark); }
.ls-sub b { color: #fff; font-weight: 700; }

/* Главная запись страницы, наезжает на заголовок */
.ls-feat-wrap { position: relative; margin-top: -96px; }
.feat { display: flex; flex-wrap: wrap; background: #fff; border-radius: 28px; overflow: hidden; text-decoration: none; color: var(--text); box-shadow: 0 30px 60px -36px rgba(14,34,64,.4); }
.feat:hover { color: var(--text); }
.feat:hover .ttl, .lc:hover .ttl { color: var(--accent); }
.feat:hover img, .lc:hover img { transform: scale(1.04); }
.feat-ph { flex: 999 1 560px; min-height: 420px; position: relative; overflow: hidden; background: var(--line); }
.feat-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feat-tag { position: absolute; left: 24px; top: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.feat-body { flex: 1 1 380px; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.feat-date { display: flex; align-items: baseline; gap: 12px; }
.feat-day { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 56px; line-height: .9; color: var(--accent); }
.feat-month { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.feat-ttl { margin: 28px 0 0; font-family: Unbounded, sans-serif; font-weight: 700; font-size: 30px; line-height: 1.2; letter-spacing: -.6px; overflow-wrap: anywhere; }
.feat-text { margin: 18px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.more { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; color: var(--accent); }
.ttl { transition: color .2s; }

/* Лента и колонка «Свежие записи» */
.ls-main { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 64px; padding-bottom: 112px; }
.ls-list { flex: 999 1 640px; min-width: 0; }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 48px; }
.lc { display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--text); border: 1px solid var(--line); }
.lc:hover { border-color: var(--navy); color: var(--text); }
.lc-ph { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.lc-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.lc-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.lc-date { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.lc-ttl { margin: 0; font-family: Unbounded, sans-serif; font-weight: 600; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.lc-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.ls-recent { flex: 1 1 320px; background: var(--navy); color: #fff; border-radius: 24px; padding: 28px 28px 12px; }
.ls-recent-title { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 12px; }
.rec { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid #22406A; color: #fff; text-decoration: none; }
.rec:hover { color: #fff; }
.rec:hover .rt { color: var(--accent-light); }
.rec-date { flex: 0 0 44px; display: flex; flex-direction: column; align-items: flex-start; }
.rec-day { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 20px; line-height: 1; color: var(--accent-light); }
.rec-mon { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 4px; }
.rt { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pager-nums { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pg { box-sizing: border-box; min-width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; text-decoration: none; color: var(--text); border: 1px solid var(--line); background: #fff; padding: 0 10px; }
a.pg:hover { border-color: var(--navy); color: var(--text); }
.pg.cur { background: var(--navy); border-color: var(--navy); color: #fff; }
.pg-off { opacity: .4; }
.pg-gap { padding: 0 6px; color: #93A3BA; font-weight: 800; }
.pager-next { height: 48px; border-radius: 14px; padding: 0 20px; gap: 10px; }

@media (prefers-reduced-motion: reduce) { .feat-ph img, .lc-ph img { transition: none; } }

@media (max-width: 1239px) {
  .ls-h1 { font-size: 80px; letter-spacing: -3px; }
}
@media (max-width: 900px) {
  .ls-hero-radar { display: none; }
  .ls-h1 { font-size: 56px; letter-spacing: -2px; }
}

/* Мобильная (макет news-mobile) */
@media (max-width: 767px) {
  .ls-hero .wrap { padding-top: 22px; padding-bottom: 96px; }
  .ls-hero-radar { display: block; width: 320px; height: 320px; right: -140px; top: -120px; }
  .ls-head { display: block; margin-top: 28px; }
  .ls-h1 { font-size: 48px; line-height: 1.04; letter-spacing: -1.4px; }
  .ls-sub { margin-top: 18px; font-size: 16px; }

  .ls-feat-wrap { margin-top: -64px; }
  .feat { display: block; border-radius: 20px; box-shadow: 0 24px 48px -28px rgba(14,34,64,.45); }
  .feat:hover img, .lc:hover img { transform: none; }
  .feat-ph { min-height: 0; aspect-ratio: 16 / 11; }
  .feat-tag { left: 14px; top: 14px; font-size: 11px; letter-spacing: 1.2px; padding: 6px 12px; }
  .feat-body { padding: 22px 20px 24px; gap: 14px; }
  .feat-day { font-size: 36px; }
  .feat-month { font-size: 12px; font-weight: 800; }
  .feat-ttl { margin-top: 14px; font-size: 21px; line-height: 1.25; letter-spacing: -.4px; }
  .feat-text { margin-top: 14px; font-size: 15px; -webkit-line-clamp: 4; }

  .ls-main { display: block; padding-top: 16px; padding-bottom: 56px; }
  .ls-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
  .lc { border-radius: 20px; }
  .lc-ph { aspect-ratio: 16 / 9; }
  .lc-body { padding: 18px 20px 22px; gap: 10px; }
  .lc-date { font-size: 12px; }
  .lc-ttl { font-size: 17px; }
  .lc-text { font-size: 14px; }

  .ls-recent { margin-top: 40px; border-radius: 22px; padding: 22px 20px 8px; }
  .ls-recent-title { font-size: 12px; letter-spacing: 1.8px; margin-bottom: 8px; }
  .rec { gap: 14px; padding: 14px 0; }
  .rec-date { flex-basis: 40px; }
  .rec-day { font-size: 18px; }
  .rec-mon { font-size: 10px; }

  .pager { display: block; }
  .pager-nums { flex-wrap: nowrap; justify-content: space-between; gap: 6px; }
  .pg { min-width: 44px; height: 44px; border-radius: 12px; font-size: 14px; padding: 0 8px; }
  .pg-gap { padding: 0; }
  .pager-next { display: flex; width: 100%; margin-top: 10px; border-radius: 999px; }
}
@media (max-width: 379px) {
  .pager-nums { gap: 4px; }
  .pg { min-width: 38px; padding: 0 4px; font-size: 13px; }
}

/* ===== Мероприятия и конкурсы (макет events / events-mobile) ===== */
.ev-hero .wrap { padding-bottom: 88px; }
.ev-hero-radar { right: -240px; top: -300px; }
.ev-h1 { font-size: 96px; }
.ev-intro { max-width: 440px; }
.ev-sub { margin: 0; font-family: Unbounded, sans-serif; font-weight: 500; font-size: 20px; line-height: 1.45; }
.tag-live { display: inline-block; background: var(--accent); padding: 0 10px 3px; border-radius: 8px; transform: rotate(-1.5deg); }
.tag-online { display: inline-block; border: 1.5px solid var(--accent-light); color: var(--accent-light); padding: 0 10px 2px; border-radius: 8px; }
.ev-note { margin: 16px 0 0; font-size: 16px; color: var(--on-dark-muted); }

.ev-main { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 72px; padding-bottom: 112px; }
.ev-list { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.ev-main-wide .ev-list { flex-basis: 100%; }

.ev-year-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.ev-yr { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 72px; line-height: 1; letter-spacing: -3px; color: #C5CFDC; }
.ev-year-line { flex: 1; height: 1px; background: #C5CFDC; }
.ev-year-count { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.ev-rows { display: flex; flex-direction: column; gap: 20px; }

.ev { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--text); }
.ev:hover { border-color: var(--navy); color: var(--text); }
.ev:hover .ttl { color: var(--accent); }
.ev:hover img { transform: scale(1.04); }
.ev-ph { flex: 1 1 260px; min-height: 200px; position: relative; overflow: hidden; background: var(--navy); }
.ev-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ev-badge { display: none; }
.ev-body { flex: 999 1 360px; min-width: 0; padding: 28px 32px; display: flex; gap: 28px; }
.ev-date { flex: 0 0 72px; display: flex; flex-direction: column; align-items: flex-start; border-right: 1px solid #EEF1F5; padding-right: 20px; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.ev-date b { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 44px; line-height: .9; letter-spacing: 0; color: var(--accent); margin-bottom: 8px; }
.ev-txt { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ev-tag { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: #E4E9F0; color: var(--text); }
.ev-tag-new { background: #FDECE8; color: #B8331D; }
.ev-ttl { margin: 0; font-family: Unbounded, sans-serif; font-weight: 600; font-size: 19px; line-height: 1.32; overflow-wrap: anywhere; }
.ev-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Календарь */
.ev-side { flex: 1 1 340px; order: 2; display: flex; flex-direction: column; gap: 16px; }
.ev-cal.acc { background: var(--navy); color: #fff; border: 0; border-radius: 24px; padding: 28px; }
.ev-cal a { color: #fff; text-decoration: none; }
.ev-cal > .ev-cal-btn { display: none; }
.ev-cal > .acc-panel { display: block; padding: 0; }
.ev-cal-label { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 18px; }
.ev-cal-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 20px; }
.ev-cal-title { flex: 1; min-width: 0; text-align: center; font-family: Unbounded, sans-serif; font-weight: 700; font-size: 22px; line-height: 1.15; }
.ev-cal-title span { color: var(--on-dark-muted); font-weight: 400; }
.ev-cal .arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; }
.ev-cal .arrow:hover { background: var(--accent); border-color: var(--accent); }
.ev-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.ev-wd { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 8px 0; color: var(--on-dark-muted); }
.ev-wd.we, .day.we { color: #FF8A70; }
.day { height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 700; font-size: 15px; color: #fff; }
.day.other { color: #3E5A82; }
.day.today { box-shadow: inset 0 0 0 1.5px #fff; }
.ev-cal a.day.has { background: var(--accent); color: #fff; }
.ev-cal a.day.has:hover { background: #B8331D; }
.ev-legend { display: flex; gap: 16px; margin-top: 18px; font-size: 12px; color: var(--on-dark-muted); }
.ev-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ev-legend i { width: 12px; height: 12px; border-radius: 4px; box-sizing: border-box; }
.lg-has { background: var(--accent); }
.lg-today { border: 1.5px solid #fff; }

@media (prefers-reduced-motion: reduce) { .ev-ph img { transition: none; } }
@media (max-width: 1239px) { .ev-h1 { font-size: 72px; } }
@media (max-width: 900px) { .ev-h1 { font-size: 48px; letter-spacing: -1.5px; } .ev-yr { font-size: 56px; } }

/* Мобильная (макет events-mobile) */
@media (max-width: 767px) {
  .ev-hero .wrap { padding-bottom: 80px; }
  .ev-h1 { font-size: 40px; }
  .ev-intro { margin-top: 18px; }
  .ev-sub { font-size: 16px; line-height: 1.5; }
  .tag-live, .tag-online { padding: 0 8px 2px; border-radius: 7px; }
  .ev-note { margin-top: 10px; font-size: 14px; }

  .ev-main { display: block; padding-top: 0; padding-bottom: 56px; }
  .ev-main-wide { padding-top: 36px; }
  .ev-main-wide .ev-list { padding-top: 0; }
  .ev-side { position: relative; margin-top: -40px; gap: 0; }
  .ev-cal.acc { background: var(--navy-card); border: 1px solid var(--line-dark); border-radius: 22px; padding: 0; box-shadow: 0 24px 48px -28px rgba(10,26,51,.6); }
  .ev-cal > .ev-cal-btn { display: flex; min-height: 64px; padding: 0 18px; color: #fff; font-family: Manrope, sans-serif; font-size: 13px; }
  .ev-cal > .ev-cal-btn:hover { color: #fff; }
  .ev-cal-btn-txt { display: inline-flex; align-items: center; gap: 12px; }
  .ev-cal-btn-txt b { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 16px; }
  .ev-cal-btn-txt span { color: var(--on-dark-muted); font-weight: 500; }
  .ev-cal > .ev-cal-btn .pm { flex-basis: 32px; width: 32px; height: 32px; border-color: #2B4A75; color: #fff; }
  .ev-cal > .acc-panel { display: none; padding: 0 16px 16px; }
  .ev-cal.open > .acc-panel { display: block; }
  .ev-cal-label { display: none; }
  .ev-cal-head { margin-bottom: 12px; padding-top: 12px; border-top: 1px solid var(--line-dark); }
  .ev-cal-title { font-size: 18px; }
  .ev-cal .arrow { width: 40px; height: 40px; border-color: #2B4A75; }
  .ev-cal-grid { gap: 3px; }
  .ev-wd { font-size: 10px; letter-spacing: .5px; padding: 6px 0; }
  .day { border-radius: 10px; font-size: 14px; }
  .ev-legend { margin-top: 14px; }

  .ev-list { padding-top: 36px; gap: 40px; }
  .ev-year-head { gap: 14px; margin-bottom: 16px; }
  .ev-yr { font-size: 44px; letter-spacing: -1.5px; }
  .ev-year-count { font-size: 11px; letter-spacing: 1.2px; }
  .ev-rows { gap: 14px; }
  .ev { flex-direction: column; flex-wrap: nowrap; border-radius: 20px; }
  .ev:hover img { transform: none; }
  .ev-ph { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .ev-badge { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: 8px 6px; border-radius: 14px; background: #fff; color: var(--text); font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
  .ev-badge b { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: 0; color: var(--accent); margin-bottom: 4px; }
  .ev-body { flex: none; padding: 16px 18px 20px; }
  .ev-date { display: none; }
  .ev-txt { gap: 10px; }
  .ev-tag { font-size: 11px; padding: 5px 10px; }
  .ev-ttl { font-size: 16px; }
  .ev-text { font-size: 14px; -webkit-line-clamp: 3; }
}

.ev-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 40px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.ev-empty p { margin: 0; font-family: Unbounded, sans-serif; font-weight: 600; font-size: 20px; line-height: 1.35; }
@media (max-width: 767px) {
  .ev-empty { display: block; padding: 24px 20px; border-radius: 20px; }
  .ev-empty p { font-size: 16px; margin-bottom: 16px; }
  .ev-empty .pill { width: 100%; }
}
