/* Калькулятор банкротства — стили в дизайне сайта */

.bankruptcy-calculator {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(102, 102, 102, 0.12);
    padding: 28px 24px 32px;
    font-family: var(--default-font-family);
}

/* Заголовок и эксперт в одной строке */
.calculator-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px 20px;
    margin-bottom: 12px;
    padding-top: 24px;
}

.calculator-title {
    font-family: "Geometria", sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #231f20;
}

.calculator-title span {
    font-weight: 400;
}

/* Эксперт в строке */
.expert-badge-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 6px 16px 6px 12px;
    border-radius: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e0e7ef;
    flex-shrink: 0;
    max-width: 100%;
}

.expert-badge {
    display: inline-flex;
    align-items: center;
    background: var(--blue-color, #42ae45);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.expert-badge svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.expert-badge-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--blue-color, #42ae45);
}

.expert-badge-avatar img {
    max-width: 100%;
    height: 100%;
    background: #fff;
}

.expert-badge-info {
    line-height: 1.3;
}

.expert-badge-name {
    color: #231f20;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.expert-badge-position {
    font-size: 0.75rem;
    color: #676767;
    white-space: nowrap;
}

/* Общий класс для текстового контента */
.calculator-text {
    background: transparent;
    padding: 0 0 16px 0;
    margin-bottom: 24px;
    line-height: 1.7;
    color: #4d4d4d;
    font-size: 1rem;
    border-bottom: none;
}

.calculator-text p {
    margin: 0 0 12px 0;
}

.calculator-text p:last-child {
    margin-bottom: 0;
}

/* Скрываем блок calculator-subhead */
.calculator-subhead {
    display: none;
}

.badge-year {
    background: rgba(66, 174, 69, 0.1);
    color: var(--blue-color, #42ae45);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 0.8rem;
}

/* Двухколоночный контейнер */
.calculator-two-columns {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.calculator-left {
    flex: 1.2;
    min-width: 0;
}

.calculator-right {
    flex: 1;
    min-width: 0;
    position: sticky;
    top: 110px;
    max-height: none;
    overflow-y: visible;
}

.calculator-right::-webkit-scrollbar {
    display: none;
}

.calc-section {
    margin-bottom: 24px;
}

/* Тултипы */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #b6b6b6;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    cursor: help;
    margin-left: 4px;
    transition: 0.15s;
    position: relative;
}

.tooltip-icon:hover {
    background: var(--blue-color, #42ae45);
}

.tooltip-icon[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #231f20;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.5;
    width: 280px;
    max-width: 80vw;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    z-index: 10000;
    text-align: left;
    white-space: normal;
    margin-bottom: 10px;
}

.tooltip-icon[data-tooltip]:after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #231f20 transparent transparent transparent;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    z-index: 10000;
    margin-bottom: 4px;
}

.tooltip-icon[data-tooltip]:hover:before,
.tooltip-icon[data-tooltip]:hover:after {
    opacity: 1;
}

/* Убираем overflow: hidden у всех родительских элементов */
.option-group,
.option-field,
.field-label,
.mandatory-breakdown-new,
.result-panel,
.calculator-right,
.calculator-left {
    overflow: visible !important;
}

/* Группы опций */
.option-group {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #d9d9d9;
    margin-bottom: 24px;
    overflow: visible;
}

/* Заголовки блоков */
.option-title {
    font-family: "Geometria", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: var(--blue-color, #42ae45);
    border-radius: 8px 8px 0 0;
}

/* Контент внутри блока */
.option-field {
    margin-bottom: 18px;
    padding: 0 20px;
}

.option-field:first-of-type {
    margin-top: 22px;
}

.option-field:last-child {
    margin-bottom: 22px;
}

.field-label {
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #4d4d4d;
}

.option-field:first-of-type .field-label {
    margin-top: 0;
}

.field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.field-hint {
    color: #676767;
    font-size: 0.9rem;
}

.field-note {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #676767;
}

/* Радио и чекбоксы */
.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    align-items: center;
}

.radio-row-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    user-select: none;
    color: #4d4d4d;
    font-size: 0.9rem;
}

.radio-label input[type="radio"] {
    accent-color: var(--blue-color, #42ae45);
    width: 18px;
    height: 18px;
    margin: 2px 0 0 0;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    color: #4d4d4d;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--blue-color, #42ae45);
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

/* Поля ввода */
.number-input {
    padding: 10px 16px;
    border-radius: 4px;
    border: 2px solid #b6b6b6;
    background: white;
    font-size: 0.95rem;
    width: 140px;
    outline: none;
    font-family: var(--default-font-family);
    transition: border-color 0.3s;
}

.number-input:focus {
    border-color: var(--blue-color, #42ae45);
}

.select-custom {
    padding: 10px 16px;
    border-radius: 4px;
    border: 2px solid #b6b6b6;
    background: white;
    font-size: 0.95rem;
    color: #4d4d4d;
    width: 100%;
    max-width: 300px;
    outline: none;
    font-family: var(--default-font-family);
    transition: border-color 0.3s;
}

.select-custom:focus {
    border-color: var(--blue-color, #42ae45);
}

/* МФЦ алерт */
.mfc-alert {
    background: var(--blue-color, #42ae45);
    color: white;
    border-radius: 8px;
    padding: 24px 22px;
    margin-bottom: 20px;
}

.mfc-alert-title {
    font-family: "Geometria", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mfc-alert-text {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.mfc-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.mfc-option {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 14px 16px;
    flex: 1;
    min-width: 140px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mfc-option-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 4px;
}

.mfc-option-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.mfc-cta-button {
    display: inline-block;
    background: #fff;
    color: var(--blue-color, #42ae45) !important;
    padding: 14px 28px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Блок "Нет долгов" */
.no-debt-block {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 28px 24px;
    margin-bottom: 20px;
    border: 1px solid #d9d9d9;
    text-align: center;
}

.no-debt-title {
    font-family: "Geometria", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #231f20;
    margin-bottom: 12px;
}

.no-debt-text {
    font-size: 0.95rem;
    color: #676767;
    line-height: 1.5;
}

/* Результат */
.result-panel {
    background: #231f20;
    color: white;
    border-radius: 8px;
    padding: 24px 22px;
    margin-bottom: 20px;
}

.total-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #b6b6b6;
    margin-bottom: 4px;
}

.total-amount {
    font-family: "Geometria", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
}

/* Обязательные платежи */
.mandatory-breakdown-new {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #4d4d4d;
}

.breakdown-title {
    font-family: "Geometria", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #e2e8f0;
}

.impact-block {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #4d4d4d;
}

.breakdown-row-impact {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    padding-left: 0;
    color: #b6b6b6;
    font-size: 0.85rem;
    border-left: none;
}

.impact-positive {
    color: var(--blue-color, #42ae45);
}

.impact-negative {
    color: #ffa323;
}

.impact-neutral {
    color: #b6b6b6;
}

.total-breakdown {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #ddd;
    border-top: 1px solid #4d4d4d;
    padding-top: 14px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* Блок "Ваши перспективы" */
.dischargeable-block {
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    border-left: none;
}

.dischargeable-title {
    font-family: "Geometria", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #e2e8f0;
}

.dischargeable-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.dischargeable-item {
    font-size: 0.8rem;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dischargeable-item::before {
    content: "✓";
    color: var(--blue-color, #42ae45);
    font-weight: bold;
}

.dischargeable-item--no {
    color: #b6b6b6;
}

.dischargeable-item--no::before {
    content: "✕";
    color: #ffa323;
    font-weight: bold;
}

.dischargeable-section-title {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 4px;
}

.dischargeable-benefits {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dischargeable-benefits-title {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 6px;
}

.dischargeable-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dischargeable-benefit-item {
    font-size: 0.8rem;
    color: var(--blue-color, #42ae45);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dischargeable-benefit-item::before {
    content: "✓";
    color: var(--blue-color, #42ae45);
    font-weight: bold;
}

/* Кнопка получения индивидуального расчёта */
.individual-calculation-button {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 16px 20px;
    background: transparent;
    color: #fff;
    text-align: center;
    border: 2px solid var(--blue-color, #42ae45);
    border-radius: 8px;
    font-family: "Geometria", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.individual-calculation-button:hover {
    background: var(--blue-color, #42ae45);
    color: #fff;
}

/* Рассрочка */
.installment-block {
    background: var(--blue-color, #42ae45);
    color: white;
    border-radius: 8px;
    padding: 24px 22px;
    margin-bottom: 20px;
}

.installment-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
}

.installment-subtitle {
    font-family: "Geometria", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.installment-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.installment-price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.installment-old-price {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.installment-old-price span {
    text-decoration: line-through;
    color: #ffa323;
    font-weight: 600;
}

.installment-button {
    background: #fff !important;
    color: var(--blue-color, #42ae45) !important;
    border: none !important;
    box-shadow: 0 0 16px rgba(27, 27, 27, 0.2) !important;
    padding: 16px 28px !important;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.installment-button:hover {
    background: #f0f0f0 !important;
    color: var(--blue-color, #42ae45) !important;
}

.small-note {
    font-size: 0.8rem;
    color: #676767;
    margin-top: 12px;
    text-align: right;
}

.auto-badge {
    background: rgba(66, 174, 69, 0.15);
    color: #2d5a2d;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Стили для страницы калькулятора */
.calculator-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.calculator-disclaimer {
    margin-top: 24px;
    padding: 16px 0;
    font-size: 0.85rem;
    color: #676767;
    text-align: center;
    border-top: 1px solid #d9d9d9;
}

.calculator-disclaimer p {
    margin: 4px 0;
}

.calculator-page .bankruptcy-calculator {
    padding: 0;
    box-shadow: none;
}

/* ======================================== */
/* БЛОК ВОПРОСОВ И ОТВЕТОВ (FAQ)            */
/* ======================================== */
.faq {
    width: 100%;
    margin: 48px 0 40px;
}

.faq__item {
    border-bottom: 1px solid #e3e3e3;
    padding: 16px 0;
}

.faq__question {
    text-align: left;
    background: none;
    border: none;
    user-select: none;
    cursor: pointer;
    padding: 0 32px 0 0;
    width: 100%;
    font-weight: 500;
    font-size: calc(16px + 8 * ((100vw - 320px) / 1720));
    line-height: 140%;
    font-feature-settings: "pnum" on, "lnum" on;
    color: #231f20;
    position: relative;
    transition: color 0.25s ease;
    font-family: var(--default-font-family);
    list-style: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 24px;
    line-height: 1;
    transition: transform 0.25s ease, color 0.25s ease;
    color: var(--blue-color, #42ae45);
}

.faq__item[open] .faq__question {
    color: var(--blue-color, #42ae45);
}

.faq__item[open] .faq__question::after {
    content: "–";
}

.faq__answer {
    margin-top: 0;
    font-weight: normal;
    font-size: 16px;
    line-height: 140%;
    font-feature-settings: "pnum" on, "lnum" on;
    color: #676767;
    padding-top: 12px;
}

.faq__answer p {
    margin: 0 0 12px 0;
}

.faq__answer p:last-child {
    margin-bottom: 0;
}

@media (min-width: 1750px) {
    .faq__question {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .faq {
        margin: 32px 0 24px;
    }
    
    .faq__item {
        padding: 12px 0;
    }
    
    .faq__answer {
        font-size: 14px;
    }
}

/* Адаптив */
@media (max-width: 800px) {
    .calculator-two-columns {
        flex-direction: column;
        gap: 20px;
    }
    
    .calculator-left,
    .calculator-right {
        flex: none;
        width: 100%;
    }
    
    .calculator-right {
        position: static;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .calculator-page {
        overflow-x: hidden;
    }
    
    .bankruptcy-calculator {
        overflow-x: hidden;
    }
    
    .calculator-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 16px;
    }
    
    .calculator-title {
        font-size: 1.6rem;
    }
    
    .expert-badge-inline {
        width: auto;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding: 8px 12px 8px 8px;
        gap: 8px;
    }
    
    .expert-badge {
        width: auto;
        padding: 4px 12px;
    }
    
    .expert-badge-avatar {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
    }
    
    .expert-badge-info {
        flex: 1;
    }
    
    .expert-badge-name {
        white-space: normal;
        font-size: 0.85rem;
    }
    
    .expert-badge-position {
        white-space: normal;
        font-size: 0.7rem;
    }
    
    .number-input,
    .select-custom {
        max-width: 100%;
    }
    
    .radio-label {
        word-break: break-word;
    }
    
    .tooltip-icon[data-tooltip]:before {
        left: auto;
        right: 0;
        transform: translateX(0);
        max-width: 220px;
    }

    .tooltip-icon[data-tooltip]:after {
        left: auto;
        right: 10px;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .calculator-page {
        padding: 0 10px;
    }
    
    .calculator-header-row {
        padding-top: 12px;
    }
    
    .calculator-title {
        font-size: 1.5rem;
    }
    
    .expert-badge-inline {
        padding: 8px 10px 8px 6px;
        gap: 6px;
    }
    
    .expert-badge {
        font-size: 0.6rem;
        padding: 4px 10px;
    }
    
    .expert-badge-avatar {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }
    
    .expert-badge-name {
        font-size: 0.8rem;
    }
    
    .expert-badge-position {
        font-size: 0.65rem;
    }
    
    .total-amount {
        font-size: 2rem;
    }
    
    .mfc-options {
        flex-direction: column;
    }
    
    .installment-price {
        font-size: 1.6rem;
    }
    
    .radio-row {
        gap: 12px;
    }
    
    .option-field {
        padding: 0 16px;
    }
    
    .option-title {
        padding: 12px 16px;
        font-size: 1.1rem;
    }
    
    .tooltip-icon[data-tooltip]:before {
        max-width: 200px;
    }
}