.price-calculator {
    padding-top: 40px;
    padding-bottom: 80px;
    color: var(--ink);
}

.price-calculator *,
.price-calculator *::before,
.price-calculator *::after {
    box-sizing: border-box;
}

.price-calculator__intro {
    max-width: 760px;
}

.price-calculator__eyebrow {
    margin-bottom: 10px;
    color: #17628f;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.price-calculator__eyebrow::before,
.price-catalog__note::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border-radius: 50%;
    background: #159081;
}

.price-calculator__title,
.price-catalog__head h2 {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -.02em;
}

.price-calculator__title {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;
}

.price-calculator__lead {
    max-width: 640px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.45;
}

.price-calculator__layout {
    display: block;
    margin-top: 48px;
}

.price-calculator__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px 40px;
}

.price-calculator__form-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

[data-price-tire-fields] {
    display: contents;
}

[data-price-tire-fields][hidden] {
    display: none !important;
}

.price-calculator__form-head h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.1;
}

.price-calculator__form-head h2::before {
    content: '';
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    background: url('../images/calc-icon.webp') center / contain no-repeat;
}

.price-calculator__form-head span,
.price-catalog__head > span {
    color: var(--muted);
    font-size: 14px;
}

.price-calculator__field {
    position: relative;
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 54px;
    border: 0;
}

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

.price-calculator__field label,
.price-calculator__field legend {
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
}

.price-calculator__field legend {
    padding: 0;
}

.price-calculator__step {
    position: absolute;
    top: -2px;
    left: 0;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background-color: var(--ink);
    color: var(--secondary-text-color);
    font-size: 14px;
    font-weight: 700;
}

.price-calculator__field select {
    width: 100%;
    min-height: 50px;
    padding: 0 46px 0 16px;
    border: 1px solid #cfdde7;
    border-radius: 8px;
    background: var(--secondary-text-color);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    appearance: none;
    box-shadow: 0 1px 2px rgba(30, 61, 91, .04);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.price-calculator__field:has(select)::after,
.price-catalog__service-select::after {
    content: '';
    position: absolute;
    right: 17px;
    bottom: 17px;
    width: 15px;
    height: 15px;
    background-color: var(--muted);
    pointer-events: none;
    -webkit-mask: url('../images/arrow-down.svg') center / contain no-repeat;
    mask: url('../images/arrow-down.svg') center / contain no-repeat;
}

.price-calculator__field:has(.price-custom-select)::after,
.price-catalog__service-select:has(.price-custom-select)::after {
    display: none;
}

.price-calculator__field--choice::after {
    display: none;
}

.price-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.price-custom-select {
    position: relative;
    width: 100%;
}

.price-custom-select__trigger {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    padding: 10px 46px 10px 16px;
    border: 1px solid #cfdde7;
    border-radius: 8px;
    background-color: var(--secondary-text-color);
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(30, 61, 91, .04);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.price-custom-select__trigger::after {
    content: '';
    position: absolute;
    right: 17px;
    width: 20px;
    height: 20px;
    background-color: #647585;
    -webkit-mask: url('../images/arrow-down.svg') center / contain no-repeat;
    mask: url('../images/arrow-down.svg') center / contain no-repeat;
    transition: transform .2s ease;
}

.price-custom-select__trigger:hover,
.price-custom-select.is-open .price-custom-select__trigger {
    border-color: #2878b5;
}

.price-custom-select__trigger:focus-visible,
.price-custom-select.is-open .price-custom-select__trigger {
    box-shadow: 0 0 0 3px rgba(40, 120, 181, .12);
    outline: 0;
}

.price-custom-select.is-open .price-custom-select__trigger::after {
    transform: rotate(180deg);
}

.price-custom-select__menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid #d5e2eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(24, 54, 84, .16);
}

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

.price-custom-select__option {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.price-custom-select__option:hover,
.price-custom-select__option:focus-visible {
    background: #e9f5fd;
    color: #1d5c8c;
    outline: 0;
}

.price-custom-select__option.is-selected {
    background: var(--secondary-bg-color);
    color: var(--secondary-text-color);
}

.price-custom-select__option-icon {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    object-fit: contain;
}

.price-custom-select__option.is-selected .price-custom-select__option-icon {
    filter: brightness(0) invert(1);
}

.price-calculator__field select:focus-visible,
.price-calculator__choices button:focus-visible,
.price-catalog__tabs button:focus-visible,
.price-calculator__action:focus-visible {
    outline: 3px solid rgba(24, 125, 187, .35);
    outline-offset: 2px;
}

.price-calculator__field select:hover,
.price-catalog__service-select select:hover {
    border-color: #a8c0d1;
}

.price-calculator__field select:focus,
.price-catalog__service-select select:focus {
    border-color: #2878b5;
    box-shadow: 0 0 0 3px rgba(40, 120, 181, .12);
    outline: 0;
}

.price-calculator__choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.price-calculator__choices button,
.price-catalog__tabs button {
    min-height: 56px;
    border: 1px solid #d4dfeb;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.price-calculator__choices button {
    padding: 0 14px;
}

.price-calculator__choices button.is-selected,
.price-catalog__tabs button.is-selected {
    border: 2px solid var(--secondary-bg-color);
    background: var(--secondary-bg-color);
    color: var(--secondary-text-color);
}

.price-calculator__result {
    display: grid;
    grid-template-areas:
        'label selection action'
        'amount note action';
    grid-template-columns: minmax(180px, .65fr) minmax(0, 1.5fr) minmax(210px, .85fr);
    column-gap: 34px;
    align-items: center;
    margin-top: 34px;
    padding: 24px 34px;
    border-radius: 10px;
    background-color: var(--background-2);
}

.price-calculator__result-label {
    margin: 0;
    grid-area: label;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.price-calculator__amount {
    display: block;
    grid-area: amount;
    color: var(--ink);
    font-size: clamp(39px, 4vw, 52px);
    font-weight: 800;
    line-height: 1;
}

.price-calculator__selection {
    grid-area: selection;
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.price-calculator__included {
    grid-area: note;
    margin: 8px 0;
    padding: 0;
    border: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.price-calculator__action {
    grid-area: action;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
    background-color: var(--primary-bg-promo-color);
    color: var(--secondary-text-color);
    font-weight: 700;
    text-align: center;
}

.price-catalog {
    margin-top: 104px;
}

.price-catalog__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.price-catalog__head h2 {
    font-size: clamp(32px, 4vw, 48px);
}

.price-catalog__head p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.price-catalog__service-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.price-catalog__service-menu button {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 10px 18px;
    border: 1px solid #d4dfeb;
    border-radius: 8px;
    background: var(--secondary-text-color);
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    box-shadow: var(--box-shadow);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.price-catalog__service-menu button:hover {
    border-color: var(--rh-border);
    box-shadow: var(--box-shadow-hover);
}

.price-catalog__service-menu button.is-selected {
    border-color: var(--secondary-bg-color);
    background-color: var(--secondary-bg-color);
    color: var(--secondary-text-color);
}

.price-catalog__service-icon {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    background: center / contain no-repeat;
    transition: filter .18s ease;
}

.price-catalog__service-icon--tire-fitting {
    background-image: url('../images/mob-service/mob-service-1.svg');
}

.price-catalog__service-icon--seasonal-tire-change {
    background-image: url('../images/icons/tire-rem.svg');
}

.price-catalog__service-icon--tire-storage {
    background-image: url('../images/mob-service/mob-service-6.svg');
}

.price-catalog__service-icon--tire-repair {
    background-image: url('../images/icons/tire-rem.svg');
}

.price-catalog__service-icon--rim-repair {
    background-image: url('../images/mob-service/mob-service-3.svg');
}

.price-catalog__service-icon--nitrogen {
    background-image: url('../images/mob-service/mob-service-9.webp');
}

.price-catalog__service-icon--mobile-tire-service {
    background-image: url('../images/mob-tire/mob-tire-2.svg');
}

.price-catalog__service-icon--additional-work {
    background-image: url('../images/icons/settings.svg');
}

.price-catalog__service-icon--materials {
    background-image: url('../images/mob-service/mob-service-8.svg');
}

.price-catalog__service-menu button.is-selected .price-catalog__service-icon {
    filter: brightness(0) invert(1);
}

.price-catalog__service-select {
    display: none;
    position: relative;
    max-width: 430px;
    margin-top: 30px;
}

.price-catalog__service-select label {
    display: block;
    margin-bottom: 9px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.price-catalog__service-select select {
    width: 100%;
    min-height: 50px;
    padding: 0 46px 0 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--secondary-text-color);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    appearance: none;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.price-catalog__service-select select:focus-visible {
    outline: 3px solid rgba(24, 125, 187, .35);
    outline-offset: 2px;
}

.price-catalog__service-panel {
    margin-top: 40px;
}

.price-catalog__service-panel[hidden],
.price-catalog__table-wrap[hidden],
.price-catalog__service-panel.is-hidden {
    display: none !important;
}

.price-catalog__service-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.price-catalog__service-head h3,
.price-catalog__contact h3 {
    color: var(--ink);
    font-size: 27px;
    font-weight: 800;
    line-height: 1.3;
}

.price-catalog__tabs {
    display: flex;
    gap: 6px;
    padding: 8px;
    border: 1px solid #dce5eb;
    border-radius: 8px;
    background: #e9eef2;
    box-shadow: inset 0 1px 3px rgba(24, 54, 84, .14);
}

.price-catalog__vehicle-picker {
    display: grid;
    justify-items: end;
    gap: 7px;
}

.price-catalog__vehicle-label {
    color: var(--muted);
    font-size: 16px;
    font-weight: 700;
}

.price-catalog__tabs button {
    min-width: 156px;
    min-height: 42px;
    padding: 0 15px;
    border-color: #d6e0e7;
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    color: var(--ink);
    box-shadow: 0 1px 1px rgba(24, 54, 84, .08);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.price-catalog__tabs button:hover {
    border-color: #b7cbd8;
    background: var(--secondary-text-color);
}

.price-catalog__tabs button.is-selected {
    border-width: 1px;
    border-color: #176d79;
    background: var(--secondary-bg-color);
    color: var(--secondary-text-color);
    box-shadow: inset 0 2px 4px rgba(4, 52, 59, .38), inset 0 1px 0 rgba(255, 255, 255, .16);
    transform: translateY(1px);
}

.price-catalog__tabs button:active {
    box-shadow: inset 0 2px 4px rgba(4, 52, 59, .28);
    transform: translateY(1px);
}

.price-catalog__table-wrap {
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid #d9dfe5;
    border-radius: 10px;
    background: #fff;
}

.price-catalog__table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.price-catalog__table th,
.price-catalog__table td {
    padding: 14px 12px;
    border: 0;
    text-align: right;
    font-size: 17px;
    overflow-wrap: break-word;
}

.price-catalog__table th {
    background: #fff;
    color: #1f2d43;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.price-catalog__table th:first-child,
.price-catalog__table td:first-child {
    width: 40%;
    padding-left: 20px;
    text-align: left;
}

.price-catalog__table th:last-child,
.price-catalog__table td:last-child {
    padding-right: 20px;
}

.price-catalog__table td:first-child {
    color: var(--ink);
    font-weight: 700;
}

.price-catalog__table tbody td {
    border-top: 1px solid #e2e7ec;
    background: #fff;
    transition: background-color .18s ease;
}

.price-catalog__table tbody tr:nth-child(even) td {
    background: #fff;
}

.price-catalog__table tbody tr.is-highlighted td {
    border-color: #e2e7ec;
    background: #fff;
}

.price-catalog__table tbody tr.is-highlighted td:first-child,
.price-catalog__table tbody tr.is-highlighted td:last-child {
    color: var(--ink);
}

.price-catalog__table tbody tr:hover td {
    background-color: #f5f7f9;
}

.price-catalog__section {
    margin-top: 34px;
}

.price-catalog__section + .price-catalog__section {
    padding-top: 8px;
}

.price-catalog__section h4 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
}

.price-catalog__table--services {
    min-width: 0;
}

.price-catalog__table--services th,
.price-catalog__table--services td {
    padding: 14px 16px;
}

.price-catalog__table--services th:first-child,
.price-catalog__table--services td:first-child {
    width: 70%;
}

.price-catalog__table--services th:last-child,
.price-catalog__table--services td:last-child {
    width: 30%;
    white-space: nowrap;
}

.price-catalog__contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 54px;
    padding: 28px 32px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--secondary-text-color);
}

.price-catalog__contact-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.price-catalog__contact-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border-radius: 50%;
    background: var(--background) url('../images/mob-service/mob-service-1.svg') center / 32px no-repeat;
}

.price-catalog__contact p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.price-catalog__messengers {
    display: flex;
    gap: 20px;
    flex: 0 0 auto;
}

.price-catalog__messengers a {
    display: block;
    border-radius: 50%;
    transition: transform .18s ease;
}

.price-catalog__messengers a:hover {
    transform: translateY(-2px);
}

.price-catalog__note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.price-calculator__empty {
    margin-top: 40px;
    color: var(--muted);
}

@media (max-width: 850px) {
    .price-calculator__form {
        grid-template-columns: 1fr;
    }

    .price-catalog__service-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .price-calculator__result {
        grid-template-areas:
            'label'
            'amount'
            'selection'
            'note'
            'action';
        grid-template-columns: 1fr;
        gap: 0;
        padding: 28px;
    }

}

@media (max-width: 800px) {
    .price-calculator {
        padding: 32px 0 40px;
    }

    .price-calculator__lead {
        font-size: 17px;
    }

    .price-calculator__layout {
        margin-top: 34px;
    }

    .price-calculator__form-head {
        display: block;
    }

    .price-calculator__form-head span {
        display: block;
        margin-top: 2px;
    }

    .price-calculator__field {
        padding-left: 46px;
    }

    .price-calculator__field::before {
        content: '';
        position: absolute;
        top: 5px;
        left: 17px;
        width: 1px;
        height: calc(100% + 46px);
        background: var(--bcolor);
    }

    .price-calculator__field--choice::before,
    [data-price-option-field]::before {
        content: none;
    }

    /* On mobile, open calculator lists inline so they push the next steps down. */
    .price-calculator .price-custom-select__menu {
        position: static;
        width: auto;
        max-height: none;
        margin-top: 6px;
    }

    .price-calculator__choices {
        grid-template-columns: 1fr;
    }

    .price-calculator__choices {
        display: grid;
    }

    .price-calculator__result {
        padding: 26px;
    }

    .price-calculator__selection {
        margin-top: 10px;
    }

    .price-calculator__included {
        margin-top: 18px;
        padding-top: 18px;
    }

    .price-calculator__action {
        margin-top: 24px;
    }

    .price-calculator__form {
        gap: 26px 30px;
    }
}

@media (max-width: 600px) {
    .price-catalog__head {
        display: block;
    }

    .price-catalog__head > span {
        display: block;
        margin-top: 2px;
    }

    .price-catalog__service-menu {
        display: none;
    }

    .price-catalog__service-select {
        display: block;
    }

    .price-catalog__service-select {
        max-width: none;
    }

    .price-catalog__service-head {
        display: block;
    }

    .price-catalog__tabs {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .price-catalog__vehicle-picker {
        justify-items: stretch;
        margin-top: 18px;
    }

    .price-catalog__vehicle-picker .price-catalog__tabs {
        margin-top: 0;
    }

    .price-catalog__tabs button {
        width: 100%;
    }

    .price-calculator__result {
        padding: 26px;
    }

    .price-calculator__included {
        margin-top: 6px;
    }

    .price-calculator__action {
        margin-top: 14px;
    }

    .price-catalog {
        margin-top: 42px;
    }

    .price-catalog__table th,
    .price-catalog__table td {
        padding: 8px 7px;
        font-size: 14px;
    }

    .price-catalog__table th:first-child,
    .price-catalog__table td:first-child {
        padding-left: 12px;
    }

    .price-catalog__table th:last-child,
    .price-catalog__table td:last-child {
        padding-right: 12px;
    }

    .price-catalog__table:not(.price-catalog__table--services) th {
        white-space: nowrap;
        overflow-wrap: normal;
    }

    .price-catalog__table:not(.price-catalog__table--services) th:first-child,
    .price-catalog__table:not(.price-catalog__table--services) td:first-child {
        width: 40%;
    }

    .price-catalog__table:not(.price-catalog__table--services) th:nth-child(2),
    .price-catalog__table:not(.price-catalog__table--services) td:nth-child(2) {
        width: 24%;
    }

    .price-catalog__table:not(.price-catalog__table--services) th:last-child,
    .price-catalog__table:not(.price-catalog__table--services) td:last-child {
        width: 36%;
    }

    .price-catalog__contact {
        display: block;
        padding: 24px;
    }

    .price-catalog__messengers {
        margin-top: 20px;
    }

    .price-calculator__form {
        gap: 26px 30px;
    }

    .price-catalog__contact {
        margin-top: 40px;
    }
}
