:root {
    --base: #FAF7F6;
    --base-rgb: 250, 247, 246;
    --base-tint: #FFFFFF;
    --base-shade: #e0dddb;
    --base-opp: #161616;
    --base-opp-tint: #1C1C1C;
    --accent: #000000;
    --accent-rgb: 159, 139, 231;
    --additional: #DDF160;
    --additional-rgb: 221, 241, 96;
    --neutral-transparent: rgba(255, 255, 255, 0.3);
    --st-bright: #161616;
    --st-medium: #7C7C7C;
    --st-muted: #E0DDDB;
    --st-opp-bright: #FFFFFF;
    --fw-regular: 400;
    --fw-medium: 600;
    --fw-semibold: 700;
    --fw-bold: 800;
    --fw-regular-opp: 300;
    --fw-medium-opp: 500;
    --t-bright: #161616;
    --t-medium: #303030;
    --t-muted: #585858;
    --t-muted-extra: #B2AEAD;
    --t-opp-bright: #FFFFFF;
    --t-opp-medium: #ACACAC;
    --t-opp-muted: #838383;
}

[color-scheme=light] {
    --base: var(--base--light);
    --base-rgb: var(--base-rgb--light);
    --base-tint: var(--base-tint--light);
    --base-shade: var(--base-shade--light);
    --base-opp: var(--base-opp--light);
    --base-opp-tint: var(--base-opp-tint--light);
    --accent: #000000;
    --accent-rgb: var(--accent-rgb--light);
    --additional: var(--additional--light);
    --additional-rgb: var(--additional-rgb--light);
    --neutral-transparent: var(--neutral-transparent--light);
    --st-bright: var(--st-bright--light);
    --st-medium: var(--st-medium--light);
    --st-muted: var(--st-muted--light);
    --st-opp-bright: var(--st-opp-bright--light);
    --fw-regular: var(--fw-regular--light);
    --fw-medium: var(--fw-medium--light);
    --fw-semibold: var(--fw-semibold--light);
    --fw-bold: var(--fw-bold--light);
    --fw-regular-opp: var(--fw-regular-opp--light);
    --fw-medium-opp: var(--fw-medium-opp--light);
    --t-bright: var(--t-bright--light);
    --t-medium: var(--t-medium--light);
    --t-muted: var(--t-muted--light);
    --t-muted-extra: var(--t-muted-extra--light);
    --t-opp-bright: var(--t-opp-bright--light);
    --t-opp-medium: var(--t-opp-medium--light);
    --t-opp-muted: var(--t-opp-muted--light);
    --bg-demo-screen-01: var(--bg-demo-screen-01--light);
    --bg-demo-screen-02: var(--bg-demo-screen-02--light);
    --bg-demo-screen-03: var(--bg-demo-screen-03--light);
    --bg-demo-screen-04: var(--bg-demo-screen-04--light);
    --bg-demo-screen-05: var(--bg-demo-screen-05--light);
    --bg-demo-screen-06: var(--bg-demo-screen-06--light);
    --bg-demo-screen-07: var(--bg-demo-screen-07--light);
    --bg-demo-screen-08: var(--bg-demo-screen-08--light);
    --bg-demo-screen-09: var(--bg-demo-screen-09--light);
}

body[data-theme="dark"] {
    --base: #161616;
    --base-tint: #1C1C1C;
    --t-bright: #FFFFFF;
    --st-bright: #FFFFFF;
    --t-opp-bright: #161616;
    --st-opp-bright: #161616;
    --accent: #ffffff;
    --additional: #FFFFFF;
    background-color: #161616 !important;
    color: #FFFFFF !important;
}

@media only screen and (min-width: 1200px) {
    .mxd-hero-09__headline {
        position: absolute;
        top: 10rem;
        left: 0;
        width: 100%;
        z-index: 2;
    }
}

.mxd-hero-09 {
    padding-top: 0;
}

.mxd-hero-09__wrap {
    padding-top: 0;
}

@media only screen and (min-width: 768px) {
    .hero-09-objects__item.item-01 {
        top: 0rem;
        right: -3rem;
    }
}

.lizing-calc-container {
    display: flex;
    gap: 40px;
    background: #fbfbfb;
    border-radius: var(--_radius-m, 24px);
    padding: 40px 32px;
}

.lizing-form-section,
.lizing-result-section {
    flex: 1 1 340px;
    min-width: 300px;
}

.lizing-form-group {
    margin-bottom: 28px;
}

.lizing-form-group label {
    display: block;
    color: var(--t-bright, #222);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: inherit;
}

.lizing-select-wrapper {
    position: relative;
}

.lizing-select-wrapper select {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1.5px solid var(--base-shade, #e0e0e0);
    border-radius: 8px;
    background: var(--base-tint, #fff);
    font-size: 1rem;
    font-family: inherit;
    appearance: none;
    color: var(--t-bright, #222);
    transition: border .2s;
}

.lizing-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--t-muted, #aaa);
}

.lizing-input-field {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--base-shade, #e0e0e0);
    border-radius: 8px;
    font-size: 1.8rem;
    font-family: inherit;
    color: var(--t-bright, #222);
    background: var(--base-tint, #fafbfc);
    margin-bottom: 8px;
    font-weight: 600;
    transition: border .2s;
}

.lizing-input-field:focus {
    outline: none;
    border-color: var(--accent, #9F8BE7);
    background: var(--base, #fff);
}

.lizing-slider-container {
    margin-top: 10px;
}

.lizing-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--base-shade, #e0e0e0);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 2px;
}

.lizing-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent, #9F8BE7);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.13);
    border: 2px solid var(--base-tint, #fff);
}

.lizing-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent, #9F8BE7);
    cursor: pointer;
    border: 2px solid var(--base-tint, #fff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.13);
}

.lizing-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 1.8rem;
    color: var(--t-muted, #888);
    margin-top: 4px;
}

.lizing-result-section {
    background: var(--base-tint, #f7f7f9);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 320px;
}

.lizing-result-amount {
    font-size: 2.5rem;
    color: var(--t-muted, #888);
    margin-bottom: 2px;
}

.lizing-result-value {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--accent, #9F8BE7);
}

.lizing-payment-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 10px;
}

.lizing-monthly-label {
    font-size: 2rem;
    color: var(--t-muted, #888);
}

.lizing-monthly-value {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--t-bright, #222);
}

.lizing-payment-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--t-bright, #222);
}

.lizing-info-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent, #9F8BE7);
    color: var(--t-opp-bright, #fff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 5px;
    cursor: help;
}

.lizing-document-section {
    margin-bottom: 10px;
}

.lizing-document-label {
    font-size: 2rem;
    color: var(--t-muted, #888);
    margin-bottom: 8px;
}

.lizing-document-btn {
    background: var(--accent, #9F8BE7);
    color: var(--t-opp-bright, #fff);
    padding: 7px 18px;
    border: none;
    border-radius: 6px;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 4px;
    transition: background .18s;
}

.lizing-document-btn:hover {
    background: #dbdbdb;
    color: black;
}

.lizing-calculation-label {
    font-size: 2rem;
    color: var(--t-muted, #888);
    display: flex;
    align-items: center;
}

.lizing-buttons {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.lizing-btn-primary {
    background: var(--accent, #9F8BE7);
    color: var(--t-opp-bright, #fff);
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    transition: background .18s;
}

.lizing-btn-primary:hover {
    background: #dbdbdb;
    color: black;
}

.lizing-btn-secondary {
    background: transparent;
    color: var(--accent, #9F8BE7);
    padding: 14px 28px;
    border: 2px solid var(--accent, #9F8BE7);
    border-radius: 8px;
    font-size: 2rem;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    transition: background .18s, color .18s;
}

.lizing-btn-secondary:hover {
    background: var(--accent, #9F8BE7);
    color: var(--t-opp-bright, #fff);
}

.lizing-calc__title {
    text-align: left;
    margin-bottom: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0 6rem;
}

.mxd-hero-09__wrap {
    height: 60vh;
}

h1 {
    font-size: 7rem;
}

@media (max-width: 1200px) {
    .mxd-hero-09__wrap {
        height: 75vh;
    }

}

@media (max-width: 768px) {
    .hero-09-objects__item {
        display: none;
    }

    .mxd-hero-09__wrap {
        height: 70vh;
    }

    .lizing-calc__title {
        padding: 0 3rem;
    }
}

@media (max-width: 900px) {
    .lizing-calc-container {
        flex-direction: column;
        gap: 24px;
        padding: 28px 8px;
    }

    .lizing-result-section {
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .lizing-calc-container {
        padding: 10px;
    }

    .lizing-result-section {
        padding: 18px 6px;
    }
}

.mxd-hero-06__video {
    padding: 0;
    margin: 0;
}

.mxd-hero-head {
    margin: 0 20px 40px;
    padding: 0 10px;
}

.mxd-hero-head__title {
    text-align: center;
}

/* =================================
   ХЛЕБНЫЕ КРОШКИ
   ================================= */
.breadcrumb-ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 8px 10px;
    margin: 0 20px;
    border-radius: 8px;
    height: 100%;
}

.breadcrumb-ol li {
    margin: 0 5px;
    font-size: 20px;
    color: #555;
    font-family: inherit;
}

.breadcrumb-ol li a {
    text-decoration: none;
    color: #000000;
}

.breadcrumb-ol li a:hover {
    text-decoration: underline;
}

.breadcrumb-ol li::after {
    content: "›";
    margin-left: 5px;
    font-style: 25px;
    color: #535353;
}

.breadcrumb-ol li.active a {
    font-weight: bold;
    color: #000;
    text-decoration: underline;
}

.breadcrumb-ol li.active::after {
    content: "";
}

.lizing-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    background: rgba(40, 40, 40, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    border-radius: var(--_radius-m);
}

.lizing-blur-content {
    text-align: center;
    color: #fff;
    width: 100vw;
    user-select: none;
}

.lizing-blur-title {
    color: #fff;
    font-size: 5rem;
    font-weight: 900;
    margin: 0 0 0.3em 0;
    letter-spacing: 0.12em;
    text-shadow: 0 4px 24px #000, 0 1px 0 #444;
    text-transform: uppercase;
}

.lizing-blur-desc {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 12px #000, 0 1px 0 #444;
    font-family: 'Montserrat', 'Arial', sans-serif;
}

/* ПОЛНОСТЬЮ ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА */
/* Замените весь блок от комментария "ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА" до "Мобильная адаптация" */

body.modal-open {
    overflow: hidden !important;
    /* position: fixed !important; */
    width: 100% !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: block !important;
}

.modal-wrapper {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
    min-height: 100vh;
    /* Добавить это */
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--base-tint, #fff);
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
    position: relative;
    min-height: 110vh;

}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--base-shade, #e0e0e0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--base-tint, #fff);
    flex-shrink: 0;
    min-height: 60px;
    border-radius: 12px 12px 0 0;
}

.modal-body {
    padding: 30px;

}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--t-bright, #222);
    margin: 0;
}

.close {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    line-height: 1;
}

.close:hover {
    color: #222;
    background-color: #f0f0f0;
}


.calculation-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.summary-item {
    text-align: center;
}

.summary-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.summary-value.primary {
    font-size: 24px;
    color: #000000;
}

/* График платежей */
.payment-schedule {
    margin-top: 30px;
}

.schedule-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.schedule-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.schedule-table th,
.schedule-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

.schedule-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #222;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
    text-align: left;
}

.schedule-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Условия лизинга */
.conditions-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.conditions-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
}

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

.conditions-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.conditions-list li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Темная тема для модального окна */
body[data-theme="dark"] .modal-content {
    background-color: #1c1c1c !important;
}

body[data-theme="dark"] .modal-header {
    background-color: #1c1c1c !important;
    border-bottom-color: #333 !important;
}

body[data-theme="dark"] .modal-title {
    color: #fff !important;
}

body[data-theme="dark"] .close {
    color: #ccc !important;
}

body[data-theme="dark"] .close:hover {
    color: #fff !important;
    background-color: #333 !important;
}

body[data-theme="dark"] .calculation-summary {
    background: #2a2a2a !important;
}

body[data-theme="dark"] .summary-label {
    color: #aaa !important;
}

body[data-theme="dark"] .summary-value {
    color: #fff !important;
}

body[data-theme="dark"] .schedule-title,
body[data-theme="dark"] .conditions-title {
    color: #fff !important;
}

body[data-theme="dark"] .schedule-table th {
    background-color: #2a2a2a !important;
    color: #fff !important;
}

body[data-theme="dark"] .schedule-table td {
    color: #fff !important;
    border-bottom-color: #333 !important;
}

body[data-theme="dark"] .schedule-table tbody tr:hover {
    background-color: #333 !important;
}

body[data-theme="dark"] .conditions-list li {
    color: #fff !important;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    .modal.show {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .modal-wrapper {
        padding: 10px;
        align-items: flex-start;
    }

    .modal-content {
        width: 95% !important;
        margin-top: 10px;
        /* БЕЗ max-height */
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }

    .schedule-table {
        font-size: 12px;
        min-width: 500px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 8px 4px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .lizing-blur-title {
        font-size: 3.5rem;
    }

    .lizing-blur-desc {
        font-size: 2rem;
    }

    .mxd-footer__fullwidth-text.personal {
        margin: 0;
    }

    .mxd-hero-09 {
        padding-top: 0;
    }
}

/* =================================
   Dark Mode Fixes
   ================================= */

body[data-theme="dark"] .lizing-calc-container {
    background: #161616;
}

body[data-theme="dark"] .lizing-slider-labels,
body[data-theme="dark"] .lizing-result-amount,
body[data-theme="dark"] .lizing-monthly-label,
body[data-theme="dark"] .lizing-document-label,
body[data-theme="dark"] .lizing-calculation-label {
    color: #f1f1f1;
}