:root {
  --bg: #ffffff;
  --ink: #111827;
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --amber: #f59e0b;
  --muted: #f3f4f6;
  --line: #e5e7eb;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
p,
ul,
ol {
  margin: 0;
}

h1,
h2 {
  letter-spacing: -0.02em;
  line-height: 1.35;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 4.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.kicker {
  margin-bottom: 10px;
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.45;
}

.lead {
  margin-top: 16px;
  max-width: 40rem;
  font-size: 1.05rem;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}

.top__row,
.foot__row,
.cart__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top__row {
  min-height: 72px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
}

.nav {
  display: none;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: var(--blue-deep);
}

.cart-btn,
.btn,
.chip,
.icon-btn,
.buy {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius);
}

.cart-btn,
.btn,
.chip,
.buy {
  min-height: 44px;
}

.cart-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--muted);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 600;
}

.cart-btn:hover,
.icon-btn:hover,
.chip:hover,
.btn--ghost:hover {
  background: #e5e7eb;
}

.cart-btn__count {
  min-width: 1.5rem;
  padding: 0 6px;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-weight: 600;
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.btn:hover {
  transform: scale(1.04);
}

.btn:focus-visible,
.chip:focus-visible,
.cart-btn:focus-visible,
.icon-btn:focus-visible,
.buy:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

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

.btn--ghost {
  background: var(--muted);
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  padding: 56px 0 64px;
}

.hero .kicker,
.hero a {
  color: #fff;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero .btn--primary {
  background: #fff;
  color: var(--blue-deep);
}

.hero .btn--primary:hover {
  background: #eff6ff;
}

.hero .btn--ghost {
  background: transparent;
  color: #fff;
  border: 4px solid #fff;
}

.hero .btn--ghost:hover {
  background: #fff;
  color: var(--blue-deep);
}

.hero__shape {
  position: absolute;
  background: #60a5fa;
  opacity: 0.28;
}

.hero__shape--circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -40px;
  top: -50px;
}

.hero__shape--square {
  width: 160px;
  height: 160px;
  right: 90px;
  bottom: -50px;
  transform: rotate(18deg);
}

.poster {
  background: #2563eb;
  color: #fff;
  padding: 28px;
  border-radius: var(--radius);
}

.poster__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.45;
}

.poster__steps {
  margin: 16px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.poster__note {
  margin-top: 20px;
  font-weight: 600;
}

.band {
  padding: 64px 0;
}

.band__head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip {
  padding: 8px 16px;
  background: var(--muted);
  color: var(--ink);
  font-weight: 600;
}

.chip.is-on {
  background: var(--ink);
  color: #fff;
}

.grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
}

.card {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--muted);
  border-radius: var(--radius);
  transition: transform 0.2s, background-color 0.2s;
}

.card:hover {
  transform: scale(1.02);
  background: #e5e7eb;
}

.card__swatch {
  height: 120px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
}

.card__swatch--bep {
  background: var(--blue);
}

.card__swatch--nha {
  background: var(--amber);
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

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

.price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.buy {
  background: var(--blue);
  color: #fff;
  padding: 8px 14px;
  font-weight: 600;
}

.buy:hover {
  background: var(--blue-deep);
}

.facts {
  background: var(--ink);
  color: #fff;
  padding: 48px 0;
}

.facts__grid {
  display: grid;
  gap: 16px;
}

.fact {
  background: #1f2937;
  padding: 24px;
  border-radius: var(--radius);
}

.fact--amber {
  background: var(--amber);
  color: var(--ink);
}

.fact__num {
  margin-bottom: 8px;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
}

.order {
  padding: 64px 0;
  background: var(--muted);
}

.order__grid,
.done__box {
  display: grid;
  gap: 28px;
}

.checks {
  margin: 22px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.form,
.done__box,
.cart__panel {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 2px solid transparent;
  background: var(--muted);
  color: var(--ink);
  border-radius: 6px;
  padding: 12px 14px;
}

input:focus,
textarea:focus {
  background: #fff;
  border-color: var(--blue);
  outline: none;
}

.field-error,
.form__status {
  color: #9a3412;
  background: #ffedd5;
  padding: 10px 12px;
  border-radius: 6px;
}

.form__bag {
  background: var(--muted);
  padding: 14px;
  border-radius: 6px;
}

.form__bag ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.form__total,
.cart__sum {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
}

.form__total strong,
.cart__sum strong,
.price {
  font-variant-numeric: tabular-nums;
}

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

.done {
  padding: 64px 0;
}

.foot {
  background: var(--ink);
  color: #fff;
  padding: 28px 0;
}

.foot a {
  color: #fff;
}

.cart {
  position: fixed;
  inset: 0;
  background: rgb(17 24 39 / 0.45);
  z-index: 30;
  display: none;
  justify-items: end;
}

.cart.is-open {
  display: grid;
}

.cart__panel {
  width: min(420px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 16px;
  border-radius: 0;
}

.cart__list {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--muted);
}

.qty {
  display: flex;
  gap: 8px;
  align-items: center;
}

.qty button {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--muted);
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .hero__grid,
  .order__grid,
  .facts__grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

  .facts__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

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

@media (min-width: 980px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    padding: 80px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .card,
  .buy {
    transition: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}
