/* ====== БИЦ Дубна — поверх темы Modern ====== */
:root {
  --bic-blue: #2d5f85;
  --bic-blue-soft: #45749d;
  --bic-blue-light: #789cc2;
  --bic-navy: #262b51;
  --bic-text: #1a2238;
  --bic-text-muted: #4b5168;
  --bic-bg-soft: #f4f6fa;
}

@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;700;800;900&family=Roboto:wght@400;500;700&display=swap');

body { font-family: 'Roboto', system-ui, -apple-system, sans-serif !important; color: var(--bic-text); }
h1,h2,h3,h4,h5 { font-family: 'Mulish', 'Montserrat', sans-serif !important; color: var(--bic-navy) !important; font-weight: 800 !important; letter-spacing: -0.01em; }

/* ===== Хлебные крошки (Меню › Раздел) — синяя рамка, белый текст ===== */
html body .icms-body-toolbox { display: block !important; padding: 0 !important; margin: 8px 0 4px !important; }
html body ol.breadcrumb {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  background: #2d5f85 !important;
  border-radius: 10px !important;
  padding: 9px 18px !important;
  margin: 0 0 16px !important;
  list-style: none !important;
  box-shadow: 0 4px 14px rgba(38,43,81,.12);
}
html body ol.breadcrumb .breadcrumb-item,
html body ol.breadcrumb .breadcrumb-item a,
html body ol.breadcrumb .breadcrumb-item a *,
html body ol.breadcrumb .breadcrumb-item span,
html body ol.breadcrumb .breadcrumb-item.active {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
}
html body ol.breadcrumb .breadcrumb-item svg { fill: #ffffff !important; color: #fff !important; }
html body ol.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›" !important;
  color: #ffffff !important;
  padding: 0 9px !important;
  font-weight: 700;
  font-size: 16px;
}
html body ol.breadcrumb .breadcrumb-item a:hover { text-decoration: underline !important; color: #fff !important; }
/* убираем лишний средний пункт «Страницы» — остаётся «🏠 › Раздел» */
html body ol.breadcrumb .breadcrumb-item:nth-child(2) { display: none !important; }
/* на главной крошки не нужны */
html.bic-is-home body .icms-body-toolbox,
html.bic-is-home body ol.breadcrumb { display: none !important; }

/* Глобально — никакого горизонтального скролла */
html, body { overflow-x: hidden !important; max-width: 100vw !important; }
* { box-sizing: border-box; }

/* Убираем большой пустой промежуток между шапкой и контентом */
html body main.row > .col-lg,
html body .content_item.pages_item { margin-top: 0 !important; padding-top: 0 !important; }
html body .content_item.my-3 { margin-top: 0 !important; }
html body section.l-content > .container,
html body main.row { padding-top: 8px !important; }
/* Заголовок страницы — компактнее */
html body .content_item .pages_item h1,
html body h1.pages-title,
html body .item-page > h1 { margin-top: 6px !important; margin-bottom: 10px !important; }

/* ====================================================
   ШАПКА в стиле Соликамска — геометрический баннер
   ==================================================== */
html body header.icms-header, html body .icms-header { background: transparent !important; padding: 0 !important; }

/* Баннер с геометрией */
html body .icms-header__middle {
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  background: #262b51 url('/templates/modern/images/banner.svg') center/cover no-repeat !important;
  padding: 28px 32px !important;
  min-height: 180px;
  position: relative;
}
html body .icms-header__middle .container {
  max-width: 1280px !important;
  align-items: flex-end !important;
  min-height: 124px;
}
/* Официальный логотип — белая версия, прямо на баннере (без плашки) */
html body .navbar-brand img,
html body .icms-header__middle img {
  content: url('/templates/modern/images/logo-w.png') !important;
  max-width: 100% !important;
  width: auto !important;
  height: 80px !important;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.25)) !important;
}
html body .navbar-brand {
  max-width: 460px !important;
  flex-shrink: 0 !important;
  flex-grow: 0;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center;
}

/* Тёмная панель меню */
html body .icms-header__bottom {
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #1d2347 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.15) !important;
  border: 0 !important;
  padding: 0 !important;
}
html body .icms-header__bottom .container { max-width: 1280px !important; }
html body .icms-header__bottom .navbar,
html body .icms-header__bottom .navbar-nav,
html body .menu-main,
html body nav.icms-navbar { border: 0 !important; box-shadow: none !important; background: transparent !important; }
html body .menu-main, html body .icms-header__bottom .navbar-nav { gap: 0; }
html body .menu-main li.nav-item { list-style: none !important; }

/* Пункты меню — тёмная панель, без пилюль */
html body .menu-main .nav-link,
html body .icms-header__bottom .navbar-nav .nav-link,
html body ul.navbar-nav li.nav-item a.nav-link {
  display: inline-flex !important;
  align-items: center;
  color: #ffffff !important;
  font-family: 'Mulish','Montserrat',sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 18px 18px !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  transition: background .2s ease, color .2s ease !important;
  position: static !important;
}
html body .menu-main .nav-link span, html body .icms-header__bottom .nav-link span { text-decoration: none !important; border-bottom: 0 !important; background-image: none !important; }
html body .menu-main .nav-link:hover,
html body .icms-header__bottom .navbar-nav .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.1) !important;
}
/* активный пункт — тот же белый цвет, отметка подчёркиванием (меню одного цвета) */
html body .menu-main .nav-item.is-active .nav-link,
html body .menu-main .nav-link.active,
html body .icms-header__bottom .navbar-nav .nav-item.is-active .nav-link,
html body ul.navbar-nav li.nav-item.is-active a.nav-link {
  background: transparent !important;
  color: #ffffff !important;
  box-shadow: inset 0 -3px 0 #ffffff !important;
}
html body .menu-main .nav-item.is-active .nav-link span { color: #ffffff !important; }

/* стрелка у dropdown в тёмной панели */
html body .menu-main .dropdown-toggle::after {
  content: "" !important; display: inline-block !important;
  width: 6px; height: 6px; margin-left: 8px;
  border-right: 2px solid rgba(255,255,255,.7);
  border-bottom: 2px solid rgba(255,255,255,.7);
  transform: rotate(45deg) translateY(-2px);
}

/* ===== Прячем "Работает на InstantCMS" в подвале ===== */
.icms-footer a[href*="instantcms"],
footer a[href*="instantcms"],
.copyright a[href*="instantcms"],
.icms-footer__copyright a[href*="instantcms"] { display: none !important; }
.icms-footer__copyright,
footer .copyright { color: rgba(255,255,255,.55) !important; }

/* ===== Прячем Войти / Регистрация / Уведомления / Сообщения ===== */
html body .menu-header,
html body ul.navbar-nav.menu-header,
html body .icms-navbar-expanded.menu-header,
html body a[href="/auth/login"],
html body a[href="/auth/register"],
html body li.nav-item:has(a[href*="auth/login"]),
html body li.nav-item:has(a[href*="auth/register"]),
html body li.nav-item:has(a[href*="messages"]),
html body li.nav-item:has(a[href*="notices"]) { display: none !important; }

/* Тулбар админа (колокольчик, конверт, профиль) — только админ его видит, но прячем в любом случае */
html body .icms-toolbar,
html body .icms-header__user-toolbar { display: none !important; }

/* Бургер мобильного меню header */
html body .navbar-toggler[data-target="#target-header"],
html body button[data-target="#target-header"] { display: none !important; }

/* ===== Подвал-копирайт (волна — на блоке .bic-footer-extras выше) ===== */
.footer, footer.icms-footer, footer.icms-footer__bottom {
  background: var(--bic-navy) !important;
  margin-top: 0 !important;
}

/* ===== Топбар (добавляем JS-ом, поверх) ===== */
/* делаем фон страницы светло-голубой, чтобы плавающие полоски были видны */
html body { background: #eef2f7 !important; }

.bic-topbar {
  background: #15193a;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  padding: 8px 0;
}
.bic-topbar__inner { padding: 0 32px !important; max-width: 1280px; margin: 0 auto; }
.bic-topbar__right { gap: 20px !important; }

@media (max-width: 720px) {
  .bic-topbar { padding: 6px 0 !important; }
  .bic-topbar__inner { padding: 0 12px !important; font-size: 10px; flex-direction: column; gap: 3px !important; text-align: center; }
  .bic-topbar__right { gap: 12px !important; }
  html body .bic-hero, html body div.bic-hero { padding: 20px 16px !important; margin: 10px 8px !important; background-size: cover !important; }
  html body .bic-hero--compact { padding: 20px 16px !important; background-size: cover !important; }
  html body .bic-hero__inner { grid-template-columns: 1fr !important; gap: 10px !important; text-align: center; align-items: start !important; }
  html body .bic-hero__slogan h2 { font-size: 28px !important; }
  html body .bic-hero__slogan::before { margin: 0 auto 10px !important; }
  html body .bic-hero .bic-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; margin-top: 16px !important; padding-top: 14px !important; }
  html body .bic-stats strong { font-size: 28px !important; }
  html body .bic-hero .bic-lead { font-size: 15px !important; margin: 8px 0 12px !important; }
  /* меньше пустоты между секциями и заголовком на мобильном */
  html body .bic-section { margin: 20px 0 !important; }
  html body .bic-eyebrow { margin-bottom: 6px !important; }
  html body main.row, html body section.l-content > .container { padding-top: 4px !important; }
  html body .content_item h1, html body .pages_item h1 { font-size: 24px !important; margin: 4px 0 8px !important; }
  html body .bic-slider { margin-top: 10px !important; }
  html body .bic-section__head { margin-bottom: 14px !important; }
  html body .bic-section--soft { padding-top: 50px !important; }
  html body .bic-section--soft::before { height: 32px !important; }
  html body .bic-afisha-addr { margin: 4px 0 12px !important; }
  html body .bic-events-list { gap: 10px !important; }
}
.bic-topbar a, .bic-topbar a:hover { color: #fff; }
.bic-topbar__inner { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 16px; gap: 12px; flex-wrap: wrap; }
.bic-topbar__right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.bic-a11y-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  transition: all .2s ease;
}
.bic-a11y-btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); transform: translateY(-1px); }

/* ===== Hero — графичная версия с волной дизайнера ===== */
html body .bic-hero,
html body div.bic-hero {
  background: #262b51 !important;
  background-image:
    linear-gradient(135deg, #2d5f85 0%, #262b51 100%) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: #ffffff !important;
  padding: 56px 40px !important;
  border-radius: 18px;
  margin: 24px 0 !important;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  border: 0 !important;
  box-shadow: 0 10px 30px rgba(38,43,81,.18);
}
html body div.bic-hero * { color: #ffffff; }
.bic-hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 140px;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180' preserveAspectRatio='none'><path d='M0,70 C240,140 480,20 720,70 C960,120 1200,30 1440,90 L1440,180 L0,180 Z' fill='%23789cc2' opacity='0.35'/><path d='M0,100 C240,60 480,150 720,100 C960,50 1200,140 1440,90 L1440,180 L0,180 Z' fill='%2345749d' opacity='0.55'/><path d='M0,135 C240,100 480,170 720,130 C960,90 1200,160 1440,125 L1440,180 L0,180 Z' fill='%232d5f85' opacity='0.85'/></svg>");
  background-size: 100% 100%;
  pointer-events: none;
}
.bic-hero > * { position: relative; z-index: 1; }
.bic-hero * { color: #fff; }

/* ===== Компактный hero главной — светлый, слоган-волна одной строкой ===== */
html body div.bic-hero.bic-hero--home {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  text-align: center;
  padding: 8px 40px 0 !important;
  margin: 6px 0 18px !important;
}
html body div.bic-hero.bic-hero--home::before { display: none !important; }
html body div.bic-hero.bic-hero--home,
html body div.bic-hero.bic-hero--home p { color: var(--bic-text) !important; }
html body div.bic-hero.bic-hero--home .bic-lead {
  color: var(--bic-text-muted) !important;
  max-width: 720px;
  margin: 0 auto 16px !important;
  font-size: 17px;
}
html body div.bic-hero.bic-hero--home > p:not(.bic-lead) { margin: 0 0 4px; }
html body div.bic-hero.bic-hero--home a.bic-btn {
  background: var(--bic-blue) !important;
  color: #fff !important;
  border: 0 !important;
}
html body div.bic-hero.bic-hero--home a.bic-btn:hover { background: var(--bic-navy) !important; }
/* Слоган — одной строкой на любом экране, буквы волной */
html body div.bic-hero.bic-hero--home .bic-wave-slogan {
  font-family: 'Mulish','Montserrat',sans-serif !important;
  font-size: clamp(20px, 5.4vw, 50px);
  font-weight: 900;
  line-height: 1.5;
  margin: 0 0 6px !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #2d5f85;
}
html body div.bic-hero.bic-hero--home .bic-wave-slogan span {
  transition: transform .2s ease;
}
@media (max-width: 720px) {
  html body div.bic-hero.bic-hero--home { padding: 6px 14px 0 !important; }
  html body div.bic-hero.bic-hero--home .bic-lead { font-size: 15px; }
}
.bic-hero__inner {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.bic-hero .bic-eyebrow { color: var(--bic-blue-light) !important; text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 700; margin: 0 0 16px; }
.bic-hero .bic-lead { color: rgba(255,255,255,.92) !important; font-size: 19px; margin: 16px 0 24px; line-height: 1.5; }
.bic-hero p a.bic-btn {
  display: inline-block;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.35);
  padding: 14px 28px !important;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none !important;
  margin-right: 8px;
  margin-bottom: 8px;
  backdrop-filter: blur(4px);
  transition: all .25s ease;
}
.bic-hero p a.bic-btn:hover {
  background: #fff !important;
  color: var(--bic-blue) !important;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.bic-hero__slogan { text-align: center; }
html body .bic-hero__slogan h2 { color: #789cc2 !important; font-size: 46px; line-height: 1.05; margin: 0; font-weight: 900; letter-spacing: -0.02em; text-shadow: none; }
html body .bic-hero p, html body .bic-hero h1, html body .bic-hero h3 { color: #ffffff !important; }
html body .bic-hero h2:not(.bic-hero__slogan h2) { color: #ffffff !important; }
/* Слоган — оба цвета голубые (#789cc2) */
html body .bic-hero .bic-hero__slogan h2,
html body div.bic-hero .bic-hero__slogan h2 { color: #789cc2 !important; }
html body .bic-hero .bic-hero__slogan em { color: #789cc2 !important; font-style: italic; font-weight: 700; }
html body .bic-hero .bic-eyebrow { color: #789cc2 !important; }
html body .bic-hero .bic-lead { color: rgba(255,255,255,.92) !important; }

/* Кнопки в hero — белые на тёмном */
html body .bic-hero p a.bic-btn {
  background: rgba(255,255,255,.12) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255,255,255,.4) !important;
  padding: 13px 28px !important;
  border-radius: 50px;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all .25s ease;
  backdrop-filter: blur(4px);
}
html body .bic-hero p a.bic-btn:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #2d5f85 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
}
.bic-hero__slogan::before {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--bic-blue-light), transparent);
  margin: 0 auto 24px;
  border-radius: 2px;
}

.bic-hero--compact { padding: 44px 40px !important; text-align: left; background-size: cover !important; }
.bic-hero--compact .bic-lead { font-size: 18px; }

/* Белые карточки-подводки убраны ВЕЗДЕ, кроме страниц библиотек (у них внутри логотип-эмблема). */
html body div.bic-hero.bic-hero--compact:not(:has(img)) { display: none !important; }
html body div.bic-hero.bic-hero--compact .bic-eyebrow { display: none !important; }
/* Чёрный H1-заголовок страницы — дублирует заголовки секций, убираем везде */
html body article.col-lg > h1,
html body .content_item > h1,
html body main h1:first-of-type { display: none !important; }

/* Компактные шапки внутренних страниц — СВЕТЛЫЕ (надёжно читаемы в любом браузере) */
html body div.bic-hero.bic-hero--compact {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #e6eaf1 !important;
  box-shadow: 0 6px 20px rgba(38,43,81,.07) !important;
  border-radius: 16px;
}
html body div.bic-hero.bic-hero--compact::before { display: none !important; }
html body div.bic-hero.bic-hero--compact,
html body div.bic-hero.bic-hero--compact * { color: var(--bic-text) !important; }
html body div.bic-hero.bic-hero--compact .bic-eyebrow {
  color: var(--bic-blue) !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
}
html body div.bic-hero.bic-hero--compact .bic-lead { color: var(--bic-text-muted) !important; }
html body div.bic-hero.bic-hero--compact h1,
html body div.bic-hero.bic-hero--compact h2 { color: var(--bic-navy) !important; }
html body div.bic-hero.bic-hero--compact a.bic-btn {
  background: var(--bic-blue) !important;
  color: #fff !important;
}

/* ===== Stats ===== */
.bic-stats {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px !important;
  padding-top: 32px !important;
  border-top: 1px solid rgba(255,255,255,.18);
}
.bic-stats > div { text-align: center; }
html body .bic-stats > div {
  text-align: center;
  padding: 18px 12px;
  border-right: 1px solid rgba(120,156,194,.3);
  background: rgba(255,255,255,.08);
  border-radius: 10px;
}
html body .bic-stats > div:last-child { border-right: 1px solid rgba(120,156,194,.3); }
html body .bic-stats strong {
  display: block !important;
  font-size: 46px !important;
  font-family: 'Mulish','Montserrat' !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  line-height: 1 !important;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
html body .bic-stats span {
  display: block !important;
  font-size: 13px !important;
  color: #789cc2 !important;
  margin-top: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* ===== Волны-разделители в оформлении (брендбук) ===== */
html body .bic-section--soft {
  position: relative;
  padding-top: 72px !important;
}
html body .bic-section--soft::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 46px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0,40 C240,8 480,72 720,46 C960,20 1200,66 1440,40 L1440,80 L0,80 Z' fill='%23789cc2' opacity='0.28'/><path d='M0,54 C240,30 480,74 720,54 C960,34 1200,68 1440,52 L1440,80 L0,80 Z' fill='%2345749d' opacity='0.20'/></svg>");
  background-size: 100% 100%;
  pointer-events: none;
}
html body .bic-section--dark { position: relative; overflow: hidden; }
html body .bic-section--dark::after {
  content: "";
  position: absolute;
  left: -50px; bottom: -50px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(120,156,194,.22) 0%, transparent 65%);
  pointer-events: none;
}

/* Декоративная волна в правом верхнем углу графичных секций */
html body .bic-section--dark::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0,40 C240,72 480,8 720,40 C960,72 1200,14 1440,46 L1440,0 L0,0 Z' fill='%23789cc2' opacity='0.18'/></svg>");
  background-size: 100% 100%;
  pointer-events: none;
}
html body .bic-section--dark { padding-top: 70px !important; }

/* Если hero-фон не применился (Chrome), сами stats делаем тёмными */
html body .bic-hero .bic-stats {
  background: #262b51 !important;
  background-image: linear-gradient(135deg, #262b51 0%, #2d5f85 100%) !important;
  padding: 24px 16px !important;
  border-radius: 14px;
  margin-top: 32px !important;
  border-top: 0 !important;
}

/* ===== Sections ===== */
.bic-section { margin: 40px 0 !important; padding: 0; }
.bic-section h2 { font-size: 30px !important; margin: 0 0 24px !important; }
.bic-section__head { display: flex !important; justify-content: space-between; align-items: end; margin-bottom: 24px !important; flex-wrap: wrap; gap: 12px; }
.bic-section__head h2 { margin: 0 !important; }
.bic-section__head a { color: var(--bic-blue) !important; font-weight: 600 !important; text-decoration: none !important; }
.bic-section__head a:hover { text-decoration: underline !important; }
.bic-section--soft {
  background: linear-gradient(180deg, var(--bic-bg-soft) 0%, #ffffff 100%) !important;
  padding: 56px 48px !important;
  border-radius: 18px;
  border: 1px solid rgba(120,156,194,.18);
}
.bic-section--dark {
  background: linear-gradient(135deg, var(--bic-navy) 0%, var(--bic-blue) 100%) !important;
  color: #fff !important;
  padding: 56px 48px !important;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.bic-section--dark::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(120,156,194,.25) 0%, transparent 65%);
  pointer-events: none;
}
.bic-section--dark *, .bic-section--dark h2 { color: #fff !important; }
.bic-section--dark a { color: var(--bic-blue-light) !important; }

.bic-eyebrow { color: var(--bic-blue) !important; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; font-weight: 700; margin: 0 0 8px; }
.bic-lead { font-size: 18px; color: var(--bic-text-muted); line-height: 1.55; }

/* ===== Branches grid ===== */
.bic-branches {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
}
@media (max-width: 720px) {
  .bic-branches { grid-template-columns: 1fr !important; }
}
.bic-branch {
  background: #fff !important;
  border: 1px solid #e3e7ee !important;
  border-radius: 16px;
  padding: 28px !important;
  box-shadow: 0 4px 16px rgba(38,43,81,.06);
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  width: auto !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.bic-branch::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bic-blue) 0%, var(--bic-blue-light) 100%);
  opacity: 0;
  transition: opacity .25s ease;
}
.bic-branch:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(38,43,81,.12);
  border-color: var(--bic-blue-light) !important;
}
.bic-branch:hover::before { opacity: 1; }
.bic-branch h3 {
  color: var(--bic-blue) !important;
  font-size: 20px !important;
  margin: 0 !important;
  line-height: 1.2;
}
.bic-branch__sub {
  font-size: 13px !important;
  color: var(--bic-text-muted) !important;
  margin: 0 0 6px 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.bic-branch__addr {
  margin: 4px 0 12px 0 !important;
  font-size: 15px !important;
  color: var(--bic-text) !important;
}
.bic-branch__phone {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  margin: 0 !important;
  padding: 8px 0;
  border-top: 1px solid #f0f2f6;
  font-size: 15px !important;
  font-weight: 600;
  color: var(--bic-navy) !important;
  font-variant-numeric: tabular-nums;
}
.bic-branch__phone:first-of-type { border-top: 0; }
.bic-branch__phone-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--bic-text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bic-branch__hours {
  margin: 0 !important;
  padding: 8px 0;
  font-size: 13px !important;
  color: var(--bic-text-muted) !important;
  line-height: 1.5;
  border-top: 1px solid #f0f2f6;
}
.bic-branch__hours strong { color: var(--bic-text) !important; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.bic-sanitary {
  font-size: 12px !important;
  color: var(--bic-text-muted) !important;
  padding: 10px 12px !important;
  margin: 12px 0 0 0 !important;
  background: linear-gradient(90deg, rgba(120,156,194,.08) 0%, transparent 100%);
  border-radius: 6px;
  border-left: 3px solid var(--bic-blue-light);
  font-style: italic;
}

/* ===== Features ===== */
.bic-features {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 16px !important;
}
.bic-features article {
  background: #fff !important;
  border: 1px solid #e3e7ee !important;
  border-left: 4px solid var(--bic-blue) !important;
  padding: 22px !important;
  border-radius: 10px;
  transition: transform .25s ease, box-shadow .25s ease, border-left-width .25s ease;
}
.bic-features article:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(38,43,81,.08);
  border-left-width: 6px !important;
}
.bic-features h3 { font-size: 17px !important; margin: 0 0 8px !important; }
.bic-features p { margin: 0 !important; color: var(--bic-text-muted); font-size: 14px; line-height: 1.5; }

/* ===== Адрес-подзаголовок в афише ===== */
.bic-afisha-addr {
  font-family: 'Mulish','Montserrat',sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  color: var(--bic-blue) !important;
  margin: -8px 0 18px 0 !important;
  letter-spacing: 0.01em;
}

/* ===== Events list — табличная компоновка через grid ===== */
.bic-events-list,
div.bic-events-list {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.bic-event,
div.bic-event {
  display: grid !important;
  grid-template-columns: 90px 140px 1fr !important;
  align-items: center !important;
  column-gap: 20px !important;
  row-gap: 6px !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid #e3e7ee !important;
  padding: 18px 28px !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
  position: relative !important;
  text-decoration: none !important;
}
.bic-event:hover,
div.bic-event:hover {
  transform: translateX(4px) !important;
  border-color: var(--bic-blue) !important;
  box-shadow: 0 8px 22px rgba(38,43,81,.08) !important;
}

.bic-event__date,
.bic-event > .bic-event__date {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  font-variant-numeric: tabular-nums !important;
}
.bic-event__date::after,
.bic-event__date::before { display: none !important; content: none !important; }

.bic-event__day,
.bic-event .bic-event__day {
  display: block !important;
  font-family: 'Mulish','Montserrat',sans-serif !important;
  font-size: 30px !important;
  line-height: 1 !important;
  color: var(--bic-blue) !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
}
.bic-event__month,
.bic-event .bic-event__month {
  display: block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--bic-text-muted) !important;
  margin: 4px 0 0 0 !important;
  padding: 0 !important;
}

.bic-event__body,
.bic-event > .bic-event__body {
  display: contents !important;
}

.bic-event__type,
.bic-event .bic-event__type {
  justify-self: start !important;
  align-self: center !important;
  background: var(--bic-bg-soft) !important;
  color: var(--bic-blue) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 6px 14px !important;
  border-radius: 50px !important;
  margin: 0 !important;
  white-space: nowrap !important;
  border: 1px solid rgba(120,156,194,.25) !important;
}

.bic-event__title,
.bic-event h3.bic-event__title {
  color: var(--bic-navy) !important;
  font-size: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Mulish','Montserrat',sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

@media (max-width: 720px) {
  .bic-event,
  div.bic-event {
    grid-template-columns: 70px 1fr !important;
    grid-template-rows: auto auto !important;
    padding: 14px 18px !important;
    row-gap: 8px !important;
  }
  .bic-event__date { grid-row: 1 / 3 !important; }
  .bic-event__day { font-size: 26px !important; }
  .bic-event__type { grid-column: 2 / 3 !important; grid-row: 1 / 2 !important; font-size: 10px !important; padding: 4px 10px !important; }
  .bic-event__title { grid-column: 2 / 3 !important; grid-row: 2 / 3 !important; font-size: 15px !important; }
}

/* ===== Clubs grid ===== */
.bic-clubs-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 16px !important;
}
.bic-club {
  background: #fff !important;
  padding: 22px 22px 24px 22px !important;
  border-radius: 14px;
  border: 1px solid #e3e7ee;
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
/* Карточки книг (Книги Прислонова, Книги о Дубне, СМИ о Дубне) */
.bic-books { display: grid; gap: 14px; margin-top: 18px; }
.bic-book {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border: 1px solid #e3e7ee; border-radius: 14px; padding: 16px 20px;
}
html body .bic-book img { width: 130px; max-width: 34%; height: auto; border-radius: 8px; flex: 0 0 auto; margin: 0; box-shadow: 0 4px 12px rgba(38,43,81,.12); }
.bic-book__txt { display: flex; flex-direction: column; gap: 4px; }
.bic-book__txt strong { color: var(--bic-navy) !important; font-family: 'Mulish','Montserrat',sans-serif; font-size: 17px; line-height: 1.3; }
.bic-book__txt span { color: var(--bic-text-muted) !important; font-size: 14px; line-height: 1.4; }
.bic-book__links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
html body .bic-book__links a {
  display: inline-block; background: var(--bic-blue) !important; color: #fff !important;
  padding: 8px 18px; border-radius: 50px; font-weight: 700; font-size: 14px; text-decoration: none !important;
}
html body .bic-book__links a:hover { background: var(--bic-navy) !important; }
@media (max-width: 600px) { .bic-book { flex-direction: column; } html body .bic-book img { width: 150px; max-width: 100%; } }

/* Список статей подраздела краеведения (как на старом сайте, но чисто) */
.bic-kr-list { display: grid; gap: 10px; margin-top: 18px; }
html body a.bic-kr-item {
  display: block; background: #fff; border: 1px solid #e3e7ee; border-radius: 12px;
  padding: 16px 20px; text-decoration: none !important; color: var(--bic-navy) !important;
  font-weight: 700; font-size: 16px; line-height: 1.4;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
html body a.bic-kr-item:hover { transform: translateX(4px); border-color: var(--bic-blue-light); box-shadow: 0 6px 18px rgba(38,43,81,.1); }
/* Кнопка «назад к разделу» */
html body a.bic-kr-back { display: inline-block; margin-bottom: 16px; color: var(--bic-blue) !important; font-weight: 700; text-decoration: none !important; }
html body a.bic-kr-back:hover { text-decoration: underline !important; }

/* Текст статей краеведения — выключка по ширине (ровно по всей площади) */
html body .bic-kr-article p,
html body .bic-kr-article li { text-align: justify; hyphens: auto; }

/* Перенесённые статьи краеведения — типографика и картинки */
html body .bic-kr-article img,
html body .bic-section img { max-width: 100% !important; height: auto !important; border-radius: 10px; margin: 8px 0; }
html body .bic-kr-article h3 { color: var(--bic-navy) !important; margin: 0 0 14px; font-size: 22px; }
html body .bic-kr-article p { line-height: 1.6; margin: 0 0 12px; color: var(--bic-text); }
html body .bic-kr-article a { color: var(--bic-blue) !important; }
html body .bic-kr-article strong { color: var(--bic-navy); }
html body .bic-kr-article em { color: var(--bic-text-muted); }

/* Кликабельная карточка-ссылка (краеведение) */
html body a.bic-club--link { text-decoration: none !important; cursor: pointer; }
html body a.bic-club--link:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(38,43,81,.14); border-color: var(--bic-blue-light) !important; }
html body a.bic-club--link .bic-club__name { color: var(--bic-navy) !important; }
html body a.bic-club--link::before {
  content: "Открыть →"; position: absolute; right: 16px; bottom: 14px;
  font-size: 12px; font-weight: 700; color: var(--bic-blue) !important;
  opacity: 0; transition: opacity .2s ease;
}
html body a.bic-club--link:hover::before { opacity: 1; }
.bic-club::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 70px; height: 70px;
  background: radial-gradient(circle at 100% 100%, rgba(120,156,194,.18) 0%, transparent 70%);
  pointer-events: none;
  transition: width .3s ease, height .3s ease;
}
.bic-club:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(38,43,81,.1);
  border-color: var(--bic-blue-light) !important;
}
.bic-club:hover::after { width: 140px; height: 140px; }
.bic-club__tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--bic-bg-soft);
  color: var(--bic-blue) !important;
  padding: 4px 12px !important;
  border-radius: 50px;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700 !important;
  margin: 0 !important;
}
.bic-club__name {
  font-size: 18px !important;
  margin: 0 !important;
  color: var(--bic-navy) !important;
  line-height: 1.25;
  font-family: 'Mulish','Montserrat',sans-serif !important;
  font-weight: 800 !important;
}
.bic-club__desc {
  color: var(--bic-text-muted) !important;
  font-size: 14px !important;
  margin: 0 !important;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* ===== Director card ===== */
html body .bic-director,
html body div.bic-director {
  background: #ffffff !important;
  background-image: none !important;
  color: #2d5f85 !important;
  padding: 48px 40px !important;
  border-radius: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(120,156,194,.35) !important;
  box-shadow: 0 8px 24px rgba(38,43,81,.08);
}
html body .bic-director h2 { color: #262b51 !important; font-size: 30px; margin: 8px 0 16px; font-weight: 800; }
html body .bic-director p, html body .bic-director .bic-director__contacts { color: #2d5f85 !important; font-size: 20px !important; font-weight: 700 !important; }
html body .bic-director .bic-eyebrow { color: #45749d !important; font-size: 12px; letter-spacing: 0.12em; font-weight: 800; }
.bic-director::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(120,156,194,.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(75,80,128,.3) 0%, transparent 40%);
  pointer-events: none;
}
.bic-director > * { position: relative; z-index: 1; }
.bic-director__contacts {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 16px !important;
  color: #fff !important;
  font-variant-numeric: tabular-nums;
}
.bic-director h2 { color: #fff !important; }
.bic-director .bic-eyebrow { color: var(--bic-blue-light) !important; }
.bic-director a.bic-btn { display: inline-block; background: rgba(255,255,255,.18) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.3); margin: 4px 4px; padding: 12px 22px; border-radius: 8px; text-decoration: none !important; }
.bic-director a.bic-btn:hover { background: rgba(255,255,255,.28) !important; }
.bic-director a.bic-btn--primary { background: #fff !important; color: var(--bic-blue) !important; }

/* ===== Blockquote ===== */
.bic-section blockquote {
  border-left: 4px solid var(--bic-blue-light) !important;
  background: var(--bic-bg-soft) !important;
  color: var(--bic-text) !important;
  padding: 20px 28px !important;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  margin: 24px 0 !important;
}
html body .bic-section--dark blockquote,
html body div.bic-section--dark > blockquote,
html body article .bic-section--dark blockquote {
  border-left: 4px solid var(--bic-blue) !important;
  background: #ffffff !important;
  color: #1a2238 !important;
  padding: 28px 32px 28px 36px !important;
  border-radius: 0 16px 16px 0;
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  margin: 28px 0 !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
}
.bic-section--dark blockquote::before {
  content: "\201C";
  position: absolute;
  top: -10px; left: 20px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: rgba(45,95,133,.15);
  line-height: 1;
  pointer-events: none;
}
html body .bic-section blockquote, html body .bic-section blockquote * { color: #2d5f85 !important; }
html body .bic-section--dark blockquote,
html body .bic-section--dark blockquote *,
html body .bic-section--dark blockquote p,
html body div.bic-section--dark blockquote,
html body div.bic-section--dark blockquote * { color: #2d5f85 !important; }
html body .bic-section--dark blockquote cite,
html body div.bic-section--dark blockquote cite { color: #262b51 !important; opacity: 1; display: block; margin-top: 16px; font-style: normal; font-size: 14px; font-weight: 800; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .bic-hero__inner { grid-template-columns: 1fr !important; }
  .bic-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .bic-section--soft, .bic-section--dark, .bic-hero, .bic-hero--compact { padding: 24px !important; }
}

/* ===== Карточки филиалов на главной ===== */
html body a.bic-branch-card {
  background: #fff !important;
  padding: 26px 22px !important;
  border-radius: 16px;
  border: 1px solid #e3e7ee;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
html body a.bic-branch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(38,43,81,.12);
  border-color: var(--bic-blue-light) !important;
}
.bic-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  color: #fff !important;
  font-family: 'Mulish','Montserrat',sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 12px rgba(38,43,81,.18);
}
.bic-emblem--levo { background: linear-gradient(135deg, #2d5f85, #262b51); }
.bic-emblem--family { background: linear-gradient(135deg, #45749d, #2d5f85); }
.bic-emblem--river { background: linear-gradient(135deg, #789cc2, #45749d); }
.bic-emblem--culture { background: linear-gradient(135deg, #4b5080, #262b51); }

/* Настоящие логотипы филиалов */
html body img.bic-branch-logo {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 64px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}
html body img.bic-branch-logo--hero {
  max-height: 90px;
  margin-bottom: 18px;
}
@media (max-width: 720px) {
  html body img.bic-branch-logo--hero { max-height: 64px; }
}
html body a.bic-branch-card .bic-club__name { color: var(--bic-navy) !important; font-size: 18px !important; margin: 0 !important; }
html body a.bic-branch-card .bic-club__desc { color: var(--bic-text-muted) !important; font-size: 13px !important; margin: 0 !important; }
.bic-branch-depts { display: block; font-weight: 700; color: var(--bic-blue) !important; font-size: 14px; }
.bic-branch-addr2 { display: block; color: var(--bic-text-muted) !important; font-size: 13px; margin-top: 2px; }
.bic-branch-phone2 { display: block; color: var(--bic-blue) !important; font-weight: 700; font-size: 13px; margin-top: 4px; }
html body a.bic-branch__map { display: inline-block; margin-top: 10px; color: var(--bic-blue) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; }
html body a.bic-branch__map:hover { text-decoration: underline !important; }

/* Иконка MAX в шапке */
.bic-soc--max { font-size: 13px !important; font-weight: 800; }

/* ===== Новости (главная) ===== */
.bic-news-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 20px !important;
}
.bic-news {
  background: #fff !important;
  border: 1px solid #e3e7ee;
  border-radius: 16px;
  padding: 24px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-top: 4px solid var(--bic-blue) !important;
}
.bic-news:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(38,43,81,.12);
  border-color: var(--bic-blue-light) !important;
  border-top-color: var(--bic-blue) !important;
}
.bic-news__date {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bic-blue) !important;
}
.bic-news__title {
  font-size: 18px !important;
  margin: 0 !important;
  color: var(--bic-navy) !important;
  line-height: 1.3;
}
.bic-news__text {
  font-size: 14px !important;
  color: var(--bic-text-muted) !important;
  margin: 0 !important;
  line-height: 1.55;
}

/* ===== Список документов ===== */
.bic-docs { display: flex; flex-direction: column; gap: 10px; }
html body a.bic-doc {
  display: flex !important;
  align-items: center;
  gap: 14px;
  background: #fff !important;
  border: 1px solid #e3e7ee;
  border-left: 4px solid var(--bic-blue) !important;
  border-radius: 10px;
  padding: 16px 20px !important;
  text-decoration: none !important;
  color: var(--bic-navy) !important;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
html body a.bic-doc:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(38,43,81,.08);
  border-left-color: var(--bic-blue-light) !important;
  color: var(--bic-blue) !important;
}
.bic-doc__ico { font-size: 22px; flex: 0 0 auto; }
.bic-doc__name { line-height: 1.4; flex: 1 1 auto; }
.bic-doc__ext {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--bic-blue);
  padding: 4px 10px;
  border-radius: 50px;
}

/* ===== Баннеры MAX ===== */
.bic-max-banners {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 20px !important;
  margin-top: 8px;
}
.bic-max-banner {
  margin: 0 !important;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(38,43,81,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.bic-max-banner:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(38,43,81,.14); }
.bic-max-banner img { display: block; width: 100%; height: auto; }
.bic-max-banner figcaption {
  padding: 12px 16px;
  font-family: 'Mulish','Montserrat',sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--bic-navy);
  text-align: center;
  background: var(--bic-bg-soft);
}

/* ===== Сервисы / электронные ресурсы ===== */
.bic-services-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 14px !important;
}
html body a.bic-service {
  display: flex !important;
  align-items: center;
  gap: 14px;
  background: #fff !important;
  padding: 18px 22px !important;
  border-radius: 12px;
  border: 1px solid #e3e7ee;
  text-decoration: none !important;
  color: var(--bic-navy) !important;
  font-weight: 700;
  font-family: 'Mulish','Montserrat',sans-serif !important;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
html body a.bic-service:hover {
  transform: translateY(-2px);
  border-color: var(--bic-blue) !important;
  box-shadow: 0 8px 20px rgba(38,43,81,.1);
  color: var(--bic-blue) !important;
}
.bic-service__ico { font-size: 26px; line-height: 1; flex: 0 0 auto; }

/* ===== Выпадающее подменю Филиалы ===== */
html body .menu-main li.nav-item { position: relative !important; }
html body .menu-main li.nav-item .dropdown-menu {
  display: block !important;
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  min-width: 290px;
  background: #1d2347 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(38,43,81,.28) !important;
  padding: 8px !important;
  list-style: none !important;
  z-index: 1000;
  border: 1px solid rgba(255,255,255,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  margin: 0 !important;
}
html body .menu-main li.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
html body .menu-main li.nav-item .dropdown-menu li { list-style: none !important; }
html body .menu-main li.nav-item .dropdown-menu a,
html body .menu-main li.nav-item .dropdown-menu a.dropdown-item {
  display: block !important;
  padding: 11px 16px !important;
  border-radius: 8px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
}
html body .menu-main li.nav-item .dropdown-menu a span,
html body .menu-main li.nav-item .dropdown-menu a.dropdown-item span { color: #ffffff !important; }
html body .menu-main li.nav-item .dropdown-menu a:hover,
html body .menu-main li.nav-item .dropdown-menu a.dropdown-item:hover {
  background: rgba(255,255,255,.12) !important;
  color: #ffffff !important;
}
/* стрелочка-индикатор у "Филиалы" */
html body .menu-main .dropdown-toggle::after {
  content: "" !important;
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .6;
}

/* ===== Баннер: соцсети + бейдж a11y ===== */
.bic-banner-social {
  position: absolute;
  top: 24px; right: 32px;
  display: flex;
  gap: 10px;
  z-index: 5;
}
.bic-soc {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #2d5f85 !important;
  border-radius: 10px;
  font-family: 'Mulish','Montserrat',sans-serif;
  font-weight: 900;
  font-size: 18px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.bic-soc:hover { transform: translateY(-2px); background: #2d5f85; color: #fff !important; }
.bic-banner-a11y {
  position: absolute;
  top: 0; left: 0;
  background: #2d5f85;
  color: #fff;
  border: 0;
  padding: 14px 16px;
  border-radius: 0 0 12px 0;
  font-family: 'Mulish','Montserrat',sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: background .2s ease;
}
.bic-banner-a11y:hover { background: #262b51; }

@media (max-width: 720px) {
  html body .icms-header__middle { padding: 56px 12px 16px !important; min-height: auto; background-size: cover !important; }
  html body .navbar-brand { max-width: calc(100% - 16px) !important; padding: 0 !important; }
  html body .navbar-brand img, html body .icms-header__middle img { height: 50px !important; }
  .bic-banner-social { top: 10px; right: 10px; gap: 6px; }
  .bic-soc { width: 36px; height: 36px; font-size: 15px; border-radius: 8px; }
  .bic-banner-a11y { font-size: 10px; padding: 8px 10px; }
}

/* ============ МОБИЛЬНОЕ МЕНЮ (тёмная панель, бургер) ============ */
@media (max-width: 991px) {
  /* Убираем горизонтальное переполнение */
  html, body { overflow-x: hidden !important; max-width: 100% !important; }
  html body .icms-header__middle,
  html body .icms-header__middle .container,
  html body .icms-header__bottom .container,
  html body .container { max-width: 100% !important; }
  html body .icms-header__middle .container { min-height: auto !important; }
  /* Тёмный фон панели и всех вложенных контейнеров */
  html body .icms-header__bottom,
  html body .icms-header__bottom .container,
  html body .icms-header__bottom .navbar,
  html body .icms-header__bottom nav.navbar {
    background: #1d2347 !important;
  }
  html body .icms-header__bottom .navbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px !important;
    flex-wrap: wrap;
  }
  /* Текст-бренд в мобильной панели → "МЕНЮ" (лого уже на баннере) */
  html body .icms-navbar-brand__show_on_hide {
    color: #fff !important;
    font-family: 'Mulish','Montserrat',sans-serif !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    font-size: 0 !important;
  }
  html body .icms-navbar-brand__show_on_hide::before {
    content: "Меню";
    font-size: 15px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  /* Активный пункт в мобильном меню — белая линия слева */
  html body .menu-main .nav-item.is-active > .nav-link,
  html body ul.navbar-nav li.nav-item.is-active > a.nav-link {
    box-shadow: inset 4px 0 0 #ffffff !important;
    background: rgba(255,255,255,.08) !important;
    color: #ffffff !important;
  }
  /* Все пункты меню и подпункты — чистый белый */
  html body .menu-main .nav-link,
  html body .menu-main .nav-link span,
  html body .menu-main li.nav-item .dropdown-menu a,
  html body .menu-main li.nav-item .dropdown-menu a span { color: #ffffff !important; }
  /* Bootstrap .row негативные поля → горизонтальный скролл */
  html body .row { margin-left: 0 !important; margin-right: 0 !important; }
  html body main.row > * { padding-left: 0 !important; padding-right: 0 !important; }
  /* Бургер виден и стилизован */
  html body .icms-header__bottom .navbar-toggler {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.5) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    margin: 8px 0 !important;
    background: rgba(255,255,255,.08) !important;
  }
  html body .icms-header__bottom .navbar-toggler-icon {
    filter: invert(1) brightness(3);
    width: 22px; height: 22px;
  }
  /* Раскрытое меню — вертикальный список */
  html body .icms-header__bottom .collapse.navbar-collapse,
  html body #target-main {
    background: #1d2347 !important;
    width: 100%;
  }
  html body .menu-main {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
    padding: 8px 0 !important;
  }
  html body .menu-main .nav-link,
  html body ul.navbar-nav li.nav-item a.nav-link {
    width: 100% !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    justify-content: flex-start;
  }
  /* Дропдаун на мобильном — инлайн, не абсолют */
  html body .menu-main li.nav-item .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: block !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(0,0,0,.2) !important;
    padding: 0 !important;
    min-width: 0;
    margin: 0 !important;
  }
  html body .menu-main li.nav-item .dropdown-menu a,
  html body .menu-main li.nav-item .dropdown-menu a.dropdown-item {
    color: rgba(255,255,255,.8) !important;
    padding: 12px 18px 12px 36px !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    font-size: 13px !important;
  }
  html body .menu-main li.nav-item .dropdown-menu a:hover,
  html body .menu-main li.nav-item .dropdown-menu a.dropdown-item:hover {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
  }
  /* стрелка dropdown указывает вниз постоянно */
  html body .menu-main .dropdown-toggle::after { margin-left: auto !important; }
  /* Поиск на всю ширину */
  html body .icms-header__bottom .icms-search,
  html body .icms-header__bottom form { width: 100% !important; padding: 10px 16px; }
}

/* Десктоп — бургер скрыт */
@media (min-width: 992px) {
  html body .icms-header__bottom .navbar-toggler { display: none !important; }
}

/* ===== Баннер Пушкинской карты ===== */
html body a.bic-push-banner {
  display: flex !important;
  align-items: center;
  gap: 26px;
  max-width: 760px;
  margin: 0 0 28px;
  background: #fff !important;
  border: 1px solid #dce2ec !important;
  border-radius: 16px;
  padding: 18px 22px;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(38,43,81,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
html body a.bic-push-banner:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(38,43,81,.16); }
html body a.bic-push-banner img { width: 300px; max-width: 45%; height: auto; border-radius: 12px; flex: 0 0 auto; }
html body a.bic-push-banner .bic-push-banner__txt { display: flex; flex-direction: column; gap: 8px; }
html body a.bic-push-banner .bic-push-banner__txt strong { color: var(--bic-navy) !important; font-family: 'Mulish','Montserrat',sans-serif; font-weight: 800; font-size: 22px; }
html body a.bic-push-banner .bic-push-banner__txt span { color: var(--bic-text-muted) !important; font-size: 15px; line-height: 1.5; }
@media (max-width: 600px) {
  html body a.bic-push-banner { flex-direction: column; text-align: center; }
  html body a.bic-push-banner img { max-width: 100%; width: 260px; }
}

/* ===== Баннер «МОЁ» (вместо статистики на главной) ===== */
html body .bic-moe {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: 680px;
  margin: 8px auto 0;
  background: #ffffff !important;
  border: 1px solid #dce2ec !important;
  border-radius: 16px;
  padding: 20px 26px;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(38,43,81,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
html body .bic-moe:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(38,43,81,.16); }
html body .bic-moe .bic-moe__badge {
  font-family: 'Mulish','Montserrat',sans-serif;
  font-weight: 900;
  font-size: 30px;
  color: var(--bic-blue) !important;
  background: transparent !important;
  border: 3px solid var(--bic-blue) !important;
  border-radius: 12px;
  padding: 8px 18px;
  flex: 0 0 auto;
  letter-spacing: 0.03em;
}
html body .bic-moe .bic-moe__logo {
  width: 92px; height: 92px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
}
/* Иконка-баннер Пушкинской карты в эл.ресурсах */
html body a.bic-service .bic-service__ico-img {
  width: 56px; height: auto; flex: 0 0 auto;
  border-radius: 6px; object-fit: contain;
  margin-right: 4px;
}
html body .bic-moe .bic-moe__txt { display: flex; flex-direction: column; gap: 5px; text-align: left; }
html body .bic-moe .bic-moe__txt strong { color: var(--bic-navy) !important; font-size: 18px; font-family: 'Mulish','Montserrat',sans-serif; font-weight: 800; }
html body .bic-moe .bic-moe__txt span { color: var(--bic-text-muted) !important; font-size: 14px; line-height: 1.45; }
html body .bic-moe .bic-moe__arrow { margin-left: auto; color: var(--bic-blue) !important; font-size: 30px; flex: 0 0 auto; font-weight: 700; }
@media (max-width: 600px) {
  html body .bic-moe { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 18px 16px; }
  html body .bic-moe .bic-moe__txt { text-align: center; align-items: center; }
  html body .bic-moe .bic-moe__arrow { display: none; }
  html body .bic-moe .bic-moe__badge { font-size: 24px; padding: 7px 15px; }
  html body .bic-moe .bic-moe__arrow { display: none; }
}

/* ===== ЛитРес QR-баннер на главной ===== */
.bic-litres-qr {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 22px auto 0;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
  text-decoration: none !important;
  max-width: 620px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.bic-litres-qr:hover { box-shadow: 0 8px 22px rgba(38,43,81,.12); transform: translateY(-2px); }
.bic-litres-qr img { width: 150px; height: auto; border-radius: 10px; flex: 0 0 auto; }
.bic-litres-qr span { color: var(--bic-text) !important; font-weight: 700; font-family: 'Mulish','Montserrat',sans-serif; line-height: 1.4; }
@media (max-width: 600px) {
  .bic-litres-qr { flex-direction: column; text-align: center; }
  .bic-litres-qr img { width: 180px; }
}

/* ===== Отделения «в рамочке» (страница клубов) ===== */
html body .bic-dept {
  border: 1px solid #dce2ec !important;
  border-radius: 18px !important;
  background: #f5f7fb !important;
  padding: 26px 26px 30px !important;
  margin: 0 0 22px !important;
  box-shadow: 0 4px 16px rgba(38,43,81,.05);
}
html body .bic-dept::before { display: none !important; }
html body .bic-dept .bic-section__head { margin-bottom: 18px !important; }
@media (max-width: 720px) {
  html body .bic-dept { padding: 18px 14px 20px !important; }
}

/* ===== Список ресурсов библиотечного фонда ===== */
.bic-fund-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.bic-fund-list li { margin: 0; }
.bic-fund-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--bic-text) !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bic-fund-list a::before {
  content: "";
  flex: 0 0 auto;
  width: 22px; height: 22px;
  background: var(--bic-blue);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><path d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/><path d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><path d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/><path d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/></svg>") center/contain no-repeat;
}
.bic-fund-list a:hover { border-color: var(--bic-blue); transform: translateX(3px); box-shadow: 0 4px 14px rgba(45,95,133,.12); }
.bic-section--soft .bic-fund-list a { background: #fff; }

/* ===== Страница «Адреса и схема проезда» — нумерованный список ===== */
.bic-adr-list { display: grid; gap: 12px; margin-bottom: 20px; }
.bic-adr {
  display: flex; align-items: center; gap: 16px;
  background: #f5f7fb; border: 1px solid #e3e7ee; border-radius: 12px;
  padding: 14px 18px;
}
.bic-adr__n {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: var(--bic-blue); color: #fff !important;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: 'Mulish','Montserrat',sans-serif;
}
.bic-adr strong { display: block; color: var(--bic-navy) !important; }
.bic-adr span:not(.bic-adr__n) { color: var(--bic-text-muted) !important; font-size: 14px; }

/* ===== Схема проезда (встроенная карта) ===== */
.bic-map__frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dce2ec;
  box-shadow: 0 8px 24px rgba(38,43,81,.08);
  margin-top: 16px;
  line-height: 0;
}
.bic-map__frame iframe { display: block; width: 100%; border: 0; }
@media (max-width: 720px) {
  .bic-map__frame iframe { height: 320px; }
}

/* ===== Форма обратной связи ===== */
.bic-fb-form { max-width: 720px; margin-top: 16px; }
.bic-fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.bic-fb-form input, .bic-fb-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d0d6e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
  background: #fff;
  color: #1a2238;
}
.bic-fb-form input:focus, .bic-fb-form textarea:focus { outline: none; border-color: var(--bic-blue); box-shadow: 0 0 0 3px rgba(45,95,133,.12); }
.bic-fb-form textarea { margin-bottom: 14px; resize: vertical; }
html body .bic-fb-form button.bic-btn {
  background: var(--bic-blue) !important;
  color: #fff !important;
  border: 0 !important;
  padding: 14px 36px !important;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Mulish','Montserrat',sans-serif;
}
html body .bic-fb-form button.bic-btn:hover { background: var(--bic-navy) !important; }
.bic-fb-note { display: block; margin-top: 12px; color: var(--bic-blue); font-size: 14px; }
@media (max-width: 600px) { .bic-fb-row { grid-template-columns: 1fr; } }

/* ===== Поиск по сайту (в баннере) ===== */
.bic-search {
  position: absolute;
  top: 72px; right: 32px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.95);
  border-radius: 50px;
  padding: 4px 4px 4px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  z-index: 5;
}
.bic-search input {
  border: 0 !important;
  background: transparent !important;
  outline: none;
  font-size: 14px;
  width: 180px;
  color: #1a2238;
  font-family: 'Roboto', sans-serif;
}
.bic-search input::placeholder { color: #8a93a6; }
.bic-search button {
  border: 0;
  background: var(--bic-blue);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
  flex: 0 0 auto;
}
.bic-search button:hover { background: var(--bic-navy); }

/* ===== Слайдер главных событий ===== */
.bic-slider {
  position: relative;
  max-width: 1280px;
  margin: 16px auto 0;
  border-radius: 18px;
  overflow: hidden;
  height: 280px;
  box-shadow: 0 10px 30px rgba(38,43,81,.15);
}
.bic-slider__track { position: relative; width: 100%; height: 100%; }
.bic-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
  display: flex;
  align-items: center;
}
.bic-slide.is-active { opacity: 1; visibility: visible; }
/* затемнение слева — текст читается на светлом фоне и на фото */
.bic-slide__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38,43,81,.55) 0%, rgba(38,43,81,.28) 45%, rgba(38,43,81,.05) 100%);
  z-index: 1;
}
.bic-slide__inner { padding: 0 64px; max-width: 760px; min-width: 0; position: relative; z-index: 2; }
.bic-slide__tag {
  display: inline-block;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-family: 'Mulish','Montserrat',sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.bic-slide__title {
  color: #fff !important;
  font-family: 'Mulish','Montserrat',sans-serif !important;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
}
.bic-slide__date { color: rgba(255,255,255,.85); font-size: 15px; margin-bottom: 20px; }
.bic-slide__btn {
  display: inline-block;
  background: #fff;
  color: var(--bic-blue) !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: transform .2s ease;
}
.bic-slide__btn:hover { transform: translateY(-2px); }
.bic-slider__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background .2s ease;
}
.bic-slider__arrow:hover { background: rgba(255,255,255,.35); }
.bic-slider__arrow--prev { left: 16px; }
.bic-slider__arrow--next { right: 16px; }
.bic-slider__dots {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.bic-slider__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.bic-slider__dot.is-active { background: #fff; width: 28px; border-radius: 6px; }

@media (max-width: 720px) {
  .bic-search { position: static; margin: 8px auto 0; width: calc(100% - 24px); }
  .bic-search input { width: 100%; }
  .bic-slider { height: 270px; margin: 12px 8px 0; }
  .bic-slide__inner { padding: 0 46px !important; max-width: 100% !important; width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; }
  /* заголовок страницы не должен обрезаться на мобильном */
  html body h1,
  html body article h1,
  html body article.col-lg h1,
  html body .content_item h1,
  html body .pages_item h1 {
    font-size: 20px !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: auto;
  }
  html body .bic-slide__title { overflow-wrap: anywhere !important; }
  /* страховка от горизонтального переполнения */
  html body .bic-slider, html body .bic-slide, html body .bic-slider__track { max-width: 100% !important; }
  .bic-slide__title { font-size: 17px !important; line-height: 1.25 !important; overflow-wrap: break-word !important; word-break: break-word !important; hyphens: auto; max-width: 100%; }
  .bic-slide__tag { white-space: normal; max-width: 100%; }
  .bic-slide__date { overflow-wrap: break-word; max-width: 100%; }
  .bic-slide__date { overflow-wrap: break-word; }
  .bic-slider__arrow { width: 34px; height: 34px; font-size: 20px; }
  .bic-slider__arrow--prev { left: 6px; }
  .bic-slider__arrow--next { right: 6px; }
}

/* ===== Сетевые ресурсы (виджеты-баннеры над подвалом) ===== */
.bic-netres {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0 24px;
}
.bic-netres__title {
  font-family: 'Mulish','Montserrat',sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--bic-navy);
  margin-bottom: 18px;
  text-align: center;
}
.bic-netres__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
html body a.bic-netres__card {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 130px;
  background: #fff !important;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  padding: 16px 14px !important;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
html body a.bic-netres__card img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}
html body a.bic-netres__card .bic-netres__name {
  color: var(--bic-text-muted) !important;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  font-weight: 600;
  margin-top: auto;
}
html body a.bic-netres__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(38,43,81,.1);
  border-color: var(--bic-blue-light) !important;
}

/* Плейсхолдер официального виджета Госуслуг (на боевом домене заменяется родным виджетом) */
.bic-pos-placeholder {
  border: 2px dashed var(--bic-blue-light);
  border-radius: 16px;
  background: var(--bic-bg-soft);
  padding: 28px 32px;
  text-align: center;
}
.bic-pos-placeholder__badge {
  display: inline-block;
  background: linear-gradient(138deg, #38bafe 26%, #2d73bc 79%);
  color: #fff;
  font-family: 'Mulish','Montserrat',sans-serif;
  font-weight: 800;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 8px;
}
.bic-pos-placeholder__note {
  margin-top: 14px;
  color: var(--bic-text-muted);
  font-size: 14px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .bic-netres { padding: 0 12px; }
  .bic-netres__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bic-pos-placeholder { padding: 20px; }
}

/* ===== Footer extras (соцсети, сервисы, счётчик) ===== */
.bic-footer-extras {
  background-image:
    url('/templates/modern/images/wave-brand2.png'),
    linear-gradient(180deg, #262b51 0%, #262b51 100%);
  background-position: top center, center;
  background-repeat: no-repeat, repeat;
  background-size: 100% 420px, auto;
  border-radius: 0;
  max-width: none;
  margin: 40px 0 0 0;
  padding: 440px 28px 40px 28px;
}
.bic-footer-extras__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}
.bic-fe-col { display: flex; flex-direction: column; gap: 8px; }
.bic-fe-title {
  font-family: 'Mulish','Montserrat',sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #789cc2;
  margin-bottom: 6px;
}
html body .bic-footer-extras a,
html body .bic-footer-extras .bic-fe-col a {
  color: rgba(255,255,255,.85) !important;
  text-decoration: none !important;
  font-size: 14px;
  transition: color .2s ease, padding .2s ease;
  border-bottom: 0 !important;
}
html body .bic-footer-extras a:hover,
html body .bic-footer-extras .bic-fe-col a:hover {
  color: #fff !important;
  padding-left: 4px;
}
.bic-culture-badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
}
.bic-fe-note { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 4px; }

@media (max-width: 720px) {
  .bic-footer-extras { padding: 200px 16px 28px; background-size: 100% 185px, auto; }
  .bic-footer-extras__inner { gap: 20px; }
}

/* ===== A11y mode ===== */
html[data-a11y="white"] { background: #fff !important; color: #000 !important; }
html[data-a11y="black"] { background: #000 !important; color: #fff !important; }
html[data-a11y="blue"]  { background: #9dd1ff !important; color: #063462 !important; }
html[data-a11y] body, html[data-a11y] section, html[data-a11y] article, html[data-a11y] header, html[data-a11y] footer, html[data-a11y] .bic-hero, html[data-a11y] .bic-section, html[data-a11y] .bic-branches article, html[data-a11y] .bic-clubs article, html[data-a11y] .bic-events li, html[data-a11y] .bic-director, html[data-a11y] .bic-section--dark, html[data-a11y] .bic-section--soft {
  background: inherit !important;
  color: inherit !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: currentColor !important;
}
html[data-a11y] h1, html[data-a11y] h2, html[data-a11y] h3, html[data-a11y] h4, html[data-a11y] p, html[data-a11y] li, html[data-a11y] strong, html[data-a11y] span, html[data-a11y] em, html[data-a11y] cite, html[data-a11y] small { color: inherit !important; }
html[data-a11y] a, html[data-a11y] a.bic-btn { color: inherit !important; text-decoration: underline !important; background: transparent !important; border-color: currentColor !important; }
html[data-a11y-size="lg"] { font-size: 19px !important; }
html[data-a11y-size="xl"] { font-size: 23px !important; }
html[data-a11y-size="xxl"] { font-size: 28px !important; }
html[data-a11y-images="off"] img, html[data-a11y-images="off"] picture, html[data-a11y-images="off"] svg { display: none !important; }
html[data-a11y-font="sans"] * { font-family: Arial, sans-serif !important; }
html[data-a11y-font="serif"] * { font-family: 'Times New Roman', serif !important; }
html[data-a11y-spacing="medium"] body { letter-spacing: 0.08em !important; }
html[data-a11y-spacing="large"] body { letter-spacing: 0.15em !important; word-spacing: 0.15em !important; }

.bic-a11y-panel { display: none; position: fixed; top: 0; left: 0; right: 0; background: #f4f4f4; color: #111; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,.15); z-index: 9999; font-family: Arial, sans-serif; }
.bic-a11y-panel--open { display: block; }
.bic-a11y-panel__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.bic-a11y-panel * { color: #111 !important; }
.bic-a11y-group__label { font-weight: 700; font-size: 13px; text-transform: uppercase; margin-bottom: 8px; }
.bic-a11y-row { display: flex; gap: 6px; flex-wrap: wrap; }
.bic-a11y-pick { background: #fff !important; border: 1px solid #999 !important; padding: 8px 12px !important; cursor: pointer; border-radius: 4px; font-size: 14px; color: #111 !important; font-family: inherit; }
.bic-a11y-pick:hover { border-color: var(--bic-blue) !important; }
.bic-a11y-pick--active { background: var(--bic-blue) !important; color: #fff !important; border-color: var(--bic-blue) !important; }
.bic-a11y-pick--w { background:#fff !important;color:#000 !important; }
.bic-a11y-pick--b { background:#000 !important;color:#fff !important; }
.bic-a11y-pick--bl { background:#9dd1ff !important;color:#063462 !important; }
.bic-a11y-close { position: absolute !important; top: 12px !important; right: 16px !important; background: transparent !important; border: 0 !important; font-size: 26px !important; cursor: pointer; color: #111 !important; }

/* ===== Таблица прейскуранта ===== */
html body table.bic-price {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(38,43,81,.06);
}
html body table.bic-price th {
  background: var(--bic-blue) !important;
  color: #fff !important;
  text-align: left;
  padding: 14px 18px;
  font-family: 'Mulish','Montserrat',sans-serif;
  font-weight: 700;
  font-size: 14px;
}
html body table.bic-price td {
  padding: 13px 18px;
  border-top: 1px solid #e6eaf1;
  color: var(--bic-text) !important;
  font-size: 15px;
}
html body table.bic-price tr:nth-child(even) td { background: #f7f9fc; }
@media (max-width: 600px) {
  html body table.bic-price th, html body table.bic-price td { padding: 10px 12px; font-size: 13px; }
}
