/* ─── Переменные (цвета, тени и т.д.) ─────────────────────────── */
:root {
    --primary-color: #1A1A2E;
    --accent-color:  #007AFF;
    --accent-hover:  #0063CC;
    --primary-light: #E8F2FF;
    --primary-subtle: #F5F9FF;
    --bg-color:      #FFFFFF;
    --text-primary:  #1A1A2E; 
    --text-secondary: #6B7280;
    --text-tertiary:  #9CA3AF;
    --border-color:  #E5E7EB;
    --border-hover:  #B3D4FF;
    --trust-green:   #10B981;
    --trust-green-bg: #ECFDF5;
    --tab-inactive-bg: #F3F4F6;
    --tab-inactive-text: #6B7280;
    --shadow-header: rgba(0,0,0,0.04);
    --shadow-card:   rgba(0,122,255,0.08);
}
/* ─── Шрифты (подключаются через /fonts/) ───────────────────────── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url('/fonts/inter-v20-cyrillic_latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: optional;
    src: url('/fonts/inter-v20-cyrillic_latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: optional;
    src: url('/fonts/inter-v20-cyrillic_latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: optional;
    src: url('/fonts/inter-v20-cyrillic_latin-700.woff2') format('woff2');
}
/* ─── Общие контейнеры и разметка ────────────────────────── */
.site-header, 
footer, 
.md-content, 
.post-header, 
.city-list-container,
.section-tags-container,
.posts-grid,
.related-posts-block,
.prefooter-widget,
.osago-cities {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    width: 100%;
}

.md-content {
    max-width: 860px;
}

/* Скрытый текст для скринридеров ✨ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
/* ─── Базовые элементы (Body, H1-H4, Links, Tables) ───────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 { 
    color: var(--primary-color); 
    font-family: 'Inter', sans-serif; 
    font-weight: 700; 
    scroll-margin-top: 5rem; /* Отступ для липкого меню ✨ */
}

a { color: var(--accent-color); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-color); }

/* ─── Универсальные стили таблиц и цитат ───────────────────── */
table { 
  border-collapse: collapse; 
  width: 100%; 
  margin: 1rem 0; 
  box-shadow: 0 2px 15px rgba(0,0,0,0.05); 
  border-radius: 8px; 
  overflow: hidden; 
}
th, td { border: 1px solid #eee; padding: 12px; text-align: left; }
th { background-color: #f8f9fa; font-weight: 600; }

blockquote {
    border-left: 5px solid var(--accent-color);
    margin: 1.5em 0;
    padding: 0.5em 20px;
    color: #555;
    background: #f0f7fd;
    border-radius: 0 8px 8px 0;
}

/* Скрытый текст для скринридеров */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Блок Читайте также из JSON */
.related-posts-block {
    background-color: #f8fafc;
    padding: 1.5rem;
    max-width: 812px !important; /* Чтобы границы совпадали с контентом внутри md-content (860 - 48) */
    margin: 2rem auto;
    border-radius: 8px; /* Как у FAQ */
    border: 1px solid #e2e8f0;
}

.related-posts-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b; /* Более мягкий цвет */
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 !important;
    border: 0 !important;
}

.related-posts-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.related-post-item {
    margin-bottom: 0.75rem;
    position: relative;
}

.related-post-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.1s;
}

.related-post-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
/* ─── Шапка сайта (Десктоп) ───────────────────────────────────────── */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;    /* строгое выравнивание по центру для всех трёх блоков */
    padding: 0.55rem 1rem;     /* Отступы от краев */
    border-bottom: none;    /* Убираем лишнюю линию перед hero */
    background: var(--bg-color);
    margin-bottom: 0;       /* Убираем белую полоску между хедером и hero */
}

.header-left, .header-right {
    display: flex;
    align-items: center;   /* иконка «Помощь» и текст на одной базовой линии */
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
}
.logo-link:hover { opacity: 0.85; }
.logo-img { height: 34px; width: auto; } /* Уменьшаем высоту логотипа */

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    padding: 0.2rem 0;
    font-weight: 500;
    font-size: 0.92rem;
    color: #6B7280;   /* неактивный — явно серый, иерархия читается */
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
}
.nav-link:hover {
    color: var(--text-primary);
}
.nav-link.active {
    color: var(--accent-color);
    font-weight: 700;
    border-bottom-color: var(--accent-color);
}

.header-help {
    display: flex;
    align-items: center;
    gap: 0.35rem;   /* расстояние между иконкой и текстом */
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.86rem;
    text-decoration: none;
    padding: 0.28rem 0.55rem;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: all 0.2s ease;
}
.header-help:hover {
    color: var(--text-primary);
    background: var(--primary-subtle);
    border-color: #DDE8FF;
}
.header-help svg {
    width: 14px;
    height: 14px;
}

/* ─── Мессенджер MAX (Десктоп) ─────────────────────────────────── */
.header-messenger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color) !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border: 1.2px solid var(--accent-color) !important;
    border-radius: 10px;
    transition: all 0.25s ease;
    margin-right: 0.8rem;
    background: transparent;
    letter-spacing: 0.01em;
}

.header-messenger:hover {
    background: var(--accent-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.15);
}

.header-messenger svg {
    transition: transform 0.25s ease;
}

.header-messenger:hover svg {
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .header-messenger {
        display: none !important;
    }
}
/* ─── Мобильное меню и Гамбургер ─────────────────────────────── */

/* Скрыты на десктопе */
.burger,
.mobile-menu {
    display: none;
}

@media (max-width: 600px) {
    .site-header {
        flex-wrap: wrap;
        position: relative;
        min-height: 48px;
        padding: 0.75rem 1rem;
    }

    .site-nav,
    .header-right {
        display: none;
    }

    .header-left {
        min-width: 170px;
    }

    .logo-img {
        width: 170px;
        height: 34px;
        display: block;
    }

    .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 36px;
        height: 36px;
        padding: 6px;
        background: none;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        cursor: pointer;
        transition: border-color 0.2s;
        box-sizing: border-box;
        flex: 0 0 36px;
    }

    .burger:hover {
        border-color: var(--accent-color);
    }

    .burger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-primary);
        border-radius: 2px;
        transition: transform 0.3s, opacity 0.3s;
    }

    .burger.is-open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .burger.is-open span:nth-child(2) {
        opacity: 0;
    }

    .burger.is-open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .mobile-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0.5rem 0 0.75rem;
        border-top: 1px solid var(--border-color);
        animation: menuSlide 0.25s ease;
    }

    .mobile-menu.is-open {
        display: flex;
    }

    @keyframes menuSlide {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .mobile-menu__link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.8rem 0.25rem;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-primary);
        text-decoration: none;
        border-radius: 8px;
        transition: background 0.15s, color 0.15s;
    }

    .mobile-menu__link:hover {
        background: var(--primary-subtle);
    }

    .mobile-menu__link.active {
        color: var(--accent-color);
        font-weight: 700;
    }
}

/* ─── Кнопка мессенджера (Мобильная) ─────────────────── */
.mobile-messenger-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    color: var(--accent-color);
    padding: 0.85rem;
    border: 1.2px solid var(--accent-color);
    border-radius: 12px;
    margin: 1.5rem 1rem 0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.02rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.06);
}

.mobile-messenger-btn:active {
    background: var(--primary-subtle);
    transform: scale(0.98);
}
/* ─── Хлебные крошки ─────────────────────────────────────── */
.breadcrumb {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Специальные стили для хлебных крошек внутри Hero-блока 🐾 */
.hero-block .breadcrumb {
    max-width: 800px;
    padding: 0 0 1rem;
    margin-top: -0.5rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.breadcrumb ol::-webkit-scrollbar { display: none; }

.breadcrumb li {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
    padding: 0.2rem 0;
}

.breadcrumb a:hover { color: var(--accent-color); }

.breadcrumb .home-icon {
    width: 14px; height: 14px;
    color: var(--text-tertiary);
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
    margin: 0 0.4rem;
    color: #D1D5DB;
    opacity: 0.6;
}

.breadcrumb-separator svg {
    width: 10px;
    height: 10px;
}

.breadcrumb-current {
    color: var(--text-tertiary);
    cursor: default;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

@media (max-width: 600px) {
    .breadcrumb {
        padding-left: 1rem; padding-right: 1rem;
    }
}
/* ─── Sticky CTA (Липкая панель сверху) ────────────────────────── */
.sticky-cta {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease,
                opacity 0.35s ease;
    opacity: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 122, 255, 0.1);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.1);
}

.sticky-cta--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.sticky-cta__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.65rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    width: 100%;
}

.sticky-cta__benefits {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sticky-benefit {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.sticky-benefit svg { color: var(--trust-green); flex-shrink: 0; }
.sticky-sep { color: #D1D5DB; font-size: 1rem; }

.sticky-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.3rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #2563EB 100%);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sticky-cta__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

@media (max-width: 768px) {
    .sticky-cta__inner { padding: 0.6rem 1rem; gap: 0.75rem; }
    .sticky-sep, .sticky-benefit:not(:first-child) { display: none; }
    .sticky-benefit:first-child { font-size: 0.84rem; }
}

@media (max-width: 640px) {
    .sticky-cta__benefits { display: none; }
    .sticky-cta__btn { 
        width: 100%; 
        justify-content: center; 
        padding: 0.65rem 0.65rem;
        font-size: 0.86rem;
        white-space: nowrap;
    }
}
/* ─── Hero-блок (страницы osago/kasko) ───────────────────── */
.hero-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 3rem;
    width: 100%;
    position: relative;
    padding: 3rem 1rem 3rem; 
    background: linear-gradient(180deg, #EFF6FF 0%, #fff 100%);
    overflow: hidden;
    text-align: center;
    box-sizing: border-box;
}

.hero-block h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin: 1rem 0 0.25rem;
    color: var(--text-primary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-full {
    min-height: 90vh;
    justify-content: center !important;
}

.hero-full h1 {
    color: var(--text-primary) !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

@media (max-width: 768px) {
    .hero-full { min-height: 80vh; }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    gap: 0.2rem; 
    border-bottom: 1px solid rgba(0, 122, 255, 0.1);
    padding-bottom: 1rem;
}

.cta-primary {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-secondary {
    font-size: 1rem;
    font-weight: 500;
    color: #6B7280;
}

.cta-icon {
    width: 22px;
    height: 22px;
    color: #F59E0B;
    flex-shrink: 0;
}

.highlight-text {
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(0, 122, 255, 0.08);
    padding: 0.1rem 0.6rem;
    border-radius: 6px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-block {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .hero-block h1 {
        font-size: 1.55rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-block {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
/* ─── Карточка виджета ───────────────────────────────────── */
.widget-card {
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
    padding: 1.5rem 0 0;
    width: 100%;
    max-width: 550px;
    margin: 0 auto 0.5rem;
    position: relative;
    text-align: left;
    border: none;
    overflow: hidden;
}

@media (max-width: 480px) {
    .widget-card {
        padding-top: 1rem;
    }
}

/* Компенсируем остатки пустого места виджета */
eosago-b2c-module-root {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ─── CSS-переопределения для внешнего виджета AgentApp ────────────────────── */
.b2c-widget-wrapper, 
.b2c-module,
.widget-card eosago-b2c-module-root,
[class*="wrapper_"],
[class*="container_"] {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget-card eosago-b2c-module-root *,
.widget-card .b2c-widget-wrapper *,
.widget-card .b2c-module *,
.widget-card [class*="wrapper_"] *,
.widget-card [class*="container_"] * {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

.b2c-btn, [class*="button_"] {
    border-radius: 12px !important;
}
[class*="button_"]:hover {
    background-color: var(--accent-hover) !important;
}

input, select, textarea, [class*="input_"], [class*="control_"] {
    border-color: var(--border-color) !important;
    border-radius: 12px !important;
}
input:focus, select:focus, textarea:focus, [class*="input_"]:focus, [class*="control_"]:focus {
    border-color: var(--border-hover) !important;
}

[class*="tab_"] {
    background: var(--tab-inactive-bg) !important;
    color: var(--tab-inactive-text) !important;
}
[class*="tab_active"], [class*="tab--active"] {
    background: var(--accent-color) !important;
    color: #FFF !important;
}
/* ─── Markdown-контент (Статьи / Посты) ───────────────────────── */
.md-content {
    color: var(--text-primary);
}

.md-content > *:first-child { margin-top: 0; }
.md-content > *:last-child { margin-bottom: 0; }

.md-content p {
    margin: 0 0 1rem;
    color: #374151;
    font-size: 1rem;
    line-height: 1.75;
}

.md-content h2 + p,
.md-content h3 + p {
    color: #1E3A5F;
    font-size: 1.02rem;
}

.md-content h2, .md-content h3, .md-content h4, .md-content h5, .md-content h6 {
    margin-top: 3.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.35;
    color: var(--text-primary);
    font-weight: 700;
}

.md-content h3, .md-content h4, .md-content h5, .md-content h6 {
    margin-top: 1.8rem;
}

.md-content h2 {
    font-size: 1.55rem;
    padding-bottom: 0.45rem;
    position: relative;
}
.md-content h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color) 0%, transparent 80%);
    border-radius: 2px;
}

.md-content h3 { font-size: 1.18rem; }
.md-content h4 {
    font-size: 1.12rem;
    padding-left: 1rem;
    position: relative;
}
.md-content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
    opacity: 0.65;
}

.md-content h5, .md-content h6 { font-size: 1rem; }

/* Ссылки внутри markdown */
.md-content a {
    color: var(--accent-color);
    text-decoration: none;
    background-image: linear-gradient(var(--accent-color), var(--accent-color));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 1.5px;
    transition: color 0.2s ease, background-size 0.25s ease;
    padding-bottom: 1px;
}
.md-content a:hover {
    color: var(--accent-hover);
    background-size: 100% 1.5px;
}

/* Сетка городов на страницах ОСАГО и КАСКО: сохраняет контекст ссылок без длинного списка с маркерами. */
.city-directory {
    --directory-accent: #155E8A;
    --directory-accent-hover: #0F4C70;
    --directory-muted: #64788A;
    --directory-line: #D7E4ED;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 1.25rem 0 0;
    padding: clamp(0.75rem, 2vw, 1rem);
    background: linear-gradient(145deg, #F2F8FC 0%, #F8FBFD 100%);
    border: 1px solid #DCE8F0;
    border-radius: 1.15rem;
}

.md-content h2#осаго-по-городам::after,
.md-content h2#каско-по-городам::after {
    content: none;
    display: none;
}

.md-content .city-directory__link {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "prefix arrow"
        "name arrow";
    align-items: center;
    gap: 0.12rem 0.55rem;
    min-height: 4.55rem;
    padding: 0.78rem 0.82rem;
    color: var(--text-primary);
    background: #FFFFFF;
    border: 1px solid var(--directory-line);
    border-radius: 0.8rem;
    text-decoration: none;
    background-image: none;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.md-content .city-directory__link:hover {
    color: var(--text-primary);
    background: #FFFFFF;
    border-color: #9FBFD2;
    background-image: none;
    box-shadow: none;
    transform: translateY(-2px);
}

.md-content .city-directory__link:focus-visible {
    outline: 2px solid rgba(49, 95, 125, 0.28);
    outline-offset: 2px;
}

.city-directory__prefix {
    grid-area: prefix;
    color: var(--directory-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.065em;
    line-height: 1.2;
    text-transform: uppercase;
}

.city-directory__name {
    grid-area: name;
    color: var(--directory-accent);
    font-size: 0.91rem;
    font-weight: 700;
    line-height: 1.28;
}

.city-directory__arrow {
    grid-area: arrow;
    display: inline-grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    color: #4E7D99;
    background: #EFF6FA;
    border: 1px solid #D9E7EF;
    border-radius: 50%;
    font-size: 0.9rem;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.city-directory__link:hover .city-directory__arrow {
    color: #FFFFFF;
    background: var(--directory-accent);
    border-color: var(--directory-accent);
    transform: translateX(2px);
}

.city-directory__link:hover .city-directory__name {
    color: var(--directory-accent-hover);
}

@media (max-width: 760px) {
    .city-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }
}

@media (max-width: 480px) {
    .city-directory {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding: 0.65rem;
        border-radius: 0.95rem;
    }

    .md-content .city-directory__link {
        grid-column: auto;
        min-height: 4rem;
        padding: 0.72rem 0.8rem;
    }

}

.md-content strong {
    color: #111827;
    font-weight: 700;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 122, 255, 0.1) 55%);
}

.md-content mark {
    background: #FEF3C7;
    color: #92400E;
    padding: 0.08rem 0.3rem;
    border-radius: 4px;
}

/* Списки */
.md-content ul {
    list-style: none;
    margin: 0 0 1.1rem;
    padding-left: 1.2rem;
    color: #374151;
}
.md-content ul > li {
    position: relative;
    padding-left: 1.15rem;
    margin-bottom: 0.5rem;
}
.md-content ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.63em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
}

.md-content ol {
    list-style: none;
    counter-reset: md-ol;
    margin: 0 0 1.1rem;
    padding-left: 1.2rem;
}
.md-content ol > li {
    position: relative;
    counter-increment: md-ol;
    padding-left: 1.9rem;
    margin-bottom: 0.55rem;
}
.md-content ol > li::before {
    content: counter(md-ol);
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 1.35rem; height: 1.35rem;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.7rem; font-weight: 700;
    text-align: center; line-height: 1.35rem;
}

/* Специфический стиль для списка источников (после заголовка "Источники") */
.md-content h2#источники ~ ol,
.md-content h2#sources ~ ol {
    list-style: decimal !important;
    padding-left: 2.2rem !important;
    margin-top: 1rem !important;
}
.md-content h2#источники ~ ol > li,
.md-content h2#sources ~ ol > li {
    padding-left: 0.5rem !important;
    counter-increment: none !important;
}
.md-content h2#источники ~ ol > li::before,
.md-content h2#sources ~ ol > li::before {
    display: none !important;
}

/* Таблицы в Markdown (Адаптив) */
.md-content table {
    width: 100%;
    margin: 1.3rem 0;
    border-collapse: separate;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
}

.md-content thead th {
    background: linear-gradient(135deg, #EFF6FF 0%, #E0EDFF 100%);
    color: #0F172A;
}

@media (max-width: 768px) {
    .table-scroll table thead { display: none; }
    .table-scroll table tbody tr {
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        margin-bottom: 0.75rem;
        padding: 0.5rem 0;
    }
    .table-scroll table tbody td {
        display: flex;
        flex-direction: column;
        padding: 0.5rem 0.85rem;
        border: none;
        border-bottom: 1px solid #F3F4F6;
    }
    .table-scroll table tbody td::before {
        content: attr(data-label);
        font-weight: 500;
        font-size: 0.75rem;
        color: var(--text-tertiary);
        margin-bottom: 0.2rem;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    /* Первая ячейка — заголовок карточки, скрываем для неё метку */
    .table-scroll table tbody td:first-child {
        background: linear-gradient(135deg, #EFF6FF 0%, #F5F9FF 100%);
        font-weight: 700;
        color: var(--text-primary);
        font-size: 1rem;
        padding: 0.6rem 0.85rem;
        border-radius: 9px 9px 0 0;
        border-bottom: 1px solid #E5E7EB;
    }

    .table-scroll table tbody td:first-child::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .md-content p, .md-content li { line-height: 1.68; }
    .md-content ul, .md-content ol { padding-left: 1.15rem; }
}

.md-content.no-breadcrumbs {
    padding-top: 2.5rem;
}

/* Кнопки в Markdown */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #2563EB 100%);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    margin: 1rem 0;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, #1D4ED8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-cta svg {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
}

/* ─── Поясняющие схемы в статьях ──────────────────────────────── */
.post-scheme {
    margin: 2rem 0;
    padding: 0;
}

.post-scheme svg {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
}

.post-scheme figcaption {
    margin-top: 0.65rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-tertiary);
    text-align: center;
}

@media (max-width: 480px) {
    .post-scheme { margin: 1.5rem 0; }
}
/* Главная: навигация по длинному материалу и тематические секции. */
.home-icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.home-guide {
    width: calc(100% - 3rem);
    max-width: calc(1060px - 3rem);
    margin: 2rem auto 1.5rem;
    padding: clamp(1.5rem, 3vw, 2.1rem);
    color: #fff;
    background: #103F68;
    border: 1px solid #1B527C;
    border-radius: 22px;
    box-shadow: none;
    box-sizing: border-box;
    overflow: hidden;
}

.home-guide__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.home-guide__copy {
    max-width: 650px;
    min-width: 0;
}

.home-guide__eyebrow {
    margin: 0 0 0.55rem;
    color: #7DD3FC;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.home-guide__title {
    max-width: 650px;
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    line-height: 1.2;
}

.home-guide__copy > p:last-child {
    max-width: 58ch;
    margin: 0.85rem 0 0;
    color: #D7E9F8;
    font-size: 1rem;
    line-height: 1.65;
}

.home-guide__nav {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.8rem 1.5rem;
    margin-top: 1.25rem;
}

.home-guide__link {
    grid-column: span 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    min-height: 66px;
    padding: 0.8rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(219, 234, 254, 0.18);
    border-radius: 13px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.home-guide__link:nth-child(n + 5) {
    grid-column: span 4;
}

.home-guide__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(186, 230, 253, 0.42);
}

.home-guide__link:focus-visible {
    outline: 3px solid #7DD3FC;
    outline-offset: 3px;
}

.home-guide__link > svg {
    width: 26px;
    height: 26px;
    padding: 0;
    color: #7DD3FC;
    background: transparent;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.home-guide__link span {
    min-width: 0;
}

.home-guide__link strong,
.home-guide__link small {
    display: block;
}

.home-guide__link strong {
    color: #fff;
    font-size: 0.94rem;
    line-height: 1.25;
}

.home-guide__link small {
    margin-top: 0.2rem;
    color: #C4DBEB;
    font-size: 0.74rem;
    line-height: 1.35;
}

.md-content.home-content {
    max-width: 1060px;
    padding-top: 0.25rem;
    padding-bottom: 3.5rem;
}

.home-content[data-enhanced="true"] {
    display: flow-root;
}

.home-topic {
    --topic-color: var(--accent-hover);
    --topic-soft: #F4F8FC;
    --topic-border: #DDE7F2;
    position: relative;
    min-width: 0;
    margin: 1.35rem 0;
    padding: clamp(1.3rem, 3vw, 2.25rem);
    background: linear-gradient(135deg, var(--topic-soft) 0, #fff 24%);
    border: 1px solid var(--topic-border);
    border-radius: 22px;
    box-shadow: none;
    overflow: hidden;
}

.home-topic--price {
    --topic-color: #B45309;
    --topic-soft: #FFF7E8;
    --topic-border: #F7DFB5;
}

.home-topic--kbm,
.home-topic--policy {
    --topic-color: #047857;
    --topic-soft: #ECFDF5;
    --topic-border: #C9F1DE;
}

.home-topic--calendar {
    --topic-color: #6D4DC2;
    --topic-soft: #F5F1FF;
    --topic-border: #E2D9FA;
}

.home-topic--accident {
    --topic-color: #C2410C;
    --topic-soft: #FFF3EC;
    --topic-border: #F8D7C4;
}

.home-topic--coverage {
    --topic-color: #3155A6;
    --topic-soft: #EEF3FF;
    --topic-border: #D6E0FA;
}

.home-topic--faq {
    --topic-color: #0369A1;
    --topic-soft: #F0F9FF;
    --topic-border: #CCEAF9;
    margin-top: 1.35rem;
}

.home-topic__header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.home-topic__icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--topic-color);
    background: transparent;
    border: 0;
    flex: 0 0 auto;
}

.home-topic__icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-topic__heading-copy {
    min-width: 0;
}

.home-topic__eyebrow {
    display: block;
    margin: 0.05rem 0 0.25rem;
    color: var(--topic-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.home-content .home-topic h2 {
    margin: 0;
    padding: 0;
    color: #172033;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    line-height: 1.23;
}

.home-content .home-topic h2::after {
    display: none;
}

.home-topic > p,
.home-topic > h3,
.home-topic > ul,
.home-topic > blockquote {
    max-width: 74ch;
}

.home-topic > p:first-of-type {
    color: #28425F;
    font-size: 1.06rem;
}

.home-topic__action {
    display: flex;
    align-items: center;
}

.home-topic__action--end {
    margin: 1.35rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--topic-border);
}

.home-topic__action--end:not(:last-child) {
    margin-bottom: 1.35rem;
}

.home-content .home-topic .home-topic__action--end + h2 {
    margin-top: 2rem;
}

.home-content .home-topic__action .product-hero-button,
.home-content .home-topic__action .product-hero-button:visited {
    padding: 0.68rem 1rem;
    color: #FFFFFF;
    background-color: #176594;
    background-image: none;
    border-color: #176594;
}

.home-content .home-topic__action .product-hero-button:hover {
    color: #FFFFFF;
    background-color: #0F527D;
    background-image: none;
    background-size: 0;
    border-color: #0F527D;
}

.home-content .home-topic h3 {
    margin-top: 2rem;
    padding-top: 1.15rem;
    color: #172033;
    border-top: 1px solid var(--topic-border);
    font-size: 1.2rem;
}

.home-content .home-topic > ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.35rem 0 1.55rem;
    padding: 0;
}

.home-content .home-topic > ol > li {
    min-height: 76px;
    margin: 0;
    padding: 1rem 1rem 1rem 3.5rem;
    color: #334155;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--topic-border);
    border-radius: 12px;
    box-shadow: none;
}

.home-content .home-topic > ol > li::before {
    top: 1rem;
    left: 0.9rem;
    width: 1.8rem;
    height: 1.8rem;
    color: var(--topic-color);
    background: var(--topic-soft);
    font-size: 0.78rem;
    line-height: 1.8rem;
    box-shadow: none;
}

.home-content .home-topic > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.9rem;
    margin: 1rem 0 1.35rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--topic-border);
    border-radius: 12px;
}

.home-content .home-topic > ul > li {
    margin: 0;
}

.home-content .home-topic > ul > li::before {
    background: var(--topic-color);
}

.home-content .home-topic blockquote {
    position: relative;
    margin: 1.35rem 0;
    padding: 1.15rem 1.25rem 1.15rem 1.35rem;
    color: #27445A;
    background: var(--topic-soft);
    border: 1px solid var(--topic-border);
    border-left: 5px solid var(--topic-color);
    border-radius: 14px;
}

.home-content .home-topic blockquote p:last-child,
.home-content .home-topic blockquote ul:last-child {
    margin-bottom: 0;
}

/* The post-purchase note is a checklist, so use calm status markers instead of generic blue bullets. */
.home-content .home-topic--policy blockquote ul {
    display: grid;
    gap: 0.12rem;
    margin-top: 0.65rem;
    padding-left: 0;
}

.home-content .home-topic--policy blockquote ul > li {
    margin: 0;
    padding: 0.48rem 0 0.48rem 2rem;
}

.home-content .home-topic--policy blockquote ul > li + li {
    border-top: 1px solid rgba(4, 120, 87, 0.12);
}

.home-content .home-topic--policy blockquote ul > li::before {
    content: '\2713';
    top: 0.58rem;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--topic-color);
    background: rgba(4, 120, 87, 0.1);
    border: 1px solid rgba(4, 120, 87, 0.22);
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.home-content .home-topic--policy blockquote li > strong {
    color: #163D31;
    background: linear-gradient(180deg, transparent 62%, rgba(4, 120, 87, 0.11) 62%);
}

.osago-formula {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.75rem;
    margin: 0.85rem 0 1.5rem;
    padding: 1.15rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--topic-border);
    border-radius: 14px;
    box-shadow: none;
}

.osago-formula__result,
.osago-formula__term,
.osago-formula__factor {
    display: inline-flex;
    align-items: center;
}

.osago-formula__result {
    min-height: 2.35rem;
    padding: 0.55rem 0.8rem;
    color: #fff;
    background: #103F68;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.25;
}

.osago-formula__term {
    gap: 0.55rem;
    max-width: 100%;
}

.osago-formula__operator {
    color: #B45309;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    flex: 0 0 auto;
}

.osago-formula__factor {
    min-height: 2.35rem;
    padding: 0.5rem 0.7rem;
    color: #334155;
    background: #FFF9EE;
    border: 1px solid #F0D7A8;
    border-radius: 10px;
    font-size: 0.87rem;
    font-weight: 650;
    line-height: 1.3;
}

.coefficient-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1.4rem 0 1.5rem;
}

.coefficient-card {
    min-width: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--topic-border);
    border-radius: 12px;
    box-shadow: none;
}

.coefficient-card__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.coefficient-card__badge {
    display: inline-grid;
    place-items: center;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.4rem;
    color: #9A4D06;
    background: #FFF3D8;
    border: 1px solid #EECF91;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    flex: 0 0 auto;
}

.home-content .home-topic .coefficient-card h3 {
    margin: 0;
    padding: 0;
    color: #172033;
    border: 0;
    font-size: 1rem;
    line-height: 1.3;
}

.home-content .home-topic .coefficient-card p {
    margin: 0;
    color: #526174;
    font-size: 0.9rem;
    line-height: 1.55;
}

.home-content .home-topic .coefficient-card .coefficient-card__value {
    margin-bottom: 0.45rem;
    color: #9A4D06;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

/* Срок полиса: один основной годовой сценарий. */
.policy-term-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1.35rem 0 1.5rem;
}

.policy-term-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.policy-term-card {
    min-width: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--topic-border);
    border-radius: 14px;
    box-shadow: none;
}

.policy-term-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-bottom: 0.85rem;
}

.policy-term-card header strong {
    max-width: 21rem;
    color: #172033;
    font-size: 1.02rem;
    line-height: 1.35;
}

.policy-term-card header span {
    padding: 0.38rem 0.58rem;
    color: var(--topic-color);
    background: var(--topic-soft);
    border: 1px solid var(--topic-border);
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.3;
}

.policy-term-card dl,
.coverage-product-card dl {
    margin: 0;
}

.policy-term-card dl > div {
    display: grid;
    grid-template-columns: 7.2rem minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.72rem 0;
    border-top: 1px solid var(--topic-border);
}

.policy-term-card dt,
.coverage-product-card dt {
    color: var(--topic-color);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
}

.policy-term-card dd,
.coverage-product-card dd {
    margin: 0;
    color: #475569;
    font-size: 0.87rem;
    line-height: 1.5;
}

/* Ошибка → действие: компактный список, а не двухколоночная таблица. */
.policy-fix-list {
    margin: 1.25rem 0 1.45rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--topic-border);
    border-radius: 13px;
}

.policy-fix-row {
    display: grid;
    grid-template-columns: minmax(13rem, 0.72fr) minmax(0, 1.28fr);
    gap: 1rem;
    padding: 0.82rem 1rem;
    align-items: center;
}

.policy-fix-row + .policy-fix-row {
    border-top: 1px solid var(--topic-border);
}

.policy-fix-row strong {
    color: #173B31;
    font-size: 0.88rem;
    line-height: 1.4;
}

.policy-fix-row span {
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Европротокол: три лимита и отдельное исключение для вызова ГИБДД. */
.europrotocol-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.72rem;
    margin: 1.3rem 0 1.45rem;
}

.europrotocol-card {
    min-width: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--topic-border);
    border-radius: 13px;
    box-shadow: none;
}

.europrotocol-card > div {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.europrotocol-card > div span {
    padding: 0.34rem 0.48rem;
    color: #7C3B1C;
    background: var(--topic-soft);
    border: 1px solid var(--topic-border);
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
}

.europrotocol-card > strong {
    display: block;
    margin-top: 0.9rem;
    color: var(--topic-color);
    font-size: 1.2rem;
    line-height: 1.25;
}

.europrotocol-card--alert {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    background: var(--topic-soft);
    border-color: #E9BFA9;
}

.europrotocol-card--alert > span {
    color: #6B3B28;
    font-size: 0.88rem;
    line-height: 1.5;
}

.europrotocol-card--alert > strong {
    margin: 0;
    padding: 0.55rem 0.72rem;
    color: #9A3412;
    background: #FFFFFF;
    border: 1px solid #E9BFA9;
    border-radius: 9px;
    font-size: 0.88rem;
    white-space: nowrap;
}

/* Виды защиты: продукт и его назначение читаются одной карточкой. */
.coverage-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1.3rem 0 1.45rem;
}

.coverage-product-card {
    min-width: 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--topic-border);
    border-radius: 13px;
    box-shadow: none;
}

.coverage-product-card--primary {
    background: linear-gradient(135deg, var(--topic-soft), #FFFFFF 52%);
    border-color: #BFCDF1;
}

.coverage-product-card > strong {
    display: inline-block;
    margin-right: 0.5rem;
    color: #17335F;
    font-size: 1.08rem;
    line-height: 1.35;
}

.coverage-product-card__type {
    display: inline-block;
    padding: 0.3rem 0.48rem;
    color: var(--topic-color);
    background: var(--topic-soft);
    border: 1px solid var(--topic-border);
    border-radius: 7px;
    font-size: 0.68rem;
    font-weight: 750;
    line-height: 1.3;
    vertical-align: 0.1rem;
}

.coverage-product-card dl {
    margin-top: 0.8rem;
}

.coverage-product-card dl > div {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--topic-border);
}

.home-content :is(.policy-term-card, .policy-fix-row, .europrotocol-card, .coverage-product-card) strong {
    background: none;
}

.home-content .home-topic .table-scroll {
    max-width: 100%;
    margin: 1.35rem 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border-radius: 14px;
}

.home-content .home-topic table {
    min-width: 720px;
    margin: 0;
    border-color: var(--topic-border);
    border-radius: 14px;
    box-shadow: none;
}

.home-content .home-topic thead th {
    color: #172033;
    background: var(--topic-soft);
    border-color: var(--topic-border);
}

/* Широкие таблицы целевых страховых страниц: одна строка данных = одна карточка. */
.wide-table-cards .table-scroll--cards {
    overflow-x: visible;
    overflow-y: visible;
    border-radius: 0;
}

.wide-table-cards .table-scroll--cards .content-table--cards {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.wide-table-cards .table-scroll--cards .content-table--cards thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.wide-table-cards .table-scroll--cards .content-table--cards tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.wide-table-cards .table-scroll--cards .content-table--cards tbody tr {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--topic-border, #DDE7F2);
    border-radius: 14px;
}

.wide-table-cards .table-scroll--cards .content-table--cards tbody td {
    display: grid;
    grid-template-columns: minmax(7.5rem, 38%) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    width: auto;
    min-width: 0;
    padding: 0.72rem 0.9rem;
    color: #334155;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--topic-border, #DDE7F2);
    border-radius: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: left;
}

.wide-table-cards .table-scroll--cards .content-table--cards tbody td::before {
    content: attr(data-label);
    margin: 0;
    color: #64748B;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.35;
    text-align: left;
    text-transform: uppercase;
}

.wide-table-cards .table-scroll--cards .content-table--cards tbody td:first-child {
    display: block;
    padding: 0.9rem 1rem;
    color: #172033;
    background: var(--topic-soft, #F4F8FC);
    border-bottom-color: var(--topic-border, #DDE7F2);
    border-radius: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
}

.wide-table-cards .table-scroll--cards .content-table--cards tbody td:first-child::before {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--topic-color, #176594);
}

.wide-table-cards .table-scroll--cards .content-table--cards tbody td:last-child {
    border-bottom: 0;
}

.home-content .home-topic :where(p, li, td, th, summary, a) {
    overflow-wrap: break-word;
}

.home-topic--faq details {
    border-color: var(--topic-border);
    border-radius: 12px;
}

.home-topic--faq details[open] {
    box-shadow: none;
}

.home-topic--faq summary {
    color: #25364A;
}

.home-topic--faq summary:focus-visible {
    outline: 3px solid rgba(3, 105, 161, 0.28);
    outline-offset: -3px;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .home-guide__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-guide__link,
    .home-guide__link:nth-child(n + 5) {
        grid-column: auto;
    }

    .home-guide__link:last-child {
        grid-column: 1 / -1;
    }

    .coefficient-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-guide {
        width: calc(100% - 2rem);
        margin-top: 1.5rem;
        padding: 1.5rem;
        border-radius: 18px;
    }

    .home-guide__top {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .home-guide__top .product-hero-button {
        width: 100%;
    }

    .md-content.home-content {
        padding-inline: 1rem;
    }

    .home-topic {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .home-content .home-topic > ol,
    .home-content .home-topic > ul {
        grid-template-columns: 1fr;
    }

    .policy-term-grid,
    .europrotocol-grid,
    .coverage-product-grid {
        grid-template-columns: 1fr;
    }

    .policy-fix-row {
        grid-template-columns: 1fr;
        gap: 0.28rem;
    }

    .europrotocol-card--alert {
        grid-column: auto;
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .europrotocol-card--alert > strong {
        justify-self: start;
        white-space: normal;
    }

    .home-content .home-topic table {
        min-width: 0;
    }

    .wide-table-cards .table-scroll--cards .content-table--cards tbody {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .home-guide {
        padding: 1.2rem;
    }

    .home-guide__nav {
        display: flex;
        gap: 0.65rem;
        margin-right: -1.2rem;
        padding-right: 1.2rem;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .home-guide__link,
    .home-guide__link:nth-child(n + 5),
    .home-guide__link:last-child {
        grid-column: auto;
        flex: 0 0 200px;
        min-height: 62px;
        scroll-snap-align: start;
    }

    .home-topic {
        padding: 1.05rem;
        border-radius: 15px;
    }

    .home-topic__header {
        gap: 0.75rem;
        margin-bottom: 1.05rem;
    }

    .home-topic__icon {
        width: 32px;
        height: 32px;
    }

    .home-topic__icon svg {
        width: 26px;
        height: 26px;
    }

    .osago-formula {
        gap: 0.55rem;
        padding: 0.9rem;
    }

    .osago-formula__result {
        width: 100%;
        justify-content: center;
    }

    .osago-formula__factor {
        min-height: 2.15rem;
        font-size: 0.84rem;
    }

    .coefficient-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .coefficient-card {
        padding: 0.9rem;
    }

    .home-content .home-topic h2 {
        font-size: 1.3rem;
    }

    .home-topic > p:first-of-type {
        font-size: 1rem;
    }

    .home-content .home-topic > ol > li {
        min-height: 0;
        padding: 0.9rem 0.9rem 0.9rem 3.2rem;
    }

    .home-content .home-topic > ol > li::before {
        top: 0.85rem;
        left: 0.8rem;
    }

    .wide-table-cards .table-scroll--cards .content-table--cards tbody td:not(:first-child) {
        grid-template-columns: 1fr;
        gap: 0.22rem;
    }
}
.kasko-icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.kasko-guide {
    width: calc(100% - 3rem);
    max-width: 1060px;
    margin: 2rem auto 1.5rem;
    padding: clamp(1.5rem, 3vw, 2.1rem);
    color: #fff;
    background: #103F68;
    border: 1px solid #1B527C;
    border-radius: 22px;
    box-shadow: none;
    box-sizing: border-box;
    overflow: hidden;
}

.kasko-guide__top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1.5rem;
}

.kasko-guide__copy {
    max-width:650px;
    min-width:0;
}

.kasko-guide__eyebrow {
    margin: 0 0 0.5rem;
    color: #7DD3FC;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.kasko-guide h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    line-height: 1.2;
}

.kasko-guide__lead {
    margin: 0.75rem 0 0;
    color: #D7E9F8;
    font-size: 1rem;
    line-height: 1.6;
}

.kasko-guide__nav {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.8rem 1.5rem;
    margin-top: 1.25rem;
}

.kasko-guide__link {
    grid-column: span 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    min-height: 66px;
    padding: 0.8rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(219, 234, 254, 0.18);
    border-radius: 13px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.kasko-guide__link:nth-child(n + 5) { grid-column: span 4; }
.kasko-guide__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(186, 230, 253, 0.42);
}
.kasko-guide__link:focus-visible {
    outline: 3px solid #7DD3FC;
    outline-offset: 3px;
}

.kasko-guide__link > svg {
    width: 26px;
    height: 26px;
    color: #7DD3FC;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.kasko-guide__link span { min-width: 0; }
.kasko-guide__link strong,
.kasko-guide__link small { display: block; }
.kasko-guide__link strong {
    color: #fff;
    font-size: 0.94rem;
    line-height: 1.25;
}
.kasko-guide__link small {
    margin-top: 0.2rem;
    color: #C4DBEB;
    font-size: 0.74rem;
    line-height: 1.35;
}

.md-content.kasko-content {
    max-width: 1060px;
    padding-top: 0.25rem;
    padding-bottom: 3.5rem;
}

.kasko-topic {
    --kasko-color: #0063CC;
    --kasko-soft: #F4F8FC;
    --kasko-border: #DDE7F2;
    min-width: 0;
    margin: 1.35rem 0;
    padding: clamp(1.3rem, 3vw, 2.25rem);
    background: linear-gradient(135deg, var(--kasko-soft) 0, #fff 24%);
    border: 1px solid var(--kasko-border);
    border-radius: 22px;
    box-shadow: none;
    overflow: hidden;
}

.kasko-topic--price { --kasko-color:#A85A08; --kasko-soft:#FFF8EA; --kasko-border:#F1DCB4; }
.kasko-topic--programs { --kasko-color:#6650B8; --kasko-soft:#F5F2FF; --kasko-border:#E1DAF8; }
.kasko-topic--coverage { --kasko-color:#047857; --kasko-soft:#ECFDF5; --kasko-border:#C9F1DE; }
.kasko-topic--credit { --kasko-color:#3155A6; --kasko-soft:#EEF3FF; --kasko-border:#D6E0FA; }
.kasko-topic--docs { --kasko-color:#0F766E; --kasko-soft:#EEFCFA; --kasko-border:#CAEFEA; }
.kasko-topic--claim { --kasko-color:#C2410C; --kasko-soft:#FFF3EC; --kasko-border:#F8D7C4; }
.kasko-topic--summary { --kasko-color:#1D4ED8; --kasko-soft:#EFF6FF; --kasko-border:#D5E5FF; }
.kasko-topic--faq { --kasko-color:#0369A1; --kasko-soft:#F0F9FF; --kasko-border:#CCEAF9; }

.kasko-topic__header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.kasko-topic__icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--kasko-color);
    flex: 0 0 auto;
}
.kasko-topic__icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kasko-topic__heading-copy { min-width: 0; }
.kasko-topic__eyebrow {
    display: block;
    margin: 0.05rem 0 0.25rem;
    color: var(--kasko-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.kasko-content .kasko-topic h2 {
    margin: 0;
    padding: 0;
    color: #172033;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    line-height: 1.23;
}
.kasko-content .kasko-topic h2::after { display:none; }
.kasko-topic > p,
.kasko-topic > h3,
.kasko-topic > ul,
.kasko-topic > blockquote { max-width:74ch; }
.kasko-topic > p:first-of-type { color:#28425F; font-size:1.06rem; }

.kasko-content .kasko-topic > h3 {
    margin-top: 2rem;
    padding-top: 1.15rem;
    color: #172033;
    border-top: 1px solid var(--kasko-border);
    font-size: 1.2rem;
}

.kasko-content .kasko-topic > ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0 1.5rem;
    padding: 0;
}
.kasko-content .kasko-topic > ol > li {
    min-height: 76px;
    margin: 0;
    padding: 1rem 1rem 1rem 3.5rem;
    color: #334155;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--kasko-border);
    border-radius: 12px;
    box-shadow: none;
}
.kasko-content .kasko-topic > ol > li::before {
    top: 1rem;
    left: 0.9rem;
    width: 1.8rem;
    height: 1.8rem;
    color: var(--kasko-color);
    background: var(--kasko-soft);
    font-size: 0.78rem;
    line-height: 1.8rem;
    box-shadow: none;
}

.kasko-content .kasko-topic > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0.55rem 0.9rem;
    margin: 1rem 0 1.35rem;
    padding: 1rem;
    background: rgba(255,255,255,.72);
    border: 1px solid var(--kasko-border);
    border-radius: 12px;
}
.kasko-content .kasko-topic > ul > li { margin:0; }
.kasko-content .kasko-topic > ul > li::before { background:var(--kasko-color); }
.kasko-content .kasko-topic :where(p,li,dd,dt,summary,a) { overflow-wrap:break-word; }

.kasko-content .kasko-topic .table-scroll {
    max-width: 100%;
    margin: 1.35rem 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border-radius: 14px;
}

.kasko-content .kasko-topic table {
    min-width: 720px;
    margin: 0;
    border-color: var(--kasko-border);
    border-radius: 14px;
    box-shadow: none;
}

.kasko-content .kasko-topic thead th {
    color: #172033;
    background: var(--kasko-soft);
    border-color: var(--kasko-border);
}

.kasko-content .faq-accordion details[open] { box-shadow:none; }
.kasko-content .faq-accordion summary:focus-visible {
    outline:3px solid rgba(3,105,161,.24);
    outline-offset:-3px;
    border-radius:10px;
}

.kasko-factor-grid,
.kasko-program-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:.8rem;
    margin:1.35rem 0 1.5rem;
}
.kasko-factor-card,
.kasko-program-card,
.kasko-coverage-item {
    min-width:0;
    padding:1rem;
    background:rgba(255,255,255,.88);
    border:1px solid var(--kasko-border);
    border-radius:12px;
    box-shadow:none;
}
.kasko-card__header {
    display:flex;
    align-items:center;
    gap:.65rem;
    margin-bottom:.75rem;
}
.kasko-card__badge {
    display:inline-grid;
    place-items:center;
    min-width:2.35rem;
    height:2.35rem;
    padding:0 .4rem;
    color:var(--kasko-color);
    background:var(--kasko-soft);
    border:1px solid var(--kasko-border);
    border-radius:9px;
    font-size:.76rem;
    font-weight:800;
    line-height:1;
    flex:0 0 auto;
}
.kasko-content .kasko-topic :is(.kasko-factor-card,.kasko-program-card,.kasko-coverage-item) h3 {
    margin:0;
    padding:0;
    color:#172033;
    border:0;
    font-size:1rem;
    line-height:1.3;
}
.kasko-content .kasko-topic :is(.kasko-factor-card,.kasko-program-card,.kasko-coverage-item) p {
    margin:0;
    color:#526174;
    font-size:.9rem;
    line-height:1.55;
}
.kasko-content .kasko-topic .kasko-card__value {
    margin-bottom:.5rem;
    color:var(--kasko-color);
    font-size:1rem;
    font-weight:800;
    line-height:1.35;
}
.kasko-card__details { margin:.75rem 0 0; }
.kasko-card__details > div {
    padding:.55rem 0;
    border-top:1px solid var(--kasko-border);
}
.kasko-card__details dt {
    margin:0 0 .18rem;
    color:#64748B;
    font-size:.7rem;
    font-weight:800;
    letter-spacing:.06em;
    line-height:1.3;
    text-transform:uppercase;
}
.kasko-card__details dd {
    margin:0;
    color:#3D4B5D;
    font-size:.86rem;
    line-height:1.45;
}

.kasko-coverage-list {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.8rem;
    margin:1.35rem 0 1.5rem;
}
.kasko-coverage-item__check {
    margin-top:.7rem !important;
    padding-top:.7rem;
    border-top:1px solid var(--kasko-border);
}
.kasko-coverage-item__check strong { color:var(--kasko-color); }

@media (max-width:900px) {
    .kasko-guide__nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .kasko-guide__link,
    .kasko-guide__link:nth-child(n + 5) { grid-column:auto; }
    .kasko-guide__link:last-child { grid-column:1 / -1; }
    .kasko-factor-grid,
    .kasko-program-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:768px) {
    .hero-block--kasko .trust-block { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .kasko-guide {
        width:calc(100% - 2rem);
        padding:1.5rem;
        border-radius:18px;
    }
    .kasko-guide__top {
        align-items:stretch;
        flex-direction:column;
        gap:1rem;
    }
    .kasko-guide__top .product-hero-button { width:100%; }
    .md-content.kasko-content { padding-inline:1rem; }
    .kasko-topic { padding:1.25rem; border-radius:18px; }
    .kasko-content .kasko-topic > ol,
    .kasko-content .kasko-topic > ul { grid-template-columns:1fr; }
    .kasko-content .kasko-topic table { min-width:0; }
    .kasko-coverage-list { grid-template-columns:1fr; }
}

@media (max-width:640px) {
    .hero-block--kasko .trust-block { grid-template-columns:1fr; }
    .kasko-factor-grid,
    .kasko-program-grid { grid-template-columns:1fr; gap:.65rem; }
}

@media (max-width:520px) {
    .kasko-guide { padding:1.2rem; }
    .kasko-guide__nav {
        display:flex;
        gap:.65rem;
        margin-right:-1.2rem;
        padding-right:1.2rem;
        overflow-x:auto;
        scroll-snap-type:x proximity;
    }
    .kasko-guide__link,
    .kasko-guide__link:nth-child(n + 5),
    .kasko-guide__link:last-child {
        flex:0 0 210px;
        min-height:62px;
        scroll-snap-align:start;
    }
    .kasko-topic { padding:1.05rem; border-radius:15px; }
    .kasko-topic__icon { width:32px; height:32px; }
    .kasko-topic__icon svg { width:26px; height:26px; }
    .kasko-content .kasko-topic h2 { font-size:1.3rem; }
    .kasko-content .kasko-topic > ol > li {
        min-height:0;
        padding:.9rem .9rem .9rem 3.2rem;
    }
    .kasko-content .kasko-topic > ol > li::before { top:.85rem; left:.8rem; }
    .kasko-factor-card,
    .kasko-program-card,
    .kasko-coverage-item { padding:.9rem; }
}
/* ─── Сетка постов и Карточки ───────────────────────── */
.posts-grid { 
    display: grid; 
    gap: 2rem; 
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
}

.post-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f2f2f2;
}

.post-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.15); 
    border-color: var(--accent-color); 
}

.post-card a { 
    color: inherit; 
    text-decoration: none; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
}

.post-card h2 { 
    margin: 0; 
    font-size: 1.5rem; 
    color: var(--primary-color); 
    line-height: 1.3; 
    position: relative; 
    padding-bottom: 0.5rem; 
}

.post-card h2::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 40px; 
    height: 3px; 
    background: var(--accent-color); 
    border-radius: 2px; 
    transition: width 0.3s; 
}

.post-card:hover h2::after { width: 80px; }

.post-card p { 
    font-size: 0.95rem; 
    color: #777; 
    margin: 1.2rem 0; 
    flex-grow: 1; 
    line-height: 1.6; 
}

.post-meta { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-top: 1rem; 
    border-top: 1px solid #f9f9f9; 
}

.read-more { 
    font-weight: 700; 
    color: var(--accent-color); 
    font-size: 0.9rem; 
}

.date { 
    color: #aaa; 
    font-size: 0.85rem; 
}

/* ─── Мета-информация автора в статьях ─── */
.post-header {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.5rem 1rem 0;
}
.post-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin: 1rem 0 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
}
.post-meta-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.5rem 0 2.5rem;
    padding: 0;
}
.author-avatar-link {
    display: flex;
    align-items: center;
    border: none;
    text-decoration: none;
    transition: transform 0.2s;
}
.author-avatar-link:hover {
    transform: scale(1.05);
}
.author-avatar-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.author-meta-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.author-name-link {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.1;
}
.author-name-link:hover {
    color: var(--primary-color);
}
.author-job-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.3;
    font-weight: 400;
}
.post-date-top {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
    display: block;
    text-align: right;
    width: 100%;
}
@media (max-width: 600px) {
    .post-date-top { text-align: left; }
}
/* ─── Слайдер последних купленных полисов ────────────────── */
.last-buy-container {
    width: 100%;
    margin: 0.5rem 0 1.5rem;
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    gap: 0.4rem;
    opacity: 1 !important; 
    transition: opacity 0.4s ease; 
}

.last-buy-title {
    width: 100%; 
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
    padding-left: 32px; 
}

.lb-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.lb-arrow:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.15);
}

.last-buy-slider {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    flex: 1;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0.25rem 0;
}
.last-buy-slider::-webkit-scrollbar { display: none; }

.last-buy-card {
    flex: 0 0 210px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: all 0.25s ease;
}

.last-buy-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 3px 12px rgba(0, 122, 255, 0.1);
}

.lbc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.lbc-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.3rem;
}

.price-tag { color: var(--accent-color); font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
.car-info { font-size: 0.78rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-info { font-size: 0.72rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-logo { height: 18px; width: auto; max-width: 90px; object-fit: contain; display: block; }
/* ─── Аккордеон FAQ ──────────────────────────────────────── */
.faq-accordion { 
    margin: 1.5rem 0; 
}
.faq-accordion h2 { margin-bottom: .75rem }

.faq-accordion details { 
    border: 1px solid #e2e8f0; 
    border-radius: .5rem; 
    margin-bottom: .5rem; 
    overflow: hidden; 
    background: #fff; 
}

.faq-accordion details[open] { 
    box-shadow: 0 1px 4px rgba(0,0,0,.06); 
}

.faq-accordion summary { 
    cursor: pointer; 
    padding: .875rem 1.125rem; 
    font-weight: 600; 
    font-size: 1.05rem; 
    list-style: none; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: .75rem; 
    transition: background .15s; 
}

.faq-accordion summary:hover { background: #f8fafc; }
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after { 
    content: ''; 
    width: .5rem; height: .5rem; 
    border-right: 2px solid #64748b; border-bottom: 2px solid #64748b; 
    transform: rotate(45deg); transition: transform .2s; 
    flex-shrink: 0; 
}

.faq-accordion details[open] > summary::after { transform: rotate(-135deg); }
.faq-accordion .faq-body { padding: 0 1.125rem 1rem; }
.faq-accordion .faq-body p { margin: 0 0 .5rem; line-height: 1.6; color: #475569; }
.faq-accordion .faq-body p:last-child { margin-bottom: 0 }

@media (max-width: 640px) {
    .faq-accordion summary { font-size: .97rem; padding: .75rem 1rem; }
    .faq-accordion .faq-body { padding: 0 1rem .875rem; }
}
/* ─── Каталог видов страхования (в секциях) ─────────────── */
.section-tags-container {
    --tags-accent: #155E8A;
    --tags-accent-hover: #0F4C70;
    width: 100%;
    max-width: 1060px;
    margin: 2.5rem auto 3rem;
    padding: clamp(1.35rem, 3vw, 2rem);
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid #DCE7EF;
    border-radius: 1.25rem;
    box-shadow: none;
}

.tags-header {
    position: relative;
    margin: 0 0 1.15rem;
    padding: 0;
    color: var(--text-primary);
    font-size: clamp(1.35rem, 2.4vw, 1.62rem);
    font-weight: 750;
    line-height: 1.3;
    text-align: left;
}

.tags-header::after {
    content: none;
    display: none;
}

.tags-cloud-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.tags-cloud {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0;
}

.tag-item {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 3.45rem;
    padding: 0.68rem 2.45rem 0.68rem 1rem;
    box-sizing: border-box;
    color: #304E63;
    background: #F7FAFC;
    border: 1px solid #E0E9EF;
    border-radius: 0.8rem;
    box-shadow: none;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.28;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tag-item::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: 0.95rem;
    color: #6592AD;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-52%);
}

.tag-item__label {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-item:hover {
    color: var(--tags-accent-hover);
    background: #FFFFFF;
    border-color: #9FC1D4;
    box-shadow: none;
    transform: translateY(-2px);
}

.tag-item:hover::after {
    color: var(--tags-accent);
}

.tag-item:focus-visible {
    outline: 3px solid rgba(23, 101, 148, 0.2);
    outline-offset: 2px;
}

/* Общая базовая кнопка также используется списками городов и марок. */
.tags-expand-btn {
    align-self: flex-start;
    padding: 0.4rem 0;
    color: #315F7D;
    background: transparent;
    border: 0;
    border-bottom: 1px dashed #8FA6B6;
    border-radius: 0;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.tags-expand-btn:hover {
    color: #234B68;
    background: transparent;
    border-color: #607F94;
}

.tags-expand-btn:focus-visible {
    outline: 2px solid rgba(49, 95, 125, 0.28);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .section-tags-container {
        width: calc(100% - 2rem);
    }

    .tags-cloud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .section-tags-container {
        width: calc(100% - 1.5rem);
        margin: 1.8rem auto 2.25rem;
        padding: 1.1rem;
        border-radius: 0.9rem;
    }

    .tags-header {
        margin-bottom: 1rem;
        font-size: 1.28rem;
    }

    .tags-cloud { gap: 0.58rem; }

    .tag-item {
        min-height: 3.6rem;
        padding-right: 2rem;
        font-size: 0.84rem;
    }
}

@media (max-width: 420px) {
    .tags-cloud {
        grid-template-columns: 1fr;
    }

    .tag-item {
        min-height: 3.35rem;
    }
}
.product-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 2.85rem;
    padding: 0.68rem 1rem;
    box-sizing: border-box;
    color: #FFFFFF;
    background: #176594;
    border: 1px solid #176594;
    border-radius: 0.75rem;
    box-shadow: none;
    font-size: 0.91rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.product-hero-button:visited {
    color: #FFFFFF;
}

.product-hero-button:hover {
    color: #FFFFFF;
    background: #0F527D;
    border-color: #0F527D;
    box-shadow: none;
}

.md-content a.product-hero-button,
.md-content a.product-hero-button:visited {
    padding: 0.68rem 1rem;
    color: #FFFFFF;
    background-color: #176594;
    background-image: none;
    background-size: 0;
    border-color: #176594;
    text-decoration: none;
}

.md-content a.product-hero-button:hover {
    color: #FFFFFF;
    background-color: #0F527D;
    background-image: none;
    background-size: 0;
    border-color: #0F527D;
}

.product-hero-button:focus-visible {
    outline: 3px solid rgba(23, 101, 148, 0.24);
    outline-offset: 3px;
}

.product-hero-button svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.product-hero-button--guide {
    min-height: 3rem;
    color: #103F68;
    background: #FFFFFF;
    border-color: #FFFFFF;
    flex: 0 0 auto;
}

.product-hero-button--guide:visited {
    color: #103F68;
}

.product-hero-button--guide:hover {
    color: #103F68;
    background: #EAF5FC;
    border-color: #EAF5FC;
}

.product-hero-button--guide:focus-visible {
    outline-color: #7DD3FC;
}

.hero-block[tabindex="-1"]:focus {
    outline: none;
}
/* ─── Главная страница (Стили Hero Landing) ───────────────────── */
.hero {
    margin-bottom: 4rem;
    text-align: left;
    background: linear-gradient(135deg, white 0%, #f0f7fd 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.03);
}

.hero h1 {
    margin-top: 0;
    font-size: 2.5rem;
    color: var(--text-primary);
}

/* ─── Страница-список (Публикации/Теги) ────────────────────── */
.list-header { margin-bottom: 3rem; text-align: center; }

.h1-list-block {
    margin: 0 0 2rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
}

.h1-list-block h2 {
    margin: 0 0 0.8rem;
    font-size: 1.2rem;
}

.h1-list {
    margin: 0;
    padding-left: 1.2rem;
}

.h1-list li {
    margin: 0 0 0.35rem;
}
/* ─── Блок доверия (Trust Block) ───────────────────────── */
.trust-block {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 1.5rem auto 2rem;
}

@media (max-width: 768px) {
    .trust-block {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0 0.5rem;
    }
    .trust-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0.5rem;
        gap: 0.22rem;
    }
    .trust-item span {
        font-size: 0.8rem;
        line-height: 1.25;
    }
    .trust-icon svg {
        width: 20px;
        height: 20px;
    }
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--trust-green-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
}
.trust-icon { color: var(--trust-green); display: flex; align-items: center; }
.trust-icon svg { width: 16px; height: 16px; }

/* ─── Оглавление (TOC Card) ──────────────────────────────────── */
.toc-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}
.toc-title { font-size: 1.15rem; font-weight: 800; color: var(--text-primary); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.65rem; }
.toc-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.toc-item { padding: 0.15rem 0 !important; margin: 0 !important; position: relative; }
.toc-list li::before { display: none !important; }
.toc-item a { color: var(--accent-color); text-decoration: none; font-size: 0.98rem; font-weight: 500; line-height: 1.3; }
.toc-item a:hover { color: var(--primary-color); text-decoration: underline; }
/* ─── Подвал сайта ─────────────────────────────────────────────── */
footer {
    width: 100%;
    max-width: none;
    margin: clamp(3.5rem, 6vw, 5rem) auto 0;
    padding: 0;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    box-sizing: border-box;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: left;
}

.bottom-section {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(2.25rem, 4vw, 3rem) 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
    gap: 2rem clamp(1.5rem, 3vw, 2.75rem);
    align-items: start;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E2E8F0;
    text-align: left;
}

.footer-col {
    min-width: 0;
}

.footer-title {
    margin-bottom: 0.9rem;
    color: #172033;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin: 0;
}

.footer-link {
    color: #536579;
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-link:focus-visible {
    color: var(--accent-color);
    outline: 2px solid rgba(0, 122, 255, 0.28);
    outline-offset: 3px;
    border-radius: 3px;
}

.footer-legal {
    padding-top: 1.25rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    color: #526173;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.footer-brand__separator {
    width: 1px;
    height: 1.05rem;
    background: #CBD5E1;
}

.footer-legal__link {
    color: #526173;
    font: inherit;
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.footer-legal__link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-legal__link:focus-visible {
    color: var(--accent-color);
    outline: 2px solid rgba(0, 122, 255, 0.28);
    outline-offset: 3px;
    border-radius: 3px;
}

.disclaimer {
    max-width: 820px;
    margin: 0.72rem auto 0;
    color: #8A98AA;
    font-size: 0.76rem;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }

    .footer-col,
    .footer-col:nth-child(n + 4) {
        grid-column: auto;
    }
}

@media (max-width: 680px) {
    .bottom-section {
        padding: 2rem 1rem 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem 1rem;
        padding-bottom: 1.75rem;
    }

    .footer-col,
    .footer-col:nth-child(n + 4) {
        grid-column: auto;
    }

    .footer-col:first-child,
    .footer-col:nth-child(n + 4) {
        grid-column: 1 / -1;
    }

    .footer-legal {
        padding-top: 1rem;
    }

    .footer-brand {
        flex-direction: column;
        gap: 0.2rem;
    }

    .footer-brand__separator {
        display: none;
    }
}

@media (max-width: 380px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col,
    .footer-col:first-child,
    .footer-col:nth-child(n + 4) {
        grid-column: 1 / -1;
    }
}

/* ─── Prefooter Widget ─────────────────────────────────── */
.prefooter-widget {
    margin: 2rem auto;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    border-radius: 20px;
    max-width: 812px !important;
    border: 1px solid #E2E8F0;
    text-align: left;
}

.prefooter-widget .widget-card {
    margin: 0 auto;
    max-width: 550px;
    padding-top: 0;
}

.cta-title { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }

@media (max-width: 600px) {
    .prefooter-widget {
        margin: 3rem 0 1rem;
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    .cta-title { font-size: 1.1rem; }
}
