:root {
  --primary: #2f80ed;
  --dark-blue: #0b1f4d;
  --text: #111827;
  --muted: #667085;
  --line: #e6e7eb;
  --bg: #ffffff;
  --soft: #fafafa;
  --green-text: #059669;
  --green-bg: #ecfdf3;
  --red-text: #dc2626;
  --red-bg: #fef2f2;
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .04);
  --shadow-search: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 30px rgba(16, 24, 40, .05);
  --container: 1280px;
  --container-wide: 1360px;
  --section-gap-desktop: 64px;
  --section-gap-mobile: 36px;
  --navy: #07142f;
  --blue-soft: #f3f8ff;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  max-width: 100%;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.container-wide { width: min(var(--container-wide), calc(100% - 56px)); margin: 0 auto; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.prices-more-row { display: flex; justify-content: center; padding-top: 16px; }
.filters-status { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.filters-status.is-error { color: #a33a3a; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.logo, .footer-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: 0;
}
.logo img, .footer-logo img {
  display: block;
  width: auto;
  height: 42px;
}
.logo-blue { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; color: #4b5563; font-weight: 500; }
.nav a { padding: 8px 12px 10px; border-radius: 999px; }
.nav a:hover { color: var(--primary); background: #eef5ff; }
.nav a.is-active { color: #fff; background: var(--dark-blue); }
.header-city-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  color: #0b1f4d;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}
.header-city-button:hover {
  color: var(--primary);
  border-color: #cfe2ff;
  background: #eef5ff;
}
.header-city-modal .city-selector {
  display: grid;
  gap: 14px;
}
.header-city-modal .city-selector__current {
  display: none;
}
.header-city-modal .city-selector__search {
  display: grid;
  gap: 8px;
  color: #53627a;
  font-size: 13px;
  font-weight: 850;
}
.header-city-modal .city-selector__search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #c7d2e2;
  border-radius: 12px;
  background: #fbfdff;
  color: var(--dark-blue);
  outline: none;
}
.header-city-modal .city-selector__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.header-city-modal .city-selector__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-height: 62px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--dark-blue);
  font: inherit;
  line-height: 1.2;
  text-align: left;
}
.header-city-modal .city-selector__option[hidden] {
  display: none !important;
}
.header-city-modal .city-selector__option:hover,
.header-city-modal .city-selector__option.is-selected {
  border-color: #7ab8ff;
  background: #eef6ff;
}
.header-city-modal .city-selector__empty,
.city-selector__empty {
  padding: 14px;
  border: 1px dashed #c7d2e2;
  border-radius: 10px;
  color: #53627a;
  background: #fbfdff;
  font-size: 13px;
  font-weight: 750;
}
.header-city-modal .city-selector__option span {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}
.header-city-modal .city-selector__option small {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #667085;
  font-size: 12px;
  line-height: 1.25;
}
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(420px, 42vw);
  margin-left: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.header-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 8px 12px; }
.header-search button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--dark-blue);
}
.mobile-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer-inner { display: grid; gap: 14px; padding: 14px 0 18px; }
.mobile-search {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.mobile-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 12px;
}
.mobile-search button {
  width: 42px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
}
.mobile-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-nav a {
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--dark-blue);
  font-weight: 800;
}
.mobile-nav a.is-active { color: #fff; border-color: var(--dark-blue); background: var(--dark-blue); }

.hero { padding: 86px 0 60px; text-align: center; }
.hero-productized {
  padding: 86px 0 72px;
  text-align: left;
  background: #fff;
  border-bottom: 1px solid rgba(230, 231, 235, .72);
}
.home-hero {
  min-height: 640px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, #fff 0 58%, #f3f8ff 58% 100%);
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .75fr);
  gap: 58px;
  align-items: center;
}
.home-hero-grid > *,
.dashboard-grid > *,
.split-discovery > * {
  min-width: 0;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
  gap: 48px;
  align-items: center;
}
.hero-title, .title {
  max-width: 980px;
  margin: 0 auto 18px;
  color: var(--dark-blue);
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}
.hero-copy {
  max-width: 760px;
  margin: 0;
}
.hero-copy .hero-title {
  max-width: 760px;
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1.08;
}
.hero-copy .hero-subtitle {
  max-width: 680px;
  margin-left: 0;
  margin-right: 0;
}
.hero-subtitle, .subtitle, .section-subtitle, .box-subtitle {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}
.page { padding: 48px 0 30px; }
.page .title { margin-left: 0; text-align: left; font-size: clamp(34px, 4vw, 56px); }
.page .subtitle { margin-left: 0; }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }

.search-wrap { max-width: 780px; margin: 34px auto 18px; }
.hero-copy .search-wrap { margin-left: 0; margin-right: 0; }
.search-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 6px 8px 6px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-search);
}
.search-input, .field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 15px 16px;
  color: var(--text);
  background: #fff;
}
.search-submit, .soft-button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  font-weight: 700;
}
.search-submit {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-color: #eef0f4;
  border-radius: 50%;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 20px;
  line-height: 1;
}
.hero-search {
  min-height: 58px;
  border-radius: 28px;
  padding: 6px 8px 6px 22px;
}
.hero-search .search-input { font-size: 16px; }
.search-submit:hover { color: var(--dark-blue); background: #e8edf5; }
.button-primary {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}
.button-secondary, .soft-button { background: #f8fbff; }
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.chip-row.start { justify-content: flex-start; }
.hero-chip-row { margin-top: 18px; }
.hero-section-chips { margin-top: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4b5563;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}
.chip.is-active, .chip:hover { color: var(--primary); border-color: #cfe2ff; background: #f3f8ff; }
.suggestions-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-search);
  text-align: left;
}
.suggestions-panel.is-open { display: grid; gap: 4px; }
.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
}
.suggestion-item:hover { background: #f3f8ff; }
.suggestion-item strong { color: var(--dark-blue); font-size: 14px; }
.suggestion-item span, .suggestion-empty { color: var(--muted); font-size: 13px; }
.suggestion-empty { padding: 10px 12px; }
.suggestion-meta {
  padding: 4px 12px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 24px;
}
.hero-metrics div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
}
.hero-metrics strong { display: block; color: var(--dark-blue); font-size: 28px; line-height: 1; }
.hero-metrics span { color: var(--muted); font-size: 13px; }
.intelligence-panel {
  padding: 24px;
  border: 1px solid rgba(199, 210, 226, .9);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 24px 70px rgba(11, 31, 77, .12);
}
.panel-top, .panel-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green-text);
  background: var(--green-bg);
  font-size: 13px;
  font-weight: 800;
}
.status-badge-muted {
  color: #53627a;
  background: #f2f6fb;
}
.muted { color: var(--muted); }
.product-preview {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
}
.product-preview h2 { margin: 0 0 6px; color: var(--dark-blue); font-size: 28px; }
.product-preview p { margin: 0; color: var(--muted); }
.product-illustration {
  position: relative;
  min-height: 118px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbff, #eef5ff);
  overflow: hidden;
}
.product-illustration::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 36px;
  width: 76px;
  height: 44px;
  border-radius: 60% 44% 58% 42%;
  background: linear-gradient(135deg, #ffd2cf, #f38f8c);
  box-shadow: inset -10px -8px 18px rgba(174, 55, 55, .14), 0 14px 28px rgba(174, 55, 55, .16);
  transform: rotate(-10deg);
}
.product-illustration::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 28px;
  width: 18px;
  height: 24px;
  border-radius: 999px 999px 999px 0;
  background: #27b360;
  transform: rotate(32deg);
}
.panel-price-row { margin-top: 22px; }
.panel-price-row div, .macro-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}
.panel-price-row span, .macro-grid span { display: block; color: var(--muted); font-size: 13px; }
.panel-price-row strong { color: var(--dark-blue); font-size: 24px; }
.macro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.macro-grid strong { color: var(--dark-blue); font-size: 18px; }
.price-chart { width: 100%; height: 120px; margin-top: 18px; }

.section { padding: var(--section-gap-desktop) 0; }
.prices-section-up { padding-top: 24px; }
.home-city-prices-top {
  padding-top: 28px;
  padding-bottom: 64px;
}
.home-city-prices-top .compare {
  margin-top: 0;
}
.section-muted { background: #fbfdff; border-block: 1px solid rgba(230,231,235,.72); }
.section-inner { display: grid; gap: 22px; }
.section-head, .box-head, .prices-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.section-title, .box-title, .seo-title {
  margin: 0;
  color: var(--dark-blue);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
}
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .box, .compare, .filters, .prices-box, .summary-card, .seo-box, .product-summary, .sidebar .box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.box, .compare, .filters, .prices-box, .summary-card, .seo-box, .product-summary, .sidebar .box {
  max-width: 100%;
  min-width: 0;
}
.card { display: grid; gap: 8px; padding: 24px; min-height: 126px; }
.card strong { color: var(--dark-blue); }
.card span { color: var(--muted); }
.box, .compare, .filters, .prices-box, .seo-box { padding: 28px; }
.box-body { margin-top: 18px; }
.scenario-grid, .category-grid, .rating-grid, .country-grid, .feature-grid {
  display: grid;
  gap: 16px;
}
.scenario-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scenario-grid-large { gap: 18px; }
.scenario-card, .category-card, .rating-card, .country-card, .feature-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.scenario-card:hover,
.product-card:hover,
.category-card:hover,
.rating-card:hover,
.country-card:hover {
  border-color: #b9dcff;
  box-shadow: 0 10px 34px rgba(47, 128, 237, .12);
  transform: translateY(-1px);
}
.scenario-card { min-height: 132px; grid-template-columns: 68px 1fr; align-items: start; }
.scenario-card strong, .category-card strong, .rating-card strong, .feature-card strong { color: var(--dark-blue); font-size: 16px; }
.scenario-card small, .category-card span, .category-card small, .rating-card small, .country-card span, .country-card small, .feature-card span { color: var(--muted); font-size: 13px; }
.scenario-card small { grid-column: 2; }
.ui-icon, .food-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--primary);
}
.scenario-card .ui-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}
.ui-icon {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 25%, rgba(5,150,105,.16), transparent 26%),
    linear-gradient(180deg, #f3f8ff, #e8f2ff);
}
.ui-icon::before, .food-icon::before, .product-icon::before { content: ""; display: block; }
.ui-icon::after { content: ""; position: absolute; display: block; }
.ui-icon-protein::before { width: 22px; height: 14px; border: 3px solid currentColor; border-radius: 12px 16px 10px 14px; transform: rotate(-18deg); }
.ui-icon-calorie::before { width: 18px; height: 24px; border-radius: 12px 12px 14px 14px; background: currentColor; clip-path: polygon(50% 0, 68% 28%, 92% 52%, 76% 100%, 24% 100%, 8% 52%, 34% 28%); }
.ui-icon-city::before { width: 24px; height: 24px; background: linear-gradient(90deg, currentColor 0 26%, transparent 26% 38%, currentColor 38% 64%, transparent 64% 74%, currentColor 74%); }
.ui-icon-composition::before, .ui-icon-nutrition::before { width: 24px; height: 18px; border: 3px solid currentColor; border-radius: 5px; box-shadow: inset 0 -6px 0 rgba(47,128,237,.18); }
.ui-icon-category::before, .ui-icon-search::before { width: 22px; height: 22px; border: 3px solid currentColor; border-radius: 50%; box-shadow: 10px 10px 0 -7px currentColor; }
.ui-icon-sugar::before { width: 22px; height: 16px; border: 3px solid currentColor; border-radius: 7px; transform: rotate(12deg); }
.ui-icon-price::before { width: 24px; height: 18px; border-left: 4px solid currentColor; border-bottom: 4px solid currentColor; background: linear-gradient(135deg, transparent 45%, currentColor 46% 55%, transparent 56%); }
.ui-icon-search::after { right: 9px; top: 12px; width: 10px; height: 8px; border-radius: 50%; background: #22c55e; transform: rotate(-18deg); }
.ui-icon-price::after { right: 10px; top: 10px; content: "₽"; color: #059669; font-size: 13px; font-weight: 900; }
.ui-icon-nutrition::after { right: 9px; bottom: 9px; width: 8px; height: 18px; border-radius: 999px; background: #22c55e; }
.ui-icon-protein::after { right: 10px; top: 10px; width: 11px; height: 15px; border-radius: 50%; background: #f2c94c; }
.ui-icon-city::after { right: 10px; top: 8px; width: 12px; height: 16px; border-radius: 999px 999px 999px 0; background: #059669; transform: rotate(45deg); }
.ui-icon-composition::after { right: 9px; top: 11px; width: 16px; height: 16px; border: 3px solid #059669; border-radius: 50%; }
.dashboard-card { padding: 30px; }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: stretch;
  margin-top: 18px;
}
.dashboard-summary {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfcff, #fff);
}
.dashboard-summary h3 { margin: 0; color: var(--dark-blue); font-size: 24px; line-height: 1.16; }
.dashboard-summary p { margin: 0; color: var(--muted); }
.mini-bars { display: flex; align-items: end; gap: 8px; height: 110px; padding: 12px; border-radius: 10px; background: #f8fbff; }
.mini-bars span { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--primary), #9ac7ff); }
.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.compact-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-card { min-height: 168px; }
.category-card small, .country-card small { margin-top: auto; color: var(--primary); font-weight: 800; }
.food-icon-meat::before { width: 28px; height: 18px; border-radius: 60% 42% 58% 44%; background: linear-gradient(135deg, #ffd2cf, #f38f8c); transform: rotate(-14deg); }
.food-icon-dairy::before { width: 20px; height: 28px; border: 3px solid currentColor; border-radius: 6px 6px 10px 10px; }
.food-icon-fish::before { width: 28px; height: 16px; background: currentColor; clip-path: polygon(0 50%, 22% 10%, 72% 12%, 100% 0, 86% 50%, 100% 100%, 72% 88%, 22% 90%); }
.food-icon-fruit::before { width: 24px; height: 24px; border-radius: 50% 50% 46% 54%; background: #f59e0b; box-shadow: 8px -10px 0 -6px #22c55e; }
.food-icon-vegetable::before { width: 26px; height: 24px; border-radius: 50% 50% 8px 8px; background: #22c55e; }
.food-icon-grain::before { width: 22px; height: 28px; border-radius: 999px 999px 4px 4px; background: #eab308; }
.food-icon-drink::before { width: 20px; height: 28px; border: 3px solid currentColor; border-radius: 4px 4px 10px 10px; }
.food-icon-sweet::before { width: 28px; height: 16px; border-radius: 6px; background: #a855f7; box-shadow: -8px 0 0 -4px #c084fc, 8px 0 0 -4px #c084fc; }
.rating-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rating-list { display: grid; gap: 14px; margin-top: 20px; }
.rating-card span { color: var(--primary); font-size: 34px; line-height: 1; font-weight: 900; }
.country-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.country-card { min-height: 130px; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid-large { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.split-discovery {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr);
  gap: 28px;
  align-items: start;
}
.ratings-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff, #fff);
  box-shadow: var(--shadow-soft);
}

.table-wrap { width: 100%; max-width: 100%; max-height: 680px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #667085;
  background: #fbfcff;
  font-size: 13px;
  font-weight: 800;
}
tr:last-child td { border-bottom: 0; }
.prices-table th[data-sort] { cursor: pointer; }
.prices-table.is-compact th, .prices-table.is-compact td { padding: 10px 12px; }
.prices-table th:first-child,
.prices-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
}
.prices-table th:first-child { z-index: 4; background: #fbfcff; }
.product-cell { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.product-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f2f6ff;
}
.product-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--primary);
  flex: 0 0 auto;
}
.product-icon-chicken-breast::before { width: 24px; height: 15px; border-radius: 60% 42% 58% 44%; background: linear-gradient(135deg, #ffd2cf, #f38f8c); transform: rotate(-14deg); }
.product-icon-eggs::before { width: 18px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid #f2c94c; }
.product-icon-bananas::before { width: 26px; height: 18px; border: 4px solid #f2c94c; border-top-color: transparent; border-left-color: transparent; border-radius: 50%; transform: rotate(18deg); }
.product-icon-cottage-cheese::before,
.product-icon-milk::before,
.product-icon-yogurt::before,
.product-icon-cheese::before { width: 24px; height: 18px; border-radius: 6px; background: #fff; border: 3px solid #93c5fd; }
.product-icon-rice::before,
.product-icon-buckwheat::before,
.product-icon-oatmeal::before { width: 22px; height: 26px; border-radius: 999px 999px 5px 5px; background: #f8fafc; border: 3px solid #cbd5e1; }
.product-icon-apples::before,
.product-icon-tomat::before { width: 22px; height: 22px; border-radius: 50%; background: #ef4444; box-shadow: 8px -9px 0 -6px #22c55e; }
.product-icon-potatoes::before,
.product-icon-carrots::before,
.product-icon-brokkoli::before,
.product-icon-lentils::before,
.product-icon-beans::before { width: 24px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #84cc16); }
.product-icon-salmon::before,
.product-icon-tuna::before { width: 26px; height: 16px; background: #60a5fa; clip-path: polygon(0 50%, 22% 10%, 72% 12%, 100% 0, 86% 50%, 100% 100%, 72% 88%, 22% 90%); }
.product-icon-bread::before { width: 24px; height: 18px; border-radius: 8px 8px 4px 4px; background: linear-gradient(135deg, #d97706, #fbbf24); }
.price-best {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green-text);
  background: var(--green-bg);
  font-weight: 800;
}

.filters { margin-bottom: 18px; }
.filters-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) auto; gap: 12px; align-items: center; }
.field { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hub-search-field { position: relative; overflow: visible; background: #fff; }
.native-select-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.custom-select { position: relative; }
.custom-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: none;
  min-width: 100%;
  max-height: min(360px, calc(100vh - 180px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  align-content: start;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-search);
}
.custom-select.is-open .custom-select-menu { display: grid; gap: 4px; }
.custom-select-option { min-height: 38px; border: 0; border-radius: 8px; padding: 10px 12px; background: transparent; text-align: left; }
.custom-select-option:hover { background: #f3f8ff; color: var(--primary); }
.custom-select-option.is-selected { background: var(--dark-blue); color: #fff; }
@media (max-width: 640px) {
  .custom-select-menu { max-height: min(320px, calc(100vh - 140px)); }
}
.applied { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.applied-label { color: var(--muted); font-size: 14px; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.summary-card { display: grid; gap: 8px; padding: 18px; }
.summary-card span, .meta small { display: block; color: var(--muted); font-size: 13px; line-height: 1.25; }
.summary-card strong, .meta strong { display: block; margin-top: 4px; color: var(--dark-blue); font-size: 24px; line-height: 1.12; overflow-wrap: anywhere; }
.empty-state { display: grid; gap: 4px; padding: 18px; color: var(--muted); }

.product-city-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.product-city-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
}

.product-city-content .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.product-city-content .is-current-row td {
  background: #eaf8ef;
  font-weight: 800;
}

.product-city-content .method-note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-card-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.popular { margin-top: 24px; }
.popular-grid, .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.popular-card, .side-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--dark-blue);
  font-weight: 700;
}
.seo-content { max-width: 920px; }
.seo-text { display: grid; gap: 10px; color: #5b6472; }

.product-hero { padding: 44px 0 28px; background: #fbfdff; border-bottom: 1px solid var(--line); }
.product-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: center; }
.product-title { margin: 0 0 14px; color: var(--dark-blue); font-size: clamp(34px, 4vw, 56px); line-height: 1.08; overflow-wrap: anywhere; }
.product-summary { padding: 22px; }
.category-hero .product-hero-grid { align-items: stretch; }
.category-summary {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px;
}
.category-summary .food-icon {
  width: 78px;
  height: 78px;
  border-radius: 18px;
}
.category-summary h2 {
  margin: 0;
  color: var(--dark-blue);
  font-size: 30px;
}
.category-summary p {
  margin: 0;
  color: var(--muted);
}
.visual {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #79b7ff);
  font-size: 56px;
  font-weight: 900;
}
.visual.product-visual {
  position: relative;
  overflow: hidden;
  color: transparent;
  background: linear-gradient(180deg, #f7fbff, #eef5ff);
}
.visual.product-visual::before {
  content: "";
  width: 170px;
  height: 96px;
  border-radius: 60% 44% 58% 42%;
  background: linear-gradient(135deg, #ffd2cf, #f38f8c);
  box-shadow: inset -16px -12px 24px rgba(174,55,55,.12), 0 20px 44px rgba(174,55,55,.16);
  transform: rotate(-10deg);
}
.product-visual-card {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 28%, rgba(47,128,237,.16), transparent 34%),
    radial-gradient(circle at 20% 82%, rgba(5,150,105,.10), transparent 28%),
    linear-gradient(180deg, #f8fbff, #ffffff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 18px 44px rgba(11, 31, 77, .08);
}
.hero-dashboard {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(199, 210, 226, .9);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(11,31,77,.14);
}
.hero-dashboard-head,
.hero-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.hero-product-row {
  justify-content: flex-start;
  align-items: center;
}
.hero-product-row .product-visual-card {
  width: 132px;
  min-height: 126px;
  flex: 0 0 132px;
}
.hero-product-row h2 {
  margin: 0 0 6px;
  color: var(--dark-blue);
  font-size: 30px;
  line-height: 1.1;
}
.hero-product-row p,
.dashboard-note {
  margin: 0;
  color: var(--muted);
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hero-stat-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
}
.hero-stat-grid small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.hero-stat-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--dark-blue);
  font-size: 24px;
  line-height: 1.1;
}
.hero-bars { height: 126px; }
.product-visual-card-small {
  min-height: 118px;
  padding: 12px;
}
.food-pictogram {
  position: relative;
  display: block;
  width: 136px;
  height: 96px;
  filter: drop-shadow(0 16px 18px rgba(11,31,77,.12));
}
.product-visual-card-small .food-pictogram { width: 72px; height: 52px; }
.visual-label {
  color: var(--dark-blue);
  font-weight: 850;
  text-align: center;
}
.food-pictogram::before,
.food-pictogram::after {
  content: "";
  position: absolute;
  display: block;
}
.food-pictogram-kurinaya-grudka::before,
.food-pictogram-kurinoe-file::before,
.food-pictogram-kurinoe-bedro::before,
.food-pictogram-indeyka::before,
.food-pictogram-govyadina::before,
.food-pictogram-pechen-govyazhya::before {
  left: 18%;
  top: 26%;
  width: 64%;
  height: 42%;
  border-radius: 60% 42% 58% 44%;
  background: linear-gradient(135deg, #ffd8d1, #ef8d86);
  box-shadow: inset -10px -8px 18px rgba(148, 31, 31, .14);
  transform: rotate(-12deg);
}
.food-pictogram-yayca::before {
  left: 18%;
  top: 14%;
  width: 34%;
  height: 68%;
  border-radius: 50%;
  background: #fff7df;
  border: 4px solid #f2c94c;
}
.food-pictogram-yayca::after {
  right: 16%;
  top: 24%;
  width: 30%;
  height: 58%;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #f2c94c;
}
.food-pictogram-ris::before,
.food-pictogram-ovsyanka::before,
.food-pictogram-grechka::before,
.food-pictogram-buckwheat::before,
.food-pictogram-rice::before,
.food-pictogram-oatmeal::before {
  left: 30%;
  top: 8%;
  width: 40%;
  height: 78%;
  border-radius: 999px 999px 8px 8px;
  background: #f8fafc;
  border: 5px solid #cbd5e1;
}
.food-pictogram-banany::before,
.food-pictogram-bananas::before {
  left: 18%;
  top: 20%;
  width: 62%;
  height: 52%;
  border: 8px solid #f2c94c;
  border-left-color: transparent;
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(18deg);
}
.food-pictogram-yabloki::before,
.food-pictogram-apples::before,
.food-pictogram-tomat::before {
  left: 27%;
  top: 24%;
  width: 48%;
  height: 52%;
  border-radius: 50% 50% 46% 54%;
  background: #ef4444;
}
.food-pictogram-yabloki::after,
.food-pictogram-apples::after,
.food-pictogram-tomat::after {
  left: 55%;
  top: 12%;
  width: 16%;
  height: 24%;
  border-radius: 999px 999px 999px 0;
  background: #22c55e;
  transform: rotate(30deg);
}
.food-pictogram-kartofel::before,
.food-pictogram-potatoes::before,
.food-pictogram-morkov::before,
.food-pictogram-carrots::before,
.food-pictogram-ogurec::before,
.food-pictogram-brokkoli::before,
.food-pictogram-chechevica::before,
.food-pictogram-lentils::before,
.food-pictogram-fasol::before,
.food-pictogram-beans::before {
  left: 22%;
  top: 24%;
  width: 58%;
  height: 50%;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #84cc16);
}
.food-pictogram-losos::before,
.food-pictogram-salmon::before,
.food-pictogram-treska::before,
.food-pictogram-tunec::before,
.food-pictogram-tuna::before {
  left: 14%;
  top: 30%;
  width: 74%;
  height: 38%;
  background: #60a5fa;
  clip-path: polygon(0 50%, 22% 10%, 72% 12%, 100% 0, 86% 50%, 100% 100%, 72% 88%, 22% 90%);
}
.food-pictogram-moloko-25::before,
.food-pictogram-moloko::before,
.food-pictogram-milk::before,
.food-pictogram-grecheskiy-yogurt::before,
.food-pictogram-yogurt::before,
.food-pictogram-tvorog::before,
.food-pictogram-cottage-cheese::before,
.food-pictogram-syr-gauda::before,
.food-pictogram-syr-mocarella::before,
.food-pictogram-syr::before,
.food-pictogram-cheese::before {
  left: 32%;
  top: 14%;
  width: 36%;
  height: 70%;
  border: 5px solid #93c5fd;
  border-radius: 8px 8px 14px 14px;
  background: #fff;
}
.food-pictogram-hleb::before,
.food-pictogram-bread::before {
  left: 18%;
  top: 28%;
  width: 64%;
  height: 46%;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(135deg, #d97706, #fbbf24);
  box-shadow: inset 0 -10px 0 rgba(120, 53, 15, .14);
}
.food-pictogram-hleb::after,
.food-pictogram-bread::after {
  left: 30%;
  top: 38%;
  width: 40%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  box-shadow: 0 12px 0 rgba(255,255,255,.28);
}
.food-pictogram-default::before {
  left: 24%;
  top: 18%;
  width: 52%;
  height: 58%;
  border-radius: 18px;
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
}
.entity-visual {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}
.entity-visual span {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: var(--blue-soft);
}
.entity-visual-category span { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.entity-visual-rating span { background: linear-gradient(135deg, #ecfdf3, #a7f3d0); }
.entity-visual-city span { background: linear-gradient(135deg, #eef2ff, #c7d2fe); }
.entity-visual-comparison span { background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.entity-visual strong { color: var(--dark-blue); text-align: center; }
.product-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.product-card .product-visual-card-small {
  min-height: 112px;
  border-radius: 12px;
}
.product-card strong { display: block; color: var(--dark-blue); }
.product-card small { display: block; color: var(--muted); }
.product-card em {
  grid-column: 2;
  color: var(--green-text);
  font-style: normal;
  font-weight: 850;
}
.product-card-macro {
  grid-column: 2;
  color: #667085;
  font-size: 13px;
}
.product-card-cta {
  grid-column: 2;
  color: var(--primary);
  font-size: 13px;
  font-weight: 850;
}
.summary-meta, .nutrition { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.meta { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 22px;
  align-items: start;
  overflow: clip;
}
.content,
.sidebar {
  min-width: 0;
  max-width: 100%;
}
.content { display: grid; gap: 22px; }
.city-page-content {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}
.city-page-content .box {
  width: 100%;
}
.city-page-content .compact-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.city-page-content .city-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.city-page-content .internal-link-content {
  max-width: none;
}
.internal-link-section {
  width: 100%;
}
.internal-link-content {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}
.sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  align-self: start;
  overflow: hidden;
}
.sidebar .box {
  overflow: hidden;
}
.sidebar img,
.sidebar iframe,
.sidebar video,
.sidebar canvas,
.sidebar svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.sidebar .side-link {
  min-width: 0;
  overflow-wrap: anywhere;
}
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.detail-head { padding: 14px; color: var(--dark-blue); background: #f8fbff; font-weight: 800; }
.nutrient { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.nutrient small { color: var(--muted); }

.modal { position: fixed; inset: 0; z-index: 1000; display: none; padding: 28px 16px; }
.modal.is-open { display: grid; place-items: start center; }
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .58); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 56px);
  margin: 0 auto;
  overflow: auto;
  border: 1px solid rgba(199, 210, 226, .95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(11, 31, 77, .24);
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0 0 8px; color: var(--dark-blue); font-size: 24px; line-height: 1.15; }
.modal-head p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.modal-body { padding: 22px 26px 26px; }
.modal-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f8fbff;
  color: var(--dark-blue);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: #eef6ff; border-color: #b9dcff; }
.city-search {
  width: 100%;
  height: 48px;
  margin: 0 0 18px;
  padding: 0 16px;
  border: 1px solid #c7d2e2;
  border-radius: 12px;
  background: #fbfdff;
  color: var(--dark-blue);
  font: inherit;
  font-weight: 700;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.city-search:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 128, 237, .14);
}
.city-group { margin-top: 18px; }
.city-group:first-child { margin-top: 0; }
.city-country { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.city-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.city-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--dark-blue);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(11, 31, 77, .05);
}
.city-option:hover { border-color: #b9dcff; background: #f8fbff; }
.city-option.is-selected { border-color: #7ab8ff; background: #eef6ff; }
.city-selected { color: var(--green-text); font-size: 13px; font-weight: 800; }
.city-empty { padding: 18px; border: 1px dashed #c7d2e2; border-radius: 12px; color: var(--muted); font-weight: 800; text-align: center; background: #fbfdff; }
.flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  margin-right: 8px;
  border-radius: 2px;
  vertical-align: -1px;
  background: #d1d5db center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.flag-ru { background-image: linear-gradient(#fff 0 33%, #2354a6 33% 66%, #d52b1e 66%); }
.flag-de { background-image: linear-gradient(#000 0 33%, #dd0000 33% 66%, #ffce00 66%); }
.flag-tr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23e30a17'/%3E%3Ccircle cx='7.2' cy='6' r='3' fill='%23fff'/%3E%3Ccircle cx='8.2' cy='6' r='2.35' fill='%23e30a17'/%3E%3Cpolygon fill='%23fff' points='12.7,4.2 13.05,5.28 14.2,5.28 13.27,5.95 13.62,7.05 12.7,6.38 11.78,7.05 12.13,5.95 11.2,5.28 12.35,5.28'/%3E%3C/svg%3E"); }
.flag-us { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23fff'/%3E%3Cpath d='M0 0h18v0.92H0zm0 1.85h18v0.92H0zm0 1.85h18v0.92H0zm0 1.85h18v0.92H0zm0 1.85h18v0.92H0zm0 1.85h18v0.92H0zm0 1.85h18V12H0z' fill='%23b22234'/%3E%3Crect width='7.5' height='6.45' fill='%233c3b6e'/%3E%3C/svg%3E"); }
.flag-kz { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%2300afca'/%3E%3Crect x='1.1' width='1' height='12' fill='%23f4c430'/%3E%3Ccircle cx='9.5' cy='5.3' r='1.65' fill='%23f4c430'/%3E%3Cpath d='M6.2 8.1c2.1 1.1 4.6 1.1 6.7 0-.9 1-2 1.5-3.35 1.5S7.1 9.1 6.2 8.1z' fill='%23f4c430'/%3E%3C/svg%3E"); }
.flag-fr { background-image: linear-gradient(90deg, #0055a4 0 33%, #fff 33% 66%, #ef4135 66%); }
.flag-it { background-image: linear-gradient(90deg, #009246 0 33%, #fff 33% 66%, #ce2b37 66%); }
.flag-es { background-image: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }
.flag-pl { background-image: linear-gradient(#fff 0 50%, #dc143c 50%); }
.flag-cn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23de2910'/%3E%3Cpolygon fill='%23ffde00' points='4,2 4.45,3.25 5.75,3.25 4.7,4.03 5.1,5.3 4,4.55 2.9,5.3 3.3,4.03 2.25,3.25 3.55,3.25'/%3E%3C/svg%3E"); }
.flag-by { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='18' height='8' fill='%23c8313e'/%3E%3Crect y='8' width='18' height='4' fill='%23009639'/%3E%3Crect width='2.5' height='12' fill='%23fff'/%3E%3C/svg%3E"); }
.flag-ae { background-image: linear-gradient(90deg, #ff0000 0 25%, transparent 25%), linear-gradient(#009639 0 33%, #fff 33% 66%, #000 66%); }
.flag-ge { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23fff'/%3E%3Cpath d='M7.6 0h2.8v12H7.6zM0 4.6h18v2.8H0z' fill='%23ff0000'/%3E%3Cpath d='M3.1 1.5h1v3h-1zM2.1 2.5h3v1h-3zM13.9 1.5h1v3h-1zM12.9 2.5h3v1h-3zM3.1 7.5h1v3h-1zM2.1 8.5h3v1h-3zM13.9 7.5h1v3h-1zM12.9 8.5h3v1h-3z' fill='%23ff0000'/%3E%3C/svg%3E"); }
.flag-am { background-image: linear-gradient(#d90012 0 33%, #0033a0 33% 66%, #f2a800 66%); }
.flag-uz { background-image: linear-gradient(#1eb6e7 0 32%, #ce1126 32% 36%, #fff 36% 64%, #ce1126 64% 68%, #009b3a 68%); }
.flag-kg { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23e8112d'/%3E%3Ccircle cx='9' cy='6' r='2.5' fill='%23ffd100'/%3E%3Ccircle cx='9' cy='6' r='1.1' fill='%23e8112d'/%3E%3C/svg%3E"); }

.not-found {
  padding: 58px 0 34px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}
.not-found-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 40px;
  align-items: center;
}
.not-found-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}
.not-found-title {
  margin: 0;
  color: var(--dark-blue);
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}
.not-found-text {
  max-width: 640px;
  margin: 18px 0 0;
  color: #5b6472;
  font-size: 18px;
}
.not-found-search {
  max-width: 640px;
  margin-top: 28px;
}
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.not-found-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.not-found-panel h2 {
  margin: 0;
  color: var(--dark-blue);
  font-size: 26px;
  line-height: 1.15;
}
.not-found-code {
  color: #dbeafe;
  font-size: clamp(92px, 12vw, 150px);
  font-weight: 900;
  line-height: .78;
  letter-spacing: 0;
}
.not-found-links {
  display: grid;
  gap: 10px;
}
.not-found-links a {
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}
.not-found-links a:hover {
  border-color: #cfe2ff;
  background: #f3f8ff;
}
.not-found-links span {
  color: var(--dark-blue);
  font-weight: 800;
}
.not-found-links small {
  color: var(--muted);
  font-size: 13px;
}
.not-found-section { padding-top: 32px; }

.footer {
  margin-top: 80px;
  padding: 56px 0 28px;
  color: rgba(255,255,255,.72);
  border-top: 0;
  background: linear-gradient(180deg, var(--dark-blue), var(--navy));
}
.footer-inner { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 26px; }
.footer-logo {
  width: fit-content;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: #fff;
}
.footer-logo img { height: 34px; }
.footer p, .footer a { color: rgba(255,255,255,.68); font-size: 14px; }
.footer a { display: block; margin: 8px 0; }
.footer a:hover { color: #fff; }
.footer h4 { margin: 0 0 10px; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.56); font-size: 13px; }

/* Sprint 30 visual release candidate layer */
.site-header {
  box-shadow: 0 10px 28px rgba(11,31,77,.04);
}
.nav a {
  font-size: 15px;
  font-weight: 760;
}
.home-hero {
  min-height: 700px;
  background:
    linear-gradient(90deg, #fff 0 56%, #eef5ff 56% 100%);
}
.hero-copy .hero-title {
  max-width: 820px;
  font-size: clamp(58px, 5.35vw, 84px);
}
.hero-copy .hero-subtitle,
.subtitle {
  color: #667085;
  line-height: 1.62;
}
.hero-dashboard,
.intelligence-panel,
.product-summary,
.category-summary,
.sidebar .box,
.box,
.seo-box,
.filters,
.prices-box,
.compare {
  border-color: #dce6f3;
  box-shadow: 0 16px 44px rgba(11,31,77,.07);
}
.hero-dashboard {
  gap: 20px;
  padding: 32px;
  border-radius: 18px;
}
.hero-stat-grid div,
.meta,
.summary-card {
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.scenario-grid-large {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.scenario-card {
  grid-template-columns: 1fr;
  min-height: 190px;
  padding: 22px;
  align-content: start;
}
.scenario-card small {
  grid-column: auto;
  font-size: 14px;
  line-height: 1.45;
}
.scenario-card strong {
  font-size: 18px;
  line-height: 1.18;
}
.scenario-card .ui-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 22%, rgba(255,255,255,.24), transparent 25%),
    linear-gradient(135deg, #2f80ed, #1d4ed8 56%, #059669);
  box-shadow: 0 18px 34px rgba(47,128,237,.22);
}
.ui-icon-price::after { color: #fff; }
.ui-icon-nutrition::after,
.ui-icon-search::after,
.ui-icon-city::after,
.ui-icon-protein::after,
.ui-icon-composition::after {
  background: rgba(255,255,255,.82);
}
.ui-icon-composition::after {
  border-color: rgba(255,255,255,.9);
  background: transparent;
}
.product-card-grid {
  gap: 20px;
}
.product-card {
  position: relative;
  grid-template-columns: 132px 1fr;
  min-height: 210px;
  padding: 20px;
  border-color: #dce6f3;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.92));
}
.product-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f2ff, #d7f7e7);
}
.product-card .product-visual-card-small {
  min-height: 136px;
  border-radius: 16px;
}
.product-card strong {
  font-size: 18px;
  line-height: 1.18;
}
.product-card em {
  font-size: 19px;
}
.product-card-macro,
.product-card-source,
.product-card-cta {
  position: relative;
  z-index: 1;
}
.product-card-source {
  grid-column: 2;
  color: #7b8496;
  font-size: 12px;
  line-height: 1.35;
}
.product-card-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
}
.product-visual-card {
  border-color: #d6e3f5;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 28%, rgba(47,128,237,.18), transparent 34%),
    radial-gradient(circle at 22% 80%, rgba(5,150,105,.12), transparent 30%),
    linear-gradient(180deg, #f8fbff, #ffffff);
}
.food-pictogram {
  width: 150px;
  height: 108px;
}
.product-visual-card-small .food-pictogram {
  width: 82px;
  height: 60px;
}
.visual-label {
  max-width: 100%;
  font-size: 15px;
  line-height: 1.2;
}
.food-pictogram-ogurec::before {
  left: 16%;
  top: 33%;
  width: 68%;
  height: 30%;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  transform: rotate(-10deg);
}
.food-pictogram-morkov::before,
.food-pictogram-carrots::before {
  left: 24%;
  top: 20%;
  width: 48%;
  height: 54%;
  border-radius: 64% 18% 64% 18%;
  background: linear-gradient(135deg, #fb923c, #f97316);
  transform: rotate(-18deg);
}
.food-pictogram-morkov::after,
.food-pictogram-carrots::after {
  left: 58%;
  top: 12%;
  width: 20%;
  height: 22%;
  border-radius: 999px 999px 999px 0;
  background: #22c55e;
  transform: rotate(22deg);
}
.food-pictogram-brokkoli::before {
  left: 20%;
  top: 20%;
  width: 60%;
  height: 44%;
  border-radius: 999px 999px 52% 52%;
  background: radial-gradient(circle at 24% 45%, #22c55e 0 24%, transparent 25%),
    radial-gradient(circle at 50% 28%, #16a34a 0 26%, transparent 27%),
    radial-gradient(circle at 74% 46%, #15803d 0 24%, transparent 25%),
    linear-gradient(180deg, #22c55e, #16a34a);
}
.food-pictogram-brokkoli::after {
  left: 43%;
  top: 58%;
  width: 14%;
  height: 28%;
  border-radius: 6px;
  background: #15803d;
}
.food-pictogram-potatoes::before,
.food-pictogram-kartofel::before {
  left: 26%;
  top: 26%;
  width: 50%;
  height: 48%;
  border-radius: 48% 58% 44% 56%;
  background: linear-gradient(135deg, #d6a25e, #f6c36d);
  transform: rotate(-10deg);
}
.food-pictogram-chechevica::before,
.food-pictogram-lentils::before,
.food-pictogram-fasol::before,
.food-pictogram-beans::before {
  left: 18%;
  top: 28%;
  width: 62%;
  height: 38%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 50%, #92400e 0 12%, transparent 13%),
    radial-gradient(circle at 42% 46%, #b45309 0 12%, transparent 13%),
    radial-gradient(circle at 64% 54%, #92400e 0 12%, transparent 13%),
    radial-gradient(circle at 82% 46%, #b45309 0 11%, transparent 12%),
    #fef3c7;
}
.entity-visual {
  min-height: 260px;
  border-color: #d6e3f5;
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 22%, rgba(47,128,237,.12), transparent 28%),
    linear-gradient(180deg, #f8fbff, #fff);
  box-shadow: 0 18px 44px rgba(11,31,77,.08);
}
.entity-visual span {
  position: relative;
  width: 92px;
  height: 92px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.54), 0 18px 32px rgba(47,128,237,.16);
}
.entity-visual span::before,
.entity-visual span::after {
  content: "";
  position: absolute;
  display: block;
}
.entity-visual-category span::before {
  inset: 22px;
  border: 5px solid #2f80ed;
  border-radius: 14px;
  box-shadow: 20px 0 0 -8px #059669, 0 20px 0 -8px #f59e0b;
}
.entity-visual-rating span::before {
  left: 24px;
  bottom: 22px;
  width: 12px;
  height: 32px;
  border-radius: 8px;
  background: #2f80ed;
  box-shadow: 18px -12px 0 #059669, 36px -24px 0 #f59e0b;
}
.entity-visual-city span::before {
  left: 22px;
  bottom: 22px;
  width: 14px;
  height: 42px;
  border-radius: 6px 6px 2px 2px;
  background: #2f80ed;
  box-shadow: 18px 10px 0 #059669, 36px -8px 0 #93c5fd;
}
.entity-visual-comparison span::before {
  left: 20px;
  top: 24px;
  width: 24px;
  height: 34px;
  border-radius: 12px;
  background: #2f80ed;
  box-shadow: 28px 12px 0 #059669;
}
.category-card,
.rating-card,
.country-card,
.feature-card,
.side-link,
.popular-card {
  border-color: #dce6f3;
  background: linear-gradient(180deg, #fff, #f9fbff);
}
.category-card,
.rating-card,
.country-card {
  min-height: 176px;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: 1fr auto auto auto 1fr;
  align-items: center;
  gap: 6px 14px;
}
.rating-card span {
  color: #1d4ed8;
}
.category-card strong,
.rating-card strong,
.country-card strong {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
}
.category-card > span:not(.category-icon):not(.photo-visual-icon):not(.topic-visual-icon),
.rating-card > span:not(.rating-icon):not(.photo-visual-icon):not(.topic-visual-icon),
.country-card > span:not(.geo-icon):not(.photo-visual-icon):not(.topic-visual-icon) {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
}
.category-card small,
.rating-card small,
.country-card small {
  grid-column: 2;
  grid-row: 4;
}
.side-link {
  align-items: center;
}
.side-link small {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eef5ff;
}
.product-hero {
  padding: 62px 0 44px;
  background:
    radial-gradient(circle at 86% 28%, rgba(47,128,237,.12), transparent 28%),
    linear-gradient(180deg, #fbfdff, #fff);
}
.product-hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
  gap: 42px;
}
.product-title {
  font-size: clamp(42px, 4.4vw, 64px);
}
.summary-meta {
  gap: 14px;
}
.sidebar .summary-meta,
.product-summary .box-body .summary-meta {
  grid-template-columns: 1fr;
  gap: 8px;
}
.sidebar .summary-meta .meta,
.product-summary .box-body .summary-meta .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  padding: 10px 12px;
}
.sidebar .summary-meta .meta small,
.product-summary .box-body .summary-meta .meta small,
.sidebar .summary-meta .meta strong,
.product-summary .box-body .summary-meta .meta strong {
  margin: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.sidebar .summary-meta .meta strong,
.product-summary .box-body .summary-meta .meta strong {
  font-size: 18px;
  text-align: right;
}
.product-hero .summary-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}
.product-hero .meta {
  min-height: 92px;
}
.product-hero .meta strong {
  font-size: 23px;
  word-break: normal;
}
.category-summary {
  border: 1px solid #dce6f3;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 18px 44px rgba(11,31,77,.07);
}
.category-summary .entity-visual {
  min-height: 168px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.category-summary .entity-visual .topic-visual-icon,
.category-summary .entity-visual .photo-visual-icon {
  width: 220px;
  height: 142px;
  margin: 0 auto;
}
.category-summary .entity-visual .topic-visual-icon img,
.category-summary .entity-visual .photo-visual-icon img {
  transform: scale(1);
  filter: drop-shadow(0 18px 18px rgba(11,31,77,.14));
}
.category-summary .entity-visual strong {
  margin-top: 8px;
}
.box {
  border-radius: 12px;
}
.table-wrap {
  border-radius: 12px;
}
th {
  color: #344054;
}
td {
  color: #344054;
}
.footer {
  margin-top: 96px;
}

/* Sprint 31 local image and icon asset system */
.product-visual {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  border: 1px solid #d6e3f5;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 26%, rgba(47,128,237,.12), transparent 36%),
    linear-gradient(180deg, #f8fbff, #fff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 18px 44px rgba(11,31,77,.08);
  overflow: hidden;
}
.product-visual--hero {
  min-height: 260px;
  padding: 20px;
}
.product-visual--card {
  min-height: 138px;
  padding: 10px;
}
.product-visual__image {
  display: block;
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.product-visual--card .product-visual__image {
  width: min(100%, 190px);
}
.hero-product-row .product-visual {
  width: 144px;
  min-height: 132px;
  flex: 0 0 144px;
}
.hero-product-row .product-visual__image {
  width: 136px;
}
.product-card .product-visual {
  min-height: 142px;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 14px 34px rgba(11,31,77,.08);
}
.visual-icon,
.scenario-icon,
.category-icon,
.rating-icon,
.geo-icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
}
.visual-icon img,
.scenario-icon img,
.category-icon img,
.rating-icon img,
.geo-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.scenario-card .scenario-icon {
  width: 82px;
  height: 82px;
}
.category-card .category-icon,
.rating-card .rating-icon,
.country-card .geo-icon {
  width: 78px;
  height: 78px;
  grid-row: 1 / -1;
  justify-self: center;
  align-self: center;
}
.entity-visual .category-icon,
.entity-visual .rating-icon,
.entity-visual .geo-icon {
  width: 116px;
  height: 116px;
}
.entity-visual .category-icon::before,
.entity-visual .category-icon::after,
.entity-visual .rating-icon::before,
.entity-visual .rating-icon::after,
.entity-visual .geo-icon::before,
.entity-visual .geo-icon::after {
  content: none;
}
.rating-card > span.rating-icon {
  color: inherit;
  font-size: initial;
  font-weight: initial;
}
.category-card .category-icon:not(.photo-visual-icon):not(.topic-visual-icon),
.rating-card .rating-icon:not(.photo-visual-icon):not(.topic-visual-icon),
.country-card .geo-icon:not(.photo-visual-icon):not(.topic-visual-icon) {
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 26%, rgba(5,150,105,.18), transparent 26%),
    linear-gradient(180deg, #f3f8ff, #e8f2ff);
}
.category-card .category-icon:not(.photo-visual-icon):not(.topic-visual-icon) img,
.rating-card .rating-icon:not(.photo-visual-icon):not(.topic-visual-icon) img,
.country-card .geo-icon:not(.photo-visual-icon):not(.topic-visual-icon) img {
  width: 54px;
  height: 54px;
}
.country-card {
  align-content: start;
}
.product-card:hover .product-visual,
.scenario-card:hover .scenario-icon img,
.category-card:hover .category-icon img,
.rating-card:hover .rating-icon img,
.country-card:hover .geo-icon img {
  transform: translateY(-2px) scale(1.02);
  transition: transform .18s ease;
}

@media (max-width: 1024px) {
  .home-hero { background: #fff; }
  .home-hero-grid, .hero-layout, .dashboard-grid, .split-discovery { grid-template-columns: 1fr; }
  .hero-copy { max-width: 900px; }
  .grid, .grid.three, .scenario-grid, .category-grid, .rating-grid, .country-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-hero-grid, .section-grid, .not-found-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-inner { min-height: auto; padding: 14px 0; flex-wrap: wrap; }
  .nav { display: none; }
  .nav-toggle { display: inline-block; }
  .header-search {
    order: 6;
    display: flex;
    flex: 1 0 100%;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .mobile-search { display: none; }
  .nav-toggle { margin-left: 0; }
}

@media (max-width: 720px) {
  html, body { overflow-x: hidden; }
  .container { width: min(100% - 28px, var(--container)); }
  .container-wide { width: min(100% - 28px, var(--container-wide)); }
  main, section, .container, .container-wide, .home-hero-grid, .hero-copy, .hero-dashboard, .search-wrap, .search-card {
    max-width: 100%;
    min-width: 0;
  }
  .hero { padding-top: 50px; }
  .product-hero {
    overflow: hidden;
  }
  .home-hero { min-height: auto; }
  .home-hero-grid { gap: 28px; }
  .hero-productized { text-align: center; }
  .hero-copy .hero-title {
    max-width: 300px;
    font-size: 27px;
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .hero-copy .hero-subtitle {
    max-width: 280px;
    font-size: 16px;
    overflow-wrap: anywhere;
  }
  .hero-dashboard {
    padding: 18px;
    width: 100%;
    max-width: calc(100vw - 28px);
    overflow: hidden;
  }
  .hero-dashboard-head,
  .hero-product-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-product-row .product-visual-card {
    width: 100%;
    min-height: 138px;
    flex-basis: auto;
  }
  .hero-product-row > div { width: 100%; min-width: 0; }
  .hero-stat-grid { grid-template-columns: 1fr; }
  .hero-copy .hero-title, .hero-copy .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-copy .search-wrap { margin-left: auto; margin-right: auto; }
  .product-title {
    font-size: 34px;
    line-height: 1.12;
    max-width: 340px;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .product-hero .subtitle,
  .product-hero .breadcrumbs {
    max-width: 280px;
    overflow-wrap: anywhere;
  }
  .product-hero .summary-meta {
    grid-template-columns: 1fr;
  }
  .product-hero .meta {
    min-height: 86px;
  }
  .product-hero .meta strong {
    font-size: 22px;
  }
  .chip-row.start { justify-content: center; }
  .chip { max-width: 100%; overflow-wrap: anywhere; }
  .hero-chip-row .chip:nth-child(n+4) { display: none; }
  .hero-product-row h2,
  .hero-product-row p,
  .dashboard-note {
    margin-left: auto;
    margin-right: auto;
    max-width: 280px;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .hero-metrics, .macro-grid { grid-template-columns: 1fr; }
  .product-preview { grid-template-columns: 1fr; }
  .search-card { border-radius: 28px; }
  .section { padding: var(--section-gap-mobile) 0; }
  .grid, .grid.three, .scenario-grid, .category-grid, .rating-grid, .country-grid, .feature-grid, .filters-grid, .summary, .popular-grid, .related-grid, .detail-grid, .city-list, .summary-meta, .nutrition, .product-card-grid { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 82px 1fr; }
  .mobile-nav { grid-template-columns: 1fr; }
  .section-head, .box-head, .prices-head, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .box, .compare, .filters, .prices-box, .seo-box { padding: 18px; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Sprint 31 reference alignment: product-led catalog homepage */
body {
  background: #fff;
}
.site-header {
  min-height: 68px;
  border-bottom-color: #dbe3ef;
  box-shadow: 0 10px 30px rgba(11, 31, 77, .035);
}
.header-inner {
  min-height: 68px;
  gap: 18px;
}
.logo img {
  height: 34px;
}
.header-search {
  order: 2;
  width: min(560px, 38vw);
  margin-left: 18px;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
  border-color: #dce6f3;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.header-search input {
  padding: 9px 12px;
  color: #102a56;
  background: transparent;
}
.header-search button {
  color: #2f80ed;
  background: transparent;
}
.nav {
  order: 3;
  gap: 10px;
  margin-left: 0;
  color: #0b1f4d;
}
.nav a {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
}
.nav a.is-active,
.nav a:hover {
  color: var(--primary);
  background: #eef5ff;
}
body:has(.home-hero) .home-hero {
  display: none;
}
body:has(#scenario-cards) main > .section:first-of-type {
  padding-top: 34px;
}
#scenario-cards .section-head,
#popular-products .section-head {
  align-items: end;
  margin-bottom: 14px;
}
#scenario-cards .section-title,
#popular-products .section-title {
  font-size: clamp(30px, 2.6vw, 38px);
  line-height: 1.08;
}
#scenario-cards .section-subtitle,
#popular-products .section-subtitle {
  max-width: 860px;
  margin-left: 0;
  color: #53627a;
  font-size: 16px;
}
#scenario-cards .scenario-grid-large {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
#scenario-cards .scenario-card {
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: 1fr auto auto 1fr;
  align-items: center;
  height: 100%;
  min-height: 144px;
  padding: 16px 18px;
  border-color: #dbe3ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 10px 28px rgba(11,31,77,.045);
}
#scenario-cards .scenario-card .scenario-icon {
  grid-row: 1 / -1;
  width: 96px;
  height: 96px;
  justify-self: center;
  align-self: center;
}
#scenario-cards .scenario-card strong {
  grid-column: 2;
  align-self: end;
  grid-row: 2;
  color: var(--dark-blue);
  font-size: 18px;
  line-height: 1.2;
}
#scenario-cards .scenario-card small {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  color: #53627a;
  font-size: 15px;
  line-height: 1.45;
}
#popular-products.section-muted {
  background: #fff;
}
#popular-products .product-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
#popular-products .product-card {
  grid-template-columns: 98px minmax(0, 1fr);
  grid-template-rows: 12px auto auto auto auto 12px;
  gap: 7px 12px;
  align-items: center;
  height: 100%;
  min-height: 168px;
  padding: 12px 14px;
  border-color: #dbe3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(11,31,77,.04);
}
#popular-products .product-card::after {
  content: none;
}
#popular-products .product-card .product-visual {
  grid-row: 1 / -1;
  width: 94px;
  height: 94px;
  min-height: 94px;
  justify-self: center;
  align-self: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
#popular-products .product-card .product-visual__image {
  width: 102px;
  max-width: 100%;
  max-height: 76px;
  filter: drop-shadow(0 14px 14px rgba(11,31,77,.16));
  transform: none;
}
#popular-products .product-card .product-visual__image[src*="apelsin"] {
  width: 88px;
  max-height: 68px;
}
#popular-products .product-card > span {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  gap: 3px;
  align-self: end;
  min-width: 0;
}
#popular-products .product-card strong {
  min-width: 0;
  font-size: 16px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}
#popular-products .product-card small {
  font-size: 13px;
  line-height: 1.4;
}
#popular-products .product-card em {
  grid-column: 2;
  grid-row: 3;
  color: #059669;
  font-size: 16px;
  line-height: 1.1;
}
#popular-products .product-card-macro {
  grid-column: 2;
  grid-row: 4;
  color: #53627a;
  margin-top: 1px;
}
#popular-products .product-card-source {
  display: none;
}
#popular-products .product-card-cta {
  grid-column: 2;
  grid-row: 5;
  padding: 0;
  min-height: 0;
  color: #0969da;
  background: transparent;
  font-size: 13px;
  white-space: nowrap;
}
.photo-visual-icon {
  display: inline-grid;
  place-items: center;
  background: transparent !important;
  border: 0;
  overflow: visible;
}
.photo-visual-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(11,31,77,.16));
  transform: none;
}
.topic-visual-icon {
  display: inline-grid;
  place-items: center;
  background: transparent !important;
  overflow: visible;
}
.topic-visual-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 16px rgba(11,31,77,.16));
  transform: none;
}
.scenario-card .photo-visual-icon {
  width: 104px;
  height: 96px;
}
#scenario-cards .scenario-card .topic-visual-icon,
.scenario-card .topic-visual-icon {
  width: 108px;
  height: 104px;
  overflow: visible;
}
#scenario-cards .scenario-card .topic-visual-icon img,
.scenario-card .topic-visual-icon img {
  max-width: 100%;
  max-height: 100%;
  transform: none;
}
.category-card .photo-visual-icon,
.rating-card .photo-visual-icon,
.category-card .topic-visual-icon,
.rating-card .topic-visual-icon,
.country-card .photo-visual-icon {
  width: 86px;
  height: 72px;
  margin: 0;
  grid-row: 1 / -1;
  justify-self: center;
  align-self: center;
}
.category-card .photo-visual-icon img,
.rating-card .photo-visual-icon img,
.category-card .topic-visual-icon img,
.rating-card .topic-visual-icon img,
.country-card .photo-visual-icon img {
  max-width: 86px;
  max-height: 72px;
}
.entity-visual .photo-visual-icon {
  width: 184px;
  height: 138px;
}
.entity-visual .photo-visual-icon img {
  transform: none;
}
.category-card,
.rating-card,
.country-card {
  overflow: hidden;
}
.category-card:has(.photo-visual-icon),
.rating-card:has(.photo-visual-icon),
.category-card:has(.topic-visual-icon),
.rating-card:has(.topic-visual-icon) {
  min-height: 154px;
}
.category-card:has(.photo-visual-icon) small,
.rating-card:has(.photo-visual-icon) small,
.category-card:has(.topic-visual-icon) small,
.rating-card:has(.topic-visual-icon) small {
  color: #0969da;
}
.product-card .product-visual:has(img[src*="/assets/img/products/photos"]) {
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.product-card .product-visual__image[src*="/assets/img/products/photos"] {
  max-width: 102px;
  max-height: 76px;
  filter: drop-shadow(0 14px 14px rgba(11,31,77,.16));
}
.product-card .product-visual__image[src*="apelsin"] {
  max-width: 88px;
  max-height: 68px;
}
.product-summary .product-visual:has(img[src*="/assets/img/products/photos"]),
.product-hero .product-visual:has(img[src*="/assets/img/products/photos"]) {
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.product-summary .product-visual__image[src*="/assets/img/products/photos"],
.product-hero .product-visual__image[src*="/assets/img/products/photos"] {
  filter: drop-shadow(0 18px 18px rgba(11,31,77,.18));
}
.product-cell-visual {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
}
.product-cell-visual .product-visual {
  width: 64px;
  min-height: 50px;
  flex: 0 0 64px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.product-cell-visual .product-visual__image {
  width: 58px;
  aspect-ratio: 4 / 3;
  filter: drop-shadow(0 5px 7px rgba(11,31,77,.12));
  transform: none;
}
.product-cell-image {
  display: block;
  width: 58px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 58px;
  margin: 0;
  filter: drop-shadow(0 5px 7px rgba(11,31,77,.12));
  transform: none;
  transform-origin: center;
}
.country-card .topic-visual-icon,
.entity-visual .topic-visual-icon {
  width: 184px;
  height: 138px;
}
.entity-visual .topic-visual-icon img {
  transform: none;
}

/* Sprint 85: product assets must render at one visual size everywhere */
.product-hero-visual-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  align-self: stretch;
}

.product-hero-visual-panel .product-visual {
  width: min(100%, 360px);
  min-height: 270px;
  margin-inline: auto;
}

.product-hero-visual-panel .product-visual__image {
  width: 260px;
  height: 195px;
  max-width: 260px;
  max-height: 195px;
  object-fit: contain;
  transform: none;
}

.city-compare-product {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #53627a;
  font-size: 13px;
  font-weight: 850;
}

.city-compare-product > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-card .product-visual,
#popular-products .product-card .product-visual {
  width: 94px;
  height: 94px;
  min-height: 94px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.product-card .product-visual__image,
#popular-products .product-card .product-visual__image,
#popular-products .product-card .product-visual__image[src*="apelsin"],
.product-card .product-visual__image[src*="/assets/img/products/photos"],
.product-card .product-visual__image[src*="apelsin"] {
  width: 86px;
  height: 64px;
  max-width: 86px;
  max-height: 64px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(11,31,77,.14));
  transform: none;
}

.product-cell-image,
.product-cell-visual .product-visual__image,
.comparison-preset-images .product-cell-image {
  width: 58px;
  height: 44px;
  max-width: 58px;
  max-height: 44px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  transform: none;
}

.scenario-card .photo-visual-icon,
#scenario-cards .scenario-card .topic-visual-icon,
.scenario-card .topic-visual-icon,
.category-card .photo-visual-icon,
.rating-card .photo-visual-icon,
.category-card .topic-visual-icon,
.rating-card .topic-visual-icon,
.country-card .photo-visual-icon {
  width: 86px;
  height: 64px;
}

.scenario-card .photo-visual-icon img,
#scenario-cards .scenario-card .topic-visual-icon img,
.scenario-card .topic-visual-icon img,
.category-card .photo-visual-icon img,
.rating-card .photo-visual-icon img,
.category-card .topic-visual-icon img,
.rating-card .topic-visual-icon img,
.country-card .photo-visual-icon img,
.category-card-head .entity-visual img,
.rating-card-head .entity-visual img {
  width: 86px;
  height: 64px;
  max-width: 86px;
  max-height: 64px;
  object-fit: contain;
  transform: none;
}

/* Sprint 36: city price UX */
.city-price-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 18px;
}
.home-product-picker {
  margin: 0 0 0 auto;
  justify-content: flex-start;
  flex: 1 1 420px;
}
.product-modal-list .product-option {
  justify-content: space-between;
}
.product-modal-list .product-cell {
  min-width: 0;
}
.product-modal-list .product-cell img {
  width: 38px;
  height: 32px;
}
.city-protein-card {
  justify-content: flex-start;
  gap: 8px;
}
.city-protein-product {
  min-height: 40px;
  gap: 9px;
}
.city-protein-card .city-protein-image {
  width: 44px;
  height: 34px;
  flex-basis: 44px;
}
.metric-select {
  width: min(220px, 100%);
}
.city-dashboard-grid {
  align-items: stretch;
}
.city-price-summary {
  display: grid;
  align-content: start;
  gap: 14px;
}
.city-price-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.city-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 16px;
}
.city-metric-grid-compact {
  margin-top: 0;
}
.city-price-highlight .feature-card,
.city-metric-grid .feature-card {
  min-height: 122px;
  text-decoration: none;
}
.city-compare-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}
.city-compare-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #dce6f3;
  border-radius: 12px;
  background: #fff;
}
.city-compare-card.is-cheaper {
  border-color: #9ee7c4;
  background: linear-gradient(180deg, #f2fff8, #fff);
}
.city-compare-card h3 {
  margin: 0;
  color: var(--dark-blue);
  font-size: 24px;
}
.city-compare-card > strong {
  color: #047857;
  font-size: 30px;
}
.city-metric-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.city-metric-list span {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  background: #fbfdff;
}
.city-metric-list small,
.city-metric-list b {
  display: block;
}
.city-metric-list small {
  color: #667085;
  font-size: 12px;
}
.city-metric-list b {
  color: var(--dark-blue);
}

@media (max-width: 1180px) {
  #popular-products .product-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #scenario-cards .scenario-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* QA growth layer: persistent context, task alternatives and working calculators. */
.home-workspace-section {
  padding-top: 34px;
  padding-bottom: 28px;
}

.home-workspace {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 1px solid #cbd8e7;
  border-bottom: 1px solid #cbd8e7;
}

.home-workspace-section[hidden] {
  display: none;
}

.workspace-group {
  min-width: 0;
  padding: 20px 22px;
}

.workspace-group + .workspace-group {
  border-left: 1px solid #dbe4ef;
}

.workspace-group h3 {
  margin: 0 0 12px;
  color: #081f4d;
  font-size: 18px;
}

.workspace-group > p {
  margin: 0;
  color: #68778d;
  line-height: 1.5;
}

.workspace-links {
  display: grid;
  gap: 2px;
}

.workspace-link {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  color: #142b55;
  border-bottom: 1px solid #edf1f6;
}

.workspace-link:last-child { border-bottom: 0; }
.workspace-link img { flex: 0 0 48px; object-fit: contain; }
.workspace-link span { min-width: 0; }
.workspace-link strong,
.workspace-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-link small { margin-top: 2px; color: #748198; }

.data-methodology-note,
.nutrition-source-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  margin: 12px 0 0;
  color: #66758b;
  font-size: 13px;
  line-height: 1.5;
}

.data-methodology-note a,
.nutrition-source-note a {
  color: #155fbd;
  font-weight: 700;
  white-space: nowrap;
}

.s79-advanced-cities {
  margin: 12px 0 16px;
  border-bottom: 1px solid #dbe4ef;
}

.s79-advanced-cities summary {
  width: fit-content;
  padding: 8px 0 12px;
  color: #155fbd;
  font-weight: 700;
  cursor: pointer;
}

.s79-extra-city-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 16px;
}

.task-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  border-top: 1px solid #cbd8e7;
}

.task-collection-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title arrow" "text arrow";
  gap: 3px 16px;
  align-items: center;
  padding: 18px 2px;
  color: #0b2857;
  border-bottom: 1px solid #dbe4ef;
}

.task-collection-link strong { grid-area: title; font-size: 18px; }
.task-collection-link span { grid-area: text; color: #65748a; line-height: 1.45; }
.task-collection-link b { grid-area: arrow; color: #176fe3; font-size: 21px; }

.favorite-button span[aria-hidden] { font-size: 19px; line-height: 1; }
.favorite-button.is-active { color: #0f5fc9; border-color: #72a8eb; background: #edf5ff; }
.favorite-button.is-active span[aria-hidden]::before { content: "♥"; }
.favorite-button.is-active span[aria-hidden] { font-size: 0; }
.favorite-button.is-active span[aria-hidden]::before { font-size: 18px; }

.alternative-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  border-top: 1px solid #dbe4ef;
}

.alternative-item {
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid #dbe4ef;
}

.alternative-product {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
  color: #102650;
}

.alternative-product img { flex: 0 0 68px; width: 68px; height: 52px; object-fit: contain; }
.alternative-product span { min-width: 0; }
.alternative-product small,
.alternative-product strong,
.alternative-product em { display: block; }
.alternative-product small { color: #176fe3; font-weight: 700; }
.alternative-product strong { margin-top: 3px; font-size: 17px; }
.alternative-product em { margin-top: 3px; color: #68778d; font-size: 13px; font-style: normal; line-height: 1.4; }
.alternative-actions { display: flex; gap: 14px; margin: 10px 0 0 80px; font-size: 13px; font-weight: 700; }

.dish-calculator { border-top: 4px solid #176fe3; }
.dish-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dish-search-results { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.dish-table-wrap input,
.dish-table-wrap select { min-width: 82px; }
.icon-action {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: #526179;
  background: #fff;
  border: 1px solid #bdcadb;
  border-radius: 6px;
  font-size: 21px;
  cursor: pointer;
}
.icon-action:hover { color: #0f5fc9; border-color: #72a8eb; }
.dish-summary,
.s79-extra-summary { margin-top: 16px; }
.summary-card small { display: block; margin-top: 4px; color: #748198; }

.internal-table-toolbar {
  grid-template-columns: minmax(220px, 1fr) minmax(160px, .55fr) minmax(170px, .65fr) auto;
}

@media (max-width: 900px) {
  .home-workspace { grid-template-columns: 1fr; }
  .workspace-group + .workspace-group { border-top: 1px solid #dbe4ef; border-left: 0; }
  .dish-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .internal-table-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .task-collection-grid,
  .alternative-grid { grid-template-columns: minmax(0, 1fr); }
  .dish-controls,
  .internal-table-toolbar { grid-template-columns: minmax(0, 1fr); }
  .alternative-actions { margin-left: 0; }
  .table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { min-width: 700px; }
  .table-wrap th:first-child,
  .table-wrap td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 1px 0 0 #dbe4ef;
  }
  .s79-table-wrap table { min-width: 1080px; }
  .dish-table-wrap table { min-width: 820px; }
}

/* QA visual clarity refresh: shared by FATSLIM and FATSL. */
:root {
  --primary: #176fe3;
  --dark-blue: #081f4d;
  --text: #172033;
  --muted: #526179;
  --line: #ced9e8;
  --soft: #f4f7fb;
  --green-text: #087a57;
  --green-bg: #e7f8f1;
  --brand-green: #0b9f6d;
  --brand-amber: #e69213;
  --line-strong: #b8c8dc;
  --shadow-soft: 0 2px 4px rgba(8, 31, 77, .04), 0 12px 30px rgba(8, 31, 77, .07);
  --shadow-search: 0 4px 8px rgba(8, 31, 77, .08), 0 18px 42px rgba(8, 31, 77, .14);
}

body {
  color: var(--text);
  background: #f4f7fb;
}

main {
  background: #fff;
}

.site-header {
  border-bottom: 1px solid #bed0e5;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 6px 22px rgba(8, 31, 77, .09);
}

.nav > a,
.nav > .nav-current,
.header-more > summary {
  color: #2f405b;
  font-weight: 800;
}

.nav > a:hover,
.header-more > summary:hover {
  color: #0c5bc5;
  background: #eaf3ff;
}

.nav > a.is-active,
.nav > .nav-current,
.header-more > summary.is-active {
  color: #0f5fc9;
  background: #eaf3ff;
  box-shadow: inset 0 -3px 0 #176fe3;
}

.header-search {
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: 0 2px 8px rgba(8, 31, 77, .06);
}

.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 111, 227, .16);
}

.header-city-button {
  color: #18345f;
  border-color: var(--line-strong);
  background: #f6f8fb;
}

.header-city-button:hover {
  color: #0c5bc5;
  border-color: #8fb8e9;
  background: #edf5ff;
}

.button,
.soft-button,
.search-submit,
.custom-select-button {
  border-radius: 8px;
}

.button-primary {
  color: #fff;
  border-color: #176fe3;
  background: #176fe3;
  box-shadow: 0 7px 18px rgba(23, 111, 227, .2);
}

.button-primary:hover {
  color: #fff;
  border-color: #0f5fc9;
  background: #0f5fc9;
}

.button-secondary,
.soft-button {
  color: #18345f;
  border-color: var(--line-strong);
  background: #fff;
}

.button-secondary:hover,
.soft-button:hover {
  color: #0c5bc5;
  border-color: #8fb8e9;
  background: #edf5ff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(23, 111, 227, .35);
  outline-offset: 2px;
}

.section-muted {
  border-color: #d7e1ee;
  background: #f2f6fb;
}

.section-head .section-title {
  position: relative;
  padding-left: 15px;
  font-size: 32px;
}

.section-head .section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 5px;
  border-radius: 3px;
  background: #176fe3;
}

.section-subtitle,
.box-subtitle,
.subtitle {
  color: #526179;
}

.card,
.box,
.compare,
.filters,
.prices-box,
.summary-card,
.seo-box,
.product-summary,
.sidebar .box,
.scenario-card,
.category-card,
.rating-card,
.country-card,
.feature-card,
.product-card {
  border-color: var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.summary-card,
.meta {
  border-top: 3px solid #7db5f7;
  background: #fff;
}

.summary-card:nth-child(3n + 2),
.meta:nth-child(3n + 2) {
  border-top-color: #7db5f7;
}

.summary-card:nth-child(3n),
.meta:nth-child(3n) {
  border-top-color: #7db5f7;
}

.table-wrap {
  border-color: var(--line-strong);
  box-shadow: 0 8px 24px rgba(8, 31, 77, .06);
}

th {
  color: #19345d;
  background: #eaf2fc;
}

tbody tr:hover td {
  background: #f3f8ff;
}

.prices-table th:first-child {
  background: #eaf2fc;
}

/* The first screen is the search tool itself, without decorative media. */
body:has(.home-hero) .home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 560px;
  padding: 62px 0 58px;
  overflow: hidden;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid #d7e1ee;
  background: #f3f6fa;
}

body:has(.home-hero) .home-hero::before {
  display: none;
  content: none;
}

body:has(.home-hero) .home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
  align-items: center;
  gap: 0;
}

body:has(.home-hero) .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

body:has(.home-hero) .hero-copy .eyebrow {
  color: #176fe3;
  font-size: 13px;
  font-weight: 900;
}

body:has(.home-hero) .hero-copy .hero-title {
  max-width: 740px;
  margin-bottom: 18px;
  color: #081f4d;
  font-size: 56px;
  line-height: 1.06;
}

body:has(.home-hero) .hero-copy .hero-subtitle {
  max-width: 700px;
  color: #526179;
  font-size: 18px;
  line-height: 1.58;
}

.home-hero .search-wrap {
  max-width: 700px;
  margin-top: 26px;
  margin-bottom: 0;
}

.hero-search-label,
.hero-quick-label {
  display: block;
  margin: 0 0 8px;
  color: #243955;
  font-size: 13px;
  font-weight: 850;
}

.home-hero .hero-search {
  min-height: 62px;
  padding: 6px 7px 6px 10px;
  border: 1px solid #9fb7d4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 31, 77, .1);
}

.home-hero .hero-search:focus-within {
  border-color: #176fe3;
  box-shadow: 0 0 0 3px rgba(23, 111, 227, .14), 0 8px 24px rgba(8, 31, 77, .1);
}

.home-hero .hero-search .search-input {
  min-height: 48px;
  padding: 10px 12px;
  color: #172033;
  background: #fff;
}

.home-hero .search-submit {
  width: auto;
  min-width: 112px;
  height: 48px;
  padding: 0 20px;
  color: #fff;
  border: 1px solid #176fe3;
  border-radius: 7px;
  background: #176fe3;
  font-size: 15px;
  font-weight: 850;
}

.home-hero .search-submit:hover {
  color: #fff;
  border-color: #0f5fc9;
  background: #0f5fc9;
}

.hero-quick-label {
  margin-top: 20px;
  color: #526179;
}

.hero-task-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hero-task-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 9px 12px;
  color: #18345f;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.hero-task-link:hover {
  color: #0c5bc5;
  border-color: #8fb8e9;
  background: #edf5ff;
}

.hero-task-link b {
  color: #176fe3;
  font-size: 17px;
}

.hero-task-link:hover b {
  color: #0c5bc5;
}

.hero-signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #c8d5e5;
}

.hero-signal-row div {
  display: grid;
  gap: 2px;
  padding: 0 18px;
}

.hero-signal-row div:first-child {
  padding-left: 0;
}

.hero-signal-row div + div {
  border-left: 1px solid #c8d5e5;
}

.hero-signal-row strong {
  color: #081f4d;
  font-size: 24px;
  line-height: 1;
}

.hero-signal-row span {
  color: #526179;
  font-size: 13px;
}

#scenario-cards {
  background: #f4f7fb;
}

.scenario-grid-large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#scenario-cards .scenario-card {
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 142px;
  gap: 6px 16px;
  padding: 18px;
  border-top: 4px solid #2f80ed;
  background: #fff;
}

#scenario-cards .scenario-card:nth-child(n) { border-top-color: #9ab7d6; }

#scenario-cards .scenario-card .scenario-icon {
  grid-row: 1 / 3;
  align-self: center;
  width: 72px;
  height: 64px;
}

#scenario-cards .scenario-card strong,
#scenario-cards .scenario-card small {
  grid-column: 2;
}

#scenario-cards .scenario-card strong {
  align-self: end;
  font-size: 18px;
}

#scenario-cards .scenario-card small {
  color: #526179;
  font-size: 14px;
}

#popular-products .product-card {
  border-top: 3px solid #a9ccef;
  background: #fff;
}

#popular-products .product-card:nth-child(3n + 2) {
  border-top-color: #a9ccef;
}

#popular-products .product-card:nth-child(3n) {
  border-top-color: #a9ccef;
}

.ratings-panel {
  border-color: var(--line-strong);
  border-radius: 8px;
  background: #f7f9fc;
  box-shadow: var(--shadow-soft);
}

.ratings-panel .section-title {
  color: #081f4d;
}

.ratings-panel .section-subtitle {
  color: #526179;
}

.ratings-panel .rating-card {
  border-color: var(--line-strong);
  background: #fff;
}

.feature-grid-large .feature-card {
  border-left: 4px solid #2f80ed;
  background: #fff;
}

.feature-grid-large .feature-card:nth-child(3n + 2) {
  border-left-color: #a9ccef;
}

.feature-grid-large .feature-card:nth-child(3n) {
  border-left-color: #a9ccef;
}

/* Internal pages get stronger bands and clearer data surfaces. */
.product-hero,
.basket-compare-hero,
.city-dashboard-hero,
.city-explorer-hero {
  border-bottom: 1px solid #bcd0e8;
  background: #eaf3ff;
  box-shadow: none;
}

.product-title,
.page .title {
  color: #081f4d;
  font-size: 48px;
}

.product-hero .eyebrow,
.page .eyebrow {
  color: #176fe3;
  font-weight: 900;
}

.product-hero-visual-panel,
.hub-panel,
.comparison-tool-card,
.s79-basket-tool {
  border-color: #aebfd4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(8, 31, 77, .1);
}

.filters,
.comparison-tool-card,
.s79-basket-tool {
  border-top: 4px solid #176fe3;
}

.filters label,
.comparison-tool-card label,
.s79-basket-tool label {
  color: #243955;
  font-weight: 800;
}

.filters input,
.filters select,
.comparison-tool-card input,
.comparison-tool-card select,
.s79-basket-tool input,
.s79-basket-tool select,
.custom-select-button {
  border-color: var(--line-strong);
  background: #fff;
}

.filters input:focus,
.filters select:focus,
.comparison-tool-card input:focus,
.comparison-tool-card select:focus,
.s79-basket-tool input:focus,
.s79-basket-tool select:focus {
  border-color: #176fe3;
  box-shadow: 0 0 0 3px rgba(23, 111, 227, .14);
}

@media (max-width: 1120px) {
  body:has(.home-hero) .hero-copy {
    max-width: 680px;
  }
}

@media (max-width: 900px) {
  body:has(.home-hero) .home-hero {
    min-height: auto;
    padding: 46px 0 42px;
    background: #f3f6fa;
  }

  body:has(.home-hero) .hero-copy .hero-title {
    max-width: 650px;
    font-size: 46px;
  }

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

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

@media (max-width: 720px) {
  .section-head .section-title {
    font-size: 26px;
  }

  body:has(.home-hero) .hero-copy .hero-title {
    font-size: 38px;
  }

  body:has(.home-hero) .hero-copy .hero-subtitle {
    font-size: 16px;
  }

  .home-hero .hero-search {
    min-height: 58px;
  }

  .home-hero .search-submit {
    min-width: 88px;
    height: 44px;
    padding-inline: 14px;
  }

  .hero-task-link {
    min-height: 52px;
  }

  .hero-signal-row div {
    padding-inline: 10px;
  }

  .hero-signal-row strong {
    font-size: 21px;
  }

  .scenario-grid-large {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-title,
  .page .title {
    font-size: 34px;
  }
}

/* QA internal pages refresh: task-first navigation, filtering and next actions. */
html {
  scroll-padding-top: 132px;
}

.internal-page-hero .product-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  gap: 28px;
  align-items: center;
}

.internal-page-hero .product-hero-visual-panel {
  max-width: 280px;
  justify-self: end;
}

.hero-actions,
.box-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin-top: 18px;
}

.hero-actions .button,
.box-actions .button {
  min-height: 40px;
}

.section-jump-wrap {
  position: relative;
  z-index: 20;
  border-top: 1px solid #e4ebf5;
  border-bottom: 1px solid #dce6f3;
  background: rgba(255, 255, 255, .97);
}

.section-jump-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 0;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.section-jump-nav a {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #52647d;
  font-size: 13px;
  font-weight: 800;
  line-height: 20px;
}

.section-jump-nav a:hover,
.section-jump-nav a:focus-visible {
  color: #1d66d2;
  background: #eef5ff;
}

.internal-page-content,
.product-city-content {
  gap: 18px;
}

.internal-page-content > .box,
.product-city-content > .box {
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(16, 24, 40, .055);
}

.box-head > div {
  min-width: 0;
}

.box-subtitle {
  margin: 5px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.context-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #e5ebf4;
}

.context-strip > div,
.context-strip > a {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 16px;
  border-right: 1px solid #e5ebf4;
}

.context-strip > :last-child {
  border-right: 0;
}

.context-strip span {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.context-strip strong {
  color: #0b1f4d;
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-strip > a:hover strong {
  color: #1d66d2;
}

.context-strip--metrics {
  margin-bottom: 12px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  background: #f8fbff;
  overflow: hidden;
}

.internal-table {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.internal-table-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) auto;
  gap: 10px;
  align-items: end;
}

.internal-table-toolbar > label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #52647d;
  font-size: 12px;
  font-weight: 800;
}

.internal-table-toolbar input,
.internal-table-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #cbd8e8;
  border-radius: 6px;
  color: #0b1f4d;
  background: #fff;
  font: inherit;
}

.internal-table-toolbar input:focus,
.internal-table-toolbar select:focus {
  outline: 3px solid rgba(47, 128, 237, .12);
  border-color: #2f80ed;
}

.internal-table-count {
  min-height: 42px;
  padding: 11px 0;
  color: #667085;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.internal-table-toolbar > label:only-of-type + .internal-table-count {
  grid-column: 3;
}

.internal-table-more {
  width: fit-content;
  justify-self: center;
}

.internal-table-empty {
  margin: 0;
  padding: 18px;
  color: #667085;
  background: #f8fafc;
  text-align: center;
}

.table-action {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 9px;
  border-radius: 6px;
  color: #1d66d2;
  background: #eef5ff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.comparison-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.comparison-quick-link {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  color: #0b1f4d;
  background: #fff;
}

.comparison-quick-link:hover {
  border-color: #9fc8f8;
  background: #f8fbff;
}

.comparison-quick-link img {
  width: 56px;
  height: 44px;
  object-fit: contain;
}

.comparison-quick-link span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.comparison-quick-link strong,
.comparison-quick-link small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-quick-link small {
  color: #667085;
  font-size: 12px;
}

.comparison-quick-link b,
.next-action b {
  color: #2f80ed;
  font-size: 20px;
}

.next-actions {
  display: grid;
  gap: 14px;
  padding: 8px 0;
}

.next-actions-head {
  display: grid;
  gap: 4px;
}

.next-actions-head h2 {
  margin: 0;
  color: #0b1f4d;
  font-size: 24px;
  line-height: 1.2;
}

.next-actions-head p {
  margin: 0;
  color: #667085;
  font-size: 14px;
}

.next-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.next-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 76px;
  padding: 14px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  color: #0b1f4d;
  background: #fff;
}

.next-action:hover {
  border-color: #9fc8f8;
  background: #f8fbff;
}

.next-action > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.next-action strong {
  line-height: 1.3;
}

.next-action small {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.internal-link-section {
  padding: 0 0 34px;
}

.internal-link-content {
  gap: 18px;
}

.methodology-strip {
  padding: 18px 0 0;
  border-top: 1px solid #dce6f3;
}

.methodology-strip .box-head {
  margin-bottom: 8px;
}

.empty-data-panel {
  display: grid;
  gap: 12px;
}

.empty-data-panel p {
  margin: 0;
  color: #667085;
}

.product-city-content #pokazateli table {
  min-width: 1040px;
}

.metric-guide .feature-card {
  min-height: 0;
}

main[data-comparison-tool] .comparison-tool-form {
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  align-items: stretch;
}

.comparison-picker--a {
  grid-column: 1;
}

.comparison-swap-slot {
  grid-column: 2;
  display: grid;
  place-items: center;
}

.comparison-picker--b {
  grid-column: 3;
}

.comparison-swap {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #b8cce5;
  border-radius: 50%;
  color: #1d66d2;
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}

.comparison-swap:hover,
.comparison-swap:focus-visible {
  border-color: #2f80ed;
  background: #eef5ff;
}

.comparison-context-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

main[data-comparison-tool] .comparison-tool-actions {
  grid-column: 1 / -1;
}

.s77-tool-nav {
  margin-bottom: 18px;
  border-bottom: 1px solid #dce6f3;
  background: #fff;
}

@media (min-width: 901px) {
  .section-jump-wrap {
    position: sticky;
    top: 68px;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 118px;
  }

  .internal-page-hero .product-hero-grid {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 18px;
  }

  .internal-page-hero .product-hero-visual-panel {
    max-width: 180px;
  }

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

  .internal-table-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  }

  .internal-table-count,
  .internal-table-toolbar > label:only-of-type + .internal-table-count {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 0;
  }
}

@media (max-width: 720px) {
  .internal-page-hero .product-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .internal-page-hero .product-hero-visual-panel {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .internal-page-hero .product-hero-visual-panel .product-visual-card {
    min-height: 118px;
  }

  .hero-actions,
  .box-actions {
    align-items: stretch;
  }

  .hero-actions .button,
  .box-actions .button {
    flex: 1 1 100%;
    width: 100%;
  }

  .section-jump-nav {
    margin-inline: -12px;
    padding-inline: 12px;
  }

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

  .context-strip,
  .comparison-quick-grid,
  .next-actions-grid,
  .comparison-context-fields,
  .internal-table-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .context-strip > div,
  .context-strip > a {
    border-right: 0;
    border-bottom: 1px solid #e5ebf4;
  }

  .context-strip > :last-child {
    border-bottom: 0;
  }

  .internal-table-count,
  .internal-table-toolbar > label:only-of-type + .internal-table-count {
    grid-column: 1;
  }

  .internal-table-more {
    width: 100%;
  }

  .next-actions-head h2 {
    font-size: 22px;
  }

  main[data-comparison-tool] .comparison-tool-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .comparison-picker--a,
  .comparison-swap-slot,
  .comparison-picker--b,
  .comparison-context-fields,
  main[data-comparison-tool] .comparison-tool-actions {
    grid-column: 1;
  }

  .comparison-swap-slot {
    min-height: 44px;
  }

  .comparison-swap {
    transform: rotate(90deg);
  }

  .comparison-selected-product article {
    grid-template-columns: 84px minmax(0, 1fr);
    min-height: 104px;
    padding: 12px;
  }

  .comparison-selected-product img {
    width: 82px;
    height: 68px;
  }

  .city-page-content .compact-category-grid,
  .city-page-content .city-metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .header-search {
    display: none;
  }
  body:has(.home-hero) .home-hero {
    display: none;
  }
  #popular-products .product-card-grid,
  #scenario-cards .scenario-grid-large {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body:has(#scenario-cards) main > .section:first-of-type {
    padding-top: 26px;
  }
  #scenario-cards .scenario-card {
    grid-template-columns: 96px 1fr;
    min-height: 120px;
    padding: 14px;
  }
  #scenario-cards .scenario-card .scenario-icon {
    width: 88px;
    height: 88px;
  }
  .scenario-card .photo-visual-icon {
    width: 92px;
    height: 82px;
  }
  .scenario-card .topic-visual-icon,
  #scenario-cards .scenario-card .topic-visual-icon {
    width: 92px;
    height: 82px;
  }
  .category-card .photo-visual-icon,
  .rating-card .photo-visual-icon,
  .country-card .photo-visual-icon {
    width: 74px;
    height: 62px;
    max-width: 74px;
    max-height: 62px;
  }
  #popular-products .product-card {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 148px;
  }
  #popular-products .product-card .product-visual {
    width: 78px;
    height: 78px;
    min-height: 78px;
  }
  #popular-products .product-card .product-visual__image {
    width: 86px;
    max-height: 64px;
  }
  #popular-products .product-card .product-visual__image[src*="apelsin"] {
    width: 76px;
    max-height: 58px;
  }
  #popular-products .product-card-cta {
    white-space: normal;
  }
  .city-metric-grid,
  .city-compare-cards {
    grid-template-columns: 1fr;
  }
  .city-metric-list {
    grid-template-columns: 1fr;
  }
  .city-price-actions .button,
  .home-product-picker,
  .metric-select {
    width: 100%;
    margin-left: 0;
  }
  .home-product-picker {
    justify-content: flex-start;
  }
}

/* Sprint 33: real product comparison UX */
.comparison-hero { padding-bottom: 56px; }
.comparison-hero-copy { max-width: 920px; margin-bottom: 28px; }
.comparison-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.comparison-product-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-width: 0;
  padding: 22px;
  border: 1px solid #dce6f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(11,31,77,.07);
}
.comparison-product-card .product-visual { min-height: 210px; border: 0; background: transparent; box-shadow: none; }
.comparison-product-card .product-visual__image { width: min(100%, 240px); filter: drop-shadow(0 18px 18px rgba(11,31,77,.16)); }
.comparison-product-card__body { display: grid; gap: 12px; min-width: 0; }
.comparison-kicker { margin: 0; color: #53627a; font-size: 13px; font-weight: 800; }
.comparison-product-card h2 { margin: 0; color: var(--dark-blue); font-size: 30px; line-height: 1.1; }
.comparison-product-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.comparison-product-stats span { min-width: 0; padding: 10px 12px; border: 1px solid #e4ebf5; border-radius: 8px; background: #fbfdff; }
.comparison-product-stats small { display: block; color: #667085; font-size: 12px; }
.comparison-product-stats strong { color: var(--dark-blue); font-size: 17px; }
.comparison-source-note { margin: 0; color: #667085; font-size: 14px; }
.comparison-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.comparison-verdict .box-head { align-items: flex-start; }
.comparison-insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.comparison-insight-card { display: grid; gap: 8px; min-height: 150px; padding: 18px; border: 1px solid #d7e8ff; border-radius: 12px; background: linear-gradient(180deg, #f7fbff, #fff); }
.comparison-insight-card small { color: #0969da; font-weight: 900; }
.comparison-insight-card strong { color: var(--dark-blue); font-size: 22px; }
.comparison-insight-card p { margin: 0; color: #53627a; }
.comparison-insight-card--neutral { border-color: #e5e7eb; background: #fff; }
.comparison-table-wrap { max-height: none; }
.comparison-table td:first-child { min-width: 220px; }
.comparison-table td strong, .comparison-table td small { display: block; }
.comparison-table td small { margin-top: 4px; color: #667085; font-size: 12px; }
.metric-win { color: #047857; background: #ecfdf3; font-weight: 900; }
.comparison-result-pill { display: inline-flex; max-width: 260px; min-height: 30px; align-items: center; padding: 6px 10px; border-radius: 999px; color: #344054; background: #f3f4f6; white-space: normal; }
.comparison-result-pill.win-a, .comparison-result-pill.win-b { color: #047857; background: #ecfdf3; }
.comparison-bars { display: grid; gap: 18px; }
.comparison-bar-row { display: grid; gap: 8px; }
.comparison-bar-row > strong { color: var(--dark-blue); }
.comparison-bar-pair { display: grid; gap: 8px; }
.comparison-bar-pair span { position: relative; min-height: 36px; overflow: hidden; border: 1px solid #dce6f3; border-radius: 999px; background: #f8fbff; }
.comparison-bar-pair i { position: absolute; inset: 0 auto 0 0; display: block; min-width: 2%; border-radius: 999px; background: linear-gradient(90deg, #2f80ed, #84c5ff); }
.comparison-bar-pair b { position: relative; z-index: 1; display: inline-flex; padding: 8px 12px; color: #0b1f4d; }
.comparison-guide-grid { margin-top: 0; }
.comparison-related { min-width: 0; }
.comparison-related .related-grid { align-items: stretch; }
.comparison-sidebar { display: grid; align-content: start; gap: 18px; min-width: 0; }
.comparison-sidebar .box { min-width: 0; }

@media (max-width: 1180px) {
  .comparison-product-card { grid-template-columns: 170px minmax(0, 1fr); }
  .comparison-insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-sidebar { gap: 14px; }
}

@media (max-width: 720px) {
  .comparison-product-grid, .comparison-insight-grid { grid-template-columns: 1fr; }
  .comparison-product-card { grid-template-columns: 1fr; padding: 18px; }
  .comparison-product-card .product-visual { min-height: 170px; }
  .comparison-product-stats { grid-template-columns: 1fr; }
  .comparison-actions .button { width: 100%; }
  .comparison-table { min-width: 860px; }
}

/* Sprint 39: city explorer and selector */
.city-selector {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.city-selector__search {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #53627a;
  font-size: 13px;
  font-weight: 800;
}
.city-selector__search input,
.city-compare-widget select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  color: #102a56;
  background: #fff;
}
.city-selector__current,
.city-compare-result {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  background: #fbfdff;
}
.city-selector__current strong,
.city-card strong,
.city-compare-result strong {
  color: var(--dark-blue);
}
.city-selector__current small,
.city-card span,
.city-card small,
.city-compare-result span,
.city-compare-result small {
  color: #53627a;
}
.city-selector__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 340px;
  overflow: auto;
}
.city-selector__option {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  color: inherit;
  background: #fff;
  text-align: left;
}
.city-selector__option span {
  color: var(--dark-blue);
  font-weight: 850;
  overflow-wrap: anywhere;
}
.city-selector__option small {
  color: #53627a;
  font-size: 12px;
}
.city-selector__option:hover,
.city-selector__option.is-selected {
  border-color: #b9dcff;
  background: #f3f8ff;
}
.city-selector--header {
  order: 1;
  width: 210px;
  gap: 0;
}
.city-selector--header .city-selector__search,
.city-selector--header .city-selector__list,
.city-selector--mobile .city-selector__list {
  display: none;
}
.city-selector--header .city-selector__current {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 42px;
  padding: 6px 8px 6px 12px;
}
.city-selector--header .city-selector__current small {
  display: none;
}
.city-selector--header .city-selector__current .button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}
.city-selector--landing {
  max-width: 980px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.city-explorer-toolbar {
  max-width: 980px;
}
.city-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.city-card {
  display: grid;
  gap: 6px;
  min-height: 124px;
  padding: 18px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.city-card:hover {
  border-color: #b9dcff;
  background: #f8fbff;
}
.city-preview-table {
  margin-top: 18px;
}
.city-compare-widget {
  display: grid;
  gap: 14px;
}
.city-compare-widget__controls {
  display: grid;
  gap: 10px;
}
.city-compare-widget label {
  display: grid;
  gap: 6px;
  color: #53627a;
  font-size: 13px;
  font-weight: 800;
}

/* Sprint 55: dynamic ratings */
.dynamic-rating-form select,
.rating-workspace select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  color: #102a56;
  background: #fff;
}
.filter-label {
  display: block;
  margin: 0 0 6px;
  color: #53627a;
  font-size: 13px;
  font-weight: 850;
}
.rating-unavailable-note {
  margin-top: 14px;
}
.rating-table td strong {
  color: var(--dark-blue);
}

@media (max-width: 1180px) {
  .city-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-selector--header { width: 180px; }
}

@media (max-width: 900px) {
  .city-selector--header { display: none; }
  .mobile-drawer-inner > .city-selector--mobile:first-child {
    order: -1;
    padding: 14px;
    border: 1px solid #dce6f3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11,31,77,.055);
  }
  .city-selector--mobile .city-selector__current {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
  }
}

@media (max-width: 720px) {
  .city-card-grid,
  .city-selector__list {
    grid-template-columns: 1fr;
  }
  .city-selector--landing,
  .city-selector__current {
    padding: 14px;
  }
  .city-selector__current .button,
  .city-compare-widget .button {
    width: 100%;
  }
  .city-selector--mobile .city-selector__current {
    grid-template-columns: 1fr;
  }
}

/* Sprint 38: interactive comparison tool */
.comparison-tool-hero {
  padding: 52px 0 96px;
  background:
    radial-gradient(circle at 78% 12%, rgba(47,128,237,.14), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.comparison-tool-hero .container {
  max-width: 1120px;
}
.comparison-tool-hero-grid {
  display: grid;
  justify-items: center;
  text-align: center;
}
.comparison-tool-hero .breadcrumbs {
  justify-content: center;
}
.comparison-tool-hero .product-title {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1.02;
}
.comparison-tool-hero .subtitle {
  max-width: 760px;
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.65;
}
.comparison-tool-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.comparison-tool-highlights span {
  min-height: 36px;
  padding: 9px 14px;
  border: 1px solid #dce6f3;
  border-radius: 999px;
  color: #0b1f4d;
  background: rgba(255,255,255,.9);
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(11,31,77,.06);
}
.comparison-tool {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.comparison-tool-card {
  display: grid;
  gap: 20px;
  max-width: 1040px;
  margin: -76px auto 0;
  padding: 28px;
  border: 1px solid #d4e2f3;
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 28px 80px rgba(11,31,77,.12);
}
.comparison-tool-card-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
}
.comparison-tool-card-head .eyebrow {
  margin: 0;
}
.comparison-tool-card-head h2 {
  margin: 0;
  color: var(--dark-blue);
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}
.comparison-tool-card-head p:last-child {
  margin: 0;
  color: #667085;
  font-size: 16px;
  line-height: 1.55;
}
.comparison-tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.comparison-tool-form label,
.comparison-picker {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.comparison-tool-form label span {
  color: #344054;
  font-weight: 900;
}
.comparison-tool-form input,
.comparison-tool-form select {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #c7d2e2;
  border-radius: 10px;
  background: #fbfdff;
  color: var(--dark-blue);
  font: inherit;
  font-weight: 700;
}
.comparison-tool-form select {
  cursor: pointer;
}
.comparison-tool-form input:focus,
.comparison-tool-form select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47,128,237,.12);
}
.comparison-selected-product article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  min-height: 132px;
  padding: 16px;
  border: 1px solid #e0e9f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.comparison-selected-product img {
  width: 118px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(11,31,77,.12));
}
.comparison-selected-product span,
.comparison-selected-product strong,
.comparison-selected-product small,
.comparison-selected-product em {
  min-width: 0;
}
.comparison-selected-product small,
.comparison-selected-product em {
  display: block;
  color: #667085;
  font-style: normal;
  font-size: 12px;
}
.comparison-tool-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.comparison-tool-form > label:nth-of-type(1),
.comparison-tool-form > label:nth-of-type(2) {
  align-self: start;
}
.comparison-tool-state {
  min-height: 24px;
  color: #53627a;
  font-weight: 800;
}
.comparison-tool-state:empty {
  display: none;
}
.comparison-product-search {
  position: relative;
  display: block;
  margin-bottom: 8px;
}
.comparison-product-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #c7d7eb;
  border-radius: 8px;
  color: var(--dark-blue);
  background: #fff;
}
.comparison-product-search input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(47, 128, 237, .14);
}
.comparison-product-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 12;
  display: none;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(11, 31, 77, .14);
}
.comparison-product-suggestions.is-open { display: grid; }
.comparison-product-suggestions button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #edf2f8;
  text-align: left;
  color: var(--dark-blue);
  background: #fff;
}
.comparison-product-suggestions button:hover,
.comparison-product-suggestions button:focus { background: #eef5ff; }
.comparison-product-suggestions button span,
.comparison-product-empty { color: #667085; font-size: 12px; }
.comparison-product-empty { padding: 12px; }
.comparison-tool-results {
  display: grid;
  gap: 18px;
}
.comparison-selected-winner {
  display: inline-grid;
  gap: 4px;
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid #bdebd0;
  border-radius: 8px;
  background: #f0fff7;
}
.comparison-selected-winner strong {
  color: #047857;
  font-size: 24px;
}
.comparison-recommendation {
  display: grid;
  gap: 16px;
  margin: 14px 0;
  padding: 18px;
  border: 1px solid #cfe3ff;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}
.comparison-recommendation-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr);
  gap: 14px;
}
.comparison-recommendation-main,
.comparison-recommendation-note {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dce6f3;
  border-radius: 10px;
  background: #fff;
}
.comparison-recommendation-main small,
.comparison-recommendation-note small {
  color: #0969da;
  font-weight: 900;
}
.comparison-recommendation-main strong {
  color: var(--dark-blue);
  font-size: 22px;
  line-height: 1.22;
}
.comparison-recommendation-main p,
.comparison-recommendation-note p {
  margin: 0;
  color: #53627a;
}
.comparison-alternatives {
  display: grid;
  gap: 10px;
}
.comparison-alternatives h3 {
  margin: 0;
  color: var(--dark-blue);
  font-size: 18px;
}
.comparison-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.comparison-preset {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dce6f3;
  border-radius: 12px;
  background: #fff;
}
.comparison-preset-images {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comparison-preset-images .product-cell-image {
  width: 62px;
  height: 48px;
}
.comparison-preset small {
  color: #667085;
}

@media (max-width: 980px) {
  .comparison-tool-hero {
    padding-bottom: 72px;
  }
  .comparison-tool-card {
    margin-top: -56px;
  }
  .comparison-tool-form {
    grid-template-columns: 1fr 1fr;
  }
  .comparison-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .comparison-tool-hero {
    padding: 34px 0 54px;
    text-align: left;
  }
  .comparison-tool-hero-grid,
  .comparison-tool-hero .breadcrumbs {
    justify-items: start;
    justify-content: flex-start;
    text-align: left;
  }
  .comparison-tool-hero .product-title {
    font-size: 36px;
  }
  .comparison-tool-hero .subtitle {
    font-size: 16px;
  }
  .comparison-tool-highlights {
    justify-content: flex-start;
  }
  .comparison-tool-card {
    margin-top: -34px;
    padding: 16px;
    border-radius: 12px;
  }
  .comparison-tool-form,
  .comparison-preset-grid {
    grid-template-columns: 1fr;
  }
  .comparison-recommendation-body {
    grid-template-columns: 1fr;
  }
  .comparison-tool-actions .button {
    width: 100%;
  }
  .comparison-selected-product article {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 96px;
  }
  .comparison-selected-product img {
    width: 64px;
    height: 52px;
  }
}

/* Sprint 41 top navigation hubs */
.hub-hero .summary {
  margin-top: 22px;
}
.hub-panel {
  align-self: stretch;
}
.hub-filters {
  margin-bottom: 20px;
}
.category-explorer-grid,
.rating-center-grid,
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.category-hold-list {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #dce6f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 44, 85, .06);
}
.category-hold-list h2 {
  margin: 0 0 6px;
  color: #071d49;
  font-size: 22px;
}
.category-hold-list p {
  margin: 0 0 14px;
  color: #667085;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-explorer-card,
.rating-center-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #dce6f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}
.category-card-head,
.rating-card-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.category-card-head .entity-visual,
.rating-card-head .entity-visual {
  display: grid;
  place-items: center;
  width: 96px;
  min-height: 82px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.category-card-head .entity-visual strong,
.rating-card-head .entity-visual strong {
  display: none;
}
.category-card-head .entity-visual .category-icon,
.category-card-head .entity-visual .topic-visual-icon,
.category-card-head .entity-visual .photo-visual-icon,
.rating-card-head .entity-visual .rating-icon,
.rating-card-head .entity-visual .topic-visual-icon,
.rating-card-head .entity-visual .photo-visual-icon {
  width: 92px;
  height: 72px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  overflow: visible;
}
.category-card-head .entity-visual .category-icon::before,
.category-card-head .entity-visual .category-icon::after,
.category-card-head .entity-visual .topic-visual-icon::before,
.category-card-head .entity-visual .topic-visual-icon::after,
.category-card-head .entity-visual .photo-visual-icon::before,
.category-card-head .entity-visual .photo-visual-icon::after,
.rating-card-head .entity-visual .rating-icon::before,
.rating-card-head .entity-visual .rating-icon::after,
.rating-card-head .entity-visual .topic-visual-icon::before,
.rating-card-head .entity-visual .topic-visual-icon::after,
.rating-card-head .entity-visual .photo-visual-icon::before,
.rating-card-head .entity-visual .photo-visual-icon::after {
  content: none;
}
.category-card-head .entity-visual img,
.rating-card-head .entity-visual img {
  width: 100%;
  height: 100%;
  max-width: 92px;
  max-height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(11,31,77,.14));
  transform: none;
}
.category-card-head strong,
.rating-card-head strong {
  display: block;
  color: #172033;
  font-size: 18px;
  line-height: 1.18;
}
.category-card-head span,
.rating-card-head span,
.category-explorer-card p,
.rating-center-card p {
  color: #667085;
}
.mini-product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mini-product-list a {
  padding: 7px 10px;
  border: 1px solid #dce6f3;
  border-radius: 999px;
  background: #f8fafc;
  color: #344054;
  font-weight: 800;
  font-size: 13px;
}
.hub-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.compact-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.rating-workspace .filters-grid {
  align-items: end;
}
.rating-table td,
.rating-table th {
  white-space: nowrap;
}
.nav a:hover,
.mobile-nav a:hover {
  color: #1d66d2;
}
.nav a.is-active,
.mobile-nav a.is-active {
  color: #1d66d2;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .category-explorer-grid,
  .rating-center-grid,
  .methodology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .category-explorer-grid,
  .rating-center-grid,
  .methodology-grid,
  .compact-summary {
    grid-template-columns: 1fr;
  }
  .hub-card-actions .button,
  .hub-panel .chip {
    width: 100%;
  }
  .category-explorer-card,
  .rating-center-card {
    padding: 14px;
  }
}

/* Sprint 45: header search and city selector layout stability */
.header-inner {
  gap: 14px;
}
.header-search {
  flex: 1 1 280px;
  width: auto;
  max-width: 360px;
  margin-left: 0;
  margin-right: 0;
}
.nav {
  flex: 0 0 auto;
  gap: 8px;
}
.nav a {
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .header-inner {
    gap: 10px;
  }
  .header-search {
    flex-basis: 220px;
    max-width: 300px;
  }
  .nav {
    gap: 4px;
  }
  .nav a {
    padding-inline: 7px;
  }
}

@media (max-width: 980px) {
  .header-city-button:not(.header-city-button--mobile) { display: none; }
  .header-city-modal .city-selector__list { grid-template-columns: 1fr; }
}

/* Sprint 77: header city control placement */
.header-inner {
  justify-content: flex-start;
  gap: 8px;
}
.logo {
  order: 1;
}
.header-search {
  order: 2;
  flex: 0 1 360px;
  margin-left: 0;
  margin-right: 8px;
}
.nav {
  order: 3;
  margin-left: 0;
}
.header-city-button:not(.header-city-button--mobile) {
  order: 4;
}
@media (max-width: 1180px) {
  .header-search {
    flex-basis: 280px;
  }
}
@media (max-width: 980px) {
  .header-city-button:not(.header-city-button--mobile) {
    display: none;
  }
}

/* Sprint 80: comparison page category-style alignment */
main[data-comparison-tool] .comparison-tool-hero .container {
  max-width: none;
}
main[data-comparison-tool] .comparison-tool-hero-grid {
  justify-items: start;
  text-align: left;
}
main[data-comparison-tool] .comparison-tool-hero .breadcrumbs {
  justify-content: flex-start;
}
main[data-comparison-tool] .comparison-tool-hero .product-title,
main[data-comparison-tool] .comparison-tool-hero .subtitle,
main[data-comparison-tool] .comparison-tool-card {
  margin-left: 0;
  margin-right: 0;
}
main[data-comparison-tool] .comparison-tool-card {
  width: 100%;
  max-width: none;
}

/* Sprint 85: simplified comparison result */
main[data-comparison-tool] .comparison-verdict {
  gap: 12px;
  padding: 18px;
}
main[data-comparison-tool] .comparison-verdict > .box-head {
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
}
main[data-comparison-tool] .comparison-recommendation {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
main[data-comparison-tool] .comparison-recommendation .box-head {
  margin-bottom: 8px;
}
main[data-comparison-tool] .comparison-recommendation-body--simple {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dbe8f7;
  border-radius: 8px;
  background: #fbfdff;
}
main[data-comparison-tool] .comparison-recommendation-summary {
  margin: 0;
  color: var(--dark-blue);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}
main[data-comparison-tool] .comparison-recommendation-body--simple p {
  margin: 0;
}
main[data-comparison-tool] .comparison-recommendation-muted {
  color: #667085;
  font-size: 14px;
}
main[data-comparison-tool] .comparison-insight-grid,
main[data-comparison-tool] .comparison-alternatives {
  display: none;
}
main[data-comparison-tool] .comparison-matrix {
  padding: 0;
  overflow: hidden;
}
main[data-comparison-tool] .comparison-matrix summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 18px;
  color: var(--dark-blue);
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}
main[data-comparison-tool] .comparison-matrix summary::-webkit-details-marker {
  display: none;
}
main[data-comparison-tool] .comparison-matrix summary small {
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}
main[data-comparison-tool] .comparison-matrix[open] summary {
  border-bottom: 1px solid #edf2f7;
}
main[data-comparison-tool] .comparison-matrix .comparison-table-wrap {
  border: 0;
  border-radius: 0;
}

/* Sprint 53: city basket comparison tool */
.basket-compare-hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(47,128,237,.16), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.basket-tool {
  display: grid;
  gap: 18px;
}
.basket-filters label,
.basket-custom label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #53627a;
  font-size: 13px;
  font-weight: 850;
}
.basket-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.basket-filters select,
.basket-custom input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  color: #102a56;
  background: #fff;
}
.basket-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.basket-preset-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  color: inherit;
  background: #fff;
  text-align: left;
}
.basket-preset-card strong {
  color: var(--dark-blue);
  font-size: 17px;
}
.basket-preset-card span,
.basket-preset-card small {
  color: #667085;
}
.basket-preset-card.is-selected,
.basket-preset-card:hover {
  border-color: #8cc4ff;
  background: #f3f8ff;
}
.basket-custom {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.basket-custom[hidden],
.basket-product-list [hidden],
.basket-product-list .is-filtered-out {
  display: none !important;
}
.basket-product-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}
.basket-product-list label {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  background: #fbfdff;
  color: #102a56;
}
.basket-product-list input {
  grid-row: span 2;
}
.basket-product-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}
.basket-product-list small {
  color: #667085;
}
.basket-summary {
  margin-top: 12px;
}
.basket-driver-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.basket-driver-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  background: #fbfdff;
}
.basket-driver-card small {
  color: #2f80ed;
  font-weight: 850;
}
.basket-driver-card strong {
  color: var(--dark-blue);
}
.basket-driver-card span {
  color: #53627a;
}
.basket-table-wrap {
  margin-top: 14px;
}
.basket-table {
  min-width: 860px;
}
.basket-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.basket-missing {
  margin-top: 14px;
}
.basket-missing h3 {
  margin: 0 0 8px;
  color: var(--dark-blue);
}
.basket-methodology p {
  max-width: 900px;
  color: #53627a;
}

@media (max-width: 1100px) {
  .basket-preset-grid,
  .basket-product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .basket-driver-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .product-hero-visual-panel .product-visual {
    min-height: 180px;
  }

  .product-hero-visual-panel .product-visual__image {
    width: 180px;
    height: 135px;
    max-width: 180px;
    max-height: 135px;
  }

  .basket-preset-grid,
  .basket-product-list,
  .basket-driver-grid {
    grid-template-columns: 1fr;
  }
  .basket-controls .box-head {
    gap: 12px;
  }
  .basket-controls .box-head .button {
    width: 100%;
  }
}

/* S76 sections */
.s76-hero .hub-panel {
  align-self: stretch;
}

.s76-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.s76-card {
  display: grid;
  min-height: 148px;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  text-decoration: none;
}

.s76-card strong {
  color: var(--dark-blue);
  font-size: 18px;
  line-height: 1.2;
}

.s76-card span {
  color: #53627a;
  line-height: 1.45;
}

.s76-card small {
  color: #2f80ed;
  font-weight: 850;
}

.s76-tool {
  margin: 18px 0;
}

.s76-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.s76-form-grid label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--dark-blue);
  font-weight: 850;
}

.s76-form-grid input,
.s76-form-grid select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--dark-blue);
  font: inherit;
  padding: 0 12px;
}

.s76-reference-body {
  display: grid;
  gap: 12px;
  color: #53627a;
  line-height: 1.55;
}

.s76-reference-body h2 {
  margin: 14px 0 0;
  color: var(--dark-blue);
  font-size: 22px;
  line-height: 1.2;
}

.s76-reference-body p {
  margin: 0;
}

.nav .nav-current,
.mobile-nav .nav-current {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-weight: 850;
}

.footer-current {
  color: rgba(255, 255, 255, 0.64);
  font-weight: 850;
}

/* S90: keep header controls on one visual baseline */
.nav a,
.nav .nav-current,
.header-city-button:not(.header-city-button--mobile) {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1;
  transform: none;
  vertical-align: middle;
}

.nav .nav-current {
  color: #1d66d2;
  background: #eef5ff;
  font-size: 14px;
  font-weight: 900;
}

.header-city-button:not(.header-city-button--mobile) {
    align-self: center;
    margin-top: 0;
    margin-bottom: 0;
}

/* S77: functional sections layout */
.s77-hero .product-hero-grid,
.product-city-hero .product-hero-grid,
.page > .container,
.section > .container {
    max-width: 1180px;
}

.city-explorer-toolbar,
.city-selector--landing {
    width: 100%;
    max-width: 100%;
}

.s77-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.s77-card {
    min-height: 128px;
}

.s77-widget,
.s77-preview,
.s77-reference {
    margin-top: 22px;
}

.s77-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.s77-form-grid label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 800;
}

.s77-form-grid input,
.s77-form-grid select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
}

.s77-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.s77-state {
    min-height: 22px;
    color: var(--muted);
    font-weight: 700;
    margin: 10px 0;
}

.s77-state.is-error {
    color: #b42318;
}

.s77-result {
    margin-top: 12px;
}

.s77-formula {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.s77-formula h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.s77-reference .s76-reference-body h2 {
    margin-top: 18px;
}

@media (max-width: 900px) {
    .s77-card-grid,
    .s77-form-grid {
        grid-template-columns: 1fr;
    }
}

/* S77 visual polish */
.s77-hero {
  border-bottom: 1px solid rgba(222, 232, 246, .8);
  background:
    radial-gradient(circle at 82% 16%, rgba(47, 128, 237, .14), transparent 34%),
    linear-gradient(180deg, #fbfdff 0%, #fff 100%);
}

.s77-hero .product-title {
  max-width: 760px;
}

.s77-hero .hub-panel {
  border-color: #dbe8f7;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.98));
  box-shadow: 0 22px 70px rgba(11, 31, 77, .08);
}

.s77-hero .summary-card {
  background: rgba(255,255,255,.92);
}

.s77-card-grid {
  gap: 18px;
}

.s77-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-color: #dbe8f7;
  background:
    linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}

.s77-card::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 68% 28%, #5ee2a8 0 14%, transparent 15%),
    linear-gradient(135deg, #2f80ed, #77b9ff);
  box-shadow: 0 10px 22px rgba(47,128,237,.22);
}

.s77-card strong {
  font-size: 19px;
}

.s77-card small {
  justify-self: start;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #1d66d2;
  background: #eef5ff;
}

.s77-card:hover {
  border-color: #9ed0ff;
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(47,128,237,.12);
}

.s77-widget,
.s77-preview,
.s77-reference {
  border-color: #d7e5f5;
  background:
    linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 18px 55px rgba(15, 23, 42, .07);
}

.s77-widget .box-head,
.s77-preview .box-head,
.s77-reference .box-head {
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf3fa;
}

.s77-widget .box-title,
.s77-preview .box-title,
.s77-reference .box-title {
  font-size: clamp(28px, 2.5vw, 36px);
}

.s77-form-grid {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #edf3fa;
  border-radius: 12px;
  background: #f8fbff;
}

.s77-form-section {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #edf3fa;
  border-radius: 12px;
  background: #f8fbff;
}

.s77-form-section .s77-form-grid {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.s77-form-section h3 {
  margin: 0;
  color: #071d49;
  font-size: 18px;
  line-height: 1.2;
}

.s77-picker {
  align-content: start;
}

.s77-picker small {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.s77-picker-search {
  margin-bottom: 8px;
}

.s77-form-grid label {
  color: #31415d;
  font-size: 13px;
  letter-spacing: 0;
}

.s77-form-grid input,
.s77-form-grid select {
  min-height: 48px;
  border-color: #cfdded;
  color: #071d49;
  background: #fff;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.s77-form-grid input:focus,
.s77-form-grid select:focus {
  border-color: #74b7ff;
  outline: 3px solid rgba(47,128,237,.12);
}

.s77-actions {
  padding: 16px 0 4px;
  border-bottom: 1px solid #edf3fa;
}

.s77-actions .button {
  min-height: 46px;
  border-radius: 8px;
}

.s77-actions .button:first-child {
  border-color: #2f80ed;
  color: #fff;
  background: #2f80ed;
  box-shadow: 0 10px 22px rgba(47,128,237,.22);
}

.s77-state {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #53627a;
  background: #f4f7fb;
  font-size: 13px;
}

.s77-state.is-error {
  color: #b42318;
  background: #fff1f0;
}

.s77-result.compact-summary,
.s77-widget .compact-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.s77-result .summary-card,
.s77-widget .summary-card {
  min-height: 108px;
  padding: 18px;
  border-color: #dbe8f7;
  background: #fff;
}

.s77-result .summary-card span,
.s77-widget .summary-card span {
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.s77-result .summary-card strong,
.s77-widget .summary-card strong {
  color: #071d49;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.08;
}

.s77-formula {
  border-color: #dbe8f7;
  background:
    linear-gradient(180deg, #f8fbff, #fff);
}

.s77-formula h3 {
  color: #071d49;
  font-size: 18px;
}

.s77-widget .table-wrap {
  margin-top: 18px;
  border: 1px solid #dbe8f7;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.s77-widget table {
  min-width: 760px;
}

.s77-widget th {
  color: #344054;
  background: #f8fbff;
  font-size: 13px;
  text-transform: none;
}

.s77-widget td {
  vertical-align: middle;
}

.s77-widget tbody tr:hover {
  background: #fbfdff;
}

.s77-reference .s76-reference-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.s77-reference .s76-reference-body h2 {
  margin-top: 0;
  font-size: 18px;
}

.s77-reference .s76-reference-body h2,
.s77-reference .s76-reference-body p {
  padding: 14px;
  border: 1px solid #edf3fa;
  background: #fff;
}

.s77-reference .s76-reference-body h2 {
  margin-bottom: -16px;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.s77-reference .s76-reference-body p {
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

@media (max-width: 1100px) {
  .s77-result.compact-summary,
  .s77-widget .compact-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .s77-hero {
    padding-top: 34px;
  }
  .s77-widget,
  .s77-preview,
  .s77-reference {
    padding: 18px;
  }
  .s77-widget .box-head,
  .s77-preview .box-head,
  .s77-reference .box-head {
    display: grid;
    gap: 8px;
  }
  .s77-form-grid {
    padding: 12px;
  }
  .s77-actions .button {
    width: 100%;
  }
  .s77-result.compact-summary,
  .s77-widget .compact-summary,
  .s77-reference .s76-reference-body {
    grid-template-columns: 1fr;
  }
}

.s77-tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid #dbe8f7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.s77-tool-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #102a56;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  background: #f8fbff;
}

.s77-tool-nav a:hover,
.s77-tool-nav a.is-active {
  border-color: #b9d8fb;
  color: #1d66d2;
  background: #eef5ff;
}

.s77-card-grid {
  margin-top: 12px;
  align-items: stretch;
}

.s77-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 174px;
}

.s77-card::before {
  display: none;
}

.s77-card strong,
.s77-card span,
.s77-card small {
  min-width: 0;
}

.s77-card > span:not(.s77-card-icon) {
  color: #5d6b82;
  line-height: 1.55;
}

.s77-card small {
  align-self: end;
  margin-top: 8px;
}

.s77-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.s77-method-grid article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid #dbe8f7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .05);
}

.s77-method-grid strong {
  color: #071d49;
  font-size: 17px;
  line-height: 1.2;
}

.s77-method-grid span {
  color: #667085;
  line-height: 1.55;
}

.s77-widget {
  overflow: visible;
}

.s77-widget .box-subtitle,
.s77-preview .box-subtitle {
  max-width: 720px;
}

.s77-form-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.s77-form-grid label {
  min-width: 0;
}

.s77-form-grid input,
.s77-form-grid select {
  appearance: auto;
}

.s77-actions {
  align-items: center;
}

.s77-result.compact-summary .summary-card,
.s77-widget .compact-summary .summary-card {
  border-radius: 8px;
}

.s77-widget .product-cell {
  min-width: 0;
}

.s77-widget .product-cell-image {
  flex: 0 0 auto;
}

.s77-preview .summary.compact-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1020px) {
  .s77-method-grid,
  .s77-preview .summary.compact-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .s77-tool-nav {
    display: grid;
    grid-template-columns: 1fr;
  }
  .s77-form-grid {
    grid-template-columns: 1fr;
  }
  .s77-card {
    min-height: 0;
    padding: 16px;
  }
  .s77-method-grid,
  .s77-preview .summary.compact-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .s76-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .s76-card-grid,
  .s76-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Public cleanup: remove schematic square UI glyphs sitewide. */
.ui-icon {
  display: none !important;
}

.s77-card::before {
  display: none !important;
  content: none !important;
}

.scenario-card {
  grid-template-columns: 1fr;
}

.scenario-card small {
  grid-column: auto;
}

/* Sprint 79: basket builder and city comparison */
.s79-primary-actions,
.s79-preset-card .hub-card-actions {
  margin-bottom: 18px;
}

.s79-preview {
  margin-bottom: 18px;
}

.s79-basket-tool {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.s79-controls {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.s79-product-add {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, .7fr) auto auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  background: #fbfdff;
}

.s79-product-add label {
  display: grid;
  gap: 6px;
  color: #53627a;
  font-size: 13px;
  font-weight: 850;
}

.s79-product-add input,
.s79-product-add select,
.s79-table-wrap input,
.s79-table-wrap select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  color: #102a56;
  background: #fff;
}

.s79-search-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.s79-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: 520px;
  overflow-x: auto !important;
  overflow-y: auto;
  overscroll-behavior-x: contain;
  contain: layout paint;
}

.s79-table-wrap table {
  min-width: 1120px;
  max-width: none;
}

.s79-table-wrap td,
.s79-table-wrap th {
  vertical-align: middle;
}

.s79-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f6fb;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.s79-status-badge.is-ok {
  background: #e8fff3;
  color: #07864f;
}

.s79-status-badge.is-missing {
  background: #fff7ed;
  color: #b45309;
}

.s79-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.s79-drivers {
  padding: 18px;
}

.s79-missing .box {
  padding: 18px;
}

@media (max-width: 960px) {
  .s79-controls,
  .s79-product-add,
  .s79-summary {
    grid-template-columns: 1fr;
  }
  .s79-basket-tool {
    padding: 18px;
  }
}

.s80-reference-section,
.s80-reference-quick,
.s80-reference-page,
.s80-formula-card,
.s80-example-card,
.s80-used-card,
.s80-limitations,
.s80-related-topics,
.s80-reference-cta {
  border: 1px solid #dbe7f6;
  box-shadow: 0 18px 45px rgba(20, 65, 125, 0.06);
}

.s80-reference-section + .s80-reference-section,
.s80-reference-quick,
.s80-reference-page + .s80-formula-card,
.s80-formula-card + .s80-example-card,
.s80-example-card + .s80-used-card,
.s80-used-card + .s80-limitations,
.s80-limitations + .s80-related-topics,
.s80-related-topics + .s80-reference-cta,
.s80-reference-cta + .s77-widget {
  margin-top: 22px;
}

.s80-formula-code {
  display: block;
  width: 100%;
  margin: 6px 0 14px;
  padding: 16px 18px;
  border: 1px solid #cfe0f4;
  border-radius: 8px;
  background: #f7fbff;
  color: #08285d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: nowrap;
}

.s80-data-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #f3fbf5;
  color: #315b3c;
}

.s80-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.s80-link-grid .side-link {
  margin: 0;
  min-height: 78px;
}

.s80-limitations ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.s80-limitations li {
  padding: 14px 16px;
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  background: #fbfdff;
  color: #52647d;
  line-height: 1.55;
}

.s80-example-table {
  margin-top: 14px;
}

.s80-example-table table {
  min-width: 820px;
}

.s80-reference-page .s76-reference-body {
  max-width: 920px;
}

.s80-reference-page .s76-reference-body p,
.s80-formula-card p,
.s80-example-card p {
  color: #52647d;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .s80-link-grid,
  .s80-limitations ul {
    grid-template-columns: 1fr;
  }

  .s80-formula-code {
    white-space: normal;
    word-break: break-word;
  }
}

/* Layout alignment: keep page heroes and following sections on the same grid. */
.page > .container,
.section > .container,
.home-hero > .container,
.product-hero > .container,
.comparison-tool-hero .container,
main[data-comparison-tool] .comparison-tool-hero .container {
  max-width: 1180px;
}

.city-explorer-toolbar,
.city-selector--landing {
  width: 100%;
  max-width: 100%;
}

/* 2026-07-13 UX audit: restore the lightweight, functional home search. */
body:has(.home-hero) .home-hero {
  display: grid;
  min-height: 430px;
  padding: 46px 0 42px;
  background: linear-gradient(90deg, #fff 0 60%, #f3f8ff 60% 100%);
}

body:has(.home-hero) .home-hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .72fr);
  gap: 42px;
}

body:has(.home-hero) .hero-copy .hero-title {
  max-width: 720px;
  font-size: clamp(40px, 4vw, 58px);
}

body:has(.home-hero) .hero-dashboard {
  gap: 12px;
  padding: 24px;
}

body:has(.home-hero) .hero-product-row .product-visual-card {
  width: 92px;
  min-height: 88px;
  flex-basis: 92px;
}

body:has(.home-hero) .hero-product-row h2 {
  font-size: 23px;
}

body:has(.home-hero) .hero-stat-grid {
  gap: 8px;
}

body:has(.home-hero) .hero-stat-grid div {
  padding: 10px 12px;
}

body:has(.home-hero) .hero-stat-grid strong {
  font-size: 19px;
}

body:has(.home-hero) .hero-bars {
  display: none;
}

@media (max-width: 900px) {
  body:has(.home-hero) .home-hero {
    display: grid;
    min-height: auto;
    padding: 34px 0 30px;
    background: #fff;
  }

  body:has(.home-hero) .home-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  body:has(.home-hero) .hero-dashboard {
    display: none;
  }

  body:has(.home-hero) .hero-copy .hero-title {
    font-size: clamp(36px, 9vw, 48px);
  }
}

@media (max-width: 1320px) {
  .header-inner {
    gap: 10px;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
    order: 6;
    margin-left: 0;
  }

  .header-search {
    flex: 1 1 360px;
    width: auto;
    max-width: 520px;
    margin-right: auto;
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-city-button:not(.header-city-button--mobile) {
    display: none;
  }

  .nav-toggle {
    order: 5;
  }

  .header-search {
    order: 6;
    display: flex;
    flex: 1 0 100%;
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

/* QA UI refresh: compact navigation and task-first internal pages. */
.site-header {
  min-height: 68px;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(240px, 420px) auto auto;
  gap: 10px;
  min-height: 68px;
  flex-wrap: nowrap;
  justify-content: start;
}

.logo img,
.footer-logo img {
  height: 36px;
}

.header-search {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 4px;
  border-radius: 8px;
  justify-self: stretch;
}

.header-search input {
  min-height: 36px;
  padding: 7px 10px;
}

.header-search button {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.nav {
  position: relative;
  display: flex;
  gap: 2px;
  min-width: 0;
  margin: 0;
}

.nav > a,
.nav > .nav-current,
.header-more > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px;
  border-radius: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.nav > a:hover,
.header-more > summary:hover {
  color: #1d66d2;
  background: #eef5ff;
}

.nav > a.is-active,
.nav > .nav-current,
.header-more > summary.is-active {
  color: #1d66d2;
  background: #eef5ff;
  font-weight: 900;
}

.header-more {
  position: relative;
}

.header-more > summary {
  list-style: none;
  cursor: pointer;
}

.header-more > summary::-webkit-details-marker {
  display: none;
}

.header-more > summary::after {
  content: "⌄";
  margin-left: 5px;
  color: #667085;
  font-size: 12px;
}

.header-more[open] > summary {
  color: #1d66d2;
  background: #eef5ff;
}

.header-more-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  display: grid;
  width: 210px;
  gap: 3px;
  padding: 7px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 24, 40, .14);
}

.header-more-menu a,
.header-more-menu .nav-current {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 6px;
  color: #344054;
  font-size: 14px;
  font-weight: 750;
}

.header-more-menu a:hover,
.header-more-menu a.is-active,
.header-more-menu .nav-current {
  color: #1d66d2;
  background: #eef5ff;
}

.suggestions-panel {
  right: auto;
  width: min(460px, calc(100vw - 24px));
  max-height: min(420px, calc(100vh - 110px));
  overflow-y: auto;
  padding: 6px;
  border-radius: 8px;
}

.suggestion-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 6px;
}

.suggestion-item.is-active,
.suggestion-item:hover {
  background: #eef5ff;
}

.suggestion-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-item span {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.page {
  padding: 36px 0 28px;
}

.product-hero,
.comparison-tool-hero,
.basket-compare-hero,
.s77-hero {
  padding: 34px 0 28px;
  background: #f7faff;
}

.product-title,
.comparison-tool-hero .product-title,
.page .title {
  max-width: 900px;
  margin-bottom: 10px;
  font-size: 44px;
  line-height: 1.08;
}

.product-hero .subtitle,
.comparison-tool-hero .subtitle,
.page .subtitle {
  max-width: 780px;
  margin-top: 0;
  font-size: 16px;
  line-height: 1.55;
}

.hub-hero .product-hero-grid:has(> :only-child) {
  grid-template-columns: minmax(0, 820px);
}

.comparison-tool-hero-grid {
  justify-items: start;
  text-align: left;
}

.comparison-tool-hero .breadcrumbs {
  justify-content: flex-start;
}

.comparison-tool-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px;
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(16, 24, 40, .08);
}

.comparison-tool-hero + .section,
.basket-compare-section,
.prices-section-up {
  padding-top: 28px;
}

.s77-hero .product-hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 22px;
  align-items: start;
}

.s77-hero .summary,
.s77-hero .summary-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.s77-hero .summary-card,
.s77-hero .meta {
  gap: 4px;
  padding: 12px;
}

.s77-hero .summary-card strong,
.s77-hero .meta strong {
  font-size: 18px;
}

.s77-hero .hub-panel {
  gap: 10px;
  padding: 18px;
  border-radius: 8px;
  box-shadow: none;
}

.s77-hero .hub-panel h2 {
  font-size: 22px;
}

.s77-tool-nav {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.price-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.prices-section-up .filters-grid {
  grid-template-columns: minmax(240px, 1.35fr) minmax(180px, .75fr) minmax(160px, .6fr);
}

.category-explorer-grid,
.rating-center-grid,
.methodology-grid {
  gap: 12px;
}

.category-explorer-card,
.rating-center-card {
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}

.category-card-head,
.rating-card-head {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
}

.category-card-head .entity-visual,
.rating-card-head .entity-visual {
  width: 76px;
  min-height: 64px;
}

.category-card-head .entity-visual .category-icon,
.category-card-head .entity-visual .topic-visual-icon,
.category-card-head .entity-visual .photo-visual-icon,
.rating-card-head .entity-visual .rating-icon,
.rating-card-head .entity-visual .topic-visual-icon,
.rating-card-head .entity-visual .photo-visual-icon {
  width: 72px;
  height: 60px;
}

.category-explorer-card p,
.rating-center-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-explorer-card .hub-card-actions,
.rating-center-card .hub-card-actions {
  margin-top: auto;
}

.s79-basket-tool {
  padding: 22px;
}

body:has(.home-hero) .hero-copy .hero-title {
  font-size: 48px;
}

@media (min-width: 1121px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .header-city-button:not(.header-city-button--mobile) {
    display: inline-flex;
  }
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto minmax(220px, 1fr) auto auto;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
    margin: 0;
  }

  .header-search {
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-areas:
      "logo spacer toggle"
      "search search search";
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 10px 0;
  }

  .logo {
    grid-area: logo;
  }

  .header-search {
    grid-area: search;
  }

  .nav-toggle {
    grid-area: toggle;
  }

  .header-city-button:not(.header-city-button--mobile) {
    display: none;
  }

  .product-hero-grid,
  .s77-hero .product-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .s77-hero .hub-panel {
    display: none;
  }

  .s77-hero .summary,
  .s77-hero .summary-meta {
    display: none;
  }

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

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

@media (max-width: 720px) {
  .container,
  .container-wide {
    width: calc(100% - 24px);
  }

  .logo img {
    height: 32px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .mobile-drawer-inner {
    padding-top: 12px;
  }

  .mobile-drawer .mobile-search {
    display: none;
  }

  .mobile-nav {
    grid-template-columns: 1fr;
  }

  .suggestions-panel {
    width: 100%;
    max-height: min(360px, calc(100vh - 150px));
  }

  .suggestion-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .suggestion-item span {
    max-width: 100%;
    text-align: left;
  }

  .section {
    padding: 30px 0;
  }

  .page,
  .product-hero,
  .comparison-tool-hero,
  .basket-compare-hero,
  .s77-hero {
    padding: 24px 0 22px;
  }

  .product-title,
  .comparison-tool-hero .product-title,
  .page .title {
    font-size: 34px;
    line-height: 1.1;
  }

  body:has(.home-hero) .hero-copy .hero-title {
    font-size: 38px;
  }

  .summary,
  .s77-hero .summary,
  .basket-summary,
  .s79-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-card {
    padding: 12px;
  }

  .summary-card strong,
  .meta strong {
    font-size: 19px;
  }

  .comparison-tool-card,
  .s79-basket-tool {
    padding: 14px;
  }

  .comparison-tool-card-head h2,
  .box-title {
    font-size: 24px;
  }

  .comparison-tool-hero + .section,
  .basket-compare-section,
  .prices-section-up {
    padding-top: 18px;
  }

  .price-page-actions,
  .price-page-actions .button {
    width: 100%;
  }

  .prices-section-up .filters-grid,
  .s77-card-grid,
  .basket-preset-grid,
  .category-explorer-grid,
  .rating-center-grid,
  .methodology-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .basket-controls .box-head {
    align-items: stretch;
  }

  .basket-controls .box-head .button {
    width: 100%;
  }

  .category-card-head,
  .rating-card-head {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .category-card-head .entity-visual,
  .rating-card-head .entity-visual,
  .category-card-head .entity-visual .category-icon,
  .category-card-head .entity-visual .topic-visual-icon,
  .category-card-head .entity-visual .photo-visual-icon,
  .rating-card-head .entity-visual .rating-icon,
  .rating-card-head .entity-visual .topic-visual-icon,
  .rating-card-head .entity-visual .photo-visual-icon {
    width: 60px;
  }
}

/* QA regression pass: thematic filters stay usable at every breakpoint. */
.filters-grid--hub-search {
  grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: end;
}

.internal-table-toolbar.rating-table-toolbar {
  grid-template-columns: minmax(240px, 1fr) minmax(170px, .65fr) minmax(170px, .65fr) auto;
  margin-bottom: 14px;
}

.hub-filter-empty {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .filters-grid--hub-search,
  .internal-table-toolbar.rating-table-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rating-table-toolbar .internal-table-count {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .filters-grid--hub-search,
  .internal-table-toolbar.rating-table-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .filters-grid--hub-search .button {
    width: 100%;
  }
}

/* Keep the comparison picker layout after legacy comparison styles. */
html { background: #fff; }

.internal-link-disclosure {
  border-top: 1px solid #dce6f3;
}

.internal-link-disclosure > summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 10px 0;
  color: #0b1f4d;
  list-style: none;
  cursor: pointer;
}

.internal-link-disclosure > summary::-webkit-details-marker { display: none; }
.internal-link-disclosure > summary > span { display: grid; gap: 2px; }
.internal-link-disclosure > summary small { color: #667085; font-size: 12px; }
.internal-link-disclosure > summary b { color: #2f80ed; font-size: 18px; transition: transform .18s ease; }
.internal-link-disclosure[open] > summary b { transform: rotate(180deg); }
.internal-link-disclosure .internal-link-content { padding: 8px 0 22px; }

.product-city-hero .summary-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
}

main[data-comparison-tool] .comparison-tool-form {
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  align-items: stretch;
}

main[data-comparison-tool] .comparison-picker--a { grid-column: 1; }
main[data-comparison-tool] .comparison-swap-slot { grid-column: 2; }
main[data-comparison-tool] .comparison-picker--b { grid-column: 3; }
main[data-comparison-tool] .comparison-context-fields,
main[data-comparison-tool] .comparison-tool-actions { grid-column: 1 / -1; }

@media (max-width: 720px) {
  .internal-page-hero .summary-meta,
  .product-city-hero .summary-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-city-hero .summary-meta .meta:nth-child(n + 5) {
    display: none;
  }

  main[data-comparison-tool] .comparison-tool-form {
    grid-template-columns: minmax(0, 1fr);
  }

  main[data-comparison-tool] .comparison-picker--a,
  main[data-comparison-tool] .comparison-swap-slot,
  main[data-comparison-tool] .comparison-picker--b,
  main[data-comparison-tool] .comparison-context-fields,
  main[data-comparison-tool] .comparison-tool-actions {
    grid-column: 1;
  }
}

/* Keep the visual-clarity layer above legacy sprint overrides. */
.nav > a.is-active,
.nav > .nav-current,
.nav .nav-current,
.header-more > summary.is-active {
  color: #0f5fc9;
  background: #eaf3ff;
  box-shadow: inset 0 -3px 0 #176fe3;
}

body:has(.home-hero) .home-hero {
  min-height: 560px;
  padding: 42px 0 38px;
  color: var(--text);
  background: #f3f6fa;
}

body:has(.home-hero) .home-hero-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
  gap: 0;
}

body:has(.home-hero) .hero-copy .hero-title {
  max-width: 740px;
  margin-bottom: 18px;
  color: #081f4d;
  font-size: 56px;
  line-height: 1.06;
}

body:has(.home-hero) .hero-copy .hero-subtitle {
  max-width: 700px;
  color: #526179;
  font-size: 18px;
  line-height: 1.58;
}

.product-hero,
.comparison-tool-hero,
.basket-compare-hero,
.s77-hero,
.city-dashboard-hero,
.city-explorer-hero {
  border-bottom: 1px solid #bcd0e8;
  background: #eaf3ff;
  box-shadow: none;
}

.product-title,
.comparison-tool-hero .product-title,
.page .title {
  color: #081f4d;
  font-size: 48px;
}

.comparison-tool-card,
.s79-basket-tool {
  border-color: #aebfd4;
  border-top: 4px solid #176fe3;
  box-shadow: 0 14px 34px rgba(8, 31, 77, .1);
}

@media (max-width: 900px) {
  body:has(.home-hero) .home-hero {
    min-height: auto;
    padding: 46px 0 42px;
    background: #f3f6fa;
  }

  body:has(.home-hero) .home-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body:has(.home-hero) .hero-copy .hero-title {
    font-size: 46px;
  }
}

@media (max-width: 720px) {
  body:has(.home-hero) .hero-copy .hero-title {
    font-size: 38px;
  }

  body:has(.home-hero) .hero-copy .hero-subtitle {
    font-size: 16px;
  }

  .product-title,
  .comparison-tool-hero .product-title,
  .page .title {
    font-size: 34px;
  }
}

/* QA task-first refinement: compact key pages and semantic search results. */
body:has(.home-hero) .home-hero {
  min-height: 0;
  padding: 28px 0 24px;
}

body:has(.home-hero) .hero-copy .hero-title {
  margin-bottom: 12px;
  font-size: 50px;
}

body:has(.home-hero) .hero-copy .hero-subtitle {
  font-size: 17px;
  line-height: 1.45;
}

.home-hero .search-wrap {
  margin-top: 20px;
}

.hero-quick-label {
  margin-top: 14px;
}

.hero-signal-row {
  margin-top: 18px;
  padding-top: 14px;
}

.home-deferred-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

.product-hero--compact {
  padding: 34px 0 30px;
}

.product-hero--compact .product-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
  gap: 24px;
}

.product-hero--compact .product-title {
  max-width: 820px;
  font-size: 44px;
}

.product-hero--compact .subtitle {
  max-width: 620px;
}

.product-hero--compact .summary-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
}

.product-hero--compact .meta {
  min-height: 74px;
  padding: 12px 14px;
}

.product-hero--compact .meta strong {
  font-size: 20px;
}

.product-hero--compact .product-hero-visual-panel,
.product-hero--compact .product-hero-visual-panel .product-visual {
  width: 100%;
  max-width: 230px;
  min-height: 220px;
}

.product-hero--compact .product-hero-visual-panel .product-visual__image {
  width: 200px;
  height: 150px;
  max-width: 200px;
  max-height: 150px;
}

.suggestion-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.suggestion-meta strong {
  color: #344054;
}

.suggestion-meta span {
  font-weight: 500;
}

.suggestion-item {
  grid-template-areas:
    "type type"
    "title subtitle";
  gap: 2px 10px;
}

.suggestion-type {
  grid-area: type;
  color: #176fe3;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.suggestion-item strong {
  grid-area: title;
}

.suggestion-item span {
  grid-area: subtitle;
}

.suggestion-empty--actions strong,
.suggestion-empty--actions span { display: block; }
.suggestion-empty--actions span { margin-top: 4px; color: #68778d; }
.suggestion-empty--actions div { display: flex; gap: 12px; margin-top: 10px; }
.suggestion-empty--actions a { color: #0f5fc9; font-weight: 700; }

@media (max-width: 720px) {
  body:has(.home-hero) .home-hero {
    min-height: auto;
    padding: 28px 0 26px;
  }

  .product-hero--compact .product-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-hero--compact .summary-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-hero--compact .summary-meta .meta:first-child {
    grid-column: 1 / -1;
  }

  .product-hero--compact .product-hero-visual-panel {
    display: none;
  }

  .suggestion-item {
    grid-template-areas:
      "type"
      "title"
      "subtitle";
  }
}
