/* --- Download Time Theme --- */
:root {
    --dl-bg: #E0F2FE;        /* Light Sky */
    --dl-card-bg: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
    --dl-accent: #0284C7;    /* Sky Blue 600 */
    --dl-text: #0C4A6E;      /* Dark Blue */
    --dl-bar: #38BDF8;       /* Bright Cyan */
}

.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.1fr 0.9fr; } }

/* Inputs with Select */
.input-group { margin-bottom: 24px; }
.input-group label { display: block; font-size: 14px; font-weight: 700; color: #475569; margin-bottom: 8px; }

.input-with-select {
    display: flex; border: 2px solid #E2E8F0; border-radius: 12px;
    overflow: hidden; background: #fff; transition: border 0.2s;
}
.input-with-select:focus-within { border-color: var(--dl-accent); }

.input-with-select input {
    flex: 1; border: none; padding: 14px; font-size: 18px; font-weight: 600; outline: none;
    min-width: 0; font-family: var(--font-main);
}
.input-with-select select {
    border: none; background: #F8FAFC; padding: 0 16px; font-weight: 600;
    color: var(--text-secondary); border-left: 1px solid #E2E8F0;
    outline: none; cursor: pointer;
}

.helper-text { font-size: 12px; color: #94A3B8; margin-top: 6px; }

/* Game Presets */
.game-presets { margin-top: 12px; }
.preset-label { font-size: 11px; text-transform: uppercase; color: #94A3B8; font-weight: 700; margin-bottom: 8px; }
.presets-list { display: flex; flex-wrap: wrap; gap: 8px; }

.game-btn {
    background: #F0F9FF; border: 1px solid #BAE6FD; color: #0284C7;
    padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.game-btn:hover { background: #0284C7; color: #fff; border-color: #0284C7; transform: translateY(-1px); }

/* --- RESULT CARD --- */
.card--download {
    background: var(--dl-card-bg);
    color: #fff; border: none;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.3);
    position: relative; overflow: hidden;
}
.card--download h2 { color: rgba(255,255,255,0.9); font-size: 16px; margin-bottom: 12px; text-align: center; }

.time-result {
    text-align: center; font-size: 42px; font-weight: 800; line-height: 1.1; margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.time-result small { font-size: 16px; font-weight: 500; opacity: 0.8; margin-right: 4px; }

/* Progress Bar Visual */
.download-visual {
    background: rgba(0,0,0,0.2); border-radius: 12px; padding: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}
.progress-info { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; font-family: monospace; opacity: 0.9; }

.progress-track {
    height: 12px; background: rgba(0,0,0,0.3); border-radius: 6px;
    overflow: hidden; position: relative;
}
.progress-bar {
    width: 60%; /* JS changes this */
    height: 100%; background: var(--dl-bar);
    border-radius: 6px; position: relative;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    transition: width 0.3s;
}
/* Анимация полосок */
.progress-stripes {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(
        45deg, 
        rgba(255, 255, 255, 0.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.15) 75%, 
        transparent 75%, 
        transparent
    );
    background-size: 20px 20px;
    animation: moveStripes 1s linear infinite;
}
@keyframes moveStripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

.progress-files { text-align: center; font-size: 12px; margin-top: 8px; opacity: 0.7; }

/* Comparison Grid */
.summary-divider { height: 1px; background: rgba(255,255,255,0.2); margin: 24px 0; }
.comparison-grid { display: grid; gap: 12px; }
.comp-item { display: flex; justify-content: space-between; font-size: 13px; align-items: center; }
.comp-label { opacity: 0.8; }
.comp-val { font-weight: 700; }

/* --- НОВЫЕ ИНФОРМАЦИОННЫЕ БЛОКИ (Download Style) --- */

.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;
}

/* Заголовки */
.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: 12px;
    background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    flex-shrink: 0; margin-top: -4px;
    color: var(--dl-accent);
}

.header-icon svg { width: 24px; height: 24px; stroke-width: 2px; }

/* Цвета иконок */
.blue-icon svg { color: var(--dl-accent); }
.green-icon svg { color: #10B981; }
.orange-icon svg { color: #F59E0B; }
.red-icon svg { color: #EF4444; }

.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 {
    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: 16px; 
    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(2, 132, 199, 0.15); border-color: #BAE6FD; }

.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;
}

/* Бейджи */
.badge-blue {
    background: #E0F2FE; color: #0284C7;
    padding: 6px 12px; border-radius: 99px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-green {
    background: #D1FAE5; color: #059669;
    padding: 6px 12px; border-radius: 99px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}

.formula-card p {
    font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; font-weight: 500;
}

.math-expression {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--dl-accent);
    text-align: center;
    margin-bottom: 16px;
    font-size: 15px;
    font-family: monospace;
}

/* Разделитель */
.soft-divider {
    border: none; height: 1px;
    background: linear-gradient(90deg, transparent, #E2E8F0, transparent);
    margin: 48px 0;
}

/* Описание */
.calc-description p {
    font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 24px;
}
.calc-description strong { color: var(--text-primary); }

/* --- FAQ Секция (Download Style) --- */
.faq-section .faq-item {
    background: #fff; border: 1px solid #E2E8F0;
    border-radius: 12px; margin-bottom: 12px;
    overflow: hidden; transition: all 0.2s ease;
}

.faq-section .faq-item[open] {
    border-color: var(--dl-accent); 
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.15);
}

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;
}

summary.faq-question:hover { background-color: #F8FAFC; }

.faq-section .faq-item[open] summary.faq-question {
    color: var(--dl-accent);
    background: #F0F9FF;
}

.faq-question::after {
    content: '+'; font-size: 20px;
    color: var(--text-secondary); font-weight: 400; line-height: 1;
}
.faq-question .icon-plus { display: none; }

.faq-section .faq-item[open] summary.faq-question::after {
    content: '−'; color: var(--dl-accent);
}

.faq-answer, .faq-item div[itemprop="text"] {
    padding: 20px; color: var(--text-secondary);
    line-height: 1.6; font-size: 15px;
}

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ --- */
@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; }
}