.oh-bundle-page,
.oh-bundles-archive {
    color: var(--color-text-primary, #001515);
}

.oh-bundle-hero,
.oh-bundles-archive__hero {
    padding: 50px 0;
    background: rgba(108, 159, 83, .1);
}

.oh-bundle-hero__grid {
    display: grid;
    gap: 30px;
}

.oh-bundle-hero__content {
    align-self: center;
}

.oh-bundle-hero__eyebrow {
    margin-bottom: 12px;
    color: var(--color-forest, #6c9f53);
    font-weight: 700;
}

.oh-bundle-hero__title,
.oh-bundles-archive__hero h1 {
    margin: 0 0 20px;
    font-family: var(--font-garamond, serif);
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 700;
    line-height: 1;
}

.oh-bundle-hero__subtitle,
.oh-bundles-archive__hero p {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: clamp(18px, 2vw, 24px);
}

.oh-bundle-hero__excerpt p {
    margin-bottom: 20px;
}

.oh-bundle-hero__badge {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--color-accent-orange, #f4993d);
    color: #fff;
    font-weight: 700;
}

.oh-bundle-hero__image {
    min-height: 300px;
    overflow: hidden;
    border-radius: 20px;
}

.oh-bundle-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oh-bundle-description {
    padding: 50px 0 0;
}

.oh-bundle-description__content {
    max-width: 1000px;
}

.oh-bundle-description__content a {
    color: var(--color-forest, #6c9f53);
    text-decoration: underline;
}

.oh-bundle-builder {
    padding: 60px 0 80px;
}

.oh-bundle-builder__heading {
    max-width: 850px;
    margin-bottom: 40px;
}

.oh-bundle-builder__heading h2,
.oh-bundles-archive__hero h1 {
    font-family: var(--font-garamond, serif);
    font-weight: 700;
}

.oh-bundle-builder__heading h2 {
    margin-bottom: 12px;
    font-size: clamp(32px, 4vw, 46px);
}

.oh-bundle-form {
    display: grid;
    gap: 30px;
}

.oh-bundle-groups {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.oh-bundle-group {
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(70, 71, 71, .2);
    border-radius: 20px;
}

.oh-bundle-group.has-selection {
    border-color: var(--color-forest, #6c9f53);
}

.oh-bundle-group.show-error {
    border-color: #ea2b2b;
}

.oh-bundle-group__legend {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 10px;
}

.oh-bundle-group__number {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--color-forest, #6c9f53);
    color: #fff;
    font-weight: 700;
}

.oh-bundle-group__title,
.oh-bundle-group__required {
    display: block;
}

.oh-bundle-group__title {
    font-family: var(--font-garamond, serif);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.1;
}

.oh-bundle-group__required {
    margin-top: 4px;
    color: var(--color-forest, #6c9f53);
    font-size: 12px;
}

.oh-bundle-group__description {
    margin: 14px 0 20px;
}

.oh-bundle-products {
    display: grid;
    gap: 12px;
}

.oh-bundle-product {
    display: grid;
    grid-template-columns: 32px 82px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #f7f8f6;
}

.oh-bundle-product.is-selected {
    background: rgba(108, 159, 83, .12);
}

.oh-bundle-product.is-out-of-stock {
    opacity: .72;
}

.oh-bundle-product__select input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.oh-bundle-product__select label {
    display: block;
}

.oh-bundle-product__check {
    display: block;
    width: 26px;
    height: 26px;
    border: 2px solid rgba(70, 71, 71, .35);
    border-radius: 8px;
    background: #fff;
}

.oh-bundle-product__select input:checked + label .oh-bundle-product__check {
    border-color: var(--color-forest, #6c9f53);
    background: var(--color-forest, #6c9f53);
    box-shadow: inset 0 0 0 5px #fff;
}

.oh-bundle-product__check.is-disabled {
    background: #e3e3e3;
}

.oh-bundle-product__image {
    display: block;
    width: 82px;
    height: 82px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.oh-bundle-product__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.oh-bundle-product__body {
    min-width: 0;
}

.oh-bundle-product__name {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    line-height: 1.3;
}

.oh-bundle-product__price {
    margin-bottom: 8px;
}

.oh-bundle-product__quantity {
    display: inline-grid;
    grid-template-columns: 36px 54px 36px;
    overflow: hidden;
    border: 1px solid rgba(70, 71, 71, .25);
    border-radius: 10px;
    background: #fff;
}

.oh-bundle-product__quantity[hidden] {
    display: none;
}

.oh-bundle-product__quantity button,
.oh-bundle-product__quantity input {
    height: 36px;
    text-align: center;
}

.oh-bundle-product__quantity input {
    width: 54px;
    outline: none;
    -moz-appearance: textfield;
}

.oh-bundle-product__quantity input::-webkit-inner-spin-button,
.oh-bundle-product__quantity input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.oh-bundle-product__arrival {
    display: inline-flex;
    min-height: 38px;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 8px 14px;
    border: 1px solid var(--color-accent-orange, #f4993d);
    border-radius: 999px;
    background: #fff;
    color: var(--color-accent-orange, #f4993d);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease;
}

.oh-bundle-product__arrival:hover,
.oh-bundle-product__arrival:focus-visible {
    background: var(--color-accent-orange, #f4993d);
    color: #fff;
}

@media screen and (max-width: 480px) {
    .oh-bundle-product__arrival {
        width: 100%;
        white-space: normal;
    }
}

.oh-bundle-group__error {
    display: none;
    margin-top: 12px;
    color: #ea2b2b;
}

.oh-bundle-group.show-error .oh-bundle-group__error {
    display: block;
}

.oh-bundle-group__unavailable {
    padding: 14px;
    border-radius: 12px;
    background: rgba(234, 43, 43, .08);
    color: #9e2020;
}

.oh-bundle-summary__inner {
    padding: 24px;
    border-radius: 20px;
    background: #f0f5ee;
}

.oh-bundle-summary h3 {
    margin-bottom: 20px;
    font-family: var(--font-garamond, serif);
    font-size: 29px;
    font-weight: 700;
}

.oh-bundle-summary__progress,
.oh-bundle-summary__rows > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.oh-bundle-summary__progress {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(70, 71, 71, .2);
}

.oh-bundle-summary__rows {
    display: grid;
    gap: 12px;
    padding: 18px 0;
}

.oh-bundle-summary__discount {
    color: var(--color-forest, #6c9f53);
}

.oh-bundle-summary__total {
    padding-top: 14px;
    border-top: 1px solid rgba(70, 71, 71, .2);
    font-size: 20px;
}

.oh-bundle-summary__submit {
    width: 100%;
    padding: 18px;
}

.oh-bundle-summary__submit:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.oh-bundle-summary__hint {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.5;
    opacity: .75;
}

.oh-bundle-summary__message {
    margin-top: 12px;
    color: #ea2b2b;
}

.oh-bundles-archive__list {
    padding: 60px 0 80px;
}

.oh-bundles-grid {
    display: grid;
    gap: 24px;
}

.oh-bundle-card {
    overflow: hidden;
    border: 1px solid rgba(70, 71, 71, .18);
    border-radius: 20px;
    background: #fff;
}

.oh-bundle-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.oh-bundle-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oh-bundle-card__body {
    padding: 22px;
}

.oh-bundle-card h2 {
    margin-bottom: 12px;
    font-family: var(--font-garamond, serif);
    font-size: 29px;
    font-weight: 700;
    line-height: 1.1;
}

.oh-bundle-card__excerpt {
    margin-bottom: 20px;
}

.oh-bundle-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.oh-bundle-card__price {
    font-size: 20px;
    font-weight: 700;
}

.oh-bundle-card__unavailable {
    color: #9e2020;
    font-weight: 700;
}

.oh-bundle-card__button {
    padding: 13px 18px;
}

@media screen and (max-width: 1199px) {
    .oh-bundle-builder {
        padding-bottom: 180px;
    }

    .oh-bundle-summary {
        position: fixed;
        right: 10px;
        bottom: calc(82px + env(safe-area-inset-bottom, 0px));
        left: 10px;
        z-index: 49;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
        pointer-events: auto;
    }

    .oh-bundle-form.is-in-viewport .oh-bundle-summary {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .oh-bundle-summary__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(145px, auto);
        grid-template-areas:
            "progress submit"
            "total submit"
            "message message";
        align-items: center;
        gap: 3px 14px;
        padding: 12px;
        border: 1px solid rgba(108, 159, 83, .25);
        border-radius: 16px;
        box-shadow: 0 8px 28px rgba(0, 21, 21, .18);
    }

    .oh-bundle-summary h3,
    .oh-bundle-summary__hint,
    .oh-bundle-summary__rows > div:not(.oh-bundle-summary__total) {
        display: none;
    }

    .oh-bundle-summary__progress {
        grid-area: progress;
        justify-content: flex-start;
        gap: 5px;
        padding: 0;
        border: 0;
        font-size: 12px;
        line-height: 1.2;
    }

    .oh-bundle-summary__progress > span {
        font-size: 0;
    }

    .oh-bundle-summary__progress > span::after {
        content: "Компонентов:";
        font-size: 12px;
    }

    .oh-bundle-summary__rows {
        display: block;
        grid-area: total;
        padding: 0;
    }

    .oh-bundle-summary__total {
        display: flex;
        justify-content: flex-start;
        gap: 6px;
        padding: 0;
        border: 0;
        font-size: 16px;
        line-height: 1.2;
    }

    .oh-bundle-summary__submit {
        grid-area: submit;
        align-self: stretch;
        min-height: 52px;
        padding: 10px 13px;
        border-radius: 13px;
        font-size: 13px;
        line-height: 1.2;
    }

    .oh-bundle-summary__message {
        grid-area: message;
        margin: 4px 0 0;
        font-size: 12px;
        line-height: 1.3;
    }
}

@media screen and (max-width: 420px) {
    .oh-bundle-summary__inner {
        grid-template-columns: minmax(0, 1fr) 132px;
        gap: 3px 8px;
        padding: 10px;
    }

    .oh-bundle-summary__submit {
        font-size: 12px;
    }
}

@media screen and (min-width: 768px) {
    .oh-bundles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (min-width: 1200px) {
    .oh-bundle-hero,
    .oh-bundles-archive__hero {
        padding: 80px 0;
    }

    .oh-bundle-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr);
    }

    .oh-bundle-form {
        grid-template-columns: minmax(0, 1fr) 360px;
        align-items: start;
    }

    .oh-bundle-summary {
        position: sticky;
        top: 220px;
    }

    .oh-bundle-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .oh-bundles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
