html { font-size: 13.6px; }
body {
    font-size: 14px;
}

.section {
    padding: 75px 60px;
    max-width: 1190px;
    margin: 0 auto;
}

.section-label {
    margin-bottom: 11px;
}

.section-title {
    margin-bottom: 15px;
}

.config-layout {
    display: grid;
    grid-template-columns: 1fr 368px;
    gap: 37px;
    align-items: start;
}

.config-step {
    margin-bottom: 48px;
}

.step-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 7px;
}

.step-text {
    margin-bottom: 19px;
}

.options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.options--2 {
    grid-template-columns: repeat(2, 1fr);
}

.option {
    position: relative;
    display: block;
    cursor: pointer;
}

.option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 15px 19px;
    background: var(--card);
    border: 1px solid var(--line);
    transition: all 0.25s;
    border-radius: 6px;
}

.option:hover .option-box {
    border-color: rgba(255, 255, 255, 0.25);
}

.option input:checked + .option-box {
    border-color: #ffffff;
    background: var(--card-hi);
    box-shadow: inset 0 0 0 1px #ffffff;
}

.option input:focus-visible + .option-box {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.option-name {
    font-weight: 600;
    font-size: 1.05em;
}

.option-sub {
    font-size: 0.82em;
    color: rgba(255, 255, 255, 0.45);
}

.option-price {
    margin-top: 5px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.option--check .option-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.check-mark {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.check-mark svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    color: #000000;
}

.option input:checked + .option-box .check-mark {
    background: #ffffff;
    border-color: #ffffff;
}

.option input:checked + .option-box .check-mark svg {
    opacity: 1;
}

.addon-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.power-note {
    margin-top: 12px;
    padding: 14px 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.65);
}

.summary {
    position: sticky;
    top: 96px;
    background: var(--card);
    border: 1px solid var(--line-hi);
    padding: 32px;
    border-radius: 6px;
}

.summary-title {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

.summary-list {
    list-style: none;
    margin-bottom: 23px;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92em;
}

.summary-list li span:first-child {
    color: rgba(255, 255, 255, 0.65);
}

.summary-list li span:last-child {
    text-align: right;
    white-space: nowrap;
}

.summary-total-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
}

.summary-total {
    font-size: 3em;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.1;
    margin: 4px 0 5px;
}

.summary-total span {
    font-size: 0.35em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0;
}

.summary-hint {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 23px;
}

.btn-order {
    display: block;
    width: 100%;
    padding: 16px 0;
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    font-family: inherit;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.btn-order:hover {
    background: transparent;
    color: #ffffff;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 6px;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--card);
    border: 1px solid var(--line-hi);
    width: 490px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.6);
    border-radius: 6px;
}

.modal h2 {
    font-size: 1.6em;
    margin-bottom: 7px;
    letter-spacing: -0.5px;
}

.modal-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92em;
    margin-bottom: 19px;
}

.modal-notes {
    list-style: none;
    margin: 19px 0;
}

.modal-notes li {
    padding: 9px 0 9px 19px;
    position: relative;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid var(--line);
}

.modal-notes li::before {
    content: "◆";
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 0.6em;
    color: rgba(255, 255, 255, 0.4);
}

.modal-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 23px;
    cursor: pointer;
}

.modal-check input {
    margin-top: 4px;
    width: 14px;
    height: 14px;
    accent-color: #ffffff;
    flex-shrink: 0;
}

.modal-check a {
    color: #ffffff;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-actions button {
    flex: 1;
    padding: 11px 0;
    font-family: inherit;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-cancel {
    background: transparent;
    color: #ffffff;
    border: 2px solid var(--line-hi);
    border-radius: 4px;
}

.btn-cancel:hover {
    border-color: #ffffff;
}

.btn-confirm {
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    border-radius: 4px;
}

.btn-confirm:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@media (max-width: 1225px) {
    .config-layout {
        grid-template-columns: 1fr 315px;
    }

    .options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1050px) {
    .section {
        padding-left: 30px;
        padding-right: 30px;
    }

    .config-layout {
        grid-template-columns: 1fr;
    }

    .summary {
        position: static;
    }
}

@media (max-width: 768px) {
    #konfigurator {
        margin-top: 37px;
    }

    .section {
        padding: 37px 20px;
    }

    .options,
    .options--2 {
        grid-template-columns: 1fr;
    }

    .summary {
        padding: 23px 15px;
    }

    .modal {
        padding: 23px 15px;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }
}