/* ===== База цветов ===== */
body{
  background: var(--c-site-bg);
  color: var(--c-text-dark);
}

/* ===== Site Frame (общий контейнер сайта) ===== */
.site{
  background: var(--c-site-bg);
}

.site-frame{
  max-width: var(--layout-max, 1280px);
  margin: 0 auto;
  padding-top: 84px;
  background: var(--c-frame-bg, #ffffff);
  box-shadow: var(--frame-shadow, 0 8px 24px rgba(0,0,0,.12));
  overflow: hidden;
}

#sect_services,
#sect_industries,
#sect_tariffs,
#work_steps,
#teams,
#sect_faq{
  scroll-margin-top: 84px; 
}

/* Если контейнер сайта выключен — делаем его прозрачным и без ограничений */
body.no-site-frame .site-frame{
  max-width: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs-bar{
  padding: 16px 0;
  background: var(--c-primary)
}
.breadcrumbs{
  font-size: 14px;
  /* opacity: .9; */
}
.breadcrumbs__sep { margin: 0 8px; opacity: .6; }
.breadcrumbs__current { font-weight: 600; }

.breadcrumbs span{
  color: var(--c-text-light);
}
.breadcrumbs a{
  color: var(--c-text-light);
}
.breadcrumbs a:hover{
  color: color-mix(in oklab, #fff, #000 12%);
}

.nav-links{
  padding: 15px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* ===== Заголовки архивов/блога ===== */
.archive-header { margin: 0 0 18px; }
.archive-title { margin: 0 0 8px; }
.archive-description { opacity: .85; }
.posts-list { display: grid; gap: 16px; }

/* Декоративные волны */
.decor{
  line-height: 0;
  overflow: hidden;
  color: var(--c-primary);
  width: 100%;
  position: relative;
}

.decor__svg{
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 100%;
  min-width: 1920px;
}

.decor__svg svg{
  display: block;
  width: 100%;
  height: 100%;
  preserveAspectRatio: none;
}

/* Кнопки */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 24px 32px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}

.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: var(--c-primary);
  color: #fff;
}
.btn--primary:hover{ background: var(--c-primary-hover); }
.btn--primary:active{ background: var(--c-primary-active); }

.btn--secondary{
  background: var(--c-secondary);
  color: #fff;
}
.btn--secondary:hover{ background: var(--c-secondary-hover); }
.btn--secondary:active{ background: var(--c-secondary-active); }

.btn--outline{
  background: transparent;
  border-color: var(--c-border);
  color: var(--c-text-dark);
}
.btn--outline:hover{
  border-color: var(--c-primary);
  color: var(--c-primary);
}

/* Доступность: focus-visible Показываем фокус только клавиатурой */
:focus-visible{
  outline: 2px solid var(--c-secondary);
  outline-offset: 2px;
}

/* Чтобы ссылки/кнопки выглядели одинаково */
a:focus-visible,
button:focus-visible,
.btn:focus-visible{
  outline: 2px solid var(--c-secondary);
  outline-offset: 3px;
}

/* Gutenberg / контент */
.entry__content > *:first-child { margin-top: 0; }
.entry__content > *:last-child { margin-bottom: 0; }

/* Цитаты */
.wp-block-quote{
  margin: 0 0 14px;
  padding: 12px 16px;
  border-left: 4px solid var(--c-primary);
  background: var(--c-dark-overley);
}

/* Кнопки Gutenberg */
.wp-block-button__link{
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
}

/* Контентные списки: возвращаем маркеры после reset.css */
.entry__content ul{
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 12px;
}

.entry__content ol{
  list-style: decimal;
  padding-left: 22px;
  margin: 0 0 12px;
}

.entry__content li{
  margin: 0 0 6px;
}

/* Архивные записи плитка/сетка */
/* Для плитки */
.posts-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Для списка */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Общие стили главной */
.site-content ul{
  list-style: disc;
}
.site-content li ul{
  list-style: circle;
}
.site-content ol{
  list-style: decimal;
}

.section__header{
  max-width: 738px;
  margin: 0 auto 32px;
  text-align: center;
}
.section__footer{
  max-width: 738px;
  margin: 32px auto;
  text-align: center;
}
.section__header .section__title,
.section__footer .section__title{
  font-size: 32px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section__header .section__descr,
.section__footer .section__descr{
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.card{
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 20px;
  text-align: center;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}
.card:hover{
  transform: scale(1.02);
}

.card__title{
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}
.card__descr{
  font-size: 16px;
  font-weight: 400;
}
.card__actions{
  margin-top: auto;
  width: 100%;
}

.card__content{
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  gap: 24px;
}
.card__content .card__title,
.card__content .card__descr{
  margin: 0 auto;
}

/* HEADER */
.site-header{
  position: fixed;
  z-index: 10;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  /* max-width: var(--layout-max, 1280px); */
  max-width: var(--header-max-width, 100%);
  background-color: var(--c-frame-bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.main-header__branding { display:flex; align-items:center; gap:12px; flex: 0 0 auto; }
.site-logo {flex: 0 0 auto; }
.site-title { font-size: 22px; font-weight: 800; line-height: 1.1; margin: 0; color: var(--c-primary); }
.site-title a { color: inherit; }
.site-description { font-size: 14px; opacity: 0.7; margin-top: 4px; max-width: 240px; }

img.custom-logo{
  height: 100%;
  max-height: 60px;
  min-width: 80px;
  width: auto;
}

.site-header .contact-links svg{
  height: 100%;
  width: auto;
}

/* TOP BAR & TOP MENU */
.top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: var(--c-frame-bg);
}

/* Базовые стили меню */
.menu { display:flex; gap:15px; padding:0; margin:0; }
.menu li{
  list-style:none;
  position: relative;
}

.menu--top {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0px;
}

.menu a {
  text-decoration: none;
  color: var(--c-primary);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  font-weight: 600;
  padding: 8px 16px;
  transition: all 0.3s;
}
.menu a:hover {
  background-color: var(--c-primary);
  color: #fff;
}

/* ВЫПАДАЮЩЕЕ МЕНЮ (Sub-menu) */
.sub-menu {
  z-index: 15;
  visibility: hidden;
  opacity: 0;
  background: #ffffff;
  min-width: 180px;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  list-style: none;
  transition: all 0.2s ease-in-out;
}

.menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  transform: translateY(10px);
}

/* Показываем при наведении */
li:hover > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.sub-menu li {
  width: 100%;
}

.sub-menu a {
  padding: 8px 20px;
  font-size: 14px;
  display: block;
}

.sub-menu a:hover {
  background-color: var(--c-primary);
  color: #fff;
}

/* Основное МЕНЮ */
.menu--main {
  display: flex;
  align-items: center;
  gap: 0px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* bottom-menu */
.bottom-menu{
  background: var(--c-primary);
  padding: 14px 0;
}
.bottom-menu__inner { display:flex; justify-content:center; }
.menu--bottom {
  justify-content:center;
  flex-wrap:wrap;
  gap: 0;
}

.bottom-menu a{
  color: var(--c-text-light);
}
.bottom-menu a:hover{
  color: var(--c-primary-hover);
  background-color: var(--c-text-light);
}

.bottom-menu .sub-menu{
  background: var(--c-primary);
}

/* Стрелочка для пунктов с подменю */
.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: 4px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.8;
  transition: all 0.3s;
}
.menu-item-has-children > a:hover::after{
  transform: rotate(180deg);
}

.sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-top: -10px;
}

/* Последний пункт меню и его подменю */
li:nth-last-child(1) .sub-menu .sub-menu {
  left: auto;
  right: 100%; /* Открываем влево */
  transform: translateX(-10px); /* Сдвиг для анимации в другую сторону */
}

/* Анимация при наведении для "левых" меню */
li:nth-last-child(1) .sub-menu li:hover > .sub-menu {
  transform: translateX(0);
}

/* Центрируем правую часть (контакты) относительно меню */
.top-bar__right {
  display: flex;
  align-items: center;
  margin-left: auto;
  justify-content: flex-end;
  flex: 1 1 420px;
  gap: 15px;
}

/* Контакты и соцсети */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.contact-list, .social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 600;
}

footer .contact-list{
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 8px;
}

.contact-links__core, 
.contact-links__socials {
  display: flex;
  gap: 8px;
  align-items: center;
}

.contact-links--header {
  flex-direction: row;
}

.contact-links--footer {
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.contact-links--footer .contact-links__core {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.contact-links--footer .contact-links__socials {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-link,
.contact-item{
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--c-primary);
}
.contact-link:hover{
  color: var(--c-primary-hover);
}
.contact-link:active{
  color: var(--c-primary-active);
}

.contact-link__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  position: relative;
  background: var(--c-frame-bg, #fff);
  padding: 12px 0;
}

/* КНОПКИ ДЕЙСТВИЙ (Поиск + Бургер) */
.search-toggle {
  width: 36px;
  height: 36px;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.search-toggle:hover{
  background: var(--c-primary-hover);
}

.header-search { position: relative; display: flex; align-items: center; }

.search-form {
  position: absolute;
  right: 100%;
  margin-right: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: 0.3s ease;
}

.is-search-open .search-form {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.search-form input {
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  width: 200px;
  outline: none;
}
.wp-block-search__inside-wrapper{
  border-radius: 8px;
  border-color: #bbb;
}
.wp-block-search__button.has-icon{
  background: var(--c-primary);
  border-radius: 8px;
  color: #fff;
}
.wp-block-search__button.has-icon:hover{
  background: var(--c-primary-hover);
}

/* КНОПКИ ДЕЙСТВИЙ: Позиционирование */
.header-actions { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  position: relative;
  z-index: 10;
}

/* БУРГЕР (3 полоски) */
.burger {
  width: 42px;
  height: 42px;
  background: #eee;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: none; 
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s;
  z-index: 30;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text-dark);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Анимация превращения в КРЕСТИК */
.is-menu-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.is-menu-open .burger span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.is-menu-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Блокировка скролла */
body.no-scroll { overflow: hidden; }

/* ГЛАВНЫЙ СЛАЙДЕР: База */
.hero-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hero-slide {
  position: relative;
  min-height: 800px; 
  display: flex;
  align-items: center;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-image: var(--bg-dt);
}

/* Наложение цвета (Оверлей) */
.hero-slide__overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.hero-slide__container {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
}

.hero-slide__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 32px 0;
}

.hero-slide__left{
    flex: 0 0 calc(60% - 20px);
    width: calc(60% - 20px);
}
.hero-slide__right {
    flex: 0 0 calc(40% - 20px);
    width: calc(40% - 20px);
}

.hero-slide__left{
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  min-height: 400px;
}
.hero-slide__title { font-size: clamp(24px, 5vw, 48px); line-height: 1.1; font-weight: 700; color: #fff; margin: 0; text-transform: uppercase; }
.hero-slide__text { font-size: 20px; font-weight: 500; max-width: 100%; line-height: 1.4; }
.hero-slide__actions { display: flex; gap: 15px; margin-top: auto; }

.hero-slide__right {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-slide__icon {
  display: block;
  max-width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

/* Кастомизация управления под основной цвет */
.hero-slider .swiper-pagination-bullet-active { background: var(--c-primary); }

.hero-slider .swiper-button-next, .hero-slider .swiper-button-prev { color: #fff; transform: scale(0.7); }
.swiper-button-prev, .swiper-rtl .swiper-button-next {
  left: var(--swiper-navigation-sides-offset, 0px);
  right: auto;
}
.swiper-button-next, .swiper-rtl .swiper-button-prev {
  right: var(--swiper-navigation-sides-offset, 0px);
  left: auto;
}

/* footer */
.footer-widgets{
  padding: 24px 0;
  background-color: #222;
  color: #bbb;
}
.footer-widgets .widget-title{
  font-size: 20px;
  font-weight: 600;
  color: var(--c-text-light);
}
.footer-widgets a{
  color: var(--c-text-light);
  font-weight: 600;
  opacity: 0.9;
}
.footer-widgets a:hover{
  color: var(--c-primary);
  opacity: 1.0;
}
.footer-widgets__inner { display:grid; gap:16px; }
.footer-widgets--cols-1 .footer-widgets__inner { grid-template-columns: 1fr; }
.footer-widgets--cols-2 .footer-widgets__inner { grid-template-columns: repeat(2, 1fr); }
.footer-widgets--cols-3 .footer-widgets__inner { grid-template-columns: repeat(3, 1fr); }
.footer-widgets--cols-4 .footer-widgets__inner { grid-template-columns: repeat(4, 1fr); }

.site-copyright{
  padding: 12px 0; font-size: 14px;
  background-color: var(--c-primary);
  color: #bbb;
}
.site-copyright a{
  color: var(--c-text-light);
  font-weight: 600;
  opacity: 0.8;
}
.site-copyright a:hover{
  opacity: 0.95;
}
.site-copyright__inner { display:flex; gap:16px; justify-content:space-between; align-items:center; flex-wrap:wrap; }
.site-copyright .sep { opacity:.6; }

/* NAVIGATION DRAWER (ВЫЕЗЖАЮЩЕЕ МЕНЮ) */
.navigation-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--c-primary);
  color: #fff;
  padding: 80px 30px 40px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1),
              visibility 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
  visibility: hidden;
}

/* Состояние при открытии */
.is-menu-open .navigation-drawer {
  transform: translateX(0);
  visibility: visible;
}

/* Блокировка скролла основной страницы */
body.is-menu-open {
  overflow: hidden;
}

/* --- ВНУТРЕННИЕ ЭЛЕМЕНТЫ --- */
.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.drawer-section .site-title{
  color: #ffffffdd;
}

/* Основное и вторичное меню */
.drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-menu li{
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 8px 0;
}

.drawer-menu li a {
  text-decoration: none;
  /* color: var(--c-text-dark, #333); */
  color: #ffffffdd;
  font-size: 22px;
  font-weight: 700;
  transition: color 0.3s;
}
.drawer-menu li a:hover{
  /* color: var(--c-primary); */
  color: #fff;
  background-color: transparent;
}

.drawer-menu .sub-menu{
  background: var(--c-primary-hover);
}

.drawer-menu .sub-menu a{
  font-size: 18px;
}

.drawer-menu--secondary li a {
  font-size: 18px;
}

/* Контакты в бургере */
.navigation-drawer .contact-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Поиск на всю ширину */
.drawer-search {
  /* width: 100%; */
}

.drawer-search-wrapper {
  position: relative;
  width: 100%;
}

.drawer-search-field {
  width: 100%;
  padding: 14px 50px 14px 18px;
  border: 2px solid var(--c-border, #eee);
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}

.drawer-search-field:focus {
  border-color: var(--c-primary, #f06292);
}

.drawer-search-submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--c-primary, #f06292);
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
}

/* Разделитель */
.drawer-divider {
  border: 0;
  border-top: 1px solid var(--c-border, #eee);
  width: 100%;
  margin: 10px 0;
}

/* Иконки соцсетей в бургере */
.navigation-drawer .social-list {
  display: flex;
  gap: 15px;
  font-size: 20px;
}

/* Стили для многоуровневого меню в бургере */
/* Скрываем подменю по умолчанию */
.navigation-drawer .sub-menu {
  display: none;
  list-style: none;
  margin-top: 10px;
}

/* Когда родительский пункт активен, показываем подменю */
.navigation-drawer .menu-item-has-children:hover > .sub-menu,
.navigation-drawer .menu-item-has-children.is-open > .sub-menu {
  display: block;
  position: static;
  animation: slideDownMenu 0.3s ease-out;
}

/* Добавляем иконку стрелочки для пунктов с детьми */
.navigation-drawer .menu-item-has-children > a {
  display: flex;
  align-items: center;
}

/* Анимация появления */
@keyframes slideDownMenu {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.entry__footer{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-links, .tags-links{
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cat-links a{
  padding: 4px 8px;
  background: transparent;
  border: 1px solid;
  border-radius: 8px;
  border-color: var(--c-primary);
  color: var(--c-text-dark);
}
.cat-links a:hover{
  border-color: var(--c-primary-hover);
  color: var(--c-primary-hover);
}
.tags-links a{
  padding: 4px 8px;
  background: transparent;
  border: 1px solid;
  border-radius: 8px;
  border-color: var(--c-secondary);
  color: var(--c-text-dark);
}
.tags-links a:hover{
  border-color: var(--c-secondary-hover);
  color: var(--c-secondary-hover);
}

/* ОБЩИЕ СТИЛИ ДЛЯ КАРТОЧЕК (Плитка и Список) */
.entry--loop,
.entry--related{
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  overflow: hidden;
}
.entry--related{
  flex-direction: column;
  height: 100%;
}

.entry--loop:hover,
.entry--related:hover{
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* 1. РЕЖИМ ПЛИТКИ (Grid) */
.posts-grid .entry--loop {
  flex-direction: column;
}

/* 2. РЕЖИМ СПИСКА (List) */
.posts-list .entry--loop {
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
}

.posts-list .post-thumbnail {
  width: 35%;
  flex-shrink: 0;
  margin-bottom: 0;
}

.posts-list .entry__content {
  flex-grow: 1;
}

/* ЭФФЕКТ НАЛОЖЕНИЯ С КРЕСТИКОМ */
.entry--related .post-thumbnail {
  margin-bottom: 15px;
}
.post-thumbnail {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Розовая вуаль */
.post-thumbnail::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--c-primary-overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Белый крестик (+) */
.post-thumbnail::after {
  content: '+';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  color: #fff;
  font-size: 50px;
  font-weight: 300;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.entry--loop:hover .post-thumbnail::before,
.entry--loop:hover .post-thumbnail::after,
.entry--related:hover .post-thumbnail::before,
.entry--related:hover .post-thumbnail::after{
  opacity: 1;
}

.entry--loop:hover .post-thumbnail::after,
.entry--related:hover .post-thumbnail::after{
  transform: translate(-50%, -50%) scale(1);
}

.entry--loop:hover .post-thumbnail img,
.entry--related:hover .post-thumbnail img{
  transform: scale(1.05);
}

/* КУКИ-БАННЕР */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  color: #bbb;
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 -2px 15px rgba(0,0,0,0.3);
}

.cookie-banner__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cookie-banner__content {
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
}

.cookie-banner__content a {
  color: var(--c-text-light);
  text-decoration: underline;
  transition: opacity 0.3s;
}

.cookie-banner__content a:hover {
  color: var(--c-primary);
}

.cookie-banner__btn {
  padding: 10px 30px;
  font-size: 14px;
  text-transform: none;
  cursor: pointer;
  white-space: nowrap;
}

/* МОДАЛЬНОЕ ОКНО buh_obereg */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 750px;
  border-radius: 24px;
  padding: 40px;
  position: relative;
  box-shadow: var(--card-shadow);
  max-height: 95vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px; right: 25px;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  color: #ccc;
  transition: color 0.3s;
}
.modal-close:hover { color: var(--c-primary); }

.modal-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; color: #333; }
.modal-subtitle { color: #777; margin-bottom: 30px; font-size: 15px; }

/* СЕТКА И ПОЛЯ */
.form-grid { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.f_50 { width: 50%; padding: 0 10px; }
.f_100 { width: 100%; padding: 0 10px; }

.form-group { margin-bottom: 18px; }
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s;
}
.form-input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(240, 98, 146, 0.1);
  outline: none;
}

.form-label { display: block; margin-bottom: 6px; font-size: 14px; color: #444; }

/* ЧЕКБОКСЫ */
.policy-box { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; cursor: pointer; color: #666; }
.check-item input { margin-top: 3px; accent-color: var(--c-primary); }

.form-footer { margin-top: 25px; text-align: center; }

/* Главная СЕКЦИЯ "О НАС" */
.home-about {
  padding: 80px 0;
  overflow: hidden;
}

.home-about__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

/* Настройка фото: 300-400px */
.home-about__image {
  flex: 0 0 40%;
  max-width: 400px;
  min-width: 300px;
}

.home-about__image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}

/* Контент: мин 300px */
.home-about__content {
  flex: 1;
  min-width: 300px;
}

.home-about__title {
  margin-bottom: 25px;
  line-height: 1.2;
}

.home-about__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* УНИВЕРСАЛЬНЫЕ КАРТОЧКИ */
.uni-section {
  padding: 60px 0;
}

.uni-section__header {
  margin-bottom: 40px;
  text-align: left;
}

.uni-section__title {
  margin-bottom: 15px;
}

/* СЕТКА GRID */
.uni-cards__grid {
  display: grid;
  gap: 25px;
  justify-content: center;
}

.uni-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

/* Эффект поднятия */
.uni-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
}

.uni-card__img-link, .uni-card__img-wrap {
  display: block;
  margin-bottom: 15px;
  text-align: center;
}

.uni-card img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  transition: opacity 0.3s;
}

.uni-card__img-link:hover img {
  opacity: 0.8;
}

.uni-card__content {
  text-align: center;
}

.uni-card__link {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 16px;
  transition: filter 0.3s ease;
}

.uni-card__link:hover {
  filter: brightness(0.8);
}

.uni-card__text {
  font-size: 14px;
  line-height: 1.4;
}

/* СЕКЦИЯ ПОСТОВ */
.home-posts {
  padding: 80px 0;
  background-color: #fdfdfd;
}

.home-posts__header {
  margin-bottom: 40px;
}

.home-posts__title {
  margin-bottom: 10px;
}

.home-posts__descr {
  color: #888;
  font-size: 16px;
}

/* НИЖНЯЯ ПАНЕЛЬ: СКРОЛЛБАР + НАВИГАЦИЯ */
.home-posts__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  gap: 30px;
}

/* Скроллбар */
.home-posts .js-posts-scrollbar.swiper-scrollbar {
  flex-grow: 1;
  position: relative;
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
}

.home-posts .swiper-scrollbar-drag {
  background: var(--c-primary);
}

/* Группа кнопок справа */
.home-posts__nav-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* КНОПКИ НАВИГАЦИИ */
.home-posts .js-posts-prev,
.home-posts .js-posts-next {
  position: relative;
  width: 44px;
  height: 44px;
  background-color: var(--c-primary);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Рисуем стрелки через CSS (надёжнее шрифтов) */
.home-posts .js-posts-prev::after,
.home-posts .js-posts-next::after {
  content: '';
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}

.home-posts .js-posts-prev::after { transform: rotate(-45deg); margin-left: 4px; }
.home-posts .js-posts-next::after { transform: rotate(135deg); margin-right: 4px; }

.home-posts .js-posts-prev:hover,
.home-posts .js-posts-next:hover {
  background-color: var(--c-primary-hover);
}

.home-posts .swiper-wrapper{
  padding: 15px 0;
}

/* КАРТОЧКА ПОСТА И ЭФФЕКТЫ */
.post-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  box-shadow: var(--b-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
}
.post-card__content {
  padding: 25px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #eee;
}
.post-card__image::before{
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--c-primary-overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.post-card__image::after {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  color: #fff;
  font-size: 50px;
  font-weight: 300;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}
.post-card:hover .post-card__image::before,
.post-card:hover .post-card__image::after{
  opacity: 1;
}
.post-card:hover .post-card__image::after{
  transform: translate(-50%, -50%) scale(1.0);
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* СОСТОЯНИЕ ПРИ НАВЕДЕНИИ (HOVER) */
.post-card:hover .post-card__image img {
  transform: scale(1.02);
}

.post-card:hover .post-card__overlay {
  opacity: 1;
}

.post-card__title {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.post-card__title a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.post-card__title a:hover {
  color: var(--c-primary);
}

.post-card__date {
  font-size: 14px;
  color: #999;
}

/* CLIENTS SLIDER */
.section-clients {
  background-color: var(--c-section-light);
}

.client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 10px;
}

.client-logo-img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: grayscale(100%);
}

.client-item:hover .client-logo-img {
  opacity: 1;
  transform: scale(1.05);
  filter: grayscale(0%);
}

.client-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* SECTION PROBLEMS */
.section-problems {
  background-color: var(--c-site-bg);
}

.section-problems .section__footer{
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  background: var(--c-primary);
  color: #fff;
  border-radius: 20px;
  padding: 36px;
  text-transform: none;
}
.section-problems .section__footer .section__title,
.section-problems .section__footer .section__descr{
  margin-bottom: 0;
}

/* Сетка карточек */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Карточка */
.problem-card {
  background-color: var(--c-section-light, #F1EADD);
  border-radius: 20px;
  padding: 32px 16px;
  text-align: center;
  box-shadow: 1px 2px 4px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
  transform: scale(1.02);
}

.problem-card__icon {
  margin-bottom: 25px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-card__icon img {
  max-height: 100%;
  width: auto;
  transition: transform 0.4s ease;
}

.problem-card:hover .problem-card__icon img {
  transform: rotate(15deg);
}

/* SECTION NICHES */
.niches-section {
  background-color: transparent;
}

/* Сетка карточек */
.niches-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--c-min, 400px), 1fr));
  gap: 30px;
  justify-items: center;
}

/* Карточка */
.niches-card {
  max-width: var(--c-max, 500px);
  overflow: hidden;
}

.niches-card__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: rgba(255, 255, 255, 0.3);
}

.niches-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SECTION TABLE */
.tables-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.table-block__title {
  margin-bottom: 24px;
  font-size: 1.25rem;
  text-align: center;
  color: var(--c-text-dark);
}

/* Обертка для скролла */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  max-height: 600px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

/* Стили самой таблицы */
.table-responsive-wrapper table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
  background: #fff;
}

.table-responsive-wrapper th,
.table-responsive-wrapper td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  font-size: 0.95rem;
}

/* ЗАКРЕПЛЕНИЕ ШАПКИ (Sticky) */
.table-responsive-wrapper thead th,
.table-responsive-wrapper tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--c-section-light, #f8f8f8);
  color: var(--c-text-dark);
  font-weight: 700;
  box-shadow: inset 0 -2px 2px var(--c-border);
}

/* === SECTION STEPS (Умные линии через before/after) === */

.section-steps {
  /* Фон секции из PHP */
}

.steps__grid {
  display: grid;
  /* Твои переменные из ACF */
  grid-template-columns: repeat(auto-fit, minmax(var(--c-min, 400px), 1fr));
  gap: 30px 0;
  justify-items: center;
}

.step-card {
  text-align: center;
  width: 100%;
  max-width: var(--c-max, 500px);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: none;
}
.step-card:hover{
  transform: none;
}

.step-card .card__img {
  margin-bottom: 20px;
  height: 250px;
  display: flex;
  align-items: flex-end;
}

.step-card .card__img img {
  max-width: 180px;
  height: auto;
}

.step-card .card__content{
  padding: 10px;
  gap: 16px;
}

/* --- КОНТЕЙНЕР ДЛЯ ЛИНИЙ И НОМЕРА --- */
.step-card__divider {
  position: relative;
  width: 100%; /* Нужно для растяжки линий */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

/* Общие стили для линий */
.step-card__divider::before,
.step-card__divider::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background-color: var(--c-primary);
  width: calc(50% - 22px); /* 50% ширины минус радиус кружка */
  z-index: 1;
}

/* Левая линия */
.step-card__divider::before {
  left: 0;
}

/* Правая линия */
.step-card__divider::after {
  right: 0;
}

/* Убираем линии у краев (общие для всей сетки) */
.step-card:first-child .step-card__divider::before {
  display: none;
}
.step-card:last-child .step-card__divider::after {
  display: none;
}

/* Кружок с номером */
.step-card__number {
  width: 44px;
  height: 44px;
  background-color: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  position: relative;
  z-index: 2; /* Поверх линий */
}

/* --- АДАПТИВ (Desktop-first) --- */

@media (max-width: 1024px) {
  .steps__grid {
      grid-template-columns: 1fr; /* В одну колонку */
      gap: 50px;
  }

  .step-card {
      display: grid;
      /* По макету: Картинка (120px) | Номер/Линия (44px) | Текст (1fr) */
      grid-template-columns: 120px 44px 1fr;
      text-align: left;
      align-items: center;
      gap: 30px;
      max-width: 100%;
  }

  .step-card .card__img {
      height: auto;
      margin-bottom: 0;
      justify-content: center;
  }

  .step-card .card__img img {
      max-width: 100px;
  }

  .step-card__divider {
      height: 100%; /* Растягиваем на всю высоту карточки для вертикальной линии */
      width: 44px;
      margin-bottom: 0;
  }

  /* ПЕРЕКЛЮЧАЕМ ЛИНИИ В ВЕРТИКАЛЬНЫЙ РЕЖИМ */
  .step-card__divider::before,
  .step-card__divider::after {
      left: 50%;
      transform: translateX(-50%);
      width: 2px;
      height: calc(50% + 25px); /* Увеличиваем длину, чтобы соединить блоки */
      top: auto;
  }

  /* Верхняя линия (бывшая левая) */
  .step-card__divider::before {
      bottom: 50%; /* Идет от центра вверх */
      top: auto;
  }

  /* Нижняя линия (бывшая правая) */
  .step-card__divider::after {
      top: 50%; /* Идет от центра вниз */
  }

  .step-card .card__content {
      padding-top: 0;
  }
}

@media (max-width: 640px) {
  .step-card {
      grid-template-columns: 80px 44px 1fr;
      gap: 15px;
  }

  .step-card .card__img img {
      max-width: 70px;
  }
  
  .step-card .card__title {
      font-size: 1.1rem;
  }
}

/* === SECTION BANNER === */

.section-banner {
  /* Стандартные отступы .section */
}

.banner {
  position: relative;
  border-radius: 20px; /* Если нужно скругление как на макете */
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 500px;
  
  /* Desktop слои: Картинка + Оверлей */
  background-image: var(--ban-bg-dt);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* Оверлей ban_bg_color */
.banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--ban-overlay);
  z-index: 1;
}

.banner__content {
  position: relative;
  z-index: 2;
  width: 60%;
  padding: 60px;
  color: #fff;
}

.banner__title {
  text-align: left;
  margin-bottom: 30px;
  color: inherit;
}

.banner__descr {
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
  color: inherit;
  opacity: 0.85;
}

.banner__mobile-img {
  display: none;
}

/* --- АДАПТИВ (Desktop-first) --- */

@media (max-width: 1024px) {
  .banner {
    flex-direction: column;
    min-height: auto;
    background-image: none;
    background-color: var(--c-primary);
  }

  .banner__content {
    width: 100%;
    padding: 40px 20px;
  }

  .banner__mobile-img {
    display: block;
    width: 100%;
    line-height: 0;
    position: relative;
    z-index: 2;
  }

  .banner__mobile-img img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9; 
  }
}

@media (max-width: 640px) {
  .banner__content {
    padding: 30px 15px;
  }
  
  .banner__title {
    font-size: 1.5rem;
  }
}

/* SECTION REVIEWS */
.reviews-slider-wrap {
  position: relative;
  padding: 0 60px;
}

.js-reviews-slider {
    padding: 20px 10px; 
    margin: -20px -10px;
}

.card--review {
  background-color: var(--card-bg);
  position: relative;
  z-index: 1;
  align-items: stretch;
  height: auto;
}
.card--review:hover {
  z-index: 2;
}

.review-author {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.card--review .card__title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card--review .card__subtitle {
  opacity: 0.8;
  margin-top: 4px;
}

.review-stars {
  display: flex;
  gap: 4px;
}

/* Блок с текстом и затуханием */
.card__descr-fade {
  position: relative;
  max-height: 200px;
  overflow: hidden;
  flex-grow: 1;
}

.card--review .card__descr {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  scrollbar-width: thin;
  scrollbar-color: var(--c-primary) transparent;
}

.card__descr-fade::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--card-bg));
  pointer-events: none;
}

/* Кастомный скроллбалл для Chrome/Safari */
.card--review .card__descr::-webkit-scrollbar {
  width: 4px;
}
.card--review .card__descr::-webkit-scrollbar-thumb {
  background-color: var(--c-primary);
  border-radius: 10px;
}

/* Градиент затухания */
.card__descr-fade::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--card-bg));
  pointer-events: none;
  z-index: 2;
}

/* Навигация слайдера */
.reviews-slider-wrap .swiper-button-prev,
.reviews-slider-wrap .swiper-button-next {
  color: var(--c-primary);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 1px 2px 4px rgba(0,0,0,0.15);
}

.reviews-slider-wrap .swiper-button-prev::after,
.reviews-slider-wrap .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}

.reviews-slider-wrap .swiper-button-prev { left: 0; }
.reviews-slider-wrap .swiper-button-next { right: 0; }

/* Адаптив */
@media (max-width: 1024px) {
  .reviews-slider-wrap {
    padding: 0;
  }
  .reviews-slider-wrap .swiper-button-prev,
  .reviews-slider-wrap .swiper-button-next {
    display: none;
  }
}

/* SECTION FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
  align-items: start;
}

.faq-card {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  color: var(--c-text-dark);
}

.faq-card__header {
  padding: 20px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

.faq-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  color: #000000;
}

.faq-card__icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

/* Состояние раскрытого аккордеона */
.faq-card.is-open .faq-card__icon {
  transform: rotate(180deg);
}

.faq-card.is-open .faq-card__header {
  background-color: #ffffff;
}

/* Контент аккордеона */
.faq-card__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  background-color: #ffffff;
}

.faq-card.is-open .faq-card__content {
  max-height: 1000px;
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.faq-card__inner {
  padding: 12px 24px 24px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.section-faq .btn--primary{
  border: 2px solid var(--faq-color, currentColor);
}

/* Adaptive */
@media (max-width: 1024px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* SECTION TEAMS */
.teams-slider-wrap {
  position: relative;
  padding: 0 60px;
}

.js-teams-slider {
  padding: 20px 10px;
  margin: -20px -10px;
}

.js-teams-slider .swiper-wrapper {
  align-items: stretch;
}

.card--team {
  height: auto;
  overflow: hidden;
}

.card--team .card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.card--team .card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card--team:hover {
  transform: none;
}
.card--team:hover .card__img img{
  transform: scale(1.02);
}

.card--team .card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
  align-items: flex-start;
}

.card--team .card__title {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: left;
  margin-left: 0;
}

.card--team .card__subtitle {
  font-size: 0.95rem;
  font-weight: 600;
}

.card--team .card__experience {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 4px;
}

.card--team .card__descr {
  font-size: 0.9rem;
  flex-grow: 1;
  text-align: left;
}

/* Навигация (как в отзывах) */
.teams-slider-wrap .swiper-button-prev,
.teams-slider-wrap .swiper-button-next {
  color: var(--c-primary);
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  top: 50%;
  transform: translateY(-50%);
}
.teams-slider-wrap .swiper-button-prev { left: 0; }
.teams-slider-wrap .swiper-button-next { right: 0; }
.teams-slider-wrap .swiper-button-prev::after,
.teams-slider-wrap .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .teams-slider-wrap { padding: 0; }
  .teams-slider-wrap .swiper-button-prev,
  .teams-slider-wrap .swiper-button-next { display: none; }
}

/* === FOOTER SECTION === */

.footer-main {
  background-color: var(--c-primary, #334b39);
  color: #fff;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.footer-col {
  padding: 0 40px;
}

/* Вертикальный разделитель */
.footer-col--info {
  padding-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-col--map {
  padding-right: 0;
}

/* Контакты (Верхний ряд) */
.footer-contacts {
  display: flex;
  gap: 40px;
  margin-bottom: 24px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-contact-icon {
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact-text span {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 2px;
}

.footer-contact-text a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.95;
}
.footer-contact-text a:hover{
  opacity: 0.95;
}

/* Текстовый контент */
.footer-title {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #fff;
}

.footer-descr {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 24px;
  max-width: 450px;
}

/* Кнопка с белой рамкой */
.btn--outline-white {
  border: 2px solid #fff;
}

/* Карта */
.footer-contact-item--geo {
  margin-bottom: 24px;
}

.footer-map-wrapper {
  width: 100%;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  background: #eee;
}

.footer-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- АДАПТИВ (Desktop-first) --- */

@media (max-width: 1024px) {
  .footer-main {
    padding: 60px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .footer-col {
    padding: 0;
    border-right: 0;
  }
  .footer-col--info {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 60px;
  }
  .footer-contacts {
    flex-wrap: wrap;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .footer-title {
    font-size: 24px;
  }
  .footer-contacts {
      lex-direction: column;
  }
  .footer-map-wrapper {
    height: 250px;
  }
}