:root {
  --bg: #f6f8fb;
  --text: #102033;
  --muted: #62748a;
  --card: #ffffff;
  --line: #dfe7f2;
  --primary: #ff6b35;
  --primary-dark: #d94c1f;
  --blue: #103a5f;
  --blue-soft: #e8f2ff;
  --green: #0f9f6e;
  --shadow: 0 20px 60px rgba(16, 32, 51, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #ffb000);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.35);
}

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

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.top-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.top-nav a:hover {
  color: var(--primary-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(48px, 8vw, 100px) clamp(18px, 4vw, 64px) 48px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 185, 80, 0.35), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(45, 132, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #edf6ff 55%, #fff4e9 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn.primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 16px 36px rgba(255, 107, 53, 0.35);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.secondary {
  color: var(--blue);
  background: #fff;
  border-color: var(--line);
}

.affiliate-note {
  max-width: 760px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 28px;
  border-radius: 34px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(16, 32, 51, 0.1), rgba(16, 32, 51, 0.78)),
    linear-gradient(135deg, #2463eb, #16a085 48%, #f6ad2f);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card h2 {
  margin-top: 110px;
  margin-bottom: 10px;
  font-size: 2.1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tag.hot {
  color: #532400;
  background: #ffd166;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 16px;
  font-size: 1.25rem;
  font-weight: 900;
}

.price-row strong {
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.18);
}

.stats,
.section {
  padding-right: clamp(18px, 4vw, 64px);
  padding-left: clamp(18px, 4vw, 64px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.stats article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.stats span {
  color: var(--muted);
}

.section {
  padding-top: 58px;
  padding-bottom: 58px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(16, 32, 51, 0.06);
}

.filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.filters input,
.filters select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--text);
  background: var(--bg);
  font: inherit;
}

.search-label {
  position: relative;
  z-index: 10;
}

.search-box {
  position: relative;
}

.search-box input {
  padding-right: 44px;
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: none;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
}

.search-clear.is-visible {
  display: grid;
  place-items: center;
}

.suggestions-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 30;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(16, 32, 51, 0.18);
}

.suggestions-title {
  padding: 12px 14px;
  color: var(--muted);
  background: var(--bg);
  font-size: 0.78rem;
  font-weight: 900;
}

.suggestion-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.suggestion-item:hover,
.suggestion-item:focus-visible {
  background: var(--blue-soft);
  outline: none;
}

.suggestion-item span {
  font-weight: 900;
}

.suggestion-item small {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.quick-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.quick-filters strong {
  color: var(--blue);
  font-size: 0.9rem;
}

.quick-filter-list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-chip,
.small-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
  padding: 0 12px;
}

.quick-chip:hover,
.small-action:hover {
  border-color: rgba(255, 107, 53, 0.45);
  color: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.08);
}

.quick-chip span {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 0.72rem;
}

.active-search-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 4px 0 14px;
  color: var(--muted);
  font-weight: 800;
}

.active-search-summary span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.82rem;
}

.result-info {
  margin: 16px 0 20px;
  color: var(--muted);
  font-weight: 800;
}

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

.offer-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 14px 42px rgba(16, 32, 51, 0.08);
}

.offer-image {
  display: flex;
  min-height: 168px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0f3b63, #178f8f 50%, #ff914d);
}

.offer-image strong {
  font-size: 1.25rem;
}

.offer-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.offer-body h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.offer-meta span {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.offer-price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.offer-price small {
  display: block;
  color: var(--muted);
}

.offer-price strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.45rem;
}

.discount-badge {
  border-radius: 16px;
  padding: 9px 12px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.partner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.partner-row a {
  color: var(--primary-dark);
  font-weight: 900;
}

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

.topic-grid a {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.topic-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(16, 32, 51, 0.1);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps article {
  padding: 26px;
  border-radius: 28px;
  color: #fff;
  background: var(--blue);
}

.steps span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  font-weight: 900;
}

.steps p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer a {
  color: var(--primary-dark);
  font-weight: 900;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

@media (max-width: 980px) {
  .hero,
  .filters,
  .offers-grid,
  .stats,
  .topic-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content,
  .search-label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav,
  .quick-filters {
    flex-wrap: wrap;
  }

  .hero,
  .filters,
  .offers-grid,
  .stats,
  .topic-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-card h2 {
    margin-top: 80px;
  }

  .suggestions-panel {
    position: static;
    margin-top: 8px;
  }

  .partner-row,
  .offer-price {
    align-items: flex-start;
    flex-direction: column;
  }
}
