/* ===========================
   Общие стили для таблиц и инфографики
   =========================== */

/* Базовые настройки */
body {
  font-family: Arial, sans-serif;
  color: #2c3e50;
}

/* ===========================
   Таблицы цен
   =========================== */
.price-section,
.price-table-wrapper,
.price-table {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 20px;
  width: 100%;
}

.price-section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: #2c3e50;
}

.price-table-wrapper {
  overflow-x: auto; /* горизонтальная прокрутка на мобильных */
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.price-table th,
.price-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.price-table th {
  background-color: #3498db;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
}

.price-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.price-table tr:hover {
  background-color: #eaf2f8;
  transition: 0.3s;
}

/* ===========================
   Таблицы статистики
   =========================== */
.stats-section,
.stats-table-wrapper,
.stats-table {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 20px;
}

.stats-section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: #2c3e50;
}

.stats-table-wrapper {
  overflow-x: auto;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stats-table th,
.stats-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.stats-table th {
  background-color: #27ae60; /* зелёный для статистики */
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
}

.stats-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.stats-table tr:hover {
  background-color: #eaf8f1;
  transition: 0.3s;
}

/* ===========================
   Инфографика статистики
   =========================== */
.stats-infographic {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

.stats-infographic h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #2c3e50;
}

.stats-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.stat-card {
  flex: 1 1 200px;
  background-color: #f1f8ff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.stat-number {
  font-size: 36px;
  font-weight: bold;
  color: #3498db;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  color: #2c3e50;
  line-height: 1.4;
}

.stat-label a {
  color: #3498db;
  text-decoration: underline;
}

/* ===========================
   Адаптивность
   =========================== */
@media (max-width: 768px) {
  .stats-cards {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .price-table th, .price-table td,
  .stats-table th, .stats-table td {
    padding: 10px;
    font-size: 14px;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 14px;
  }
}
.info-box {
  border: 1px solid #3498db;
  background-color: #f0f8ff;
  padding: 15px 20px;
  border-radius: 10px;
  margin: 20px 0;
  font-family: Arial, sans-serif;
}

.info-box h3 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 20px;
}

.info-box ul {
  padding-left: 20px;
}

.info-box ul li {
  margin: 8px 0;
  color: #2c3e50;
  line-height: 1.4;
}
@media (min-width: 992px) {

    /* Главный контейнер страницы услуги */
    .single-uslugi .container,
    .single-uslugi main.site-main,
    .single-uslugi .content-area,
    body.single-uslugi .row {   /* если есть .row */
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 30px;
    }

    /* Основной контент (даже если пустой) */
    .single-uslugi .entry-content,
    .single-uslugi article.post,
    .single-uslugi .col-md-9,
    .single-uslugi .col-content,
    .single-uslugi main > *:first-child {
        flex: 1 1 66.67% !important;   /* ~2/3 ширины */
        min-width: 0;
        order: 1;
        min-height: 400px;             /* ← предотвращает коллапс высоты */
    }

    /* Сайдбар — строго справа */
    .single-uslugi .blog-sidebar-wrapper,
    .single-uslugi .col-md-3,
    .single-uslugi #secondary.blog-sidebar {
        flex: 0 0 33.33% !important;
        max-width: 33.33% !important;
        order: 2;
        align-self: flex-start;        /* чтобы не растягивался по всей высоте */
    }

    /* Убираем возможные float и clear, которые ломают раскладку */
    .single-uslugi .blog-sidebar-wrapper,
    .single-uslugi #secondary {
        float: none !important;
        clear: none !important;
    }
}
