:root {
  --blue: #004f9f;
  --blue-deep: #002d68;
  --blue-soft: #e8f2ff;
  --orange: #ff9700;
  --orange-deep: #df7600;
  --ink: #162033;
  --muted: #647086;
  --line: #dce4ef;
  --surface: #ffffff;
  --background: #f4f7fb;
  --shadow: 0 18px 45px rgba(13, 35, 69, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(5, 28, 62, 0.08);
}

.service-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px clamp(16px, 4vw, 56px);
  background: var(--blue-deep);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.service-strip p {
  margin: 0;
}

.service-strip a {
  color: #ffd28a;
}

.mainbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(16px, 4vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(180px, 22vw, 280px);
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}

.search {
  display: grid;
  grid-template-columns: 1fr 48px;
  border: 2px solid var(--orange);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 13px 16px;
  outline: 0;
}

.search button {
  display: grid;
  place-items: center;
  border: 0;
  background: var(--orange);
  color: #fff;
}

.search svg,
.catalog-link svg,
.cart-button svg,
.icon-button svg {
  width: 22px;
  height: 22px;
}

.catalog-link,
.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 800;
}

.catalog-link {
  padding: 0 16px;
  background: var(--blue);
  color: #fff;
}

.cart-button {
  position: relative;
  width: 52px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-deep);
}

.cart-button span {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
}

.nav-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 clamp(16px, 4vw, 56px) 13px;
  scrollbar-width: none;
}

.nav-row::-webkit-scrollbar {
  display: none;
}

.nav-row a {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-row a:hover {
  background: var(--blue-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  min-height: calc(100svh - 152px);
  padding: clamp(32px, 6vw, 76px) clamp(16px, 4vw, 56px);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 80% 15%, rgba(255, 151, 0, 0.18), transparent 34%),
    linear-gradient(135deg, #fff 0%, #eef6ff 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(2.55rem, 6.8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  color: #43506a;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-action {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 151, 0, 0.28);
}

.secondary-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-deep);
}

.hero-media {
  position: relative;
  min-width: 0;
}

.hero-media img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(0, 35, 84, 0.16);
}

.hero-badge strong {
  color: var(--blue-deep);
}

.hero-badge span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px clamp(16px, 4vw, 56px);
  background: #fff;
}

.trust-row article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust-row svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}

.trust-row h2,
.trust-row p {
  margin: 0;
}

.trust-row h2 {
  font-size: 1rem;
  color: var(--blue-deep);
}

.trust-row p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: clamp(42px, 6vw, 74px) clamp(16px, 4vw, 56px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head h2,
.split-section h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head a,
.result-count {
  margin: 0;
  color: var(--blue);
  font-weight: 900;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

.category {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.category span {
  display: block;
  color: var(--orange-deep);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category strong {
  display: block;
  margin-top: 10px;
  color: var(--blue-deep);
  line-height: 1.25;
}

.category:hover,
.category.active {
  border-color: var(--orange);
  box-shadow: 0 14px 30px rgba(0, 79, 159, 0.1);
  transform: translateY(-2px);
}

.marketplace {
  background: #fff;
}

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

.product-card {
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 39, 72, 0.07);
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  background: linear-gradient(135deg, var(--tone-a), var(--tone-b));
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
}

.product-visual svg {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-deep);
  stroke-width: 1.7;
}

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.store {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 1.02rem;
  line-height: 1.35;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.rating {
  color: var(--orange-deep);
  font-size: 0.84rem;
  font-weight: 900;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.product-actions a,
.product-actions button {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 900;
}

.product-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
}

.product-actions button {
  width: 46px;
  border: 1px solid var(--line);
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
  padding: clamp(44px, 7vw, 84px) clamp(16px, 4vw, 56px);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff;
}

.split-section .eyebrow,
.split-section h2 {
  color: #fff;
}

.split-section > div > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 15px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.steps span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

.steps h3,
.steps p {
  margin: 0;
}

.steps p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  background: #fff;
  box-shadow: -20px 0 48px rgba(9, 28, 61, 0.16);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-header h2 {
  margin: 0;
  color: var(--blue-deep);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue-deep);
}

.cart-items {
  display: grid;
  gap: 10px;
  overflow: auto;
}

.cart-item,
.empty-cart {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.full {
  width: 100%;
  margin-top: auto;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: rgba(7, 21, 43, 0);
  transition: background 220ms ease;
}

.overlay.open {
  pointer-events: auto;
  background: rgba(7, 21, 43, 0.42);
}

.footer {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr;
  gap: 28px;
  padding: 36px clamp(16px, 4vw, 56px);
  background: #071a38;
  color: #dfe8f5;
}

.footer p {
  max-width: 480px;
  color: #aebbd0;
  line-height: 1.6;
}

.footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.footer a,
.footer span {
  display: block;
  margin-top: 8px;
  color: #c2d0e5;
}

.footer .brand-logo {
  width: 220px;
  max-height: 72px;
  padding: 0;
}

@media (max-width: 1060px) {
  .mainbar {
    grid-template-columns: auto 1fr auto;
  }

  .catalog-link span {
    display: none;
  }

  .catalog-link {
    width: 52px;
    padding: 0;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    max-width: 760px;
  }

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

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

@media (max-width: 760px) {
  .service-strip {
    align-items: center;
    font-size: 0.76rem;
  }

  .mainbar {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .brand-logo {
    width: 172px;
    max-height: 54px;
  }

  .search {
    grid-column: 1 / -1;
    order: 2;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-badge {
    position: static;
    margin-top: 12px;
  }

  .trust-row,
  .product-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .category-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .category {
    flex: 0 0 210px;
  }

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

@media (max-width: 460px) {
  .brand-logo {
    width: 146px;
    max-height: 46px;
  }

  .catalog-link,
  .cart-button {
    width: 46px;
    min-height: 46px;
  }
}
