:root {
  color-scheme: light;
  --page: #ffffff;
  --surface: #ffffff;
  --text: #202b40;
  --muted: #7a8aa3;
  --line: #dfe5ed;
  --line-soft: #edf1f6;
  --blue: #2f6df6;
  --blue-soft: #edf3ff;
  --blue-border: #a9c5fb;
  --orange: #dd7b00;
  --orange-soft: #fff6e6;
  --orange-border: #ffd38a;
  --green: #0d9a76;
  --green-soft: #e8fbf4;
  --green-border: #9fe4ce;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }

.shell {
  width: min(1700px, calc(100% - 104px));
  margin: 0 auto;
  padding: 46px 0 34px;
}

.hero {
  padding: 0 0 34px;
  text-align: center;
}

.eyebrow {
  color: #5c63e9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .24em;
}

h1 {
  margin: 15px 0 10px;
  color: #1d273a;
  font-size: clamp(38px, 4.6vw, 68px);
  font-weight: 850;
  letter-spacing: -.06em;
  line-height: 1.08;
}

#subtitle {
  margin: 0 auto;
  color: #8190a8;
  font-size: 17px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

#search {
  width: min(680px, 100%);
  padding: 13px 18px;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  outline: none;
  box-shadow: 0 2px 7px rgba(35, 54, 89, .03);
}

#search::placeholder { color: #9aa7b9; }
#search:focus { border-color: #80aafa; box-shadow: 0 0 0 4px rgba(47, 109, 246, .1); }

.status {
  color: #7d8ca4;
  font-size: 13px;
  white-space: nowrap;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 0 0 29px;
  border-bottom: 2px solid #e5e9ef;
}

.category {
  cursor: pointer;
  min-height: 50px;
  padding: 10px 28px;
  border: 2px solid var(--blue-border);
  border-radius: 17px;
  background: #fff;
  color: var(--blue);
  font-size: 17px;
  font-weight: 600;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.category:hover { transform: translateY(-1px); box-shadow: 0 5px 13px rgba(45, 97, 181, .1); }
.category.active { color: #fff; background: linear-gradient(135deg, #2f6df6, #55a8f5); border-color: #2f6df6; box-shadow: 0 8px 16px rgba(47, 109, 246, .22); }
.category.tone-orange { color: var(--orange); border-color: var(--orange-border); background: var(--orange-soft); }
.category.tone-orange.active { color: #fff; border-color: #f3a21c; background: linear-gradient(135deg, #ec8c09, #f6bc56); }
.category.tone-green { color: var(--green); border-color: var(--green-border); background: var(--green-soft); }
.category.tone-green.active { color: #fff; border-color: #13ad84; background: linear-gradient(135deg, #0c9f7c, #59d4ac); }

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  padding-top: 28px;
}

.model-card {
  position: relative;
  min-height: 214px;
  padding: 25px 27px 23px;
  overflow: hidden;
  border: 2px solid #dde3ea;
  border-radius: 20px;
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.model-card:hover { border-color: #aebbd0; box-shadow: 0 10px 26px rgba(38, 62, 100, .08); transform: translateY(-2px); }
.model-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.model-name { margin: 0; color: #202b40; font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.22; overflow-wrap: anywhere; }
.model-meta { display: none; }

.copy {
  display: inline-grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  cursor: pointer;
  border: 1px solid #c9d2df;
  border-radius: 12px;
  background: #f5f8fc;
  color: #52647d;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.copy:hover { border-color: #8eb0eb; background: #edf4ff; color: var(--blue); }
.copy svg { width: 21px; height: 21px; }

.badges {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.badge {
  padding: 4px 12px 5px;
  border-radius: 0 0 10px 0;
  font-size: 12px;
  font-weight: 800;
}

.prices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: #8391a7;
  font-size: 16px;
  line-height: 1.45;
}

.unit-chip {
  margin-right: 5px;
  padding: 4px 10px;
  border-radius: 9px;
  background: #edf1f6;
  color: #667994;
  font-size: 15px;
  white-space: nowrap;
}

.price-label { color: #8291a8; white-space: nowrap; }
.price-value { color: var(--blue); font-weight: 800; white-space: nowrap; }
.price-separator { color: #a2aec0; }
.empty, .loading { grid-column: 1 / -1; padding: 90px 20px; color: var(--muted); text-align: center; }
.footer { padding-top: 30px; color: var(--muted); font-size: 13px; text-align: center; }
.footer a { color: var(--blue); font-weight: 650; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 1180px) {
  .shell { width: min(100% - 48px, 1100px); }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 24px); padding-top: 28px; }
  .hero { padding-bottom: 25px; }
  h1 { font-size: clamp(34px, 11vw, 52px); }
  #subtitle { font-size: 14px; }
  .toolbar { align-items: stretch; flex-direction: column; margin-top: 25px; }
  .status { white-space: normal; }
  .categories { gap: 9px; }
  .category { min-height: 42px; padding: 8px 15px; border-radius: 13px; font-size: 14px; }
  .model-grid { grid-template-columns: 1fr; gap: 15px; padding-top: 18px; }
  .model-card { min-height: 0; padding: 22px 19px 20px; }
  .model-name { font-size: 20px; }
  .price-line { justify-content: flex-start; font-size: 14px; }
  .unit-chip { font-size: 13px; }
}


