/* YVI App — readable web layout (mobile + desktop) */
:root {
  --ink: #0c1611;
  --cream: #f4f1ea;
  --emerald: #1e5c3a;
  --emerald-bright: #3d9b65;
  --gold: #c4a35a;
  --gold-soft: #e8d5a3;
  --line: rgba(244, 241, 234, 0.12);
  --surface: rgba(250, 248, 244, 0.055);
  --surface-2: rgba(250, 248, 244, 0.09);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --pad: clamp(14px, 3vw, 28px);
  --max: 1080px;
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  background: #070e0a;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(90% 55% at 0% 0%, rgba(61, 155, 101, 0.16), transparent 55%),
    radial-gradient(70% 45% at 100% 0%, rgba(196, 163, 90, 0.1), transparent 48%),
    #070e0a;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* —— shell: FULL WIDTH web, not a phone sticker —— */
#app {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  position: relative;
  isolation: isolate;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 20px);
  background: transparent;
  box-shadow: none;
}

/* —— screens: only one visible —— */
.screen {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
  position: relative;
  width: 100%;
  min-height: 0;
  opacity: 0;
}

.screen[hidden] {
  display: none !important;
}

.screen.is-active,
.screen.is-active[hidden] {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  animation: rise 0.3s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— inner width constrain for content blocks —— */
.shell {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* —— hero —— */
.hero {
  position: relative;
  width: 100%;
  min-height: min(48vh, 380px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  margin-bottom: 8px;
  /* no absolute brand links over the photo */
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* product photo without big “Happy Birthday” lettering */
  background: url('../images/chernichny.jpg') center 40% / cover no-repeat;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(7, 14, 10, 0.92) 0%, rgba(7, 14, 10, 0.78) 48%, rgba(7, 14, 10, 0.55) 100%),
    linear-gradient(180deg, rgba(7, 14, 10, 0.45) 0%, rgba(7, 14, 10, 0.15) 45%, rgba(7, 14, 10, 0.95) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 40px var(--pad) 36px;
}

.hero__content > * {
  max-width: 32rem;
}

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 8px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.02;
  margin-bottom: 10px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.hero__content > p:not(.hero__eyebrow) {
  opacity: 0.94;
  font-size: 0.98rem;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

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

/* —— buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.92rem;
  transition: transform 0.15s ease, filter 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, #4aaf72, var(--emerald));
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 92, 58, 0.4);
}

.btn--ghost {
  border: 1px solid rgba(243, 240, 232, 0.35);
  color: var(--cream);
  background: rgba(8, 16, 12, 0.35);
  backdrop-filter: blur(6px);
}

.btn--gold {
  background: linear-gradient(135deg, #ecd7a0, var(--gold));
  color: #1a1408;
  box-shadow: 0 8px 22px rgba(196, 163, 90, 0.25);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* —— content sections —— */
.section {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 10px var(--pad) 22px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 14px;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 500;
}

.section__head span {
  font-size: 0.68rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.chip-row {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 4px var(--pad) 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.chip {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.84rem;
  background: var(--surface);
}

.chip:hover {
  border-color: rgba(61, 155, 101, 0.45);
  background: rgba(61, 155, 101, 0.12);
}

/* —— gifts: mobile rail / desktop grid —— */
.gift-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 78%);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gift-rail--stack {
  grid-auto-flow: row;
  grid-auto-columns: unset;
  grid-template-columns: 1fr;
  overflow: visible;
  scroll-snap-type: none;
}

.gift-card {
  scroll-snap-align: start;
  border-radius: var(--radius);
  padding: 18px 16px 14px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s;
}

.gift-card:hover {
  border-color: rgba(232, 213, 163, 0.35);
}

.gift-card:active {
  transform: scale(0.99);
}

.gift-card::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  right: -28px;
  top: -36px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  pointer-events: none;
}

.gift-card[data-tone='rose'] {
  background: linear-gradient(155deg, #5a3040, #2c1822 55%, #171015);
}
.gift-card[data-tone='gold'] {
  background: linear-gradient(155deg, #4a3d22, #241e12 55%, #14110c);
}
.gift-card[data-tone='crimson'] {
  background: linear-gradient(155deg, #5a2834, #24141a 55%, #130e10);
}
.gift-card[data-tone='moss'] {
  background: linear-gradient(155deg, #285040, #14241c 55%, #0c1410);
}
.gift-card[data-tone='caramel'] {
  background: linear-gradient(155deg, #4a3420, #241a12 55%, #120f0c);
}
.gift-card[data-tone='emerald'] {
  background: linear-gradient(155deg, #236348, #123024 55%, #0a1812);
}

.gift-card__tag {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.gift-card__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.gift-card__blurb {
  font-size: 0.9rem;
  opacity: 0.86;
  flex: 1;
  position: relative;
  z-index: 1;
}

.gift-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 1;
}

.gift-card__price {
  font-weight: 700;
  font-size: 1.08rem;
}

.gift-card__florist {
  font-size: 0.7rem;
  opacity: 0.72;
  white-space: nowrap;
}

/* —— product grid —— */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: border-color 0.15s, background 0.15s;
  overflow: hidden;
  position: relative;
}

.product:hover {
  border-color: rgba(196, 163, 90, 0.35);
  background: var(--surface-2);
}

.product__visual {
  width: 100%;
  aspect-ratio: 1.1;
  border-radius: 12px;
  margin-bottom: 10px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.25);
  display: block;
}

.product__swatch {
  width: 100%;
  aspect-ratio: 1.3;
  border-radius: 12px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #3a2a18, #1a140e);
}

.product__swatch span {
  position: absolute;
  inset: 18% 22% 12%;
  border-radius: 999px 999px 14px 14px;
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.25), 0 8px 18px rgba(0, 0, 0, 0.25);
}

.product[data-tone='caramel'] .product__swatch {
  background: linear-gradient(150deg, #5a4022, #271a0e);
}
.product[data-tone='caramel'] .product__swatch span {
  background: linear-gradient(180deg, #e0b46a, #a8732e 55%, #7a4f1c);
}
.product[data-tone='chocolate'] .product__swatch {
  background: linear-gradient(150deg, #3a2418, #140e0a);
}
.product[data-tone='chocolate'] .product__swatch span {
  background: linear-gradient(180deg, #8a5a3a, #4a2a18 55%, #2a160e);
}
.product[data-tone='cream'] .product__swatch {
  background: linear-gradient(150deg, #4a4030, #1c1810);
}
.product[data-tone='cream'] .product__swatch span {
  background: linear-gradient(180deg, #f0e0b8, #d4b878 55%, #a88848);
}
.product[data-tone='pistachio'] .product__swatch {
  background: linear-gradient(150deg, #2d4a32, #142018);
}
.product[data-tone='pistachio'] .product__swatch span {
  background: linear-gradient(180deg, #b9d49a, #6f9a5a 55%, #3f6a3c);
}
.product[data-tone='berry'] .product__swatch {
  background: linear-gradient(150deg, #4a2840, #1a1018);
}
.product[data-tone='berry'] .product__swatch span {
  background: linear-gradient(180deg, #c97a9a, #8a3a5c 55%, #582038);
}
.product[data-tone='dragee'] .product__swatch {
  background: linear-gradient(150deg, #4a3828, #1c1410);
}
.product[data-tone='dragee'] .product__swatch span {
  background:
    radial-gradient(circle at 30% 30%, #f0d48a 0 18%, transparent 19%),
    radial-gradient(circle at 70% 40%, #e8a070 0 16%, transparent 17%),
    radial-gradient(circle at 45% 70%, #c9a06a 0 20%, transparent 21%),
    linear-gradient(180deg, #c49a5a, #8a5a28 70%);
  border-radius: 50%;
  inset: 22% 24% 18%;
}

.product__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(10, 16, 12, 0.72);
  border: 1px solid rgba(212, 180, 108, 0.35);
  color: var(--gold-soft);
}

.product__name {
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 3px;
  line-height: 1.25;
}

.product__meta {
  font-size: 0.78rem;
  opacity: 0.58;
  margin-bottom: 8px;
}

.product__price {
  margin-top: auto;
  font-weight: 700;
  color: var(--gold-soft);
  font-size: 1rem;
}

/* —— topbar —— */
.topbar {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--pad) 8px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(7, 14, 10, 0.96) 55%, rgba(7, 14, 10, 0.75) 85%, transparent);
  backdrop-filter: blur(10px);
}

.topbar h1 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  flex: 1;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}

/* —— detail —— */
.detail {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 8px var(--pad) 28px;
}

.detail__panel {
  border-radius: 20px;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.detail__media {
  height: 140px;
  border-radius: 14px;
  margin: 0 0 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(61, 155, 101, 0.35), rgba(196, 163, 90, 0.2));
}

.detail__media--gift-date {
  background: linear-gradient(135deg, #5a3040, #241820 60%, #1a4a32);
}
.detail__media--gift-birthday {
  background: linear-gradient(135deg, #4a3d22, #241e12 55%, #2a1840);
}
.detail__media--gift-love {
  background: linear-gradient(135deg, #5a2834, #1a4a32);
}
.detail__media--gift-thanks {
  background: linear-gradient(135deg, #285040, #1a2830);
}
.detail__media--gift-jars {
  background: linear-gradient(135deg, #4a3420, #2a4a30);
}
.detail__media--gift-flowers-cake {
  background:
    linear-gradient(180deg, rgba(10, 20, 16, 0.15), rgba(10, 20, 16, 0.55)),
    url('../images/chernichny.jpg') center / cover;
}
.detail__media--jar {
  background: linear-gradient(135deg, #3a2a18, #1e5c3a 80%);
}
.detail__media--dragee {
  background: linear-gradient(135deg, #4a3420 0%, #2a2018 45%, #1a4a32 100%);
}
.detail__media--cake {
  background:
    linear-gradient(180deg, transparent, rgba(10, 20, 16, 0.4)),
    url('../images/medovik.jpg') center / cover;
}

.detail__media::after {
  content: 'YVI';
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  opacity: 0.55;
}

.detail__tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 8px;
}

.detail h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 8px;
}

.detail__price {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gold-soft);
}

.detail__desc {
  opacity: 0.88;
  margin-bottom: 16px;
}

.detail__list {
  list-style: none;
  margin-bottom: 16px;
}

.detail__list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.94rem;
  display: flex;
  gap: 10px;
}

.detail__list li::before {
  content: '✓';
  color: var(--emerald-bright);
  font-weight: 700;
}

.qty {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.qty button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
}

.qty span {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
}

/* —— cart / form —— */
.cart-empty {
  text-align: center;
  padding: 48px 16px;
  opacity: 0.7;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
}

.cart-item__name {
  font-weight: 650;
}

.cart-item__meta {
  font-size: 0.82rem;
  opacity: 0.6;
  grid-column: 1;
}

.cart-item__price {
  font-weight: 700;
  color: var(--gold-soft);
  grid-column: 1;
}

.cart-item__rm {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  opacity: 0.55;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-total {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0 12px;
  font-size: 0.98rem;
}

.cart-total__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  opacity: 0.9;
}

.cart-total__row--sum {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.08rem;
}

.cart-total strong {
  font-size: 1.35rem;
  color: var(--gold-soft);
}

.cart-total__note {
  margin: 2px 0 0;
  font-size: 0.78rem;
  opacity: 0.55;
}

.checkout-summary-wrap {
  margin: 4px 0 8px;
}

.checkout-summary {
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form {
  width: min(560px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px var(--pad) 28px;
}

.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.58;
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(250, 248, 244, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  color-scheme: dark;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(61, 155, 101, 0.65);
  box-shadow: 0 0 0 3px rgba(61, 155, 101, 0.15);
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.92rem;
}

.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--emerald-bright);
  flex-shrink: 0;
}

.form-note {
  font-size: 0.82rem;
  opacity: 0.55;
  line-height: 1.45;
}

.success {
  text-align: center;
  padding: 64px var(--pad) 40px;
  width: min(480px, 100%);
  margin: 0 auto;
}

.success h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 12px 0;
}

.success p {
  opacity: 0.75;
  margin-bottom: 24px;
}

/* —— bottom nav mobile / top bar desktop —— */
.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(var(--nav-h) + var(--safe-b));
  padding: 6px 8px calc(8px + var(--safe-b));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  align-items: center;
  background: rgba(7, 14, 10, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  z-index: 100;
}

/* brand + site link only on wider screens (in bar) */
.nav__brand,
.nav__site {
  display: none;
}

.nav__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.48;
  position: relative;
  border-radius: 12px;
  min-height: 48px;
}

.nav__btn.is-active {
  opacity: 1;
  color: var(--gold-soft);
  background: rgba(196, 163, 90, 0.12);
}

.nav__icon {
  font-size: 1.05rem;
  line-height: 1;
}

.nav__badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--emerald-bright);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.nav__badge:empty {
  display: none;
}

/* —— cert —— */
.cert-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.cert-amounts button {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
}

.cert-amounts button.is-selected {
  border-color: var(--gold);
  background: rgba(196, 163, 90, 0.16);
  color: var(--gold-soft);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
  transform: translateX(-50%) translateY(12px);
  background: var(--cream);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 120;
  max-width: min(90vw, 360px);
  text-align: center;
  box-shadow: var(--shadow);
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Inside Telegram client: slightly denser chrome */
html.tg-miniapp body {
  user-select: none;
  -webkit-user-select: none;
}

html.tg-miniapp .nav__site {
  display: none !important;
}

/* —— desktop / tablet —— */
@media (min-width: 720px) {
  :root {
    --nav-h: 60px;
  }

  #app {
    padding-bottom: 32px;
    padding-top: 0;
  }

  .nav {
    position: sticky;
    top: 0;
    bottom: auto;
    height: auto;
    min-height: 60px;
    padding: 10px var(--pad);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 14, 10, 0.96);
  }

  .nav__brand,
  .nav__site {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .nav__brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.24em;
    color: var(--gold-soft);
    font-weight: 600;
    margin-right: 12px;
  }

  .nav__site {
    font-size: 0.8rem;
    opacity: 0.7;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-left: auto;
  }

  .nav__site:hover {
    opacity: 1;
    border-color: rgba(196, 163, 90, 0.4);
  }

  .nav__btn {
    flex-direction: row;
    gap: 8px;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    padding: 10px 14px;
    text-transform: none;
    flex: 0 0 auto;
  }

  .nav__badge {
    top: 6px;
    right: 10px;
  }

  .hero {
    min-height: min(52vh, 480px);
  }

  .hero__content > * {
    max-width: 32rem;
  }

  .gift-rail:not(.gift-rail--stack) {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: unset;
    overflow: visible;
    scroll-snap-type: none;
  }

  .gift-card {
    min-height: 220px;
  }

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

  .toast {
    bottom: 28px;
  }
}

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

