/* Доделка 29.11.2026 — таблицы абонементов на телефоне + блок «Для будущих мам».
   Подключается последним в <head>, поэтому правила ниже главнее старых. */

/* ── Таблица абонементов на телефоне: карточки вместо горизонтальной прокрутки ── */
@media (max-width: 639px) {
  .table-wrap,
  .price-table-wrap { overflow-x: visible !important; }

  .price-table {
    min-width: 0 !important;
    display: block !important;
  }

  .price-table thead { display: none !important; }
  .price-table tbody { display: block !important; }

  .price-table tr {
    display: block !important;
    padding: 16px 2px;
    border-bottom: 1px solid var(--silver, rgba(255, 255, 255, .12));
  }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table tbody tr:nth-child(even) td { background: none; }

  .price-table td {
    display: block !important;
    border: 0 !important;
    padding: 3px 0;
    font-size: 1rem;
    text-align: left;
  }

  .price-table td::before {
    display: block;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--taupe, #8A8278);
    margin-bottom: 2px;
  }

  .price-table td:nth-child(1) { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
  .price-table td:nth-child(1)::before { display: none; }
  .price-table td:nth-child(2)::before { content: "Индивидуальные"; }
  .price-table td:nth-child(3)::before { content: "Групповые"; }
  .price-table td:nth-child(4)::before { content: "Срок"; }
  .price-table td:nth-child(5)::before { content: "Заморозка"; }

  .price-table .pt-badge { display: inline-block !important; font-size: 0.7rem; }
  .price-table .pt-old { font-size: 0.85rem; }

  /* Таблица «Для будущих мам»: 4 колонки */
  .price-table--compact td:nth-child(2)::before { content: "Групповые"; }
  .price-table--compact td:nth-child(3)::before { content: "Срок"; }
  .price-table--compact td:nth-child(4)::before { content: "Заморозка"; }
}

/* ── Блок «Для будущих мам» ── */
.pregnant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin-top: 8px;
}

@media (max-width: 960px) {
  .pregnant-grid { grid-template-columns: 1fr; gap: 28px; }
}

.preg-notes { list-style: none; padding: 0; margin: 22px 0 28px; }
.preg-notes li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--taupe, #8A8278);
  margin-bottom: 8px;
}
.preg-notes li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--carmine, #960018);
  font-size: 0.8rem;
}

.preg-note-line { margin-top: 14px; font-size: 0.9rem; color: var(--taupe, #8A8278); }
.preg-note-line a { color: var(--carmine, #960018); }

.price-table--compact { min-width: 0; }

/* Таблица «Для будущих мам» — тёмный текст на светлой подложке секции */
.pregnant .price-table { color: var(--charcoal, #1A1A1A); }
.pregnant .price-table thead th {
  color: rgba(26, 26, 26, .55);
  border-bottom: 1px solid var(--silver, #D4D0C8);
}
.pregnant .price-table td {
  color: var(--charcoal, #1A1A1A);
  border-bottom: 1px solid rgba(26, 26, 26, .12);
}
.pregnant .price-table td::before { color: rgba(26, 26, 26, .5); }
.pregnant .price-table .pt-price { color: var(--burgundy, #3D1119); }
.pregnant .price-table .pt-old { color: rgba(26, 26, 26, .45); }
.pregnant .preg-note-line { color: rgba(26, 26, 26, .6); }
.pregnant .preg-note-line a { color: var(--burgundy, #3D1119); }

.pregnant .price-table .pt-old { display: block; margin-top: .4rem; }

.pregnant .price-table .pt-price { white-space: nowrap; }
.pregnant .price-table td .pt-old { display: block; margin-top: .5rem; line-height: 1.25; }

.pregnant .price-table td .pt-old { white-space: nowrap; line-height: 1.5; font-size: .72rem; }

/* Акция «3 способа заниматься бесплатно» */
@media (max-width: 900px) {
  .free-grid { grid-template-columns: 1fr; gap: 14px; }
  .free-item { padding: 20px 18px; }
  .free-poster { margin-top: 28px; }
}
