:root {
  --brand: #0b6bff;
  --brand-strong: #004de6;
  --ink: #071a3a;
  --muted: #65738c;
  --line: #dce6f8;
  --surface: #ffffff;
  --soft: #f5f8ff;
  --amber: #ffb020;
  --green: #1fbf75;
  --shadow: 0 20px 60px rgba(7, 26, 58, 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;
  color: var(--ink);
  background: var(--soft);
}

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

button,
input {
  font: inherit;
}

.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.topbar__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  background: rgba(245, 248, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  width: 126px;
  display: block;
}

.brand-wordmark {
  display: inline-block;
  max-width: 100%;
  color: var(--brand);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.brand-wordmark > span {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.brand img,
.footer img {
  width: 100%;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #294064;
  font-weight: 700;
  font-size: 14px;
}

.nav__links a {
  padding: 10px 2px;
}

.nav__links a:hover {
  color: var(--brand);
}

.nav__actions {
  display: flex;
  gap: 10px;
}

.nav__toggle {
  display: none;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(7, 26, 58, 0.08);
}

.primary-btn,
.ghost-btn,
.light-btn,
.cart-btn {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn,
.cart-btn {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 107, 255, 0.24);
}

.primary-btn:hover,
.cart-btn:hover,
.light-btn:hover {
  transform: translateY(-1px);
}

.ghost-btn {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--line);
}

.light-btn {
  background: #fff;
  color: var(--brand-strong);
}

.hero {
  max-width: 1180px;
  min-height: calc(100vh - 102px);
  margin: 0 auto;
  padding: 50px 20px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 44px;
}

.hero__content h1 {
  margin: 10px 0 14px;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.86;
  letter-spacing: 0;
  color: var(--brand);
}

.hero__content p {
  max-width: 620px;
  margin: 0;
  color: #344764;
  font-size: 19px;
  line-height: 1.7;
}

.eyebrow {
  color: var(--brand-strong);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
}

.hero__search {
  margin-top: 28px;
  max-width: 620px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero__search input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: var(--ink);
}

.hero__stats {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__stats strong {
  padding: 9px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #203a61;
}

.hero__visual {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  min-height: 460px;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  display: block;
}

.hero__deal {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(7, 26, 58, 0.18);
}

.hero__deal span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero__deal strong {
  color: var(--brand);
  font-size: 25px;
}

.category-strip {
  max-width: 1180px;
  margin: -34px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  position: relative;
  z-index: 2;
}

.category-strip a {
  min-height: 64px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(7, 26, 58, 0.09);
}

.category-strip a:hover {
  color: var(--brand);
  border-color: rgba(11, 107, 255, 0.35);
}

.section,
.blueprint {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 20px 0;
}

.section__heading {
  margin-bottom: 24px;
}

.section__heading h2,
.campaigns h2,
.blueprint h2 {
  margin: 7px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

.section__heading--row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card,
.product-card,
.blueprint,
.footer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-card {
  padding: 24px;
}

.category-card span {
  color: var(--brand);
  font-weight: 900;
}

.category-card h3,
.product-card h3 {
  margin: 12px 0 8px;
  line-height: 1.2;
}

.category-card p,
.product-card p,
.campaigns p,
.blueprint p,
.footer p {
  color: var(--muted);
  line-height: 1.55;
}

.campaigns {
  max-width: 1180px;
  margin: 80px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.campaigns article {
  min-height: 260px;
  padding: 30px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #0b96ff 62%, #69c7ff);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.campaigns article:nth-child(2) {
  background: linear-gradient(135deg, var(--ink), #133f78 65%, #1fbf75);
}

.campaigns .eyebrow,
.campaigns p {
  color: rgba(255, 255, 255, 0.86);
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: #284262;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

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

.product-card img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
  background: var(--soft);
}

.product-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__body span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.product-card__body p {
  margin: 0 0 18px;
  font-size: 14px;
}

.product-card__stock {
  margin: 0 0 14px;
}

.stock-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(31, 191, 117, 0.12);
  color: #087245;
  font-weight: 900;
}

.stock-badge--empty {
  background: #ffe9e9;
  color: #b42318;
}

.product-card__meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.product-card__meta strong {
  font-size: 21px;
}

.cart-btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

.cart-btn:disabled {
  background: #b9c5d8;
  box-shadow: none;
  cursor: not-allowed;
}

.empty-state {
  display: none;
  margin: 20px 0 0;
  padding: 18px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.blueprint {
  margin-top: 80px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.blueprint ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  font-weight: 800;
  color: #294064;
}

.blueprint li {
  margin-bottom: 10px;
}

.palette {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.palette span {
  min-height: 76px;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: end;
  color: #fff;
  background: var(--swatch);
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(7, 26, 58, 0.08);
}

.palette span:nth-child(3) {
  color: var(--ink);
}

.footer {
  max-width: 1180px;
  margin: 80px auto 24px;
  padding: 26px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer > div {
  max-width: 380px;
}

.footer img {
  width: 110px;
}

.footer address {
  display: grid;
  gap: 7px;
  font-style: normal;
  color: var(--muted);
  text-align: right;
}

.footer address strong {
  color: var(--ink);
}

@media (max-width: 920px) {
  .nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links,
  .nav__actions {
    grid-column: 1 / -1;
    display: none;
  }

  .nav.open .nav__links,
  .nav.open .nav__actions {
    display: flex;
  }

  .nav.open .nav__links {
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
  }

  .nav.open .nav__actions {
    justify-content: stretch;
  }

  .nav.open .nav__actions button {
    flex: 1;
  }

  .hero,
  .campaigns,
  .blueprint {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

  .hero__visual,
  .hero__visual img {
    min-height: 340px;
  }

  .category-strip,
  .category-grid,
  .product-grid,
  .palette {
    grid-template-columns: repeat(2, 1fr);
  }

  .section__heading--row {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .topbar__inner {
    justify-content: flex-start;
    gap: 12px;
  }

  .brand {
    width: 104px;
  }

  .hero__search,
  .category-strip,
  .category-grid,
  .product-grid,
  .palette {
    grid-template-columns: 1fr;
  }

  .hero__content h1 {
    font-size: 56px;
  }

  .hero__content p {
    font-size: 16px;
  }

  .hero__stats {
    display: grid;
  }

  .blueprint {
    padding: 24px;
  }

  .blueprint ol {
    columns: 1;
  }

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

  .footer address {
    text-align: left;
  }
}
