.selection__title {
    color: #003857;
    font-size: 30px;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
}

.breadcrumbs--outside+ .selection__title {
    margin-top: 30px;
}

.selection__form {
    margin-top: 40px;
    border: 3px solid #5f7c94;
    padding: 32px 40px;
}

.form-hr {
    margin: 40px 0;
    height: 1px;
    border-top: 1px dotted #bdbdbd;
}

.selection__form-label {
    color: #333;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
}

.selection__form-group--next,
.selection__form-group--next-hr {
    transition: opacity 0.3s ease;
    opacity: 1;
}

/* Стили для radio-кнопок */
.radio-options {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.dowel {
    gap: 60px;
}

.selection__form-radio-block {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 15px;
}

.radio-option {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 18px;
}
.radio-option:first-child {
    flex: none;
    width: 262px;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.selection__form-radio {
    width: 20px;
    height: 20px;
    background: url('/local/components/pxp/selection/templates/.default/images/form-radio.svg') no-repeat center;
    background-size: contain;
}

.radio-option input:checked + .selection__form-radio {
    background-image: url('/local/components/pxp/selection/templates/.default/images/form-radio-checked.svg');
}

.selection__form-radio-images {
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color 0.3s;
    display: flex;
    gap: 5px;
    overflow: hidden;
    padding: 5px;
    width: fit-content;
}

.two-images {
    width: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.radio-image {
    width: auto;
    height: auto;
    aspect-ratio: 1/1;
    max-width: 248px;
}

.radio-option:has(.selection__form-radio-block input:checked) .selection__form-radio-images {
    border-color: #003857;
}

.radio-options:has(.selection__form-radio-block input:checked)
.radio-option:not(:has(.selection__form-radio-block input:checked)) .selection__form-radio-images {
    opacity: 50%;
    filter: grayscale(30%);
}

.radio-label {
    color: #333;
}

/* Стили для ползунка */
.property-control {
    margin: 25px 0;
}

.property-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.property-input-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-input {
    width: 90px;
    padding: 6px 15px 7px;
    border: 1px solid #cacaca;
    border-radius: 4px;
    font-size: 18px;
    font-family: "Averta CY";
}

.slider-container {
    position: relative;
    width: calc(100% + 14px);
    height: 40px;
    margin: 20px -7px 0 -7px;
}

.slider-track {
    position: absolute;
    width: calc(100% - 14px);
    height: 1px;
    background: #d8d8d8;
    top: 25px;
    left: 7px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 1px;
    background: transparent;
    position: absolute;
    top: 25px;
    margin: 0;
}

/* Кастомный ползунок в виде картинки */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 13px;
    background: url('/local/components/pxp/selection/templates/.default/images/form-number-slider.svg') no-repeat center;
    background-size: contain;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 13px;
    background: url('/local/components/pxp/selection/templates/.default/images/form-number-slider.svg') no-repeat center;
    background-size: contain;
    cursor: pointer;
    position: relative;
    z-index: 2;
    border: none;
}

.slider-value {
    position: absolute;
    top: -5px;
    left: 0;
    transform: translateX(-50%);
    color: #003857;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
    pointer-events: none;
}

.slider-marks {
    position: relative;
    width: 100%;
    height: 10px;
    margin: 0;
}

.slider-mark {
    position: absolute;
    font-size: 14px;
    color: #d8d8d8;
    transform: translateX(-50%);
}

.slider-mark::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    width: 1px;
    height: 10px;
    background: #d8d8d8;
}

@media screen and (max-width: 1480px) {
    .radio-options:not(.dowel) {
        flex-direction: column;
    }
}

@media (max-width: 1149px) and (min-width: 1025px) {
    .selection__form-radio-images {
        flex-direction: column;
    }

    .two-images {
        width: fit-content;
    }
}

@media screen and (max-width: 900px) {
    .selection__form {
        padding: 32px 35px 40px;
    }

    .selection__form-dowel {
        padding: 32px 30px 40px;
    }

    .selection__form-dowel .property-header {
        gap: 15px;
    }

    .selection__form-dowel .property-input {
        width: 80px;
    }

    .two-images {
        width: fit-content;
    }

    .radio-options:not(.dowel) .radio-image {
        max-width: 320px;
    }
}

@media screen and (max-width: 760px) {
    .selection__title {
        font-size: 24px;
    }

    .selection__form {
        padding: 32px 28px 40px;
    }

    .dowel:not(.radio-options_only-text) {
        flex-direction: column;
        gap: 20px;
    }

    .selection__form-radio-images {
        flex-direction: column;
    }

    .radio-image {
        max-width: unset;
        width: 100%;
    }

    .property-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .selection__form-dowel .property-header {
        gap: 20px;
    }

    .mobile_light-marks .slider-mark:nth-last-child(2) {
        display: none;
    }
}

/** Результаты подбора */
.selection__results {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.selection__results-list,
.results-set {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.results-set {
    border: 3px solid #5f7c94;
    padding: 20px;
}

.results-set__header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.results-set__title {
    font-size: 20px;
}

.results-item {
    display: flex;
    gap: 30px;
    align-items: center;
}

.results-item-image {
    width: auto;
    height: auto;
}

.results-item-title {
    flex-grow: 1;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.results-item-title a {
    color: #003857;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    text-decoration-line: underline;
    text-underline-offset: 4px;
}

.results-item-btn {
    flex-shrink: 0;
    background: #eb5d13;
    border-radius: 60px;
    min-height: 42px;
    display: grid;
    place-content: center;
    font-size: 16px;
    text-align: center;
    color: #fff;
    padding: 11px 50px;
    transition: all 0.3s;
}

.results-item-btn:hover {
    background: #c54300;
}

button.show-cart {
    display: none;
}

.--in-order .show-cart {
    display: block;
}

.--in-order .add-cart,
.--in-order .add-all-cart {
    display: none;
}

@media screen and (max-width: 760px) {
    .selection__results-list,
    .results-set {
        gap: 30px;
    }

    .results-item {
        flex-wrap: wrap;
        gap: 20px;
        row-gap: 15px;
    }

    .results-item-title {
        max-width: calc(100% - 120px);
    }

    .results-item-btn {
        width: 100%;
    }
}
