:root {
  --ink: #11120f;
  --paper: #f3f4ef;
  --white: #ffffff;
  --navy: #17233d;
  --orange: #ff7a3d;
  --orange-soft: #ffe0d0;
  --mint: #ccefe3;
  --lavender: #ded7ff;
  --sky: #d9eefb;
  --pink: #f7dceb;
  --sand: #f2e9cf;
  --line: #d8dbd3;
  --muted: #73786f;
  --muted-2: #9a9e96;
  --success: #2f855a;
  --danger: #b3261e;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 38px;
  --shadow: 0 18px 60px rgba(17, 18, 15, .08);
  --container: min(1500px, calc(100vw - 40px));
  --title: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 3%, rgba(255, 122, 61, .08), transparent 22rem),
    radial-gradient(circle at 95% 13%, rgba(109, 157, 255, .08), transparent 25rem),
    var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; font-family: var(--body); font-weight: 500; }
button, input, select, textarea { font: inherit; font-family: var(--body); }
button { cursor: pointer; color: inherit; font-weight: 500; }
img, svg { max-width: 100%; display: block; }

.container,.catalog-layout,.detail-hero,.detail-layout,.quiz-shell,.article-page,.flash { width: var(--container); margin-inline: auto; }
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  padding: 15px 0;
  background: rgba(243, 244, 239, .86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  width: var(--container);
  min-height: 66px;
  margin-inline: auto;
  padding: 8px 10px 8px 20px;
  border: 1px solid rgba(216, 219, 211, .92);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 36px rgba(17, 18, 15, .05);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--title); font-size: 21px; font-weight: 700; line-height: 1; letter-spacing: 0; white-space: nowrap; }
.brand-mark { position: relative; width: 31px; height: 31px; flex: 0 0 auto; overflow: hidden; border-radius: 50%; background: var(--orange); }
.brand-mark::before,
.brand-mark::after { position: absolute; border: 1.5px solid rgba(17, 18, 15, .58); border-radius: 50%; content: ""; }
.brand-mark::before { width: 24px; height: 24px; top: -9px; left: -2px; }
.brand-mark::after { width: 21px; height: 21px; right: -7px; bottom: -8px; }
.brand-text { display: inline-block; }
.brand-dot { color: var(--orange); }
.site-nav,.main-nav { display: flex; align-items: center; justify-content: center; gap: 28px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.site-nav a,.main-nav a { position: relative; color: #42463f; font-size: 14px; font-weight: 600; }
.site-nav a::after,.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 99px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-nav a:hover::after,.main-nav a:hover::after { transform: scaleX(1); }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 15px; padding: 12px 18px; font-family: var(--body); font-weight: 600; line-height: 1; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--dark,.button-dark { color: var(--white); background: var(--ink); }
.button--orange,.button-primary { color: var(--ink); background: var(--orange); }
.button--light,.button-secondary { border-color: var(--line); background: var(--white); }
.button--small { min-height: 42px; padding: 10px 15px; font-size: 13px; }
.icon-button { position: relative; width: 46px; height: 46px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--white); font-size: 20px; transition: transform .2s ease, border-color .2s ease; }
.icon-button:hover { border-color: #b4b8ae; transform: translateY(-2px); }
.text-link { color: var(--ink); font-family: var(--body); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.section { padding: 74px 0; }
.section--tight { padding: 22px 0; }
.section-heading,.section-head,.catalog-toolbar,.admin-head,.modal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-heading h2,.section-head h2,.catalog-toolbar h2 { max-width: 920px; margin: 0; font-family: var(--title); font-size: clamp(34px, 4.1vw, 64px); font-weight: 650; line-height: .98; }
.section-heading p:not(.eyebrow),.section-head p,.catalog-toolbar p { max-width: 460px; margin: 0; color: var(--muted); font-size: 15px; }
.eyebrow,.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before,.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.hero { min-height: calc(100dvh - 86px); padding: 26px 0 68px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr); gap: 22px; align-items: stretch; }
.hero-copy,.hero-visual { min-height: 650px; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; }
.hero-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 74px); background: var(--white); }
.hero-title { max-width: 980px; margin: 0; font-family: var(--title); font-size: clamp(44px, 6vw, 86px); font-weight: 650; line-height: .95; }
.hero-lead { max-width: 760px; margin: 24px 0 0; color: #595e55; font-size: clamp(17px, 1.5vw, 20px); }
.hero-form { display: grid; grid-template-columns: 1.2fr .8fr auto; gap: 10px; margin-top: 34px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.hero-form .field { margin: 0; }
.field span,.field label,.lead-form label,.cta-form label { color: var(--muted-2); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
input,select,textarea { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink); background: var(--white); outline: none; }
.hero-form input,.hero-form select { border-color: transparent; background: var(--white); font-weight: 650; }
input:focus,select:focus,textarea:focus { border-color: #aeb2a9; box-shadow: 0 0 0 4px rgba(255, 122, 61, .14); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; color: var(--muted); font-size: 12px; font-weight: 650; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.hero-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(26px, 4vw, 44px); color: var(--white); background: radial-gradient(circle at 20% 18%, rgba(255,122,61,.34), transparent 34%), var(--navy); }
.visual-kicker { margin: 0 0 10px; color: rgba(255,255,255,.64); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.visual-title { max-width: 540px; margin: 0; font-family: var(--title); font-size: clamp(28px, 3vw, 42px); font-weight: 600; line-height: 1.05; }
.visual-top,.visual-bottom,.match-card__top,.card-face__top,.brand-row,.card-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.status-pill,.investment-pill,.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 10px; background: var(--white); color: var(--ink); font-size: 11px; font-weight: 700; }
.match-stack { position: relative; min-height: 340px; }
.match-card { position: absolute; width: min(330px, 78%); min-height: 205px; padding: 22px; border-radius: 26px; color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.16); }
.match-card--back { left: 6%; top: 22%; background: var(--orange-soft); transform: rotate(-8deg); }
.match-card--main { left: 15%; top: 8%; z-index: 2; background: var(--mint); transform: rotate(-2.4deg); }
.match-card--front { right: 2%; bottom: 0; z-index: 3; width: min(250px, 64%); min-height: 180px; background: var(--lavender); transform: rotate(4deg); }
.match-card h3 { margin: 26px 0 10px; font-family: var(--title); font-size: 24px; font-weight: 600; line-height: 1.08; }
.match-card p { margin: 0; color: #4d534c; font-size: 13px; }
.mini-label { color: #4d534c; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.mini-logo,.card-logo,.compare-logo { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--logo-color, var(--ink)); font-family: var(--title); font-size: 12px; font-weight: 700; }
.match-card__metrics,.card-metrics,.detail-metrics,.admin-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 18px 0 0; }
.match-card__metrics div,.card-metrics div,.detail-metrics div,.admin-kpis div,.metric-grid div { padding: 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,.68); }
dt,.match-card__metrics small,.card-metrics dt { display: block; margin: 0 0 4px; color: #656b63; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
dd,.match-card__metrics strong,.card-metrics dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.match-score { margin-top: 18px; font-family: var(--title); font-size: 42px; font-weight: 700; }
.visual-bottom a { color: var(--orange); font-family: var(--body); font-weight: 600; }

.budget-grid,.franchise-grid,.blog-grid,.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.budget-card,.quick-tags a,.blog-card,.filter-panel,.catalog-sidebar,.sticky-lead,.quiz-panel,.quiz-form,.admin-panel,.auth-card { border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--white); box-shadow: var(--shadow); }
.budget-card { min-height: 190px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .22s ease, background-color .22s ease; }
.budget-card:nth-child(1) { background: var(--mint); }
.budget-card:nth-child(2) { background: var(--orange-soft); }
.budget-card:nth-child(3) { background: var(--sky); }
.budget-card:nth-child(4) { background: var(--lavender); }
.budget-card:hover { transform: translateY(-5px); }
.budget-card span,.budget-card em,.quick-tags span { color: #596057; font-size: 12px; font-style: normal; font-weight: 700; }
.budget-card strong { max-width: 10ch; font-family: var(--title); font-size: 30px; line-height: 1.04; }
.quick-tags,.hub-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.quick-tags a,.hub-strip a { min-height: 58px; display: inline-flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 16px; border-radius: var(--radius-md); }
.hub-strip { margin-top: 0; }
.hub-strip a { border: 1px solid var(--line); background: var(--white); font-family: var(--body); font-weight: 600; }
.quick-tags strong { font-weight: 600; }

.franchise-card { min-height: 100%; display: flex; flex-direction: column; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--white); padding: 0; transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.franchise-card:hover { transform: translateY(-4px); border-color: #c6cabf; box-shadow: 0 18px 48px rgba(17, 18, 15, .08); }
.card-face { flex: 1; display: flex; flex-direction: column; gap: 24px; min-height: 250px; margin: 0; padding: 22px; border-radius: 23px; background: var(--card-bg, var(--orange-soft)); }
.brand-kicker { margin: 0 0 8px; color: #4d534c; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.franchise-card h3 { max-width: 12.5em; margin: 0; font-family: var(--title); font-size: clamp(21px, 1.55vw, 27px); font-weight: 650; line-height: 1.02; }
.franchise-card h3 a { font-family: inherit; font-weight: inherit; }
.franchise-card p { margin: 0; color: #4d534c; font-size: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag { min-height: 28px; border: 1px solid rgba(17,18,15,.12); background: rgba(255,255,255,.3); font-size: 10px; font-weight: 700; }
.status-verified,.status-partner { background: var(--mint); color: #245f48; }
.rating,.card-bookmark { min-width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.72); color: var(--ink); font-family: var(--title); font-size: 12px; font-weight: 700; }
.card-bookmark { color: #22251f; }
.card-logo { width: 52px; height: 52px; background: rgba(255,255,255,.72); font-size: 13px; }
.card-bottom { display: grid; gap: 0; padding: 18px 20px 20px; }
.card-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.card-metrics div { padding: 0; border-radius: 0; background: transparent; }
.card-metrics dt { margin-bottom: 6px; color: #9a9e96; font-size: 10px; letter-spacing: .08em; }
.card-metrics dd { font-size: 15px; font-weight: 700; }
.card-action .button { white-space: nowrap; }
.card-action { margin-top: 38px; }
.card-note { max-width: 170px; color: #656b63; font-size: 12px; line-height: 1.2; }
.details-link { color: var(--muted); font-family: var(--body); font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.section-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.bento-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.bento-card { position: relative; min-height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px; background: var(--white); }
.bento-card h2,.bento-card h3 { margin: 0 0 14px; font-family: var(--title); font-size: clamp(24px, 2.5vw, 38px); font-weight: 600; line-height: 1.05; }
.bento-card p { color: var(--muted); }
.bento-card--scenario { color: var(--white); background: radial-gradient(circle at 78% 22%, rgba(255,122,61,.42), transparent 30%), var(--navy); }
.bento-card--scenario p,.bento-card--scenario .eyebrow { color: rgba(255,255,255,.68); }
.bento-card--timeline { grid-column: 1 / -1; background: var(--sky); }
.scenario-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.scenario-chips span { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 11px; color: var(--white); font-size: 12px; font-weight: 700; }
.scenario-chips--light span { border-color: var(--line); color: var(--ink); background: var(--paper); }
.compare-list { display: grid; gap: 10px; margin-top: 18px; }
.compare-item { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.compare-name { display: grid; gap: 2px; }
.compare-name span { color: var(--muted); font-size: 12px; }
.compare-rating { font-family: var(--title); font-weight: 700; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.timeline div { display: grid; gap: 8px; padding: 18px; border-radius: var(--radius-md); background: rgba(255,255,255,.58); }
.timeline span { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.timeline em { color: #5f6868; font-size: 12px; font-style: normal; font-weight: 700; }

.page-hero.compact { width: var(--container); margin-inline: auto; padding: 70px 0 34px; }
.page-hero.compact h1 { max-width: 1050px; margin: 0; font-family: var(--title); font-size: clamp(42px, 6vw, 82px); font-weight: 650; line-height: .97; }
.page-hero.compact p:not(.eyebrow):not(.kicker) { max-width: 760px; color: var(--muted); font-size: 18px; }
.catalog-layout { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; padding-bottom: 74px; }
.catalog-sidebar { position: sticky; top: 16px; padding: 16px; border-radius: var(--radius-xl); }
.sidebar-promo { margin-bottom: 18px; padding: 18px; border-radius: var(--radius-lg); color: var(--white); background: radial-gradient(circle at 78% 10%, rgba(255,122,61,.4), transparent 34%), var(--navy); }
.sidebar-promo strong { display: block; font-family: var(--title); font-size: 20px; line-height: 1.1; }
.sidebar-promo p { color: rgba(255,255,255,.68); font-size: 13px; }
.sidebar-promo .button { background: var(--sky); color: var(--ink); }
.catalog-main { min-width: 0; }
.catalog-toolbar { min-height: 120px; align-items: center; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--white); box-shadow: var(--shadow); }

.catalog-board {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 0;
  width: var(--container);
  margin: 28px auto 74px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 22px 70px rgba(17,18,15,.07);
}
.catalog-board .catalog-sidebar {
  position: sticky;
  top: 112px;
  min-height: calc(100dvh - 140px);
  padding: 22px 22px 28px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255,255,255,.36);
  box-shadow: none;
}
.catalog-board .sidebar-promo {
  position: relative;
  min-height: 222px;
  margin: 0 0 26px;
  overflow: hidden;
  padding: 25px;
  border-radius: 24px;
  color: var(--white);
  background: radial-gradient(circle at 88% 100%, rgba(255,255,255,.18), transparent 22%), radial-gradient(circle at 12% 0, rgba(255,122,61,.18), transparent 30%), var(--navy);
}
.catalog-board .sidebar-promo::before,
.catalog-board .sidebar-promo::after {
  position: absolute;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  content: "";
}
.catalog-board .sidebar-promo::before { width: 150px; height: 150px; left: -50px; top: -72px; }
.catalog-board .sidebar-promo::after { width: 118px; height: 118px; right: -62px; bottom: -48px; }
.catalog-board .sidebar-promo strong,
.catalog-board .sidebar-promo p,
.catalog-board .sidebar-promo .button { position: relative; z-index: 1; }
.catalog-board .sidebar-promo strong { max-width: 210px; font-size: 23px; font-weight: 700; line-height: 1.04; }
.catalog-board .sidebar-promo p { max-width: 205px; margin: 18px 0 24px; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.45; }
.catalog-board .sidebar-promo .button { width: 100%; color: var(--white); border-color: rgba(255,255,255,.18); background: #d9eefb; }
.filter-form { display: grid; gap: 22px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.filter-head h2 { margin: 0; font-family: var(--title); font-size: 24px; font-weight: 650; line-height: 1; }
.filter-head a { color: #7b8178; font-size: 13px; font-weight: 700; }
.filter-group { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.filter-group legend {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
  color: #9a9e96;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.filter-group legend::after { flex: 1; height: 1px; margin-left: 8px; background: var(--line); content: ""; }
.filter-option {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 27px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.filter-option input { position: absolute; opacity: 0; pointer-events: none; }
.filter-control {
  width: 18px;
  height: 18px;
  border: 1px solid #8e948a;
  border-radius: 50%;
  background: transparent;
}
.filter-option--square .filter-control { border-radius: 3px; }
.filter-option input:checked + .filter-control {
  border-color: var(--ink);
  background: radial-gradient(circle at 50% 50%, var(--ink) 0 4px, transparent 4.5px);
}
.filter-option--square input:checked + .filter-control { background: var(--ink); box-shadow: inset 0 0 0 4px var(--white); }
.filter-option span:not(.filter-control) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-option em { color: #8d948a; font-size: 12px; font-style: normal; font-weight: 700; }
.filter-submit { width: 100%; margin-top: 2px; }
.catalog-board .catalog-main { padding: 36px 28px 34px; }
.catalog-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 45%);
  align-items: start;
  gap: 24px;
  margin-bottom: 20px;
}
.catalog-title-row { display: flex; align-items: center; gap: 14px; }
.catalog-title-row h1 {
  margin: 0;
  font-family: var(--title);
  font-size: clamp(42px, 4.4vw, 68px);
  font-weight: 650;
  line-height: .92;
}
.catalog-title-row span {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
}
.catalog-topbar p { margin: 18px 0 0; color: #6f756c; font-size: 14px; }
.catalog-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.search-control { position: relative; display: block; }
.search-control input {
  min-height: 52px;
  padding: 14px 50px 14px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  font-weight: 600;
}
.search-control svg { position: absolute; top: 50%; right: 18px; color: #747a71; transform: translateY(-50%); }
.sort-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,.88);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
}
.catalog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.catalog-chips a { min-height: 32px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; background: rgba(255,255,255,.72); color: #596057; font-size: 12px; font-weight: 700; }
.catalog-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }

.detail-hero { display: grid; grid-template-columns: 1fr 430px; gap: 42px; align-items: end; padding: 64px 0 44px; }
.detail-hero--franchise { align-items: stretch; }
.detail-copy,
.detail-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}
.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 460px;
  padding: clamp(28px, 5vw, 58px);
}
.detail-summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
  padding: 22px;
  background: var(--mint);
}
.summary-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.detail-hero h1,.article-page h1,.auth-card h1,.admin-head h1 { margin: 0; font-family: var(--title); font-size: clamp(38px, 5vw, 72px); font-weight: 650; line-height: 1; }
.detail-hero p,.content-flow p,.article-content p { color: var(--muted); font-size: 17px; }
.breadcrumb { color: var(--muted); font-family: var(--body); font-weight: 600; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 34px; align-items: start; }
.content-flow,.table-wrap,.lead-modal { border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--white); box-shadow: var(--shadow); }
.content-flow { padding: 30px; }
.detail-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.detail-proof-grid div {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--paper);
}
.detail-proof-grid strong {
  display: block;
  font-family: var(--title);
  font-size: 22px;
  line-height: 1;
}
.detail-proof-grid span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.content-flow h2 { margin: 30px 0 10px; font-family: var(--title); font-size: 30px; }
.content-flow h2:first-child { margin-top: 0; }
.sticky-lead { position: sticky; top: 18px; padding: 22px; }
.sticky-lead h2,.quiz-panel h2,.quiz-form h2 { margin: 0 0 12px; font-family: var(--title); font-size: 28px; }
.faq-list details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq-list summary { cursor: pointer; font-weight: 700; }

.lead-form .button { width: 100%; margin-top: 8px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; color: var(--muted); font-size: 13px; }
.checkbox input { width: auto; min-height: 0; margin-top: 3px; }
.honeypot { position: absolute; left: -9999px; }

.cta-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 32px; align-items: center; min-height: 420px; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 54px); color: var(--white); background: radial-gradient(circle at 84% 12%, rgba(255,122,61,.46), transparent 30%), radial-gradient(circle at 20% 94%, rgba(204,239,227,.16), transparent 25%), var(--navy); }
.cta-card::before { position: absolute; width: 420px; height: 420px; right: -170px; bottom: -190px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ""; }
.cta-card .eyebrow,.cta-card p { color: rgba(255,255,255,.68); }
.cta-copy,
.cta-card .lead-form { position: relative; z-index: 1; }
.cta-copy h2 { max-width: 900px; margin: 0; font-family: var(--title); font-size: clamp(38px, 5vw, 72px); font-weight: 650; line-height: .98; }
.cta-card .lead-form { padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); background: rgba(255,255,255,.08); }
.cta-card input,.cta-card select { border-color: rgba(255,255,255,.18); color: var(--white); background: rgba(255,255,255,.08); }
.cta-card option { color: var(--ink); }
.cta-card .button { background: var(--orange); color: var(--ink); }
.cta-card--compact { grid-template-columns: minmax(0, 1fr) auto; }

.blog-card { min-height: 220px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.blog-card span,.article-meta { color: var(--muted); font-size: 13px; font-weight: 700; }
.blog-card h2,.blog-card h3 { margin: 12px 0; font-family: var(--title); font-size: 24px; line-height: 1.1; }

.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th,td { padding: 15px 17px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 13px; font-weight: 700; }
td span { color: var(--muted); font-size: 14px; }

.quiz-shell { display: grid; grid-template-columns: 1fr 420px; gap: 22px; padding-bottom: 74px; }
.quiz-panel,.quiz-form { padding: 24px; }
.quiz-panel--dark { color: var(--white); background: radial-gradient(circle at 78% 18%, rgba(255,122,61,.42), transparent 32%), var(--navy); }
.quiz-panel--dark p,
.quiz-panel--dark .eyebrow { color: rgba(255,255,255,.68); }
.quiz-panel--dark .choice-grid button { border-color: rgba(255,255,255,.16); color: var(--white); background: rgba(255,255,255,.08); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.choice-grid button { min-height: 78px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; background: var(--paper); font-family: var(--body); font-weight: 600; text-align: left; }
.article-page { max-width: 880px; padding: 70px 0; }
.article-content { margin-top: 28px; font-size: 18px; }
.legal-page .content-flow { margin-top: 24px; }
.rating-grid,
.compare-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rating-method { min-height: 260px; }

.site-footer { width: 100%; padding: 24px 0 38px; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: start; width: var(--container); margin-inline: auto; padding-top: 26px; border-top: 1px solid var(--line); }
.site-footer p { max-width: 560px; margin: 18px 0 0; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.site-footer nav a { color: #42463f; font-size: 14px; font-weight: 500; }
.flash { margin-top: 10px; padding: 13px 16px; border-radius: var(--radius-md); font-weight: 700; }
.flash-success { background: var(--mint); color: #075b4d; }
.flash-error { background: #ffe7df; color: var(--danger); }

.lead-modal { width: min(560px, calc(100vw - 28px)); border: 0; padding: 24px; }
.lead-modal::backdrop { background: rgba(17,18,15,.52); }

.admin-body,.auth-body { min-height: 100dvh; }
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100dvh; }
.admin-sidebar { padding: 22px; background: var(--white); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-sidebar nav a { padding: 10px 12px; border-radius: var(--radius-sm); color: var(--muted); font-family: var(--body); font-weight: 600; }
.admin-sidebar nav a:hover { color: var(--ink); background: var(--paper); }
.admin-main { padding: 28px; }
.admin-kpis { grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; }
.admin-kpis strong { display: block; font-size: 34px; }
.admin-panel,.admin-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.table-actions { display: flex; gap: 8px; align-items: center; }
.table-actions form { display: inline-flex; gap: 6px; }
.table-actions button { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 10px; }
.auth-body { display: grid; place-items: center; padding: 20px; }
.auth-card { width: min(420px, 100%); padding: 28px; }

@media (max-width: 1100px) {
  .hero-grid,.detail-hero,.detail-layout,.catalog-layout,.quiz-shell,.cta-card { grid-template-columns: 1fr; }
  .hero-copy,.hero-visual { min-height: auto; }
  .hero-visual { min-height: 560px; }
  .catalog-sidebar,.sticky-lead { position: static; }
  .catalog-board { grid-template-columns: 1fr; }
  .catalog-board .catalog-sidebar { position: static; min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .catalog-topbar { grid-template-columns: 1fr; }
  .catalog-search { max-width: 720px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--timeline { grid-column: auto; }
  .rating-grid,.compare-summary { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  :root { --container: min(calc(100vw - 24px), 1500px); }
  .site-nav { display: none; }
  .site-header .icon-button { display: none; }
  .site-header { padding: 10px 0; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; min-height: 60px; padding: 8px 8px 8px 14px; border-radius: var(--radius-md); }
  .brand { min-width: 0; font-size: 17px; }
  .brand-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-mark { width: 29px; height: 29px; }
  .catalog-board { margin-top: 14px; border-radius: var(--radius-lg); }
  .catalog-board .catalog-sidebar,
  .catalog-board .catalog-main { padding: 18px; }
  .catalog-board .sidebar-promo { min-height: 190px; padding: 22px; border-radius: var(--radius-md); }
  .filter-form { gap: 18px; }
  .catalog-title-row { align-items: flex-start; }
  .catalog-title-row h1 { font-size: clamp(36px, 10vw, 48px); }
  .catalog-search { grid-template-columns: 1fr; }
  .sort-button { width: 100%; }
  .catalog-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 10px; }
  .hero-copy,.hero-visual,.budget-card,.catalog-toolbar,.catalog-sidebar,.content-flow,.sticky-lead,.cta-card,.blog-card,.bento-card { border-radius: var(--radius-md); }
  .hero-title,.page-hero.compact h1 { font-size: clamp(39px, 11.5vw, 66px); }
  .hero-form,.section-heading,.section-head,.catalog-toolbar,.footer-inner,.visual-top,.card-action { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .site-footer nav { justify-content: flex-start; }
  .hero-form { border-radius: var(--radius-md); }
  .hero-form .button { width: 100%; }
  .match-stack { min-height: 300px; }
  .match-card--main { left: 3%; width: 84%; }
  .match-card--front { right: 1%; width: 68%; }
  .timeline,.match-card__metrics,.card-metrics,.detail-metrics,.admin-kpis { grid-template-columns: 1fr; }
  .detail-proof-grid { grid-template-columns: 1fr; }
  .quick-tags a,.hub-strip a { width: 100%; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 1ms !important; }
}
