/* --- Global Styles & Reset --- */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #93c5fd;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.blue-link {color: #2563eb;
    font-weight: 500;}
.blue-link:hover {text-decoration: underline;}
p {margin-bottom: 10px;}

/* --- Header & Navigation --- */
header {
    background-color: #1e293b;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    color: var(--white);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {height: 50px;}

.main-nav > ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    font-weight: 500;
    font-size: 15px;
    color: #cbd5e1;
}

.main-nav a:hover {
    color: var(--white);
}
#menuSide {
        overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 10px 20px;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}
.content-side {width: 100%;
        max-width: 100%;
        min-width: 0;}
.breadcrumb {
    margin-top: 20px;
    font-size: 14px;
    color: #64748b;
}
/* --- Hero Section --- */
.hero h1 {
    color: #0f172a;
    font-weight: 800;
}


/* Контейнер для лейбла и иконки */
.label-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* Иконка вопроса */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #e2e8f0;
    color: #475569;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    position: relative;
    transition: var(--transition);
}

.help-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Сам блок подсказки (Popover) */
.help-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 260px;
    background-color: #ffffff;
    color: #1e293b;
    text-align: left;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    font-weight: normal;
    line-height: 1.5;
    
    /* Позиционирование */
    position: absolute;
    z-index: 10;
    bottom: 125%; /* Над иконкой */
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.2s;
}

/* Маленький треугольник-стрелка снизу */
.help-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

/* Показ при наведении */
.help-icon:hover .help-tooltip {
    visibility: visible;
    opacity: 1;
}
.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 14px 0;
}
.stat-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
}
.stat-num {
    font-size: 22px;
    font-weight: 700;
    color: #15803d;
    line-height: 1.1;
    margin-bottom: 3px;
}
.stat-lbl {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
}
/* Для мобилок: чтобы подсказка не вылетала за края экрана */
@media (max-width: 480px) {
    .help-tooltip {
        width: 200px;
        left: auto;
        right: -20px;
        transform: translateX(0);
    }
    .help-tooltip::after {
        left: 85%;
    }
}
.example-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #2563eb;
    border-radius: 0 8px 8px 0;
    padding: 13px 16px;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.7;}
.example-box .ex-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: block;
}
.example-box .ex-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}
.sidebar-card {
    background: #fff;
    padding: 22px 24px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}
.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-links li {
    margin-bottom: 10px;
}
.sidebar-links a {
    color: #2563eb;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}
.sidebar-links .sub {
    font-size: 12px;
    color: #94a3b8;
    display: block;
}
.rate-box.allow {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.rate-box {
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.rate-box.elem {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
.rate-box:last-child {
    margin-bottom: 0;
}
.sidebar-card h4 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}
.rate-box.allow .rate-box-label {
    color: #15803d;
}

.rate-box-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.rate-box-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #334155;
    margin-bottom: 5px;
}
.rate-box.allow .rate-box-row span:last-child {
    color: #15803d;
}
.rate-box-row span:last-child {
    font-weight: 700;
}
/* Блок заголовка на страницах калькуляторов */
.calculator-intro {
    margin: 40px 0;
    text-align: center;
    padding: 0 15px;
}

.calculator-intro h1 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a; /* Темно-синий/черный */
    margin-bottom: 12px;
    line-height: 1.2;
}

.calculator-intro p {
    font-size: 18px;
    color: #64748b; /* Приглушенный серый */
    max-width: 700px;
    margin: 0 auto;
}
.content-block {background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px 28px;
    margin-bottom: 20px;
    line-height: 1.8;}
.content-block a {
    color: #2563eb;
    font-weight: 500;
}
.content-block p {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 12px;
}
.content-block li {
    margin-bottom: 5px;
}
.content-block ul, .content-block ol {
    padding-left: 18px;
    color: #475569;
    font-size: 14.5px;
    line-height: 1.85;
    margin: 8px 0 12px;
}
.alert-box.blue {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a5f;
}
.alert-box.orange {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
}
.alert-box.green {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #14532d;
}
.taper-kept {
    background: #16a34a;
    flex: 45;
    display: flex;
    align-items: center;
    padding-left: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.taper-lost {
    background: #dc2626;
    flex: 55;
    display: flex;
    align-items: center;
    padding-left: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.alert-box {
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14.5px;
    line-height: 1.7;
    margin: 14px 0;
}
.taper-track {
    display: flex;
    height: 34px;
    border-radius: 8px;
    overflow: hidden;
    margin: 12px 0;
}
.main-grid {
        display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 60px;
    width: 100%;
}    
.rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 14px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;}
.rate-table thead tr {
    background: #f1f5f9;
    border-bottom: 2px solid #e2e8f0;
}
.rate-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rate-table td {
    padding: 10px 14px;
    border-top: 1px solid #f1f5f9;
    color: #334155;
    background: #fff;
    line-height: 1.5;
}
.rate-table td.amt {
    font-weight: 700;
    color: #15803d;
    text-align: right;
    white-space: nowrap;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    main {overflow: hidden;}
    .calculator-intro h1 {
        font-size: 26px;
    }
    .calculator-intro p {
        font-size: 16px;
    }
    table, .rate-table {display: block; overflow-x: scroll !important;}
    .content-block {padding: 26px 10px !important;}

}
@media (min-width: 768px) {
    .main-grid {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
}
/* --- Calculator Grid --- */
.category-section {
    margin-bottom: 50px;
}

.category-section h2 {
    font-size: 24px;
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.calc-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: var(--transition);
}

.calc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.card-icon {
    background: var(--bg-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 10px;
    flex-shrink: 0;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #0f172a;
}

.card-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- SEO Section --- */
.seo-section {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 60px 0;
}

.seo-section h2 { margin-bottom: 20px; }
.seo-section p { margin-bottom: 15px; color: #475569; }
.seo-section ul { margin-left: 20px; margin-bottom: 15px; }

/* --- Footer --- */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.footer-logo { margin-bottom: 20px; }
.footer-description { font-size: 14px; max-width: 300px; }
.footer-menu h4 { color: var(--white); margin-bottom: 20px; font-size: 16px; }
.footer-menu ul { list-style: none; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { font-size: 14px; }
.footer-menu a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
}

/* --- Mobile Menu Styles --- */
.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    transition: 0.4s;
    padding: 20px;
    color: var(--text-main);
}

.mobile-menu.active { right: 0; }

.mobile-overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
}

.mobile-overlay.active { display: block; }

.menu-header button {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-links h4 { margin: 20px 0 10px; color: var(--primary-color); }
.mobile-nav-links ul { list-style: none; }
.mobile-nav-links li a { display: block; padding: 8px 0; font-size: 16px; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .burger-btn { display: flex; }
    .hero h1 { font-size: 28px; }
    .footer-container { grid-template-columns: 1fr; }
    .calc-grid { grid-template-columns: 1fr; }
}

/* --- Стили для страницы Калькулятора (Инструмента) --- */

/* Основной контейнер калькулятора */
.calculator-app {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 30px;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

/* Секции внутри формы */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    letter-spacing: 0.5px;
}

/* Поля ввода */
.calc-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.calc-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Кнопка расчета */
.btn-calculate {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 18px;
    border-radius: 8px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.btn-calculate:hover {
    background: var(--primary-hover);
}

/* Панель результатов */
.result-panel {
    display: none;
    margin-top: 30px;
    background: #f0fdf4; /* Светло-зеленый */
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #bbf7d0;
}

/* --- Перенесенные стили подсказок (Tooltips) --- */
.label-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #e2e8f0;
    color: #475569;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: help;
    position: relative;
}

.help-icon:hover { background-color: var(--primary-color); color: white; }

.help-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 240px;
    background: #1e293b;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 100;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: normal;
    box-shadow: var(--shadow);
    transition: opacity 0.2s;
}

.help-icon:hover .help-tooltip { visibility: visible; opacity: 1; }
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr !important; /* Сайдбар падает под контент */
        gap: 20px !important;
    }
    
    .sidebar {
        position: static !important; /* Убираем липкость на мобилках */
    }
}

.sidebar-links a:hover span {
    text-decoration: underline;
}
/* ================================================================
   SEO CONTENT BLOCK — все компоненты контентных страниц
   ================================================================ */

/* ── Extended CSS Variables ── */
:root {
    --ink:           #0f172a;
    --ink-mid:       #334155;
    --ink-muted:     #64748b;
    --ink-faint:     #94a3b8;
    --bg:            #ffffff;
    --bg-subtle:     #f8fafc;
    --bg-tinted:     #f1f5f9;
    --border:        #e2e8f0;
    --border-strong: #cbd5e1;
    --accent:        #c2410c;
    --accent-light:  #fff7ed;
    --accent-border: #fed7aa;
    --blue:          #1d4ed8;
    --blue-light:    #eff6ff;
    --blue-border:   #bfdbfe;
    --green:         #15803d;
    --green-light:   #f0fdf4;
    --green-border:  #bbf7d0;
    --amber:         #92400e;
    --amber-light:   #fffbeb;
    --amber-border:  #fde68a;
    --radius-sm:     6px;
    --radius-md:     10px;
    --radius-lg:     16px;
    --shadow-sm:     0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --shadow-md:     0 4px 20px rgba(15,23,42,.08), 0 1px 4px rgba(15,23,42,.04);
}
.page-wrapper {
        width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden;
}
/* ── Main block ── */
.seo-content-block {
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-width: 880px;
    width: 100%;
    padding: 52px 60px;
    font-family: 'Inter', sans-serif;
    color: var(--ink-mid);
    line-height: 1.75;
    font-size: 15.5px;
    font-weight: 300;
    box-sizing: border-box;
}

/* ── Typography ── */
.seo-content-block h2 {
    font-family: 'Lora', serif;
    font-size: 30px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--accent);
    margin-top: 40px;
    margin-bottom: 10px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.seo-content-block p { margin-bottom: 14px; }
.seo-content-block strong { font-weight: 500; color: var(--ink); }

.seo-content-block a {
    color: var(--blue);
    text-decoration: none;
    border-bottom: 1px solid var(--blue-border);
    transition: border-color .15s, color .15s;
    overflow-wrap: break-word;
    word-break: break-word;
}

.seo-content-block a:hover { border-color: var(--blue); }

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 36px 0;
}

/* ── Stat cards ── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 10px;
    margin: 20px 0 28px;
}

.stat-card {
    background: var(--bg-tinted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px 14px;
    position: relative;
    overflow: hidden;
}

.stat-card.accent-card {
    border-color: var(--accent-border);
    background: var(--accent-light);
}

.stat-card .s-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.stat-card.accent-card .s-label { color: var(--accent); }

.stat-card .s-value {
    font-family: 'Lora', serif;
    font-size: 26px;
    color: var(--ink);
    line-height: 1.1;
}

.stat-card.accent-card .s-value { color: var(--accent); }
.stat-card .s-sub { font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; }
.stat-card.accent-card .s-sub { color: var(--amber); }

/* ── Band table ── */
.band-table-wrap {
    overflow-x: auto;
    margin: 16px 0 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.band-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 480px;
}

.band-table thead th {
    background: var(--bg-subtle);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ink-muted);
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.band-table thead th:not(:first-child) { text-align: right; }

.band-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--ink-mid);
}

.band-table tbody td:not(:first-child) { text-align: right; }
.band-table tbody tr:last-child td { border-bottom: none; }
.band-table tbody td:first-child { font-weight: 500; }
.band-table tbody td:last-child { font-weight: 500; color: var(--ink); }
.band-table tbody tr.row-highlight td { background: var(--accent-light); }
.band-table tbody tr.row-highlight td:first-child { color: var(--accent); }

.band-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    background: var(--bg-tinted);
    border: 1px solid var(--border);
    font-weight: 500;
    font-size: 13px;
    color: var(--ink);
}

tr.row-highlight .band-badge {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ── Ratio table ── */
.ratio-table {
    border-collapse: collapse;
    font-size: 13px;
    margin: 12px 0 20px;
}

.ratio-table th {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    text-align: left;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.ratio-table td {
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    color: var(--ink-mid);
    font-size: 13px;
}

.ratio-table tr:last-child td { border-bottom: none; }

/* ── Precept breakdown ── */
.precept-list {
    margin: 14px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.precept-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.precept-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
}

.precept-item .p-title {
    font-weight: 500;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 2px;
}

.precept-item .p-desc {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* ── Notice boxes ── */
.notice {
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 13.5px;
    margin: 16px 0 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.65;
}

.notice.blue  { background: var(--blue-light);  border: 1px solid var(--blue-border);  color: var(--blue); }
.notice.amber { background: var(--amber-light); border: 1px solid var(--amber-border); color: var(--amber); }
.notice.green { background: var(--green-light); border: 1px solid var(--green-border); color: var(--green); }

.notice-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    opacity: .85;
}

/* ── Discount grid ── */
.discount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(198px, 1fr));
    gap: 10px;
    margin: 14px 0 20px;
}

.discount-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, border-color .2s;
}

.discount-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.discount-card .d-title {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.discount-card .d-saving {
    font-family: 'Lora', serif;
    font-size: 21px;
    color: var(--green);
    margin-bottom: 6px;
    line-height: 1.2;
}

.discount-card .d-desc {
    font-size: 12.5px;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* ── Steps / Timeline ── */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 14px 0 20px;
}

.step {
    display: flex;
    gap: 14px;
    padding-bottom: 18px;
    position: relative;
}

.step:last-child { padding-bottom: 0; }

.step-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-tinted);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-mid);
    flex-shrink: 0;
}

.step.danger .step-num {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.step-connector {
    width: 1px;
    flex: 1;
    background: var(--border);
    margin-top: 4px;
}

.step:last-child .step-connector { display: none; }

.step-body { padding-top: 4px; }
.step-body .s-t { font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 3px; }
.step-body .s-d { font-size: 13px; color: var(--ink-muted); line-height: 1.6; }

/* ── FAQ ── */
.faq-list { margin-top: 14px; }

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-q {
    font-weight: 500;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 7px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.faq-q::before {
    content: 'Q';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.faq-a {
    font-size: 14px;
    color: var(--ink-mid);
    line-height: 1.7;
    padding-left: 32px;
}

/* ── SEO Footer ── */
.seo-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--ink-faint);
    line-height: 1.7;
}

/* ── Custom ul inside seo-content-block ── */
.seo-content-block ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 16px;
}

.seo-content-block ul li {
    padding: 7px 0 7px 20px;
    position: relative;
    color: var(--ink-mid);
    border-bottom: 1px solid var(--border);
    font-size: 14.5px;
}

.seo-content-block ul li:last-child { border-bottom: none; }

.seo-content-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 17px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .55;
}

/* ── Responsive overrides ── */
@media (max-width: 640px) {
    .seo-content-block {
        padding: 28px 20px;
        box-sizing: border-box;
    }

    .seo-content-block h2 { font-size: 24px; }
    .stat-card .s-value { font-size: 22px; }
}