/*
Theme Name: mirice
Author: Alex
Version: 1.0
*/
/* Bootstrap Icons */
@font-face {
  font-family: 'bootstrap-icons';
  src: url('assets/fonts/bootstrap-icons.woff') format('woff');

  font-weight: normal;
  font-style: normal;
}
.bi::before, [class^="bi-"]::before, [class*=" bi-"]::before {
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -0.225em;
  content: "\f138";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:root {
  --primary-color: #1D4F91;
  --light-blue-bg: rgba(222, 236, 255, 0.9);
  --dark-bg: #1e1e1e;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: #002A61;
  margin: 0;
  padding: 0;
  line-height: 24px;
  font-size: 18px;
  font-weight: 400;
}
h3 a, h2 a{ text-decoration: none;}
strong {
  font-weight: 600;
}



/* === Навбар === */
.navbar {
  background-color: var(--light-blue-bg);
  max-height: 134px;
  height: 134px;
  position: relative;
  z-index: 10;
}
.navbar-nav{
  margin: 0 auto;
}

.navbar-expand-md .navbar-nav .nav-link {
 color: var(--primary-color) !important;
 font-weight: 400;
 font-size: 18px;
 line-height: 6px;
 padding: 0 17px;
}



/* === Цвета — можно менять здесь === */
:root {
  --hamburger-color: #1D4F91;
  --close-color: #1D4F91;
}

/* === Гамбургер-меню === */

.hamburger-menu {
  display: block;
  width: 24px;
  height: 18px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--hamburger-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}
/* === Убрать обводку фокуса === */
.navbar-toggler {
  outline: none !important;
  box-shadow: none !important;
}

/* === Крестик закрытия === */
.close-menu-btn {
  background: none;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
  position: relative;
  outline: none;
  margin-left: auto;
  margin-right: 0;
  display: block;
  top: 15px;
  right: 15px;
}

.close-menu-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--close-color);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.close-menu-line:first-child {
  transform: translateY(-50%) rotate(45deg);
}

.close-menu-line:last-child {
  transform: translateY(-50%) rotate(-45deg);
}

/* При наведении — цвет меняется */
.hamburger-menu:hover,
.close-menu-btn:hover {
  opacity: 0.8;
}



/* === Баннер === */
.bg_header {
  position: relative;
  margin-top: -134px; /* ← вместо top: -134px */
  height: 500px;
  overflow: hidden;
  z-index: 1;
}

.bg_header__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(85%);
}

.overlay_bg_header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  opacity: 0.7;
  z-index: 1;
}

.logo-centered {
  position: absolute;
  z-index: 2;
  top: 152px; /* ← фиксированное значение по твоему макету */
  left: 50%;
  transform: translateX(-50%);
}

.logo-image {
  max-width: 332px;
  height: auto;
  display: block;
}
.about-description{
  padding:54px 0px;
}


.container_wrap {
  max-width: 912px;
  margin: 0 auto 50px;
}

/* === Заголовки === */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
}

/* === Деятельность === */
.activity-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-size: 18px;
  transition: color 0.2s;
}
.activity-link:hover {
/*  color: #0d2a4d;*/
text-decoration: none;
}
.border_page {
  height: 2px;
  background: #1D4F91;
  max-width: 1110px;
  margin: 0px 20px;
  margin-right: 20px;
  margin-left: 20px;
  margin-left: auto;
  margin-right: auto;
}
/* === Статистика и цитата === */
ul.activity-list li{
  margin-bottom: 10px;
}
/*.stat-item {
  padding: 1.5rem;
  max-width: 384px;
}*/
.stat-item h3 {
 font-size: 24px;
 font-weight: 600;
 margin-bottom: 16px;
}
.stat-item p {
 font-size: 18px;
 line-height: 24px;
 
}
.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.stat-item {
  text-align: center;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 384px;
}
.stat-m-item{
  margin-left: auto;
  margin-right: 0;
}

.stat-number, .stat-icon {
  font-size: 56px;
  font-weight: 600;
  margin-bottom: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}

.stat-number__text {
  line-height: 1;
  vertical-align: middle;
  display: inline-block;
}
.rounded{
/*  max-width: 238px;*/
}
.quote-text-wrpap{
  padding-right: 100px;
}
.quote-text {
  font-size: 24px;
  margin-bottom: 40px;
  line-height: 32px;
}
.quote-text p{
  margin: 0;
}
.quote-author {
 font-size: 18px;
 text-align: right;
 display: block;
 font-style: normal;
 width: 290px;
 margin-right: 0;
 margin-left: auto;
}



/* === Страницы === */
.main-content {
  padding-left: 200px;
  padding-right: 200px;
  font-size: 18px;
  line-height: 24px;
}
.main-content h2{
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  margin-bottom: 24px;
}


.page-content{
  font-size: 18px;
  line-height: 24px;
/*  padding-top: 3rem !important;*/

}
/* Все текстовые элементы внутри Gutenberg-блоков */
.page-content .wp-block-column p,
.page-content .wp-block-column ul,
.page-content .wp-block-column ol,
.page-content .wp-block-column li,
.page-content .wp-block-paragraph,
.page-content .wp-block-list {
  line-height: 24px !important;
  font-size: 18px !important;
}
/* Убираем gap у всех flex-колонок Gutenberg */
.wp-block-columns.is-layout-flex {
  gap: 0 !important;
}

.page-content h2{
  font-weight: 600;
  margin-bottom: 1.8rem;
  font-size: 24px;
}
.contact-info a{
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}
.contact-info a:hover{
  text-decoration: underline;
}
/* === Хлебные крошки и заголовок в баннере === */
/* === Хлебные крошки в баннере === */
.page-breadcrumbs {
  position: absolute;
  top: 172px;
/*  left: 190px;*/
z-index: 2;
font-size: 18px;
font-weight: 600;
}

.page-breadcrumbs .breadcrumb {
  background: none;
  padding: 0;
  border: none;
  margin: 0;
  font-size: inherit;
  color: #002A61;
}

.page-breadcrumbs .breadcrumb .breadcrumb-item a {
  text-decoration: none;
}

.page-breadcrumbs .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: none;
}
.page-breadcrumbs .bi {
  color: rgba(0, 42, 97, 1);
  font-size: 1.1rem;
  padding: 0px 5px;
}

.page-breadcrumbs .breadcrumb .breadcrumb-item.active {
  font-weight: 600;
  padding: 0;
}

/* === Заголовок внизу слева === */
.block_page_title{
  position: absolute;
  bottom: 0;

}
.page-title {
/*  position: relative;*/
left: 150px;
z-index: 2;
font-size: 32px;
font-weight: 600;
margin-bottom: 60px;
}


/* === Контейнер с заголовком и текстом — прилипает к низу === */
.page-header-content {
  position: absolute;
  bottom: 0px;
  left: 90px;
  z-index: 2;
  max-width: 1170px;
/*  padding: 0 156px;*/
padding: 0px 0 70px 190px;
 /* background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);*/
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: #002A61;
  margin: 0;
  text-shadow: 0 2px 4px rgba(9, 8, 66, 0.1);
}

.page-header-content p {
  font-size: 18px;
  color: #002A61;
  margin-left: 154px;
  line-height: 24px;
  /* display: none; */
  margin-bottom: 10px;
  margin-top: 38px;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}



/* === Карточки документов === */
.document-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  text-align: center;
}
.document-card img{
  max-height: 484px;
  padding: 10px;
  box-shadow: 
  inset 0 0 10px rgba(0,0,0,0.1), /* внутренняя тень */
  0 4px 24px 0 rgba(9, 8, 66, 0.06),
  0 2px 4px 0 rgba(9, 8, 66, 0.1);
}

.document-card:hover {
  transform: translateY(-5px);
}


/* === Модальное окно === */

/* Контейнер галереи */
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  overflow-y: auto;
  max-height: 90vh;
}

/* По умолчанию — одно фото на всю высоту */
.gallery-container img {
  width: 100%;
  max-width: 90%;
  height: 80vh;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

/* Если 2 фото — в ряд, по 45% ширины и одинаковая высота */
.gallery-container.two-imgs img {
  max-width: 45%;
  height: 70vh; /* чуть меньше, чтобы поместиться в ряд */
}

/* Адаптивность: на мобильных — одно фото в ряд */
/*@media (max-width: 767px) {
  .gallery-container img {
    max-width: 100%;
  }
}*/



.main-img,
.second-img {
  max-width: 90%;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.prev-btn,
.next-btn {
  width: 120px;
  font-weight: 600;
}

/* === Фиксированные стрелки === */
.fixed-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050; /* выше чем модалка */
/*  background: rgba(255, 255, 255, 0.8);*/
border: none;
/*  width: 50px;*/
height: 50px;
display: flex;
align-items: center;
justify-content: center;
/*  box-shadow: 0 4px 12px rgba(0,0,0,0.1);*/
transition: all 0.3s ease;
}

.carousel-control-prev.fixed-arrow {
  left: 40px;
  opacity: 1;
}

.carousel-control-next.fixed-arrow {
  right: 40px;
  opacity: 1;
}

/* Убираем стандартные стили Bootstrap */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
  width: 20px;
  height: 20px;
}

.carousel-control-prev-icon::before {
  content: "←";
  font-size: 24px;
  color: #1D4F91;
}

.carousel-control-next-icon::before {
  content: "→";
  font-size: 24px;
  color: #1D4F91;
}



/* === Работы === */


.work-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: #fff;
  padding: 1rem;
  z-index: 2;
  transition: background 0.2s;
  line-height: 24px;
}
.work-caption p {
  font-size: 18px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}
.work-caption h2 {
  left: 0;
  right: 0;
  color: #fff;
  font-weight: 600;
  z-index: 2;
  transition: background 0.2s;
  line-height: 32px;
}




/* === Проекты === */
.our-projects h2{
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
}
.project-card, .work-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 100%;
}


.project-card img, .work-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: brightness(90%); /* немного затемняем изображение для контраста */
}

/* Полупрозрачная подложка во всю картинку */
.project-card::before, .work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* темная полупрозрачная подложка */
  z-index: 1;
  transition: background 0.2s;
}


.work-card::before {

  background: linear-gradient(180deg, rgba(139, 182, 239, 0.6) 0%, rgba(0, 42, 97, 0.5) 100%);
}


/* Текст внизу — белый, поверх подложки */
.project-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #fff; /* белый текст */
  padding: 1rem;
  font-weight: 600;
  z-index: 2;
  transition: background 0.2s;
  line-height: 32px
}

.project-caption h3, .work-caption h2 {
  font-size: 24px;
  font-weight: 600;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.project-caption h3 a:hover, .work-caption h2 a:hover{
 text-decoration: underline;
}

/* === Кнопки === */
.btn-primary {
  background-color: #1D4F91;
  border-color: var(--primary-color);
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 18px;
}
.btn-primary:hover {
  background-color: #1D4F91;
  border-color: none;
}



/* === Плитки проектов — градиент на всё изображение === */
.project-page-card {
  position: relative;
  overflow: hidden;
}

.project-page-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: all 0.3s ease;
}

/* Градиентная подложка — на всё изображение */
.project-page-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(95, 140, 199, 0.12) 0%, rgba(29, 79, 145, 0.83) 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* При наведении — убираем градиент */
.project-page-card:hover::before {
  opacity: 0;
}

/* Текст — по центру, белый */
.project-page-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #fff;
  padding: 1rem;
  text-align: center;
  z-index: 2;
  transition: text-shadow 0.3s ease;
}
.project-page-caption h2{
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;

}

/* При наведении — добавляем тень тексту */
.project-page-card:hover .project-page-caption {
  text-shadow: 0 1px 3.8px rgba(0, 0, 0, 0.9);
}


/* === Горизонтальные табы === */
.tabs-limited-width {
  max-width: 1096px;
  margin: 0 auto;
  width: 100%;
}
.tabs-wrapper {
  margin-top: 1.5rem;
}

/* Контейнер кнопок — по центру */
.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;          /* можно убрать, если не нужен отступ */
  margin-bottom: 80px;
  justify-content: space-between; /* ← распределяет табы по краям */
  width: 100%;
}

/* Кнопка таба */
.tab-btn {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: #002A61;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  transition: all 0.3s ease;
  width: auto;          
/*  white-space: nowrap;*/
max-width: 235px;
}

.tab-btn:hover {
  color: #0d2a4d;
}

/* Стрелка */
.tab-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  bottom: 4px;
  position: relative;
}

/* Стрелка вправо (по умолчанию) */
.tab-btn:not(.active) .tab-arrow {
  transform: rotate(0deg);
}

/* Стрелка вниз (активная) */
.tab-btn.active .tab-arrow {
  transform: rotate(90deg);
}

/* Контент таба — во всю ширину */
.tab-content {
  display: none;
  width: 100%;
  max-width: 100%;
}
.tab-content p{
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}
.list-1{
  margin-top: 50px;
}
.tab-content li{
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}
.list-2, .list-3{

}
.list-2 {
  font-size: 0.9rem; /* меньше текста */
  line-height: 1.4;
  list-style-type: disc;
  padding-left: 60px;
}

.list-2 li {
  font-size: 18px;
  line-height: 24px;
}

.list-2 a {
  color: #1D4F91;
  text-decoration: none;
}

/* Уменьшаем маркеры */

/* Если хочешь уменьшить маркеры через CSS — используй ::marker */
.list-2 li::marker {
  font-size: 0.8em;
}

/* === Список 3 — маркеры в виде тире === */
.list-3 {
  font-size: 0.9rem;
  line-height: 1.4;
  padding-left: 1rem; /* отступ для тире */
  list-style-type: none;
  padding-left: 80px;
}

.list-3 li {
  position: relative;
  font-size: 18px;
  line-height: 24px;
}
.list-3 li::marker {
}

.list-3 li::before {
  content: "– "; /* тире + пробел */
  position: absolute;
  left: -1rem; /* отступ слева */
  font-weight: 600;
}

.tab-content.active {
  display: block;
}


/* === Вертикальные табы === */
.vertical-tabs-wrapper {
  max-width: 1096px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Контейнер всех табов */
.vertical-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1096px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Каждый таб — отдельный блок */
.vertical-tab-item {
  width: 100%;
}

/* Кнопка таба */
.vertical-tab-btn {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  color: #002A61;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  transition: color 0.3s ease;
  text-decoration: underline;
}

.vertical-tab-btn:hover {
  color: #0d2a4d;
}

/* Стрелка */
.vertical-tab-btn .tab-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.vertical-tab-btn:not(.active) .tab-arrow {
  transform: rotate(0deg);
}

.vertical-tab-btn.active .tab-arrow {
  transform: rotate(90deg);
}

/* Контент таба */
.vertical-tab-content {
  display: none;
  padding-top: 1rem;
}

.vertical-tab-content.active {
  display: block;
}

.vertical-tab-content p {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.vertical-tab-content li {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
/* Табы БЕЗ контента — как заголовки */
.vertical-tab-btn.no-content {
 cursor: default;
 pointer-events: none;
 border-left: none;
 text-decoration: none;
 padding-left: 18px;
}

.vertical-tab-btn.no-content .tab-arrow {
  display: none; /* скрываем стрелку */
}

/* Убираем hover-эффект */
.vertical-tab-btn.no-content:hover {
  color: #888;
}

/* === Футер === */
.site-footer{
  background-color: #1D4F91;
  color: #fff;
}
.footer-contact div {
  font-weight: 600;
}
.pd-widget-foot, .pd-logo-widget-foot{
  padding-top: 40px;
}

.phone_footer{
  margin-bottom: 6px;
}
.footer-contact div a {
  text-decoration: none;
}
.footer-heading {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-logo {
  max-width: 126px;
  margin: 0 auto;
}
.footer-logo-wrapper svg {
  width: 126px; /* или как у тебя */
  height: auto;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}
.footer-links li{
  line-height: 16px;
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 14px;
  line-height: 16px;
  text-decoration: none;
}
.invisible-md {
  visibility: hidden;
}
.activity-list-footer {
  column-count: 2; /* ← две колонки */
  column-gap: 1.5rem; /* ← отступ между колонками */
  padding: 0;
  margin: 0;
}

.activity-list-footer li {
  break-inside: avoid; /* ← чтобы элементы не разрывались между колонками */
  margin-bottom: 0.75rem;
}


.logo-footer-mobile{
  display: none;
}
/* === Адаптивность карты === */
.map-container {
  position: relative;
  width: 100%;
/*  max-width: 560px; /* как в оригинале */*/
margin: 0 auto;   /* центрирование, если нужно */
aspect-ratio: 560 / 400; /* 1.4 — сохраняет пропорции */
}

.map-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Стили для ссылок-логотипов Яндекса (по требованиям) */
.map-link {
  color: #eee;
  font-size: 12px;
  position: absolute;
  z-index: 1;
  text-decoration: none;
  pointer-events: none; /* чтобы не мешали кликам по карте */
}
.map-link:first-child { top: 0; }
.map-link:nth-child(2) { top: 14px; }

/* Поддержка старых браузеров (если нужна) */
@supports not (aspect-ratio: 1) {
  .map-container {
    height: 0;
    padding-bottom: 71.428%; /* 400 / 560 ≈ 71.428% */
    max-width: 100%;
  }
  .map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}


.gallery-container img{

}


/* === Адаптивность === */

/* === Зафиксировать логотип на больших экранах === */
@media (min-width: 992px) {
  .navbar-logo {
    position: absolute;
    left: 50%; 
/*  transform: translateX(-50%); */
/*    margin-left: -384px; */
margin-left: -462px;
margin-right: 100px; 
z-index: 10;
}

/* Скрываем стандартный логотип на больших экранах */
.navbar-logo img {
  max-width: 126px;
  height: auto;
}
}
@media (max-width: 1399.98px) {
  .work-caption h2 {
    line-height: 26px;
  }
  .tabs-section .section-title {
    padding-left: 90px;
  }
}
@media (max-width: 1199.98px) {
 .work-caption h2 {
  line-height: 22px;
  font-size: 18px;
}
.work-caption p {
  font-size: 14px;
  line-height: 16px;
}
.project-caption h3 {
  font-size: 18px;
}
.quote-text-wrpap {
  padding-right: 60px;
}
.page-header-content {
  padding: 0 0 70px 108px;
}
.tabs-section .section-title {
  padding-left: 80px;
}
}
@media (max-width: 991.98px) {
  .offcanvas {
  --bs-offcanvas-width: 80%;
  --bs-offcanvas-bg: var(--light-blue-bg);
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.navbar {
  height: 51px;
}
  .main-content {
    padding-left: 134px;
    padding-right: 134px;
  }
  .work-caption h2 {
    line-height: 24px;
    font-size: 24px;
  }
  .work-caption p {
    font-size: 16px;
    line-height: 20px;
  }
  .project-caption h3 {
    font-size: 14px;
  }
  .tab-buttons {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .tab-btn {
    flex: 0 0 calc(50% - 0.75rem); /* 50% ширины минус половина gap */
    min-width: auto;
    max-width: none;
    white-space: normal; /* разрешаем перенос текста */
    text-align: left; /* выравнивание текста */
  }
  .logo-footer-decstop{
    display: none;
  }
  .logo-footer-mobile{
    display: block;
    margin-left: auto !important;
  }
  .company-footer{
    padding-top: 40px;
  }
  .footer-logo {
    margin-left: 0;
  }
  .pd-logo-widget-foot{
    padding-top: 0px;
    text-align: center;
  }
  .activity-list-footer {
    column-count: 1;
  }
  .quote-text-wrpap{
    padding: 0px;
  }
  .quote-text {
    font-size: 20px;
    margin-bottom: 22px;
    margin-top: 22px;
  }
  .page-header-content {
    padding: 0 0 70px 68px;
  }
  .page-header-content p {
    margin-left: 0px;
  }
  .tabs-section .section-title {
    padding-left: 56px;
  }
}


@media (max-width: 767.98px) {
  .main-content {
    padding-left: 50px;
    padding-right: 50px;
  }
  .page-content {
    font-size: 18px;
    line-height: 24px;
  }
  /* === Мобильное меню — выезжает слева === */
  .offcanvas {
    --bs-offcanvas-width: 80%; /* можно изменить на 280px, 300px и т.д. */
    --bs-offcanvas-bg: var(--light-blue-bg);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }

  .offcanvas-header {
    padding: 1.5rem 1rem;
  }

  .offcanvas-body {
    padding-top: 20px;
  }

  .offcanvas .nav-link {
    color: #1D4F91 !important;
    font-size: 1.2rem;
    padding: 0.75rem 0;
  }

  .offcanvas .btn-close {
    width: 24px;
    height: 24px;
    opacity: 1;
  }
  .navbar {
    height: 51px;
  }
  .bg_header {
/*    top: -96px;*/
top:0px;
height: 380px;
}
.page-breadcrumbs {
  margin: 0 12px;
  font-size: 12px;
  line-height: 1;
}

.page-breadcrumbs .bi {
  color: rgba(0, 42, 97, 1);
  font-size: 0.8rem;
}
.bi::before, [class^="bi-"]::before, [class*=" bi-"]::before { 
  vertical-align: -0.125em;
}


.page-header-content {
  padding: 0 0 70px 0;
  text-align: center;
  width: 100%;
}
.page-title {
  font-size: 26px;
}

.page-header-content p {
  display: none;
}
.bg_header_page{

  /* top: -96px; */
/*  top: 0px;*/
/* height: 380px; */
/*  max-height: 100%;*/

}
.logo-centered {
  top: 158px; /* адаптировано под мобильную версию */
}
.logo-image {
  max-width: 200px;
}
.section-title {
  font-size: 1.5rem;
}
.stat-m-item, .stat-item {
  margin: 0 auto;
}
 /* .stat-number {
    font-size: 2.2rem;
  }*/
  .work-caption h2 {
    line-height: 32px;
    font-size: 24px;
  }
  .work-caption p {
    font-size: 18px;
    line-height: 24px;
  }
  .project-caption h3 {
    font-size: 18px;
  }
  .project-caption {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  .btn-primary {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
  .pd-widget-foot {
    text-align: center;
  }
  .tab-content li {
    line-height: 24px;
    font-weight: 600;
    padding: 6px 0;
  }
  .list-1 {
    margin-top: 44px;
  }
  .list-1 li{
    font-size: 20px;
  }
  .carousel-control-prev.fixed-arrow {
    left: 0;
  }
  .carousel-control-next.fixed-arrow {
    right: 0;
  }
  .carousel-control-prev img, .carousel-control-next img{
    height: 70px;
    width: auto;
  }
  .gallery-container img {
    max-width: 100%;
  }

}

@media (max-width: 575.98px) {
  .main-content {
    padding-left: 0px;
    padding-right: 0px;
  }

  .quote-text-wrpap {
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
  }
  .tabs-limited-width {
    padding: 0 15px;
  }

  .tab-btn {
    min-width: 100%; /* на мобилках — в один столбец */
    max-width: 100%;
  }

  .tab-buttons {
    justify-content: flex-start;
    gap: 1rem;
  }
  .page-header-content {
    padding: 0 24px 70px 24px;
    text-align: center;
    width: 100%;
  }
  .page-title {
    font-size: 26px;
    line-height: 24px;
  }
}
@media (max-width: 413.98px) {
  .page-title {
    font-size: 24px;
  }
  .work-caption h2 {
    line-height: 24px;
  }
  .work-caption p {
    line-height: 20px;
  }
}
