/*
 * Блок «Цены на шиномонтаж» и карточка записи в первом экране.
 *
 * Все правила начинаются с .zp-price или .zp-booking и не затрагивают остальной сайт.
 * Шаблон задаёт html/body line-height: 23px и box-sizing: border-box для всех элементов,
 * а сброса отступов у заголовков, списков и кнопок в нём нет, поэтому здесь
 * line-height, margin и padding заданы явно для каждого элемента.
 * Точки перелома те же, что в шаблоне: 480, 768, 1024, 1280.
 */

.block_tire-storage-new::before{
    display: none;
}

/* ---------- Блок ---------- */

.zp-price {
    /* нижний отступ дополняет margin-bottom секции .block_tire-storage-new перед баннерами */
    padding: 40px 0 24px;
    color: #000;
    font-size: 16px;
    line-height: 23px;
}

.zp-price [hidden] {
    display: none !important;
}

.zp-price button:focus-visible,
.zp-price a:focus-visible,
.zp-price summary:focus-visible,
.zp-price__table-scroll:focus-visible {
    outline: 3px solid #2f6fed;
    outline-offset: 2px;
}

/* ---------- Заголовок ---------- */

.zp-price__head {
    margin-bottom: 24px;
}

.zp-price__title {
    margin: 0 0 16px;
    font-weight: 500;
    font-size: 24px;
    line-height: 28px;
}

.zp-price__title span {
    color: #e41d1b;
}

.zp-price__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
}

.zp-price__date {
    font-size: 15px;
    line-height: 20px;
    color: #3a3a3a;
}

.zp-price__file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-weight: 500;
    font-size: 16px;
    line-height: 21px;
    color: #3a3a3a;
    text-decoration: none;
    transition: opacity 0.1s linear;
}

.zp-price__file:hover {
    opacity: 0.6;
}

.zp-price__file svg {
    flex-shrink: 0;
}

/* ---------- Выбор типа и диаметра ---------- */

.zp-price__picker {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 20px;
    background: #e9e9e9;
}

.zp-price__label {
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
}

.zp-price__picks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zp-price__pick {
    -webkit-appearance: none;
    appearance: none;
    min-height: 46px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #bfbfbf;
    border-radius: 10px;
    background: #fff;
    color: #000;
    font-family: inherit;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.zp-price__pick_diameter {
    min-width: 72px;
}

.zp-price__pick:hover {
    border-color: #bd0808;
    color: #bd0808;
}

.zp-price__pick[aria-pressed="true"] {
    border-color: #e41d1b;
    box-shadow: inset 0 0 0 1px #e41d1b;
    color: #e41d1b;
}

/* ---------- Карточки комплексов ---------- */

.zp-price__cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.zp-price__card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    border: 1px solid #bfbfbf;
    border-radius: 20px;
    background: #fff;
}

.zp-price__kicker {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 13px;
    line-height: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e41d1b;
}

.zp-price__card-title {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 22px;
    line-height: 28px;
}

.zp-price__includes {
    font-size: 14px;
    line-height: 20px;
    color: #3a3a3a;
}

.zp-price__card-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.zp-price__amount_single {
    text-align: right;
}

.zp-price__amount-label {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 16px;
    color: #3a3a3a;
}

.zp-price__total {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 10px;
    background: #3a3a3a;
    color: #fff;
    font-weight: 600;
    font-size: 26px;
    line-height: 32px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.zp-price__single {
    font-weight: 500;
    font-size: 20px;
    line-height: 32px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---------- Отдельные работы ---------- */

.zp-price__ops {
    margin-top: 24px;
    padding: 24px 24px 12px;
    border: 1px solid #bfbfbf;
    border-radius: 20px;
    background: #fff;
}

.zp-price__ops-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    margin-bottom: 8px;
}

.zp-price__subtitle {
    margin: 0;
    font-weight: 500;
    font-size: 18px;
    line-height: 23px;
}

.zp-price__ops-summary {
    font-size: 14px;
    line-height: 20px;
    color: #3a3a3a;
}

.zp-price__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.zp-price__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
    line-height: 20px;
    -webkit-column-break-inside: avoid;
    break-inside: avoid;
}

.zp-price__item-price {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---------- Раскрывающиеся строки (вид как у .collapse на сайте) ---------- */

.zp-price__more {
    margin-top: 24px;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
}

.zp-price__more + .zp-price__more {
    margin-top: 12px;
}

.zp-price__more-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-radius: 4px;
    background: #e9e9e9;
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    list-style: none;
    cursor: pointer;
}

.zp-price__more-head::-webkit-details-marker {
    display: none;
}

.zp-price__more-head::marker {
    content: "";
}

.zp-price__more[open] > .zp-price__more-head {
    background: #fff;
}

.zp-price__more-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e41d1b;
    color: #fff;
    transition: all 0.1s linear;
}

.zp-price__more[open] > .zp-price__more-head .zp-price__more-icon {
    background: transparent;
    color: #e41d1b;
    transform: rotate(180deg);
}

.zp-price__more-body {
    padding: 4px 12px 16px;
}

/* ---------- Сводная таблица ---------- */

.zp-price__table-caption {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 20px;
    color: #3a3a3a;
}

.zp-price__table-scroll {
    overflow-x: auto;
    border: 1px solid #bfbfbf;
    border-radius: 12px;
    background: #fff;
}

.zp-price__table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    line-height: 19px;
    font-variant-numeric: tabular-nums;
}

.zp-price__table th,
.zp-price__table td {
    min-width: 62px;
    padding: 10px 6px;
    border: 0;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    color: #000;
    font-weight: 400;
    text-align: right;
    vertical-align: top;
    white-space: nowrap;
}

.zp-price__table tbody tr:last-child th,
.zp-price__table tbody tr:last-child td {
    border-bottom: 0;
}

.zp-price__table thead th {
    border-bottom: 0;
    background: #e9e9e9;
    font-weight: 500;
    font-size: 15px;
}

.zp-price__table th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 118px;
    max-width: 130px;
    padding-left: 12px;
    padding-right: 8px;
    text-align: left;
    white-space: normal;
}

.zp-price__table thead th:first-child {
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.zp-price__row_strong th,
.zp-price__row_strong td {
    font-weight: 500;
}

.zp-price__row_sub th,
.zp-price__row_sub td {
    color: #3a3a3a;
}

.zp-price__table td.is-selected {
    background: #f3f3f3;
    font-weight: 600;
}

.zp-price__table thead th.is-selected {
    background: #e41d1b;
    color: #fff;
}

/* ---------- Дополнительные работы ---------- */

.zp-price__extra {
    margin-bottom: 16px;
    padding: 20px 20px 8px;
    border-radius: 20px;
    background: #e9e9e9;
    -webkit-column-break-inside: avoid;
    break-inside: avoid;
}

.zp-price__extra:last-child {
    margin-bottom: 0;
}

.zp-price__extra .zp-price__subtitle {
    margin-bottom: 4px;
}

.zp-price__extra .zp-price__item {
    border-bottom: 0;
    border-top: 1px solid #cfcfcf;
}

.zp-price__extra .zp-price__item:first-child {
    border-top: 0;
}

/* ---------- Примечания ---------- */

.zp-price__notes {
    margin: 24px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #bfbfbf;
    list-style: none;
    font-size: 14px;
    line-height: 20px;
    color: #3a3a3a;
}

.zp-price__notes li + li {
    margin-top: 8px;
}

/* ---------- Плашка с записью ---------- */

.zp-price__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-top: 32px;
    padding: 24px;
    border-radius: 20px;
    background: #e9e9e9;
}

.zp-price__cta-title {
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 20px;
    line-height: 26px;
}

.zp-price__cta-note {
    font-size: 16px;
    line-height: 23px;
    color: #3a3a3a;
}

.zp-price .zp-price__cta-btn {
    padding: 14px 43px;
}

/* ---------- Карточка записи в первом экране ---------- */

.zp-booking .zp-booking__btn {
    width: 100%;
    padding: 14px 24px;
}

.zp-booking__note {
    margin-top: 20px;
    font-size: 15px;
    line-height: 20px;
    color: #3a3a3a;
}

/* ---------- От 480 px ---------- */

@media screen and (min-width: 480px) {
    .zp-price__title {
        font-size: 34px;
        line-height: 34px;
    }

    .zp-price__more-head {
        font-size: 18px;
        line-height: 23px;
    }
}

/* ---------- От 768 px ---------- */

@media screen and (min-width: 768px) {
    .zp-price {
        padding: 56px 0 32px;
    }

    .zp-price__head {
        margin-bottom: 32px;
    }

    .zp-price__picker {
        gap: 24px;
        padding: 24px 28px;
    }

    .zp-price__cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .zp-price__more-body {
        padding: 4px 20px 20px;
    }

    .zp-price__table th,
    .zp-price__table td {
        min-width: 76px;
        padding: 12px 8px;
    }

    .zp-price__table th:first-child {
        min-width: 150px;
        max-width: 260px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .zp-price__list_columns {
        -webkit-column-count: 2;
        column-count: 2;
        -webkit-column-gap: 40px;
        column-gap: 40px;
    }

    .zp-price__cta {
        padding: 28px 32px;
    }

    .zp-price__cta-title {
        font-size: 22px;
        line-height: 28px;
    }
}

/* ---------- Только планшет: три узкие карточки, цены друг под другом ---------- */

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .zp-price__card {
        padding: 20px;
    }

    .zp-price__card-prices {
        flex-direction: column;
        align-items: flex-start;
    }

    .zp-price__amount_single {
        text-align: left;
    }
}

/* ---------- От 1024 px ---------- */

@media screen and (min-width: 1024px) {
    .zp-price {
        padding: 72px 0 28px;
    }

    .zp-price__extras {
        -webkit-column-count: 2;
        column-count: 2;
        -webkit-column-gap: 16px;
        column-gap: 16px;
    }
}

/* ---------- От 1280 px ---------- */

@media screen and (min-width: 1280px) {
    .zp-price {
        padding: 80px 0 28px;
    }
}
