* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --bg: #0f1114;
  --bg-soft: #171a20;
  --card: #1b1f27;
  --card-2: #232833;
  --line: rgba(255,255,255,.08);
  --text: #f5f6f8;
  --muted: #adb4c0;
  --accent: #d5a65a;
  --accent-hover: #e4b973;
  --danger: #ff6464;
  --success: #2cbc75;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 20px;
  --radius-sm: 14px;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

html, body {
  background: linear-gradient(180deg, #0e1012 0%, #13171c 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100%;
}

body {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  padding-bottom: calc(88px + var(--safe-bottom));
}

a { text-decoration: none; color: inherit; }
button, input, textarea, select { font: inherit; outline: none; border: none; }

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(213,166,90,.12), transparent 22%),
    linear-gradient(180deg, #0f1114 0%, #141920 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: calc(12px + var(--safe-top));
  background: rgba(15,17,20,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  padding: 12px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #765221);
  display: grid;
  place-items: center;
  color: #181818;
  font-weight: 900;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.cart-mini {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: #fff;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  cursor: pointer;
}

.cart-mini-count {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.page { padding: 18px 16px 24px; }
.hero { padding: 8px 0 18px; }

.badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(213,166,90,.12);
  border: 1px solid rgba(213,166,90,.22);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 32px;
  line-height: 1.05;
  margin-bottom: 14px;
  letter-spacing: -.4px;
}

.hero p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.hero-card {
  border-radius: 24px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.hero-visual {
  height: 220px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(213,166,90,.28), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255,255,255,.08), transparent 30%),
    linear-gradient(135deg, #1c2028, #111318 72%);
}

.bottle {
  width: 118px;
  height: 170px;
  border-radius: 24px 24px 18px 18px;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(213,166,90,.12));
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 24px 40px rgba(0,0,0,.32);
}

.bottle::before {
  content: "";
  width: 50px;
  height: 24px;
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  border-radius: 10px 10px 5px 5px;
  background: linear-gradient(180deg, #47484b, #1d1f24);
}

.bottle-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76%;
  text-align: center;
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
}

.bottle-label strong {
  display: block;
  font-size: 13px;
  letter-spacing: 1.2px;
}

.bottle-label span { font-size: 10px; color: #ddd; }

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: .25s ease;
}

.btn-primary { background: var(--accent); color: #171717; }
.btn-primary:active { transform: scale(.98); }
.btn-secondary {
  background: rgba(255,255,255,.05);
  color: var(--text);
  border: 1px solid var(--line);
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 13px;
}

.section-title {
  font-size: 23px;
  margin-bottom: 8px;
  line-height: 1.12;
}

.section-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.section-block { margin-top: 24px; }

.messenger-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.messenger-card {
  padding: 14px 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  text-align: center;
  box-shadow: var(--shadow);
}

.messenger-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  background: rgba(255,255,255,.07);
  font-size: 18px;
}

.messenger-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.messenger-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.controls { display: grid; gap: 10px; margin-bottom: 16px; }

.control {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0 14px;
}

.catalog-grid { display: grid; gap: 14px; }

.product-card {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-image {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #272d38, #181b21);
}

.product-image::after {
  content: attr(data-brand);
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(213,166,90,.22);
  background: rgba(0,0,0,.24);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.mini-bottle {
  width: 90px;
  height: 134px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(213,166,90,.12));
  border: 1px solid rgba(255,255,255,.17);
  position: relative;
}

.mini-bottle::before {
  content: "";
  position: absolute;
  width: 36px;
  height: 20px;
  left: 50%;
  top: -12px;
  transform: translateX(-50%);
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(180deg, #47484b, #1d1f24);
}

.product-body { padding: 14px; }
.product-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }

.product-desc {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.notes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.note {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: #dce1e8;
  font-size: 11px;
}

.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.size-btn {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: var(--text);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 13px;
}

.size-btn.active {
  background: var(--accent);
  color: #161616;
  border-color: var(--accent);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-box small { display: block; color: var(--muted); font-size: 11px; }
.price-box strong { font-size: 22px; color: var(--accent); }

.card-btn { min-width: 128px; }

.delivery-cards { display: grid; gap: 12px; }

.delivery-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  box-shadow: var(--shadow);
}

.delivery-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.delivery-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  font-size: 18px;
  flex-shrink: 0;
}

.delivery-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

.delivery-card span, .delivery-card p {
  color: var(--muted);
  font-size: 13px;
}

.checkout-card, .summary-card, .contact-card {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  box-shadow: var(--shadow);
  padding: 16px;
}

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

.input, .textarea, .select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
}

.static-field {
  display: flex;
  align-items: center;
}

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

.delivery-options { display: grid; gap: 10px; }

.delivery-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}

.delivery-option input {
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.delivery-option strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.delivery-option span {
  color: var(--muted);
  font-size: 12px;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.summary-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.summary-item strong { white-space: nowrap; }

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.summary-row.total {
  color: var(--text);
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 18px;
  font-weight: 800;
}

.small-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.contact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.contact-btn {
  min-height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.cart-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  z-index: 300;
  background: #141820;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0,0,0,.4);
  transition: bottom .34s ease;
  max-width: 480px;
  margin: 0 auto;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
}

.cart-sheet.open { bottom: 0; }

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.48);
  opacity: 0;
  visibility: hidden;
  z-index: 250;
  transition: .25s ease;
}

.sheet-overlay.show {
  opacity: 1;
  visibility: visible;
}

.sheet-handle {
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  margin: 10px auto 4px;
}

.sheet-header {
  padding: 10px 16px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.sheet-header strong { font-size: 20px; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}

.sheet-body {
  padding: 14px 16px;
  overflow: auto;
  display: grid;
  gap: 10px;
  flex: 1;
}

.cart-item {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.cart-item-meta {
  color: var(--muted);
  font-size: 12px;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
}

.remove-btn {
  color: var(--danger);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.sheet-footer {
  padding: 14px 16px calc(14px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.sheet-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 24px 10px;
  font-size: 14px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  z-index: 120;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: rgba(15,17,20,.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.nav-btn {
  min-height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  padding: 6px;
}

.nav-btn.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.08);
}

.nav-btn span {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
  line-height: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + var(--safe-bottom));
  transform: translateX(-50%) translateY(110px);
  background: #1b1f27;
  border: 1px solid var(--line);
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: var(--shadow);
  transition: transform .28s ease;
  z-index: 500;
  max-width: calc(100% - 30px);
  text-align: center;
}

.toast.show { transform: translateX(-50%) translateY(0); }
