:root {
  --sky: #9fd9ff;
  --sky-deep: #167fc0;
  --pink: #f4a7be;
  --pink-strong: #e8769c;
  --ink: #17324a;
  --muted: #64758a;
  --paper: #ffffff;
  --wash: #eef8ff;
  --line: rgba(23, 50, 74, 0.14);
  --shadow: 0 18px 48px rgba(23, 50, 74, 0.14);
  --radius: 8px;
  --header-h: 74px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.clipboard-fallback {
  position: fixed;
  top: -999px;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--wash);
  min-width: 320px;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  padding-top: env(safe-area-inset-top);
  height: calc(var(--header-h) + env(safe-area-inset-top));
  z-index: 80;
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.38);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line);
  box-shadow: 0 10px 32px rgba(23, 50, 74, 0.08);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  justify-self: start;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--pink), #ffd4e0);
  color: var(--paper);
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(232, 118, 156, 0.32);
}

.logo-mark {
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(23, 50, 74, 0.16);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-weight: 900;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 4px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--paper);
  color: var(--ink);
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
}

.icon-button:hover {
  background: var(--paper);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--pink-strong);
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.telegram-pill,
.telegram-hero-link,
.telegram-menu-link,
.telegram-strip a,
.cart-telegram-link,
.floating-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
}

.telegram-pill {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(22, 127, 192, 0.2);
  border-radius: var(--radius);
  background: #e9f7ff;
  color: var(--sky-deep);
  box-shadow: 0 10px 24px rgba(22, 127, 192, 0.14);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.telegram-pill:hover,
.telegram-strip a:hover,
.cart-telegram-link:hover,
.floating-telegram:hover {
  transform: translateY(-1px);
  background: #d9f1ff;
  box-shadow: 0 14px 30px rgba(22, 127, 192, 0.2);
}

.telegram-pill svg,
.telegram-hero-link svg,
.telegram-menu-link svg,
.telegram-strip svg,
.floating-telegram svg {
  width: 18px;
  height: 18px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.home-view {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 38px) 0 36px;
  overflow: hidden;
}

.home-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--sky);
}

.home-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(238, 248, 255, 0.76));
}

.home-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-inner {
  display: grid;
  min-height: calc(100vh - 148px);
  align-content: center;
  gap: 28px;
}

.dream-logo {
  display: grid;
  justify-items: center;
  gap: 0;
  text-align: center;
  color: #f5a9bf;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.34);
  text-shadow:
    0 3px 0 rgba(255, 226, 235, 0.88),
    0 8px 22px rgba(134, 70, 103, 0.22),
    0 16px 36px rgba(23, 50, 74, 0.18),
    0 0 26px rgba(255, 255, 255, 0.68);
  line-height: 0.86;
}

.dream-logo span,
.dream-logo strong {
  font-family: "Titan One", "Inter", system-ui, sans-serif;
  font-size: 92px;
  font-weight: 400;
}

.dream-logo strong {
  display: block;
}

.telegram-hero-link {
  justify-self: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  color: var(--sky-deep);
  box-shadow: var(--shadow);
  animation: telegram-bob 3.2s ease-in-out infinite;
}

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

.menu-choice {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.menu-choice::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(23, 50, 74, 0.02), rgba(23, 50, 74, 0.58)),
    linear-gradient(135deg, rgba(159, 217, 255, 0.16), rgba(244, 167, 190, 0.28));
}

.menu-choice img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.menu-choice:hover img {
  transform: scale(1.045);
}

.choice-kicker,
.choice-title,
.choice-action {
  position: absolute;
  left: 24px;
}

.choice-kicker {
  top: 24px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.choice-title {
  bottom: 74px;
  font-family: "DM Serif Display", Georgia, serif;
  color: var(--paper);
  font-size: 70px;
  line-height: 1;
  text-shadow: 0 12px 28px rgba(23, 50, 74, 0.28);
}

.choice-action {
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
  font-weight: 900;
}

.menu-view {
  min-height: 100vh;
  background: var(--wash);
}

.menu-hero {
  position: relative;
  min-height: 360px;
  padding-top: var(--header-h);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.menu-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(238, 248, 255, 0.18), rgba(23, 50, 74, 0.58));
}

.menu-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 36px;
  color: var(--paper);
}

.menu-reship-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.reship-sticker,
.reship-scatter span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 34px;
  padding: 0 12px;
  border: 2px solid #ffffff;
  border-radius: 6px;
  background-color: #17324a;
  background-image: linear-gradient(135deg, #17324a 0%, #0f2234 100%);
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), 0 0 0 4px rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38);
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.reship-sticker::before,
.reship-scatter span::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  border: 1px dashed rgba(255, 255, 255, 0.56);
  border-radius: 4px;
}

.reship-sticker {
  position: absolute;
}

.reship-sticker-a {
  left: 9%;
  top: 31%;
  transform: rotate(-8deg);
}

.reship-sticker-b {
  right: 11%;
  top: 26%;
  transform: rotate(7deg);
}

.reship-sticker-c {
  right: 27%;
  bottom: 24%;
  transform: rotate(-4deg);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: 900;
  margin-bottom: 24px;
}

.menu-kicker {
  margin: 0 0 8px;
  font-weight: 900;
}

.menu-hero h1 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
}

.telegram-menu-link {
  width: max-content;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.menu-layout {
  padding: 32px 0 72px;
}

.reship-scatter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  margin: 14px 0 16px;
  pointer-events: none;
}

.reship-scatter span:nth-child(1) {
  justify-self: start;
  transform: rotate(3deg);
}

.reship-scatter span:nth-child(2) {
  justify-self: center;
  transform: rotate(-5deg);
}

.reship-scatter span:nth-child(3) {
  justify-self: end;
  transform: rotate(4deg);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 220px 120px;
  gap: 14px;
  margin-bottom: 18px;
}

.search-box {
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-box input,
.toolbar select,
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.search-box input,
.toolbar select,
.favorite-filter {
  min-height: 52px;
  padding: 0 16px;
  font-weight: 800;
}

.search-box input {
  padding-left: 48px;
}

.search-box input:focus,
.toolbar select:focus,
.favorite-filter:focus,
.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 3px rgba(159, 217, 255, 0.52);
}

.category-tabs {
  display: flex;
  gap: 10px;
  padding: 0 0 18px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.category-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
  font-weight: 900;
}

.category-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.favorite-filter {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.favorite-filter.active {
  border-color: var(--pink-strong);
  background: #fff2f6;
  color: var(--pink-strong);
}

.telegram-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(22, 127, 192, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #e7f6ff);
  box-shadow: 0 12px 28px rgba(23, 50, 74, 0.08);
}

.telegram-strip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -28%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: skewX(-18deg);
  animation: contact-sheen 5.4s ease-in-out infinite;
}

.telegram-strip span {
  position: relative;
  color: var(--ink);
  font-weight: 900;
}

.telegram-strip a {
  position: relative;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--sky-deep);
  color: var(--paper);
  box-shadow: 0 10px 22px rgba(22, 127, 192, 0.2);
}

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

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(23, 50, 74, 0.08);
}

.product-media {
  position: relative;
  width: 100%;
  height: 230px;
  padding: 0;
  border: 0;
  background: #dcefff;
  overflow: hidden;
}

.product-media img,
.product-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.product-card:hover .product-media img,
.product-card:hover .product-media video {
  transform: scale(1.05);
}

.product-media span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.media-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(23, 50, 74, 0.74);
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
}

.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(23, 50, 74, 0.12);
}

.favorite-btn.active {
  color: var(--pink-strong);
}

.favorite-btn.active svg {
  fill: currentColor;
}

.product-info {
  padding: 16px;
}

.product-info p,
.modal-info p {
  margin: 0 0 6px;
  color: var(--sky-deep);
  font-size: 13px;
  font-weight: 900;
}

.product-info h2 {
  min-height: 58px;
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
}

.product-subtitle {
  display: block;
  min-height: 42px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.product-bottom > strong {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.card-price {
  display: grid;
  gap: 4px;
}

.card-price span,
.card-price small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-price small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.product-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.ghost-btn {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

.ghost-btn:hover {
  border-color: var(--sky-deep);
}

.ghost-btn.active {
  border-color: var(--pink-strong);
  background: #fff2f6;
  color: var(--pink-strong);
}

.danger-btn {
  color: #b42342;
}

.round-add {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--pink-strong);
  color: var(--paper);
}

.empty-state,
.cart-empty {
  margin: 24px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  background: rgba(23, 50, 74, 0.44);
  backdrop-filter: blur(8px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.overlay.active {
  visibility: visible;
  opacity: 1;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 120;
  width: min(460px, 100%);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 260ms ease;
  box-shadow: -18px 0 48px rgba(23, 50, 74, 0.18);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header,
.drawer-footer {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.drawer-header h2 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 34px;
}

.drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  overscroll-behavior: contain;
}

.drawer-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: var(--paper);
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 72px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-line {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cart-line strong {
  overflow-wrap: anywhere;
}

.cart-line span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-control button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-weight: 900;
}

.qty-control span {
  min-width: 20px;
  text-align: center;
  color: var(--ink);
  font-weight: 900;
}

.checkout-form {
  display: grid;
  gap: 10px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.checkout-form input,
.checkout-form textarea {
  min-height: 44px;
  padding: 10px 12px;
  resize: vertical;
}

.cart-totals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 900;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
}

.primary-btn {
  width: 100%;
  background: var(--pink-strong);
  color: var(--paper);
  box-shadow: 0 12px 24px rgba(232, 118, 156, 0.22);
}

.primary-btn:hover,
.round-add:hover {
  background: #d75f88;
}

.cart-telegram-link {
  margin-top: 12px;
  min-height: 40px;
  border: 1px solid rgba(22, 127, 192, 0.18);
  border-radius: var(--radius);
  background: #e9f7ff;
  color: var(--sky-deep);
  font-size: 13px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 140;
  width: min(920px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, -48%) scale(0.98);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.product-modal.open {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 50, 74, 0.56);
  backdrop-filter: blur(12px);
}

.age-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  text-align: center;
  box-shadow: var(--shadow);
}

.age-card h2 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 42px;
  line-height: 1;
}

.age-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 800;
}

.install-prompt {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 170;
  width: min(520px, calc(100% - 24px));
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.install-prompt span {
  font-weight: 800;
}

.install-prompt button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

.floating-telegram {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 165;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: var(--sky-deep);
  color: var(--paper);
  box-shadow: 0 16px 36px rgba(22, 127, 192, 0.28);
  animation: telegram-pulse 2.8s ease-in-out infinite;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 220;
  max-width: calc(100% - 24px);
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes telegram-pulse {
  0%,
  100% {
    box-shadow: 0 16px 36px rgba(22, 127, 192, 0.28);
  }

  50% {
    box-shadow: 0 16px 36px rgba(22, 127, 192, 0.28), 0 0 0 8px rgba(159, 217, 255, 0.2);
  }
}

@keyframes telegram-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes contact-sheen {
  0%,
  55% {
    transform: translateX(0) skewX(-18deg);
  }

  100% {
    transform: translateX(650%) skewX(-18deg);
  }
}

.error-body {
  min-height: 100vh;
  background: var(--sky);
}

.error-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 28px;
  padding: 24px;
  background: url("assets/cloud-hero-new.png") center / cover;
}

.error-panel {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  text-align: center;
  box-shadow: var(--shadow);
}

.error-panel p {
  margin: 0 0 8px;
  color: var(--pink-strong);
  font-weight: 900;
}

.error-panel h1 {
  margin: 0 0 20px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 400;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-media {
  min-height: 520px;
  background: #dcefff;
  overflow: hidden;
}

.modal-media-gallery {
  height: 100%;
  max-height: min(76vh, 780px);
  display: grid;
  gap: 8px;
  padding: 8px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.modal-media-item {
  min-height: 504px;
  overflow: hidden;
  border-radius: 6px;
  background: #101820;
  scroll-snap-align: start;
}

.modal-media.has-gallery .modal-media-item + .modal-media-item {
  min-height: 280px;
}

.modal-media img,
.modal-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-info {
  padding: 42px;
}

.modal-info h2 {
  margin: 0 0 8px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 46px;
  line-height: 1.05;
}

.modal-info > span {
  color: var(--muted);
  font-weight: 800;
}

.modal-price-label {
  display: block;
  margin: 16px 0 0;
  font-size: 24px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.modal-universal-badge {
  display: flex;
  margin: 14px 0 0;
}

.modal-universal-badge span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 6px;
  background: rgba(19, 42, 62, 0.92);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22), 0 0 0 4px rgba(22, 127, 192, 0.14);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.36);
  transform: rotate(-2deg);
  white-space: nowrap;
}

.modal-description {
  margin: 22px 0;
  color: var(--ink);
  line-height: 1.65;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.variant-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.variant-btn {
  min-height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.variant-btn.active {
  border-color: var(--pink-strong);
  background: #fff2f6;
}

@media (max-width: 900px) {
  .dream-logo span,
  .dream-logo strong {
    font-size: 64px;
  }

  .menu-choice-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .menu-choice {
    min-height: 300px;
  }

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

  .modal-media {
    min-height: 300px;
  }

  .modal-media-item {
    min-height: 300px;
  }

  .modal-media.has-gallery .modal-media-item + .modal-media-item {
    min-height: 220px;
  }

  .header-telegram .telegram-label {
    display: none;
  }

  .header-telegram {
    width: 40px;
    padding: 0;
  }
}

@media (max-width: 760px) {
  .brand-text {
    display: none;
  }

  .header-inner {
    column-gap: 8px;
  }

  .brand-mark,
  .icon-button {
    width: 40px;
    height: 40px;
  }

  .brand-mark {
    flex-basis: 40px;
    font-size: 14px;
  }

  .nav-links {
    gap: 0;
    height: 40px;
    padding: 3px;
    position: static;
    top: auto;
    left: auto;
    transform: none;
    justify-self: center;
    width: min(340px, 100%);
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .nav-links a {
    min-height: 34px;
    padding: 0 6px;
    font-size: 11px;
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 68px;
  }

  .container {
    width: min(1180px, calc(100% - 22px));
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 14px;
  }

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

  .home-view {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 18px);
  }

  .home-inner {
    gap: 26px;
    align-content: start;
  }

  .menu-choice-grid {
    gap: 14px;
  }

  .menu-choice {
    min-height: 260px;
  }

  .choice-kicker,
  .choice-title,
  .choice-action {
    left: 16px;
  }

  .choice-kicker {
    top: 16px;
  }

  .choice-title {
    bottom: 62px;
  }

  .choice-action {
    bottom: 16px;
  }

  .dream-logo span,
  .dream-logo strong {
    font-size: 46px;
  }

  .choice-title {
    font-size: 50px;
  }

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

  .drawer {
    inset: 0;
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
  }

  .drawer-header {
    min-height: 60px;
    padding: 10px 14px;
  }

  .drawer-header h2 {
    font-size: 30px;
  }

  .drawer-body {
    padding: 8px 14px 10px;
  }

  .drawer-footer {
    max-height: 49vh;
    max-height: 49dvh;
    overflow-y: auto;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -14px 28px rgba(23, 50, 74, 0.08);
  }

  .checkout-form {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .checkout-form label {
    gap: 4px;
    font-size: 12px;
  }

  .checkout-form label:nth-child(3) {
    grid-column: 1 / -1;
  }

  .checkout-form input,
  .checkout-form textarea {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 16px;
  }

  .checkout-form textarea {
    height: 44px;
    max-height: 72px;
  }

  .cart-totals {
    margin: 10px 0;
    padding-top: 10px;
    font-size: 16px;
  }

  .cart-telegram-link {
    min-height: 36px;
    margin-top: 10px;
    text-align: center;
  }

  .drawer-actions,
  .install-prompt,
  .telegram-strip {
    grid-template-columns: 1fr;
  }

  .drawer-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }

  .drawer-actions .ghost-btn,
  .checkout-btn {
    min-height: 42px;
  }

  .telegram-strip {
    align-items: stretch;
    text-align: center;
  }

  .telegram-hero-link {
    width: min(100%, 330px);
    padding: 0 12px;
    text-align: center;
  }

  .menu-hero {
    min-height: 300px;
  }

  .reship-sticker {
    display: grid !important;
    place-items: center;
    width: 116px;
    min-width: 116px;
    height: 34px;
    min-height: 34px;
    justify-content: center;
    padding: 0;
    border: 2px solid #ffffff;
    border-width: 2px;
    border-radius: 6px;
    background-color: #17324a !important;
    background-image: linear-gradient(135deg, #17324a 0%, #0f2234 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34), 0 0 0 3px rgba(255, 255, 255, 0.22);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
    white-space: nowrap;
  }

  .reship-sticker-a {
    left: 6%;
    top: 26%;
  }

  .reship-sticker-b {
    right: 7%;
    top: 34%;
  }

  .reship-sticker-c {
    display: none;
  }

  .reship-scatter {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 8px;
    border: 1px dashed rgba(19, 42, 62, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.74);
  }

  .reship-scatter span {
    display: grid !important;
    place-items: center;
    justify-self: center;
    width: 132px;
    max-width: 100%;
    height: 34px;
    min-height: 34px;
    justify-content: center;
    padding: 0;
    border: 2px solid #ffffff;
    border-width: 2px;
    border-radius: 6px;
    background-color: #17324a !important;
    background-image: linear-gradient(135deg, #17324a 0%, #0f2234 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
    white-space: nowrap;
  }

  .reship-scatter span:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .menu-hero h1 {
    font-size: 50px;
  }

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

  .product-info h2 {
    min-height: auto;
  }

  .product-subtitle {
    min-height: auto;
  }

  .cart-item {
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 0;
  }

  .cart-item img {
    grid-row: 1 / span 2;
    width: 70px;
    height: 76px;
  }

  .cart-item > strong {
    grid-column: 2;
    justify-self: start;
    font-size: 15px;
  }

  .qty-control {
    margin-top: 4px;
  }

  .modal-info {
    padding: 26px 18px 18px;
  }

  .modal-universal-badge span {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .modal-info h2 {
    font-size: 36px;
  }
}

@media (max-width: 520px) {
  .header-telegram {
    display: none;
  }

  .floating-telegram {
    right: 12px;
    bottom: 12px;
    width: 48px;
    padding: 0;
  }

  .floating-telegram span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
