/* Тема SEOPAS поверх Tabler: переменные, шрифт, скругления, цвета */
:root, [data-bs-theme=light] {
  --tblr-font-sans-serif: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tblr-body-bg: #fff;
  --tblr-body-color: #09090b;
  --tblr-secondary: #71717a;
  --tblr-secondary-color: #71717a;
  --tblr-muted: #71717a;
  --tblr-border-color: #e4e4e7;
  --tblr-border-radius: .5rem;
  --tblr-border-radius-lg: .7rem;
  --tblr-primary: #1652f0;
  --tblr-primary-rgb: 22, 82, 240;
  --tblr-primary-fg: #fff;
  --tblr-primary-lt: #eff4ff;
  --tblr-primary-lt-rgb: 239, 244, 255;
  --tblr-link-color: #1652f0;
  --tblr-link-color-rgb: 22, 82, 240;
  --tblr-link-hover-color: #1243c4;
  --tblr-card-border-color: #e8eaee;
  --tblr-bg-surface-tertiary: #f6f7f9;
  
}
body { font-feature-settings: "cv11", "ss01"; letter-spacing: -.005em; }
h1, h2, h3, .h1, .h2, .h3, .page-title, .card-title { letter-spacing: -.02em; font-weight: 700; }
.card { border-radius: 16px; border: 1px solid #e8eaee; box-shadow: none; }
.card-header { border-bottom-color: #f0f0f1; }
.list-group-flush > .list-group-item { border-color: #f0f0f1; }

.form-control, .form-select { border-radius: 6px; border-color: #e4e4e7; }
.form-control:focus, .form-select:focus { border-color: #1652f0; box-shadow: 0 0 0 3px rgba(22, 82, 240, .15); }
.form-check-input:checked { background-color: #1652f0; border-color: #1652f0; }
.progress-bar { background-color: #1652f0; }
.badge { font-weight: 600; }

/* Шапка: светлая, с тонкой линией */
.navbar.site-nav { --tblr-navbar-border-width: 1px; --tblr-navbar-border-color: rgba(0, 0, 0, .04); background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); border: 0; border-bottom: 1px solid rgba(0, 0, 0, .04); box-shadow: none; min-height: 67px; position: sticky; top: 0; z-index: 1030; }
.site-nav .navbar-brand { gap: 0; font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; color: #09090b; }
.site-nav .navbar-brand .brand-dot { color: #1652f0; }
.site-nav .nav-link { color: #3f3f46; font-weight: 500; }
.site-nav .nav-link:hover, .site-nav .nav-item.active .nav-link { color: #09090b; }
.site-nav .navbar-toggler { border: 0; }
.site-nav .avatar { background: #eff4ff; color: #1652f0; font-weight: 700; }

/* Боковое меню проекта */
.side-menu .nav-link { border-radius: 6px; color: #3f3f46; font-weight: 500; padding: .45rem .6rem; }
.side-menu .nav-link:hover { background: #f4f4f5; color: #09090b; }
.side-menu .nav-link.active { background: #eff4ff; color: #1652f0; }
.side-menu .nav-link .ti { color: #71717a; }
.side-menu .nav-link.active .ti { color: #1652f0; }

/* Главная */
.hero-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; }
.hero-title span { color: #1652f0; }
.hero-sub { max-width: 640px; margin-inline: auto; font-size: 1.1rem; color: #61616b; }
.feature-ico { width: 40px; height: 40px; border-radius: 9px; background: #eff4ff; color: #1652f0; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }

/* Отчёт */
.nav-tabs.report-tabs { border-bottom: 1px solid #e4e4e7; gap: .25rem; flex-wrap: nowrap; overflow-x: auto; }
.report-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: #71717a; font-weight: 600; white-space: nowrap; background: transparent; }
.report-tabs .nav-link.active { color: #09090b; border-bottom-color: #1652f0; background: transparent; }
.sdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #a1a1aa; }
.sdot.ok { background: #16a34a; } .sdot.warn { background: #f59e0b; } .sdot.err { background: #dc2626; }
.pill { border-radius: 999px; }
@media print { #blocks > .row { display: flex !important; } .navbar, #todo { display: none !important; } }
#blocks + .card { margin-top: 1rem; }

/* Плитки в стиле каталога: цветной градиент, тонкая рамка, без теней */
.tile { --b: #dbe6fb; --g: #f1f5fe; --i: #e1eafc; --f: #2a4f9c;
  position: relative; overflow: hidden; border: 1px solid var(--b); border-radius: 18px; padding: 20px;
  background: linear-gradient(160deg, var(--g), #fff 70%); box-shadow: none; }
.t-ok { --b: #d3eedb; --g: #effaf2; --i: #daf2e1; --f: #1f7a38; }
.t-warn { --b: #fbdfc9; --g: #fff4ea; --i: #fde6d2; --f: #a24e14; }
.t-err { --b: #f7d2d2; --g: #fef1f1; --i: #fbdcdc; --f: #ac2828; }
.t-no { --b: #e5e7eb; --g: #f6f7f9; --i: #eceef1; --f: #596070; }
.t-purple { --b: #e8dbf7; --g: #f8f2fe; --i: #eee1fa; --f: #7a3aa8; }
.t-teal { --b: #cfeee6; --g: #effaf7; --i: #d6f2ea; --f: #167a64; }
.tile-ic { width: 48px; height: 48px; border-radius: 13px; background: var(--i); color: var(--f); display: inline-flex; align-items: center; justify-content: center; font-size: 1.55rem; }
.tile-badge { background: #fff; border: 1px solid var(--b); color: var(--f); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.tile-t { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: #0b0f19; margin: 14px 0 4px; }
.tile-v { color: #3f4654; word-break: break-word; }
.tile-v.big { font-size: 1.35rem; font-weight: 700; color: var(--f); letter-spacing: -.02em; }
.tile-more { color: var(--f); font-weight: 600; font-size: .9rem; text-decoration: none; }
.tile-more:hover { text-decoration: underline; color: var(--f); }
.tile-wm { position: absolute; right: -8px; bottom: -10px; font-size: 96px; line-height: 1; color: var(--f); opacity: .08; pointer-events: none; }
.tile-num { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #0b0f19; }
.tile-label { color: var(--f); font-weight: 600; font-size: .85rem; }

.metric { min-height: 0; padding: 18px; width: 100%; }

/* Финальный блок */
.final-cta-box { background: #1f6fe5; color: #fff; border-radius: 16px; padding: 48px 32px; display: grid; gap: 28px; align-items: center; }
.final-cta-box h2 { color: #fff; font-size: 1.9rem; margin: 0 0 .5rem; }
.final-cta-box p { color: rgba(255, 255, 255, .88); font-size: 1.05rem; margin: 0; max-width: 640px; }
.final-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .final-cta-box { grid-template-columns: 1fr auto; padding: 48px 48px; } }

/* Вход и регистрация */
.auth-brand { display: inline-flex; align-items: center; gap: 0; font-weight: 800; font-size: 1.25rem; line-height: 1; letter-spacing: -.03em; color: #09090b; text-decoration: none; }
.auth-brand .brand-dot { color: #1652f0; }
.auth-logo { width: 44px; height: 44px; border-radius: 11px; background: #1652f0; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.card-md { border-radius: 14px; }
.form-label.required::after { content: " *"; color: #dc2626; }

/* Главная: как на userly.ru */
.hero-wrap { padding: 56px 0 24px; }
@media (min-width: 768px) { .hero-title span { white-space: nowrap; } }
.hero-title { font-size: clamp(2rem, 3.9vw, 3.3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.06; text-wrap: balance; }
.hero-sub { font-size: 1.2rem; line-height: 1.55; color: #61616b; max-width: 520px; margin-inline: 0; }
.hero-form { max-width: 540px; }
.hero-caption { color: #71717a; font-size: .92rem; }
.site-nav .navbar-nav .nav-link:hover { background: #f4f4f5; border-radius: 8px; }
.site-nav .nav-item.active::after, .site-nav .nav-link.active::after { display: none; }
.preview { border: 1px solid #e4e4e7; border-radius: 16px; background: #fff; overflow: hidden; }
.preview-bar { display: flex; gap: 6px; padding: 12px 16px; background: #fafafa; border-bottom: 1px solid #f0f0f1; }
.preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e4e4e7; }
.preview-body { padding: 20px; }
.preview-score { width: 64px; height: 64px; border-radius: 50%; border: 6px solid #16a34a; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; }
@media (max-width: 575px) { .hero-wrap { padding-top: 32px; } }

/* Главная (гостевая): воздух, плоские блоки */
.lp-hero { padding: 72px 0 48px; }
.lp-hero .hero-title { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.lp-hero .hero-sub { max-width: 500px; }
.lp-form { max-width: 520px; }
.lp-report { border: 1px solid #e4e4e7; border-radius: 16px; padding: 28px; background: #fff; }
.lp-report-head { display: flex; align-items: center; gap: 18px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid #f0f0f1; }
.lp-ring { width: 68px; height: 68px; flex: none; border-radius: 50%; border: 6px solid #16a34a; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.lp-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f4f4f5; }
.lp-row:last-child { border-bottom: 0; padding-bottom: 0; }
.lp-row-t { flex: 1; min-width: 0; }
.lp-row-s { font-size: .82rem; font-weight: 600; white-space: nowrap; }
.lp-row-s.ok { color: #16a34a; } .lp-row-s.warn { color: #d97706; } .lp-row-s.err { color: #dc2626; }
.lp-sec { padding: 72px 0; border-top: 1px solid #f0f0f1; }
.lp-h { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 48px; max-width: 720px; line-height: 1.2; }
.lp-step { width: 36px; height: 36px; border-radius: 50%; background: #eff4ff; color: #1652f0; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.lp-t { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .5rem; }
.lp-p { color: #61616b; line-height: 1.6; }
.lp-grid { display: grid; gap: 48px 64px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lp-grid { grid-template-columns: 1fr 1fr; } }
.lp-feat { display: flex; gap: 20px; }
.lp-feat > .ti { flex: none; font-size: 1.6rem; color: #1652f0; margin-top: 2px; }
.lp-faq { max-width: 760px; border-top: 1px solid #e8eaee; }
.lp-faq details { border-bottom: 1px solid #e8eaee; padding: 20px 0; }
.lp-faq summary { font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; color: #71717a; font-size: 1.4rem; line-height: 1; }
.lp-faq details[open] summary::after { content: '–'; }
.lp-faq p { margin: 12px 0 0; color: #61616b; line-height: 1.6; }
.final-cta { margin-top: 24px; }
@media (max-width: 575px) { .lp-hero { padding-top: 32px; } .lp-sec { padding: 48px 0; } }

/* ===== Кабинет: спокойный, плоский, читаемый ===== */
body { font-size: 15px; line-height: 1.55; background: #fff; }
.page-body { margin-top: 1.75rem; }
.small, small { font-size: .86rem; }
.text-secondary { color: #71717a !important; }
.card { border-radius: 12px; border-color: #eceef2; }
.card-header { padding: 1rem 1.25rem; min-height: 0; }
.card-body { padding: 1.25rem; }
.card-title { font-size: 1.05rem; }
.page-title { font-size: 1.5rem; }

/* Таблицы */
.table { --tblr-table-hover-bg: #fafafb; font-size: .95rem; }
.table > :not(caption) > * > * { padding: .85rem 1.25rem; border-bottom-color: #f2f3f5; }
.table thead th a { color: inherit; text-decoration: none; }
.card-table tbody tr:last-child > * { border-bottom: 0; }

/* Кнопки и поля */
.form-control, .form-select { border-radius: 8px; padding: .55rem .8rem; font-size: .95rem; }
.form-label { font-weight: 600; font-size: .9rem; }
.dropdown-menu { border-radius: 10px; border-color: #eceef2; box-shadow: 0 8px 24px rgba(16, 24, 40, .08); padding: .4rem; }
.dropdown-item { border-radius: 6px; padding: .45rem .7rem; }
.alert { border-radius: 10px; border: 0; }
.badge { font-weight: 500; font-size: .78rem; }
.badge.bg-blue-lt, .badge.bg-secondary-lt { background: #f1f2f4 !important; color: #52525b !important; }
.list-group-item { border-color: #f2f3f5; }
.settings-list .list-group-item.active, .list-group-item.active { background: #eff4ff; border-color: #f2f3f5; color: #1652f0; box-shadow: none; }
.list-group-item.active::before, .list-group-item-action.active::before { display: none; }
.nav-tabs .nav-link { font-size: .95rem; }
.datagrid-title { font-size: .8rem; text-transform: none; letter-spacing: 0; color: #71717a; }

/* Заголовок страницы и быстрый анализ */
.pg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 1.25rem; }
.pg-head h1 { font-size: 1.6rem; margin: 0; font-weight: 700; letter-spacing: -.02em; }
.pg-head .count { color: #a1a1aa; font-weight: 500; margin-left: .35rem; }
.pg-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.quick-bar { display: flex; gap: 8px; background: #f6f7f9; border-radius: 12px; padding: 10px; margin-bottom: 1.5rem; }
.quick-bar .form-control { flex: 1; background: #fff; }
.news-list { border-top: 1px solid #eceef2; }
.news-item { padding: 1rem 0; border-bottom: 1px solid #f2f3f5; }
.news-item .d { color: #a1a1aa; font-size: .85rem; }
@media (max-width: 575px) { .quick-bar { flex-direction: column; } .pg-actions { margin-left: 0; width: 100%; justify-content: space-between; } }
.side-menu .nav-link { white-space: nowrap; font-size: .95rem; }
.side-menu .collapse .nav-link { font-size: .9rem; padding: .35rem .6rem; color: #52525b; }
.side-menu .collapse .nav-link.active { background: transparent; color: #1652f0; font-weight: 600; }
.side-menu .nav-item.text-uppercase { font-size: .72rem; letter-spacing: .04em; color: #a1a1aa !important; }
@media (min-width: 992px) { .table-responsive.tbl-visible { overflow: visible; } }
@media (max-width: 991px) { .tbl-visible .dropdown-menu { position: fixed !important; } }

/* ===== Страница отчёта ===== */
.rp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding: 8px 0 28px; }
.rp-gauge { width: 150px; flex: none; }
.rp-main { flex: 1; min-width: 260px; }
.rp-eyebrow { font-size: .8rem; font-weight: 600; color: #71717a; margin-bottom: 4px; }
.rp-domain { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: 0 0 8px; word-break: break-all; }
.rp-summary { color: #3f3f46; font-size: 1.05rem; margin: 0; max-width: 720px; }
.rp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-cats { --cols: 3; --gap: 12px; display: flex; flex-wrap: wrap; gap: var(--gap); margin-bottom: 40px; }
.rp-cats > .rp-cat { flex: 1 1 calc((100% - var(--gap) * (var(--cols) - 1)) / var(--cols) - .5px); min-width: 0; }
.rp-cats:has(.rp-cat:nth-child(4):last-child) { --cols: 2; }
.rp-cats:has(.rp-cat:nth-child(7)) { --cols: 4; }
.rp-cats:has(.rp-cat:nth-child(9)) { --cols: 3; }
@media (max-width: 991px) { .rp-cats.rp-cats { --cols: 2; } }
@media (max-width: 575px) { .rp-cats.rp-cats { --cols: 1; } }
.rp-cat { display: block; border: 1px solid #eceef2; border-radius: 12px; padding: 14px 16px; color: inherit; text-decoration: none; }
.rp-cat:hover { border-color: #d4d4d8; }
.rp-cat-n { font-weight: 600; margin-bottom: 10px; }
.rp-bar { height: 6px; border-radius: 3px; background: #f1f2f4; overflow: hidden; }
.rp-bar span { display: block; height: 100%; border-radius: 3px; }
.rp-bar .ok { background: #16a34a; } .rp-bar .warn { background: #f59e0b; } .rp-bar .err { background: #dc2626; }
.rp-cat-s { font-size: .84rem; color: #71717a; margin-top: 8px; }
.rp-sec { margin-bottom: 44px; }
.rp-sec-h { display: flex; align-items: center; gap: 10px; }
.rp-sec-h h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.rp-count { background: #f1f2f4; color: #52525b; border-radius: 999px; font-size: .8rem; font-weight: 600; padding: 2px 9px; }
.rp-sec-p { color: #71717a; margin: 4px 0 16px; }
.rp-list { border: 1px solid #eceef2; border-radius: 12px; overflow: hidden; }
.rp-row { border-bottom: 1px solid #f2f3f5; }
.rp-row:last-child { border-bottom: 0; }
.rp-row summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.rp-row summary::-webkit-details-marker { display: none; }
.rp-row summary:hover { background: #fafafb; }
.rp-t { font-weight: 600; }
.rp-v { margin-left: auto; text-align: right; color: #3f3f46; max-width: 45%; overflow-wrap: anywhere; }
.rp-v.muted { color: #a1a1aa; }
.rp-tag { color: #a1a1aa; font-size: .82rem; }
.rp-imp { font-size: .76rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #f1f2f4; color: #52525b; white-space: nowrap; }
.rp-imp.i3 { background: #fdecec; color: #b42323; } .rp-imp.i2 { background: #fff3e2; color: #a5610c; }
.rp-chev { color: #a1a1aa; transition: transform .15s; }
.rp-row[open] .rp-chev { transform: rotate(180deg); }
.rp-body { padding: 0 18px 18px 40px; }
.rp-descr { color: #18181b; margin: 0 0 10px; }
.rp-advice { background: #f6f8ff; border-radius: 8px; padding: 12px 14px; color: #27304a; }
.rp-more { display: block; width: 100%; border: 0; background: #fafafb; padding: 12px; color: #1652f0; font-weight: 600; }
.rp-filters { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 22px; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-chip { border: 1px solid #e4e4e7; background: #fff; border-radius: 999px; padding: 5px 13px; font-size: .88rem; font-weight: 500; color: #3f3f46; }
.rp-chip span { margin-left: 6px; color: #a1a1aa; }
.rp-chip.on { background: #09090b; border-color: #09090b; color: #fff; }
.rp-chip.on span { color: #a1a1aa; }
.rp-group { margin-bottom: 28px; }
.rp-group-h { font-weight: 700; font-size: 1.05rem; }
.rp-group-d { color: #71717a; font-size: .9rem; margin-bottom: 10px; }
@media (max-width: 575px) { .rp-v { max-width: 40%; } .rp-tag { display: none; } .rp-body { padding-left: 18px; } }
@media print { .rp-row .rp-body { display: block; } .rp-chev { display: none; } }
.rp-print-brand { font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid #ddd; margin-bottom: 16px; }


/* ===== Версия 15: навигация, меню, главная, футер ===== */
/* Шапка: активный пункт выглядит как при наведении */
.site-nav .navbar-nav .nav-link { border-radius: 8px; padding: .45rem .8rem; }
.site-nav .navbar-nav .nav-link.active, .site-nav .navbar-nav .nav-link:hover { background: #f4f4f5; color: #09090b; }
.site-nav .nav-link.active { font-weight: 600; }
.site-nav .brand-word { line-height: 1; }
.dropdown-item.active, .dropdown-item:active { background: #eff4ff; color: #1652f0; }
.dropdown-item.active .ti { color: #1652f0; }

/* Левое меню: лёгкий серый фон без обводки */
.side-card { border-radius: 14px; }
.side-menu .nav-link { display: flex; align-items: center; }
.side-menu .nav-link:hover { background: #ebedf1; }
.side-menu .nav-link.active { background: #fff; color: #1652f0; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.side-menu .nav-link.active .ti { color: #1652f0; }
.side-menu .side-sub .nav-link.active { background: transparent; box-shadow: none; font-weight: 600; }
.side-menu button.nav-link { background: transparent; border: 0; }
.side-menu .side-chev { transition: transform .2s; font-size: 1rem; }
.side-menu [aria-expanded="true"] .side-chev { transform: rotate(180deg); }
/* Размер шрифта подпунктов не зависит от состояния collapse (раньше «прыгал» во время анимации) */
.side-menu .side-sub .nav-link { font-size: .9rem; padding: .35rem .6rem; color: #52525b; font-weight: 500; }
.side-menu .side-sub .nav-link:hover { color: #09090b; }
.side-menu .side-sub .nav-link.active { color: #1652f0; }
.side-menu .collapse .nav-link, .side-menu .collapsing .nav-link { font-size: .9rem; }
.side-menu .side-group { font-size: .72rem; letter-spacing: .04em; color: #a1a1aa !important; }

/* Таблица проектов */
.projects-table td, .projects-table th { white-space: nowrap; }
.projects-table td .min-w-0 { min-width: 0; max-width: 170px; }
.projects-table thead th a { color: inherit; text-decoration: none; }
.projects-table thead th a:hover { color: #09090b; }
.projects-table td .min-w-0 a, .projects-table td a.text-reset { transition: color .6s ease; text-decoration: none !important; }
.projects-table td .min-w-0 a:hover, .projects-table td a.text-reset:hover { color: var(--tblr-primary) !important; }

/* Главная */
.lp-mock { box-shadow: 0 24px 60px -24px rgba(22, 82, 240, .25); border-radius: 18px; }
.lp-stats { padding: 8px 0 40px; }
.lp-stat-n { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; color: #1652f0; line-height: 1.1; }

/* Футер */
.site-footer { border-top: 1px solid #eeeff1; margin-top: 2rem; background: transparent; }
.site-footer .footer-h { font-weight: 700; margin-bottom: .75rem; }
.site-footer ul li { margin-bottom: .45rem; }
.site-footer .brand-word { font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; color: #09090b; }
.site-footer .brand-dot { color: #1652f0; }

/* Фон бокового меню: строго #f6f7f9 */
.side-card, .side-card.bg-body-tertiary { background-color: #f6f7f9 !important; }
.side-menu .nav-link:hover { background: #eceef2; }
.projects-table > :not(caption) > * > * { padding: .5rem .6rem; }
.projects-table > :not(caption) > * > :first-child { padding-left: 1.25rem; }
.projects-table > :not(caption) > * > :last-child { padding-right: 1.25rem; }

/* админ: сворачиваемые группы меню */
.side-menu .side-toggle .chev { font-size: 1rem; transition: transform .15s; }
.side-menu .side-toggle.collapsed .chev { transform: rotate(-90deg); }
.side-menu .side-toggle.text-uppercase { font-size: .72rem; letter-spacing: .04em; padding: .3rem .6rem; }
.side-menu .collapse .collapse .nav-link, .side-menu .nav .nav .nav-link { padding-left: 1.6rem; }

/* пункт меню с подпунктами: раскрывается на месте, без анимации */
.side-dd summary { list-style: none; cursor: pointer; }
.side-dd summary::-webkit-details-marker { display: none; }
.side-dd[open] > summary .chev { transform: rotate(180deg); }
.side-dd .chev { font-size: 1rem; }
.side-dd-list { padding: .1rem 0 .25rem 1.9rem; }
.side-dd-list .nav-link { display: block; padding: .3rem .6rem; font-size: .9rem; color: #52525b; }
.side-dd-list .nav-link.active { background: transparent; color: #1652f0; font-weight: 600; }
.side-dd-list .nav-link.active { box-shadow: none; }
/* заголовок раздела на одном уровне с верхом бокового меню */
.row > [class*="col-lg-9"] > .page-header:first-child, .row > [class*="col-lg-9"] > .pg-head:first-child,
.row > [class*="col-lg-10"] > .page-header:first-child, .row > [class*="col-lg-10"] > .pg-head:first-child { margin-top: 0; padding-top: .5rem; }
.site-nav .navbar-nav .nav-link.avatar-link:hover, .site-nav .navbar-nav .nav-link.avatar-link.show { background: transparent; }

/* отчёт: подпись светлее, карточки разделов с цветом и иконкой, разделы отдельными блоками */
.rp-summary { color: #71717a; font-size: .95rem; }
.rp-cat { position: relative; display: block; border: 0; border-radius: 14px; padding: 16px; color: inherit; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.rp-cat.ok { background: linear-gradient(135deg, #e9f8ee 0%, #f7fcf9 100%); }
.rp-cat.warn { background: linear-gradient(135deg, #fff3dc 0%, #fffaf0 100%); }
.rp-cat.err { background: linear-gradient(135deg, #fde8e8 0%, #fff6f6 100%); }
.rp-cat:hover { color: inherit; }
.rp-cat .rp-cat-n { margin-bottom: 10px; }
.rp-cat .rp-bar { background: rgba(255, 255, 255, .7); }
.rp-ico { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 10px; background: #fff; box-shadow: 0 1px 3px rgba(24, 36, 51, .08); }
.rp-cat.ok .rp-ico { color: #16a34a; } .rp-cat.warn .rp-ico { color: #d97706; } .rp-cat.err .rp-ico { color: #dc2626; }
.rp-group { margin-bottom: 36px; scroll-margin-top: 80px; }
.rp-group-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rp-group-top .rp-ico { margin: 0; background: #eff4ff; color: #1652f0; box-shadow: none; flex: none; }
.rp-group-top .rp-group-d { margin: 0; }

.rp-body, .rp-body .text-secondary { color: #18181b !important; }
.rp-ex { display: grid; gap: 10px; margin-bottom: 8px; }
.rp-ex-i { background: #f6f7f9; border-radius: 8px; padding: 12px 14px; }
.rp-ex-i.fix { background: #eef5ff; }
.rp-ex-h { font-weight: 700; color: #09090b; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.rp-ex-h .ti { font-size: 1.15rem; color: #206bc4; }
.rp-ex-t { color: #18181b; line-height: 1.55; }
.rp-advice { color: #18181b; }
.rp-row { interpolate-size: allow-keywords; }
.rp-row::details-content { height: 0; overflow: hidden; transition: height .25s ease, content-visibility .25s allow-discrete; }
.rp-row[open]::details-content { height: auto; }
.plan-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.plan-tile { border-radius: 14px; padding: 16px; }
.plan-tile.t1 { background: linear-gradient(135deg, #e6efff 0%, #f6f9ff 100%); }
.plan-tile.t1 .rp-ico { color: #1652f0; }
.plan-tile.t2 { background: linear-gradient(135deg, #fff3dc 0%, #fffaf0 100%); }
.plan-tile.t2 .rp-ico { color: #d97706; }
.plan-tile.t3 { background: linear-gradient(135deg, #e9f8ee 0%, #f7fcf9 100%); }
.plan-tile.t3 .rp-ico { color: #16a34a; }
.plan-tile-t { color: #18181b; font-size: .9rem; }
.plan-tile-v { font-size: 1.4rem; font-weight: 700; color: #09090b; }
/* градиентные карточки */
.g-card { border: 0; border-radius: 14px; box-shadow: none; }
.g-card .avatar { background: #fff !important; box-shadow: 0 1px 3px rgba(24, 36, 51, .08); }
.g-primary { background: linear-gradient(135deg, #e6efff 0%, #f6f9ff 100%); } .g-primary .avatar { color: #1652f0; }
.g-azure { background: linear-gradient(135deg, #dff4fd 0%, #f4fbfe 100%); } .g-azure .avatar { color: #0b8ac0; }
.g-orange { background: linear-gradient(135deg, #ffeadb 0%, #fff6ef 100%); } .g-orange .avatar { color: #ea580c; }
.g-green { background: linear-gradient(135deg, #e9f8ee 0%, #f7fcf9 100%); } .g-green .avatar { color: #16a34a; }
.g-red { background: linear-gradient(135deg, #fde8e8 0%, #fff6f6 100%); } .g-red .avatar { color: #dc2626; }
.g-purple { background: linear-gradient(135deg, #f0e8fd 0%, #f9f5ff 100%); } .g-purple .avatar { color: #7e3af2; }
.g-teal { background: linear-gradient(135deg, #dcf6f1 0%, #f2fbf9 100%); } .g-teal .avatar { color: #0d9488; }
.g-yellow { background: linear-gradient(135deg, #fff3dc 0%, #fffaf0 100%); } .g-yellow .avatar { color: #d97706; }
.g-gray { background: linear-gradient(135deg, #f1f2f4 0%, #fafafb 100%); } .g-gray .avatar { color: #52525b; }
.g-hero { border: 0; border-radius: 16px; background: linear-gradient(135deg, #efe6ff 0%, #e6efff 55%, #f6f9ff 100%); }
.g-hero .rp-ico { color: #7e3af2; }
.lp-acc .accordion-item { background: transparent; border: 0; border-bottom: 1px solid #eceef1; border-radius: 0; }
.lp-acc .accordion-button { padding: 1.15rem 0; background: transparent; box-shadow: none; font-weight: 600; font-size: 1.05rem; color: #09090b; }
.lp-acc .accordion-button:not(.collapsed) { background: transparent; box-shadow: none; color: #09090b; }
.lp-acc .accordion-body { padding: 0 0 1.25rem; }
.lp-acc .accordion-button::after { display: none; }
.lp-acc .acc-ico { font-size: 1.25rem; color: #71717a; transition: transform .2s; }
.lp-acc .accordion-button:not(.collapsed) .acc-ico { transform: rotate(180deg); }
/* лендинг: без разделительных линий, тёмный текст */
.lp-sec { border-top: 0 !important; padding: 48px 0; }
.lp-p, .lp-acc .accordion-body, .hero-sub, .hero-caption { color: #27272a !important; }
.rp-verdict { display: flex; align-items: center; gap: 6px; padding: 0 0 10px; font-weight: 600; font-size: .95rem; color: #18181b; }
.rp-verdict .ti { font-size: 1.1rem; }
.rp-verdict.ok .ti { color: #16a34a; } .rp-verdict.warn .ti { color: #d97706; } .rp-verdict.err .ti { color: #dc2626; } .rp-verdict.nodata .ti { color: #a1a1aa; }
.rp-step { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; color: #18181b; line-height: 1.5; cursor: pointer; }
.rp-step .form-check-input { margin-top: .25rem; flex: none; }
.rp-step.done span { text-decoration: line-through; color: #71717a; }
.rp-prog { font-size: .86rem; color: #3f3f46; margin-top: 4px; }
.g-card .table { --tblr-table-bg: transparent; }
.g-card .card-header { background: transparent; border-bottom-color: rgba(24, 36, 51, .08); }
.cmp { border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(24, 36, 51, .08); }
.cmp thead th { border: 0; padding: 16px; text-align: center; vertical-align: bottom; }
.cmp thead th:first-child { background: transparent; }
.cmp tbody td { padding: 14px 16px; border-color: #f0f1f3; color: #18181b; }
.cmp .cmp-c { text-align: center; }
.cmp .cmp-1 { background: rgba(233, 248, 238, .45); } .cmp .cmp-2 { background: rgba(230, 239, 255, .45); } .cmp .cmp-3 { background: rgba(240, 232, 253, .45); } .cmp .cmp-0 { background: rgba(241, 242, 244, .45); }
.cmp tbody tr:hover td { background-image: linear-gradient(rgba(24, 36, 51, .03), rgba(24, 36, 51, .03)); }
.cmp-h .avatar { background: #fff !important; box-shadow: 0 1px 3px rgba(24, 36, 51, .08); }
/* без подчёркивания у кнопок и логотипа */
.auth-brand:hover, .navbar-brand:hover, .footer-links a:hover { text-decoration: none !important; }
.final-cta-box { padding-top: 72px !important; padding-bottom: 72px !important; min-height: 280px; }
.final-cta-box h2 { font-size: 2.3rem; }
.final-cta-box p { font-size: 1.15rem; }
.rp-body { padding-top: 14px; }
.auth-brand { color: #09090b; }
.kpi { cursor: default; }
.kpi:hover, .g-card.kpi:hover { transform: none; box-shadow: none; }
.kpi .h2 { font-weight: 800; letter-spacing: -.02em; }
.adm-tabs .nav-link { color: #18181b; }
/* главная: компактный градиентный intro */
.lp-hero { padding: 40px 44px !important; border-radius: 24px; background: linear-gradient(135deg, #e6efff 0%, #f1ebff 55%, #fff3e6 100%); margin-top: 0; }
.lp-hero .hero-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.lp-hero .hero-title span { white-space: normal; }
.lp-hero .hero-sub { max-width: 520px; color: #27272a; }
.lp-hero .lp-mock { box-shadow: 0 18px 40px -18px rgba(22, 82, 240, .35); }
@media (max-width: 767px) { .lp-hero { padding: 24px 20px !important; border-radius: 18px; } }
.page-body { margin-top: 1rem; }

/* Заголовок героя: легче и свободнее */
.lp-hero .hero-title { font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.rp-v .badge, .rp-body .badge { text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 600; padding: .35em .7em; }
.rp-v .badge { white-space: normal; text-align: right; }
.rp-row { box-shadow: inset 0 0 0 rgba(32, 107, 196, .55); transition: background-color .3s ease, box-shadow .3s ease; }
.rp-row[open] { background: #fcfcfd; box-shadow: inset 3px 0 0 rgba(32, 107, 196, .55); }
.rp-row[open] .rp-body { animation: rpIn .3s ease; }
@keyframes rpIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.rp-row[open] summary:hover { background: transparent; }
.rp-body { padding: 4px 18px 22px 40px; font-size: .95rem; }
.rp-body .text-muted { color: #9a9aa3 !important; }
.rp-v { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.rp-vv { color: #18181b; font-weight: 600; }
.rp-v .badge { white-space: nowrap; }
.rp-actwrap { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; }
#checkedAt:empty { display: none; }
#statusLine { white-space: pre-line; }
.rp-chip { cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.rp-chips .rp-chip.c { border-color: transparent !important; font-weight: 600; }
.rp-chips .rp-chip.c.bg-light { border-color: #e4e4e7 !important; }
.rp-chips .rp-chip.c span { color: inherit !important; opacity: .85; }

/* footer: копирайт и ссылки в одну строку, ссылки подчёркнуты */
.site-footer .footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; color: #61616b; }
.site-footer .footer-meta .sep { display: none; }
.site-footer .footer-meta a { color: #61616b; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(97, 97, 107, .35); transition: color .2s ease, text-decoration-color .2s ease; }
.site-footer .footer-meta a:hover { color: #1652f0; text-decoration-color: rgba(22, 82, 240, .5); }
.site-footer .footer-meta [aria-current] { color: #09090b; }
.site-footer .footer-note { color: #a3a8b1; }
@media (min-width: 576px) {
  .site-footer .footer-meta { column-gap: .5rem; }
  .site-footer .footer-meta .sep { display: inline; }
}

/* краулер: таблица страниц */
.ctbl td, .ctbl th { white-space: nowrap; }
.ctbl thead th { position: sticky; top: 0; background: #fafafb; z-index: 1; font-size: .72rem; letter-spacing: .04em; border-bottom: 1px solid #eeeff1; }
.ctbl-wrap { max-height: 72vh; overflow: auto; }
.ctbl tbody tr:hover td { background: #fafbff; }
.ctbl .ctbl-n { width: 1%; }
.ctbl td .cs { max-width: 260px; overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: thin; padding-bottom: 2px; }
.ctbl td .cs-url { max-width: 320px; font-weight: 600; }
.ctbl td .cs-err { max-width: 240px; }
.ctbl td .cs::-webkit-scrollbar { height: 4px; }
.ctbl td .cs::-webkit-scrollbar-thumb { background: #d9dbe0; border-radius: 4px; }

/* подпункты меню: текст по одной линии с названием пункта */
.side-menu .side-sub > ul { margin-left: 0 !important; }
.side-menu .side-sub .nav-link { padding-left: 33px; }

/* шапка: ссылка-логотип строго по тексту, без прыжков высоты */
.site-nav .navbar-brand { padding: 0; margin-right: 0; line-height: 1; }
.site-nav .navbar-brand .brand-word { display: inline-block; }
@media (min-width: 768px) { .site-nav .navbar-brand { margin-right: 1.5rem; } }

/* шапка: без min-height (контейнер наследовал его и растягивал первую строку при раскрытии меню) */
.navbar.site-nav { min-height: 0; --tblr-navbar-padding-y: 14px; }
.site-nav > .container-xl { min-height: 0; align-content: flex-start; }
.site-nav .navbar-collapse { flex-basis: 100%; }

/* выбор тарифа карточками */
.plan-pick { cursor: pointer; border: 2px solid transparent !important; }
.plan-pick:has(input:checked) { border-color: #206bc4 !important; }

a.list-group-item:hover, a.list-group-item:focus { text-decoration: none !important; }

/* позиции: таблицы запросов */
.kw-pos td:first-child, .kw-pos th:first-child { min-width: 220px; }
.kw-pos td { white-space: nowrap; }
.kw-pos td:first-child { white-space: normal; }

.rp-body .alert-info { --tblr-alert-color: #1e40af; color: #1e40af; }

/* главная: сайт плавно затемняется, пока курсор в поле адреса; светлой остаётся только форма */
body:has(.lp-form)::after { content: ''; position: fixed; inset: 0; z-index: 1040; background: rgba(9, 9, 11, .55); opacity: 0; pointer-events: none; transition: opacity .8s ease; }
body:has(.lp-form:focus-within)::after { opacity: 1; }
.lp-form { position: relative; z-index: 1050; }
@media (prefers-reduced-motion: reduce) { body:has(.lp-form)::after { transition: none; } }

/* отчёт: пока открыта проверка, страница затемнена, светлой остаётся только открытая строка */
body:has(.rp-row)::after { content: ''; position: fixed; inset: 0; z-index: 1040; background: rgba(9, 9, 11, .55); opacity: 0; pointer-events: none; transition: opacity .8s ease; }
body:has(.rp-row[open])::after { opacity: 1; }
.rp-row { position: relative; z-index: 0; }
.rp-row[open] { z-index: 1050; }
@media (prefers-reduced-motion: reduce) { body:has(.rp-row)::after { transition: none; } }
@media print { body::after { display: none !important; } }

/* тарифы: большие отступы между разделами, как на лендинге */
.sec-gap { margin-bottom: clamp(80px, 11vw, 150px); }

/* «Что внутри»: анимации сцен */
.ft-in { opacity: 0; transform: translateY(10px); animation: ftIn .5s ease forwards; animation-delay: calc(var(--i, 0) * .12s + .15s); }
.ft-out { animation: ftOut .3s ease forwards; }
.ft-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ftDraw 1.8s ease forwards .4s; }
.ft-grow { transform-origin: left; transform: scaleX(0); animation: ftGrow 2.8s ease-out forwards .2s; }
@keyframes ftIn { to { opacity: 1; transform: none; } }
@keyframes ftOut { to { opacity: 0; transform: scale(.9); } }
@keyframes ftDraw { to { stroke-dashoffset: 0; } }
@keyframes ftGrow { to { transform: scaleX(1); } }
@keyframes ftRing { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ft-in, .ft-out, .ft-draw, .ft-grow { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; } .ft-out { display: none; } }
