/* МскСборка — Price.css. Ревизия 1. */
.msk-price-block {
 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 color: #6f6f6f;
 line-height: 1.45;
 margin: 24px 0;
}

.msk-price-table-wrap {
 width: 100%;
 overflow-x: auto;
}

.msk-price-table {
 width: 100%;
 border-collapse: collapse;
 background-color: #ffffff;
 font-size: 14px;
 color: #6f6f6f;
 border: 1px solid #dadada;
}

/* Шапка таблицы и подзаголовок-разделитель */
.msk-price-table thead th,
.msk-price-table__subhead th {
 background-color: #e8e8e8;
 color: #4a4a4a;
 font-weight: 500;
 font-size: 13px;
 text-transform: uppercase;
 padding: 16px 20px;
 border: 1px solid #dadada;
 vertical-align: middle;
 white-space: nowrap;
}

/* Выравнивание заголовков колонок */
.msk-price-table thead th:nth-child(1),
.msk-price-table thead th:nth-child(2),
.msk-price-table thead th:nth-child(3),
.msk-price-table__subhead th {
 text-align: left;
}

.msk-price-table thead th:nth-child(4) {
 text-align: center;
}

/* Строки и ячейки таблицы */
.msk-price-table tbody tr {
 border-bottom: 1px solid #dadada;
}

.msk-price-table tbody tr:hover {
 background-color: #fafafa;
}

.msk-price-table tbody tr.msk-price-table__subhead:hover {
 background-color: #e8e8e8;
}

.msk-price-table tbody tr.msk-price-table__extra-row:hover {
 background-color: #ffffff;
}

.msk-price-table td {
 padding: 18px 20px;
 vertical-align: middle;
 border: 1px solid #dadada;
}

/* Ширина и выравнивание стандартных колонок (только для десктопа) */
@media (min-width: 768px) {
 .msk-price-table td:nth-child(1) {
 width: 21%;
 text-align: left;
 }

 .msk-price-table td:nth-child(2) {
 width: 45%;
 text-align: left;
 }

 .msk-price-table td:nth-child(3) {
 width: 16%;
 text-align: left;
 }

 .msk-price-table td:nth-child(4) {
 width: 18%;
 text-align: center;
 white-space: nowrap;
 }
}

/* Стили для объединенной ячейки со списком (colspan="4") */
.msk-price-table td.msk-price-table__extra-cell {
 width: 100%;
 text-align: left;
 padding: 18px 20px;
}

.msk-price-table__extra-list {
 margin: 0;
 padding-left: 18px;
 list-style-type: disc;
}

.msk-price-table__extra-list li {
 margin-bottom: 8px;
 color: #6f6f6f;
}

.msk-price-table__extra-list li:last-child {
 margin-bottom: 0;
}

.msk-price-table__accent {
 font-weight: 600;
 color: #4a4a4a;
}

/* Адаптация под мобильные экраны */
@media (max-width: 767px) {
 .msk-price-table {
 border: none;
 background-color: transparent;
 }

 .msk-price-table thead {
 display: none;
 }

 .msk-price-table,
 .msk-price-table tbody,
 .msk-price-table tr,
 .msk-price-table td,
 .msk-price-table__subhead th {
 display: block;
 width: 100%;
 box-sizing: border-box;
 }

 .msk-price-table tbody tr {
 background-color: #ffffff;
 border: 1px solid #dadada;
 margin-bottom: 12px;
 padding: 14px 16px;
 }

 .msk-price-table td {
 padding: 8px 0;
 border: none;
 border-bottom: 1px solid #f0f0f0;
 text-align: left;
 white-space: normal;
 }

 .msk-price-table td:first-child {
 padding-top: 0;
 font-weight: 600;
 color: #4a4a4a;
 }

 .msk-price-table td:last-child {
 border-bottom: none;
 padding-bottom: 0;
 font-weight: 600;
 color: #4a4a4a;
 }

 .msk-price-table td::before {
 content: attr(data-label);
 display: block;
 font-size: 11px;
 font-weight: 400;
 text-transform: uppercase;
 color: #8c8c8c;
 margin-bottom: 3px;
 }

 /* Подзаголовок "Дополнительные услуги" */
 .msk-price-table tbody tr.msk-price-table__subhead {
 border: none;
 padding: 0;
 margin: 24px 0 0 0;
 background-color: transparent;
 }

 .msk-price-table__subhead th {
 padding: 12px 16px;
 white-space: normal;
 border: 1px solid #dadada;
 }

 /* Блок со списком под подзаголовком */
 .msk-price-table tbody tr.msk-price-table__extra-row {
 border-top: none;
 padding: 14px 16px;
 margin-bottom: 0;
 }

 .msk-price-table td.msk-price-table__extra-cell {
 padding: 0;
 font-weight: 400;
 color: #6f6f6f;
 }

 .msk-price-table td.msk-price-table__extra-cell::before {
 display: none;
 }
}
.msk-price-block .price-note {
 margin: 15px 0 0;
 padding: 12px 16px;
 background-color: #f4f4f5;
 border-left: 4px solid #c9302c;
 border-radius: 5px;
 font-size: 14px;
 line-height: 1.5;
 color: #545454;
}

/* Универсальные варианты таблиц: 2, 3 и 4 столбца */
.msk-price-table thead th { white-space: normal; }
.msk-price-table td { overflow-wrap: anywhere; }
@media (min-width: 768px) {
 .msk-price-table--simple tbody td:not([colspan]):first-child { width: 70%; }
 .msk-price-table--simple tbody td:not([colspan]):last-child { width: 30%; text-align: right; }
 .msk-price-table--simple thead th:last-child { text-align: right; }
 .msk-price-table--three tbody td:not([colspan]):nth-child(1) { width: 30%; }
 .msk-price-table--three tbody td:not([colspan]):nth-child(2) { width: 50%; }
 .msk-price-table--three tbody td:not([colspan]):nth-child(3) { width: 20%; text-align: center; }
 .msk-price-table--three thead th:last-child { text-align: center; }
 .msk-price-table td.msk-price-table__extra-cell { width: 100%; text-align: left; }
 .msk-price-table td:nth-child(4) { white-space: normal; }
}
@media (max-width: 767px) {
 .msk-price-table.msk-price-table--simple { display: table; table-layout: fixed; border: 1px solid #dadada; background: #fff; }
 .msk-price-table--simple thead { display: table-header-group; }
 .msk-price-table--simple tbody { display: table-row-group; }
 .msk-price-table--simple tbody tr, .msk-price-table--simple thead tr { display: table-row; padding: 0; margin: 0; border: 0; }
 .msk-price-table--simple td, .msk-price-table--simple th, .msk-price-table--simple .msk-price-table__subhead th { display: table-cell; width: auto; padding: 12px 8px; border: 1px solid #dadada; white-space: normal; overflow-wrap: anywhere; }
 .msk-price-table--simple thead th:first-child { width: 60%; }
 .msk-price-table--simple thead th:last-child { width: 40%; text-align: right; }
 .msk-price-table--simple tbody td:not([colspan]):first-child { font-weight: 400; color: #6f6f6f; }
 .msk-price-table--simple tbody td:not([colspan]):last-child { text-align: right; }
 .msk-price-table--simple td::before { display: none; }
 .msk-price-table--simple tbody tr:nth-child(odd):not(.msk-price-table__extra-row):not(.msk-price-table__subhead) { background: #fafafa; }
 .msk-price-table--simple td.msk-price-table__extra-cell { padding: 12px 8px; }
}
/* =====================================
   ПРОСТЫЕ ТАБЛИЦЫ — МОБИЛЬНАЯ КОРРЕКТИРОВКА
   ===================================== */

@media screen and (max-width: 767px) {

    .msk-price-table.msk-price-table--simple tbody td {
        padding: 12px 10px !important;
        vertical-align: middle !important;
        line-height: 1.5 !important;
    }

    .msk-price-table.msk-price-table--simple tbody td::before {
        display: none !important;
        content: none !important;
    }

    .msk-price-table.msk-price-table--simple tbody td:last-child {
        text-align: right !important;
    }

    .msk-price-block .price-note {
        text-align: left !important;
    }

}
