/*
Theme Name:   Astra Child (или любое другое имя для вашей дочерней темы)
Template:     astra
Description:  Дочерняя тема для Astra Pro
Author:       Ваше имя
Version:      1.0.0
Text Domain:  astra-child
*/
/* === ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ === */
/* === ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ === */
:root {
  --primary: #2c3e50;
  --accent: #e74c3c;
  --bg: #f8f9fa;
  --text: #2d2d2d;
  --light: #ffffff;
  --border: #dee2e6;
  --radius: 8px;
  --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* === БАЗОВЫЕ СТИЛИ === */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  background: #fff;
}

h1, h2, h3, h4 {
  color: var(--primary);
  margin: 0 0 20px;
  font-weight: 600;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg);
}
/* === БАЗОВЫЕ СТИЛИ === */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  background: #fff;
}

h1, h2, h3, h4 {
  color: var(--primary);
  margin: 0 0 20px;
  font-weight: 600;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* === СЕКЦИИ === */
.section {
  padding: 80px 0;
}

/* === ОТДЕЛЬНЫЙ КЛАСС ДЛЯ ОТСТУПОВ 240px (по ширине) === */
.section-padding {
  padding: 20px 120px !important;
  box-sizing: border-box;
}

/* Убираем padding у .container внутри */
.section-padding .container {
  padding: 0 !important;
  max-width: 1200px;
  margin: 0 auto;
}

/* Сброс margin у H2 и первых элементов */
.section-padding h2:first-child,
.section-padding > .container > *:first-child,
.section-padding .advantages,
.section-padding .categories-grid,
.section-padding .seo-block {
  margin-top: 0 !important;
}

/* Адаптив: уменьшаем боковые отступы */
@media (max-width: 992px) {
  .section-padding {
    padding: 20px 40px !important;
  }
}

@media (max-width: 576px) {
  .section-padding {
    padding: 20px 15px !important;
  }
}
/* === ПОПУЛЯРНЫЕ ТОВАРЫ 4×3 === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.product-card {
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.product-card__image {
  height: 200px;
  overflow: hidden;
  background: #f8f8f8;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__content {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px;
}

.product-card__btn {
  margin-top: auto;
  text-align: center;
}

/* Адаптив: 2 колонки → 1 колонка */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
/* === КНОПКИ === */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(231,76,60,0.6);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

/* === ПОИСК === */
.search-bar {
  display: flex;
  max-width: 600px;
  margin: 30px auto 0;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.search-bar input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  font-size: 16px;
  background: #fff;
}

.search-bar button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 30px;
  font-weight: 600;
  cursor: pointer;
}

.search-bar button:hover {
  background: #c0392b;
}

/* === POPUP === */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background: var(--light);
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.popup-close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
}

.popup-close:hover {
  color: #000;
}

/* === HERO СЕКЦИЯ === */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url('http://zbi.tapslink.ru/wp-content/uploads/2025/11/1763198891.jpg') center/cover no-repeat;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 1;
}

.hero-section > .container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

/* Фоновая текстура (еле заметная) */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: inherit;
  opacity: 0.22;
  filter: blur(2px);
  z-index: 0;
}

/* Текст в Hero — всегда белый и читаемый */
.hero-section h1,
.hero-section p {
  color: #ffffff !important;
  text-shadow: 0 3px 10px rgba(0,0,0,0.9);
}

.hero-section h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero-section p {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 32px;
}

/* === АДАПТИВ === */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  h1 {
    font-size: 36px;
  }

  .hero-section h1 {
    font-size: 36px;
  }

  .hero-section p {
    font-size: 18px;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar input,
  .search-bar button {
    border-radius: var(--radius);
  }

  .search-bar button {
    margin-top: 10px;
  }

  .btn-primary {
    padding: 14px 24px;
    font-size: 17px;
  }
}
/* === КАТАЛОГ ЖБИ — КАТЕГОРИИ === */
.catalog-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.catalog-category {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.catalog-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.15);
}

.catalog-category__image {
  height: 200px;
  overflow: hidden;
  background: #f8f9fa;
}

.catalog-category__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.catalog-category:hover .catalog-category__image img {
  transform: scale(1.06);
}

.catalog-category__content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.catalog-category__title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1a3a5c;
}

.catalog-category__title a {
  color: inherit;
  text-decoration: none;
}

.catalog-category__title a:hover {
  color: #e74c3c;
}

.catalog-category__count {
  font-size: 14px;
  color: #777;
  margin: 0 0 16px;
  font-weight: 500;
}

.catalog-category__btn {
  margin-top: auto;
}

.catalog-category__btn .btn {
  background: transparent;
  border: 2px solid #e74c3c;
  color: #e74c3c;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.catalog-category__btn .btn:hover {
  background: #e74c3c;
  color: #fff;
  transform: translateY(-2px);
}

/* Адаптив */
@media (max-width: 992px) {
  .catalog-categories { grid-template-columns: repeat(2, 1fr); }
  .catalog-category__image { height: 180px; }
}
@media (max-width: 576px) {
  .catalog-categories { grid-template-columns: 1fr; }
  .catalog-category__image { height: 160px; }
}
/* === КАТАЛОГ ЖБИ — JS + REST API === */
.catalog-js-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.catalog-js-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.catalog-js-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.15);
}

.catalog-js-image {
  height: 200px;
  overflow: hidden;
  background: #f8f9fa;
}

.catalog-js-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.catalog-js-card:hover .catalog-js-image img {
  transform: scale(1.06);
}

.catalog-js-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.catalog-js-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1a3a5c;
}

.catalog-js-title a {
  color: inherit;
  text-decoration: none;
}

.catalog-js-title a:hover {
  color: #e74c3c;
}

.catalog-js-count {
  font-size: 14px;
  color: #777;
  margin: 0 0 16px;
  font-weight: 500;
}

.catalog-js-btn {
  margin-top: auto;
}

.catalog-js-btn a {
  display: inline-block;
  background: transparent;
  border: 2px solid #e74c3c;
  color: #e74c3c;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.catalog-js-btn a:hover {
  background: #e74c3c;
  color: #fff;
  transform: translateY(-2px);
}

/* Адаптив */
@media (max-width: 992px) {
  .catalog-js-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .catalog-js-grid { grid-template-columns: 1fr; }
}
/* === SEO БЛОК С КАРТИНКОЙ === */
.seo-block {
  display: flex;
  align-items: center;
  gap: 50px;
  margin: 60px 0;
}

.seo-block__image {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.seo-block__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.seo-block__image:hover img {
  transform: scale(1.03);
}

.seo-block__content {
  flex: 1;
}

.seo-block__content h2 {
  font-size: 36px;
  margin-bottom: 24px;
  color: var(--primary);
}

.seo-block__content p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.7;
}

.seo-block__list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.seo-block__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 500;
}

.seo-block__list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Адаптив: вертикально на мобильных */
@media (max-width: 992px) {
  .seo-block {
    flex-direction: column;
    text-align: center;
  }
  .seo-block__image {
    order: -1;
    max-width: 500px;
    margin: 0 auto 30px;
  }
}
/* === ПРЕИМУЩЕСТВА С ИКОНКАМИ === */
.advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin: 60px 0;
  text-align: center;
}

.advantage-item {
  padding: 24px;
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.advantage-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.advantage-item h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 600;
}

.advantage-item p {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* Адаптив */
@media (max-width: 768px) {
  .advantages {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
/* === ПОПУЛЯРНЫЕ ТОВАРЫ — РАНДОМНО === */
.popular-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.popular-product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.popular-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.popular-product-image {
  height: 180px;
  overflow: hidden;
  background: #f8f9fa;
}

.popular-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.popular-product-card:hover .popular-product-image img {
  transform: scale(1.05);
}

.popular-product-content {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.popular-product-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #1a3a5c;
  line-height: 1.4;
}

.popular-product-title a {
  color: inherit;
  text-decoration: none;
}

.popular-product-title a:hover {
  color: #e74c3c;
}

.popular-product-price {
  font-size: 18px;
  font-weight: 700;
  color: #e74c3c;
  margin: 0 0 12px;
}

.popular-product-btn {
  margin-top: auto;
}

.popular-product-btn a {
  display: block;
  background: #e74c3c;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.popular-product-btn a:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

/* Адаптив */
@media (max-width: 1200px) {
  .popular-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .popular-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .popular-products-grid { grid-template-columns: 1fr; }
}
/* === НАШИ ПОСТАВКИ — ПОСТЫ ИЗ БЛОГА === */
.supply-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.supply-post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.supply-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.supply-post-image {
  height: 180px;
  overflow: hidden;
  background: #f8f9fa;
}

.supply-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.supply-post-card:hover .supply-post-image img {
  transform: scale(1.05);
}

.supply-post-content {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.supply-post-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #1a3a5c;
  line-height: 1.4;
}

.supply-post-title a {
  color: inherit;
  text-decoration: none;
}

.supply-post-title a:hover {
  color: #e74c3c;
}

.supply-post-date {
  font-size: 13px;
  color: #777;
  margin: 0 0 12px;
}

.supply-post-excerpt {
  font-size: 14px;
  color: #555;
  margin: 0 0 14px;
  line-height: 1.6;
  flex-grow: 1;
}

.supply-post-btn {
  margin-top: auto;
}

.supply-post-btn a {
  display: block;
  background: transparent;
  border: 2px solid #e74c3c;
  color: #e74c3c;
  text-align: center;
  padding: 9px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.supply-post-btn a:hover {
  background: #e74c3c;
  color: #fff;
}

/* Адаптив */
@media (max-width: 992px) {
  .supply-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .supply-posts-grid { grid-template-columns: 1fr; }
}
/* === CTA С ФОНОМ НА ВСЮ ШИРИНУ === */
.cta-hero {
  background: linear-gradient(rgba(0,0,0,0.78), rgba(0,0,0,0.78)), 
              url('http://zbi.tapslink.ru/wp-content/uploads/2025/11/1763198891.jpg') center/cover no-repeat;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 100px 20px;
  border-radius: 0; /* Убираем радиус — фон на всю ширину */
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.cta-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: inherit;
  filter: blur(3px);
  opacity: 0.18;
  z-index: 0;
}

.cta-hero > * {
  position: relative;
  z-index: 1;
}

.cta-hero h2 {
  font-size: 44px;
  margin: 0 0 20px;
  font-weight: 700;
  color: #ffffff !important;
  text-shadow: 0 3px 12px rgba(0,0,0,0.9);
  letter-spacing: -0.5px;
}

.cta-hero p {
  font-size: 21px;
  margin: 0 0 36px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff !important;
  opacity: 0.96;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  line-height: 1.5;
}

.cta-hero .btn {
  background: var(--accent);
  color: #fff;
  padding: 18px 48px;
  font-size: 19px;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(231,76,60,0.5);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-hero .btn:hover {
  background: #c0392b;
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(231,76,60,0.6);
}

/* Адаптив */
@media (max-width: 768px) {
  .cta-hero {
    padding: 80px 15px;
  }
  .cta-hero h2 {
    font-size: 32px;
  }
  .cta-hero p {
    font-size: 18px;
  }
  .cta-hero .btn {
    padding: 16px 36px;
    font-size: 18px;
  }
}
/* === ОТЗЫВЫ 3×1 === */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.review-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.15);
}

.review-card__header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.review-card__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 16px;
  flex-shrink: 0;
  border: 3px solid var(--accent);
}

.review-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card__author h4 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
}

.review-card__author p {
  margin: 0;
  font-size: 14px;
  color: #777;
}

.review-card__rating {
  color: #f39c12;
  font-size: 18px;
  margin-bottom: 12px;
}

.review-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  flex-grow: 1;
  margin: 0;
}

/* Адаптив: 1 колонка */
@media (max-width: 992px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
/* === ОТЗЫВЫ С ИКОНКАМИ === */
/* === ОТЗЫВЫ С ИКОНКАМИ === */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.review-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.15);
}

.review-card__header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.review-card__icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(231,76,60,0.3);
}

.review-card__author h4 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
}

.review-card__author p {
  margin: 0;
  font-size: 14px;
  color: #777;
}

.review-card__rating {
  color: #f39c12;
  font-size: 18px;
  margin-bottom: 12px;
}

.review-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  flex-grow: 1;
  margin: 0;
}

/* Адаптив */
@media (max-width: 992px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
/* Защита от вылезания контента */
.review-card {
  contain: layout style; /* предотвращает "вылезание" */
}

.reviews-grid {
  contain: content; /* держит всё внутри */
}
/* === КАРУСЕЛЬ СЕРТИФИКАТОВ === */
.certificates-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  border-radius: var(--radius);
}

.certificates-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.certificates-slide {
  min-width: 33.33%;
  padding: 0 12px;
  box-sizing: border-box;
}

.certificates-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.certificates-slide img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Стрелки */
.cert-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-nav:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.cert-prev { left: 15px; }
.cert-next { right: 15px; }

/* Точки */
.cert-dots {
  text-align: center;
  margin-top: 20px;
}

.cert-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cert-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Адаптив */
@media (max-width: 992px) {
  .certificates-slide { min-width: 50%; }
  .cert-nav { width: 38px; height: 38px; font-size: 18px; }
}

@media (max-width: 576px) {
  .certificates-slide { min-width: 100%; }
  .cert-nav { display: none; }
}
/* === FAQ АККОРДЕОН === */
.faq-accordion {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: var(--light);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.faq-question {
  padding: 20px 24px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--accent);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 24px;
}

/* Адаптив */
@media (max-width: 576px) {
  .faq-question {
    font-size: 16px;
    padding: 16px 20px;
  }
  .faq-answer {
    font-size: 14px;
  }
}
/* === ОПТИМИЗИРОВАННАЯ ЯНДЕКС КАРТА === */
/* === КАРТА — ФИКС ДЛЯ КОНТЕЙНЕРА === */
#yandex-map {
  width: 100%;
  height: 600px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Фикс для lazy load */
.lazy-map {
  width: 100%;
  height: 600px;
  background: #f8f9fa;
  position: relative;
}

.lazy-map.loaded #yandex-map {
  height: 100%;
}

@media (max-width: 992px) {
  #yandex-map, .lazy-map { height: 500px; }
}
@media (max-width: 576px) {
  #yandex-map, .lazy-map { height: 400px; }
}
/**/
/**/
/* === КАТАЛОГ ЖБИ PRO — УНИКАЛЬНЫЕ КЛАССЫ === */
/* ZBI CATEGORIES PRO — боковое меню (Astra Pro) */
.zbi-pro-cats-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: 'Roboto', sans-serif;
    margin-bottom: 30px;
}

.zbi-pro-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zbi-pro-cat-item {
    border-bottom: 1px solid #f0f0f0;
}

.zbi-pro-cat-item:last-child {
    border-bottom: none;
}

.zbi-pro-cat-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
    position: relative;
}

.zbi-pro-cat-link {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    padding-right: 10px;
}

.zbi-pro-cat-link:hover {
    color: #e74c3c;
}

.zbi-pro-cat-count {
    color: #999;
    font-size: 13px;
    margin-left: 6px;
}

.zbi-pro-cat-arrow {
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.zbi-pro-cat-item.active > .zbi-pro-cat-toggle > .zbi-pro-cat-arrow {
    transform: rotate(180deg);
}

/* Подкатегории */
.zbi-pro-cat-list .zbi-pro-cat-list {
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.zbi-pro-cat-item.active > .zbi-pro-cat-list {
    max-height: 1000px;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Уровни вложенности */
.level-1 .zbi-pro-cat-link { font-weight: 600; font-size: 16px; }
.level-2 .zbi-pro-cat-link { font-size: 14.5px; }
.level-3 .zbi-pro-cat-link { font-size: 14px; color: #555; }
/**/
/**/
/* === КРАСИВЫЙ ВИДЖЕТ КАТЕГОРИЙ === */
/* === ШОРТКОД КАТЕГОРИЙ — БЕЗ ФОТО === */
.zbi-shortcode-categories {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  font-family: 'Roboto', sans-serif;
}

.zbi-cat-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a3a5c;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e74c3c;
}

.zbi-cat-main-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zbi-cat-item {
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 8px;
}

.zbi-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.zbi-cat-header:hover {
  background: #f9f9f9;
  border-radius: 10px;
  padding-left: 8px;
}

.zbi-cat-link {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #1a3a5c;
  text-decoration: none;
}

.zbi-cat-link:hover {
  color: #e74c3c;
}

.zbi-cat-count {
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 12px;
  margin-left: 10px;
}

.zbi-cat-arrow {
  font-size: 18px;
  color: #e74c3c;
  transition: transform 0.3s ease;
}

.zbi-cat-item.active .zbi-cat-arrow {
  transform: rotate(180deg);
}

.zbi-subcat-list {
  list-style: none;
  padding: 0 0 12px 20px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.zbi-cat-item.active .zbi-subcat-list {
  max-height: 400px;
}

.zbi-subcat-list a {
  display: block;
  padding: 8px 0;
  color: #555;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s;
}

.zbi-subcat-list a:hover {
  color: #e74c3c;
}

.zbi-sub-count {
  color: #999;
  font-size: 13px;
}
/**/
/* === ШОРТКОД СЕРИИ ЖБИ (МЕТКИ) === */
.zbi-shortcode-series {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  margin-top: 24px;
  font-family: 'Roboto', sans-serif;
}

.zbi-shortcode-series .zbi-cat-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a3a5c;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e74c3c;
}

.zbi-series-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 20px;
}

.zbi-series-item {
  break-inside: avoid;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}

.zbi-series-item:last-child {
  border-bottom: none;
}

.zbi-series-link {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
}

.zbi-series-link:hover {
  color: #e74c3c;
  padding-left: 6px;
}

.zbi-series-count {
  color: #e74c3c;
  font-weight: 600;
  font-size: 13px;
}

/* На мобильных — одна колонка */
@media (max-width: 768px) {
  .zbi-series-list {
    columns: 1;
  }
}
/**/
/* ИЗОЛИРОВАННЫЙ БЛОК СЕРИЙ — НИКАКИХ КОНФЛИКТОВ */
.zbi-isolated-series {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

.zbi-isolated-title {
    background: #1a3a5c;
    color: #fff;
    padding: 18px 20px;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.3s;
}

.zbi-isolated-title:hover {
    background: #152f4a;
}

.zbi-isolated-arrow {
    font-size: 22px;
    transition: transform 0.35s ease;
}

.zbi-isolated-series.open .zbi-isolated-arrow {
    transform: rotate(180deg);
}

.zbi-isolated-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background: #f9f9f9;
}

.zbi-isolated-series.open .zbi-isolated-content {
    max-height: 600px;
    padding: 16px 0;
}

.zbi-isolated-list {
    list-style: none;
    padding: 0 24px;
    margin: 0;
}

.zbi-isolated-list li {
    border-bottom: 1px dashed #ddd;
}

.zbi-isolated-list li:last-child {
    border-bottom: none;
}

.zbi-isolated-list a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
}

.zbi-isolated-list a:hover {
    color: #e74c3c;
    padding-left: 6px;
}

/* Скролл */
.zbi-isolated-content::-webkit-scrollbar {
    width: 6px;
}
.zbi-isolated-content::-webkit-scrollbar-track { background: #eee; border-radius: 10px; }
.zbi-isolated-content::-webkit-scrollbar-thumb { background: #e74c3c; border-radius: 10px; }
/* === СКРОЛЛ ВНУТРИ СПИСКА СЕРИЙ === */
.zbi-isolated-series.open .zbi-isolated-content {
    max-height: 500px;          /* фиксированная высота */
    padding: 16px 0;
    overflow-y: auto;           /* ← ВКЛЮЧАЕМ СКРОЛЛ */
    overflow-x: hidden;
}

/* Красивый скроллбар */
.zbi-isolated-content::-webkit-scrollbar {
    width: 8px;
}
.zbi-isolated-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.zbi-isolated-content::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 10px;
}
.zbi-isolated-content::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}
/* === КОМПАКТНЫЕ ФИЛЬТРЫ — СОВРЕМЕННЫЙ СТИЛЬ === */
.zbi-compact-filters {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
}

.zbi-filters-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a3a5c;
  color: #fff;
  padding: 16px 20px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.zbi-reset-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.zbi-reset-btn:hover {
  background: #e74c3c;
}

.zbi-filters-accordion {
  max-height: 70vh;
  overflow-y: auto;
  padding: 0 8px;
}

.zbi-filter-item {
  border-bottom: 1px solid #eee;
}

.zbi-filter-header {
  padding: 16px 12px;
  cursor: pointer;
  font-weight: 600;
  color: #1a3a5c;
  position: relative;
  transition: all 0.3s;
}

.zbi-filter-header::after {
  content: '+';
  position: absolute;
  right: 12px;
  font-size: 20px;
  color: #e74c3c;
  transition: transform 0.3s;
}

.zbi-filter-item.active .zbi-filter-header::after {
  content: '−';
}

.zbi-filter-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.zbi-filter-item.active .zbi-filter-content {
  max-height: 400px;
  padding: 0 12px 16px;
}

/* Цена в одну строку */
.zbi-price-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
}

.zbi-price-inline input {
  width: 80px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  background: #f9f9f9;
}

/* Чекбоксы — 2 колонки */
.zbi-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.zbi-filter-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.zbi-filter-grid input[type="checkbox"] {
  accent-color: #e74c3c;
  width: 16px;
  height: 16px;
}

.zbi-count {
  margin-left: auto;
  color: #999;
  font-size: 13px;
}

/* Скроллбар */
.zbi-filters-accordion::-webkit-scrollbar {
  width: 6px;
}
.zbi-filters-accordion::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.zbi-filters-accordion::-webkit-scrollbar-thumb {
  background: #e74c3c;
  border-radius: 10px;
}