:root {
  --blue-900: #0d3b73;
  --blue-800: #124a8d;
  --blue-700: #1a5eaa;
  --blue-050: #f3f7fb;
  --ink: #1b2430;
  --muted: #66758a;
  --line: #dbe5ef;
  --line-strong: #c8d7e6;
  --card: #ffffff;
  --accent: #0f69c9;
  --accent-dark: #094f98;
  --success: #f1f8ff;
  --shadow: 0 16px 42px rgba(16, 43, 74, 0.08);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #edf4fb 0, #f8fbfe 340px, #f5f8fc 340px, #f5f8fc 100%);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.site-header {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: #fff;
  padding-bottom: 34px;
}

.top-strip,
.hero-shell,
.page-shell,
.site-footer {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
}

.top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

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

.brand small {
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
}

.main-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 700;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.92);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 24px;
  align-items: center;
  padding: 12px 0 0;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.eyebrow.dark {
  color: var(--accent);
}

.hero-copy h1,
.section-head h2,
.results-head h2,
.filters-head h3 {
  margin: 0;
  letter-spacing: -.04em;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(44px, 6vw, 72px);
  line-height: .94;
}

.hero-lead {
  max-width: 56ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.6;
}

.search-panel,
.filters-card,
.brand-section,
.results-head,
.listing-card {
  background: var(--card);
  box-shadow: var(--shadow);
}

.search-panel {
  border-radius: var(--radius-lg);
  padding: 18px;
  color: var(--ink);
}

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

.search-grid label,
.filters-stack label {
  display: grid;
  gap: 7px;
}

.search-grid label span,
.filters-stack label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-grid input,
.search-grid select,
.filters-stack input,
.filters-stack select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
}

.search-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-button {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.advanced-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.trust-row {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-row span {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--success);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.page-shell {
  padding: 22px 0 28px;
}

.brand-section {
  border-radius: 22px;
  padding: 20px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2,
.results-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.brand-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8fbff;
  font-weight: 800;
}

.brand-pill small {
  color: var(--muted);
  font-weight: 700;
}

.results-shell {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filters-card {
  position: sticky;
  top: 16px;
  border-radius: 22px;
  padding: 18px;
}

.filters-head {
  margin-bottom: 14px;
}

.filters-head h3 {
  font-size: 24px;
  line-height: 1.05;
}

.filters-stack {
  display: grid;
  gap: 12px;
}

.results-column {
  min-width: 0;
}

.results-head {
  border-radius: 22px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.results-status {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.results-meta {
  text-align: right;
}

.results-counters {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.results-list {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.listing-card {
  border-radius: 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.listing-media {
  min-height: 190px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(13, 59, 115, 0.95), rgba(25, 94, 170, 0.78)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 20%);
  position: relative;
  overflow: hidden;
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-media::before {
  content: "";
  position: absolute;
  inset: auto 14px 22px 14px;
  height: 58px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  border-radius: 18px 28px 14px 14px;
}

.listing-media::after {
  content: "ФОТО";
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: rgba(255,255,255,.9);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .12em;
}

.listing-media.has-photo::before,
.listing-media.has-photo::after {
  display: none;
}

.listing-body {
  min-width: 0;
}

.listing-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.listing-title {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1;
}

.listing-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.listing-badges {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef5fc;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.price {
  white-space: nowrap;
  font-size: 30px;
  font-weight: 800;
  color: var(--accent-dark);
}

.specs-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.spec {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fbff;
}

.spec span,
.source-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.spec strong,
.source-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.listing-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.source-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-link {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
}

.action-link.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

.empty-state {
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}

.site-footer {
  padding: 0 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1040px) {
  .hero-shell,
  .results-shell,
  .listing-card {
    grid-template-columns: 1fr;
  }

  .filters-card {
    position: static;
  }

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

@media (max-width: 760px) {
  .top-strip,
  .results-head,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .results-meta {
    text-align: left;
  }

  .search-grid {
    grid-template-columns: 1fr;
  }

  .listing-top,
  .listing-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .listing-title,
  .price {
    font-size: 24px;
  }
}
