:root {
  --ink: #20343e;
  --muted: #6d7d83;
  --line: #dbe5e7;
  --surface: #f5f8f7;
  --white: #ffffff;
  --navy: #173f4d;
  --teal: #2f756f;
  --teal-dark: #205c59;
  --mint: #e3f1ed;
  --green: #84ad77;
  --yellow: #e9b84f;
  --orange: #d98255;
  --slate: #90a0a6;
  --shadow: 0 16px 40px rgba(23, 63, 77, 0.11);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(23, 63, 77, 0.96);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #f0c57a;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  margin-left: auto;
  gap: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--white);
}

.header-download {
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 28%, rgba(95, 165, 153, 0.36), transparent 27%),
    radial-gradient(circle at 92% 82%, rgba(240, 197, 122, 0.16), transparent 24%),
    var(--navy);
  color: var(--white);
}

.hero-layout {
  display: grid;
  min-height: 450px;
  align-items: center;
  gap: 72px;
  grid-template-columns: minmax(0, 1fr) 330px;
  padding: 72px 0 78px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c57a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 6vw, 86px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 span {
  color: #a4d1c8;
}

.hero-text {
  max-width: 710px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: #f0c57a;
  color: var(--navy);
}

.button-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.button-outline {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 27px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-panel-label {
  color: #f0c57a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin: 6px 0 0;
  color: var(--white);
  font-size: 94px;
  letter-spacing: -0.08em;
  line-height: 1;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.hero-panel a {
  color: #f0c57a;
  font-size: 14px;
  font-weight: 750;
}

.hero-panel a span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 160ms ease;
}

.hero-panel a:hover span {
  transform: translateX(4px);
}

.section {
  padding: 72px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.section-heading > p {
  max-width: 580px;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 14px;
}

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

.kpi-card {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 19px;
  background: var(--white);
}

.kpi-card.featured {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.kpi-card .kpi-number {
  display: block;
  margin-top: 20px;
  color: var(--navy);
  font-size: 43px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.kpi-card.featured .kpi-number {
  color: var(--white);
}

.kpi-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.kpi-card.featured p {
  color: rgba(255, 255, 255, 0.78);
}

.kpi-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kpi-card.featured small {
  color: #cde2dc;
}

.summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 22px;
  background: var(--white);
}

.panel-heading h3 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 21px;
}

.distribution-bar {
  display: flex;
  overflow: hidden;
  height: 23px;
  margin: 27px 0 22px;
  border-radius: 999px;
  background: var(--surface);
}

.distribution-segment {
  min-width: 4px;
  transition: filter 160ms ease;
}

.distribution-segment:hover {
  filter: brightness(0.9);
}

.legend-list {
  display: grid;
  gap: 11px;
  grid-template-columns: 1fr 1fr;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.legend-item strong {
  margin-left: auto;
  color: var(--ink);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.manager-table-wrap {
  overflow-x: auto;
}

.manager-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.manager-table th,
.manager-table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 7px;
  text-align: right;
}

.manager-table th:first-child,
.manager-table td:first-child {
  padding-left: 0;
  text-align: left;
}

.manager-table th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recommendations-section {
  background: var(--surface);
}

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

.recommendation-card {
  min-height: 222px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 18px;
  background: var(--white);
}

.priority-pill,
.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.priority-high {
  background: #f8dfd2;
  color: #9a4c28;
}

.priority-medium {
  background: #fff1c8;
  color: #8a6817;
}

.recommendation-card h3 {
  margin: 16px 0 9px;
  color: var(--navy);
  font-size: 17px;
}

.recommendation-card p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.recommendation-action {
  border-top: 1px solid var(--line);
  padding-top: 11px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 650;
}

.catalog-section {
  padding-bottom: 88px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.category-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.category-tab span {
  display: inline-block;
  min-width: 22px;
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}

.category-tab.active {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.category-tab.active span {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.filter-panel {
  display: grid;
  gap: 11px;
  grid-template-columns: minmax(190px, 1.6fr) repeat(4, minmax(150px, 1fr)) auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px;
  background: var(--surface);
}

.filter-panel label {
  display: grid;
  gap: 5px;
}

.filter-panel label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 117, 111, 0.12);
}

.reset-button {
  align-self: end;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--white);
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.catalog-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.catalog-toolbar strong {
  color: var(--navy);
  font-size: 20px;
}

.rating-key {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.rating-key span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rating-dot {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
}

.rating-1 {
  background: #fff1c8;
  color: #805e0d;
}

.rating-2 {
  background: #dbeaf5;
  color: #33627e;
}

.rating-3 {
  background: #dcebd6;
  color: #3d7037;
}

.rating-0 {
  background: #eef2f3;
  color: #9aa7ab;
}

.model-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.model-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  cursor: pointer;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.model-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.model-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
}

.model-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.model-card:hover .model-image {
  transform: scale(1.035);
}

.model-image-wrap .category-pill {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.pill-both {
  background: rgba(220, 235, 214, 0.92);
  color: #3d7037;
}

.pill-stores_only {
  background: rgba(252, 228, 214, 0.94);
  color: #914d2f;
}

.pill-base_only {
  background: rgba(255, 241, 200, 0.94);
  color: #805e0d;
}

.pill-nobody {
  background: rgba(238, 242, 243, 0.94);
  color: #65757a;
}

.model-body {
  padding: 12px;
}

.model-code-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.model-code {
  color: var(--navy);
  font-size: 15px;
  font-weight: 850;
}

.model-part {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.model-description {
  overflow: hidden;
  min-height: 36px;
  margin: 6px 0 12px;
  color: var(--muted);
  display: -webkit-box;
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.model-stats {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.model-stat {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.model-stat strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -0.03em;
}

.load-more {
  display: block;
  min-width: 230px;
  height: 47px;
  margin: 28px auto 0;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: var(--white);
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 800;
}

.catalog-empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 48px 20px;
  color: var(--muted);
  text-align: center;
}

.catalog-empty h3 {
  margin-bottom: 5px;
  color: var(--navy);
}

footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.model-dialog {
  width: min(980px, calc(100% - 32px));
  max-height: min(850px, calc(100vh - 40px));
  overflow: auto;
  border: 0;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 20px 70px rgba(13, 42, 52, 0.3);
}

.model-dialog::backdrop {
  background: rgba(17, 43, 51, 0.7);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  cursor: pointer;
  font-size: 26px;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(260px, 36%) 1fr;
}

.dialog-image {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  background: var(--surface);
}

.dialog-body {
  padding: 30px;
}

.dialog-body h2 {
  margin-top: 9px;
  font-family: inherit;
  font-size: 31px;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.dialog-description {
  color: var(--muted);
  font-size: 14px;
}

.dialog-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0;
}

.dialog-summary-item {
  border-radius: 10px;
  padding: 11px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dialog-summary-item strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 21px;
  letter-spacing: -0.04em;
}

.dialog-section {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}

.dialog-section:last-child {
  padding-bottom: 0;
}

.dialog-section h3 {
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 14px;
}

.dialog-section p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.manager-ratings {
  display: grid;
  gap: 8px 13px;
  grid-template-columns: 1fr 1fr;
}

.manager-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1200px) {
  .kpi-grid,
  .model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 780px) {
  .shell {
    width: min(100% - 28px, 720px);
  }

  .main-nav {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .header-download {
    margin-left: auto;
    padding: 8px 11px;
    font-size: 11px;
  }

  .brand small {
    display: none;
  }

  .hero-layout {
    display: block;
    min-height: 0;
    padding: 56px 0;
  }

  h1 {
    font-size: clamp(46px, 14vw, 72px);
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-panel {
    margin-top: 32px;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p,
  .catalog-heading .button {
    margin-top: 11px;
  }

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

  .summary-grid,
  .recommendation-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .legend-list {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    display: block;
    padding: 14px 0;
  }

  .rating-key {
    margin-top: 8px;
  }

  .dialog-layout {
    display: block;
  }

  .dialog-image {
    max-height: 370px;
  }

  .dialog-body {
    padding: 22px;
  }
}

@media (max-width: 460px) {
  .brand strong {
    font-size: 13px;
  }

  .kpi-card {
    min-height: 125px;
    padding: 15px;
  }

  .kpi-card .kpi-number {
    margin-top: 13px;
    font-size: 36px;
  }

  .model-grid {
    gap: 9px;
  }

  .model-body {
    padding: 9px;
  }

  .model-code {
    font-size: 13px;
  }

  .model-description {
    font-size: 11px;
  }

  .model-stat {
    font-size: 8px;
  }

  .model-stat strong {
    font-size: 13px;
  }

  .dialog-summary,
  .manager-ratings {
    grid-template-columns: 1fr;
  }
}
