/* Отключение старого бокового меню */
.sidebar, .sidebar *, .side-menu, .side-menu *, .sidebar-overlay, .sidebar-panel {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.controls-bar {
    padding: 12px 20px;
    background: #ffffff !important;
    border-bottom: 1px solid #e0e7ed;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important; /* группируем слева */
    align-items: center !important;
    position: relative;
    z-index: 100;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 50px !important;
    width: 100% !important;
}

body.dark .controls-bar {
    background: #2a2a2a !important;
    border-bottom-color: #444;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 0; /* вплотную к бургеру */
    text-decoration: none;
    color: #2c3e50; /* тот же цвет, что и текст кнопки "Тест" */
}
.brand-link:visited {
    color: #2c3e50; /* фикс цвета как на кнопке */
}
.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: currentColor; /* берём цвет ссылки (как у кнопки) */
}
body.dark .brand-link {
    color: #e0e0e0;
}
body.dark .brand-link:visited {
    color: #e0e0e0;
}

@media (max-width: 640px) {
    .controls-bar {
        padding: 10px 12px;
    }
    .brand-link {
        gap: 6px;
    }
    .brand-title {
        display: none; /* скрываем текст на мобильных */
    }
}

.controls-right {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto; /* уводим правый блок вправо */
}

.quick-question {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 14px;
    flex: 1 1 260px;
    max-width: 420px;
}

.quick-question__input {
    height: 36px;
    min-width: 160px;
    padding: 0 10px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    background: #fff;
    flex: 1 1 auto;
}

.quick-question__input:focus {
    outline: 2px solid #0d6efd30;
    border-color: #0d6efd;
}

.quick-question__btn {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #0d6efd;
    background: #0d6efd;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quick-question__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .quick-question {
        flex: 1 1 200px;
        margin-left: 8px;
        max-width: none;
    }
    .quick-question__input {
        min-width: 0;
        width: 100%;
    }
    .quick-question__btn {
        padding: 0 10px;
    }
}

@media (max-width: 640px) {
    .controls-bar {
        padding: 10px 12px;
        flex-wrap: nowrap; /* держим всё в одну линию */
        gap: 6px;
    }
    .brand-link {
        gap: 6px;
        flex-shrink: 0;
    }
    .brand-title {
        display: none; /* скрываем текст на мобильных */
    }
    .quick-question {
        flex: 1 1 auto; /* растягивается между логотипом и темой */
        margin-left: 6px;
        gap: 6px;
        order: 2;
        width: auto;
    }
    .quick-question__btn {
        display: none !important; /* на мобильных скрываем кнопку, клавиатура даёт ввод */
    }
    .quick-question__input {
        height: 32px;
        font-size: 13px;
        min-width: 0;
        width: 100%;
    }
    .controls-right {
        order: 3;
        margin-left: 6px;
        gap: 10px;
        flex-shrink: 0;
    }
    .menu-container {
        flex-shrink: 0;
    }
}


/* Выпадающее меню */
.menu-container {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e0e7ed;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    pointer-events: none;
}

.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

body.dark .dropdown-menu {
    background: #2a2a2a;
    border-color: #444;
}

.dropdown-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 16px;
}

.dropdown-link:hover {
    background: #f5f5f5;
}

body.dark .dropdown-link {
    color: #e0e0e0;
}

body.dark .dropdown-link:hover {
    background: #333;
}

.quotes-bar {
    padding: 12px 20px;
    background: #ffffff !important;
    border-bottom: 1px solid #e0e7ed;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* фиксированная высота, лишнее уходит вправо */
    position: relative;
    z-index: 1;
}

body.dark .quotes-bar {
    background: #2a2a2a !important;
    border-bottom-color: #444;
}

.quotes-widget {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px;
    align-items: center;
    flex-wrap: nowrap; /* не переносим элементы */
    justify-content: flex-start;
    max-width: 100%;
    overflow: hidden; /* скрываем лишнее справа на узких экранах */
    background: transparent !important;
}

.quote-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
    flex: 0 0 auto; /* запрещаем сжатие/перенос */
    background: transparent !important;
}

.quote-label {
    font-size: 12px;
    color: #7f8c8d;
    margin: 0;
    padding: 0;
}

.quote-value {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    padding: 0;
}





body.dark 











body.dark 


body.dark 




















body.dark 



body.dark 


body.dark 








.menu-btn,
.theme-btn,
.money-btn,
.quick-question__btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #0d6efd;
    border-radius: 8px;
    background: #ffffff;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s, color 0.2s, border 0.2s;
}

.menu-btn {
    flex-direction: column;
    gap: 5px;
    background-clip: padding-box;
    border-radius: 8px !important;
    overflow: hidden;
}

.theme-btn {
    font-size: 18px;
}

.quick-question__btn {
    font-size: 16px;
}

.menu-btn:hover,
.theme-btn:hover,
.money-btn:hover,
.quick-question__btn:hover {
    background: #0d6efd;
    color: #fff;
}

.menu-btn:hover .menu-line {
    background-color: #fff !important;
}

body.dark .menu-btn,
body.dark .theme-btn,
body.dark .money-btn,
body.dark .quick-question__btn {
    background: #2a2a2a;
    border-color: #8cb8ff;
    color: #8cb8ff;
}

body.dark .menu-btn:hover,
body.dark .theme-btn:hover,
body.dark .money-btn:hover,
body.dark .quick-question__btn:hover {
    background: #8cb8ff;
    color: #1c1c1c;
}

body.dark .menu-btn:hover .menu-line {
    background-color: #1c1c1c !important;
}

.theme-btn:hover {
    opacity: 0.7;
}

.auth-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    cursor: pointer;
}

.auth-icon.active svg circle,
.auth-icon.active svg path {
    stroke: #00FF00;
    stroke-width: 4;
}






body.dark 


.theme-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    color: #2c3e50;
    transition: opacity 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark .theme-btn {
    color: #e0e0e0;
}

.theme-btn:hover {
    opacity: 0.7;
}

.auth-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    cursor: pointer;
}

.auth-icon.active svg circle,
.auth-icon.active svg path {
    stroke: #00FF00;
    stroke-width: 4;
}










.menu-line {
    width: 24px;
    height: 3px;
    background-color: currentColor !important;
    border-radius: 2px;
    transition: all 0.3s ease;
}

body.dark .menu-line {
    background-color: currentColor !important;
}



body.dark 



body.dark 





body.dark 









body.dark 




.theme-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    color: #2c3e50;
    transition: opacity 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark .theme-btn {
    color: #e0e0e0;
}

.theme-btn:hover {
    opacity: 0.7;
}

.auth-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    cursor: pointer;
}

.auth-icon.active svg circle,
.auth-icon.active svg path {
    stroke: #00FF00;
    stroke-width: 4;
}






body.dark 


.theme-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    color: #2c3e50;
    transition: opacity 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark .theme-btn {
    color: #e0e0e0;
}

.theme-btn:hover {
    opacity: 0.7;
}

.auth-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    cursor: pointer;
}

.auth-icon.active svg circle,
.auth-icon.active svg path {
    stroke: #00FF00;
    stroke-width: 4;
}










.menu-line {
    width: 24px;
    height: 3px;
    background-color: #2c3e50 !important;
    border-radius: 2px;
    transition: all 0.3s ease;
}

body.dark .menu-line {
    background-color: #e0e0e0 !important;
}



body.dark 



body.dark 





body.dark 









* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: Arial, sans-serif;
    color: #2c3e50;
    background: #ffffff;
}

body.dark {
    background: #1a1a1a;
    color: #e0e0e0;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Строка 1: Котировки */



body.dark 



body.dark 


body.dark 





/* Строка 2: Управление */


body.dark 






body.dark 



body.dark 





body.dark 







/* Боковое меню */








body.dark 

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    width: 40px;
    height: 40px;
}

body.dark .close-btn {
    color: #e0e0e0;
}



.nav-link {
    padding: 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

body.dark .nav-link {
    color: #e0e0e0;
    border-bottom-color: #444;
}

.nav-link:hover {
    background: #f5f5f5;
}

body.dark .nav-link:hover {
    background: #333;
}

/* Заголовок */
.main-header {
    padding: 30px 20px;
    text-align: center;
}

.header-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 10px;
}

.header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.header-title {
    font-size: 32px;
    font-weight: bold;
    color: #0056A6;
}

body.dark .header-title {
    color: #4a9eff;
}

.header-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin-top: 5px;
}

body.dark .header-subtitle {
    color: #999;
}

/* Контент */

.buttons-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 30px;
    text-decoration: none;
    border: 4px solid;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    color: #2c3e50;
    transition: transform 0.2s, box-shadow 0.2s;
}

body.dark .action-btn {
    background: #2a2a2a;
    color: #e0e0e0;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.action-btn.disabled,
span.action-btn.disabled,
div.action-btn.disabled {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.5 !important;
    filter: blur(1px) !important;
    border-color: #bdc3c7 !important;
    text-decoration: none !important;
}

.action-btn.disabled:hover,
span.action-btn.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.action-btn.disabled .btn-title,
.action-btn.disabled .btn-desc,
span.action-btn.disabled .btn-title,
span.action-btn.disabled .btn-desc {
    color: #999 !important;
    filter: blur(2px) !important;
    opacity: 0.4 !important;
}

body.dark .action-btn.disabled,
body.dark span.action-btn.disabled,
body.dark div.action-btn.disabled {
    background: #3a3a3a !important;
    border-color: #555 !important;
}

body.dark .action-btn.disabled .btn-title,
body.dark .action-btn.disabled .btn-desc,
body.dark span.action-btn.disabled .btn-title,
body.dark span.action-btn.disabled .btn-desc,
body.dark div.action-btn.disabled .btn-title,
body.dark div.action-btn.disabled .btn-desc {
    color: #666 !important;
}

.btn-test, .btn-calc, .btn-admin {
    border-color: #27ae60;
}

.btn-question, .btn-projects {
    border-color: #0056A6;
}

.btn-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #0056A6;
}

body.dark .btn-title {
    color: #4a9eff;
}

.btn-desc {
    font-size: 14px;
    color: #7f8c8d;
    text-align: center;
}

/* Чередование обводок на главной */
.buttons-grid .action-btn:nth-child(odd) {
    border-color: #27ae60;
}
.buttons-grid .action-btn:nth-child(even) {
    border-color: #0d6efd;
}

body.dark .btn-desc {
    color: #999;
}

.main-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Кнопка "НА ГЛАВНУЮ" */
.home-button {
    display: inline-block;
    padding: 12px 24px;
    margin-bottom: 20px;
    background: #0056A6;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s, transform 0.2s;
    border: 2px solid #0056A6;
}

.home-button:hover {
    transform: translateY(-2px);
}

body.dark .home-button {
    color: #ffffff;
}

body.dark .home-button:hover {
    background: #357abd;
    border-color: #357abd;
}

/* Чипы статуса */
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: #f5f7fa;
    color: #2c3e50;
    border: 1px solid #e0e7ed;
}
.status-chip.info {
    background: #eef5ff;
    color: #0d6efd;
    border-color: #cfe0ff;
}
.status-chip.success {
    background: #e8f8ef;
    color: #1b9448;
    border-color: #c3ebd6;
}
.status-chip.danger {
    background: #ffe9e7;
    color: #c0392b;
    border-color: #ffd0c8;
}

/* Вопросник */
.questionnaire-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.questionnaire-head .test-description {
    margin-top: 8px;
}
.questionnaire-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.questionnaire-option {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border: 2px solid #0d6efd;
    border-radius: 10px;
    background: #ffffff;
    color: #0d6efd;
    font-weight: 700;
    text-align: left;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.questionnaire-option:hover {
    background: #0d6efd;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.18);
}
.questionnaire-option.selected {
    background: #0d6efd;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}
.questionnaire-option.is-loading {
    opacity: 0.7;
    cursor: wait;
}
.questionnaire-multi-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}
.risk-profile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border: 1px solid #e0e7ed;
    border-radius: 10px;
    background: #f5f7fa;
}
.risk-title {
    font-weight: 800;
    color: #0d6efd;
}
.risk-desc {
    color: #2c3e50;
    line-height: 1.4;
}
.risk-score {
    color: #5f6b7a;
    font-size: 14px;
}
.questionnaire-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.questionnaire-state {
    font-size: 14px;
    color: #5f6b7a;
    min-height: 20px;
}
.questionnaire-complete {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.questionnaire-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.questionnaire-summary__item {
    padding: 10px 12px;
    border: 1px solid #e0e7ed;
    border-radius: 10px;
    background: #f9fafb;
}
.summary-question {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}
.summary-answer {
    color: #0d6efd;
    font-weight: 700;
}
.questionnaire-error {
    margin-top: 12px;
}

body.dark .status-chip {
    background: #1f1f1f;
    color: #e0e0e0;
    border-color: #2c2c2c;
}
body.dark .status-chip.info {
    background: #102544;
    color: #8cb8ff;
    border-color: #184070;
}
body.dark .status-chip.success {
    background: #0f2c1c;
    color: #5dd28b;
    border-color: #195f3a;
}
body.dark .status-chip.danger {
    background: #361312;
    color: #ffb3a8;
    border-color: #5a1d1a;
}

/* Страница вопроса */
.main-content.question-page {
    width: 100%;
    max-width: 1100px;
    padding: 16px 16px 40px;
    gap: 18px;
}

.question-hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(180deg, #f7f9fc 0%, #f3f7ff 100%);
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid #e6edf5;
}
.question-hero .eyebrow {
    margin: 0;
    color: #0d6efd;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.question-hero h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #1f2a3d;
    line-height: 1.25;
}
.question-hero .section-description {
    margin: 4px 0 0;
    color: #5f6b7a;
    line-height: 1.5;
}

.question-layout {
    width: 100%;
    display: grid;
    gap: 16px;
}

.question-card,
.answer-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e6edf5;
    border-radius: 20px;
    padding: 20px 18px 22px;
    box-shadow: 0 12px 28px rgba(0, 37, 86, 0.06);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.card-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.helper-text {
    margin: 0 0 12px;
    color: #5f6b7a;
    line-height: 1.5;
}

.question-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-label {
    font-weight: 700;
    color: #1f2a3d;
}

.question-form textarea {
    width: 100%;
    border: 1px solid #d7e2ee;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    min-height: 180px;
    background: #fbfcfe;
    color: #1f2a3d;
    resize: vertical;
}
.question-form textarea:focus {
    outline: 2px solid #0d6efd30;
    border-color: #0d6efd;
    background: #fff;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.submit-btn {
    min-width: 220px;
    height: 52px;
    background: #0d6efd;
    color: #ffffff;
    border: 1px solid #0d6efd;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    padding: 0 18px;
}
.submit-btn:hover {
    background: #0b5ed7;
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.25);
}
.submit-btn:active {
    transform: translateY(1px);
}
.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-loader {
    font-size: 14px;
}

.note {
    color: #5f6b7a;
    font-size: 14px;
}

.auth-warning {
    background: #fff5e6;
    border: 1px solid #ffd7a3;
    color: #8c5400;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}
.auth-warning a {
    color: #0d6efd;
    font-weight: 700;
}

.answer-text {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #1f2a3d;
}

.error-container {
    background: #fff0ee;
    border: 1px solid #ffd0c8;
    color: #c0392b;
    padding: 12px 14px;
    border-radius: 12px;
}

.empty-state {
    color: #5f6b7a;
}

@media (max-width: 768px) {
    .main-content.question-page {
        padding: 12px 12px 28px;
    }
    .card-title {
        font-size: 20px;
    }
    .question-hero h2 {
        font-size: 22px;
    }
    .submit-btn {
        width: 100%;
        min-width: 0;
    }
    .form-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .card-header {
        align-items: flex-start;
    }
}
body.dark .questionnaire-option {
    background: #1c1c1c;
    color: #8cb8ff;
    border-color: #8cb8ff;
}
body.dark .questionnaire-option:hover,
body.dark .questionnaire-option.selected {
    background: #8cb8ff;
    color: #1c1c1c;
}
body.dark .questionnaire-summary__item {
    background: #1f1f1f;
    border-color: #2c2c2c;
}
body.dark .summary-question {
    color: #e0e0e0;
}
body.dark .summary-answer {
    color: #8cb8ff;
}

/* Блок калькулятора */
.calc-form {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    width: 100%;
    margin-top: 8px;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-field input {
    height: 40px;
    width: 100%;
    padding: 0 10px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    background: #fff;
}

.ci-total-value {
    font-weight: 800;
    color: #0d6efd;
    font-size: 18px;
}

/* Единый стиль кнопок (CTA) */
.primary-btn,
.ghost-btn,
.question-send,
.home-button,
.quiz-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    height: 44px;
    min-width: 160px;
    padding: 0 18px;
    border: 2px solid #0d6efd;
    border-radius: 8px;
    background: #ffffff;
    color: #0d6efd !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.primary-btn:hover,
.ghost-btn:hover,
.question-send:hover,
.home-button:hover,
.quiz-actions button:hover {
    background: #0d6efd;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.quiz-section {
    display: block !important;
}

/* ===== Lessons video ===== */
.video-wrapper {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    font-weight: 700;
    pointer-events: none;
}

body.dark .primary-btn,
body.dark .ghost-btn,
body.dark .question-send,
body.dark .home-button,
body.dark .quiz-actions button {
    background: #1c1c1c;
    color: #8cb8ff !important;
    border-color: #8cb8ff;
}

body.dark .primary-btn:hover,
body.dark .ghost-btn:hover,
body.dark .question-send:hover,
body.dark .home-button:hover,
body.dark .quiz-actions button:hover {
    background: #8cb8ff;
    color: #1c1c1c !important;
}





body.dark 









body.dark 



body.dark 

/* Футер */
.main-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e0e7ed;
}

body.dark .main-footer {
    border-top-color: #444;
}

.main-footer p {
    color: #7f8c8d;
    font-size: 14px;
}

@media (max-width: 768px) {
    
    
    
    
    
}

@media (max-width: 480px) {
    
    
    
}


@media (max-width: 768px) {
    .action-btn {
        width: 75% !important;
        max-width: 75% !important;
    }
}

@media (max-width: 480px) {
    .action-btn {
        width: 80% !important;
        max-width: 80% !important;
    }
}
