/* ==========================================================================
   «Орлёнок-Дагестан» — тема оформления
   Палитра по концепции: синий/голубой (доверие, небо) + красный/жёлтый
   (энергия, солнце) на светлом фоне.
   ========================================================================== */

:root {
  --od-blue: #0b5fd8;
  --od-blue-dark: #093a86;
  --od-blue-deep: #06265c;
  --od-sky: #37a9f0;
  --od-sky-soft: #e3f1ff;
  --od-red: #e2273f;
  --od-red-dark: #b81830;
  --od-sun: #ffc42e;
  --od-sun-soft: #fff4d6;
  --od-ink: #14213d;
  --od-muted: #5c6b8a;
  --od-line: #e2e9f4;
  --od-bg: #eef3fb;
  --od-radius: 18px;
  --od-radius-sm: 12px;
  --od-shadow: 0 10px 30px rgba(9, 40, 105, .08);
  --od-shadow-lg: 0 18px 50px rgba(9, 40, 105, .16);
  --od-btn-shadow: 0 2px 5px rgba(11, 95, 216, .16);
  --od-btn-shadow-hover: 0 3px 8px rgba(11, 95, 216, .22);
  --od-btn-shadow-red: 0 2px 5px rgba(226, 39, 63, .16);
  --od-btn-shadow-red-hover: 0 3px 8px rgba(226, 39, 63, .22);
  --od-btn-shadow-sun: 0 2px 5px rgba(255, 166, 46, .18);
  --od-btn-shadow-sun-hover: 0 3px 8px rgba(255, 166, 46, .24);
  --od-box-width: 1280px;
  --od-font: "Nunito", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --od-hero-font: "Marck Script", "Segoe Script", "Brush Script MT", cursive;
  --od-nav-bg: linear-gradient(180deg, #0c4eb5 0%, #0b5fd8 100%);
  --od-nav-border: rgba(255, 255, 255, .1);
  --od-nav-link-color: rgba(255, 255, 255, .92);
  --od-nav-link-hover-bg: rgba(255, 255, 255, .12);
  --od-nav-glass-bg: rgba(11, 95, 216, .78);
}

/* --------------------------------------------------------- базовые стили */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  height: 100%;
}

body {
  font-family: var(--od-font);
  color: var(--od-ink);
  background-color: #fff;
  min-height: 100%;
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4 { font-weight: 800; letter-spacing: -.015em; line-height: 1.22; }

a { text-decoration: none; color: var(--od-blue); }
a:hover { color: var(--od-red); }

::selection { background: var(--od-sun); color: var(--od-ink); }

/* ------------------------------------------------------- основной контейнер */
.site-box {
  width: 100%;
  max-width: var(--od-box-width);
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.section { padding: 46px 0; }
.section-tight { padding: 30px 0; }
.section-alt { background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%); }

/* заголовок секции */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 900;
}

.section-sub { color: var(--od-muted); margin: 6px 0 0; font-size: .98rem; }
.section-head .btn { white-space: nowrap; flex: 0 0 auto; }

/* --------------------------------------------------------------- кнопки */
.btn { font-weight: 800; border-radius: 999px; padding: .62rem 1.35rem; transition: .18s ease; }
.btn-lg { padding: .85rem 1.9rem; font-size: 1.05rem; }
.btn-sm { padding: .38rem .95rem; font-size: .86rem; }

.btn-od {
  background: linear-gradient(135deg, var(--od-blue) 0%, var(--od-sky) 100%);
  color: #fff;
  box-shadow: var(--od-btn-shadow);
}
.btn-od:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--od-btn-shadow-hover); }

.btn-od-red {
  background: linear-gradient(135deg, var(--od-red) 0%, #ff6a3d 100%);
  color: #fff;
  box-shadow: var(--od-btn-shadow-red);
}
.btn-od-red:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--od-btn-shadow-red-hover); }

.btn-od-sun {
  background: linear-gradient(135deg, var(--od-sun) 0%, #ffa62e 100%);
  color: #3d2600;
  box-shadow: var(--od-btn-shadow-sun);
}
.btn-od-sun:hover { color: #3d2600; transform: translateY(-1px); box-shadow: var(--od-btn-shadow-sun-hover); }

.btn-od-outline { border: 2px solid var(--od-blue); color: var(--od-blue); background: #fff; box-shadow: none; }
.btn-od-outline:hover { background: var(--od-blue); color: #fff; box-shadow: var(--od-btn-shadow); }

.btn-ghost-light { border: 2px solid rgba(255, 255, 255, .75); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--od-blue-dark); }

/* ---------------------------------------------------------------- бейджи */
.od-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: var(--od-sky-soft);
  color: var(--od-blue-dark);
}
.od-badge-red { background: #ffe5e9; color: var(--od-red-dark); }
.od-badge-sun { background: var(--od-sun-soft); color: #8a5a00; }
.od-badge-green { background: #e0f7ec; color: #0d7a4b; }

/* ============================================================ ВЕРХНЯЯ ПАНЕЛЬ */
.topbar {
  background: var(--od-nav-bg);
  color: #fff;
  font-size: .875rem;
  border-bottom: 1px solid var(--od-nav-border);
}

.topbar .topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem;
  align-items: center;
  min-width: 0;
}

.topbar-leading {
  min-width: 0;
  flex: 1 1 auto;
}

.topbar-row {
  position: relative;
}

.topbar-logo-mobile {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1;
}

.topbar-logo-mobile img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.nav-burger {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-burger:hover {
  background: rgba(255, 255, 255, .28);
  color: #fff;
  transform: translateY(-1px);
}

.nav-burger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.topbar .topbar-links a,
.navbar-od .navbar-nav > .nav-item > .nav-link,
.od-mobile-drawer .navbar-nav > .nav-item > .nav-link {
  display: inline-flex;
  align-items: center;
  color: var(--od-nav-link-color);
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .01em;
  line-height: 1.2;
  padding: .5rem .8rem;
  border-radius: 10px;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.topbar .topbar-links a:hover,
.navbar-od .navbar-nav > .nav-item > .nav-link:hover,
.navbar-od .navbar-nav > .nav-item.show > .nav-link,
.od-mobile-drawer .navbar-nav > .nav-item > .nav-link:hover,
.od-mobile-drawer .navbar-nav > .nav-item.show > .nav-link {
  background: var(--od-nav-link-hover-bg);
  color: #fff;
}

.navbar-od .navbar-nav > .nav-item > .nav-link.active {
  color: #fff;
  background: var(--od-nav-link-hover-bg);
}

.od-mobile-drawer {
  width: 50%;
  max-width: 50%;
  background: var(--od-nav-glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--od-nav-border);
  border-radius: 0 var(--od-radius) var(--od-radius) 0;
  overflow: hidden;
  color: #fff;
  z-index: 1045;
  display: flex;
  flex-direction: column;
}

.od-mobile-drawer .offcanvas-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.od-mobile-drawer .offcanvas-header {
  padding: 1rem 1rem .5rem;
}

.od-drawer-header {
  position: relative;
  justify-content: center;
  align-items: center;
  padding: 1.35rem 3rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.od-drawer-header .btn-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

.od-drawer-brand {
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.od-drawer-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.od-drawer-service-links {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.od-drawer-service-links a {
  display: block;
  color: var(--od-nav-link-color);
  font-weight: 700;
  font-size: .875rem;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  padding: .5rem .8rem;
  border-radius: 10px;
  transition: color .2s ease, background .2s ease;
}

.od-drawer-service-links a:hover {
  background: var(--od-nav-link-hover-bg);
  color: #fff;
}

.od-mobile-drawer .navbar-nav {
  flex-direction: column;
  align-items: stretch;
  gap: .15rem;
}

.od-mobile-drawer .navbar-nav > .nav-item > .nav-link {
  width: 100%;
}

.od-mobile-drawer .navbar-nav > .nav-item > .nav-link.active {
  color: #fff;
  background: var(--od-nav-link-hover-bg);
}

.od-drawer-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.od-drawer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar .divider { width: 1px; height: 18px; background: rgba(255, 255, 255, .3); }

.soc-dot {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  transition: .18s ease;
  flex: 0 0 auto;
}
.soc-dot-icon {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.soc-dot-svg,
.soc-dot .soc-dot-svg {
  filter: none;
  flex: 0 0 auto;
  overflow: visible;
}
.soc-dot .bi {
  font-size: 0.95rem;
  line-height: 1;
}
.soc-dot:hover { background: var(--od-sun); color: var(--od-blue-deep); transform: translateY(-2px); }
.soc-dot:hover .soc-dot-icon { filter: brightness(0) saturate(100%); }
.soc-dot:hover .soc-dot-svg { filter: none; }

.topbar-actions { margin-left: auto; }
.topbar-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 4px;
  border-right: 1px solid rgba(255, 255, 255, .18);
  margin-right: 2px;
}

.tool-dot {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.tool-dot:hover {
  background: rgba(255, 255, 255, .28);
  color: #fff;
  transform: translateY(-1px);
}

.tool-dot.active {
  background: var(--od-sun);
  color: var(--od-blue-deep);
}

.tool-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ==================================================================== ШАПКА */
.header-main { background: #fff; padding: 16px 0; }

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { width: 92px; height: 92px; flex: 0 0 auto; object-fit: contain; }
.brand-wordmark {
  height: clamp(52px, 7vw, 76px);
  width: auto;
  max-width: min(100%, 420px);
  object-fit: contain;
  display: block;
}
.footer-logo {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
  background: transparent;
}
.brand-name {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 900;
  line-height: 1;
  margin: 0;
  color: var(--od-blue-dark);
  letter-spacing: -.02em;
}
.brand-name .accent { color: var(--od-red); }
.brand-tagline {
  margin: 4px 0 0;
  font-size: .82rem;
  font-weight: 700;
  color: var(--od-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.625rem;
  padding: .42rem .9rem .42rem .45rem;
  border-radius: 999px;
  border: 1.5px solid var(--od-line);
  font-weight: 800;
  font-size: .86rem;
  color: var(--od-ink);
  background: #fff;
  transition: border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
  box-shadow: none;
}

/* на мобилке — в один ряд; на десктопе — столбик одинаковой ширины */
.header-main .header-actions {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  gap: 8px;
}

.header-main .header-actions .quick-link {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  font-size: .78rem;
  padding: .42rem .55rem .42rem .4rem;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .header-main .header-actions {
    flex-direction: column;
    align-items: stretch;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
  }

  .header-main .header-actions .quick-link {
    width: 100%;
    flex: 0 0 auto;
    font-size: .86rem;
    padding: .42rem .9rem .42rem .45rem;
  }
}

.quick-link-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--od-sky-soft);
  color: var(--od-blue);
  line-height: 0;
}

.quick-link-icon i {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-size: .88rem;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.quick-link-icon i::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}

.quick-link:hover {
  border-color: rgba(11, 95, 216, .28);
  color: var(--od-blue-dark);
  transform: translateY(-1px);
  box-shadow: none;
}

.quick-link:hover .quick-link-icon {
  background: #d9ebff;
  color: var(--od-blue-dark);
}

.quick-link.is-red .quick-link-icon {
  background: #fff0f2;
  color: var(--od-red);
}

.quick-link.is-red:hover {
  border-color: rgba(226, 39, 63, .28);
  color: var(--od-red-dark);
  box-shadow: none;
}

.quick-link.is-red:hover .quick-link-icon {
  background: #ffe3e7;
  color: var(--od-red-dark);
}

.search-od .input-group {
  border-radius: 999px;
  border: 2px solid var(--od-line);
  background: #fff;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.search-od .form-control {
  border: 0;
  border-radius: 0;
  padding-left: 1.05rem;
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}

.search-od .form-control:focus,
.search-od .form-control:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}

.search-od .btn {
  border: 0;
  border-radius: 0;
  padding-inline: 1.1rem;
  box-shadow: none;
}

.search-od .btn:hover,
.search-od .btn:focus,
.search-od .btn:focus-visible {
  outline: none;
  box-shadow: none;
  transform: none;
}

.search-od:focus-within .input-group {
  border-color: var(--od-sky);
  box-shadow: 0 0 0 3px rgba(55, 169, 240, .16);
}

/* ================================================================= НАВИГАЦИЯ */
.navbar-od {
  background: var(--od-nav-bg);
  padding: .5rem 0;
  z-index: 1020;
  border-bottom: 1px solid var(--od-nav-border);
  box-shadow: none;
}
.navbar-od .navbar-nav {
  align-items: center;
  gap: .15rem;
}
.navbar-od .navbar-nav > .nav-item > .nav-link {
  position: relative;
}
.navbar-od .dropdown-toggle::after {
  margin-left: .32em;
  vertical-align: .12em;
  opacity: .7;
  transition: transform .2s ease, opacity .2s ease;
}
.navbar-od .nav-item.show .dropdown-toggle::after {
  transform: rotate(180deg);
  opacity: 1;
}
.navbar-od .nav-cta {
  border-radius: 999px;
  padding: .48rem 1rem;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .01em;
  border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(180deg, #ffe082 0%, var(--od-sun) 55%, #f5b020 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  white-space: nowrap;
}
.navbar-od .nav-cta:hover {
  color: #3d2600;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .14);
}
.navbar-od .nav-cta i { font-size: .9em; opacity: .85; }

.navbar-od .navbar-toggler { border: 0; color: #fff; font-size: 1.5rem; padding: .55rem .8rem; }
.navbar-od .navbar-toggler:focus { box-shadow: none; }

.navbar-od .dropdown-menu {
  border: 0;
  border-radius: 0 0 var(--od-radius-sm) var(--od-radius-sm);
  box-shadow: var(--od-shadow-lg);
  padding: .6rem;
  margin-top: 0;
}
.navbar-od .dropdown-item {
  border-radius: 10px;
  font-weight: 700;
  font-size: .92rem;
  padding: .5rem .75rem;
  color: var(--od-ink);
  white-space: normal;
}
.navbar-od .dropdown-item:hover { background: var(--od-sky-soft); color: var(--od-blue-dark); }

/* размытие фона при открытом мега-меню */
.mega-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1018;
  background: rgba(6, 38, 92, .42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
  pointer-events: none;
}
.mega-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.mega-menu-open { overflow: hidden; }

/* мега-меню «Рубрики» */
.navbar-od .dropdown-menu.mega-menu {
  border: 0;
  border-top: 0;
  border-radius: 0;
  padding: 0;
  margin-top: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  width: min(920px, calc(100vw - 32px));
  animation: megaDropIn .32s cubic-bezier(.22, .9, .3, 1);
}

@keyframes megaDropIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

.mega-menu-inner {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 44px rgba(6, 38, 92, .14);
  padding: 1.15rem 1.35rem 0;
  border: 1px solid rgba(255, 255, 255, .8);
  border-top: none;
}

.mega-col { margin-bottom: .15rem; }

.mega-menu .mega-col-title {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  color: var(--od-muted);
  padding: 0 .5rem .45rem;
  margin: 0 0 .35rem;
  border-bottom: 1px solid rgba(11, 95, 216, .08);
}
.mega-menu .mega-col-title::before { display: none; }

.mega-menu .dropdown-item {
  border-radius: 8px;
  font-weight: 600;
  font-size: .84rem;
  padding: .38rem .62rem;
  color: var(--od-muted);
  white-space: normal;
  border-left: 0;
  transition: background .18s ease, color .18s ease;
}
.mega-menu .dropdown-item.fw-bold {
  color: var(--od-ink);
  font-weight: 800;
  font-size: .88rem;
  margin-bottom: .1rem;
  padding-top: .45rem;
}
.mega-menu .dropdown-item.fw-bold:hover {
  color: var(--od-blue);
}
.mega-menu .dropdown-item:hover,
.mega-menu .dropdown-item:focus {
  background: rgba(227, 241, 255, .65);
  color: var(--od-blue);
  transform: none;
}

.mega-menu-footer {
  margin-top: .55rem;
  padding: .75rem 1rem;
  border-top: 1px solid rgba(11, 95, 216, .08);
  background: linear-gradient(180deg, #fafcff 0%, #fff 100%);
  border-radius: 0 0 16px 16px;
}
.mega-menu-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--od-blue);
  font-weight: 700;
  font-size: .86rem;
  transition: color .16s ease, gap .16s ease;
}
.mega-menu-footer a:hover { color: var(--od-red); gap: 12px; }
.mega-menu-footer a i { transition: transform .16s ease; }
.mega-menu-footer a:hover i { transform: translateX(3px); }

@media (min-width: 992px) {
  .navbar-od .dropdown:hover > .dropdown-menu { display: block; }
  .navbar-od .dropdown-submenu { position: relative; }
  .navbar-od .dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: -.6rem; border-radius: var(--od-radius-sm); border: 0; box-shadow: var(--od-shadow-lg); }
  .navbar-od .dropdown-submenu:hover > .dropdown-menu { display: block; }
  .navbar-od .dropdown-menu.mega-menu { z-index: 1030; }
}

@media (max-width: 991.98px) {
  .topbar .topbar-row {
    padding-top: .75rem;
    padding-bottom: .75rem;
    min-height: 84px;
  }

  .topbar-links {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .topbar-links::-webkit-scrollbar { display: none; }

  .topbar-tools {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
  }

  .od-mobile-drawer .dropdown-menu { background: rgba(255, 255, 255, .07); border: 0; box-shadow: none; position: static !important; transform: none !important; float: none; }
  .od-mobile-drawer .dropdown-item { color: #fff; }
  .od-mobile-drawer .dropdown-item:hover { background: rgba(255, 255, 255, .16); color: var(--od-sun); }
  .od-mobile-drawer .dropdown-menu.mega-menu { width: auto; animation: none; }
  .od-mobile-drawer .mega-menu-inner {
    background: rgba(9, 58, 134, .55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    margin: .5rem 0;
    padding: 1rem;
    box-shadow: none;
  }
  .od-mobile-drawer .mega-menu .mega-col-title { color: rgba(255, 255, 255, .72); border-bottom-color: rgba(255, 255, 255, .14); }
  .od-mobile-drawer .mega-menu .dropdown-item { color: rgba(255, 255, 255, .82); }
  .od-mobile-drawer .mega-menu .dropdown-item.fw-bold { color: #fff; }
  .od-mobile-drawer .mega-menu .dropdown-item:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .od-mobile-drawer .mega-menu-footer { background: rgba(0, 0, 0, .12); border-top-color: rgba(255, 255, 255, .15); border-radius: 0 0 12px 12px; }
  .od-mobile-drawer .mega-menu-footer a { color: var(--od-sun); }
  .mega-backdrop { background: rgba(6, 38, 92, .55); }
  body.nav-menu-open .mega-backdrop.is-open {
    background: rgba(6, 38, 92, .22);
    transition: none;
  }
}

/* ================================================================ ПЕРВЫЙ ЭКРАН */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-banner {
  position: relative;
  background: #1a2a3a;
  overflow: hidden;
}

.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(20, 33, 61, .82) 0%,
    rgba(20, 33, 61, .5) 28%,
    rgba(20, 33, 61, .12) 52%,
    transparent 72%
  );
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: transparent;
  color: #fff;
  padding: 0 0 28px;
}

.hero-inner { max-width: 920px; position: relative; z-index: 1; }

.hero-age {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2px solid rgba(11, 95, 216, .22);
  color: var(--od-blue-dark);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-age {
    top: 22px;
    right: 22px;
    min-width: 62px;
    height: 62px;
    font-size: 1.6rem;
  }
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: .38rem .95rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .84rem;
  margin-bottom: 18px;
}
.hero-title {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  font-family: var(--od-hero-font);
  font-size: clamp(2.05rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 10px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}

.hero-title-line {
  display: block;
}

.hero-title .sun {
  color: var(--od-sun);
  white-space: nowrap;
}
.hero-title .fire { color: #ff8a5c; }
.hero-text {
  font-size: clamp(.85rem, 1.3vw, 1.05rem);
  color: rgba(255, 255, 255, .92);
  max-width: none;
  margin-bottom: 0;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}

.hero-actions-bar {
  background: var(--od-nav-bg);
  border-bottom: 1px solid var(--od-nav-border);
  padding: 20px 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.hero-actions .btn {
  white-space: nowrap;
  flex: 0 0 auto;
}
@media (max-width: 575.98px) {
  .hero-actions {
    flex-wrap: wrap;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 34px; }
.hero-stat b { display: block; font-size: 1.6rem; font-weight: 900; color: var(--od-sun); line-height: 1; }
.hero-stat span { font-size: .85rem; color: rgba(255, 255, 255, .8); font-weight: 600; }

/* ============================================================ КАРТОЧКИ СТАТЕЙ */
.card-od {
  background: linear-gradient(165deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(11, 95, 216, .1);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 26px rgba(9, 40, 105, .07);
  transition: transform .28s cubic-bezier(.22, .85, .35, 1), box-shadow .28s ease, border-color .28s ease;
}
.card-od:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(9, 40, 105, .13);
  border-color: rgba(11, 95, 216, .18);
}

.card-od-media { position: relative; display: block; overflow: hidden; background: var(--od-sky-soft); }
.card-od-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; display: block; }
.card-od:hover .card-od-media img { transform: scale(1.06); }
.ratio-cover { aspect-ratio: 16 / 10; }
.ratio-cover-tall { aspect-ratio: 3 / 4; }
.ratio-cover-wide { aspect-ratio: 16 / 9; }
.ratio-cover-sq { aspect-ratio: 1 / 1; }

.card-od-media .od-badge { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(3px); }

.card-od-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.card-od-title { font-size: 1.08rem; font-weight: 800; margin: 0 0 8px; line-height: 1.3; }
.card-od-title a { color: var(--od-ink); }
.card-od-title a:hover { color: var(--od-blue); }
.card-od-lead { color: var(--od-muted); font-size: .93rem; margin: 0 0 14px; }

.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* подпись автора-юнкора */
.byline { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--od-line); }
.byline-avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  border: 2px solid var(--od-sun);
  background: var(--od-sky-soft);
}
.byline-avatar-fallback {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .95rem; color: #fff;
  background: linear-gradient(135deg, var(--od-blue) 0%, var(--od-sky) 100%);
  border: 2px solid var(--od-sun);
}
.byline-name { font-weight: 800; font-size: .87rem; line-height: 1.2; color: var(--od-ink); }
.byline-meta { font-size: .76rem; color: var(--od-muted); line-height: 1.25; }

.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .8rem; color: var(--od-muted); font-weight: 600; margin-bottom: 10px; }
.card-meta i { color: var(--od-sky); }

/* большая карточка-герой в «Свежих материалах» */
.card-feature { position: relative; border-radius: var(--od-radius); overflow: hidden; height: 100%; min-height: 380px; display: flex; align-items: flex-end; color: #fff; }
.card-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 38, 92, 0) 30%, rgba(6, 38, 92, .55) 62%, rgba(6, 38, 92, .95) 100%); }
.card-feature:hover img { transform: scale(1.05); }
.card-feature-body { position: relative; z-index: 2; padding: 26px; width: 100%; }
.card-feature-title { font-size: clamp(1.25rem, 2.1vw, 1.8rem); font-weight: 900; line-height: 1.2; margin: 10px 0; }
.card-feature-title a { color: #fff; }
.card-feature-title a:hover { color: var(--od-sun); }
.card-feature .byline { border-top-color: rgba(255, 255, 255, .3); }
.card-feature .byline-name { color: #fff; }
.card-feature .byline-meta { color: rgba(255, 255, 255, .78); }

/* ============================================================== БЛОК НОВОСТЕЙ */
.news-featured {
  border-radius: var(--od-radius);
  overflow: hidden;
  border: 1px solid var(--od-line);
  background: #fff;
  box-shadow: var(--od-shadow-sm);
}
.news-featured-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--od-sky-soft); }
.news-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.news-featured:hover .news-featured-media img { transform: scale(1.03); }
.news-featured-body { padding: 20px 22px 22px; }
.news-featured-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 900;
  line-height: 1.22;
  margin: 0 0 12px;
}
.news-featured-title a { color: var(--od-ink); }
.news-featured-title a:hover { color: var(--od-blue); }
.news-featured-lead { margin: 0; color: var(--od-muted); line-height: 1.55; font-size: .96rem; }

.news-item { display: flex; gap: 16px; padding: 16px; border-radius: var(--od-radius-sm); transition: background .18s ease; border: 1px solid transparent; }
.news-item:hover { background: #f7faff; border-color: var(--od-line); }
.news-item-media { flex: 0 0 148px; border-radius: 12px; overflow: hidden; aspect-ratio: 3/2; background: var(--od-sky-soft); }
.news-item-media img { width: 100%; height: 100%; object-fit: cover; }
.news-item-title { font-size: 1.02rem; font-weight: 800; margin: 0 0 6px; line-height: 1.32; }
.news-item-title a { color: var(--od-ink); }
.news-item-title a:hover { color: var(--od-blue); }
.news-item-lead { font-size: .9rem; color: var(--od-muted); margin: 0; }

.news-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--od-sky-soft) 0%, #fff 100%);
  color: var(--od-sky); font-size: 1.6rem;
}

@media (max-width: 575.98px) {
  .news-item { flex-direction: column; }
  .news-item-media { flex-basis: auto; width: 100%; }
}

/* ============================================================ КАРТОЧКИ (общая система) */
.rubric-card,
.parent-card,
.fact-card {
  --card-accent: var(--od-blue);
  --card-accent-2: var(--od-sky);
  --card-glow: rgba(11, 95, 216, .07);
  --card-surface: linear-gradient(180deg, #ffffff 0%, #fbfcff 52%, #f8faff 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(11, 95, 216, .08);
  background: var(--card-surface);
  box-shadow: 0 8px 28px rgba(9, 40, 105, .06);
  transition: transform .28s cubic-bezier(.22, .85, .35, 1), box-shadow .28s ease, border-color .28s ease;
}
.rubric-card::after,
.parent-card::after,
.fact-card::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 58% 42%,
    var(--card-glow) 0%,
    color-mix(in srgb, var(--card-glow) 42%, transparent) 38%,
    transparent 72%
  );
  filter: blur(2px);
  pointer-events: none;
  transition: opacity .4s ease;
  opacity: .85;
}
.rubric-card:hover,
.parent-card:hover,
.fact-card:hover {
  transform: translateY(-7px);
  border-color: rgba(11, 95, 216, .14);
  box-shadow: 0 20px 44px rgba(9, 40, 105, .11);
}
.rubric-card:hover::after,
.parent-card:hover::after,
.fact-card:hover::after {
  opacity: 1;
}

.rubric-card.tone-blue,
.parent-card.tone-blue,
.fact-card.tone-blue { --card-accent: var(--od-blue); --card-accent-2: var(--od-sky); --card-glow: rgba(11, 95, 216, .08); }
.rubric-card.tone-red,
.parent-card.tone-red,
.fact-card.tone-red { --card-accent: var(--od-red); --card-accent-2: #ff8a5c; --card-glow: rgba(226, 39, 63, .07); }
.rubric-card.tone-sun,
.parent-card.tone-sun,
.fact-card.tone-sun { --card-accent: #e39400; --card-accent-2: var(--od-sun); --card-glow: rgba(255, 166, 46, .09); }
.rubric-card.tone-green,
.parent-card.tone-green,
.fact-card.tone-green { --card-accent: #12a06a; --card-accent-2: #58d39b; --card-glow: rgba(18, 160, 106, .07); }
.rubric-card.tone-violet,
.parent-card.tone-violet,
.fact-card.tone-violet { --card-accent: #6a3ecb; --card-accent-2: #a97bff; --card-glow: rgba(106, 62, 203, .07); }

.card-bg-icon {
  position: absolute;
  right: 6px;
  bottom: 28px;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1;
  color: var(--card-accent);
  opacity: .11;
  pointer-events: none;
  transform: rotate(-8deg);
  transition: opacity .28s ease, transform .28s ease;
}
.card-bg-icon i {
  display: block;
  line-height: 1;
}
.rubric-card:hover .card-bg-icon,
.fact-card:hover .card-bg-icon {
  opacity: .16;
  transform: rotate(-5deg) scale(1.04);
}
.rubric-card-compact .card-bg-icon {
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  right: 4px;
  bottom: 54px;
}
.parent-card .card-bg-icon {
  top: 36%;
  bottom: auto;
  right: 10px;
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  transform: translateY(-50%) rotate(-8deg);
}
.parent-card:hover .card-bg-icon {
  transform: translateY(-50%) rotate(-5deg) scale(1.04);
}
.fact-card .card-bg-icon {
  bottom: 32px;
  right: 4px;
  font-size: clamp(2.5rem, 5.5vw, 3.6rem);
}

.card-icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 18px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--card-accent) 88%, #fff) 0%, var(--card-accent) 42%, var(--card-accent-2) 100%);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--card-glow) 65%, transparent), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .28s ease, box-shadow .28s ease;
}
.rubric-card:hover .card-icon,
.parent-card:hover .card-icon,
.fact-card:hover .card-icon {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--card-glow) 75%, transparent), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.parent-card.tone-sun .card-icon,
.fact-card.tone-sun .card-icon,
.rubric-card.tone-sun .card-icon { color: #4a2e00; }

.card-action {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: .9rem;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 5%, #fff);
  border: 1px solid color-mix(in srgb, var(--card-accent) 10%, transparent);
  transition: background .28s ease, color .28s ease, border-color .28s ease, transform .22s ease;
}
.card-action i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  background: rgba(255, 255, 255, .82);
  transition: transform .22s ease, background .22s ease, color .22s ease;
}
.card-action:hover {
  color: #fff;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--card-accent) 82%, #fff) 0%,
    var(--card-accent) 48%,
    color-mix(in srgb, var(--card-accent-2) 90%, #fff) 100%
  );
  border-color: transparent;
  transform: translateY(-1px);
}
.card-action:hover i {
  background: rgba(255, 255, 255, .2);
  color: #fff;
  transform: translateX(3px);
}

/* ========================================================== ПОПУЛЯРНЫЕ РУБРИКИ */
.rubric-card { padding: 26px 24px 22px; }
.rubric-title { font-size: 1.18rem; font-weight: 900; margin: 0 0 10px; line-height: 1.25; position: relative; z-index: 1; }
.rubric-desc { color: var(--od-muted); font-size: .93rem; margin: 0 0 18px; line-height: 1.55; position: relative; z-index: 1; flex: 1 1 auto; }

/* ========================================================== ПОПУЛЯРНЫЕ РУБРИКИ — нижний ряд главной */
@media (min-width: 992px) {
  .home-bottom-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
  }

  .home-bottom-main {
    min-height: 100%;
  }

  .home-bottom-main .rubrics-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    margin-top: 0;
    height: 100%;
  }

  .home-bottom-main .section-head-compact {
    flex: 0 0 auto;
  }

  .home-bottom-main .rubrics-grid.row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
  }

  .home-bottom-main .rubrics-grid.row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding: 0;
    margin: 0;
    display: flex;
    min-height: 0;
  }

  .home-bottom-side .sidebar-bottom {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
  }

  .home-bottom-side .sidebar-bottom > .widget:last-child {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    min-height: 0;
  }

  .home-bottom-side .sidebar-bottom > .widget:last-child .widget-body {
    flex: 1 1 auto;
    min-height: 0;
  }

  .home-bottom-side .widget-vk #vk_groups {
    min-height: 100% !important;
    height: 100% !important;
  }

  .home-bottom-main .rubric-card-compact {
    min-height: 0;
    flex: 1 1 auto;
  }
}

.rubrics-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin-top: .25rem;
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
  border: 1px solid rgba(11, 95, 216, .08);
  box-shadow: 0 10px 28px rgba(9, 40, 105, .05);
}

.section-head-compact {
  margin-bottom: .85rem;
  gap: .75rem;
}

.section-head-compact .section-title {
  font-size: 1.28rem;
  margin-bottom: .15rem;
}

.section-head-compact .section-sub {
  font-size: .84rem;
  margin-bottom: 0;
}

.rubrics-grid {
  flex: 1 1 auto;
  align-content: stretch;
}

.rubric-card-compact {
  padding: 14px 13px 12px;
  height: 100%;
}

.rubric-card-compact .card-icon {
  width: 34px;
  height: 34px;
  font-size: .95rem;
  margin-bottom: .55rem;
}

.rubric-card-compact .rubric-title {
  font-size: .95rem;
  margin-bottom: 5px;
}

.rubric-card-compact .rubric-desc {
  font-size: .78rem;
  margin-bottom: 8px;
  line-height: 1.42;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rubric-card-compact .rubric-latest {
  font-size: .72rem;
  line-height: 1.35;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rubric-card-compact .card-action {
  margin-top: auto;
  font-size: .76rem;
  padding: .42rem .62rem;
  gap: .35rem;
}

.rubric-card-compact .card-action i {
  width: 1.35rem;
  height: 1.35rem;
  font-size: .72rem;
}

@media (max-width: 575.98px) {
  .rubrics-panel { padding: 1rem .85rem .85rem; }
  .rubric-card-compact { min-height: 0; }
  .rubric-card-compact .rubric-latest { display: none; }
}

/* ============================================================ КОНКУРСЫ */
.contest-card {
  display: flex;
  gap: 18px;
  position: relative;
  background: linear-gradient(165deg, #ffffff 0%, #fff9f9 100%);
  border: 1px solid rgba(226, 39, 63, .12);
  border-radius: 22px;
  padding: 18px;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(9, 40, 105, .06);
  transition: transform .28s cubic-bezier(.22, .85, .35, 1), box-shadow .28s ease, border-color .28s ease;
}
.contest-card:hover {
  transform: translateY(-6px);
  border-color: rgba(226, 39, 63, .22);
  box-shadow: 0 20px 44px rgba(226, 39, 63, .12);
}
.contest-media {
  flex: 0 0 132px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--od-sky-soft);
  box-shadow: 0 8px 20px rgba(9, 40, 105, .1);
}
.contest-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.contest-card:hover .contest-media img { transform: scale(1.06); }
.contest-title { font-size: 1.02rem; font-weight: 800; margin: 8px 0; line-height: 1.3; }
.contest-title a { color: var(--od-ink); }
.contest-title a:hover { color: var(--od-red); }
.contest-facts { list-style: none; padding: 0; margin: 0 0 12px; font-size: .85rem; color: var(--od-muted); }
.contest-facts li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 4px; }
.contest-facts i { color: var(--od-red); margin-top: .18rem; }

@media (max-width: 575.98px) {
  .contest-card { flex-direction: column; }
  .contest-media { flex-basis: auto; width: 100%; aspect-ratio: 16/9; }
}

.contest-note {
  background: linear-gradient(135deg, #fff8e8 0%, #fffdf6 55%, #fff 100%);
  border: 1px solid rgba(255, 166, 46, .35);
  border-radius: 20px;
  padding: 22px 26px;
  font-weight: 700;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(255, 166, 46, .12);
}
.contest-note i { font-size: 2rem; color: #e39400; flex: 0 0 auto; }

.section-title.is-red { color: var(--od-red-dark); }

.page-hero-comp {
  padding: 24px 0 0;
  border-bottom: 0;
  background: linear-gradient(180deg, #f4f8ff 0%, #fff 100%);
}

.section-comp-featured {
  padding-top: 18px;
  padding-bottom: 28px;
}

.comp-featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 22px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff9f9 0%, #ffffff 52%, #f7faff 100%);
  border: 1px solid rgba(226, 39, 63, .14);
  box-shadow: 0 16px 44px rgba(226, 39, 63, .1);
}

.comp-featured-glow {
  position: absolute;
  inset: auto -80px -80px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 46, .28) 0%, rgba(255, 196, 46, 0) 72%);
  pointer-events: none;
}

.comp-featured-media {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: var(--od-sky-soft);
  box-shadow: 0 12px 28px rgba(9, 40, 105, .12);
  min-height: 240px;
}

.comp-featured-media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform .45s ease;
}

.comp-featured:hover .comp-featured-media img { transform: scale(1.04); }

.comp-featured-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.comp-featured-title {
  margin: 12px 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
}

.comp-featured-title a { color: var(--od-ink); }
.comp-featured-title a:hover { color: var(--od-red); }

.comp-featured-lead {
  margin: 0 0 14px;
  color: var(--od-muted);
  line-height: 1.6;
  font-size: .98rem;
}

.comp-featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

@media (max-width: 991.98px) {
  .comp-featured {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .comp-featured-media,
  .comp-featured-media img {
    min-height: 210px;
  }
}

@media (max-width: 575.98px) {
  .comp-featured { padding: 16px; }
  .comp-featured-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================== ФОТОГАЛЕРЕЯ */
.gallery-tile { position: relative; display: block; border-radius: var(--od-radius); overflow: hidden; height: 100%; background: var(--od-blue-deep); }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.gallery-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6, 38, 92, .9) 100%); transition: .3s ease; }
.gallery-tile:hover img { transform: scale(1.07); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 14px 14px; color: #fff; font-weight: 800; font-size: .95rem; line-height: 1.3; }
.gallery-caption small { display: block; font-weight: 600; font-size: .78rem; color: rgba(255, 255, 255, .8); margin-top: 4px; }

.play-badge {
  position: absolute;
  z-index: 2;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--od-red);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
  transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
  pointer-events: none;
  line-height: 0;
}

.play-badge i {
  position: relative;
  display: block;
  width: 1em;
  height: 1em;
  font-size: 1.05rem;
}

.play-badge i::before {
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  line-height: 1;
}

.gallery-tile:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.05);
  background: #fff;
  color: var(--od-red-dark);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
}

.video-thumb-wrap .play-badge {
  top: 50%;
}

/* =================================================================== САЙДБАР */
.widget {
  background: #fff;
  border: 1px solid var(--od-line);
  border-radius: var(--od-radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.widget-head {
  padding: 14px 18px;
  font-weight: 900;
  font-size: 1.02rem;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--od-blue-dark) 0%, var(--od-blue) 100%);
  color: #fff;
}
.widget-head i { color: var(--od-sun); font-size: 1.15rem; }
.widget-head.is-red { background: linear-gradient(135deg, var(--od-red-dark) 0%, var(--od-red) 100%); }
.widget-head.is-sun { background: linear-gradient(135deg, #e08c00 0%, var(--od-sun) 100%); color: #402800; }
.widget-head.is-sun i { color: #7a4d00; }
.widget-body { padding: 18px; }
.widget-vk .widget-body { padding: 0; overflow: hidden; }
.widget-vk #vk_groups { width: 100% !important; min-height: 400px; }

.issue-cover { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--od-shadow); border: 1px solid var(--od-line); cursor: zoom-in; }
.issue-cover img { width: 100%; display: block; transition: transform .4s ease; }
.issue-cover:hover img { transform: scale(1.03); }

.today-note {
  background: linear-gradient(135deg, var(--od-sun-soft) 0%, #fff 100%);
  border: 1px solid rgba(255, 166, 46, .2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: .92rem;
}

/* опрос */
.poll-q { font-weight: 800; margin-bottom: 14px; font-size: .98rem; }
.poll-item { margin-bottom: 12px; }
.poll-item-name { font-size: .88rem; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.poll-item-name span:last-child { color: var(--od-muted); font-weight: 600; white-space: nowrap; }
.poll-bar { height: 9px; background: var(--od-sky-soft); border-radius: 999px; overflow: hidden; }
.poll-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--od-blue), var(--od-sky)); transition: width 1s cubic-bezier(.22, .9, .3, 1); }
.poll-item.tone-2 .poll-bar span { background: linear-gradient(90deg, var(--od-red), #ff8a5c); }
.poll-item.tone-3 .poll-bar span { background: linear-gradient(90deg, #e39400, var(--od-sun)); }
.poll-item.tone-4 .poll-bar span { background: linear-gradient(90deg, #12a06a, #58d39b); }

/* выбор редакции */
.pick-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--od-line); }
.pick-item:last-child { border-bottom: 0; padding-bottom: 0; }
.pick-media { flex: 0 0 68px; height: 62px; border-radius: 10px; overflow: hidden; background: var(--od-sky-soft); }
.pick-media img { width: 100%; height: 100%; object-fit: cover; }
.pick-title { font-size: .9rem; font-weight: 800; line-height: 1.3; margin: 0; }
.pick-title a { color: var(--od-ink); }
.pick-title a:hover { color: var(--od-blue); }
.pick-num { font-weight: 900; color: var(--od-line); font-size: 1.4rem; line-height: 1; }

/* юнкоры */
.yunkor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.yunkor { text-align: center; display: block; }
.yunkor img, .yunkor .yunkor-fallback {
  width: 100%; aspect-ratio: 1/1; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--od-sky-soft);
  transition: .2s ease;
  display: block;
}
.yunkor .yunkor-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--od-blue), var(--od-sky));
  color: #fff; font-weight: 900; font-size: 1.1rem;
}
.yunkor:hover img, .yunkor:hover .yunkor-fallback { border-color: var(--od-sun); transform: translateY(-3px); }
.yunkor-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: .72rem; font-weight: 700; color: var(--od-ink); margin-top: 6px; line-height: 1.2; min-height: 2.4em;
}
.yunkor:hover .yunkor-name { color: var(--od-blue); }

@media (max-width: 991.98px) { .yunkor-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 575.98px) { .yunkor-grid { grid-template-columns: repeat(4, 1fr); } }

/* карусель конкурсов в сайдбаре */
.mini-carousel .carousel-item a { display: block; border-radius: 12px; overflow: hidden; position: relative; }
.mini-carousel img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.mini-carousel .curtain {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(6, 38, 92, .92));
  color: #fff; padding: 26px 14px 14px; font-weight: 800; font-size: .88rem; line-height: 1.25;
}
.mini-carousel .carousel-control-prev, .mini-carousel .carousel-control-next { width: 15%; }
.mini-carousel .carousel-indicators { margin-bottom: .3rem; }
.mini-carousel .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; border: 0; }

/* ==================================================== СТАТЬ ЧАСТЬЮ ОРЛЁНКА */
.join-block {
  background: linear-gradient(135deg, var(--od-blue-deep) 0%, var(--od-blue) 55%, var(--od-sky) 130%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.join-block::before, .join-block::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.join-block::before { width: 380px; height: 380px; background: rgba(255, 196, 46, .16); top: -140px; right: -90px; z-index: 1; }
.join-block::after { width: 260px; height: 260px; background: rgba(226, 39, 63, .18); bottom: -110px; left: -70px; z-index: 1; }
.join-block .container { position: relative; z-index: 2; }
.join-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: .13;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.step-card {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 20px;
  padding: 24px 22px;
  height: 100%;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.step-card:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .34);
  transform: translateY(-5px);
}
.step-num {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(145deg, var(--od-sun) 0%, #ffe08a 100%);
  color: var(--od-blue-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.35rem; margin-bottom: 14px;
  box-shadow: 0 2px 5px rgba(255, 196, 46, .2);
}
.step-title { font-weight: 900; font-size: 1.08rem; margin-bottom: 6px; }
.step-text { color: rgba(255, 255, 255, .85); font-size: .93rem; margin: 0; }

.mini-work { border-radius: 14px; overflow: hidden; position: relative; display: block; aspect-ratio: 4/3; }
.mini-work img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mini-work:hover img { transform: scale(1.07); }
.mini-work-cap { position: absolute; inset: auto 0 0 0; padding: 20px 10px 8px; background: linear-gradient(180deg, transparent, rgba(6, 38, 92, .9)); color: #fff; font-size: .74rem; font-weight: 700; line-height: 1.2; }

.contact-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px; padding: .5rem 1.05rem; color: #fff; font-weight: 700; font-size: .92rem;
}
.contact-chip:hover { background: #fff; color: var(--od-blue-dark); }
.contact-chip i { color: var(--od-sun); }
.contact-chip:hover i { color: var(--od-red); }

/* ================================================================ АРХИВ */
.archive-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.year-chip {
  border: 2px solid var(--od-line);
  background: #fff;
  border-radius: 999px;
  padding: .34rem 1rem;
  font-weight: 800;
  font-size: .88rem;
  color: var(--od-ink);
  cursor: pointer;
  transition: .16s ease;
}
.year-chip:hover { border-color: var(--od-sky); color: var(--od-blue); }
.year-chip.active { background: var(--od-blue); border-color: var(--od-blue); color: #fff; box-shadow: var(--od-btn-shadow); }

.issue-card {
  background: #fff;
  border: 1px solid rgba(11, 95, 216, .1);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-shadow: 0 8px 24px rgba(9, 40, 105, .07);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.issue-card:hover {
  transform: translateY(-6px);
  border-color: rgba(11, 95, 216, .2);
  box-shadow: 0 18px 40px rgba(9, 40, 105, .13);
}
.issue-card-media { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--od-sky-soft); cursor: zoom-in; }
.issue-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.issue-card:hover .issue-card-media img { transform: scale(1.05); }
.issue-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(6, 38, 92, .82);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transition: .22s ease; padding: 12px;
}
.issue-card:hover .issue-overlay { opacity: 1; }
.issue-col { display: flex; }
.issue-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 12px 14px 16px;
  text-align: center;
}
.issue-card-title {
  font-size: .92rem;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.issue-card-title a { color: var(--od-ink); }
.issue-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
  margin-top: auto;
  width: 100%;
}
.issue-card-actions .btn {
  min-width: 0;
  width: 100%;
  padding: .5rem .4rem;
  font-size: .8rem;
  white-space: nowrap;
}
.issue-card-action-placeholder {
  display: block;
  min-height: 38px;
}

.issue-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 38, 92, .42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.issue-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.issue-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--od-ink);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(9, 40, 105, .18);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.issue-lightbox-close:hover {
  transform: scale(1.06);
  background: #fff;
}
.issue-lightbox-figure {
  margin: 0;
  max-width: min(92vw, 560px);
  max-height: 90vh;
  transform: scale(.9);
  transition: transform .32s cubic-bezier(.22, .85, .35, 1);
}
.issue-lightbox.is-open .issue-lightbox-figure {
  transform: scale(1);
}
.issue-lightbox-figure img {
  display: block;
  width: 100%;
  max-height: calc(90vh - 2.5rem);
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .38);
  background: #fff;
}
.issue-lightbox-caption {
  margin-top: 12px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
html[data-theme="dark"] .issue-lightbox {
  background: rgba(8, 16, 32, .72);
}
html[data-theme="dark"] .issue-lightbox-close {
  background: rgba(30, 42, 64, .95);
  color: #f0f4fc;
}
body.issue-lightbox-open {
  overflow: hidden;
}

.archive-hint {
  background: var(--od-sky-soft);
  border-radius: var(--od-radius);
  padding: 16px 20px;
  display: flex; gap: 14px; align-items: center;
  font-weight: 700; color: var(--od-blue-dark); font-size: .95rem;
}
.archive-hint i { font-size: 1.6rem; flex: 0 0 auto; }

.archive-toolbar {
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.15rem;
  border-radius: 20px;
  border: 1px solid rgba(11, 95, 216, .1);
  background: linear-gradient(165deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 24px rgba(9, 40, 105, .05);
}

.archive-toolbar .form-label {
  font-weight: 800;
  font-size: .82rem;
  margin-bottom: .35rem;
  color: var(--od-muted);
}

.archive-toolbar .form-control,
.archive-toolbar .form-select {
  border: 2px solid var(--od-line);
  border-radius: 12px;
  font-weight: 600;
}

.archive-toolbar .form-control:focus,
.archive-toolbar .form-control:focus-visible,
.archive-toolbar .form-select:focus,
.archive-toolbar .form-select:focus-visible {
  outline: none;
  border-color: var(--od-sky);
  box-shadow: 0 0 0 3px rgba(55, 169, 240, .16);
}

.archive-toolbar .btn:focus,
.archive-toolbar .btn:focus-visible {
  outline: none;
  box-shadow: var(--od-btn-shadow);
}

html[data-theme="dark"] .archive-toolbar {
  background: linear-gradient(165deg, #172236 0%, #121b2c 100%);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: none;
}

html[data-theme="dark"] .archive-toolbar .form-control,
html[data-theme="dark"] .archive-toolbar .form-select {
  background: #1a2438;
  border-color: #3a4d68;
  color: #edf2fb;
}

/* ================================================================== О НАС */
.fact-card {
  padding: 28px 22px 24px;
  text-align: center;
  align-items: center;
}
.fact-card .card-icon {
  margin-left: auto;
  margin-right: auto;
  width: 58px;
  height: 58px;
  font-size: 1.55rem;
  border-radius: 18px;
}
.fact-value {
  position: relative;
  z-index: 1;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.2;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--card-accent) 78%, var(--od-ink)) 0%,
    var(--card-accent) 45%,
    color-mix(in srgb, var(--card-accent-2) 85%, var(--card-accent)) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fact-label {
  position: relative;
  z-index: 1;
  color: var(--od-muted);
  font-size: .9rem;
  margin: 0;
  line-height: 1.5;
}

/* ============================================================ МЕДИАШКОЛА / РОДИТЕЛЯМ */
.media-school {
  background: linear-gradient(120deg, #101f45 0%, #1c3f8f 60%, #2f6ecf 100%);
  color: #fff;
  border-radius: 0;
  overflow: hidden;
}

.parent-card { padding: 26px 24px 22px; }
.parent-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0 0 10px;
  line-height: 1.3;
}
.parent-card p {
  position: relative;
  z-index: 1;
  color: var(--od-muted);
  font-size: .93rem;
  margin: 0 0 18px;
  line-height: 1.55;
  flex: 1 1 auto;
}

.lesson-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  padding: 15px 16px;
  height: 100%;
  backdrop-filter: blur(8px);
  transition: background .22s ease, transform .22s ease, border-color .22s ease;
}
.lesson-item:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .3);
  transform: translateY(-2px);
}
.lesson-item i {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--od-blue-deep);
  background: linear-gradient(145deg, var(--od-sun) 0%, #ffe08a 100%);
  flex: 0 0 auto;
  box-shadow: 0 2px 5px rgba(255, 196, 46, .18);
}
.lesson-item b { display: block; font-size: .98rem; }
.lesson-item span { font-size: .86rem; color: rgba(255, 255, 255, .82); }

/* ================================================================ КОНТАКТЫ */
.contact-panel {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(11, 95, 216, .1);
  background: linear-gradient(165deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 6px 20px rgba(9, 40, 105, .05);
}

.contact-info-item {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 0;
  padding: 11px 12px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: background .18s ease;
}
.contact-info-item + .contact-info-item {
  margin-top: 4px;
}
.contact-info-item:hover {
  transform: none;
  background: rgba(11, 95, 216, .04);
  box-shadow: none;
  border-color: transparent;
}

.contact-info-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 0;
  color: var(--od-blue);
  background: var(--od-sky-soft);
  box-shadow: none;
}

.contact-info-icon i {
  position: relative;
  display: block;
  width: 1em;
  height: 1em;
}

.contact-info-icon i::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}

.contact-info-item.tone-red .contact-info-icon {
  background: #fff0f2;
  color: var(--od-red);
}
.contact-info-item.tone-sun .contact-info-icon {
  background: #fff8e8;
  color: #c87a00;
}

.contact-info-item b {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--od-muted);
  margin-bottom: 2px;
  font-weight: 800;
}
.contact-info-item > span > span,
.contact-info-item a {
  font-weight: 800;
  font-size: .98rem;
  color: var(--od-ink);
}
.contact-info-item a:hover { color: var(--od-blue); }

.contact-soc {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(11, 95, 216, .14);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-soc-title {
  margin: 0 0 6px;
  font-size: .92rem;
  font-weight: 900;
  color: var(--od-blue-dark);
}

.soc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  background: transparent;
  box-shadow: none;
  transition: background .18s ease;
  color: inherit;
}
.soc-card:hover {
  transform: none;
  box-shadow: none;
  background: rgba(11, 95, 216, .04);
  color: inherit;
}

.soc-card .ico {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex: 0 0 auto;
  line-height: 1;
}

.soc-card.vk .ico { background: rgba(0, 119, 255, .1); color: #0077ff; }
.soc-card.tg .ico { background: rgba(42, 171, 238, .12); color: #1a9ad9; }
.soc-card.max .ico { background: rgba(71, 26, 255, .08); color: #471aff; }
.soc-card.ok .ico { background: rgba(238, 130, 8, .12); color: #d97307; }

.soc-card .ico-brand,
.soc-card .ico.ico-brand {
  padding: 0;
  overflow: hidden;
}

.soc-card .ico-brand img,
.soc-card .ico.ico-brand img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.ok-glyph {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
}

.soc-card-body { flex: 1 1 auto; min-width: 0; }
.soc-card b { display: block; font-size: .94rem; color: var(--od-ink); line-height: 1.2; font-weight: 800; }
.soc-card small { color: var(--od-muted); font-size: .78rem; font-weight: 600; }

.soc-card-arrow {
  flex: 0 0 auto;
  font-size: .85rem;
  color: var(--od-muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .18s ease, transform .18s ease, color .18s ease;
}
.soc-card:hover .soc-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}
.soc-card.vk:hover .soc-card-arrow { color: #0077ff; }
.soc-card.tg:hover .soc-card-arrow { color: #1a9ad9; }
.soc-card.max:hover .soc-card-arrow { color: #471aff; }
.soc-card.ok:hover .soc-card-arrow { color: #d97307; }

.form-od .form-control, .form-od .form-select {
  border: 2px solid var(--od-line);
  border-radius: var(--od-radius-sm);
  padding: .72rem 1rem;
  font-weight: 600;
}
.form-od .form-control:focus, .form-od .form-select:focus { border-color: var(--od-sky); box-shadow: 0 0 0 .22rem rgba(55, 169, 240, .18); }
.form-od label { font-weight: 800; font-size: .88rem; margin-bottom: .35rem; }

/* ================================================================== ПОДВАЛ */
.footer-od { background: var(--od-blue-deep); color: rgba(255, 255, 255, .78); padding-top: 48px; font-size: .92rem; }
.footer-od h4 { color: #fff; font-size: 1rem; font-weight: 900; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .04em; }
.footer-od a { color: rgba(255, 255, 255, .78); }
.footer-od a:hover { color: var(--od-sun); }
.footer-od ul { list-style: none; padding: 0; margin: 0; }
.footer-od ul li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 34px; padding: 20px 0; font-size: .86rem; }
.age-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); font-weight: 900; color: #fff; font-size: .82rem;
}
.footer-legal { font-size: .82rem; color: rgba(255, 255, 255, .55); line-height: 1.55; }

/* ============================================================== ДОП. ЭЛЕМЕНТЫ */
.gosuslugi-widget {
  border: 1px solid var(--od-line);
  border-radius: var(--od-radius);
  overflow: hidden;
  background: linear-gradient(120deg, #f2f7ff 0%, #fff 100%);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 18px 22px;
}
.gosuslugi-widget .gos-logo { font-weight: 900; color: #005ca9; line-height: 1.1; }
.gosuslugi-widget .gos-logo b { display: block; font-size: 1.15rem; }
.gosuslugi-widget .gos-text { flex: 1 1 320px; font-weight: 700; font-size: .95rem; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 1030;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--od-blue); color: #fff; font-size: 1.25rem;
  box-shadow: var(--od-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: .22s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--od-red); }

/* Появление при скролле. Прячем блоки только если JS доступен — иначе контент
   останется видимым при отключённом JavaScript. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================= ТЁМНАЯ ТЕМА */
html[data-theme="dark"] {
  color-scheme: dark;
  --od-bg: #0d1422;
  --od-ink: #e8eef9;
  --od-muted: #a8b6ce;
  --od-line: #2f3f58;
  --od-sky-soft: #1a2a42;
  --od-blue: #4d9fff;
  --od-blue-dark: #7eb8ff;
  --od-nav-bg: linear-gradient(180deg, #121b2c 0%, #172236 100%);
  --od-nav-border: rgba(255, 255, 255, .06);
  --od-nav-link-color: rgba(232, 238, 249, .9);
  --od-nav-link-hover-bg: rgba(255, 255, 255, .08);
  --od-nav-glass-bg: rgba(18, 27, 44, .86);
  --bs-body-color: #e8eef9;
  --bs-secondary-color: #a8b6ce;
  --bs-tertiary-color: #8b9bb5;
  --bs-border-color: #2f3f58;
}

html[data-theme="dark"] body {
  background: #090f18;
  background-image: none;
  color: var(--od-ink);
}

html[data-theme="dark"] .site-box {
  background: var(--od-bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05);
}

html[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.quick-link):not(.soc-dot):not(.tool-dot):not(.gallery-tile):not(.card-od-media):not(.issue-cover):not(.yunkor):not(.soc-card) {
  color: #7eb8ff;
}

html[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.quick-link):not(.soc-dot):not(.tool-dot):not(.gallery-tile):not(.card-od-media):not(.issue-cover):not(.yunkor):not(.soc-card):hover {
  color: #ffc96b;
}

html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .text-body-secondary {
  color: var(--od-muted) !important;
}

html[data-theme="dark"] ::placeholder {
  color: #b4c2d8 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .header-main,
html[data-theme="dark"] .section-alt,
html[data-theme="dark"] .page-hero {
  background: #121b2c;
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .navbar-od {
  background: var(--od-nav-bg);
  border-bottom-color: var(--od-nav-border);
  box-shadow: none;
}

html[data-theme="dark"] .od-mobile-drawer {
  background: var(--od-nav-glass-bg);
  border-right-color: var(--od-nav-border);
}

html[data-theme="dark"] .topbar .tool-dot,
html[data-theme="dark"] .topbar .soc-dot,
html[data-theme="dark"] .topbar .nav-burger,
html[data-theme="dark"] .od-drawer-tools .tool-dot,
html[data-theme="dark"] .od-drawer-tools .soc-dot {
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .92);
}

html[data-theme="dark"] .topbar .tool-dot:hover,
html[data-theme="dark"] .topbar .soc-dot:hover,
html[data-theme="dark"] .topbar .nav-burger:hover,
html[data-theme="dark"] .od-drawer-tools .tool-dot:hover,
html[data-theme="dark"] .od-drawer-tools .soc-dot:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

html[data-theme="dark"] .topbar .tool-dot.active,
html[data-theme="dark"] .od-drawer-tools .tool-dot.active {
  background: var(--od-sun);
  color: #1a2233;
}

html[data-theme="dark"] .topbar-tools {
  border-right-color: rgba(255, 255, 255, .1);
}

html[data-theme="dark"] .page-hero {
  border-bottom-color: rgba(255, 255, 255, .06);
}

html[data-theme="dark"] .brand-name {
  color: #f0f4fc;
}

html[data-theme="dark"] .brand-name .accent {
  color: #ff8a9a;
}

html[data-theme="dark"] .brand-tagline,
html[data-theme="dark"] .section-sub,
html[data-theme="dark"] .page-hero-sub,
html[data-theme="dark"] .breadcrumb-current,
html[data-theme="dark"] .card-od-lead,
html[data-theme="dark"] .rubric-desc,
html[data-theme="dark"] .rubric-latest,
html[data-theme="dark"] .fact-label,
html[data-theme="dark"] .news-item-lead,
html[data-theme="dark"] .card-meta,
html[data-theme="dark"] .byline-meta,
html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .article-byline,
html[data-theme="dark"] .contest-facts,
html[data-theme="dark"] .parent-card p,
html[data-theme="dark"] .contact-info-item b,
html[data-theme="dark"] .gosuslugi-widget .gos-text {
  color: var(--od-muted);
}

html[data-theme="dark"] .section-title,
html[data-theme="dark"] .page-hero-title,
html[data-theme="dark"] .card-od-title a,
html[data-theme="dark"] .news-item-title a,
html[data-theme="dark"] .contest-title a,
html[data-theme="dark"] .pick-title a,
html[data-theme="dark"] .issue-card-title a,
html[data-theme="dark"] .yunkor-name,
html[data-theme="dark"] .byline-name,
html[data-theme="dark"] .article-lead,
html[data-theme="dark"] .article-body,
html[data-theme="dark"] .poll-q,
html[data-theme="dark"] .search-hit b,
html[data-theme="dark"] .contact-info-item > span > span,
html[data-theme="dark"] .contact-info-item a,
html[data-theme="dark"] .parent-card h3,
html[data-theme="dark"] .rubric-title {
  color: #f0f4fc;
}

html[data-theme="dark"] .fact-value {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #f0f4fc;
}

html[data-theme="dark"] .card-od,
html[data-theme="dark"] .widget,
html[data-theme="dark"] .contact-panel,
html[data-theme="dark"] .gosuslugi-widget,
html[data-theme="dark"] .fact-card,
html[data-theme="dark"] .rubric-card,
html[data-theme="dark"] .parent-card,
html[data-theme="dark"] .yunkor-profile-card,
html[data-theme="dark"] .news-item,
html[data-theme="dark"] .news-featured,
html[data-theme="dark"] .issue-card,
html[data-theme="dark"] .search-hit {
  background: linear-gradient(165deg, #172236 0%, #121b2c 100%);
  border-color: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] .contest-card {
  background: linear-gradient(165deg, #1f2438 0%, #171f30 100%);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: none;
}

html[data-theme="dark"] .card-bg-icon {
  opacity: .14;
}
html[data-theme="dark"] .rubric-card:hover .card-bg-icon,
html[data-theme="dark"] .fact-card:hover .card-bg-icon {
  opacity: .2;
}
html[data-theme="dark"] .parent-card:hover .card-bg-icon {
  opacity: .2;
}

html[data-theme="dark"] .rubrics-panel {
  background: linear-gradient(180deg, #172236 0%, #121b2c 100%);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: none;
}

html[data-theme="dark"] .quick-link {
  background: #172236;
  border-color: #3a4d68;
  color: #e8eef9;
}

html[data-theme="dark"] .quick-link:hover {
  border-color: #5da8f5;
  color: #fff;
}

html[data-theme="dark"] .quick-link-icon {
  background: #24324a;
  color: #8ec5ff;
}

html[data-theme="dark"] .quick-link:hover .quick-link-icon {
  background: #2f4568;
  color: #fff;
}

html[data-theme="dark"] .quick-link.is-red .quick-link-icon {
  background: #3a2430;
  color: #ff9aaa;
}

html[data-theme="dark"] .search-od .input-group,
html[data-theme="dark"] .search-page-box .form-control-lg {
  background: #172236;
  border-color: #3a4d68;
}

html[data-theme="dark"] .search-od .form-control,
html[data-theme="dark"] .form-od .form-control,
html[data-theme="dark"] .form-od .form-select,
html[data-theme="dark"] .search-page-box .form-control-lg {
  color: #edf2fb;
  background: transparent;
}

html[data-theme="dark"] .search-od:focus-within .input-group,
html[data-theme="dark"] .form-od .form-control:focus,
html[data-theme="dark"] .form-od .form-select:focus,
html[data-theme="dark"] .search-page-box .form-control-lg:focus {
  border-color: #5da8f5;
  box-shadow: 0 0 0 3px rgba(77, 159, 255, .18);
}

html[data-theme="dark"] .form-od .form-control,
html[data-theme="dark"] .form-od .form-select {
  background: #1a2438;
}

html[data-theme="dark"] .form-od label,
html[data-theme="dark"] .form-od .form-label {
  color: #c5d0e4;
}

html[data-theme="dark"] .btn-od-outline {
  background: transparent;
  border-color: #5da8f5;
  color: #8ec5ff;
}

html[data-theme="dark"] .btn-od-outline:hover {
  background: var(--od-blue);
  border-color: var(--od-blue);
  color: #fff;
}

html[data-theme="dark"] .news-item:hover {
  background: #1a2438;
  border-color: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] .mega-menu-inner {
  background: rgba(18, 27, 44, .98);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .mega-menu-footer {
  background: #121b2c;
  border-top-color: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] .mega-menu-footer a {
  color: #8ec5ff;
}

html[data-theme="dark"] .navbar-od .dropdown-menu:not(.mega-menu) {
  background: #172236;
  border: 1px solid rgba(255, 255, 255, .08);
}

html[data-theme="dark"] .navbar-od .dropdown-item {
  color: #e8eef9;
}

html[data-theme="dark"] .navbar-od .dropdown-item:hover,
html[data-theme="dark"] .navbar-od .dropdown-item:focus {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

html[data-theme="dark"] .mega-menu .mega-col-title {
  color: #8b9bb5;
  border-bottom-color: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] .mega-menu .dropdown-item {
  color: #a8b6ce;
}

html[data-theme="dark"] .mega-menu .dropdown-item.fw-bold {
  color: #f0f4fc;
}

html[data-theme="dark"] .mega-menu .dropdown-item:hover,
html[data-theme="dark"] .mega-menu .dropdown-item:focus {
  background: rgba(77, 159, 255, .12);
  color: #8ec5ff;
}

html[data-theme="dark"] .year-chip {
  background: #172236;
  border-color: #3a4d68;
  color: #e8eef9;
}

html[data-theme="dark"] .year-chip:hover {
  border-color: #5da8f5;
  color: #8ec5ff;
}

html[data-theme="dark"] .archive-hint {
  background: #1a2a42;
  color: #c5d8f5;
}

html[data-theme="dark"] .today-note,
html[data-theme="dark"] .contest-note {
  background: linear-gradient(135deg, #2a2418 0%, #1f2430 100%);
  border-color: rgba(255, 196, 46, .28);
  color: #f0e6c8;
}

html[data-theme="dark"] .contest-note i {
  color: #ffc96b;
}

html[data-theme="dark"] .gosuslugi-widget .gos-logo {
  color: #7eb8ff;
}

html[data-theme="dark"] .contact-info-item:hover {
  background: rgba(77, 159, 255, .08);
}

html[data-theme="dark"] .contact-info-icon {
  background: #24324a;
  color: #8ec5ff;
}

html[data-theme="dark"] .contact-info-item.tone-red .contact-info-icon {
  background: #3a2430;
  color: #ff9aaa;
}

html[data-theme="dark"] .contact-info-item.tone-sun .contact-info-icon {
  background: #3a3018;
  color: #ffc96b;
}

html[data-theme="dark"] .od-badge-red {
  background: #3a2430;
  color: #ff9aaa;
}

html[data-theme="dark"] .od-badge-sun {
  background: #3a3018;
  color: #ffc96b;
}

html[data-theme="dark"] .od-badge-green {
  background: #183a2a;
  color: #7ddeb0;
}

html[data-theme="dark"] .pick-num {
  color: #3a4d68;
}

html[data-theme="dark"] .search-hit:hover {
  border-color: rgba(77, 159, 255, .35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .breadcrumb-od a {
  color: #7eb8ff;
}

html[data-theme="dark"] .card-od-media .od-badge {
  background: rgba(23, 34, 54, .94);
  color: #e8eef9;
}

html[data-theme="dark"] ::selection {
  background: #ffc42e;
  color: #14213d;
}

html[data-theme="dark"] .card-action {
  background: color-mix(in srgb, var(--card-accent) 12%, #172236);
  border-color: color-mix(in srgb, var(--card-accent) 28%, #2f3f58);
  color: color-mix(in srgb, var(--card-accent) 55%, #fff);
}

html[data-theme="dark"] .card-action i {
  background: rgba(255, 255, 255, .1);
  color: inherit;
}

html[data-theme="dark"] .soc-card:hover {
  background: rgba(77, 159, 255, .08);
}

html[data-theme="dark"] .soc-card b {
  color: #f0f4fc;
}

html[data-theme="dark"] .yunkor:hover .yunkor-name {
  color: #8ec5ff;
}

html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus {
  -webkit-text-fill-color: #edf2fb;
  caret-color: #edf2fb;
  -webkit-box-shadow: 0 0 0 1000px #172236 inset;
  transition: background-color 9999s ease-out 0s;
}

/* ===================================================== ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ */
body.bvi {
  --od-bg: #ffffff;
  background-image: none !important;
  background-color: #fff !important;
  font-size: 1.24rem;
  filter: none;
}
body.bvi .site-box { box-shadow: none; border-radius: 0; max-width: 100%; }
body.bvi .hero-banner-overlay { background: rgba(0, 0, 0, .78); }
body.bvi .hero-content { background: transparent; color: #fff; }
body.bvi .hero-actions-bar { background: #fff; }
body.bvi .hero-media { filter: grayscale(1) contrast(.75); }
body.bvi .card-od, body.bvi .rubric-card, body.bvi .widget, body.bvi .fact-card,
body.bvi .issue-card, body.bvi .contest-card, body.bvi .parent-card, body.bvi .card-action { border: 2px solid #000; box-shadow: none; border-radius: 0; }
body.bvi .card-od:hover, body.bvi .rubric-card:hover, body.bvi .fact-card:hover, body.bvi .parent-card:hover { transform: none; box-shadow: none; }
body.bvi .section-alt, body.bvi .join-block, body.bvi .media-school, body.bvi .footer-od,
body.bvi .topbar, body.bvi .navbar-od, body.bvi .widget-head { background: #000 !important; color: #fff !important; }
body.bvi .card-icon, body.bvi .contact-info-icon, body.bvi .step-num,
body.bvi .soc-card .ico, body.bvi .od-badge { background: #000 !important; color: #fff !important; box-shadow: none; }
body.bvi .btn { border-radius: 0; background: #000 !important; color: #fff !important; border: 2px solid #000; box-shadow: none; }
body.bvi a { color: #00309e; text-decoration: underline; }
body.bvi .footer-od a, body.bvi .topbar a, body.bvi .navbar-od a, body.bvi .hero a { color: #ffe600; }
body.bvi img:not(.brand-logo):not(.brand-wordmark):not(.footer-logo) { filter: grayscale(1); }
.js body.bvi .reveal, body.bvi .reveal { opacity: 1; transform: none; }

/* ========================================================== МОБИЛЬНАЯ ВЕРСИЯ */
/* Ручное переключение: страница сжимается до ширины телефона, срабатывают
   те же брейкпоинты Bootstrap, что и на реальном мобильном устройстве. */
body.mobile-view { background-color: #dfe8f6; }
body.mobile-view .site-box { max-width: 430px; margin: 0 auto; border-radius: 0; box-shadow: none; min-height: 100vh; }
body.mobile-view .container, body.mobile-view .container-fluid { padding-left: 14px; padding-right: 14px; }
body.mobile-view .row > * { flex: 0 0 100%; max-width: 100%; }
body.mobile-view .col-lg-8, body.mobile-view .col-lg-4, body.mobile-view .col-lg-6,
body.mobile-view .col-md-6, body.mobile-view .col-md-4, body.mobile-view .col-sm-6,
body.mobile-view .col-6, body.mobile-view .col-lg-2, body.mobile-view .col-lg-3 { flex: 0 0 100%; max-width: 100%; }
body.mobile-view .od-mobile-drawer { width: 50%; max-width: 50%; }
body.mobile-view .hero-inner { padding: 0; }
body.mobile-view .yunkor-grid { grid-template-columns: repeat(4, 1fr); }
body.mobile-view .news-item { flex-direction: column; }
body.mobile-view .contest-card { flex-direction: column; }

/* ========================================================= ВНУТРЕННИЕ СТРАНИЦЫ */
.page-hero {
  background: linear-gradient(180deg, #f4f8ff 0%, #fff 100%);
  padding: 28px 0 24px;
  border-bottom: 1px solid rgba(11, 95, 216, .08);
}
.page-hero-title {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 900;
  margin: 12px 0 0;
  color: var(--od-blue-dark);
  line-height: 1.15;
}
.page-hero-sub { color: var(--od-muted); margin: 10px 0 0; font-size: 1.02rem; max-width: 640px; }
.breadcrumb-od {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-size: .84rem; font-weight: 700; color: var(--od-muted);
}
.breadcrumb-od a { color: var(--od-blue); }
.breadcrumb-od a:hover { color: var(--od-red); }
.breadcrumb-sep { opacity: .45; font-size: .7rem; }
.breadcrumb-current { color: var(--od-muted); }
.container-narrow { max-width: 820px; }
.article-hero { margin: 0 0 24px; border-radius: 20px; overflow: hidden; box-shadow: var(--od-shadow); }
.article-hero img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 18px; font-size: .88rem; color: var(--od-muted); font-weight: 600; }
.article-lead { font-size: 1.12rem; font-weight: 700; color: var(--od-ink); line-height: 1.55; margin-bottom: 18px; }
.article-byline { color: var(--od-muted); font-weight: 700; margin-bottom: 22px; }
.article-body { font-size: 1.02rem; line-height: 1.72; color: var(--od-ink); }
.article-body p { margin-bottom: 1rem; }
.article-back { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--od-line); }
.yunkor-lg { text-decoration: none; }
.yunkor-lg img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; box-shadow: var(--od-shadow); }
.yunkor-profile-card {
  background: linear-gradient(165deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(11, 95, 216, .1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(9, 40, 105, .06);
}
.yunkor-profile-main {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.yunkor-profile-photo {
  flex: 0 0 auto;
  width: auto;
  max-width: min(40%, 380px);
  margin: 0;
  background: #eef4ff;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}
.yunkor-profile-photo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  display: block;
  object-fit: contain;
  object-position: center top;
}
.yunkor-profile-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
}
.yunkor-about-title {
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0 0 14px;
  color: var(--od-blue-dark);
}
.yunkor-about {
  flex: 1 1 auto;
}
.yunkor-about .article-body {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--od-ink);
}
.yunkor-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--od-line);
}
html[data-theme="dark"] .yunkor-profile-photo {
  background: #121b2c;
}
html[data-theme="dark"] .yunkor-about-title {
  color: #f0f4fc;
}
@media (max-width: 767.98px) {
  .yunkor-profile-main {
    flex-direction: column;
  }
  .yunkor-profile-photo {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-height: 0;
  }
  .yunkor-profile-photo img {
    width: 100%;
    height: auto;
    max-height: 70vh;
  }
  .yunkor-profile-content {
    padding: 22px 20px 24px;
  }
}
.yunkor-profile-img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; box-shadow: var(--od-shadow-lg); }

.editorial-panel {
  background: linear-gradient(165deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(11, 95, 216, .1);
  border-radius: 24px;
  box-shadow: 0 8px 26px rgba(9, 40, 105, .06);
}
.editorial-panel-main {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 30px 32px;
}
.editorial-panel-logo {
  flex: 0 0 auto;
  width: 140px;
  margin: 0;
}
.editorial-panel-logo img {
  width: 100%;
  height: auto;
  display: block;
}
.editorial-panel-content {
  flex: 1 1 auto;
  min-width: 0;
}
.editorial-panel-content p:last-child {
  margin-bottom: 0;
}
html[data-theme="dark"] .editorial-panel {
  background: linear-gradient(165deg, #172236 0%, #121b2c 100%);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: none;
}
@media (max-width: 575.98px) {
  .editorial-panel-main {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px 20px;
    text-align: center;
  }
  .editorial-panel-logo {
    width: 112px;
  }
}

/* --- О нас */
.about-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px 40px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--od-blue-deep) 0%, var(--od-blue) 55%, var(--od-sky) 120%);
  box-shadow: 0 18px 48px rgba(9, 40, 105, .18);
  position: relative;
  overflow: hidden;
}
.about-intro::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 196, 46, .14);
  top: -120px;
  right: -80px;
  pointer-events: none;
}
.about-intro-logo {
  margin: 0;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.about-intro-logo img {
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .2));
}
.about-intro-body {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.about-intro-kicker {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--od-sun);
  margin-bottom: 10px;
}
.about-intro-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 12px;
}
.about-intro-text {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  line-height: 1.65;
  max-width: 62ch;
}
.about-timeline {
  max-width: 720px;
}
.about-timeline-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 24px;
  padding-bottom: 28px;
  position: relative;
}
.about-timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 43px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--od-blue), var(--od-sky-soft));
}
.about-timeline-year {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--od-blue);
  text-align: right;
  padding-top: 14px;
  line-height: 1.2;
}
.about-timeline-card {
  background: linear-gradient(165deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(11, 95, 216, .1);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 6px 20px rgba(9, 40, 105, .06);
}
.about-timeline-card h3 {
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.about-timeline-card p {
  margin: 0;
  color: var(--od-muted);
  font-size: .95rem;
  line-height: 1.55;
}
.about-audience {
  --card-accent: var(--od-blue);
  --card-accent-2: var(--od-sky);
  --card-glow: rgba(11, 95, 216, .08);
  height: 100%;
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(11, 95, 216, .1);
  background: linear-gradient(165deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 8px 26px rgba(9, 40, 105, .06);
  transition: transform .28s ease, box-shadow .28s ease;
}
.about-audience:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(9, 40, 105, .1);
}
.about-audience.tone-red { --card-accent: var(--od-red); --card-accent-2: #ff8a5c; }
.about-audience.tone-sun { --card-accent: #e39400; --card-accent-2: var(--od-sun); }
.about-audience-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 1.35rem;
  color: var(--card-accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 12%, #fff), color-mix(in srgb, var(--card-accent-2) 18%, #fff));
}
.about-audience h3 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.about-audience p {
  margin: 0;
  color: var(--od-muted);
  font-size: .94rem;
  line-height: 1.55;
}
.about-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding: 28px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--od-sky-soft) 0%, #fff 55%, var(--od-sun-soft) 100%);
  border: 1px solid rgba(11, 95, 216, .12);
}
.about-cta h3 {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.about-cta p {
  color: var(--od-muted);
  font-size: .95rem;
}

/* --- Редакция */
.editorial-step {
  --card-accent: var(--od-blue);
  height: 100%;
  padding: 26px 24px;
  border-radius: 20px;
  border: 1px solid rgba(11, 95, 216, .1);
  background: linear-gradient(165deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 8px 26px rgba(9, 40, 105, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.editorial-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(9, 40, 105, .1);
}
.editorial-step.tone-red { --card-accent: var(--od-red); }
.editorial-step.tone-sun { --card-accent: #e39400; }
.editorial-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--card-accent), color-mix(in srgb, var(--card-accent) 70%, #fff));
  margin-bottom: 14px;
}
.editorial-step h3 {
  font-size: 1.08rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.editorial-step p {
  margin: 0;
  color: var(--od-muted);
  font-size: .94rem;
  line-height: 1.55;
}
.editorial-info-card {
  height: 100%;
  padding: 28px 26px;
  border-radius: 20px;
  border: 1px solid rgba(11, 95, 216, .1);
  background: linear-gradient(165deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 8px 26px rgba(9, 40, 105, .06);
}
.editorial-info-card.tone-warm {
  background: linear-gradient(165deg, #fff9f0 0%, #fff 100%);
  border-color: rgba(255, 166, 46, .2);
}
.editorial-info-card h3 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 14px;
}
.editorial-info-card p {
  color: var(--od-muted);
  margin-bottom: 0;
  line-height: 1.55;
}
.editorial-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.editorial-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  color: var(--od-muted);
  font-size: .95rem;
}
.editorial-info-list i {
  color: var(--od-blue);
  margin-top: 3px;
}
html[data-theme="dark"] .about-intro {
  box-shadow: none;
}
html[data-theme="dark"] .about-timeline-card,
html[data-theme="dark"] .about-audience,
html[data-theme="dark"] .editorial-step,
html[data-theme="dark"] .editorial-info-card {
  background: linear-gradient(165deg, #172236 0%, #121b2c 100%);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: none;
}
html[data-theme="dark"] .about-timeline-year {
  color: var(--od-sky);
}
html[data-theme="dark"] .about-timeline-card h3,
html[data-theme="dark"] .about-audience h3,
html[data-theme="dark"] .editorial-step h3,
html[data-theme="dark"] .editorial-info-card h3,
html[data-theme="dark"] .about-cta h3 {
  color: #f0f4fc;
}
html[data-theme="dark"] .about-cta {
  background: linear-gradient(135deg, #172236 0%, #1a2740 100%);
  border-color: rgba(255, 255, 255, .08);
}
html[data-theme="dark"] .editorial-info-card.tone-warm {
  background: linear-gradient(165deg, #1f2430 0%, #172236 100%);
  border-color: rgba(255, 166, 46, .15);
}
@media (max-width: 767.98px) {
  .about-intro {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 24px;
  }
  .about-intro-logo img {
    margin: 0 auto;
  }
  .about-intro-text {
    margin: 0 auto;
  }
  .about-timeline-item {
    grid-template-columns: 72px 1fr;
    gap: 4px 16px;
  }
  .about-timeline-item:not(:last-child)::before {
    left: 35px;
  }
  .about-timeline-year {
    font-size: 1rem;
    padding-top: 12px;
  }
  .about-cta {
    padding: 22px 20px;
  }
}
.video-thumb-wrap { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--od-shadow); }
.video-thumb-wrap img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.play-badge.lg {
  width: 60px;
  height: 60px;
}
.play-badge.lg i { font-size: 1.45rem; }
.search-page-box .form-control-lg { border-radius: 14px; border: 2px solid var(--od-line); padding: .85rem 1.1rem; }
.search-hit {
  display: block; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--od-line);
  margin-bottom: 10px; background: #fff; transition: .18s ease;
}
.search-hit:hover { border-color: rgba(11, 95, 216, .25); box-shadow: var(--od-shadow); transform: translateY(-2px); }
.search-hit b { display: block; color: var(--od-ink); margin-bottom: 4px; }
.search-hit span { font-size: .88rem; color: var(--od-muted); }
.contest-detail .article-body { margin-top: 1rem; }
body.mobile-view .d-none.d-sm-inline-flex { display: none !important; }

/* фокус — доступность с клавиатуры */
a:focus-visible, button:focus-visible, .form-control:focus-visible, .year-chip:focus-visible {
  outline: 3px solid var(--od-sun);
  outline-offset: 2px;
}

.search-od .form-control:focus-visible,
.search-od .btn:focus-visible,
.archive-toolbar .search-od .form-control:focus-visible,
.archive-toolbar .search-od .btn:focus-visible {
  outline: none;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--od-sun); color: var(--od-ink); padding: 12px 22px; font-weight: 900; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }
