/* --- Блок Калькулятора --- */

.calc {
    padding: 80px 0 120px;
    background-color: #FFFFFF;
    font-family: 'Manrope', sans-serif;
}

/* 1. Шапка блока */
.calc__header {
    margin-bottom: 70px;
    max-width: 800px;
}

.calc__title {
    font-size: 64px;
    line-height: 1.1;
    color: #1A202C;
    font-weight: 700;
    margin: 0 0 24px;
}

.calc__title-accent {
    color: var(--color-accent); /* Твой оранжевый #FF7F5C */
}

.calc__description {
    font-size: 18px;
    line-height: 1.6;
    color: #718096;
    max-width: 550px;
}

/* 2. Макет (Layout) на Flexbox */
.calc__layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px; /* Отступ между колонками */
}

.calc__main {
    flex: 1; /* Занимает всё свободное место */
}

.calc__sidebar {
    width: 400px; /* Фиксированная ширина сайдбара как в макете */
    flex-shrink: 0;
    position: sticky;
    top: 120px; /* Прилипает при скролле */
}

/* 3. Временные заглушки для наглядности */
.calc__placeholder-box {
    /*background-color: #FFFFFF;*/
    /*border: 1px solid rgba(226, 232, 240, 0.6);*/
    /*border-radius: 24px;*/
    /*padding: 32px;*/
    /*box-shadow: 0 20px 40px rgba(89, 65, 59, 0.04);*/
}

.calc__placeholder-box--sidebar {
    height: 500px; /* Чтобы видеть сайдбар */
}

/* 4. Адаптивность */
@media (max-width: 1024px) {
    .calc__layout {
        flex-direction: column; /* В одну колонку на планшетах */
    }
    
    .calc__sidebar {
        width: 100%;
        position: static;
    }

    .calc__title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .calc {
        padding: 60px 0;
    }
    
    .calc__title {
        font-size: 36px;
    }
}

.calc__step {
    margin-bottom: 60px;
}

.calc__step:last-child {
    margin-bottom: 0;
}

.calc__step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.calc__step-num {
    width: 32px;
    height: 32px;
    background-color: #FFF5F0;
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.calc__step-title {
    font-family: 'Manrope', sans-serif; /* Или font-family: serif; если так на главной */
    font-size: 24px;
    font-weight: 700;
    color: #1A202C;
    margin: 0;
}

/* --- Ряды и поля --- */
.calc__row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.calc__field {
    flex: 1;
}

.calc__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #A0AEC0;
    margin-bottom: 12px;
}

/* --- Группа выбора (Пол) --- */
.calc__choice-group {
    display: flex;
    gap: 12px;
}

.calc__choice {
    flex: 1;
    cursor: pointer;
}

.calc__radio-input {
    display: none; /* Прячем настоящий инпут */
}

.calc__choice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #2D3748;
}

/* Состояние при выборе (через соседний селектор) */
.calc__radio-input:checked + .calc__choice-btn {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent);
    color: #1A202C;
}

.calc__radio-input:checked + .calc__choice-btn svg {
    color: var(--color-accent);
}

.calc__choice-btn svg {
    color: #A0AEC0;
    transition: color 0.3s ease;
}

/* --- Стилизация Select --- */
.calc__select-wrapper {
    position: relative;
    width: 100%;
}

.calc__select {
    width: 100%;
    appearance: none; /* Убираем стандартную стрелку браузера */
    padding: 16px 20px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    font-weight: 600;
    font-size: 15px;
    color: #2D3748;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

.calc__select-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    pointer-events: none;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #A0AEC0;
}

/* Состояние при нажатии (фокусе) на селект */
.calc__select-wrapper.is-open .calc__select-icon {
    /* Поворачиваем на 180 градусов */
    transform: translateY(-50%) rotate(180deg);
    color: var(--color-accent); /* Меняем цвет на оранжевый при открытии */
}

.calc__select:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Контейнер кастомного селекта */
.calc-select {
    position: relative;
    width: 100%;
    user-select: none;
}

/* Шапка (то, что видно всегда) */
.calc-select__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-select__head:hover {
    border-color: var(--color-accent);
}

.calc-select__current {
    font-weight: 600;
    font-size: 15px;
    color: #2D3748;
}

.calc-select__icon {
    color: #A0AEC0;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Выпадающий список */
.calc-select__list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(45, 55, 72, 0.1); /* Мягкая тень */
    border: 1px solid #F3F4F3;
    padding: 8px;
    margin: 0;
    list-style: none;
    z-index: 100;
    
    /* Скрываем по умолчанию */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Элемент списка */
.calc-select__item {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #4A5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-select__item:hover {
    background-color: #FFF9F7;
    color: var(--color-accent);
}

/* Состояние "Открыто" */
.calc-select.is-open .calc-select__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.calc-select.is-open .calc-select__icon {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.calc-select.is-open .calc-select__head {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent);
}

/* --- Сайдбар (Чек) --- */
.calc-receipt {
    background-color: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(89, 65, 59, 0.04);
}

.calc-receipt__title {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1A202C;
}

.calc-receipt__list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.calc-receipt__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #4A5568;
}

.calc-receipt__item-price {
    font-weight: 600;
    color: #1A202C;
}

.calc-receipt__divider {
    height: 1px;
    background-color: #EDF2F7;
    margin-bottom: 24px;
}

.calc-receipt__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.calc-receipt__total-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #A0AEC0;
    letter-spacing: 0.05em;
}

.calc-receipt__total-price {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-accent);
}

/* --- Аккордеон --- */
.calc-receipt__details {
    margin-bottom: 24px;
    border: 1px solid #EDF2F7;
    border-radius: 12px;
    overflow: hidden;
}

.calc-receipt__details-summary {
    list-style: none;
    padding: 20px 16px;
    background-color: #F8FAFC;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #4A5568;
}

.calc-receipt__details-summary svg {
    transition: transform 0.3s;
}

.calc-receipt__details[open] .calc-receipt__details-summary svg {
    transform: rotate(180deg);
}

.calc-receipt__details-content {
    padding: 12px 16px;
    font-size: 12px;
    color: #718096;
    line-height: 1.6;
    border-top: 1px solid #EDF2F7;
}

/* --- Форма --- */
.calc-receipt__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-receipt__form .calc-receipt__input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    background-color: #FAFAFA;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.calc-receipt__input:focus {
    background-color: #FFFFFF;
    border-color: var(--color-accent);
    outline: none;
}

.calc-receipt__submit {
    margin-top: 8px;
    background: linear-gradient(135deg, #FF8E69 0%, #FF7A45 100%);
    color: #FFFFFF;
    padding: 18px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 20px rgba(255, 122, 69, 0.2);
}

.calc-receipt__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 122, 69, 0.3);
}

/* --- Доверие --- */
.calc-trust {
    margin-top: 24px;
    background-color: #FFF9F7;
    border: 1px solid rgba(255, 127, 92, 0.1);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    gap: 16px;
}

.calc-trust__icon {
    color: var(--color-accent);
    flex-shrink: 0;
}

.calc-trust__title {
    font-size: 13px;
    font-weight: 700;
    color: #1A202C;
    margin: 0 0 4px 0;
}

.calc-trust__text {
    font-size: 11px;
    color: #718096;
    line-height: 1.4;
    margin: 0;
}

/* --- Блок ИМТ --- */
.calc-bmi {
    background-color: #F7FAFC; /* Мягкий фон карточки */
    padding: 24px;
    border-radius: 24px;
    height: 100%;
}

.calc-bmi__inputs {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.calc-bmi__input-group {
    flex: 1;
}

.calc-bmi__input-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #A0AEC0;
    font-weight: 700;
    margin-bottom: 8px;
}

.calc-bmi .calc-bmi__input {
    width: 100%;
    padding: 12px 16px;
    background-color: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #1A202C;
    outline: none;
    transition: border-color 0.3s;
}

.calc-bmi__input:focus {
    border-color: var(--color-accent);
}

/* Результат ИМТ */
.calc-bmi__result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.calc-bmi__result-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #A0AEC0;
    font-weight: 700;
}

.calc-bmi__number {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.calc-bmi__badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.calc-bmi__badge--normal {
    background-color: #E6FFFA;
    color: #38B2AC;
}

/* --- Блок Курение --- */
.calc-smoking__field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.calc-smoking__text {
    font-weight: 600;
    color: #2D3748;
}

.calc-smoking__hint {
    font-size: 11px;
    line-height: 1.5;
    color: #718096;
    font-style: italic;
    margin: 0;
}

/* --- Компонент Switch (Toggle) --- */
.calc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.calc-switch__input {
    opacity: 0;
    width: 0;
    height: 0;
}

.calc-switch__slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #E2E8F0;
    transition: .4s;
    border-radius: 24px;
}

.calc-switch__slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calc-switch__input:checked + .calc-switch__slider {
    background-color: var(--color-accent);
}

.calc-switch__input:checked + .calc-switch__slider:before {
    transform: translateX(20px);
}

/* Помощник для вертикальных отступов между группами внутри поля */
.space-y-32 > * + * {
    margin-top: 32px;
}

/* --- Секция Кнопок-пилюль (Роды, Планы) --- */
.calc-pills {
    display: flex;
    gap: 8px;
}

.calc-pill {
    flex: 1;
    cursor: pointer;
}

.calc-pill__input {
    display: none;
}

.calc-pill__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: #FFFFFF;
    border: 1px solid #F3F4F3; /* Твой off-white цвет */
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #2D3748;
    transition: all 0.3s ease;
    text-align: center;
}

/* Активное состояние: заливка оранжевым */
.calc-pill__input:checked + .calc-pill__btn {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 127, 92, 0.2);
}

/* --- Секция Анамнеза (Checkbox) --- */
.calc-check-field {
    display: block;
    cursor: pointer;
}

.calc-check-field__input {
    display: none;
}

.calc-check-field__box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background-color: #FFFFFF;
    border: 1px solid #F3F4F3;
    border-radius: 24px;
    transition: border-color 0.3s ease;
}

.calc-check-field__indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #E2E8F0;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.calc-check-field__text {
    font-size: 15px;
    font-weight: 600;
    color: #1A202C;
}

/* Состояние Checkbox при выборе */
.calc-check-field__input:checked + .calc-check-field__box {
    border-color: var(--color-accent);
}

.calc-check-field__input:checked + .calc-check-field__box .calc-check-field__indicator {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Иконка галочки через псевдоэлемент */
.calc-check-field__input:checked + .calc-check-field__box .calc-check-field__indicator::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* --- Список типов коррекции --- */
.calc-type-list {
    display: flex;
    flex-wrap: wrap; /* Разрешаем перенос на новые строки */
    gap: 20px;
    width: 100%;
}

.calc-type-card {
    /* Расчет для 4-х в ряд: 
       Берем 25% ширины и вычитаем часть отступа (gap), 
       чтобы всё влезло в одну строку.
    */
    flex: 0 1 calc(25% - 15px); 
    min-width: 0; /* Позволяет flex-элементам сжиматься правильно */
    cursor: pointer;
}

.calc-type-card__input {
    display: none;
}

/* Контейнер карточки */
.calc-type-card__box {
    height: 100%;
    background-color: #FFFFFF;
    border: 1px solid #F3F4F3;
    border-radius: 24px;
    padding: 20px; /* Немного уменьшил паддинг, чтобы текст не теснился */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Рамка при наведении */
.calc-type-card:hover .calc-type-card__box {
    border-color: rgba(255, 127, 92, 0.4);
}

/* Активное состояние (через radio) */
.calc-type-card__input:checked + .calc-type-card__box {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent), 0 20px 40px rgba(255, 127, 92, 0.08);
}

/* Область изображения/иконки */
.calc-type-card__img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #F7FAFC;
    border-radius: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A0AEC0;
}

.calc-type-card__input:checked + .calc-type-card__box .calc-type-card__img-wrap {
    color: var(--color-accent); /* Иконка становится оранжевой при выборе */
}

.calc-type-card__title {
    font-family: 'Manrope', sans-serif;
    font-size: 16px; /* Чуть уменьшил для 4-х в ряд */
    font-weight: 700;
    color: #1A202C;
    margin: 0 0 6px 0;
}

.calc-type-card__desc {
    font-size: 11px;
    line-height: 1.4;
    color: #718096;
    margin: 0;
}

/* --- Адаптивность --- */
@media (max-width: 1200px) {
    .calc-type-card {
        flex: 0 1 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .calc-type-card {
        flex: 0 1 100%;
    }
    .calc-type-list {
        gap: 15px;
    }
}

/* --- Стили чекбоксов (Шаг 03 и Анамнез) --- */
.calc-check-field {
    display: block;
    cursor: pointer;
    width: 100%;
}

.calc-check-field__input {
    display: none; /* Прячем дефолтный чекбокс */
}

.calc-check-field__box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background-color: #FFFFFF;
    border: 1px solid #F3F4F3; /* Твой off-white цвет */
    border-radius: 24px;
    transition: all 0.3s ease;
}

/* Квадратик чекбокса */
.calc-check-field__indicator {
    width: 22px;
    height: 22px;
    border: 2px solid #E2E8F0;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background-color: #FFFFFF;
}

.calc-check-field__text {
    font-size: 15px;
    font-weight: 600;
    color: #1A202C;
}

/* --- Состояние ПРИ ВЫБОРЕ --- */

/* 1. Подсветка всей плашки */
.calc-check-field__input:checked + .calc-check-field__box {
    border-color: rgba(255, 127, 92, 0.2);
    background-color: #FFF9F7;
}

/* 2. Заливка индикатора оранжевым */
.calc-check-field__input:checked + .calc-check-field__box .calc-check-field__indicator {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

/* 3. Белая галочка внутри */
.calc-check-field__input:checked + .calc-check-field__box .calc-check-field__indicator::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* Ховер эффект */
.calc-check-field:hover .calc-check-field__box {
    border-color: rgba(255, 127, 92, 0.3);
}


/* --- Общий контейнер шага --- */
.modeling-wide {
    width: 100%;
    margin-bottom: 80px;
}

/* --- ВЕРХНИЙ БОКС С ФОТО --- */
.modeling-visual-box {
    background-color: #EDF2F7; /* Твой фирменный фон панелей */
    border-radius: 32px;
    padding: 60px; /* Увеличили отступы, чтобы фото были в центре */
    display: flex;
    justify-content: center;
    gap: 80px; /* Большой разнос между ракурсами */
    margin-bottom: 24px;
}

.modeling-view {
    flex: 0 1 400px; /* Фотографии теперь могут расти до 400px в ширину */
    text-align: center;
}

.modeling-view__label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: #A0AEC0;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.modeling-img-stack {
    position: relative;
    width: 100%;
}

.modeling-img-stack__base {
    width: 100%;
    height: auto;
    display: block;
}

/* Слой подсветки (остается абсолютным) */
.calc-zone-highlight {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.calc-zone-highlight.is-active {
    opacity: 1;
}

/* --- НИЖНИЙ РЯД ВКЛАДОК --- */
.modeling-tabs-row {
    display: flex;
    gap: 15px; /* Расстояние между кнопками */
}

.modeling-tab {
    flex: 1; /* Все кнопки одинаковой ширины */
    cursor: pointer;
}

.modeling-tab__input {
    display: none;
}

.modeling-tab__content {
    background-color: #F3F4F3; /* Off-white */
    border: 1px solid #F3F4F3;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.modeling-tab__name {
    font-size: 15px;
    font-weight: 700;
    color: #4A5568;
}

.modeling-tab__check {
    width: 20px;
    height: 20px;
    border: 2px solid #CBD5E0;
    border-radius: 6px;
    background-color: #FFFFFF;
    position: relative;
}

/* --- СОСТОЯНИЯ ПРИ ВЫБОРЕ --- */
.modeling-tab__input:checked + .modeling-tab__content {
    background-color: #FFFFFF;
    border-color: #FF7A45; /* Оранжевый акцент */
    box-shadow: 0 10px 25px rgba(255, 122, 69, 0.1);
}

.modeling-tab__input:checked + .modeling-tab__content .modeling-tab__check {
    background-color: #FF7A45;
    border-color: #FF7A45;
}

/* Галочка */
.modeling-tab__input:checked + .modeling-tab__content .modeling-tab__check::after {
    content: '';
    position: absolute;
    left: 6px; top: 2px;
    width: 4px; height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Адаптив: на мобилках в 2 ряда или в 1 */
@media (max-width: 768px) {
    .modeling-visual-box {
        flex-direction: column;
        padding: 30px;
        gap: 40px;
    }
    .modeling-tabs-row {
        flex-wrap: wrap;
    }
    .modeling-tab {
        flex: 0 0 calc(50% - 8px);
    }
    .modeling-img-stack__base {
        width: 200px;
    }
    .modeling-img-stack {
        display: flex;
        justify-content: center;
    }
    .calc__row {
        flex-direction: column;
    }
}

/* --- Блок сегментированного выбора --- */
.calc-segments {
    display: flex;
    background-color: #F3F4F3; /* Твой off-white */
    border-radius: 20px;
    padding: 6px;
    width: 100%;
}

.calc-segments__item {
    flex: 1;
    cursor: pointer;
    display: block;
}

.calc-segments__input {
    display: none; /* Прячем стандартную радио-кнопку */
}

/* Сама кнопка-переключатель */
.calc-segments__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #718096; /* Цвет неактивного текста */
    transition: all 0.3s ease;
    text-align: center;
}

/* --- СОСТОЯНИЕ: ВЫБРАНО --- */
/* Когда радио-кнопка чекнута, красим следующий за ней span */
.calc-segments__input:checked + .calc-segments__btn {
    background-color: #FFFFFF;
    color: #1A202C; /* Темный текст для активного */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Ховер для красоты */
.calc-segments__item:hover .calc-segments__btn {
    color: #1A202C;
}

/* Адаптив для маленьких экранов */
@media (max-width: 600px) {
    .calc-segments {
        flex-direction: column; /* На мобилках в столбик, если не влезает */
        gap: 5px;
    }
}

/* --- Блок загрузки фото --- */
.calc-upload {
    margin-top: 40px;
    width: 100%;
}

.calc-upload__container {
    background-color: #F8F9FA; /* Очень светлый серый фон */
    border-radius: 32px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Круглая иконка */
.calc-upload__icon {
    width: 64px;
    height: 64px;
    background-color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.calc-upload__title {
    font-size: 24px;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 16px;
}

.calc-upload__desc {
    max-width: 460px;
    font-size: 14px;
    line-height: 1.6;
    color: #718096;
    margin-bottom: 32px;
}

/* Прячем дефолтный инпут */
.calc-upload__input {
    display: none;
}

/* Кнопка с пунктиром */
.calc-upload__button {
    display: inline-block;
    padding: 18px 60px;
    background-color: #FFFFFF;
    border: 2px dashed #E2E8F0; /* Пунктирная рамка */
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    color: #B84D2E; /* Темно-оранжевый/коричневый как на скрине */
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-upload__button:hover {
    border-color: #FF7A45;
    color: #FF7A45;
    background-color: #FFF9F7;
}

/* Стили для превью (если будешь выводить список имен файлов) */
.calc-upload__previews {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #4A5568;
}

#calc-summary.hidden,
.calc-photos {
    display: none !important;
}


















