:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #162032;
  --muted: #657187;
  --line: #dfe5ef;
  --accent: #0f8f8c;
  --accent-dark: #0a6664;
  --gold: #f0b429;
  --rose: #dc4668;
  --shadow: 0 18px 48px rgba(22, 32, 50, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(15, 143, 140, 0.16), transparent 28%),
    linear-gradient(135deg, #f7fafc 0%, #edf3f7 48%, #f8f4ed 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 251, 0.86);
  border-bottom: 1px solid rgba(223, 229, 239, 0.8);
  backdrop-filter: blur(16px);
}

.nav,
main,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links,
.hero-actions,
.card-top,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #244f7a);
}

.nav-links {
  gap: 20px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 40px;
  padding: 64px 0 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 16px 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.hero-text {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(15, 143, 140, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.hero-panel > div {
  min-height: 112px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(223, 229, 239, 0.88);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.metric {
  font-size: 34px;
  font-weight: 800;
}

.metric-label {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 46px 0;
}

.section-heading {
  margin-bottom: 22px;
}

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

.category-grid,
.promo-grid {
  display: grid;
  gap: 14px;
}

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

.category {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.category.active,
.category:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.search {
  min-width: min(340px, 100%);
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  text-transform: none;
}

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

.promo-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(223, 229, 239, 0.9);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(22, 32, 50, 0.08);
}

.promo-card[hidden] {
  display: none;
}

.card-top {
  justify-content: space-between;
  gap: 8px;
}

.tag,
.status {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.tag {
  color: var(--accent-dark);
  background: rgba(15, 143, 140, 0.12);
}

.status {
  color: #6a4510;
  background: rgba(240, 180, 41, 0.18);
}

.promo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.promo-card a {
  margin-top: auto;
  padding-top: 22px;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 38px 0 64px;
  border: 1px solid rgba(223, 229, 239, 0.9);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-band p:last-child {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  min-height: 76px;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

  .hero-copy,
  .hero-panel,
  .section-heading.split,
  .contact-band {
    grid-column: 1 / -1;
  }

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

  .section-heading.split,
  .contact-band {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav {
    min-height: 86px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  h1 {
    font-size: 42px;
  }

  .promo-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
