:root {
  color-scheme: light;
  --burgundy: #7b0d1b;
  --burgundy-dark: #510813;
  --gold: #d69a31;
  --paper: #f6e6c8;
  --ink: #301710;
  --muted: #786251;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-height: 100svh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { width: 100%; scroll-behavior: smooth; background: #24120c; }
body { width: 100%; min-width: 320px; margin: 0; overflow-x: hidden; background: #24120c; color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-shell { width: 100%; max-width: 720px; margin: 0 auto; overflow: hidden; background: #24120c; }
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: var(--app-height);
  overflow: hidden;
  background: #28160f;
  color: #fff;
}
.hero__media, .hero__poster, .hero__video, .hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media { overflow: hidden; }
.hero__poster, .hero__video {
  max-width: none;
  object-fit: cover;
  object-position: center center;
}
.hero__poster {
  z-index: 0;
  transform: scale(1);
  animation: hero-poster-zoom 7s ease-out forwards;
}
@keyframes hero-poster-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}
.hero__video {
  z-index: 1;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 1.15s ease, transform 9s linear;
}
.hero__video.is-active { opacity: 1; transform: scale(1.055); }
.hero__shade {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(24, 10, 5, .08) 0%, rgba(24, 10, 5, .02) 40%, rgba(20, 7, 3, .70) 100%),
    linear-gradient(90deg, rgba(22, 8, 3, .16), transparent 65%);
}
.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 100vh;
  min-height: var(--app-height);
  flex-direction: column;
  padding: max(10px, env(safe-area-inset-top)) 12px calc(13px + var(--safe-bottom));
}
.platform-max .hero,
.platform-max .hero__content {
  min-height: 100svh;
  min-height: min(var(--app-height), 100svh);
}
.hero__logo {
  width: clamp(112px, 30vw, 178px);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(24, 8, 2, .42));
}
.hero__bottom {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding-bottom: clamp(4px, 1.6svh, 16px);
}
.hero__title {
  width: min(96%, 650px);
  height: auto;
  filter: drop-shadow(0 7px 18px rgba(15, 5, 2, .5));
}
.image-button {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}
.platform-telegram .image-button {
  border-color: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
.image-button img { display: block; width: 100%; height: auto; pointer-events: none; }
.hero__choose {
  width: min(86%, 520px);
  margin-top: clamp(2px, 1svh, 10px);
  transition: transform .16s ease, filter .16s ease;
}
.hero__choose:active { transform: scale(.975); filter: brightness(.96); }
.hero__hint {
  margin: clamp(2px, .8svh, 8px) 0 0;
  color: rgba(255, 243, 217, .9);
  font-size: clamp(11px, 3.2vw, 14px);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .75);
}
.hero__hint span { display: inline-block; margin-left: 5px; animation: hint-up 1.8s ease-in-out infinite; }
@keyframes hint-up { 50% { transform: translateY(-5px); } }

.menu { position: relative; width: 100%; background: #321610; }
.menu__frame {
  width: 100%;
  padding: clamp(3px, .8vw, 5px);
  border-radius: clamp(22px, 5vw, 34px);
  background: linear-gradient(135deg, #f3d58a 0%, #b87527 30%, #8e541a 52%, #e3b95e 76%, #9b601e 100%);
  box-shadow: 0 8px 18px rgba(74, 38, 8, .28), 0 2px 5px rgba(74, 38, 8, .18);
}
.menu__paper {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(5px, 1.4vw, 10px) clamp(7px, 2.2vw, 15px) 18px;
  border-radius: clamp(19px, 4.4vw, 29px);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, .22) 0%, rgba(255, 247, 222, .08) 48%, rgba(151, 91, 25, .14) 100%),
    var(--menu-texture);
  background-position: center, left top;
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 420px 420px;
  box-shadow: inset 0 0 0 1px rgba(255, 246, 211, .8), inset 0 0 22px rgba(119, 70, 18, .16);
}
.menu__title {
  display: block;
  width: min(94%, 760px);
  height: clamp(48px, 13vw, 88px);
  margin: 0 auto clamp(1px, .5vw, 4px);
  object-fit: cover;
  object-position: center;
}
.fulfillment-selector {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(3px, 1vw, 8px);
  margin: 0 auto clamp(7px, 1.8vw, 13px);
}
.fulfillment-selector__button {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: saturate(.72) brightness(.78);
  opacity: .82;
  transition: filter .16s ease, opacity .16s ease, transform .16s ease;
}
.fulfillment-selector__button img { display: block; width: 100%; height: auto; pointer-events: none; }
.fulfillment-selector__button.is-selected {
  filter: saturate(1.08) brightness(1.08) drop-shadow(0 4px 7px rgba(88, 36, 8, .34));
  opacity: 1;
  transform: translateY(-1px);
}
.fulfillment-selector__button:disabled { filter: grayscale(.85) brightness(.8); opacity: .42; cursor: default; }
.fulfillment-selector__button:not(:disabled):active { transform: scale(.97); }
.product-list { display: grid; width: 100%; gap: clamp(7px, 2.1vw, 14px); }
.product {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: clamp(12px, 3.4vw, 24px);
}
.product__image { width: 100%; height: auto; }
.product__price {
  position: absolute;
  z-index: 3;
  right: clamp(9px, 2.8vw, 20px);
  bottom: clamp(8px, 5%, 20px);
  padding: 6px 10px;
  border: 1px solid rgba(244, 201, 111, .72);
  border-radius: 999px;
  background: rgba(100, 9, 20, .9);
  box-shadow: 0 4px 12px rgba(45, 12, 7, .22);
  color: #fff3d5;
  font-size: clamp(12px, 3.3vw, 17px);
  font-weight: 900;
  line-height: 1;
}
.product__add {
  position: absolute;
  z-index: 2;
  left: clamp(12px, 4.6%, 34px);
  bottom: clamp(11px, 9%, 34px);
  width: clamp(48px, 12vw, 76px);
  height: clamp(48px, 12vw, 76px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.product__add:active { background: rgba(255, 255, 255, .16); }
.quantity {
  position: absolute;
  z-index: 3;
  left: clamp(9px, 3.2%, 24px);
  bottom: clamp(9px, 7%, 27px);
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 2px solid #efc05f;
  border-radius: 999px;
  background: linear-gradient(145deg, #8f1324, #650914);
  box-shadow: 0 7px 14px rgba(76, 20, 11, .26);
  color: #fff5db;
}
.quantity__button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1;
}
.quantity__button:active { background: rgba(255, 255, 255, .14); }
.quantity__value { min-width: 28px; text-align: center; font-size: 17px; font-weight: 900; }
.empty-menu { padding: 30px 20px; border: 1px dashed rgba(104, 21, 27, .35); border-radius: 18px; text-align: center; }
.mountain-banner {
  position: relative;
  overflow: hidden;
  width: calc(100% - 20px);
  aspect-ratio: 1200 / 292;
  margin: clamp(9px, 2.5vw, 18px) auto 0;
  border-radius: clamp(13px, 3vw, 22px);
  box-shadow: 0 7px 15px rgba(75, 30, 8, .28);
}
.mountain-banner img {
  position: absolute;
  top: -5.479%;
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
}
.order-summary {
  display: flex;
  width: calc(100% - 24px);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px auto 0;
  padding: 9px 14px;
  border: 1px solid rgba(111, 15, 28, .18);
  border-radius: 999px;
  background: rgba(255, 248, 230, .8);
  color: var(--burgundy-dark);
  font-size: 13px;
}
.order-summary strong { white-space: nowrap; }
.order-button {
  width: calc(100% - 20px);
  margin-right: auto;
  margin-left: auto;
  margin-top: 4px;
  transition: opacity .2s ease, filter .2s ease, transform .16s ease;
}
.order-button:disabled { opacity: .48; filter: grayscale(.82); cursor: default; }
.order-button:not(:disabled):active { transform: scale(.982); filter: brightness(.96); }
.location-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 18px 12px calc(20px + var(--safe-bottom));
  border-top: 1px solid rgba(255, 228, 179, .18);
  background: #321610;
  color: rgba(255, 239, 207, .84);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}
.location-address__pin { color: #e9b85e; font-size: 17px; line-height: 1; }

.sheet { position: fixed; z-index: 50; inset: 0; }
.sheet__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(37, 15, 8, .66); backdrop-filter: blur(5px); }
.sheet__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: calc(var(--app-height) - 12px);
  overflow: auto;
  border: 1px solid rgba(128, 54, 25, .18);
  border-radius: 28px 28px 0 0;
  background: #fff8e9;
  animation: sheet-up .28s ease-out;
}
@keyframes sheet-up { from { transform: translateY(35%); opacity: .5; } }
.sheet__handle { width: 42px; height: 5px; margin: 10px auto 0; border-radius: 10px; background: #d4b88a; }
.sheet__close {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 15px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f2dfbd;
  color: var(--burgundy-dark);
  font-size: 28px;
}
.sheet__content { width: 100%; max-width: 680px; margin: 0 auto; padding: 23px 18px calc(28px + var(--safe-bottom)); }
.sheet__eyebrow, .success__eyebrow { margin: 0 0 8px; color: var(--burgundy); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.sheet h2, .success h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 35px; line-height: 1.04; }
.checkout-items { display: grid; gap: 8px; margin: 12px 0 20px; padding: 14px 16px; border-radius: 17px; background: #f3e3c7; }
.checkout-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.checkout-item strong { white-space: nowrap; }
.field { display: grid; gap: 7px; margin-top: 14px; }
.field > span, .choice legend { color: #674c3c; font-size: 12px; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(111, 15, 28, .2);
  border-radius: 15px;
  outline: 0;
  background: #fffdf8;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(123, 13, 27, .09); }
.field textarea { resize: vertical; }
.checkout-fulfillment { margin: 16px 0 0; padding: 0; border: 0; }
.checkout-fulfillment legend { margin-bottom: 7px; color: #674c3c; font-size: 12px; font-weight: 800; }
.checkout-fulfillment__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.checkout-fulfillment__option {
  min-width: 0;
  min-height: 48px;
  padding: 8px 5px;
  border: 1px solid rgba(111, 15, 28, .24);
  border-radius: 13px;
  background: #fff6e4;
  color: var(--burgundy);
  font-size: clamp(12px, 3.4vw, 15px);
  font-weight: 900;
  line-height: 1.1;
}
.checkout-fulfillment__option.is-selected {
  border-color: var(--burgundy);
  background: var(--burgundy);
  box-shadow: 0 5px 12px rgba(111, 15, 28, .2);
  color: #fff6df;
}
.checkout-fulfillment__option:disabled { opacity: .42; }
.checkout-fulfillment__option:not(:disabled):active { transform: scale(.97); }
.contact-button { width: 100%; margin-top: 8px; padding: 11px; border: 1px solid rgba(111, 15, 28, .2); border-radius: 13px; background: transparent; color: var(--burgundy); font-size: 13px; font-weight: 800; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 0; padding: 0; border: 0; }
.choice legend { grid-column: 1/-1; margin-bottom: 7px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: grid; min-height: 46px; place-items: center; border: 1px solid rgba(111, 15, 28, .2); border-radius: 14px; }
.choice input:checked + span { border-color: var(--burgundy); background: var(--burgundy); color: white; }
.form-message { min-height: 18px; margin: 12px 2px 0; color: #a43c2d; font-size: 13px; }
.submit-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 20px;
  border: 1px solid #d89b34;
  border-radius: 18px;
  background: linear-gradient(145deg, #881323, #640914);
  box-shadow: 0 12px 24px rgba(91, 12, 23, .22);
  color: #fff4d8;
  font-weight: 900;
}
.submit-button:disabled { opacity: .6; }

.success { position: fixed; z-index: 80; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 28px; background: #551018; color: white; text-align: center; }
.success__mark { display: grid; width: 78px; height: 78px; place-items: center; margin-bottom: 24px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #f3d79f; font-size: 38px; }
.success__eyebrow { color: #f3d79f; }
.success h2 { max-width: 420px; }
.success > p:not(.success__eyebrow) { max-width: 380px; color: rgba(255,255,255,.76); line-height: 1.55; }
.success button { margin-top: 20px; padding: 14px 20px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: transparent; color: white; }

@media (max-width: 360px) {
  .hero__content { padding-right: 8px; padding-left: 8px; }
  .quantity { min-height: 44px; }
  .quantity__button { width: 38px; height: 38px; }
}

@media (min-width: 721px) {
  body { background: #160b08; }
  .app-shell { box-shadow: 0 0 80px rgba(0, 0, 0, .48); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__poster, .hero__video, .hero__hint span, .sheet__panel { transition: none; animation: none; }
}
