/**
 * Единый блок цен (все города / услуги / доски).
 * HTML остаётся <table class="b24-price-table"> — Google видит таблицу.
 * Визуально — сетка карточек «Snow lift». Правки только здесь.
 */

/* ——— Секция + заголовок (как было) ——— */
body .b24-price-section {
  padding: 80px 0;
  background-color: #ffffff;
  background-image: none;
  font-family: Inter, system-ui, sans-serif;
}

body .b24-price-section .b24-price-container,
body .b24-price-section .b24-standard-container {
  max-width: 1400px !important;
  width: 100%;
  margin: 0 auto !important;
  padding: 0 20px;
  box-sizing: border-box;
}

body .b24-price-section .b24-price-header {
  text-align: center;
  margin-bottom: 36px;
}

body .b24-price-section .b24-price-header h2,
body .b24-price-section .b24-standard-container > h2 {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-align: center;
}

body .b24-price-section .b24-standard-container > h2 {
  margin-bottom: 12px;
}

body .b24-price-section .b24-price-header h2::after,
body .b24-price-section .b24-standard-container > h2::after {
  content: none;
}

body .b24-price-section .b24-price-group-title {
  margin: 28px 0 14px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body .b24-price-section .b24-price-subtitle {
  font-size: 16px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Обёртки без «карточки в карточке» */
body .b24-price-section .pricing-table-wrapper,
body .b24-price-section .pricing-table-scroll,
.pricing-table-wrapper:has(.b24-table-card),
.pricing-table-scroll:has(.b24-table-card) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

body .b24-price-section .b24-table-card,
body .b24-price-section .pricing-table-wrapper {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}

/* ——— Таблица → сетка Snow lift (семантика table сохраняется) ——— */
body .b24-price-section table.b24-price-table,
body .b24-price-section table.seo-price-table {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
  font-size: 14px !important;
  table-layout: auto !important;
}

/* thead остаётся в DOM для SEO/a11y, визуально скрыт */
body .b24-price-section table.b24-price-table thead,
body .b24-price-section table.seo-price-table thead {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body .b24-price-section table.b24-price-table tbody,
body .b24-price-section table.seo-price-table tbody {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Нечётная последняя карточка — на всю ширину, если справа пусто */
body .b24-price-section table.b24-price-table tbody tr:last-child:nth-child(odd),
body .b24-price-section table.seo-price-table tbody tr:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

body .b24-price-section table.b24-price-table tbody tr,
body .b24-price-section table.seo-price-table tbody tr {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0 !important;
  padding: 14px 14px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05) !important;
  transform: none !important;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

body .b24-price-section table.b24-price-table tbody tr:nth-child(even),
body .b24-price-section table.seo-price-table tbody tr:nth-child(even) {
  background: #fff !important;
}

body .b24-price-section table.b24-price-table tbody tr:hover,
body .b24-price-section table.seo-price-table tbody tr:hover {
  background: #fff !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08) !important;
  transform: translateY(-1px) !important;
}

body .b24-price-section table.b24-price-table tbody td,
body .b24-price-section table.seo-price-table tbody td {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #0f172a !important;
  text-align: left !important;
  vertical-align: top !important;
  line-height: 1.35 !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Цена сверху карточки */
body .b24-price-section table.b24-price-table tbody td.b24-price-value,
body .b24-price-section table.b24-price-table tbody td:last-child,
body .b24-price-section table.seo-price-table tbody td:last-child {
  order: -1;
  margin-bottom: 2px;
  font-weight: 800 !important;
  font-size: 15px !important;
  color: #17824a !important;
  white-space: normal !important;
  text-align: left !important;
}

body .b24-price-section table.b24-price-table tbody td.b24-price-value::before,
body .b24-price-section table.seo-price-table tbody td:last-child::before {
  content: none !important;
}

body .b24-price-section .b24-service-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body .b24-price-section .b24-service-name {
  font-weight: 700 !important;
  color: #0f172a !important;
  font-size: 13px !important;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

body .b24-price-section .b24-service-desc {
  font-size: 12.5px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
}

/* Группа-разделитель на всю ширину */
body .b24-price-section table.b24-price-table tbody tr.b24-price-group {
  grid-column: 1 / -1;
  padding: 10px 14px !important;
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  box-shadow: none !important;
  transform: none !important;
}

body .b24-price-section table.b24-price-table tbody tr.b24-price-group td {
  order: 0 !important;
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ——— Notice ——— */
body .b24-price-section .b24-price-notice,
.b24-price-notice {
  display: flex !important;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px !important;
  padding: 12px 14px !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 1.45;
}

body .b24-price-section .b24-price-notice__icon,
body .b24-price-section .b24-price-notice .b24-notice-icon,
body .b24-price-section .b24-price-notice > div:first-child {
  flex: 0 0 auto;
  color: #17824a !important;
}

body .b24-price-section .b24-price-notice a {
  color: #17824a !important;
  text-decoration: underline;
}

body .b24-price-section .b24-price-notice strong {
  color: #0f172a;
}

/* ——— Доски: .asb-prices — тот же Snow lift ——— */
body.asb-board-page .asb-prices,
body.asb-listing-page .asb-prices {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.asb-board-page .asb-prices li:last-child:nth-child(odd),
body.asb-listing-page .asb-prices li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

body.asb-board-page .asb-prices li,
body.asb-listing-page .asb-prices li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px !important;
  background: #fff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05) !important;
}

body.asb-board-page .asb-prices strong,
body.asb-listing-page .asb-prices strong {
  order: -1;
  margin: 0 0 2px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: #17824a !important;
}

body.asb-board-page .asb-prices span,
body.asb-listing-page .asb-prices span {
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

body.asb-board-page .asb-prices em,
body.asb-listing-page .asb-prices em {
  color: #64748b !important;
  font-size: 12.5px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

/* На доске отзывы — светлая полка между ценами и «Наши работы» */
body.asb-board-page section.b24-reviews.reviews-split-section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 36px !important;
  padding-bottom: 40px !important;
}

@media (max-width: 720px) {
  body .b24-price-section {
    padding: 48px 0;
  }

  body .b24-price-section .b24-price-header {
    margin-bottom: 22px;
  }

  body .b24-price-section table.b24-price-table tbody,
  body .b24-price-section table.seo-price-table tbody,
  body.asb-board-page .asb-prices,
  body.asb-listing-page .asb-prices {
    grid-template-columns: 1fr !important;
  }

  body .b24-price-section table.b24-price-table tbody tr,
  body .b24-price-section table.seo-price-table tbody tr {
    padding: 12px 13px !important;
  }

  body .b24-price-section table.b24-price-table tbody td.b24-price-value,
  body .b24-price-section table.b24-price-table tbody td:last-child,
  body .b24-price-section table.seo-price-table tbody td:last-child {
    font-size: 16px !important;
  }
}
