/* calc/assets/css/calculators/paving_calculator.css */

:root {
    /* Urban Stone Palette */
    --bg-stone: #F8FAFC; /* Slate 50 */
    --bg-amber-light: #FFFBEB; /* Amber 50 */
    
    --text-stone-main: #334155; /* Slate 700 */
    --text-stone-dark: #0F172A; /* Slate 900 */
    
    --accent-amber: #F59E0B; /* Amber 500 */
    --accent-amber-glow: rgba(245, 158, 11, 0.2);
    
    --border-stone: #E2E8F0; /* Slate 200 */
}

.calc-header { margin-bottom: 32px; }

/* СЕТКА И ФИКС ВЫСОТЫ CMS */
.calc-grid { 
    display: grid !important; grid-template-columns: 1fr; gap: 24px; align-items: start; 
    width: 100%; box-sizing: border-box; 
}
@media (min-width: 900px) { 
    .calc-grid { grid-template-columns: 1fr 1fr !important; } 
}

.calc-inputs, .calc-results { 
    min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; overflow: visible !important; height: auto !important; 
}

.group-title { 
    font-size: 14px; font-weight: 800; margin: 0 0 16px 0; 
    text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid #FEF3C7; padding-bottom: 8px;
}

/* ИНПУТЫ И ПОЛЗУНКИ */
.input-group { width: 100%; font-size: 14px; font-weight: 700; color: #475569;}
.badge-value { font-size: 13px; font-weight: 800; padding: 4px 8px; border-radius: 6px;}
.amber-badge { background: #FEF3C7; color: #B45309; }

.custom-slider {
    -webkit-appearance: none; width: 100%; height: 8px; border-radius: 99px;
    background: #E2E8F0; outline: none; margin-top: 8px;
}
.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 24px; height: 24px; border-radius: 50%; 
    background: var(--accent-amber); border: 4px solid #FFF;
    cursor: pointer; transition: transform 0.1s; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.custom-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

/* РАДИОКНОПКИ УЗОРА */
.pattern-selector { display: flex; flex-direction: column; gap: 12px;}
.pat-card { cursor: pointer; }
.pat-card input { display: none; }
.p-content {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    background: #FFFFFF; border: 2px solid #E2E8F0; border-radius: 12px;
    transition: all 0.2s;
}
.pat-card:hover .p-content { border-color: #FCD34D; background: #FAFAF9; }
.pat-card input:checked + .p-content {
    border-color: var(--accent-amber); background: #FFFBEB;
    box-shadow: 0 4px 12px var(--accent-amber-glow);
}
.p-icon { font-size: 24px; line-height: 1;}
.p-text { display: flex; flex-direction: column; gap: 4px;}
.p-name { font-size: 14px; font-weight: 800; color: #334155; transition: color 0.2s;}
.p-desc { font-size: 12px; font-weight: 500; color: #64748B;}
.pat-card input:checked + .p-content .p-name { color: #92400E; }

/* СЕЛЕКТЫ */
.calc-select-wrap { position: relative; width: 100%; }
.calc-select {
    width: 100%; padding: 14px 16px; font-size: 14px; font-weight: 700;
    border: 2px solid #E2E8F0; border-radius: 12px;
    background: #FFFFFF; outline: none; transition: all 0.3s;
    font-family: inherit; color: #1E293B; box-sizing: border-box; cursor: pointer;
}
.calc-select:focus { border-color: var(--accent-amber); box-shadow: 0 0 0 4px var(--accent-amber-glow); background: #FFF;}


/* ========================================================
   ПРАВЫЙ БЛОК (URBAN STONE - ЯДЕРНЫЙ ФИКС CMS)
   ======================================================== */
.calc-results { background: transparent !important; background-color: transparent !important; border: none !important; box-shadow: none !important; border-radius: 0 !important;}

div#result-card.card.card--result.card--urban-stone { 
    background-color: var(--bg-stone) !important; 
    background-image: none !important;
    color: var(--text-stone-main) !important; 
    border: 1px solid var(--border-stone) !important; 
    border-radius: 24px !important; 
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05) !important;
    overflow: hidden !important; 
    padding: 32px 24px !important; 
    display: flex !important; 
    flex-direction: column !important;
    box-sizing: border-box !important;
    isolation: isolate !important; 
    -webkit-appearance: none !important;
    outline: none !important;
    position: relative !important;
    z-index: 1 !important;
    height: auto !important; 
    min-height: max-content !important;
}

div#result-card.card.card--result.card--urban-stone::before, 
div#result-card.card.card--result.card--urban-stone::after { display: none !important; content: none !important; background: transparent !important; box-shadow: none !important;}

@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

.urban-title { 
    color: #64748B; margin: 0 0 24px 0; 
    font-size: 13px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; text-align: center;
}

/* ГЛАВНАЯ МЕТРИКА (Плитка) */
.main-metric {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: #FFFFFF; border: 2px solid #FCD34D; border-radius: 20px;
    padding: 24px; margin-bottom: 24px; box-shadow: 0 8px 24px var(--accent-amber-glow);
}
.mm-label { font-size: 11px; font-weight: 800; color: #D97706; letter-spacing: 0.05em; margin-bottom: 8px;}
.mm-value { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px;}
.mm-num { font-size: 48px; font-weight: 900; color: #92400E; line-height: 1; letter-spacing: -1px;}
.mm-unit { font-size: 16px; font-weight: 700; color: #64748B;}
.mm-subtext { font-size: 13px; font-weight: 500; color: #64748B; line-height: 1.4;}

/* СЛОИ ПИРОГА */
.layers-box {
    background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 16px;
    padding: 20px; margin-bottom: 16px;
}
.layers-title { font-size: 12px; font-weight: 800; color: #94A3B8; margin: 0 0 16px 0; letter-spacing: 0.05em;}

.layer-item { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed #E2E8F0;}
.layer-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none;}

.l-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;}
.l-data { display: flex; flex-direction: column; gap: 4px; flex: 1;}
.l-head { display: flex; align-items: center; justify-content: space-between;}
.l-name { font-size: 14px; font-weight: 800; color: #1E293B;}
.l-val { font-size: 15px; font-weight: 900; color: #0F172A; background: #F1F5F9; padding: 2px 8px; border-radius: 6px;}
.l-sub { font-size: 12px; color: #64748B; font-weight: 500;}

/* ГЕОТЕКСТИЛЬ */
.geo-panel {
    display: flex; align-items: flex-start; gap: 12px; font-size: 13px; font-weight: 500;
    color: #475569; background: #F1F5F9; padding: 16px; border-radius: 12px; line-height: 1.5; border: 1px solid #E2E8F0;
}
.g-icon { font-size: 20px; line-height: 1; margin-top: 2px;}
.g-text { display: flex; flex-direction: column; gap: 4px;}
.g-title { font-weight: 800; color: #1E293B;}


/* ========================================================
   SEO ИНФОБЛОКИ (БЕЗ ЧЕРНОГО)
   ======================================================== */
.info-wrapper { padding: 60px 0; margin-top: 60px; border-top: 1px solid #E2E8F0; margin-bottom: 20px; }
.icon-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; font-size: 24px; font-weight: 900; line-height: 1.3; }

.header-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; margin-top: -4px; }

.formulas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; width: 100%; box-sizing: border-box;}
.formula-card { background: #FFFFFF; border: 2px solid #E2E8F0; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; box-shadow: 0 4px 15px rgba(0,0,0,0.02);}
.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: 800; line-height: 1.3; }

.badge { padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em;}

.soft-divider { border: none; height: 2px; background: #E2E8F0; margin: 48px 0; }

.seo-table-container { background: #FFFFFF; border: 2px solid #E2E8F0; border-radius: 16px; padding: 24px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); overflow: hidden; }
.seo-table-container h3 { margin-top: 0; margin-bottom: 20px; font-size: 18px; font-weight: 900;}
.seo-table { width: 100%; border-collapse: collapse; text-align: left; }
.seo-table th { padding: 12px 16px; font-weight: 800; border-bottom: 2px solid #CBD5E1;}
.seo-table td { padding: 16px; border-bottom: 1px solid #E2E8F0; font-weight: 600; line-height: 1.5;}
.seo-table tr:last-child td { border-bottom: none; }

.faq-section .faq-item { background: #FFFFFF; border: 2px solid #E2E8F0; border-radius: 12px; margin-bottom: 12px; transition: all 0.2s; }
.faq-section .faq-item[open] { border-color: #F59E0B; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1); }
summary.faq-question { padding: 16px 20px; cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
summary.faq-question:hover { background-color: #F8FAFC; }
.faq-question::after { content: '+'; font-size: 20px; font-weight: 400; line-height: 1; color: #F59E0B;}
.faq-question .icon-plus { display: none; }
.faq-section .faq-item[open] summary.faq-question::after { content: '−'; color: #F59E0B;}
.faq-answer, .faq-item div[itemprop="text"] { padding: 20px; line-height: 1.6; font-size: 15px; font-weight: 500;}

/* МОБИЛКИ */
@media (max-width: 900px) {
    .calc-grid { display: flex !important; flex-direction: column !important; gap: 16px !important; }
    .formulas-grid { grid-template-columns: 1fr !important; gap: 16px !important; margin-bottom: 32px !important; }
    div#result-card.card.card--result.card--urban-stone { border-radius: 20px !important; padding: 24px 16px !important; margin-top: 16px !important;}
    .seo-table { display: block !important; width: 100% !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
}
@media (max-width: 480px) {
    .mm-num { font-size: 40px; }
}