/* ==========================================================================
   RD Auto — design system
   Palette: deep navy · white · electric blue. Light & dark via [data-bs-theme].
   ========================================================================== */
:root {
  --rd-navy-950: #050B1A;
  --rd-navy-900: #0A1630;
  --rd-navy-800: #0F1F42;
  --rd-navy-700: #16295A;
  --rd-blue: #2F6BFF;
  --rd-blue-600: #1F56E8;
  --rd-cyan: #00C2FF;
  --rd-grad: linear-gradient(135deg, #2F6BFF 0%, #00C2FF 100%);
  --rd-grad-deep: linear-gradient(135deg, #0A1630 0%, #16295A 55%, #1F56E8 130%);
  --rd-ok: #12B76A; --rd-warn: #F79009; --rd-danger: #F04438;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
  --radius-sm: 10px; --radius: 16px; --radius-lg: 22px; --radius-xl: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 68px;

  --bs-font-sans-serif: var(--font-body);
  --bs-body-font-size: .975rem;
  --bs-primary: #2F6BFF; --bs-primary-rgb: 47, 107, 255;
  --bs-link-color: #1F56E8; --bs-link-color-rgb: 31, 86, 232; --bs-link-hover-color: #2F6BFF;
  --bs-border-radius: 12px; --bs-border-radius-lg: 16px; --bs-border-radius-sm: 8px;
  --bs-focus-ring-color: rgba(47, 107, 255, .35);
}
[data-bs-theme="light"] {
  --bg: #F4F7FC; --bg-soft: #EBF0F9; --surface: #FFFFFF; --surface-2: #F7F9FD; --surface-3: #EEF3FB;
  --text: #0A1630; --text-2: #3C4A66; --muted: #6A7892; --line: #E1E8F3; --line-strong: #CCD7E8;
  --shadow-sm: 0 1px 2px rgba(10, 22, 48, .06), 0 1px 1px rgba(10, 22, 48, .04);
  --shadow: 0 10px 30px -12px rgba(10, 22, 48, .18), 0 2px 6px rgba(10, 22, 48, .05);
  --shadow-lg: 0 30px 60px -25px rgba(10, 22, 48, .35);
  --accent-soft: rgba(47, 107, 255, .09);
  --header-bg: rgba(255, 255, 255, .82);
  --bs-body-bg: var(--bg); --bs-body-color: var(--text); --bs-border-color: var(--line); --bs-secondary-color: var(--muted);
  --bs-tertiary-bg: var(--surface-2);
}
[data-bs-theme="dark"] {
  --bg: #060D1F; --bg-soft: #0A1630; --surface: #0D1A36; --surface-2: #112042; --surface-3: #16295A;
  --text: #EAF0FF; --text-2: #B7C3DD; --muted: #8A98B6; --line: #1C2C52; --line-strong: #27396A;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 16px 40px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02);
  --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, .85);
  --accent-soft: rgba(47, 107, 255, .16);
  --header-bg: rgba(6, 13, 31, .78);
  --bs-body-bg: var(--bg); --bs-body-color: var(--text); --bs-border-color: var(--line); --bs-secondary-color: var(--muted);
  --bs-tertiary-bg: var(--surface-2);
  --bs-link-color: #7FA6FF; --bs-link-color-rgb: 127, 166, 255; --bs-link-hover-color: #A9C3FF;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font-display); font-weight: 750; letter-spacing: -.02em; color: var(--text); }
h1 { font-weight: 800; letter-spacing: -.035em; }
a { text-underline-offset: 3px; }
::selection { background: rgba(47, 107, 255, .25); }
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }
.mono, code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: var(--rd-blue); color: #fff; padding: .5rem 1rem; border-radius: 8px; }
.container-md { max-width: 860px; }
.lead-sm { color: var(--text-2); font-size: 1.02rem; }
.small, small { font-size: .85em; }

/* buttons */
.btn { font-weight: 600; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { --bs-btn-bg: var(--rd-blue); --bs-btn-border-color: var(--rd-blue); --bs-btn-hover-bg: var(--rd-blue-600); --bs-btn-hover-border-color: var(--rd-blue-600); --bs-btn-active-bg: #1847C8; background-image: var(--rd-grad); border: 0; box-shadow: 0 8px 22px -10px rgba(47, 107, 255, .8); }
.btn-primary:hover { box-shadow: 0 12px 28px -10px rgba(47, 107, 255, .95); }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-lg { padding: .8rem 1.4rem; font-size: 1.02rem; border-radius: 14px; }
.btn-outline-secondary { --bs-btn-color: var(--text-2); --bs-btn-border-color: var(--line-strong); --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-color: var(--text); --bs-btn-hover-border-color: var(--line-strong); }
.btn-light { background: #fff; color: var(--rd-navy-900); border: 0; }
.icon-btn { display: inline-flex; align-items: center; gap: .35rem; height: 40px; min-width: 40px; padding: 0 .6rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: .85rem; transition: .2s var(--ease); }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn .ic { width: 18px; height: 18px; }

/* forms */
.form-control, .form-select { background-color: var(--surface); border: 1.5px solid var(--line); color: var(--text); border-radius: 12px; padding: .62rem .85rem; font-weight: 500; transition: border-color .15s, box-shadow .15s; }
.form-control:focus, .form-select:focus { border-color: var(--rd-blue); box-shadow: 0 0 0 4px var(--bs-focus-ring-color); background-color: var(--surface); color: var(--text); }
.form-control::placeholder { color: var(--muted); opacity: .8; }
.input-group > .form-control { border-right: 0; }
.input-group-text { background: var(--surface-2); border: 1.5px solid var(--line); color: var(--muted); font-size: .82rem; font-weight: 600; border-radius: 0 12px 12px 0; min-width: 52px; justify-content: center; }
.input-group:focus-within .input-group-text { border-color: var(--rd-blue); color: var(--rd-blue); }
.form-label { font-weight: 600; font-size: .86rem; color: var(--text-2); margin-bottom: .35rem; }
.form-label .opt { font-weight: 500; color: var(--muted); font-size: .8em; }
.field.is-invalid .form-control, .field.is-invalid .input-group-text { border-color: var(--rd-danger); }
.invalid-msg { color: var(--rd-danger); font-size: .8rem; min-height: 0; margin-top: .25rem; font-weight: 500; }
.invalid-msg:empty { display: none; }
.form-check-input:checked { background-color: var(--rd-blue); border-color: var(--rd-blue); }
.switch-lg .form-check-input { width: 2.8em; height: 1.5em; margin-top: .1em; cursor: pointer; }
.switch-lg .form-check-label { margin-left: .4rem; font-weight: 600; padding-top: .2rem; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 13px; }
.seg-btn { flex: 1 1 auto; text-align: center; padding: .48rem .7rem; border-radius: 9px; font-weight: 600; font-size: .86rem; color: var(--text-2); cursor: pointer; transition: .2s var(--ease); white-space: nowrap; user-select: none; }
.seg-btn:hover { color: var(--text); background: var(--surface); }
.btn-check:checked + .seg-btn { background: var(--surface); color: var(--rd-blue); box-shadow: var(--shadow-sm), inset 0 0 0 1.5px rgba(47, 107, 255, .35); }
[data-bs-theme="dark"] .btn-check:checked + .seg-btn { background: var(--surface-3); color: #fff; }
.btn-check:focus-visible + .seg-btn { outline: 3px solid var(--bs-focus-ring-color); }
fieldset.fgroup { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: .4rem 1rem 1rem; margin: 0; }
fieldset.fgroup legend { float: none; width: auto; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--rd-blue); padding: 0 .5rem; margin: 0 0 .2rem -.4rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--header-bg); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.site-header .navbar { height: var(--header-h); padding: 0 1rem; gap: 1rem; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); flex-shrink: 0; }
.logo-mark { width: 38px; height: 38px; filter: drop-shadow(0 6px 14px rgba(47, 107, 255, .4)); }
.brand-text { font-family: var(--font-display); font-size: 1.18rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; display: flex; flex-direction: column; }
.brand-name { white-space: nowrap; }
.brand-text b { background: var(--rd-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-family: var(--font-body); font-size: .64rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-top: 3px; text-transform: uppercase; }
.main-nav { gap: .15rem; margin-left: .5rem; }
.main-nav .nav-link { font-weight: 600; font-size: .92rem; color: var(--text-2); padding: .5rem .8rem !important; border-radius: 10px; }
.main-nav .nav-link:hover, .main-nav .nav-link.show { color: var(--text); background: var(--surface-2); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: .45rem; }
.search-trigger { display: flex; align-items: center; gap: .5rem; height: 40px; padding: 0 .75rem; min-width: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .88rem; font-weight: 500; transition: .2s; }
.search-trigger:hover { border-color: var(--rd-blue); color: var(--text); }
.search-trigger kbd, .hero-search kbd { background: var(--surface); color: var(--muted); border: 1px solid var(--line); font-size: .72rem; padding: .1rem .4rem; border-radius: 6px; box-shadow: none; }
@media (min-width: 1200px) { .search-trigger { min-width: 210px; } .search-trigger kbd { margin-left: auto; } }
.lang-short { font-size: .78rem; }
[data-bs-theme="dark"] .theme-dark-ic, [data-bs-theme="light"] .theme-light-ic { display: none; }
.dropdown-menu { --bs-dropdown-bg: var(--surface); --bs-dropdown-border-color: var(--line); --bs-dropdown-link-color: var(--text-2); --bs-dropdown-link-hover-bg: var(--surface-2); --bs-dropdown-link-hover-color: var(--text); --bs-dropdown-link-active-bg: var(--accent-soft); --bs-dropdown-link-active-color: var(--rd-blue); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .4rem; }
.dropdown-item { border-radius: 9px; font-weight: 500; font-size: .9rem; padding: .45rem .7rem; display: flex; gap: .6rem; align-items: center; }
.lang-code { font-size: .7rem; font-weight: 700; width: 26px; text-align: center; padding: .1rem 0; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }
.mega-menu { width: min(1080px, 92vw); padding: 1.2rem 1.2rem .8rem; left: 50% !important; transform: translateX(-30%); margin-top: .6rem !important; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem 1.4rem; }
.mega-cat { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 750; color: var(--text); text-decoration: none; margin-bottom: .4rem; font-size: .95rem; }
.mega-cat .ic { color: var(--rd-blue); }
.mega-col ul { list-style: none; padding: 0; margin: 0; }
.mega-col li a { display: block; padding: .22rem 0; color: var(--text-2); text-decoration: none; font-size: .86rem; }
.mega-col li a:hover { color: var(--rd-blue); }
.mega-all { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 700; font-size: .88rem; text-decoration: none; }

/* ---------- search modal ---------- */
.search-dialog .modal-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-backdrop.show { opacity: .55; backdrop-filter: blur(4px); }
.search-box { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.search-box > .ic { width: 22px; height: 22px; color: var(--rd-blue); }
.search-box .form-control { border: 0; box-shadow: none !important; font-size: 1.1rem; padding: .4rem 0; background: transparent; }
.search-results { display: flex; flex-direction: column; gap: 2px; }
.sr-item { display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; border-radius: 12px; text-decoration: none; color: var(--text); }
.sr-item:hover, .sr-item.active { background: var(--accent-soft); }
.sr-item .tc-icon { width: 38px; height: 38px; }
.sr-item small { display: block; color: var(--muted); font-size: .8rem; }
.sr-cat { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-left: auto; white-space: nowrap; }
.sr-empty { text-align: center; color: var(--muted); padding: 2rem 0; }
mark { background: rgba(47, 107, 255, .18); color: inherit; padding: 0 .1em; border-radius: 3px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--rd-grad-deep); color: #fff; padding: 4.5rem 0 4rem; }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.hero-bg .o1 { width: 520px; height: 520px; background: #2F6BFF; top: -200px; right: -120px; animation: float 14s ease-in-out infinite; }
.hero-bg .o2 { width: 380px; height: 380px; background: #00C2FF; bottom: -220px; left: 10%; opacity: .3; animation: float 18s ease-in-out infinite reverse; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); }
@keyframes float { 50% { transform: translate(-30px, 30px) scale(1.05); } }
.hero-inner { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .38rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #CFE0FF; }
.page-hero .eyebrow, .article .eyebrow { background: var(--accent-soft); border-color: transparent; color: var(--rd-blue); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.06; margin: 1.1rem 0 1rem; max-width: 15ch; }
.hero-sub { color: #C3D2F2; font-size: 1.12rem; max-width: 56ch; }
.hero-search { display: flex; align-items: center; gap: .75rem; width: 100%; max-width: 560px; margin-top: 1.6rem; padding: 1rem 1.15rem; border-radius: 16px; background: #fff; color: #6A7892; border: 0; font-size: 1.02rem; text-align: left; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); transition: transform .2s var(--ease); }
.hero-search:hover { transform: translateY(-2px); }
.hero-search > .ic { color: var(--rd-blue); width: 22px; height: 22px; }
.hero-search kbd { margin-left: auto; background: #F1F4FA; border-color: #E1E8F3; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.hero .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #E2EBFF; }
.hero .chip:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; margin: 2.2rem 0 0; }
.hero-stats dt { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1; }
.hero-stats dd { margin: .3rem 0 0; color: #9FB3DB; font-size: .82rem; font-weight: 500; }
.hero-visual { position: relative; height: 420px; }
.hv-card { position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.hv-main { inset: 20px 40px auto 40px; padding: 1.4rem 1.5rem 1rem; }
.hv-label { color: #A9BDE6; font-size: .82rem; font-weight: 600; }
.hv-value { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; }
.hv-value small { font-size: .9rem; color: #A9BDE6; font-weight: 600; }
.hv-gauge { width: 100%; margin-top: .3rem; }
.g-track { stroke: rgba(255, 255, 255, .12); stroke-width: 12; fill: none; stroke-linecap: round; }
.g-fill { stroke: #4D8BFF; stroke-width: 12; fill: none; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 0; animation: dash 1.6s .3s var(--ease) both; }
.g-needle { stroke: #fff; stroke-width: 4; stroke-linecap: round; transform-origin: 100px 100px; animation: needle 1.6s .3s var(--ease) both; }
.g-hub { fill: #fff; }
@keyframes dash { from { stroke-dashoffset: 300; } }
@keyframes needle { from { transform: rotate(-95deg); } }
.hv-mini { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; color: #fff; }
.hv-mini .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--rd-grad); }
.hv-mini small { display: block; color: #A9BDE6; font-size: .72rem; }
.hv-mini b { font-family: var(--font-display); font-size: 1.05rem; }
.hv-a { left: -10px; bottom: 10px; animation: bob 6s ease-in-out infinite; }
.hv-b { right: -10px; top: 0; animation: bob 7s ease-in-out infinite .6s; }
.hv-c { right: 20px; bottom: -10px; animation: bob 8s ease-in-out infinite 1.2s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-weight: 600; font-size: .84rem; text-decoration: none; transition: .18s var(--ease); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--rd-blue); color: var(--rd-blue); }
.chip.active { background: var(--rd-blue); border-color: var(--rd-blue); color: #fff; }
.chip .ic { width: 15px; height: 15px; }
.chip-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- sections & cards ---------- */
.home-section { padding: 2.6rem 0 1rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.section-head h2 { font-size: 1.5rem; margin: 0; display: flex; align-items: center; gap: .55rem; }
.section-head h2 .ic { color: var(--rd-blue); }
.section-head p { color: var(--muted); margin: .3rem 0 0; }
.see-all { font-weight: 700; text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; white-space: nowrap; font-size: .92rem; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .9rem; }
.tool-card { position: relative; display: flex; align-items: center; gap: .95rem; padding: 1rem 1.05rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(47, 107, 255, .35); color: var(--text); }
.tc-icon, .th-icon { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--rd-blue); }
.tc-icon .ic { width: 22px; height: 22px; }
.tc-body { display: flex; flex-direction: column; min-width: 0; }
.tc-title { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.tc-desc { color: var(--muted); font-size: .82rem; line-height: 1.35; margin-top: .15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-arrow { margin-left: auto; color: var(--line-strong); transition: .25s var(--ease); }
.tool-card:hover .tc-arrow { color: var(--rd-blue); transform: translateX(3px); }
/* category tints */
.cat-fuel { --tint: #F79009; } .cat-finance { --tint: #2F6BFF; } .cat-compare { --tint: #7A5AF8; } .cat-maintenance { --tint: #12B76A; }
.cat-diagnostics { --tint: #F04438; } .cat-tires { --tint: #475467; } .cat-ev { --tint: #06AED4; } .cat-other { --tint: #EE46BC; }
[data-bs-theme="dark"] .cat-tires { --tint: #98A2B3; }
.tc-icon[class*="cat-"], .th-icon[class*="cat-"] { color: var(--tint); background: color-mix(in srgb, var(--tint) 12%, transparent); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.cat-card { position: relative; display: flex; flex-direction: column; padding: 1.3rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); overflow: hidden; transition: .25s var(--ease); }
.cat-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: color-mix(in srgb, var(--tint) 14%, transparent); transition: .4s var(--ease); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.cat-card:hover::after { transform: scale(1.4); }
.cat-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--tint); color: #fff; margin-bottom: .9rem; position: relative; z-index: 1; box-shadow: 0 10px 20px -10px var(--tint); }
.cat-ic .ic { width: 24px; height: 24px; }
.cat-name { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.cat-desc { color: var(--muted); font-size: .85rem; margin: .25rem 0 .8rem; }
.cat-count { margin-top: auto; font-size: .78rem; font-weight: 700; color: var(--tint); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.panel-head h2 { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.mini-list { display: flex; flex-direction: column; gap: .5rem; }
.mini-list .tool-card { padding: .7rem .8rem; box-shadow: none; }
.mini-list .tc-icon { width: 38px; height: 38px; }
.mini-list .tc-desc { display: none; }
.empty-inline { color: var(--muted); font-size: .9rem; padding: .4rem 0; }
.compare-cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.4rem; border-radius: var(--radius-xl); background: var(--rd-grad-deep); color: #fff; }
.compare-cta h2 { color: #fff; display: flex; gap: .6rem; align-items: center; }
.compare-cta p { color: #C3D2F2; max-width: 52ch; }
.cc-art { display: flex; align-items: flex-end; gap: 14px; height: 150px; }
.cc-art .bar { display: block; width: 34px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #00C2FF, #2F6BFF); opacity: .9; transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.article-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: .25s var(--ease); }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.ac-art { height: 120px; display: grid; place-items: center; background: var(--rd-grad-deep); color: #fff; }
.ac-art .ic { width: 46px; height: 46px; opacity: .9; }
.ac-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.ac-meta { font-size: .76rem; color: var(--muted); font-weight: 600; }
.ac-title { font-family: var(--font-display); font-weight: 750; font-size: 1.08rem; line-height: 1.3; }
.ac-desc { color: var(--text-2); font-size: .88rem; }
.ac-more { margin-top: auto; padding-top: .4rem; font-weight: 700; font-size: .85rem; color: var(--rd-blue); display: inline-flex; gap: .3rem; align-items: center; }

/* ---------- page hero / breadcrumb ---------- */
.page-hero, .tool-hero { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); border-bottom: 1px solid var(--line); padding: 1.4rem 0 1.8rem; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: .6rem 0 .4rem; }
.page-hero p { color: var(--text-2); max-width: 70ch; }
.crumbs .breadcrumb { margin: 0; font-size: .82rem; --bs-breadcrumb-divider-color: var(--muted); --bs-breadcrumb-item-active-color: var(--muted); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--rd-blue); }
.page-body { padding-top: 2rem; padding-bottom: 3rem; }
.search-inline { position: relative; max-width: 520px; margin-top: 1rem; }
.search-inline .ic { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-inline .form-control { padding-left: 2.6rem; }
.search-inline.big .form-control { padding-top: .85rem; padding-bottom: .85rem; font-size: 1.02rem; border-radius: 14px; }
.cat-section { margin-bottom: 2.2rem; }
.cat-section h2 { font-size: 1.25rem; display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.cat-section h2 .ic { color: var(--rd-blue); }

/* ---------- tool page ---------- */
.tool-head { display: flex; align-items: center; gap: 1rem; margin-top: .9rem; }
.th-icon { width: 58px; height: 58px; border-radius: 16px; }
.th-icon .ic { width: 28px; height: 28px; }
.th-text h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0; }
.th-text p { color: var(--text-2); margin: .3rem 0 0; }
.fav-btn { margin-left: auto; flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; transition: .2s var(--ease); }
.fav-btn:hover { color: #F5B400; border-color: #F5B400; }
.fav-btn[aria-pressed="true"] { color: #F5B400; background: rgba(245, 180, 0, .1); border-color: rgba(245, 180, 0, .4); }
.fav-btn[aria-pressed="true"] .ic { fill: currentColor; }
.fav-btn .ic { width: 22px; height: 22px; }
.tool-main { padding-top: 1.6rem; padding-bottom: 3rem; }
.panel-form { position: sticky; top: calc(var(--header-h) + 16px); }
.form-actions { display: flex; gap: .6rem; margin-top: 1.3rem; flex-wrap: wrap; }
.btn-calc { flex: 1; }
.panel-result { min-height: 100%; padding: 1.5rem; position: relative; }
.result-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-art { width: 88px; height: 88px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 26px; background: var(--accent-soft); color: var(--rd-blue); }
.empty-art .ic { width: 40px; height: 40px; }
.result-empty h2 { font-size: 1.2rem; }
.result-hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; background: var(--rd-grad-deep); color: #fff; margin-bottom: 1rem; }
.result-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 194, 255, .45), transparent 70%); }
.rh-label { color: #B9CCF5; font-weight: 600; font-size: .88rem; }
.rh-value { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: .25rem; word-break: break-word; }
.rh-value small { font-size: .45em; color: #B9CCF5; font-weight: 700; margin-left: .25rem; letter-spacing: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.stat { padding: .85rem 1rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.stat-label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; margin-top: .2rem; letter-spacing: -.02em; word-break: break-word; }
.stat-value small { font-size: .66em; color: var(--muted); font-weight: 700; margin-left: .2rem; }
.pos { color: var(--rd-ok); } .neg { color: var(--rd-danger); }
.result-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1rem; }
.result-actions .btn { padding: .4rem .75rem; font-size: .84rem; }
.notes { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.note { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; border-radius: 12px; font-size: .88rem; line-height: 1.45; }
.note .ic { margin-top: .1rem; }
.note-warn { background: rgba(247, 144, 9, .1); color: #B54708; border: 1px solid rgba(247, 144, 9, .25); }
.note-info { background: var(--accent-soft); color: var(--text-2); border: 1px solid rgba(47, 107, 255, .2); }
.note-error { background: rgba(240, 68, 56, .08); color: #B42318; border: 1px solid rgba(240, 68, 56, .25); }
[data-bs-theme="dark"] .note-warn { color: #FEC84B; } [data-bs-theme="dark"] .note-error { color: #FDA29B; }
.chart-box { position: relative; height: 280px; margin-top: 1.2rem; padding: .6rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.diagram-box { margin-top: 1.2rem; padding: 1rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); text-align: center; }
.diagram-box svg { max-width: 100%; height: auto; }
.result-table-wrap { margin-top: 1.2rem; }
.result-table-wrap .table-responsive { max-height: 420px; border-radius: 12px; border: 1px solid var(--line); }
.data-table { --bs-table-bg: transparent; --bs-table-color: var(--text); font-size: .86rem; margin: 0; }
.data-table thead th { position: sticky; top: 0; background: var(--surface-3); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { border-color: var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tbody tr:hover { background: var(--accent-soft); }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.table-toolbar h3 { font-size: .95rem; margin: 0; }
.ad-wrap { margin: 1rem auto; text-align: center; }
.ad-wrap::before { content: attr(data-label); display: block; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.ad-result { margin-top: 1rem; }
.history-panel { margin-top: 1rem; }
.history-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.history-list li { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 11px; background: var(--surface-2); font-size: .85rem; }
.history-list .h-main { font-weight: 700; }
.history-list .h-meta { color: var(--muted); font-size: .76rem; }
.history-list .btn { margin-left: auto; padding: .25rem .6rem; font-size: .78rem; }
.content-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; margin-bottom: 1rem; }
.content-block h2 { font-size: 1.2rem; display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.content-block h2 .ic { color: var(--rd-blue); }
.content-block h3 { font-size: 1rem; margin-top: 1.1rem; }
.content-mini { padding: 1rem 1.2rem; }
.content-mini h3 { margin-top: 0; display: flex; gap: .5rem; align-items: center; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.steps li { counter-increment: s; position: relative; padding-left: 2.6rem; color: var(--text-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 1.85rem; height: 1.85rem; display: grid; place-items: center; border-radius: 9px; background: var(--rd-grad); color: #fff; font-weight: 800; font-size: .85rem; }
.formula { white-space: pre-wrap; background: var(--rd-navy-900); color: #DDE8FF; padding: 1rem 1.2rem; border-radius: 14px; font-size: .88rem; line-height: 1.7; border: 1px solid var(--line); margin: 0; }
.formula-note { color: var(--muted); font-size: .88rem; margin: .8rem 0 0; }
.src-line { font-size: .84rem; color: var(--text-2); }
.fallback-note { display: flex; gap: .5rem; align-items: center; font-size: .82rem; color: var(--muted); background: var(--surface-2); padding: .5rem .75rem; border-radius: 10px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: .9rem 0; font-weight: 650; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--rd-blue); transition: transform .25s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: .9rem; margin: 0; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 1rem; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem; }
.side-card h2 { font-size: 1rem; margin-bottom: .8rem; }
.related-list { display: flex; flex-direction: column; gap: .5rem; }
.related-list.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.related-list .tool-card { box-shadow: none; padding: .75rem .85rem; }
.related-list .tc-icon { width: 40px; height: 40px; }
.feedback .fb-actions { display: flex; gap: .5rem; }
.fb-thanks { color: var(--rd-ok); font-weight: 600; margin: .5rem 0 0; }
.sponsor-card { display: flex; gap: .8rem; align-items: center; padding: .9rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); margin-bottom: .6rem; }
.sponsor-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.sponsor-card .sp-tag { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sponsor-card b { display: block; }
.sponsor-card small { color: var(--text-2); }

/* ---------- apps ---------- */
.app-card, .app-root { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.app-skeleton { display: flex; flex-direction: column; gap: 1rem; }
.sk { border-radius: 12px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.sk-line { height: 24px; width: 40%; } .sk-block { height: 110px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.mechanic-note { display: flex; gap: .6rem; align-items: center; padding: .7rem .9rem; border-radius: 12px; background: var(--accent-soft); color: var(--text-2); font-size: .88rem; margin-bottom: 1rem; }
.mechanic-note .ic { color: var(--rd-blue); }
.diag-list { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.diag-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .2s; }
.diag-item.is-danger { border-left: 4px solid var(--rd-danger); }
.diag-head { width: 100%; display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; background: transparent; border: 0; color: var(--text); text-align: left; font-weight: 700; }
.diag-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--rd-blue); flex-shrink: 0; }
.is-danger .diag-ic { background: rgba(240, 68, 56, .1); color: var(--rd-danger); }
.diag-title { flex: 1; }
.diag-chev { transition: transform .25s var(--ease); color: var(--muted); }
.diag-head[aria-expanded="true"] .diag-chev { transform: rotate(180deg); }
.diag-body { padding: 0 1rem 1rem 1rem; }
.diag-body h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 1rem 0 .5rem; }
.cause-list, .advice-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.cause-list li, .advice-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.advice-list .ic { color: var(--rd-ok); margin-top: .15rem; }
.sev { display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.sev-low { background: rgba(18, 183, 106, .12); color: #067647; } .sev-medium { background: rgba(247, 144, 9, .14); color: #B54708; }
.sev-high { background: rgba(240, 68, 56, .12); color: #B42318; } .sev-critical { background: #D92D20; color: #fff; }
[data-bs-theme="dark"] .sev-low { color: #75E0A7; } [data-bs-theme="dark"] .sev-medium { color: #FEC84B; } [data-bs-theme="dark"] .sev-high { color: #FDA29B; }
.danger-banner { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 14px; background: linear-gradient(135deg, #D92D20, #F04438); color: #fff; margin-top: .3rem; }
.danger-banner .ic { width: 28px; height: 28px; }
.danger-banner strong { display: block; font-family: var(--font-display); }
.danger-banner span { font-size: .9rem; opacity: .95; }
.obd-search { margin-top: .5rem; }
.obd-search .form-control { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; border-right: 1.5px solid var(--line); }
.obd-result:not(:empty) { margin-top: 1.2rem; }
.obd-card { border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; }
.obd-card-head { padding: 1.2rem 1.3rem; background: var(--rd-grad-deep); color: #fff; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.obd-code { font-family: ui-monospace, monospace; font-size: 2rem; font-weight: 800; letter-spacing: .06em; }
.obd-card-head p { margin: 0; color: #C3D2F2; flex-basis: 100%; }
.obd-card-body { padding: 1.2rem 1.3rem; }
.obd-struct { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.obd-struct div { padding: .7rem .8rem; border-radius: 12px; background: var(--surface-2); font-size: .86rem; }
.obd-struct b { display: block; font-size: .7rem; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.obd-table code { font-weight: 700; color: var(--rd-blue); }
.obd-table td:nth-child(2) { white-space: normal; }
.lights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .8rem; margin-top: 1rem; }
.light-card { display: flex; gap: 1rem; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.light-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.light-card p { font-size: .88rem; color: var(--text-2); margin-bottom: .4rem; }
.light-card .todo { color: var(--text); }
.light-icon { position: relative; width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; background: #0A1630; }
.light-icon .ic { width: 28px; height: 28px; }
.light-badge { font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .02em; }
.light-badge.small { position: absolute; bottom: 4px; right: 5px; font-size: .55rem; }
.light-red .light-icon { color: #FF4D4D; box-shadow: 0 0 20px -4px rgba(255, 77, 77, .6) inset; }
.light-amber .light-icon { color: #FFB020; box-shadow: 0 0 20px -4px rgba(255, 176, 32, .5) inset; }
.light-green .light-icon { color: #2EE08A; } .light-blue .light-icon { color: #4D9BFF; }
.legend-row { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: .86rem; color: var(--text-2); }
.legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: -.6rem; }
.dot-red { background: #F04438; } .dot-amber { background: #F79009; } .dot-green { background: #12B76A; } .dot-blue { background: #2F6BFF; }

/* compare */
.cmp-toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.cmp-table th:first-child, .cmp-table td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; font-weight: 600; color: var(--text-2); }
.cmp-table td, .cmp-table th { min-width: 150px; white-space: normal; }
.cmp-table .best { background: rgba(18, 183, 106, .12); color: #067647; font-weight: 800; }
[data-bs-theme="dark"] .cmp-table .best { color: #75E0A7; }
.cmp-car-head { display: flex; flex-direction: column; gap: .2rem; }
.cmp-car-head b { font-family: var(--font-display); font-size: 1rem; color: var(--text); text-transform: none; letter-spacing: 0; }
.cmp-car-head .btn { align-self: flex-start; padding: .1rem .5rem; font-size: .72rem; text-transform: none; }
/* garage */
.garage-cars { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.car-pill { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem .5rem .5rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); white-space: nowrap; cursor: pointer; transition: .2s; font-weight: 600; }
.car-pill.active { border-color: var(--rd-blue); box-shadow: 0 0 0 3px var(--bs-focus-ring-color); }
.car-pill img, .car-pill .car-ph { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: var(--accent-soft); display: grid; place-items: center; color: var(--rd-blue); }
.car-pill small { display: block; color: var(--muted); font-weight: 500; font-size: .74rem; }
.garage-head { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.garage-photo { width: 120px; height: 90px; border-radius: 16px; object-fit: cover; background: var(--accent-soft); display: grid; place-items: center; color: var(--rd-blue); }
.garage-photo .ic { width: 40px; height: 40px; }
.garage-head h2 { margin: 0; font-size: 1.5rem; }
.plate { display: inline-block; font-family: ui-monospace, monospace; font-weight: 800; padding: .1rem .5rem; border: 2px solid var(--text); border-radius: 6px; font-size: .85rem; letter-spacing: .05em; }
.nav-tabs-rd { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; scrollbar-width: none; }
.nav-tabs-rd button { border: 0; background: transparent; padding: .7rem .9rem; font-weight: 650; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; display: flex; gap: .4rem; align-items: center; }
.nav-tabs-rd button.active { color: var(--rd-blue); border-bottom-color: var(--rd-blue); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.kpi { padding: 1rem 1.1rem; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.kpi.kpi-main { background: var(--rd-grad-deep); color: #fff; border: 0; }
.kpi.kpi-main .kpi-label { color: #B9CCF5; }
.kpi-label { font-size: .78rem; font-weight: 600; color: var(--muted); display: flex; gap: .4rem; align-items: center; }
.kpi-value { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; margin-top: .25rem; }
.reminder { display: flex; gap: .7rem; align-items: center; padding: .7rem .9rem; border-radius: 12px; background: var(--surface-2); font-size: .9rem; }
.reminder.overdue { background: rgba(240, 68, 56, .1); }
.reminder.soon { background: rgba(247, 144, 9, .1); }
.mt-status { font-weight: 700; font-size: .78rem; display: inline-flex; gap: .3rem; align-items: center; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.st-ok { background: rgba(18, 183, 106, .12); color: #067647; } .st-soon { background: rgba(247, 144, 9, .14); color: #B54708; } .st-overdue { background: rgba(240, 68, 56, .12); color: #B42318; } .st-none { background: var(--surface-3); color: var(--muted); }
[data-bs-theme="dark"] .st-ok { color: #75E0A7; } [data-bs-theme="dark"] .st-soon { color: #FEC84B; } [data-bs-theme="dark"] .st-overdue { color: #FDA29B; }
.mt-table input { min-width: 96px; padding: .35rem .5rem; font-size: .85rem; }
.mt-table td { vertical-align: middle; }
.modal-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.modal-header, .modal-footer { border-color: var(--line); }
.empty-state { text-align: center; padding: 2.5rem 1rem; }
.empty-state .empty-art { margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.15rem; }
.empty-state p { color: var(--muted); max-width: 44ch; margin: 0 auto 1rem; }

/* ---------- prose (articles, static) ---------- */
.prose { font-size: 1.04rem; line-height: 1.75; color: var(--text-2); }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 .8rem; color: var(--text); }
.prose strong { color: var(--text); }
.prose li { margin-bottom: .4rem; }
.article .page-hero h1 { max-width: 22ch; }
.article .lead { color: var(--text-2); }
.contact-form { max-width: 720px; }
.nf { padding-top: 5rem; }
.nf-code { font-family: var(--font-display); font-size: 6rem; font-weight: 800; background: var(--rd-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.nf-code .ic { width: 90px; height: 90px; color: var(--rd-blue); }

/* ---------- footer ---------- */
.site-footer { background: var(--rd-navy-950); color: #9FB0D3; padding: 3.2rem 0 1.4rem; margin-top: 3rem; }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #9FB0D3; text-decoration: none; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.brand-footer, .brand-footer .brand-text { color: #fff; }
.footer-about { margin: 1rem 0; font-size: .9rem; max-width: 38ch; }
.footer-langs { display: flex; flex-wrap: wrap; gap: .3rem .8rem; }
.footer-langs a { font-size: .82rem; }
.footer-langs a[aria-current] { color: #fff; font-weight: 700; }
.footer-note { font-size: .78rem; color: #6F82AB; margin-top: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2.2rem; padding-top: 1.2rem; font-size: .82rem; }

/* ---------- bottom nav (mobile) ---------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--header-bg); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-top: 1px solid var(--line); padding: .35rem .3rem calc(.35rem + env(safe-area-inset-bottom)); }
.bn-item { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .3rem 0; color: var(--muted); text-decoration: none; font-size: .66rem; font-weight: 600; background: none; border: 0; }
.bn-item .ic { width: 22px; height: 22px; }
.bn-item.active { color: var(--rd-blue); }
.bn-search .ic { width: 44px; height: 44px; padding: 11px; margin-top: -20px; border-radius: 16px; background: var(--rd-grad); color: #fff; box-shadow: 0 10px 22px -8px rgba(47, 107, 255, .8); }
@media (max-width: 991.98px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 5.5rem; }
  .panel-form, .sticky-side { position: static; }
  .cookie-banner { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
  .toast-container { bottom: 70px !important; }
}

/* ---------- cookie, toast ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1060; display: flex; justify-content: center; animation: up .4s var(--ease); }
.cookie-inner { display: flex; gap: 1rem; align-items: center; max-width: 880px; padding: 1rem 1.2rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.cookie-inner > .ic { width: 28px; height: 28px; color: var(--rd-blue); flex-shrink: 0; }
.cookie-inner p { margin: 0; font-size: .86rem; color: var(--text-2); }
.cookie-actions { display: flex; gap: .5rem; flex-shrink: 0; }
@media (max-width: 640px) { .cookie-inner { flex-direction: column; align-items: stretch; text-align: left; } .cookie-inner > .ic { display: none; } }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }
.toast { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 14px; }
.toast-body { display: flex; gap: .6rem; align-items: center; font-weight: 600; font-size: .9rem; }
.toast-body .ic { color: var(--rd-ok); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.fade-in { animation: fadeIn .45s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) { .mega-grid { grid-template-columns: repeat(3, 1fr); } .mega-menu { transform: translateX(-45%); } }
@media (max-width: 767.98px) {
  .hero { padding: 2.6rem 0 2.6rem; }
  .hero-stats { gap: 1.2rem; }
  .hero-stats dt { font-size: 1.35rem; }
  .compare-cta { flex-direction: column; align-items: flex-start; padding: 1.6rem; }
  .cc-art { display: none; }
  .tool-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 1.25rem; }
  .brand-text small { display: none; }
  .site-header .navbar { padding: 0 .75rem; gap: .5rem; }
  .icon-btn { padding: 0 .45rem; }
  .content-block { padding: 1.1rem; }
  .panel, .app-card, .app-root { padding: 1rem; border-radius: var(--radius); }
  .tool-head { align-items: flex-start; }
  .th-icon { width: 48px; height: 48px; }
}
@media (max-width: 991.98px) { .nav-actions .search-trigger { display: none; } }

/* ---------- print (PDF export) ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; color: #000 !important; padding: 0 !important; }
  .site-header, .site-footer, .bottom-nav, .ad-wrap, .cookie-banner, .fav-btn, .form-actions, .result-actions, .history-panel, aside, .feedback, #faq, .search-trigger, .toast-container, .sponsor-slot, .crumbs, .no-print, .nav-tabs-rd, .cmp-toolbar { display: none !important; }
  .tool-hero, .page-hero { background: none !important; border: 0; padding: 0 0 8px; }
  .panel, .content-block, .app-root, .app-card { border: 1px solid #ccc !important; box-shadow: none !important; break-inside: avoid; }
  .panel-form, .sticky-side { position: static !important; }
  .result-hero { background: #0A1630 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .col-lg-5, .col-lg-7 { width: 100% !important; }
  .result-table-wrap .table-responsive { max-height: none !important; overflow: visible !important; }
  .print-only { display: block !important; }
  a { color: #000; text-decoration: none; }
}
.print-only { display: none; }
