/* Страница комплектации. Галерея и похожие — из model.css, body.model. */

.kt-body {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 28px 32px;
    margin-top: 28px;
    align-items: start;
}

.kt-aside {
    padding: 16px 14px 12px;
    background: #f4f8fc;
    border-radius: 10px;
}

.kt-pick {
    display: none;
}

.kt-aside h2,
.kt-spec > h2 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0e2438;
}

.kt-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kt-item {
    margin: 0 0 6px;
    padding: 0;
}

.kt-item-in {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    padding: 8px 10px;
    border-radius: 8px;
}

.kt-item.is-current .kt-item-in {
    background: #fff;
    box-shadow: 0 0 0 1px #d6e4f0;
}

.kt-item:not(.is-current) .kt-item-in:hover {
    background: #e0f3fa;
}

.kt-item:not(.is-current) .kt-item-in:hover .kt-item-name {
    color: #1488c4;
}

.kt-item:not(.is-actual) .kt-item-name,
.kt-item:not(.is-actual) .kt-item-price {
    color: #8aa0b5;
}

.kt-item-link,
.kt-item-body {
    display: block;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.kt-item:not(.is-current) .kt-item-in {
    cursor: pointer;
}

.kt-item-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
}

.kt-item-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #0e2438;
}

.kt-item-motor,
.kt-item-price {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400;
    color: #8aa0b5;
}

.kt-item.is-actual .kt-item-price {
    color: #0e2438;
    font-weight: 500;
}

.kt-item-in .compare_check_div {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    width: 16px;
    height: 16px;
    margin: 4px 0 0;
    flex-shrink: 0;
    overflow: visible;
    background: transparent;
}

.kt-item input.add_car_to_compare {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    border: 1px solid #5ec4f2;
    border-radius: 4px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
    cursor: pointer;
    box-sizing: border-box;
}

.kt-item input.add_car_to_compare:checked {
    background-color: #0e2438;
    border-color: #0e2438;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2l2.4 2.4 4.6-5'/%3E%3C/svg%3E");
}

.kt-item-in .compare_check_div #compare_check_go {
    position: absolute;
    left: 0;
    right: auto;
    top: 22px;
    z-index: 4;
}

.kt-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
}

.kt-sec {
    margin: 0 0 22px;
}

.kt-sec h3 {
    margin: 0 0 8px;
    padding: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0e2438;
    border-bottom: 1px solid #d6e4f0;
}

.kt-sec > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kt-sub > ul {
    margin: 0 0 8px;
    padding: 0 0 2px 14px;
    list-style: none;
}

.kt-row {
    display: grid;
    grid-template-columns: minmax(42%, 1fr) minmax(30%, 1fr);
    gap: 4px 12px;
    padding: 7px 0;
    border-bottom: 1px solid #edf2f6;
}

.kt-k {
    font-size: 13px;
    line-height: 1.35;
    color: #5a7388;
}

.kt-v {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: #0e2438;
    text-align: right;
}

.kt-sub {
    margin: 8px 0 4px;
    padding: 0;
}

.kt-sub-name {
    display: block;
    margin: 10px 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: #0e2438;
}

.kt-spec .model-note {
    margin-top: 8px;
}

@media only screen and (max-width: 900px) {
    body.komplekt .model-meta {
        margin-bottom: 0;
    }

    .kt-body {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 0;
    }

    .kt-spec-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .kt-aside {
        position: sticky;
        top: 50px;
        z-index: 90;
        margin-left: -10px;
        margin-right: -10px;
        padding: 0;
        background: #fff;
        border-radius: 0;
        border-bottom: 1px solid #d6e4f0;
        box-shadow: 0 8px 16px rgba(14, 36, 56, 0.08);
    }

    body.header-compact .kt-aside {
        top: 40px;
    }

    .kt-aside h2 {
        display: none;
    }

    .kt-pick {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
        min-height: 52px;
        padding: 8px 12px 8px 14px;
        border: 0;
        background: #fff;
        text-align: left;
        cursor: pointer;
    }

    .kt-pick:disabled {
        cursor: default;
    }

    .kt-pick-text {
        display: block;
        flex: 1;
        min-width: 0;
    }

    .kt-pick-name {
        display: block;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.25;
        color: #0e2438;
        letter-spacing: -0.02em;
    }

    .kt-pick-motor,
    .kt-pick-price {
        display: inline;
        margin-right: 10px;
        font-size: 12px;
        font-weight: 400;
        color: #8aa0b5;
    }

    .kt-pick-price {
        color: #0e2438;
        font-weight: 500;
    }

    .kt-pick-caret {
        flex: 0 0 22px;
        width: 22px;
        height: 22px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%238aa0b5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
    }

    .kt-aside.is-open .kt-pick-caret {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%231488c4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M2.5 7.5L6 4l3.5 3.5'/%3E%3C/svg%3E");
    }

    .kt-list {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 91;
        max-height: min(70vh, 420px);
        overflow: auto;
        margin: 0;
        padding: 6px 10px 10px;
        background: #fff;
        border-bottom: 1px solid #d6e4f0;
        box-shadow: 0 12px 28px rgba(14, 36, 56, 0.16);
    }

    .kt-aside.is-open .kt-list {
        display: block;
    }
}

@media only screen and (max-width: 700px) {
    .kt-aside.is-open {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 190;
        margin: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-shadow: none;
        border-bottom: 0;
    }

    body.header-compact .kt-aside.is-open {
        top: 40px;
    }

    .kt-aside.is-open .kt-pick {
        flex: 0 0 auto;
    }

    .kt-aside.is-open .kt-list {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        flex: 1 1 auto;
        max-height: none;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: none;
        border-bottom: 0;
        padding: 8px 10px 24px;
    }

    body.kt-pick-open {
        overflow: hidden;
    }
}
