/* ==========================================================================
   Прайс-таблицы на страницах услуг — единый стандарт оформления
   Область действия: только .svc-content (контент страниц раздела «Услуги»)
   ========================================================================== */

.svc-content table {
    width: 100% !important;
    max-width: 100%;
    margin: 0 0 28px;
    border: 0 !important;
    border-collapse: collapse;
    table-layout: auto;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(42, 32, 28, .08);
    font-size: 15px;
    line-height: 1.5;
    color: #3a322d;
}

.svc-content table thead th,
.svc-content table thead td {
    padding: 15px 20px !important;
    border: 0 !important;
    background: #221a16 !important;
    background-image: none !important;
    color: #fff !important;
    font-family: MontserratMedium, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.svc-content table thead th:last-child { text-align: right; }

.svc-content table tbody td {
    padding: 13px 20px !important;
    border: 0 !important;
    border-bottom: 1px solid #f1e8e0 !important;
    background-color: transparent !important;
    font-size: 15px !important;
    line-height: 1.45;
    vertical-align: top;
    text-align: left;
}

.svc-content table tbody td p { margin: 0 0 2px; }
.svc-content table tbody td p:last-child { margin-bottom: 0; }
.svc-content table tbody tr:last-child td { border-bottom: 0 !important; }

.svc-content table tbody td:last-child {
    width: 1%;
    text-align: right !important;
    white-space: nowrap;
    font-family: RalewayBold, Arial, sans-serif;
    font-size: 15px;
    color: #221a16;
    font-variant-numeric: tabular-nums;
}

.svc-content table tbody tr:nth-child(even) td { background-color: #fdfaf6 !important; }
.svc-content table tbody tr:hover td { background-color: #faf2e8 !important; }

/* Заголовки групп: <td colspan="2"> и одноклеточные строки */
.svc-content table:not(.uslugi-table) tbody td[colspan],
.svc-content table:not(.uslugi-table) tbody td:only-child {
    width: auto !important;
    padding: 12px 20px !important;
    border-top: 1px solid #ecdfd1 !important;
    border-bottom: 1px solid #f1e8e0 !important;
    background-color: #f8f1e8 !important;
    color: #a8621f !important;
    font-family: RalewayBold, Arial, sans-serif;
    font-size: 13px !important;
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: left !important;
    white-space: normal !important;
}

.svc-content table:not(.uslugi-table) tbody td[colspan] *,
.svc-content table:not(.uslugi-table) tbody td:only-child * {
    color: inherit !important;
    text-align: inherit !important;
}

/* Заголовок группы в виде «жирное название + пустая цена» */
.svc-content table tbody tr:has(> td:first-child > strong:only-child) > td {
    background-color: #f8f1e8 !important;
    border-top: 1px solid #ecdfd1 !important;
}

.svc-content table tbody tr:has(> td:first-child > strong:only-child) > td:first-child {
    color: #a8621f !important;
    font-family: RalewayBold, Arial, sans-serif;
    font-size: 13px !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.svc-content table tbody tr:has(> td:first-child > strong:only-child) > td:first-child strong {
    color: inherit !important;
    font-weight: 400;
}

/* Старые таблицы .uslugi-table, которые были скрыты display:none */
.svc-content table.uslugi-table {
    display: table !important;
    border: 0 !important;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(42, 32, 28, .08);
}

.svc-content table.uslugi-table tr { background: #fff; text-align: left; }

.svc-content table.uslugi-table td {
    width: auto !important;
    padding: 12px 20px !important;
    border: 0 !important;
    border-bottom: 1px solid #f1e8e0 !important;
    background-color: transparent !important;
    background-image: none !important;
    text-align: left !important;
    font-size: 15px !important;
    color: #3a322d;
}

.svc-content table.uslugi-table td p { margin: 0; }

.svc-content table.uslugi-table tr.title td {
    padding: 12px 20px !important;
    border-top: 1px solid #ecdfd1 !important;
    background-color: #f8f1e8 !important;
    background-image: none !important;
    font-family: RalewayBold, Arial, sans-serif;
    font-size: 13px !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: left !important;
}

.svc-content table.uslugi-table tr.title td * {
    color: #a8621f !important;
    text-align: left !important;
    text-decoration: none !important;
    font-style: normal !important;
}

.svc-content table.uslugi-table tr.title td a {
    border-bottom: 1px solid rgba(168, 98, 31, .35);
}

/* Старые таблицы с инлайновыми width:760px и font-size:13px */
.svc-content table[style] { width: 100% !important; height: auto !important; }
.svc-content table td[style] { width: auto !important; height: auto !important; }
.svc-content table span[style] {
    font-size: inherit !important;
    font-family: inherit !important;
    line-height: inherit !important;
}

@media (max-width: 767px) {
    .svc-content table { font-size: 14px; border-radius: 10px; table-layout: auto !important; }
    .svc-content table thead th,
    .svc-content table thead td { padding: 11px 13px !important; font-size: 11px; letter-spacing: .08em; }
    .svc-content table tbody td { padding: 11px 13px !important; font-size: 14px !important; }
    .svc-content table tbody td:last-child { width: 92px !important; min-width: 92px; white-space: nowrap; }
    .svc-content table:not(.uslugi-table) tbody td[colspan],
    .svc-content table:not(.uslugi-table) tbody td:only-child,
    .svc-content table.uslugi-table tr.title td { padding: 10px 13px !important; font-size: 12px !important; }
}
