:root {
  --bs-primary: #185adb;         /* Фирменный синий оттенок ЗАО */
  --bs-primary-rgb: 24, 90, 219;
  --bg-soft-blue: #f1f6fd;       /* Мягкий фон для плашек и карточек */
}

body {
  font-family: 'Inter', sans-serif;
  color: #212529;
  background-color: #f7f9fc;
}

/* Привязка фоновой картинки (Фото 3) */
.hero-section {
  position: relative;
  background-color: #f4f8fe;
  /* Фоновая картинка с Триумфальной аркой привязана к правому верхнему углу */
  background-image: url('img/hero-arch-bg.png');
  background-repeat: no-repeat;
  background-position: right top;
  background-size: auto;
}

/* Для мобильных устройств убираем фон справа, так как она вынесена отдельным тегом img */
@media (max-width: 991.98px) { 
  .hero-section {
    background-image: none;
  }
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}


.hero-subtitle {
	font-size: 1.5rem;
}

.hero-slogan {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--bs-primary);
}

/* Выпадающее меню районов */
/*.districts-dropdown {
  max-height: 360px;
  overflow-y: auto;
  min-width: 230px;
}*/

.districts-dropdown .dropdown-item:active,
.districts-dropdown .dropdown-item:hover {
  background-color: #eaf2ff;
  color: var(--bs-primary);
}


/* ==================== ФИКСИРОВАННАЯ ШАПКА ==================== */
/* Компенсируем высоту фиксированной шапки, чтобы верхний контент и заголовок не уезжали под неё */
header {
  padding-top: 76px;
}

.site-header-sticky {
  z-index: 1030;
  background-color: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Состояние при скролле вниз */
.site-header-sticky.is-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(16, 30, 58, 0.08);
}

.site-header-sticky.is-scrolled .navbar {
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}

/* Отступ для якорных ссылок (#about, #stats) */
html {
  scroll-padding-top: 85px;
}

/* На мобильном при открытом бургер-меню или поиске фон шапки всегда белый */
@media (max-width: 991.98px) {
  .site-header-sticky:has(.navbar-collapse.show),
  .site-header-sticky:has(#headerSearchBar.show) {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(16, 30, 58, 0.08);
  }
}


/* 5 карточек тем */
.category-card, .rising, .preview, .cover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover, .rising:hover, .preview:hover, .cover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

/* Картинка растягивается по всей высоте карточки без скруглений с правой стороны */
.cat-thumb {
  width: 90px;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.category-card h6 {
  font-size: 0.9rem;
  line-height: 1.25;
}

.category-card small {
  font-size: 0.85rem;
  line-height: 1.2;
}

.category-card .bi-arrow-down-right {
  font-size: 0.9rem;
}

/* Сетка 13 районов */
.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
  gap: 8px;
}
@media (max-width: 768px) {
  .districts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.district-badge {
  background: #ffffff;
  padding: 0px 0px;
  border-radius: 10px;
  border: 1px solid rgba(24, 90, 219, 0.12);
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 105px;
  transition: all 0.2s;
}
.district-badge:hover {
  background: var(--bg-soft-blue);
  border-color: var(--bs-primary);
}
.district-icon img {
  width: 100%;
  border-radius: 10px 10px 0 0;
  object-fit: contain;
}
.district-badge span {
  font-size: 12px;
  line-height: 1.15;
  margin-top: 5px;
  display: block;
}
.district-badge i {
  font-size: 0.65rem;
  color: var(--bs-primary);
  margin-top: 3px;
}

/* Баннер "Проект в цифрах" */
.stats-banner {
  background: #eaf2ff;
  border: 1px solid #d4e4fd;
}

.stats-banner-title {
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.stat-banner-icon {
  width: auto;
  object-fit: contain;
}
/* Иконки-картинки в блоках статистики */
.stat-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: inline-block;
}

.stat-box small {
  font-size: 0.72rem;
  line-height: 1.2;
  display: block;
}

/* Переключение текста на кнопке "Вся статистика" */
.stats-toggle-btn[aria-expanded="true"] .btn-text-show {
  display: none !important;
}

.stats-toggle-btn[aria-expanded="true"] .btn-text-hide {
  display: inline !important;
}

.stat-number {
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.95rem;
  line-height: 1.15;
  margin-top: 2px;
}

/* Префект */
.prefect-img-wrapper img {
  width: 100%;
}

#pdopage.is-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}




/******************************************/
.relative{
  position:relative;
}
.mt-20{
  margin-top: 20px!important;
}
.mt-30{
  margin-top: 30px!important;
}
.mt-50{
  margin-top: 50px!important;
}
.mt-95{
  margin-top: 95px!important;
}
.mt-75{
  margin-top: 75px!important;
}
.mb-32{
  margin-bottom: 32px!important;
}
.mb-75{
  margin-bottom: 75px!important;
}
.mb-95{
  margin-bottom: 95px!important;
}
.mb-150{
  margin-bottom: 150px!important;
}
.mb-170{
  margin-bottom: 170px!important;
}
.mr-0{
    margin-right: 0!important;
}
.pb-32{
  padding-bottom: 32px!important;
}
.b-600{
  font-weight: 600;
}
.bg-none{
    background: transparent!important;
}
.shadow{
    box-shadow: none;
}

.btn{
  border-radius: 8px;
}
.btn-primary{
  background: #1557D6;
}
.btn-small{
  font-size: 0.9rem;
  border-radius: 7px;
  padding: 8px 10px;
}
.nav-doc .button-nav {
    left: auto !important;
    right: auto !important;
}
.btn-link{
  border-radius: 8px;
  padding: 20px 20px 20px 20px;
  background: #e7edff;
  font-weight: 600;
  font-size: 15px;
  color: #1a57d2;
  text-decoration: none;
}
.btn-link span{
  padding-left: 10px;
}
.btn.btn-blue{
  color: #1A57D2;
  border: 0;
  font-weight: 600;
}
.btn-right-arrow, .btn-right-arrow-blue,
.btn-left-arrow, .btn-left-arrow-blue{
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: none;
}
.btn-right-arrow, .btn-right-arrow-blue{  
  padding-right: 30px;
}
.btn-left-arrow, .btn-left-arrow-blue{  
  padding-left: 30px;
}
.btn-right-arrow:before, .btn-right-arrow-blue:before,
.btn-left-arrow:before, .btn-left-arrow-blue:before{
    content: "";
    position: absolute;
    display: flex;
    width: 30px;
    height: 100%;
    top: 0;    
    background-position: center;
    background-repeat: no-repeat;
}
.btn-right-arrow:before, .btn-right-arrow-blue:before{
  padding-left: 20px;
  margin-left: 30px;
  right: 0;
}
.btn-left-arrow:before, .btn-left-arrow-blue:before{
  padding-right: 20px;
  margin-right: 30px;
  left: 0;
  transform: rotate(180deg);
}
.btn-right-arrow:before, .btn-left-arrow:before{
    background-image: url(img/svg/right-arrow.svg);
}
.btn-right-arrow-blue:before, .btn-left-arrow-blue:before{
    background-image: url(img/svg/right-arrow-blue.svg);
}
.bg-blue-light{
    background: #eaf2ff;    
}
.r-12{
  border-radius: 12px;
}
.bb-1{
  border-bottom: 1px solid #dce4f2;
}
.swiper-container{
  width: 100%;  
  position: relative;
}
.swiper{
  width: 100%;
}
.swiper-slide{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto; 
}
.swiper-button-prev, .swiper-button-next{
  position: absolute;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);  
  transition: background 0.3s;
}
.swiper-button-top{
    display: flex;
    gap: 20px;
}
.swiper-button-navigation{
  display: flex;
  gap: 20px;
  height: 34px;
}
.swiper-button-top .swiper-button-navigation > div{
  position: relative;
  display: flex;
}
.became-prev{  
  left: -65px!important;
}
.became-next{
  right: -65px!important;
}
.church-prev, .church-next{
  top: 15px;
}
.swiper-button-next svg, .swiper-button-prev svg{    
  height: 30%;
}
.swiper-button-prev:hover, .swiper-button-next:hover{ 
}
.swiper-button-prev::after, .swiper-button-next::after{
}

.breadcrumb{
  font-size: 14px;
  font-weight: 600;
  margin: 34px 0 48px 0;
}
.breadcrumb-item+.breadcrumb-item::before{
  color: #1A57D2;
}
.breadcrumb a{
  text-decoration: none;
}

h1.page-title{
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 25px;
}
h1.content-title{
  font-size: 3.4rem;
  font-weight: 600;
}
h2.subtitle{
  font-size: 24px;
  font-weight: 600;
  color: #1A57D2;
  text-transform: uppercase;
  margin-bottom: 35px;
}
.main-content *{
  font-size: 19px;
  color: #5B6170;
}
.page-content *{
  font-size: 17px;
  color: #252B38;
}

#filters{
  margin-top: 48px;
}
#pdopage.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.checkbox-btn-group {
    display: inline-flex;
    gap: 15px;
}

.checkbox-btn {
    display: inline-block;
    position: relative;
    text-decoration: none;
}

.checkbox-btn input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    z-index: -1;
}

.checkbox-btn > div {
    display: flex;
    gap: 10px;
    padding: 12px 22px;
    font-size: 20px;
    cursor: pointer;    
    transition: background-color 0.2s ease, color 0.2s ease;
    user-select: none;
    border: 1px solid rgba(24, 90, 219, 0.12);
    border-radius: 7px;
    background: #fff;
    color: #1A57D2;
    font-weight: 600;
}

.checkbox-btn:last-child span {    
}

.checkbox-btn:hover > div:not(:has(+ input:checked)),
.checkbox-btn input[type="checkbox"]:checked + div,
.checkbox-btn.active > div {    
    background-color: #1A57D2;
    color: #fff;
}

.checkbox-btn input[type="checkbox"]:active + div {    
    background-color: #1A57D2;
}

.checkbox-btn input[type="checkbox"]:disabled + div {
    background-color: #f1f1f1;
    color: #aaa;
    cursor: not-allowed;
}

.checkbox-btn input[type="checkbox"]:focus-visible + div {
    outline: 2px solid #1A57D2;
    outline-offset: -2px;
}

.church-items{
  margin-top: 48px;
  margin-bottom: 48px;
}
.church-item > span{
  color: #1A57D2;
  font-size: 12px;
  font-weight: 600;
}
.church-item > img,
.church-item-thumb img {
  width: 100%;
  height: 210px;
  border-radius: 7px;
  margin: 10px 0;
  display: block;
}
.church-item .desc h4,.church-item .desc a h4,.church-item .desc a {
color: #111;
  font-size: 20px;  
  font-weight: 600;
  text-decoration:none;
}
.church-item ul, .list-inline{
  display: flex;
  list-style: none;
  color: #1A57D2!important;
  padding: 0;  
}
.church-item ul li, .list-inline li {  
  position: relative;
  padding: 0 10px 0 16px;
  font-size: 14px;
  font-weight: 600;
}
.church-item ul li:first-child, .list-inline li:first-child {
  padding-left: 0;
}
.church-item ul li:not(:first-child)::before, .list-inline li:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: #1A57D2;
  border-radius: 50%;
}
.list-inline{
  padding-top: 16px;
}
.list-inline li{
  font-size: 18px;
}
.church-item .desc{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.church-item .desc > span{
  font-size: 14px;
  line-height: 143%;
  color: #5b6170;
}

.hero-church{
  position:relative;
}
.hero-church .hero-subtitle{
  font-size: 1rem;
}
.hero-church:before{
    content: "";
    position: absolute;
    background-image: url(img/hero-church-bg.png);
    background-repeat: no-repeat;
    background-position: right;
    background-size: auto;
    height: 100%;
    width: 100%;    
    z-index: -1;
}
.hero-rajony{
  position:relative;
}
.hero-rajony .hero-subtitle{
  font-size: 1rem;
}
.hero-rajony:before{
    content: "";
    position: absolute;
    background-image: url(img/hero-rajon.png);
    background-repeat: no-repeat;
    background-position: right;
    background-size: auto;
    height: 100%;
    width: 100%;    
    z-index: -1;
}
.church-catalog{
  padding: 55px 45px;
}
.church-catalog h3{
  font-size: 28px;
  color: #1557D6;
}
.church-compare-left{
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 35px;
  margin-right: 80px;
}
.church-compare-left h3{
  font-size: 24px;
  text-transform: uppercase;
  color: #1557D6;
}

.church-compare-right .slider-became img{
  height: 300px;
  object-fit: cover;
}
.church-compare-right .slider-became img + span{
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: #5b6170;
    text-decoration: none;
    margin-top: 10px;
}
.church-compare-right{
  font-size: 16px;
  box-shadow: 0 3px 9px 0 rgba(10, 110, 255, 0.15);
  background: #fff;
  padding: 20px;
  margin-right: 50px;
}
.church-compare-right span{
  color: #1A57D2;
  font-weight: 600;
}
.church-compare-right a{
  text-decoration: none;
  margin-top: 10px
}
.church-compare-right img{
  margin-top: 20px;
  border-radius: 10px;
}

.slider-church{
  padding-top: 70px;
  padding-bottom:10px;
}
.church-scale{
  position:relative;
}
.church-scale:before{
    content: '';
    position: absolute;    
    height: 2px;
    top: 10px;
    left: 50px;
    right: 50px;
    background-color: #1A57D2;    
}
.slide-church:before{
    content: '';
    position: absolute;
    width: 2px;
    height: 70px;    
    top: -70px;
    left: 50%;
    transform: translateX(-50%);    
    border-right: 2px dashed #1A57D2;
}
.slide-church:after{
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #1A57D2;
    background-color: #f7f9fc;
    left: 50%;
    top: -70px;
    transform: translateX(-50%);    
}
.slide-church{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto;
  border-radius: 10px;
  padding: 20px 10px;
  box-shadow: 0 3px 9px 0 rgba(10, 110, 255, 0.15);
  background: #fff;
}
.slide-church img{
  height: 150px;
  object-fit: cover;
  margin: 20px 0 12px 0;
}
.slide-church p{
  font-size: 16px;  
}
.slide-church span{
  font-size: 24px;
  font-weight: 600;
  color: #1557D6;
  margin-bottom: 20px;
}
.slide-church a, .church-cat a{
  font-size: 15px;
  font-weight: 600;
  color: #1557D6;
  text-decoration: none;
}

.church-cat{
  font-size: 16px;
  box-shadow: 0 3px 9px 0 rgba(10, 110, 255, 0.15);
  background: #fff;
  padding: 20px;
}
.church-cat span{
  font-size: 18px;
  font-weight: 600;
  color: #1557D6;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.church-cat p{
  font-size: 15px;
  margin: 10px 0;
}

.gallery > a{
  display: block;
  position: relative;
  text-decoration: none;
  width: 100%;  
  background: #fff;
  border: 1px solid #e0e7f4;
  border-radius: 14px;
  padding: 12px 12px 16px;
  margin-bottom: 24px;
}
.gallery .cover ~ a{
  display: none;
}
.gallery a img{
  width: 400px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 9px;
}
.gallery a span{
  display: block;
  font-size: 13px;
  color: #5b6170;
  padding-top: 12px;
}
.gallery .gallery-count{
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    background: #1A57D2;
    padding: 0 10px;
    border-radius: 5px;
    opacity: 0.8;
}
.gallery .gallery-count i{
    padding-left: 5px;
}

.preview:before, a.cover:before{
  content: "";
  position: absolute;
  background-image: url(img/svg/preview.svg);
  background-repeat: no-repeat;
  width: 40px;
  height: 40px;
  top: 20px;
  right:20px;
  z-index: 1;
}

.page-bottom{
  display: flex;
  justify-content: space-between;
}
.nav-doc{ 
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-doc span{
  font-size: 20px;
  font-weight: 600;
  color: #1557D6;
}
.button-nav{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.3s;
}
.button-nav:before{
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background-image: url(img/svg/chevron-blue.svg);
  background-repeat: no-repeat;
}
.button-nav-prev:before{
  transform: rotate(180deg);
}


/* Фон и обёртка модального окна */
.custom-zao-modal .fancybox-bg {
  background: #f7f8fa;
  opacity: 1 !important;
}

.custom-zao-modal .fancybox-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 84px 20px;
}

/* Шапка модального окна */
.czm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto 16px;
  z-index: 10;
}

.czm-title-top {
  font-family: 'Inter', sans-serif;
  font-size: 23px;
  font-weight: 700;
  color: #1B1919;
  line-height: 1.3;
}

.czm-close {
  position: absolute;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #dce3f0;
  background: #edf2fa;
  color: #1a57d2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.czm-close:hover {
  background: #dfe8f7;
  transform: scale(1.05);
}

/* Область с фотографией */
.custom-zao-modal .fancybox-stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.custom-zao-modal .fancybox-slide--image {
  padding: 0;
}

.custom-zao-modal .fancybox-content {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(16, 30, 58, 0.08);
}

/* Стрелки влево / вправо */
.custom-zao-modal .fancybox-navigation .fancybox-button {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.custom-zao-modal .fancybox-navigation .fancybox-button svg {
  width: 20px;
  height: 20px;
}

/* Левая стрелка */
.custom-zao-modal .fancybox-button--arrow_left {
  left: 24px;
  background: #e8effc;
  border: 1px solid #d4e1f9;
  color: #1a57d2;
}

.custom-zao-modal .fancybox-button--arrow_left:hover {
  background: #1a57d2;
  color: #ffffff;
}

/* Правая стрелка */
.custom-zao-modal .fancybox-button--arrow_right {
  right: 24px;
  background: #1a57d2;
  border: 1px solid #1a57d2;
  color: #ffffff;
}

.custom-zao-modal .fancybox-button--arrow_right:hover {
  background: #1446ad;
}

/* Подвал модального окна */
.czm-footer {
  width: 100%;
  max-width: 1320px;
  margin: 16px auto 0;
  z-index: 10;
}

.czm-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.czm-title-bottom {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #5b6170;
}

.czm-counter {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a57d2;
  white-space: nowrap;
}

/* Точки переключения слайдов */
.czm-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.czm-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 99px;
  background: #cfd8e8;
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.czm-dot.is-active {
  width: 22px;
  background: #1a57d2;
}

/* Адаптив под планшеты и телефоны */
@media (max-width: 767.98px) {
  .custom-zao-modal .fancybox-inner {
    padding: 16px;
  }

  .czm-title-top {
    font-size: 17px;
  }

  .custom-zao-modal .fancybox-button--arrow_left {
    left: 10px;
    width: 38px;
    height: 38px;
  }

  .custom-zao-modal .fancybox-button--arrow_right {
    right: 10px;
    width: 38px;
    height: 38px;
  }
}

/* ==================== СТРАНИЦА РАЙОНА ==================== */
.bg-district-blue {
  background-color: #002D87; /* Глубокий синий цвет плашек раздела */
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.85);
}

.desc-cat{
  padding-top: 24px;
}
.desc-cat *{
  font-weight: 400;
  font-size: 17px;
  line-height: 153%;
  color: #1a1f2b;
  margin: 0;
}

.extra-small {
  font-size: 0.75rem;
  line-height: 1.3;
}

/* Первый экран района */
.district-coat-box {
  width: 54px;
  height: 62px;
  padding: 6px;
}

.district-coat {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.district-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.district-lead {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 560px;
}

.district-hero-media {
  min-height: 400px;
}

.hero-expand-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--bs-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-expand-btn:hover {
  background: #ffffff;
  transform: scale(1.06);
}

.district-media-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
}

/* Плашка статистики района */
@media (min-width: 768px) {
  .border-md-start {
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
  }
}

/* Заголовки секций */
.section-heading {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

/* Карточки статей (2 колонки) */
.article-card {
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 30, 58, 0.08) !important;
}

.article-meta {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.article-thumb-wrap {
  height: 240px;
  background-color: #eef2f8;
}

@media (max-width: 575.98px) {
  .article-thumb-wrap {
    height: 190px;
  }
  .district-hero-media {
  min-height: 300px;
}
}

/* Кнопка-стрелка в правом верхнем углу фото карточки */
.card-corner-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--bs-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.article-card:hover .card-corner-btn,
.person-card:hover .card-corner-btn {
  background: var(--bs-primary);
  color: #ffffff;
}

.article-read-link {
  font-size: 0.85rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.article-card:hover .article-read-link,
.person-card:hover .article-read-link {
  transform: translateX(3px);
}

/* Карточки персоналий (4 колонки) */
.person-card {
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.person-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 30, 58, 0.08) !important;
}

.person-thumb-wrap {
  height: 220px;
  background-color: #eef2f8;
}

.person-nav-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-primary);
  border: 1px solid rgba(24, 90, 219, 0.15);
}

.person-nav-btn:hover {
  background-color: var(--bs-primary);
  color: #ffffff;
}

/* Нижний баннер */
.banner-outline-img {
  max-height: 95px;
  width: auto;
  opacity: 0.9;
}

/* Цифры в синей плашке статистики */
.stat-bar-value {
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Разделители между колонками статистики (для 3 и 4 колонок) */
@media (min-width: 768px) {
  .district-stats-bar .border-md-start {
    border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
  }
}

/* Верхний тег карточки статьи (синий, как на фото 2) */
.article-meta {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  font-weight: 700;
}

/* Подпись/источник под картинкой в карточке */
.article-img-caption {
  font-size: 0.7rem;
  line-height: 1.25;
  color: #8c93a0 !important;
}

/* Кнопка-лупа на фото */
.card-corner-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%; /* Круглая белая кнопка с лупой как на макете */
  background: #ffffff;
  color: var(--bs-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.card-corner-btn:hover {
  background: var(--bs-primary);
  color: #ffffff;
  transform: scale(1.06);
}

 /* Переход на другой сайт по всплывающей подсказке */
.tooltip-wrapper {
  position: relative;
  display: inline-block; 
  cursor: pointer;
}

.custom-tooltip {
    display:none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%); 
  margin-top: 12px;
  background-color: rgba(45, 45, 45, 0.85); 
  color: #ffffff;
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  width: max-content;
  max-width: 250px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  font-family: inherit;
  font-size: 14px;
  cursor: default;
}

.custom-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%; 
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #343a40 transparent; 
}

@media (max-width: 767.98px) {
    .custom-tooltip {
      max-width: 200px;
      top: 100%;
      left: 100%;
    }
    .custom-tooltip::after {
      bottom: 100%; 
      left: 20%;
    }
}

.custom-tooltip.show {
     display:block;
  visibility: visible;
  opacity: 1;
}

.tooltip-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  background-color: #001ec1;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.tooltip-btn:hover {
  background-color: #0056b3;
  color: white;
  text-decoration: none;
}