:root {
  --ink: #0d223d;
  --muted: #647084;
  --line: #e6e9ee;
  --paper: #ffffff;
  --warm: #bd7a2d;
  --gold: #e3a85a;
  --nav-h: 72px;
  --page-x: 18px;
  --gap: 10px;
  --section-y: 24px;
  --radius-sm: 7px;
  --radius-md: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #f4f6f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(13, 34, 61, 0.05) 1px, transparent 1px) center /
      28px 28px,
    #f4f6f8;
}

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

button,
input {
  font: inherit;
}

img {
  display: block;
  width: 100%;
}

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

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0 calc(var(--nav-h) + env(safe-area-inset-bottom) + 18px);
  background: var(--paper);
  box-shadow: 0 0 36px rgba(21, 37, 59, 0.08);
}

.hero {
  position: relative;
  min-height: 520px;
  padding: calc(env(safe-area-inset-top) + 22px) var(--page-x) 24px;
  overflow: hidden;
  color: white;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(180deg, transparent 0 44%, #061322 78%),
    url("./assets/hero-port.png") center top / 100% auto no-repeat,
    #061322;
  filter: saturate(1.07) contrast(1.02);
  transform: scale(1.03);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 14, 26, 0.22), rgba(5, 14, 26, 0.1) 36%, rgba(5, 14, 26, 0.72)),
    linear-gradient(90deg, rgba(7, 20, 35, 0.88), rgba(7, 20, 35, 0.44) 58%, rgba(7, 20, 35, 0.18));
}

.hero__top,
.section__title,
.tabbar {
  display: flex;
  align-items: center;
}

.hero__top {
  justify-content: space-between;
  gap: 16px;
}

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

.brand svg {
  width: 35px;
  height: 35px;
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 3px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.7px;
  opacity: 0.75;
}

.chat-button,
.product-card button {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.chat-button {
  width: 40px;
  height: 40px;
}

.chat-button svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.9;
}

.chat-button i {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1px solid #dce2ea;
  border-radius: 999px;
  background: #f6f8fb;
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(13, 34, 61, 0.07);
}

.search svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search input::placeholder {
  color: #66758a;
}

.search-panel {
  padding: 14px var(--page-x) 0;
  background: var(--paper);
}

.hero__copy {
  margin-top: 132px;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 370px;
  font-size: clamp(38px, 10.8vw, 47px);
  line-height: 0.96;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 34px;
}

.steps article {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 2px;
  text-align: center;
}

.steps article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.steps svg {
  width: 27px;
  height: 27px;
}

.steps span {
  max-width: 70px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 148px;
  height: 48px;
  margin-top: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f1bf75, #c47b2e);
  color: white;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 18px 32px rgba(8, 15, 28, 0.24);
}

.cta span {
  font-size: 25px;
  line-height: 1;
}

.section {
  padding: var(--section-y) var(--page-x) 0;
}

.section__title {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section__title h2,
.gifts__intro h2 {
  font-size: 28px;
  line-height: 1.03;
}

.section__title a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.section__title span {
  font-size: 25px;
  line-height: 0;
}

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

.image-card {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #121820;
  color: white;
  box-shadow: 0 10px 22px rgba(12, 27, 46, 0.1);
}

.image-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 48%, rgba(6, 15, 28, 0.42));
}

.image-card img {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.image-card b {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 1;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  color: white;
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  white-space: normal;
}

.product-card b {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.image-card--gift b {
  position: absolute;
  right: 12px;
  bottom: 13px;
  left: 12px;
  z-index: 1;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  text-align: center;
  font-size: 15px;
  white-space: normal;
}

.image-card__label {
  position: absolute;
  right: 12px;
  bottom: 11px;
  left: 12px;
  z-index: 1;
  font-size: 16px;
  line-height: 1;
}

.promo-stack {
  display: grid;
  gap: 14px;
  padding: 20px var(--page-x) 0;
}

.promo {
  position: relative;
  min-height: 0;
  aspect-ratio: 788 / 164;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #eef2f6;
}

.promo img {
  position: static;
  height: 100%;
  object-fit: cover;
}

.promo div {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.promo h2 {
  font-size: 25px;
  line-height: 1.05;
}

.promo p,
.gifts__intro p {
  margin: 12px 0 0;
  color: #253347;
  font-size: 13px;
  line-height: 1.45;
}

.promo a {
  display: inline-flex;
  gap: 8px;
  margin-top: 12px;
  color: var(--warm);
  font-size: 11px;
  font-weight: 900;
}

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

.gifts__intro strong {
  display: block;
  margin-top: 12px;
  color: var(--warm);
  font-size: 13px;
}

.image-card--gift {
  min-height: 112px;
}

.picks {
  padding-top: 28px;
}

.product-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  padding-bottom: 8px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 12px 28px rgba(19, 40, 66, 0.09);
}

.product-card img {
  height: 112px;
  object-fit: cover;
}

.product-card button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 32px;
  height: 32px;
  color: white;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.36));
}

.product-card button svg {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}

.product-card div {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 12px;
}

.product-card h3 {
  min-height: 42px;
  margin: 0;
  color: #16253b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.28;
}

.product-card strong {
  color: var(--ink);
  font-size: 14px;
}

.product-card span {
  justify-self: end;
  padding: 4px 8px;
  border-radius: 4px;
  background: #eef2f7;
  color: #516176;
  font-size: 10px;
  font-weight: 800;
}

.tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  justify-content: space-around;
  width: min(100%, 430px);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  margin: 0 auto;
  padding: 8px 8px env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.tabbar a {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 54px;
  color: #516176;
  font-size: 10px;
  font-weight: 700;
}

.tabbar svg {
  width: 23px;
  height: 23px;
}

.tabbar .is-active {
  color: var(--ink);
}

.tabbar .is-active svg {
  fill: currentColor;
  stroke-width: 0;
}

@media (max-width: 360px) {
  :root {
    --page-x: 14px;
    --gap: 8px;
  }

  .hero {
    min-height: 520px;
  }

  .brand strong {
    font-size: 16px;
  }

  h1 {
    font-size: 40px;
  }

  .steps {
    gap: 4px;
  }

  .steps span {
    font-size: 9px;
  }

  .section__title h2,
  .gifts__intro h2 {
    font-size: 26px;
  }

  .section__title a {
    font-size: 12px;
  }

  .product-card img {
    height: 104px;
  }

  .product-card div {
    min-height: 124px;
    padding: 10px;
  }

  .product-card h3 {
    font-size: 12px;
  }

  .product-card strong {
    font-size: 13px;
  }

  .product-card span {
    font-size: 9px;
  }
}

@media (min-width: 431px) {
  body {
    padding: 24px 0;
  }

  .app-shell {
    border-radius: 28px;
    overflow: hidden;
  }

  .tabbar {
    right: 50%;
    left: auto;
    transform: translateX(50%);
    border-radius: 0 0 28px 28px;
  }
}
