/* InsureHub — обычный CSS без фреймворков. Оформление повторяет исходный макет:
   шрифт Inter, тёмно-синий верх, синий акцент, белые карточки с мягкой тенью.
   Цвета и размеры меняются переменными в :root. */

:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --ink: #1e293b;
    --ink-strong: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-50: #eef2ff;
    --brand-100: #e0e7ff;
    --night: #0b1120;
    --night-2: #111827;
    --amber: #f59e0b;
    --green: #059669;
    --radius: 1rem;
    --radius-sm: 0.625rem;
    --shadow: 0 0.25rem 1.25rem -0.125rem rgba(0, 0, 0, .05), 0 0.125rem 0.375rem -1px rgba(0, 0, 0, .03);
    --shadow-hover: 0 0.75rem 1.75rem -0.25rem rgba(0, 0, 0, .1);
    --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --wrap: 105rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { color: var(--ink-strong); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: 0.1875rem solid var(--amber); outline-offset: 0.125rem; border-radius: 0.25rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 2.2vw, 2rem); }
.section { padding: 3rem 0; }
.section--tight { padding: 1.75rem 0; }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.375rem; flex-wrap: wrap; }
.section-head h2 { margin: 0 0 0.25rem; }
.section-head p { color: var(--muted); font-size: .92rem; margin: 0; }
.link-more { font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- верхняя полоса и шапка ---------- */
.utility { background: var(--night); color: #cbd5e1; font-size: .75rem; }
.utility .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; }
.utility a { color: #cbd5e1; text-decoration: none; }
.utility a:hover { color: #fff; }
.utility .hide-sm { color: #94a3b8; }

.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-header .wrap { display: flex; align-items: center; gap: 1.75rem; min-height: 4.75rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink-strong); flex: none; }
.logo-mark { width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 0.25rem 0.625rem rgba(37, 99, 235, .35); }
.logo-text { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.logo-text b { color: var(--brand); font-weight: 800; }
.logo-sub { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #94a3b8; font-weight: 700; margin-top: 1px; }

.nav { display: flex; align-items: center; gap: 0.125rem; flex: 1; }
.nav > a, .nav > details > summary { list-style: none; cursor: pointer; padding: 0.625rem 0.875rem; border-radius: 0.5rem; text-decoration: none; color: #334155; font-weight: 500; font-size: .93rem; display: flex; align-items: center; gap: 0.4375rem; white-space: nowrap; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary .fa-angle-down { font-size: .7rem; opacity: .6; transition: transform .15s; }
.nav details[open] > summary .fa-angle-down { transform: rotate(180deg); }
.nav > a:hover, .nav > details > summary:hover, .nav details[open] > summary, .nav a[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 0.625rem; }
.btn-search { display: flex; align-items: center; gap: 0.5625rem; background: #fff; border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: .9rem; padding: 0.5625rem 1rem; border-radius: 0.625rem; cursor: pointer; }
.btn-search:hover { border-color: var(--brand); color: var(--brand); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 0.625rem; padding: 0.5625rem 0.875rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

/* мега-меню */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1.5rem 2.5rem -1.25rem rgba(15, 23, 42, .25); }
.mega-inner { max-width: var(--wrap); margin: 0 auto; padding: 1.75rem clamp(1rem, 2.2vw, 2rem) 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.mega .col-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; margin-bottom: 0.75rem; }
.mega ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.125rem; }
.mega a { display: block; padding: 0.4375rem 0.625rem; margin: 0 -0.625rem; border-radius: 0.5rem; color: #334155; text-decoration: none; font-size: .93rem; }
.mega a:hover { background: var(--brand-50); color: var(--brand); }
.mega .mega-all { margin-top: 0.625rem; font-weight: 600; color: var(--brand); }

@media (max-width: 1180px) {
    .site-header .wrap { gap: .9rem; }
    .nav > a, .nav > details > summary { padding: .6rem .65rem; font-size: .88rem; }
    .logo-sub { display: none; }
    .btn-search { padding: .55rem .8rem; }
}
@media (max-width: 920px) {
    .site-header .wrap { gap: 0.75rem; }
    .menu-toggle { display: block; }
    .nav-end { margin-left: auto; }
    .btn-search span { display: none; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 0.625rem 1.5rem 1.25rem; max-height: calc(100vh - 6.25rem); overflow-y: auto; }
    .nav.is-open { display: flex; }
    .mega { position: static; box-shadow: none; border: 0; }
    .mega-inner { grid-template-columns: 1fr; padding: 0.25rem 0 0.5rem 0.75rem; gap: 1rem; }
}

/* поиск */
.search-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(11, 17, 32, .7); display: none; padding: 5rem 1rem 1rem; }
.search-overlay.is-open { display: block; }
.search-box { max-width: 42.5rem; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: 0 1.875rem 3.75rem -1.25rem rgba(0, 0, 0, .5); overflow: hidden; }
.search-box input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 1.25rem 1.5rem; font: inherit; font-size: 1.1rem; outline: none; }
.search-results { list-style: none; margin: 0; padding: 0.5rem; max-height: 55vh; overflow-y: auto; }
.search-results a { display: block; padding: 0.6875rem 1rem; border-radius: 0.625rem; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: var(--brand-50); }
.search-results small { display: block; color: var(--muted); font-size: .8rem; }
.search-hint { padding: 1rem 1.5rem; color: var(--muted); font-size: .9rem; }

/* ---------- hero ---------- */
.hero { background: var(--night); color: #fff; position: relative; overflow: hidden; padding: 3rem 0 3.5rem; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .1; background: radial-gradient(#fff 1px, transparent 1px) 0 0 / 1rem 1rem; }
.hero::after { content: ""; position: absolute; right: -7.5rem; top: -10rem; width: 35rem; height: 35rem; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, .45), transparent 65%); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 30ch; }
.hero-lead { color: #cbd5e1; font-size: 1.1rem; max-width: 62ch; margin-bottom: 1.625rem; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 0.5rem 0.625rem; margin-top: 1.125rem; align-items: center; color: #94a3b8; font-size: .85rem; }
.hero-quick a { color: #e2e8f0; text-decoration: none; padding: 0.3125rem 0.8125rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 62.4375rem; }
.hero-quick a:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.band { background: var(--night); color: #fff; padding: 1.875rem 0 2.125rem; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; opacity: .08; background: radial-gradient(#fff 1px, transparent 1px) 0 0 / 1rem 1rem; }
.band .wrap { position: relative; }
.band h1 { color: #fff; margin: 0.5rem 0 0.5rem; }
.band p { color: #cbd5e1; max-width: 70ch; margin: 0; }
.band--photo { background-size: cover; background-position: center; }
.band--photo::before { opacity: 1; background: linear-gradient(90deg, rgba(11, 17, 32, .92), rgba(11, 17, 32, .55)); }
.crumbs { font-size: .8rem; color: #94a3b8; }
.crumbs a { color: #94a3b8; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs i { font-size: .55rem; margin: 0 0.5rem; opacity: .7; }
.crumbs--light { color: var(--muted); margin-bottom: 1.125rem; }
.crumbs--light a { color: var(--muted); }
.crumbs--light a:hover { color: var(--brand); }

/* ---------- виджеты ---------- */
.widget-card { background: #fff; color: var(--ink); border-radius: 1.25rem; padding: 1.125rem; box-shadow: 0 1.5rem 3.75rem -1.5rem rgba(0, 0, 0, .5); }
.widget-card--flat { box-shadow: var(--shadow); border: 1px solid var(--line); }
.widget-host { min-height: 30.5rem; }
.widget-host:empty { background: linear-gradient(90deg, #f1f5f9, #e8eef5, #f1f5f9); border-radius: .75rem; }
.tabs { display: flex; gap: 0.375rem; overflow-x: auto; padding-bottom: 0.875rem; margin-bottom: 0.875rem; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tab { flex: none; border: 1px solid transparent; background: none; font: inherit; font-weight: 500; font-size: .92rem; color: #475569; padding: 0.5625rem 1rem; border-radius: 0.625rem; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 0.5rem; }
.tab:hover { background: #f1f5f9; }
.tab[aria-selected="true"] { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); font-weight: 600; }
.tab-panel[hidden] { display: none; }

/* ---------- каталог видов страхования (как на Банки.ру) ---------- */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.375rem; }
@media (max-width: 1000px) { .groups { grid-template-columns: 1fr; } }
.group h3 { font-size: 1.05rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.625rem; }
.group h3 i { color: var(--brand); }
.tiles { display: grid; gap: 0.75rem; }
.tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: 0.875rem; padding: 1rem 1.125rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-0.1875rem); box-shadow: var(--shadow-hover); color: var(--ink); }
.tile strong { display: block; color: var(--ink-strong); font-size: 1rem; margin-bottom: 0.25rem; }
.tile span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.tile em { display: inline-block; margin-top: 0.625rem; font-style: normal; color: var(--brand); font-weight: 600; font-size: .86rem; }
.tile .tile-ico { float: right; width: 2.375rem; height: 2.375rem; border-radius: 0.625rem; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-left: 0.75rem; }

/* ---------- карточки ---------- */
.grid { display: grid; gap: 1.375rem; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-0.1875rem); box-shadow: var(--shadow-hover); color: var(--ink); }
.card-body { padding: 1.125rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 0.375rem; }
.card-body p { color: var(--muted); font-size: .88rem; margin: 0; }
.card-foot { margin-top: auto; padding-top: 0.875rem; font-weight: 600; font-size: .86rem; color: var(--brand); }
.card-photo { height: 9.375rem; background-size: cover; background-position: center; }
.card-cover { height: 5.75rem; display: grid; place-items: center; font-size: 2rem; color: #fff; }
.cover-travel { background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.cover-auto { background: linear-gradient(135deg, #334155, #1d4ed8); }
.cover-home { background: linear-gradient(135deg, #0d9488, #2563eb); }
.cover-health { background: linear-gradient(135deg, #059669, #0ea5e9); }
.cover-tips { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 0.1875rem 0.625rem; border-radius: 62.4375rem; background: var(--brand-50); color: var(--brand); }
.card .tag { align-self: flex-start; margin-bottom: 0.625rem; }

.companies { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .9rem; }
.company { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 0.875rem; padding: 0.75rem; text-align: left; cursor: pointer; font: inherit; color: inherit; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.company:hover { transform: translateY(-0.1875rem); box-shadow: var(--shadow-hover); }
.company .thumb { display: block; height: 9.375rem; overflow: hidden; border-radius: 0.5rem; background: #f8fafc; border: 1px solid var(--line); }
.company img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.company strong { display: block; margin-top: 0.625rem; color: var(--ink-strong); font-size: .95rem; }
.company small { color: var(--brand); font-weight: 500; font-size: .8rem; }

/* справочник ссылок (как «Виды ОСАГО» на Банки.ру) */
.directory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
@media (max-width: 1000px) { .directory { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .directory { grid-template-columns: 1fr; } }
.directory h3 { font-size: .98rem; margin-bottom: 0.625rem; }
.directory ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4375rem; }
.directory a { text-decoration: none; font-size: .92rem; color: #334155; }
.directory a:hover { color: var(--brand); text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.chips a { display: block; padding: 0.4375rem 0.9375rem; border-radius: 62.4375rem; background: #fff; border: 1px solid var(--line); color: #334155; text-decoration: none; font-size: .88rem; }
.chips a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.375rem 1fr; gap: 0.875rem; align-items: start; }
.steps li::before { content: counter(step); width: 2.375rem; height: 2.375rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.note { background: #fff; border: 1px solid var(--line); border-left: 0.25rem solid var(--brand); border-radius: var(--radius-sm); padding: 1.125rem 1.375rem; box-shadow: var(--shadow); }
.note p:last-child { margin-bottom: 0; }

/* ---------- страницы со статьёй и боковой колонкой ---------- */
.content { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 21rem; gap: 2rem; align-items: start; }
@media (max-width: 1400px) { .content { grid-template-columns: minmax(0, 1fr) 21rem; } .content-toc { display: none; } }
@media (max-width: 1000px) { .content { grid-template-columns: 1fr; } }
.prose { max-width: 78ch; }
.prose--panel > :not(table):not(.faq):not(.note):not(.post-meta) { max-width: 82ch; }
.prose--panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.875rem 2.125rem; max-width: none; }
@media (max-width: 640px) { .prose--panel { padding: 20px; } }
.prose h2 { margin-top: 1.7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: #f1f5f9; font-weight: 600; }
.lead { font-size: 1.08rem; color: #334155; }
.content-toc { position: sticky; top: 5rem; font-size: .9rem; }
.content-toc h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: .7rem; }
.content-toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; border-left: 2px solid var(--line); }
.content-toc a { display: block; padding: .35rem .8rem; margin-left: -2px; border-left: 2px solid transparent; color: #475569; text-decoration: none; line-height: 1.35; }
.content-toc a:hover { color: var(--brand); border-left-color: var(--brand); }
.prose h2 { scroll-margin-top: 5.5rem; }
.aside { position: sticky; top: 6rem; display: grid; gap: 1.125rem; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.125rem 1.25rem; }
.box h3 { font-size: .98rem; }
.box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5625rem; }
.box a { text-decoration: none; font-size: .92rem; color: #334155; }
.box a:hover { color: var(--brand); text-decoration: underline; }
.box--cta { background: var(--night); border-color: var(--night); color: #cbd5e1; }
.box--cta h3 { color: #fff; }
.box--cta p { font-size: .88rem; }
.btn { display: inline-block; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; padding: 0.6875rem 1.375rem; border-radius: 0.75rem; border: 0; cursor: pointer; font: inherit; font-weight: 600; box-shadow: 0 0.25rem 0.75rem rgba(37, 99, 235, .3); }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn--light { background: #fff; color: var(--brand); box-shadow: none; }
.btn--light:hover { background: var(--brand-50); color: var(--brand-dark); }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 0.75rem; margin-bottom: 0.625rem; }
.faq summary { cursor: pointer; padding: 0.9375rem 1.25rem; font-weight: 600; color: var(--ink-strong); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.35rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 1.25rem 1rem; color: #334155; }
.faq .answer p:last-child { margin-bottom: 0; }

.post-meta { display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; color: var(--muted); font-size: .85rem; margin-bottom: 1.125rem; align-items: center; }
.disclaimer { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.875rem; margin-top: 1.75rem; }

/* список новостей */
.news-list { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.news-item { display: grid; grid-template-columns: 8.125rem 1fr auto; gap: 1.125rem; align-items: baseline; padding: 1rem 1.375rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: var(--brand-50); color: var(--ink); }
.news-date { color: var(--muted); font-size: .85rem; }
.news-title { font-weight: 600; color: var(--ink-strong); }
.news-tag { font-size: .75rem; font-weight: 700; color: var(--brand); background: var(--brand-50); padding: 0.1875rem 0.625rem; border-radius: 62.4375rem; white-space: nowrap; }
@media (max-width: 700px) { .news-item { grid-template-columns: 1fr; gap: 4px; } .news-tag { justify-self: start; } }

/* справочник терминов */
.az { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1.625rem; }
.az a { min-width: 2.25rem; text-align: center; padding: 0.375rem 0.625rem; border-radius: 0.5rem; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: #334155; font-size: .9rem; }
.az a:hover { border-color: var(--brand); color: var(--brand); }
.term { background: #fff; border: 1px solid var(--line); border-radius: 0.875rem; padding: 1.125rem 1.375rem; margin-bottom: 0.875rem; box-shadow: var(--shadow); scroll-margin-top: 6.25rem; }
.term h3 { margin-bottom: 0.375rem; }
.term p { margin: 0; color: #334155; }
.term .rel { margin-top: 0.625rem; font-size: .85rem; }

/* ---------- подвал ---------- */
.site-footer { background: var(--night); color: #94a3b8; font-size: .82rem; padding: 3rem 0 1.75rem; border-top: 1px solid #1e293b; }
.site-footer a { color: #94a3b8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 1200px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer .col-title { color: #fff; font-size: .9rem; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5625rem; }
.footer-brand .logo-text { color: #fff; font-size: 1.3rem; }
.footer-legal { border-top: 1px solid #1e293b; padding-top: 1.375rem; font-size: .74rem; line-height: 1.65; color: #64748b; }
.footer-legal p { margin: 0 0 0.5rem; }

/* окно просмотра договора */
.viewer { position: fixed; inset: 0; z-index: 130; background: rgba(11, 17, 32, .88); overflow-y: auto; padding: 1rem; display: none; }
.viewer.is-open { display: block; }
.viewer-bar { max-width: 48.75rem; margin: 0 auto 0.625rem; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; color: #fff; }
.viewer-close { background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 0.625rem; padding: 0.5625rem 1rem; font: inherit; font-weight: 600; cursor: pointer; }
.viewer-close:hover { background: rgba(255, 255, 255, .26); }
.viewer img { max-width: 48.75rem; width: 100%; margin: 0 auto; background: #fff; border-radius: 0.5rem; }

/* ---------- компактная вертикаль: текст обычного размера, меньше пустого места ---------- */
body { line-height: 1.55; }
.section { padding: 2.1rem 0; }
.section--tight { padding: 1.1rem 0; }
.section-head { margin-bottom: 1rem; }
.utility .wrap { padding-block: .35rem; }
.site-header .wrap { min-height: 3.9rem; }
.logo-mark { width: 2.5rem; height: 2.5rem; font-size: 1.25rem; }
.logo-text { font-size: 1.4rem; }
.hero { padding: 1.9rem 0 2.2rem; }
.hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.55rem); max-width: 36ch; margin-bottom: .3em; }
.hero-lead { font-size: 1rem; margin-bottom: 1.1rem; }
.hero-quick { margin-top: .9rem; }
.band { padding: 1.2rem 0 1.4rem; }
.band h1 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); margin: .35rem 0 .35rem; }
.widget-card { padding: .85rem; border-radius: 1rem; }
.widget-card--flat { padding: .5rem; }
.tabs { padding-bottom: .65rem; margin-bottom: .65rem; }
.tab { padding: .5rem .9rem; }
.grid { gap: 1rem; }
.groups { gap: 1.25rem; }
.tiles { gap: .65rem; }
.tile { padding: .8rem 1rem; }
.card-body { padding: .85rem 1.05rem 1rem; }
.card-photo { height: 7.25rem; }
.card-cover { height: 4.5rem; }
.company .thumb { height: 7rem; }
.news-item { padding: .8rem 1.2rem; }
.prose--panel { padding: 1.5rem 1.75rem; }
.prose h2 { margin-top: 1.4em; }
.aside { gap: .9rem; top: 5rem; }
.box { padding: .9rem 1.1rem; }
.site-footer { padding: 2rem 0 1.1rem; }
.footer-grid { margin-bottom: 1.5rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* рейтинг компаний */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.rating-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rating-table th { text-align: left; padding: .7rem 1rem; background: #f1f5f9; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
.rating-table td { padding: .7rem 1rem; border-top: 1px solid var(--line); vertical-align: middle; }
.rating-table .num { text-align: right; width: 5rem; }
.rating-table th:nth-child(1), .rating-table td:nth-child(1) { width: 3rem; text-align: center; color: #94a3b8; }
.stars { color: var(--amber); letter-spacing: 1px; font-size: .85rem; white-space: nowrap; }
.score { margin-left: .35rem; color: var(--ink-strong); }
.rate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.rate-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; display: grid; gap: .25rem; }
.rate-card strong { color: var(--ink-strong); }
.rating-line { display: block; margin-top: .15rem; font-size: .85rem; font-weight: 600; color: var(--ink-strong); }
.rating-line i { color: var(--amber); }

/* лента «Новости и статьи» */
.feed-tabs { display: flex; gap: 1.4rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin: .6rem 0 1.2rem; scrollbar-width: none; }
.feed-tab { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-weight: 500; color: #64748b; padding: .6rem 0; margin-bottom: -1px; cursor: pointer; }
.feed-tab:hover { color: var(--brand); }
.feed-tab.is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.feed-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 1.25rem; }
@media (max-width: 1000px) { .feed-grid { grid-template-columns: 1fr; } }
.feed-card { background: #fff; border-radius: 1.25rem; padding: 1.4rem 1.6rem 1.2rem; box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 0; }
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.feed-head h3 { font-size: 1.15rem; margin: 0; }
.feed-head a { font-size: .8rem; text-decoration: none; color: var(--brand); white-space: nowrap; }
.feed-item { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.feed-item:last-of-type { border-bottom: 0; }
.feed-title { display: block; font-weight: 600; font-size: 1.02rem; line-height: 1.4; color: var(--ink-strong); }
.feed-item:hover .feed-title { color: var(--brand); }
.feed-meta { display: block; margin-top: .4rem; font-size: .82rem; color: #64748b; }
.feed-meta i { margin-right: .25rem; opacity: .7; }
.rail { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .4rem 0 .6rem; scrollbar-width: thin; }
.acard { flex: none; width: 15.5rem; scroll-snap-align: start; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.acard-cover { position: relative; display: grid; place-items: center; height: 9rem; border-radius: 1rem; background-size: cover; background-position: center; color: #fff; font-size: 2.2rem; overflow: hidden; }
.acard-chip { position: absolute; left: .7rem; bottom: .6rem; background: #fff; color: var(--ink); font-size: .72rem; font-weight: 600; padding: .15rem .6rem; border-radius: .5rem; }
.acard-title { margin-top: .7rem; font-weight: 600; font-size: .98rem; line-height: 1.4; color: var(--ink-strong); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acard:hover .acard-title { color: var(--brand); }
.acard-meta { margin-top: auto; padding-top: .6rem; font-size: .8rem; color: #64748b; }
.feed-empty { color: #64748b; font-size: .9rem; margin: .8rem 0 0; }

.vote{margin-top:2rem;padding:1.25rem 1.5rem;border:1px solid var(--line,#e2e8f0);border-radius:.75rem;background:#f8fafc}
.vote-q{margin:0 0 .75rem;font-weight:600}
.vote-btns{display:flex;gap:.75rem;flex-wrap:wrap}
.vote-thanks{margin:0;color:#0f766e;font-weight:500}
.vote .btn--light{border:1px solid var(--line)}

/* Фото в статьях и новостях */
.hero-fig { margin: 0 0 1.5rem; }
.hero-fig img { display: block; width: 100%; height: auto; max-height: 26rem; object-fit: cover; border-radius: 1rem; background: #e2e8f0; }
.hero-fig figcaption { margin-top: .5rem; font-size: .75rem; color: #94a3b8; }
.hero-fig figcaption a { color: inherit; text-decoration: underline; }

/* Страница новостей: карточки с фото */
.news-top { margin: 0 0 1.5rem; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.5rem 1.25rem; }
.ncard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.ncard-cover { display: grid; place-items: center; height: 11rem; border-radius: 1rem; background-size: cover; background-position: center; color: #fff; font-size: 2.4rem; background-color: #e2e8f0; }
.ncard-body { display: flex; flex-direction: column; gap: .45rem; margin-top: .8rem; }
.ncard-meta { font-size: .8rem; color: #64748b; display: flex; align-items: center; gap: .6rem; }
.ncard-title { font-weight: 700; font-size: 1.05rem; line-height: 1.35; color: var(--ink-strong); }
.ncard:hover .ncard-title { color: var(--brand); }
.ncard-lead { color: #475569; line-height: 1.55; }
.ncard--big { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.75rem; align-items: center; }
.ncard--big .ncard-cover { height: 20rem; }
.ncard--big .ncard-body { margin-top: 0; }
.ncard--big .ncard-title { font-size: 1.7rem; line-height: 1.25; }
@media (max-width: 800px) { .ncard--big { grid-template-columns: 1fr; } .ncard--big .ncard-cover { height: 13rem; } .ncard--big .ncard-title { font-size: 1.35rem; } }

/* Главная: новости с фото и статьи сеткой */
.feed-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.5rem; }
.feed-item { display: flex; gap: 1rem; align-items: center; }
.feed-text { display: block; min-width: 0; }
.feed-thumb { flex: none; width: 6.5rem; height: 4.6rem; border-radius: .75rem; background: #e2e8f0 center / cover no-repeat; }
.feed-item--big { display: block; padding-top: .4rem; }
.feed-item--big .feed-thumb { display: block; width: 100%; height: 13rem; border-radius: 1rem; margin-bottom: .9rem; }
.feed-item--big .feed-title { font-size: 1.25rem; line-height: 1.3; }
.feed-lead { display: block; margin-top: .45rem; color: #475569; line-height: 1.5; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.4rem 1.1rem; overflow: visible; padding: .4rem 0 0; }
.rail--grid .acard { width: auto; }
.rail--grid .acard-cover { height: 8rem; }
@media (max-width: 560px) { .feed-thumb { width: 5rem; height: 3.8rem; } }
.vote [hidden] { display: none !important; }

/* Журнал: навигатор */
.jbar { position: sticky; top: 4.2rem; z-index: 20; background: rgba(248, 250, 252, .96); backdrop-filter: blur(.5rem); padding: .9rem 0 .7rem; margin-bottom: .75rem; border-bottom: 1px solid var(--line); }
.jsearch { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: .85rem; padding: .7rem 1rem; max-width: 40rem; }
.jsearch:focus-within { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12); }
.jsearch i { color: #94a3b8; }
.jsearch input { flex: 1; border: 0; outline: 0; font: inherit; background: transparent; min-width: 0; }
.jchips, .jtopics { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.jchip { border: 1px solid var(--line); background: #fff; border-radius: 2rem; padding: .45rem 1rem; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink); }
.jchip span { color: #94a3b8; font-weight: 500; margin-left: .25rem; }
.jchip:hover { border-color: var(--brand); color: var(--brand); }
.jchip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.jchip.is-active span { color: rgba(255, 255, 255, .8); }
.jsub { border: 0; background: #e8eefc; color: var(--brand-dark, #1d4ed8); border-radius: .6rem; padding: .35rem .8rem; font: inherit; font-size: .85rem; cursor: pointer; }
.jsub:hover { background: #dbe6fd; }
.jsub.is-active { background: var(--brand-dark, #1d4ed8); color: #fff; }
.jcount { margin: 0 0 1rem; color: #64748b; font-size: .9rem; min-height: 1.3rem; }
.jgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.5rem 1.25rem; }
.jcard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.jcard[hidden] { display: none; }
.jcard-cover { display: grid; place-items: center; height: 9rem; border-radius: 1rem; background-size: cover; background-position: center; background-color: #e2e8f0; color: #fff; font-size: 2.2rem; }
.jcard-body { display: flex; flex-direction: column; gap: .35rem; margin-top: .7rem; flex: 1; }
.jcard-tag { font-size: .75rem; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .02em; }
.jcard-title { font-weight: 600; line-height: 1.38; color: var(--ink-strong); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jcard:hover .jcard-title { color: var(--brand); }
.jcard-meta { margin-top: auto; padding-top: .3rem; font-size: .8rem; color: #64748b; }
.jempty { text-align: center; color: #64748b; padding: 2rem 0; }
.jmore-wrap { text-align: center; margin: 2rem 0 0; }
@media (max-width: 700px) { .jbar { top: 3.6rem; } .jchips, .jtopics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .jchip, .jsub { flex: none; } }
.jtopics[hidden], .jmore-wrap [hidden], .jempty[hidden] { display: none !important; }
@media (max-width: 700px) {
  .jgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem .8rem; }
  .jcard-cover { height: 6.2rem; border-radius: .75rem; }
  .jcard-title { font-size: .88rem; line-height: 1.32; -webkit-line-clamp: 4; }
  .jcard-tag { font-size: .65rem; }
  .jcard-meta { font-size: .72rem; }
}

.jtypes { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: .2rem; }
.jtype { background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-weight: 600; color: #64748b; padding: .4rem 0 .6rem; margin-bottom: -1px; cursor: pointer; }
.jtype span { color: #94a3b8; font-weight: 500; margin-left: .2rem; }
.jtype:hover { color: var(--brand); }
.jtype.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.jcard-tag--news { color: #b45309; }
.feed-item[hidden], .acard[hidden], .ncard[hidden], .feed-empty[hidden] { display: none !important; }

.col-title { margin: 0 0 .75rem; font-weight: 700; }

/* Лимит ленты до работы JS — без скачка макета (CLS) */
.feed-list[data-limit="6"]:not(.is-ready) > [data-tag]:nth-child(n+7), .rail[data-limit="6"]:not(.is-ready) > [data-tag]:nth-child(n+7) { display: none; }

/* страница «Обо мне» */
.utility-links { display: flex; gap: 1.25rem; }
.utility-links .fa-user { margin-right: .25rem; }
.about { display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: 2.5rem; align-items: start; }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hover); border: 1px solid var(--line); background: #fff; position: sticky; top: 6rem; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 671 / 840; object-fit: cover; object-position: center top; display: block; }
.about-text h2 { margin-top: 1.5em; }
.about-text h2:first-child { margin-top: 0; }
.about-contacts { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1.25rem; }
.about-contacts .btn { display: inline-flex; align-items: center; gap: .5rem; }
.about-contacts .btn--light { border: 1px solid var(--line); }
.btn--wa { background: #25d366; box-shadow: 0 .25rem .75rem rgba(37, 211, 102, .3); }
.btn--wa:hover { background: #1ebe5b; }
.btn--tg { background: #229ed9; box-shadow: 0 .25rem .75rem rgba(34, 158, 217, .3); }
.btn--tg:hover { background: #1b8ac0; }
@media (max-width: 760px) {
    .about { grid-template-columns: 1fr; gap: 1.5rem; }
    .about-photo { position: static; max-width: 18rem; }
}

/* частые запросы под карточками на главной: аккуратный список вместо «пилюль» */
.subs { margin-top: .85rem; background: #fff; border: 1px solid var(--line); border-radius: .875rem; box-shadow: var(--shadow); overflow: hidden; }
.subs-title { margin: 0; padding: .7rem 1rem .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.subs-list { list-style: none; margin: 0; padding: 0 0 .25rem; }
.subs-list li + li { border-top: 1px solid #eef2f7; }
.subs-list a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 1rem; color: var(--ink); text-decoration: none; font-size: .92rem; transition: background .15s ease, color .15s ease; }
.subs-list a i { font-size: .72rem; color: #94a3b8; transition: transform .15s ease, color .15s ease; }
.subs-list a:hover, .subs-list a:focus-visible { background: var(--brand-50); color: var(--brand-dark); }
.subs-list a:hover i, .subs-list a:focus-visible i { color: var(--brand); transform: translateX(.2rem); }

/* ровная сетка карточек видов страхования */
.tiles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1180px) { .tiles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tiles-grid { grid-template-columns: 1fr; gap: .85rem; } }
.tiles-grid .tile { position: relative; display: flex; flex-direction: column; padding: 1.15rem 1.25rem 1.1rem; min-height: 11.5rem; }
.tiles-grid .tile-ico { position: absolute; top: 1.05rem; right: 1.05rem; float: none; margin: 0; }
.tile-cat { display: block; margin-bottom: .45rem; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); }
.tiles-grid .tile strong { padding-right: 3rem; font-size: 1.05rem; }
.tiles-grid .tile em { margin-top: auto; padding-top: .75rem; }
.tile--cta { background: var(--night); border-color: var(--night); color: #fff; justify-content: center; }
.tile--cta strong { color: #fff; }
.tile--cta span:not(.tile-ico) { color: #cbd5e1; }
.tile--cta .tile-ico { background: rgba(255, 255, 255, .12); color: #fff; }
.tile--cta em { color: #93c5fd; }
.tile--cta:hover { color: #fff; background: #111a30; }

/* лента на главной: без фото — цветная заставка рубрики; лимиты 5 новостей и 12 статей выравнивают колонки */
.feed-thumb--cover { display: grid; place-items: center; color: rgba(255, 255, 255, .92); font-size: 1.4rem; background-size: auto; }
.feed-item--big .feed-thumb--cover { font-size: 3rem; }
.feed-list[data-limit="5"]:not(.is-ready) > [data-tag]:nth-child(n+6), .rail[data-limit="9"]:not(.is-ready) > [data-tag]:nth-child(n+10) { display: none; }
.feed-thumb--cover.cover-travel { background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.feed-thumb--cover.cover-auto { background: linear-gradient(135deg, #334155, #1d4ed8); }
.feed-thumb--cover.cover-home { background: linear-gradient(135deg, #0d9488, #2563eb); }
.feed-thumb--cover.cover-health { background: linear-gradient(135deg, #059669, #0ea5e9); }
.feed-thumb--cover.cover-tips { background: linear-gradient(135deg, #7c3aed, #2563eb); }
