.price-calc {
    --pc-brand: var(--color_brand, #1a73e8);
    --pc-brand-strong: color-mix(in srgb, var(--pc-brand) 50%, #000);
    --pc-brand-strong-hover: color-mix(in srgb, var(--pc-brand) 40%, #000);
    --pc-brand-soft: color-mix(in srgb, var(--pc-brand) 7%, #fff);
    --pc-ink: #1d2126;
    --pc-ink-2: #4b525b;
    --pc-muted: #5c6470;
    --pc-control: #8a919a;
    --pc-success: #1a7a43;
    --pc-line: #eceef1;
    --pc-surface: #f6f7f9;
    --pc-radius: 14px;
    color: var(--pc-ink);
    font-size: 15px;
    line-height: 1.45;
}

@supports (color: oklch(from red min(l, .5) c h)) {
    .price-calc {
        --pc-brand-strong: oklch(from var(--pc-brand) min(l, .48) c h);
        --pc-brand-strong-hover: oklch(from var(--pc-brand) min(l, .4) c h)
    }
}

.price-calc__head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px 40px;
    align-items: end;
    margin-bottom: 28px
}

.price-calc__title {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--pc-ink)
}

.price-calc__lead {
    margin: 0;
    max-width: 60ch;
    color: var(--pc-ink-2)
}

.price-calc__dev {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px
}

.price-calc__perks {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none
}

.price-calc__perk {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 170px;
    font-size: 13px;
    line-height: 1.3;
    color: var(--pc-muted)
}

.price-calc__perk b {
    display: block;
    font-size: 14px;
    color: var(--pc-ink)
}

.price-calc__perk a {
    color: var(--pc-ink-2);
    text-decoration: underline;
    text-underline-offset: 2px
}

.price-calc__perk svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--pc-ink)
}

.price-calc__panel {
    border: 1px solid var(--pc-line);
    border-radius: var(--pc-radius);
    background: #fff
}

.price-calc__tools {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 0
}

.price-calc__search {
    position: relative
}

.price-calc__search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--pc-muted);
    pointer-events: none
}

.price-calc__search input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 42px;
    border: 1px solid var(--pc-line);
    border-radius: 10px;
    background: var(--pc-surface);
    font: inherit;
    color: inherit;
    outline: none;
    transition: border-color .15s, background .15s
}

.price-calc__search input:focus {
    background: #fff;
    border-color: var(--pc-ink)
}

.price-calc__search input::placeholder {
    color: var(--pc-muted)
}

.price-calc__tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    margin: 0 -20px;
    padding: 0 20px 14px;
    border-bottom: 1px solid var(--pc-line);
    scrollbar-width: none;
    transition: opacity .15s
}

.price-calc__tabs::-webkit-scrollbar {
    display: none
}

@media (hover:hover) and (pointer:fine) {
    .price-calc__tabs {
        flex-wrap: wrap;
        overflow: visible
    }
}

.price-calc__tab {
    flex: none;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--pc-line);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--pc-ink-2);
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s
}

.price-calc__tab span {
    font-weight: 500;
    color: var(--pc-muted);
    font-variant-numeric: tabular-nums
}

.price-calc__tab:hover {
    border-color: #cfd3d8;
    color: var(--pc-ink)
}

.price-calc__tab[aria-selected="true"] {
    background: var(--pc-ink);
    border-color: var(--pc-ink);
    color: #fff
}

.price-calc__tab[aria-selected="true"] span {
    color: #aeb4bb
}

.price-calc.is-searching .price-calc__tabs {
    pointer-events: none
}

.price-calc.is-searching .price-calc__tab {
    background: var(--pc-surface);
    border-color: var(--pc-line);
    color: var(--pc-muted)
}

.price-calc.is-searching .price-calc__tab[aria-selected="true"] {
    background: var(--pc-muted);
    border-color: var(--pc-muted);
    color: #fff
}

.price-calc.is-searching .price-calc__tab[aria-selected="true"] span {
    color: #e3e6ea
}

.price-calc__thead,
.price-calc__row {
    display: grid;
    grid-template-columns: 28px 1fr 130px 130px;
    gap: 16px;
    align-items: center
}

.price-calc__thead {
    padding: 12px 20px;
    font-size: 12px;
    color: var(--pc-muted)
}

.price-calc__thead span:nth-child(3),
.price-calc__thead span:nth-child(4) {
    text-align: right
}

.price-calc__group[hidden] {
    display: none
}

.price-calc__group-title {
    display: none;
    margin: 0;
    padding: 18px 20px 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pc-muted)
}

.price-calc.is-searching .price-calc__group-title {
    display: block
}

.price-calc__row {
    position: relative;
    min-height: 54px;
    padding: 10px 20px;
    border-top: 1px solid var(--pc-line);
    cursor: pointer;
    transition: background .12s
}

.price-calc__rows>.price-calc__row:first-child {
    border-top: 0
}

.price-calc.is-searching .price-calc__rows>.price-calc__row:first-child {
    border-top: 1px solid var(--pc-line)
}

.price-calc__row:hover {
    background: var(--pc-surface)
}

.price-calc__row[hidden] {
    display: none
}

.price-calc__row:has(:checked) {
    background: var(--pc-brand-soft)
}

.price-calc__row:has(.price-calc__check:focus-visible) {
    outline: 2px solid var(--pc-brand-strong);
    outline-offset: -2px
}

.price-calc__group:not(.is-expanded) .price-calc__rows>.price-calc__row:nth-child(n+9) {
    display: none
}

.price-calc.is-searching .price-calc__group .price-calc__rows>.price-calc__row:nth-child(n+9) {
    display: grid
}

.price-calc.is-searching .price-calc__group .price-calc__rows>.price-calc__row[hidden] {
    display: none
}

.price-calc__check {
    position: absolute;
    left: 24px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: 0;
    opacity: 0;
    transform: translateY(-50%)
}

.price-calc__box {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--pc-control);
    border-radius: 6px;
    display: grid;
    place-items: center;
    transition: background .12s, border-color .12s
}

.price-calc__box::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px) scale(0);
    transition: transform .15s
}

.price-calc__row:hover .price-calc__box {
    border-color: var(--pc-ink-2)
}

.price-calc__check:checked+.price-calc__box {
    background: var(--pc-brand-strong);
    border-color: var(--pc-brand-strong)
}

.price-calc__check:checked+.price-calc__box::after {
    transform: rotate(-45deg) translate(1px, -1px) scale(1)
}

.price-calc__name {
    font-weight: 600
}

.price-calc__name a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #d3d7dc;
    text-underline-offset: 3px
}

.price-calc__name a:hover {
    text-decoration-color: var(--pc-ink)
}

.price-calc__time {
    text-align: right;
    font-size: 14px;
    color: var(--pc-muted)
}

.price-calc__price {
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap
}

.price-calc__price small {
    margin-right: 3px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pc-muted)
}

.price-calc__price--free {
    color: var(--pc-success)
}

.price-calc__price--ask {
    font-size: 14px;
    font-weight: 500;
    color: var(--pc-ink-2);
    white-space: normal
}

.price-calc__more {
    display: block;
    margin: 0 20px 16px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--pc-line);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--pc-ink);
    cursor: pointer
}

.price-calc__more:hover {
    border-color: #cfd3d8
}

.price-calc.is-searching .price-calc__more {
    display: none
}

.price-calc__empty {
    display: none;
    padding: 36px 20px;
    text-align: center;
    color: var(--pc-ink-2)
}

.price-calc__empty b {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    color: var(--pc-ink)
}

.price-calc.is-empty .price-calc__empty {
    display: block
}

.price-calc.is-empty .price-calc__thead {
    display: none
}

.price-calc__note {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 16px;
    padding: 16px 20px;
    border-top: 1px solid var(--pc-line);
    font-size: 14px;
    color: var(--pc-ink-2)
}

.price-calc__ask {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--pc-ink);
    text-decoration: underline;
    text-decoration-color: #c8cdd3;
    text-underline-offset: 3px;
    cursor: pointer
}

.price-calc__ask:hover {
    text-decoration-color: var(--pc-ink)
}

.price-calc__phone {
    color: var(--pc-muted)
}

.price-calc__phone a {
    margin-left: 6px;
    font-weight: 700;
    color: var(--pc-ink);
    text-decoration: none;
    white-space: nowrap
}

.price-calc__phone a:hover {
    text-decoration: underline
}

.price-calc__bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 14px;
    padding: 14px 14px 14px 22px;
    border-radius: var(--pc-radius);
    background: var(--pc-ink);
    color: #fff
}

.price-calc__sum {
    flex: 1;
    min-width: 0
}

.price-calc__sum-label {
    display: block;
    font-size: 13px;
    color: #aeb4bb
}

.price-calc__sum-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums
}

.price-calc__sum-value small {
    margin-right: 3px;
    font-size: 14px;
    font-weight: 500;
    color: #aeb4bb
}

.price-calc__reset {
    padding: 6px 4px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    color: #aeb4bb;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer
}

.price-calc__reset:hover {
    color: #fff
}

.price-calc__reset[hidden] {
    display: none
}

.price-calc__cta {
    flex: none;
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--pc-brand-strong);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s
}

.price-calc__cta:hover {
    background: var(--pc-brand-strong-hover)
}

.price-calc__tab:focus-visible,
.price-calc__more:focus-visible,
.price-calc__cta:focus-visible,
.price-calc__reset:focus-visible,
.price-calc__ask:focus-visible {
    outline: 2px solid var(--pc-brand-strong);
    outline-offset: 2px
}

@media (max-width:900px) {
    .price-calc__head {
        grid-template-columns: 1fr
    }

    .price-calc__perks {
        flex-wrap: wrap;
        gap: 14px 24px
    }
}

@media (max-width:640px) {
    .price-calc__tools {
        padding: 14px 14px 0
    }

    .price-calc__tabs {
        margin: 0 -14px;
        padding: 0 14px 14px
    }

    .price-calc__thead {
        display: none
    }

    .price-calc__row {
        grid-template-columns: 24px 1fr auto;
        grid-template-areas: "box name price" "box time price";
        gap: 2px 12px;
        padding: 12px 14px
    }

    .price-calc__check {
        left: 16px
    }

    .price-calc__box {
        grid-area: box
    }

    .price-calc__name {
        grid-area: name
    }

    .price-calc__time {
        grid-area: time;
        text-align: left;
        font-size: 13px
    }

    .price-calc__price {
        grid-area: price
    }

    .price-calc__group-title {
        padding: 16px 14px 6px
    }

    .price-calc__more {
        margin: 0 14px 14px
    }

    .price-calc__note {
        padding: 14px
    }

    .price-calc__bar {
        gap: 12px;
        padding: 12px 12px 12px 16px
    }

    .price-calc__sum-value {
        font-size: 18px
    }

    .price-calc__cta {
        height: 46px;
        padding: 0 18px
    }

    .price-calc__reset {
        display: none
    }
}

@media (prefers-reduced-motion:reduce) {
    .price-calc * {
        transition: none !important
    }
}