:root {
  --blue: #496dbd;
  --blue-strong: #315bb1;
  --ink: #101828;
  --muted: #667085;
  --line: #d9e1f6;
  --surface: #ffffff;
  --soft: #eef3ff;
  --soft-2: #f6f8fc;
  --accent: #ff5a55;
  --shadow: 0 18px 50px rgba(30, 50, 90, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 48%, #ffffff 100%);
}

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 9px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(73, 109, 189, 0.14);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
}

.brand img {
  display: block;
  width: min(168px, 34vw);
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  justify-self: center;
  gap: 8px;
  color: #344054;
  font-size: 0.95rem;
  font-weight: 850;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 6px;
  transition: color 160ms ease, background 160ms ease;
}

.nav a::after {
  position: absolute;
  right: 13px;
  bottom: 6px;
  left: 13px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue-strong);
  background: rgba(238, 243, 255, 0.8);
  outline: 0;
}

.nav a:first-child,
.nav a:hover {
  color: var(--blue-strong);
}

.nav a:first-child::after,
.nav a:hover::after,
.nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.cart-button,
.filter,
.panel-head button,
.drawer-head button,
.ghost-button,
.submit-order {
  border: 0;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(73, 109, 189, 0.26);
  font-weight: 800;
}

.cart-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.cart-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
  align-items: start;
  gap: clamp(14px, 3vw, 44px);
  min-height: calc(100svh - 76px);
  padding: clamp(18px, 3vw, 34px) clamp(18px, 5vw, 64px) clamp(34px, 6vw, 72px);
  overflow: hidden;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-strong);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 5.6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h1 span:last-child {
  color: var(--blue-strong);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-text,
.checkout-copy p {
  max-width: 530px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

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

.hero-points {
  display: grid;
  gap: 14px;
  margin-top: 34px;
  max-width: 430px;
}

.hero-points div {
  position: relative;
  display: grid;
  gap: 3px;
  padding-left: 54px;
}

.hero-points div::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(73, 109, 189, 0.22);
  content: "✓";
  font-weight: 950;
}

.hero-points strong {
  font-size: 1rem;
}

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

.primary-link,
.secondary-link,
.submit-order,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-link,
.submit-order {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(73, 109, 189, 0.24);
}

.secondary-link,
.ghost-button {
  border: 1px solid var(--line);
  color: var(--blue-strong);
  background: #fff;
}

.hero-media {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: clamp(430px, 48vw, 640px);
}

.hero-media::before {
  position: absolute;
  inset: 8% -10% 2% 8%;
  z-index: -1;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(135deg, #dfe9ff 0%, #eef4ff 55%, #d6e2ff 100%);
  content: "";
}

.hero-media img {
  width: min(72vw, 920px);
  max-width: none;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 28px 34px rgba(30, 50, 90, 0.16));
  transform: translateX(-5%);
}

.section-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 64px) clamp(46px, 7vw, 86px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.section-bar div {
  padding: 20px;
  background: #fff;
}

.section-bar strong,
.section-bar span {
  display: block;
}

.section-bar span {
  margin-top: 4px;
  color: var(--muted);
}

.shop-tools,
.offers,
.checkout,
.contact {
  padding: 0 clamp(18px, 5vw, 64px);
}

.shop-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

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

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

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

.offers {
  margin-bottom: 28px;
}

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

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

.offer-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1fr);
  gap: 0;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(73, 109, 189, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(238, 243, 255, 0.86), rgba(255, 255, 255, 0.96)),
    #fff;
  box-shadow: 0 18px 44px rgba(30, 50, 90, 0.1);
}

.offer-card img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: contain;
  padding: 18px;
  background: #fff;
}

.offer-card.is-duo-offer {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1fr);
  background: linear-gradient(120deg, #fff 0%, #fff 46%, #f4f7ff 46%, #ffffff 100%);
}

.offer-card.is-duo-offer img {
  min-height: 440px;
  padding: 0;
  object-fit: cover;
}

.offer-copy {
  padding: 28px;
}

.offer-pill,
.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.offer-copy h3 {
  margin: 14px 0 8px;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.offer-copy p {
  max-width: 31ch;
  margin-bottom: 20px;
  color: var(--blue-strong);
  font-size: 1.08rem;
  font-weight: 850;
}

.offer-bottom {
  display: grid;
  grid-template-columns: auto minmax(170px, 1fr);
  gap: 14px;
  align-items: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(18px, 5vw, 64px) clamp(56px, 8vw, 96px);
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(73, 109, 189, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(30, 50, 90, 0.08);
}

.product-card.is-offer {
  border-color: rgba(255, 90, 85, 0.34);
  box-shadow: 0 16px 40px rgba(73, 109, 189, 0.12);
}

.product-image {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 14px;
  background: #fff;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  box-shadow: 0 10px 22px rgba(255, 90, 85, 0.22);
}

.product-info {
  padding: 16px;
}

.tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue-strong);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-info h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
  line-height: 1.25;
}

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

.product-buy {
  display: grid;
  grid-template-columns: minmax(78px, auto) 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 16px 16px;
}

.price-stack {
  display: grid;
  gap: 2px;
}

.old-price {
  color: #8a94a6;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.price {
  color: var(--blue-strong);
  font-size: 1.55rem;
  font-weight: 950;
}

.add-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.add-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.checkout {
  padding-top: clamp(48px, 8vw, 86px);
  padding-bottom: clamp(60px, 10vw, 110px);
  background: var(--soft-2);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 24px;
  align-items: start;
  padding-top: clamp(54px, 8vw, 92px);
  padding-bottom: clamp(60px, 9vw, 104px);
  background: #fff;
}

.contact-copy p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
  gap: 20px;
  margin-top: 26px;
}

.checkout-form,
.contact-form,
.order-panel,
.mini-cart {
  border: 1px solid rgba(73, 109, 189, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(30, 50, 90, 0.08);
}

.checkout-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: start;
  gap: 16px;
  padding: 22px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 800;
}

label.full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(73, 109, 189, 0.14);
}

.submit-order,
.ghost-button {
  width: 100%;
  text-align: center;
  line-height: 1.15;
}

.order-panel {
  align-self: start;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  max-height: 720px;
  padding: 20px;
}

.panel-head,
.drawer-head,
.drawer-total,
.totals div,
.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-head h3,
.drawer-head h2 {
  margin: 0;
}

.panel-head button,
.drawer-head button {
  min-height: 34px;
  border-radius: 8px;
  color: var(--blue-strong);
  background: var(--soft);
  font-weight: 900;
}

.panel-head button {
  padding: 0 12px;
}

.drawer-head button {
  width: 38px;
  font-size: 1.5rem;
}

.cart-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 54px;
  margin: 18px 0;
}

.order-panel .cart-list {
  max-height: 430px;
  overflow-y: auto;
  padding-right: 6px;
}

.empty-cart {
  display: grid;
  place-items: center;
  min-height: 74px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.cart-row {
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2fb;
}

.cart-product {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cart-product img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 5px;
  border: 1px solid #eef2fb;
  border-radius: 8px;
  background: #fff;
}

.cart-title {
  display: block;
  margin-bottom: 4px;
  font-weight: 900;
  line-height: 1.2;
}

.cart-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.qty {
  display: inline-grid;
  grid-template-columns: 34px 32px 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qty button {
  height: 34px;
  border: 0;
  background: #fff;
  color: var(--blue-strong);
  cursor: pointer;
  font-weight: 900;
}

.qty span {
  text-align: center;
  font-weight: 900;
}

.totals {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.totals div {
  color: var(--muted);
}

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

.totals .total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.18rem;
}

.shipping-note {
  margin: 16px 0 0;
  color: var(--blue-strong);
  font-weight: 800;
}

.mini-cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: min(420px, 100%);
  height: 100svh;
  padding: 22px;
  transform: translateX(105%);
  transition: transform 180ms ease;
}

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

.drawer-total {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 900;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  background: rgba(16, 24, 40, 0.42);
}

.backdrop.is-open {
  display: block;
}

@media (max-width: 1050px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .checkout-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    display: grid;
    min-height: auto;
  }

  .hero-media img {
    aspect-ratio: 1536 / 1024;
    max-width: 100%;
    transform: none;
    width: 100%;
  }

  .section-bar,
  .offer-grid,
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .offer-card {
    grid-template-columns: minmax(120px, 0.75fr) minmax(0, 1fr);
  }

  .offer-card.is-duo-offer {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  }

  .offer-card.is-duo-offer img {
    min-height: 360px;
  }

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

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

@media (max-width: 560px) {
  .brand img {
    width: 142px;
  }

  .hero-media,
  .section-bar,
  .offer-grid,
  .offer-card,
  .product-grid,
  .checkout-form,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .offer-card img {
    min-height: auto;
    aspect-ratio: 1.35;
  }

  .offer-card.is-duo-offer img {
    min-height: auto;
    aspect-ratio: 1;
  }

  .offer-copy {
    padding: 18px;
  }

  .offer-bottom {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3rem;
  }

  .checkout-form {
    padding: 16px;
  }

  .submit-order,
  .ghost-button {
    min-height: 50px;
    padding-inline: 12px;
    font-size: 0.92rem;
  }

  label.full {
    grid-column: auto;
  }
}
