/* calc/assets/css/calculators/ski-size.css */

/* --- Theme: Snow & Sports --- */
:root {
    --snow-primary: #0F172A; /* Slate 900 */
    --snow-accent: #0EA5E9;  /* Sky 500 */
    --snow-bg: #F8FAFC;
    --snow-card-bg: #FFFFFF;
}

.calc-header { margin-bottom: 32px; }
.subtitle { color: var(--text-secondary); margin-top: 8px; }

/* Grid */
.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; }
.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; }
.input-wrapper input, .input-wrapper select {
    width: 100%; padding: 16px; padding-right: 40px;
    font-size: 16px; font-weight: 500;
    border: 1px solid #E5E7EB; border-radius: 12px;
    outline: none; transition: border 0.2s;
    font-family: var(--font-main); background: #fff; appearance: none;
}
.input-wrapper input:focus, .input-wrapper select:focus {
    border-color: var(--snow-accent); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.suffix, .select-arrow { position: absolute; right: 16px; color: var(--text-secondary); pointer-events: none; }
.select-arrow { display: flex; align-items: center; }
.helper-text { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }

.row-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Switcher Type (Buttons) */
.switch-type-wrapper { display: flex; gap: 12px; }
.switch-type-wrapper input { display: none; }
.type-btn {
    flex: 1; padding: 14px; border: 1px solid #E5E7EB; border-radius: 12px;
    text-align: center; cursor: pointer; transition: all 0.2s;
    font-weight: 600; font-size: 15px; color: var(--text-secondary);
    background: #fff; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.switch-type-wrapper input:checked + .type-btn {
    border-color: var(--snow-primary); background: var(--snow-primary); color: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
.type-btn .icon { font-size: 18px; }

/* --- Result Card --- */
.card--snow { background: #fff; border: 1px solid #E2E8F0; color: var(--snow-primary); padding: 0; overflow: hidden; }
@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

/* Killer Feature: Visual Fitting */
.visual-fitting {
    background: linear-gradient(to bottom, #E0F2FE 0%, #F1F5F9 100%);
    height: 320px; position: relative;
    display: flex; justify-content: center; align-items: flex-end;
    padding-bottom: 0; overflow: hidden;
}

/* Human */
.human-figure {
    width: 60px; height: 260px; /* Fixed ref height */
    position: relative; margin-right: 60px;
    display: flex; flex-direction: column; align-items: center;
    z-index: 2; 
    margin-bottom: 0; /* Убран отступ, стоит на дне */
}
.head {
    width: 34px; height: 40px; background: #334155; border-radius: 12px;
    margin-bottom: 2px; position: relative; z-index: 2;
}

/* УБРАНЫ face-line */

.head::after { content: 'Рост'; position: absolute; top: -20px; font-size: 10px; color: #64748B; white-space: nowrap; left: 50%; transform: translateX(-50%); }

.body { width: 40px; height: 100px; background: #475569; border-radius: 8px; margin-bottom: 2px; }
.legs { width: 40px; height: 118px; background: #1E293B; border-radius: 6px; }

/* Equipment */
.equipment-container {
    width: 60px; height: 260px;
    display: flex; align-items: flex-end; justify-content: center;
    position: relative; z-index: 2;
    margin-bottom: 0; /* Убран отступ, стоит на дне */
}
.equipment-bar {
    width: 36px; 
    height: 90%; 
    background: var(--snow-accent);
    border-radius: 12px;
    border: 2px solid #0284C7;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

.eq-label {
    position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
    font-weight: 800; color: #0284C7; font-size: 16px;
    background: #fff; padding: 2px 6px; border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    white-space: nowrap;
    transition: left 0.3s ease;
}

/* УБРАН .floor */

/* Data */
.result-data { padding: 24px; text-align: center; border-top: 1px solid #E2E8F0; }
.result-data h2 { font-size: 14px; text-transform: uppercase; color: #64748B; letter-spacing: 1px; margin-bottom: 8px; }
.size-range { font-size: 48px; font-weight: 800; color: #0F172A; line-height: 1; margin-bottom: 12px; }
.size-range small { font-size: 18px; color: #64748B; font-weight: 600; }
.recommendation-text { font-size: 15px; color: #334155; line-height: 1.5; background: #F1F5F9; padding: 12px; border-radius: 8px; }

.summary-divider { height: 1px; background: #E2E8F0; margin: 0 24px 24px 24px; }
.tip-box { 
    margin: 0 24px 24px 24px;
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 13px; color: #64748B; line-height: 1.4;
}
.tip-box svg { color: var(--snow-accent); flex-shrink: 0; margin-top: 2px; }

/* --- Info Wrapper --- */
.info-wrapper {
    padding: 60px 0 60px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.info-wrapper .container { max-width: 800px; margin: 0 auto; }

/* Headings */
.icon-heading {
    display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px;
    font-size: 24px; font-weight: 800; color: var(--text-primary); line-height: 1.3;
}
.header-icon {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 14px; background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04); flex-shrink: 0; margin-top: -4px;
}
.header-icon svg { width: 24px; height: 24px; stroke-width: 2px; }

/* Icon Colors */
.blue-icon svg { color: #0EA5E9; }
.dark-icon svg { color: #334155; }

/* Small Headings */
.small-heading { margin-top: 40px; margin-bottom: 16px; font-size: 20px; }
.small-heading .header-icon { width: 40px; height: 40px; }
.small-heading .header-icon svg { width: 20px; height: 20px; }

.intro-text { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.6; }

/* Formulas Grid */
.formulas-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px;
}
.formula-card {
    background: #fff; border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); border-radius: 24px; padding: 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: column;
}
.formula-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }

.formula-header {
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px;
}
.formula-card h3 {
    margin: 0; font-size: 18px; font-weight: 700; color: var(--text-primary); line-height: 1.3;
}

/* Badges */
.badge-dark { background: #1E293B; color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; display: inline-block; }
.badge-blue { background: #E0F2FE; color: #0284C7; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; display: inline-block; }

/* Math Block */
.math-expression {
    background: #F1F5F9; border: 1px solid #E2E8F0; padding: 12px 16px;
    border-radius: 12px; font-weight: 700; color: #0F172A; text-align: center;
    margin-bottom: 16px; font-size: 15px;
}
.formula-card p {
    font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; font-weight: 500;
}

/* Divider */
.soft-divider {
    border: none; height: 1px;
    background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
    margin: 48px 0;
}

/* Description & Lists */
.calc-description p {
    font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 24px;
}
.calc-description strong { color: var(--text-primary); }
.calc-description ul {
    color: var(--text-secondary); margin-bottom: 24px; padding-left: 20px; line-height: 1.6;
}
.calc-description li { margin-bottom: 8px; }

/* FAQ */
.faq-snow-style .faq-item {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
    margin-bottom: 12px; overflow: hidden; transition: all 0.2s ease;
}
.faq-snow-style .faq-item[open] {
    border-color: #94A3B8; box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.faq-snow-style summary.faq-question {
    padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--text-primary);
    list-style: none; position: relative; display: flex; justify-content: space-between;
    align-items: center; transition: background 0.2s;
}
.faq-snow-style summary.faq-question:hover { background-color: #F8FAFC; }
.faq-snow-style .faq-item[open] summary.faq-question { color: var(--snow-primary); background: #F1F5F9; }

.faq-question::after {
    content: '+'; font-size: 20px; color: var(--text-secondary); font-weight: 400; line-height: 1;
}
.faq-snow-style .faq-item[open] summary.faq-question::after {
    content: '−'; color: var(--snow-primary);
}

.faq-answer {
    padding: 20px; color: var(--text-secondary); line-height: 1.6; font-size: 15px;
}

/* --- MOBILE ADAPTATION --- */
@media (max-width: 900px) {
    .formulas-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
    
    .icon-heading { font-size: 20px; gap: 12px; margin-bottom: 20px; }
    .header-icon { width: 40px; height: 40px; border-radius: 12px; }
    .header-icon svg { width: 20px; height: 20px; }
    
    .formula-card { padding: 24px; text-align: center; align-items: center; }
    .formula-header { align-items: center; width: 100%; }
    .math-expression { width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
    
    .info-wrapper { margin-top: 40px; padding-top: 40px; }
}