/* calc/assets/css/calculators/easter-eggs-dye.css */

:root {
    --dye-primary: #C2410C; /* Терракотовый/Луковый */
    --dye-bg: #FFF7ED;      /* Светло-теплый */
    --dye-dark: #7C2D12;    /* Коричневый */
}

/* --- ВЕРХНЯЯ ЧАСТЬ --- */
.calc-header { margin-bottom: 40px; }
.subtitle { color: var(--text-secondary); margin-top: 12px; font-size: 16px; line-height: 1.5; }

.calc-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 992px) { .calc-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; } }

.form-divider { border: none; height: 1px; background: #FED7AA; margin: 24px 0; opacity: 0.7; }

/* Инпуты */
.input-group { margin-bottom: 24px; }
.label-with-icon { display: flex; align-items: center; gap: 8px; color: var(--dye-primary) !important; font-size: 16px !important; font-weight: 700 !important; margin-bottom: 12px; }
.group-label { display: block; font-size: 16px; font-weight: 700; margin-bottom: 16px; color: #1F2937; }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper input {
    width: 100%; padding: 14px 16px; padding-right: 48px;
    font-size: 18px; font-weight: 700; font-family: inherit;
    border: 1px solid #D1D5DB; border-radius: 12px;
    transition: all 0.2s; outline: none; background: #fff;
    color: #1F2937;
}
.input-wrapper input:focus { border-color: var(--dye-primary); box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.15); }
.suffix { position: absolute; right: 16px; color: #9CA3AF; font-weight: 600; pointer-events: none; font-size: 15px; top: 50%; transform: translateY(-50%); }

.highlight-group { background: var(--dye-bg); padding: 20px; border-radius: 16px; border: 1px dashed var(--dye-primary); }
.helper-text { font-size: 13px; color: #6B7280; margin-top: 8px; line-height: 1.4; }

/* Палитра цветов */
.color-palette { display: flex; flex-wrap: wrap; gap: 12px; }
.color-item { position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 80px; }
.color-item input { position: absolute; opacity: 0; }
.color-box {
    width: 60px; height: 60px; border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 3px solid #fff;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.color-item input:checked + .color-box {
    transform: scale(1.15); border-color: var(--dye-primary);
    box-shadow: 0 8px 20px rgba(194, 65, 12, 0.3);
}
/* Галочка при выборе */
.color-item input:checked + .color-box::after {
    content: '\EA12'; /* ri-check-line */
    font-family: 'remixicon'; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #fff; font-size: 24px; font-weight: bold; text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.color-name { font-size: 12px; font-weight: 600; color: #4B5563; text-align: center; line-height: 1.2; }
.color-item input:checked ~ .color-name { color: var(--dye-primary); font-weight: 800; }

/* --- ПРАВАЯ ЧАСТЬ: РЕЗУЛЬТАТ (KILLER FEATURE) --- */
@media (min-width: 992px) { .sticky-card { position: sticky; top: 24px; transition: top 0.3s; } }

.dye-result-card {
    background: #fff; border: 2px solid var(--dye-bg); padding: 32px;
    border-top: 6px solid var(--dye-primary); border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(194, 65, 12, 0.08);
    transition: border-top-color 0.5s, box-shadow 0.5s;
}

.result-header { text-align: center; margin-bottom: 32px; }
.result-header h2 { font-size: 15px; font-weight: 800; color: #9CA3AF; margin: 0 0 8px 0; text-transform: uppercase; letter-spacing: 1px; }
.main-profit span { font-size: 36px; font-weight: 800; color: var(--dye-dark); line-height: 1.2; }

/* Рецепт (Блоки) */
.recipe-box { background: #F9FAFB; border-radius: 16px; padding: 20px; border: 1px solid #E5E7EB; margin-bottom: 24px; transition: background-color 0.5s; }
.rb-title { font-size: 13px; font-weight: 700; color: #4B5563; text-transform: uppercase; margin: 0 0 16px 0; text-align: center; }

.rb-grid { display: flex; justify-content: space-between; gap: 12px; }
.rb-item { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.rbi-icon { font-size: 28px; color: var(--dye-primary); margin-bottom: 8px; transition: color 0.5s; }
.rbi-data { display: flex; flex-direction: column; }
.rbi-val { font-size: 24px; font-weight: 800; color: #111827; line-height: 1; margin-bottom: 4px; }
.rbi-lbl { font-size: 12px; color: #6B7280; font-weight: 600; line-height: 1.2; }

/* Инструкция */
.instruction-box { background: #fff; border: 1px solid #D1D5DB; border-radius: 16px; padding: 24px; }
.ib-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed #E5E7EB; }

.ib-badge { padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.bg-hot { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.bg-cold { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

.ib-time { font-size: 14px; font-weight: 700; color: #4B5563; display: flex; align-items: center; gap: 6px; }
.ib-time i { color: #9CA3AF; font-size: 18px; }

.ib-text { font-size: 15px; color: #374151; line-height: 1.6; margin: 0; }

/* ИСПРАВЛЕНИЕ: Отступ для подсказки "Секрет блеска" */
.ib-tip { 
    background: #FEFCE8; color: #854D0E; padding: 16px; 
    border-radius: 12px; font-size: 13px; line-height: 1.5; 
    border: 1px solid #FEF08A; 
    margin-top: 20px; /* ДОБАВЛЕН ОТСТУП */
}
.ib-tip i { font-size: 18px; color: #D97706; float: left; margin-right: 8px; margin-top: -2px;}


/* --- НИЖНЯЯ ЧАСТЬ --- */
.info-wrapper { padding: 80px 0; margin-top: 60px; border-top: 1px solid #E5E7EB; }

.author-badge { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 40px; padding: 20px; background: #F8FAFC; border-radius: 16px; border: 1px solid #E2E8F0; }
.author-avatar { width: 48px; height: 48px; background: var(--dye-dark); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.author-info { display: flex; flex-direction: column; min-width: 0; }
.author-name { font-size: 15px; font-weight: 700; color: #111827; line-height: 1.4; margin-bottom: 4px; }
.author-date { font-size: 13px; color: #6B7280; }

.icon-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 32px; font-size: 26px; font-weight: 800; color: #111827; line-height: 1.25; letter-spacing: -0.02em; }
.header-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.06); flex-shrink: 0; margin-top: -6px; font-size: 26px; }

.orange-icon { color: #D97706; }
.dark-icon { color: var(--dye-dark); }
.text-danger { color: #EF4444; font-weight: 700;}
.text-success { color: #10B981; font-weight: 700;}
.text-warning { color: #F59E0B; font-weight: 700;}

.formulas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 56px; }
.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: 32px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; }
.formula-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(194, 65, 12, 0.1); border-color: rgba(194, 65, 12, 0.1); }
.formula-header { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.formula-card h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }

.badge-orange { background: #D97706; color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; }
.badge-dark { background: var(--dye-dark); color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; }

.formula-card p { font-size: 15px; color: var(--text-secondary); margin: 0; line-height: 1.6; font-weight: 500; }
.math-expression { background: #FFFBEB; border: 1px dashed #D97706; padding: 18px; border-radius: 14px; font-weight: 700; color: #B45309; text-align: center; margin-bottom: 20px; font-size: 17px; font-family: 'Courier New', Courier, monospace; letter-spacing: 0.5px; }

.soft-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, #E5E7EB, transparent); margin: 56px 0; opacity: 0.7; }
.intro-text { font-size: 16px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 40px; }
.calc-description p { font-size: 17px; line-height: 1.7; color: #4B5563; margin-bottom: 24px; }
.calc-description strong { color: #1F2937; font-weight: 700; }

/* SEO Таблица */
.seo-table-wrapper { overflow-x: auto; margin-bottom: 48px; background: #fff; border-radius: 16px; border: 1px solid #E5E7EB; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.seo-table-wrapper::-webkit-scrollbar { height: 6px; }
.seo-table-wrapper::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
.seo-table { width: 100%; border-collapse: collapse; min-width: 500px; text-align: left; }
.seo-table th { background: #F9FAFB; padding: 18px 24px; font-size: 13px; font-weight: 800; color: #6B7280; text-transform: uppercase; border-bottom: 1px solid #E5E7EB; letter-spacing: 0.5px; }
.seo-table td { padding: 18px 24px; font-size: 14px; border-bottom: 1px solid #F3F4F6; color: #374151; vertical-align: top; line-height: 1.5; }
.seo-table tr:last-child td { border-bottom: none; }

.faq-section .faq-item { background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; margin-bottom: 16px; overflow: hidden; transition: all 0.2s ease; }
.faq-section .faq-item:hover { border-color: #D1D5DB; }
.faq-section .faq-item[open] { border-color: var(--dye-primary); box-shadow: 0 8px 20px rgba(194, 65, 12, 0.08); }
summary.faq-question { padding: 22px 28px; cursor: pointer; font-weight: 700; color: var(--text-primary); font-size: 17px; list-style: none; position: relative; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.faq-section .faq-item[open] summary.faq-question { color: var(--dye-primary); background: var(--dye-bg); border-bottom: 1px solid #FED7AA; }
.faq-question::after { content: '+'; font-size: 26px; color: #9CA3AF; font-weight: 400; line-height: 1; transition: transform 0.3s; }
.faq-section .faq-item[open] summary.faq-question::after { content: '−'; color: var(--dye-primary); }
.faq-answer, .faq-item div[itemprop="text"] { padding: 28px; color: var(--text-secondary); line-height: 1.7; font-size: 16px; background: #fff; }
.faq-answer p { margin: 0; }

@media (max-width: 900px) {
    .calc-header { margin-bottom: 32px; }
    .formulas-grid { grid-template-columns: 1fr; gap: 20px; }
    .icon-heading { font-size: 22px; gap: 12px; }
    .header-icon { width: 44px; height: 44px; font-size: 22px; }
    .formula-card { padding: 24px; }
    summary.faq-question { padding: 18px 20px; font-size: 16px; }
    .faq-answer, .faq-item div[itemprop="text"] { padding: 20px; font-size: 15px; }
}

@media (max-width: 480px) {
    .author-badge { padding: 16px; gap: 12px; align-items: flex-start; flex-direction: row; }
    .author-avatar { width: 40px; height: 40px; font-size: 18px; }
    .input-wrapper input { padding-right: 48px; }
    
    .color-palette { justify-content: space-between; }
    .color-item { width: calc(20% - 10px); }
    .color-box { width: 48px; height: 48px; }
    .color-name { font-size: 10px; }
    
    .dye-result-card { padding: 24px 16px; }
    .rb-grid { gap: 8px; }
    .rbi-icon { font-size: 22px; margin-bottom: 4px; }
    .rbi-val { font-size: 20px; }
    .rbi-lbl { font-size: 11px; }
}