.price-calc {
    --pc-brand: var(--color_brand, #6e747a);
    --pc-cta: color-mix(in srgb, var(--pc-brand) 62%, #000);
    --pc-cta-hover: color-mix(in srgb, var(--pc-brand) 52%, #000);
    --pc-tint: color-mix(in srgb, var(--pc-brand) 7%, #fff);
    --pc-focus: color-mix(in srgb, var(--pc-brand) 45%, transparent);
    --pc-ink: #1b1f24;
    --pc-text: #3a4048;
    --pc-body: #4a5058;
    --pc-muted: #5f6670;
    --pc-control: #8a9097;
    --pc-line: #e3e6ea;
    --pc-line-strong: #cfd3d8;
    --pc-surface: #f3f5f7;
    --pc-dark: #1f2226;
    --pc-dark-muted: #c4c9ce;
    --pc-success: #1f7a4d;
    color: var(--pc-ink);
    font-size: 15px;
    line-height: 1.45;
}

@supports (color: oklch(from red l c h)) {
    .price-calc {
        --pc-cta: oklch(from var(--pc-brand) min(l, .52) c h);
        --pc-cta-hover: oklch(from var(--pc-brand) min(l, .44) c h);
    }
}

.price-calc__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px 48px;
    align-items: end;
}

.price-calc__intro {
    min-width: 0;
}

.price-calc .price-calc__title {
    margin: 0;
    font-size: clamp(26px, 1rem + 1.8vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--pc-ink);
}

.price-calc .price-calc__lead {
    margin: 12px 0 0;
    max-width: 62ch;
    font-size: 17px;
    line-height: 1.55;
    color: var(--pc-muted);
}

.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: 180px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--pc-muted);
}

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

.price-calc__perk a {
    color: var(--pc-body);
    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__tools {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: var(--sec-head, 36px);
}

.price-calc__search {
    position: relative;
    display: block;
    max-width: 520px;
    margin: 0;
}

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

.price-calc__search input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    border: 1px solid var(--pc-line);
    border-radius: 12px;
    background: var(--pc-surface);
    font: inherit;
    color: inherit;
    outline: none;
    transition: border-color .15s, background-color .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;
    flex-wrap: wrap;
    gap: 8px;
    transition: opacity .15s;
}

.price-calc__tab {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--pc-line);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--pc-ink);
    cursor: pointer;
    transition: background-color .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: var(--pc-line-strong);
}

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

.price-calc__tab[aria-selected="true"] span {
    color: var(--pc-dark-muted);
}

.price-calc__tab-sel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--pc-cta);
    border-radius: 999px;
}

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

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

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

.price-calc__group {
    margin-top: 18px;
}

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

.price-calc .price-calc__group-title {
    display: none;
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--pc-muted);
}

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

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

.price-calc__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 15px 17px;
    background: #fff;
    border: 1px solid var(--pc-line);
    border-radius: 14px;
    cursor: pointer;
    transition: background-color .12s, border-color .12s, box-shadow .12s;
}

.price-calc__row:hover {
    border-color: var(--pc-line-strong);
}

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

.price-calc__row:has(.price-calc__check:checked) {
    background: var(--pc-tint);
    border-color: var(--pc-brand);
    box-shadow: inset 0 0 0 .5px var(--pc-brand);
}

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

.price-calc__row.is-locked {
    color: #6b7178;
    background: #f8f9fb;
    cursor: not-allowed;
}

.price-calc__row.is-locked:hover {
    border-color: var(--pc-line);
}

.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: flex;
}

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

.price-calc .price-calc__check {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: inherit;
}

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

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

.price-calc__row:hover .price-calc__box {
    border-color: var(--pc-body);
}

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

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

.price-calc__row.is-locked .price-calc__box {
    background: var(--pc-surface);
    border-color: #c4c9ce;
}

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

.price-calc__name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.price-calc__name a {
    position: relative;
    z-index: 2;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #d3d7dc;
    text-underline-offset: 3px;
}

.price-calc__name a:hover {
    text-decoration-color: currentColor;
}

.price-calc__time {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    font-size: 13px;
    color: var(--pc-muted);
}

.price-calc__time svg {
    flex: none;
    width: 13px;
    height: 13px;
}

.price-calc__time:has(span:empty) {
    display: none;
}

.price-calc__price {
    flex: none;
    max-width: 40%;
    font-size: 17px;
    font-weight: 800;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

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

.price-calc__price--ask {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pc-body);
    white-space: normal;
}

.price-calc__more {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px auto 0;
    padding: 10px 16px;
    border: 1px dashed #a3a8ad;
    border-radius: 999px;
    background: var(--pc-surface);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pc-ink);
    cursor: pointer;
}

.price-calc__more:hover {
    border-color: var(--pc-ink);
}

.price-calc__more svg {
    width: 14px;
    height: 14px;
    transition: transform .2s;
}

.price-calc__more[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

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

.price-calc__empty {
    display: none;
    margin-top: 18px;
    padding: 32px 20px;
    text-align: center;
    color: var(--pc-body);
    background: var(--pc-surface);
    border-radius: 14px;
}

.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__warn {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 14px 16px;
    background: #fff6e0;
    border: 1px solid #f3d9a0;
    border-radius: 12px;
}

.price-calc__warn[hidden] {
    display: none;
}

.price-calc__warn-ic {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: #9a6412;
    border-radius: 50%;
}

.price-calc .price-calc__warn p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #4a3a12;
}

.price-calc__warn b {
    color: #6b4e0a;
}

.price-calc__warn-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: #6b4e0a;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.price-calc__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 14px 16px 14px 24px;
    color: #fff;
    background: var(--pc-dark);
    border-radius: 16px;
}

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

.price-calc__sum-label {
    display: block;
    font-size: 13px;
    color: var(--pc-dark-muted);
}

.price-calc__sum-value {
    display: block;
    margin-top: 2px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.price-calc__sum-value small {
    margin-right: 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--pc-dark-muted);
}

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

.price-calc__reset {
    padding: 8px 4px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    color: var(--pc-dark-muted);
    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;
    padding: 16px 26px;
    border: 0;
    border-radius: 12px;
    background: var(--pc-cta);
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    cursor: pointer;
    transition: background-color .15s;
}

.price-calc__cta:hover {
    background: var(--pc-cta-hover);
}

.price-calc__note {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 16px;
    margin-top: 14px;
    font-size: 15px;
    color: var(--pc-body);
}

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

.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__tab:focus-visible,
.price-calc__more:focus-visible,
.price-calc__cta:focus-visible,
.price-calc__reset:focus-visible,
.price-calc__ask:focus-visible,
.price-calc__warn-link:focus-visible {
    outline: 2px solid var(--pc-focus);
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .price-calc__head {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

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

@media (max-width: 720px) {
    .price-calc .price-calc__lead {
        font-size: 16px;
    }

    .price-calc__perks {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .price-calc__perk {
        max-width: none;
    }

    .price-calc__search {
        max-width: none;
    }

    .price-calc__tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -16px;
        padding: 0 16px 2px;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
        mask-image: linear-gradient(90deg, #000 85%, transparent);
    }

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

    .price-calc__tab {
        font-size: 14px;
        padding: 9px 14px;
    }

    .price-calc__rows {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .price-calc__row {
        gap: 12px;
        padding: 13px 14px;
    }

    .price-calc__price {
        font-size: 16px;
    }

    .price-calc__price.price-calc__price--ask {
        max-width: 34%;
        font-size: 13px;
    }

    .price-calc__bar {
        flex-wrap: wrap;
        padding: 16px;
    }

    .price-calc__sum-value {
        font-size: 22px;
    }

    .price-calc__actions {
        width: 100%;
    }

    .price-calc__cta {
        flex: 1 1 auto;
    }

    .price-calc__note {
        font-size: 14px;
    }
}

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