/* --- Стили для Плитки (Orange Theme) --- */
:root {
    --accent-orange: #F97316;
    --accent-orange-dark: #C2410C;
    --gradient-orange-card: linear-gradient(135deg, #FB923C 0%, #EA580C 100%);
}

.calc-header { margin-bottom: 32px; }
.subtitle { color: var(--text-secondary); margin-top: 8px; }

/* Сетка */
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1.2fr 0.8fr; } }

/* Inputs */
.calc-inputs { gap: 24px; }
.input-group { margin-bottom: 24px; }

/* FIX: Уменьшенный отступ для группы "Размеры поверхности" */
.input-group.gap-fix { margin-bottom: 12px; }

.input-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.input-wrapper { position: relative; display: flex; align-items: center; }

/* Поля ввода - Фиксируем высоту как в Paint.css */
.input-wrapper input {
    width: 100%; 
    height: 54px; /* !FIX: Строгая высота */
    padding: 0 40px 0 16px; /* Вертикальный паддинг убираем, центруем флексом */
    font-size: 18px; font-weight: 500;
    border: 1px solid #E5E7EB; border-radius: 12px;
    outline: none; transition: border 0.2s, box-shadow 0.2s;
    font-family: var(--font-main);
    box-sizing: border-box;
}
.input-wrapper input:focus { border-color: var(--accent-orange); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1); }
.suffix { position: absolute; right: 16px; color: var(--text-secondary); pointer-events: none; }
.helper-text { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }

.row-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Переключатель режимов (Tabs) */
.mode-switcher {
    display: flex; background: #F3F4F6; padding: 4px;
    border-radius: 12px; margin-bottom: 24px; gap: 4px;
}
.mode-btn {
    flex: 1; padding: 10px 4px; border: none; background: transparent;
    color: var(--text-secondary); font-size: 13px; font-weight: 600;
    border-radius: 8px; cursor: pointer; transition: all 0.2s; text-align: center;
}
.mode-btn.active { background: #fff; color: var(--text-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

/* --- FIX: Радио-сегмент (Выбор %) --- */
.radio-segment {
    display: flex; 
    background: #F3F4F6; 
    border-radius: 12px; 
    padding: 4px; 
    gap: 4px;
    height: 54px; /* !FIX: Высота совпадает с инпутами */
    box-sizing: border-box;
}

.radio-segment label { 
    flex: 1; 
    position: relative; 
    cursor: pointer; 
    display: flex; 
    margin-bottom: 0; /* !FIX: Убираем наследуемый отступ снизу */
    height: 100%;
}
.radio-segment input { display: none; }

.radio-segment span {
    width: 100%;
    height: 100%; /* Растягиваем на всю высоту контейнера (минус паддинг родителя) */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 8px; 
    font-size: 14px; 
    font-weight: 600;
    color: var(--text-secondary); 
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}

/* Активное состояние */
.radio-segment input:checked + span {
    background: #fff; 
    color: var(--accent-orange-dark); 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* === Карточка результата (Orange) === */
.card--orange { background: var(--gradient-orange-card); color: #fff; border: none; }
.card--orange h2 { color: rgba(255,255,255,0.95); margin-bottom: 24px; }
@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

.tile-count-big {
    font-size: 64px; font-weight: 800; line-height: 1; margin-bottom: 32px;
    display: flex; align-items: baseline; gap: 8px;
}
.tile-count-big small { font-size: 24px; font-weight: 600; opacity: 0.8; }

/* Визуальный блок */
.tile-grid-visual {
    background: rgba(255,255,255,0.15); border-radius: 16px; padding: 16px;
    display: flex; align-items: center; gap: 16px; backdrop-filter: blur(4px); margin-bottom: 16px;
}
.tile-icon {
    width: 48px; height: 48px; background: rgba(255,255,255,0.2); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.visual-info { display: flex; flex-direction: column; }
.visual-info span { font-size: 13px; opacity: 0.9; }
.visual-info strong { font-size: 20px; font-weight: 700; }

.divider { height: 1px; background: rgba(255,255,255,0.2); margin: 24px 0; border: none; }

.details-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.detail-row {
    display: flex; justify-content: space-between; font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 8px;
}
.detail-row:last-child { border-bottom: none; }

.tip-box {
    background: rgba(255,255,255,0.15); padding: 12px 16px; border-radius: 12px;
    font-size: 13px; line-height: 1.5;
}