/* ============================================================
   ХЭНГРИ — единые стили (хром + фуксия)
   ============================================================ */

:root {
  --pink: #ff1d8e;
  --pink-dark: #d90074;
  --pink-glow: rgba(255, 29, 142, 0.35);
  --white: #f5f7fb;
  --muted: #8a92a1;
  --ink: #0a0b10;
  --ink-2: #11131b;
  --ink-3: #181b26;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.55);
  --shadow-pink: 0 12px 40px rgba(255, 29, 142, 0.35);
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
*::selection { background: var(--pink); color: #fff; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  color: var(--white);
  font-size: 15px;
  line-height: 1.5;
  background:
    radial-gradient(140% 110% at 10% 0%, rgba(255, 255, 255, 0.85) 0%, rgba(34, 38, 48, 0.95) 28%, rgba(238, 242, 248, 0.78) 48%, rgba(11, 14, 19, 1) 72%),
    radial-gradient(120% 90% at 92% 12%, rgba(238, 242, 248, 0.72) 0%, rgba(18, 22, 29, 0.98) 30%, rgba(236, 242, 250, 0.7) 57%, rgba(8, 10, 14, 1) 84%),
    linear-gradient(135deg, rgba(255, 29, 142, 0.12), rgba(255, 29, 142, 0) 50%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
}

.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 14px; }
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--pink);
  margin: 0 0 12px;
}

/* ============================================================
   КНОПКИ
   ============================================================ */

.btn-primary,
.btn-ghost,
.btn-ghost-lg,
.btn-cart,
.btn-link {
  font-family: inherit;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn-primary {
  background: linear-gradient(90deg, var(--pink-dark) 0%, var(--pink) 100%);
  color: #fff;
  padding: 14px 26px;
  font-size: 15px;
  box-shadow: var(--shadow-pink);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 50px var(--pink-glow); }
.btn-primary:active { transform: translateY(0); }

.btn-block { width: 100%; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-2);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-ghost-lg {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-2);
  color: #fff;
  padding: 14px 22px;
  font-size: 15px;
}
.btn-ghost-lg:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--pink); }

.btn-cart {
  background: var(--ink);
  border: 1.5px solid var(--pink);
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 999px;
}
.btn-cart [data-cart-count] {
  background: var(--pink);
  color: #fff;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  min-width: 22px;
}

.btn-link {
  background: none;
  color: var(--pink);
  padding: 10px;
  font-size: 13px;
  width: 100%;
  margin-top: 8px;
}
.btn-link:hover { color: var(--pink-dark); }

.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.14); }

/* ============================================================
   ШАПКА
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 16, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 22px;
}

.brand .logo-link { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.brand-logo { height: 64px; width: auto; max-width: 260px; object-fit: contain; display: block; }
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 300px;
}
.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.hero-logo {
  width: 100%;
  max-width: 100%;
  max-height: 460px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 48px rgba(255, 29, 142, 0.25));
}
.footer-logo { height: 42px; width: auto; max-width: 190px; object-fit: contain; margin-bottom: 8px; }

.logo {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.5px;
  background: linear-gradient(180deg, #ffffff 0%, #a2aab8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo.small { font-size: 24px; }

.tagline {
  font-size: 11px;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.4px;
}

.top-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.top-nav a {
  font-size: 14px;
  font-weight: 700;
  color: #d1d6df;
  transition: color 0.15s;
}
.top-nav a:hover { color: var(--pink); }

.header-actions {
  display: flex;
  gap: 10px;
}

.btn-icon { font-size: 16px; line-height: 1; }

/* ============================================================
   HERO
   ============================================================ */

.hero { padding: 60px 0 40px; }

.hero-card {
  background: rgba(17, 19, 27, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--pink);
  margin: 0 0 18px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -2px;
  margin: 0 0 22px;
}
.hero-title .line {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #c0c5d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .line.accent {
  background: linear-gradient(90deg, var(--pink) 0%, #ff60b5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  color: #b4bbc8;
  max-width: 480px;
  margin: 0 0 28px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.hero-stats { display: flex; gap: 32px; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 22px; font-weight: 900; color: #fff; line-height: 1; }
.hero-stats span { font-size: 12px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

.hero-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-dark), #1a1d28);
  position: relative;
  box-shadow: 0 30px 80px rgba(255, 29, 142, 0.35);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   СЕКЦИИ
   ============================================================ */

.section-head { margin-bottom: 28px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin: 0 0 6px;
  background: linear-gradient(90deg, #fff 0%, #b6bdc9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* ============================================================
   КАТЕГОРИИ
   ============================================================ */

.menu-section { padding: 40px 0 60px; }

.cat-nav {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  margin-bottom: 24px;
  background: rgba(10, 11, 16, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-2);
  color: #cfd4dc;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.15s;
}
.cat-btn:hover { color: #fff; border-color: var(--pink); }
.cat-btn.active {
  background: linear-gradient(90deg, var(--pink-dark), var(--pink));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px var(--pink-glow);
}

/* ============================================================
   КАРТОЧКИ ТОВАРОВ
   ============================================================ */

.menu-group { margin-bottom: 56px; scroll-margin-top: 130px; }

.menu-group-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.menu-group-head h3 {
  font-size: 28px;
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.8px;
}
.menu-group-head p { margin: 0; color: var(--muted); font-size: 14px; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.product-card {
  background: rgba(18, 21, 28, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.product-image {
  width: 100%;
  height: 210px;
  background: linear-gradient(135deg, #14171f, #0a0b10);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-image img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.06); }

.product-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.4px;
  color: #fff;
}

.product-desc {
  color: #8e96a4;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.price {
  font-size: 19px;
  font-weight: 900;
  color: var(--pink);
  background: rgba(255, 29, 142, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 29, 142, 0.3);
}

.pick-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-2);
  color: #fff;
  padding: 8px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.15s;
}
.pick-btn:hover {
  background: linear-gradient(90deg, var(--pink-dark), var(--pink));
  border-color: transparent;
}

.menu-skeleton {
  padding: 80px;
  text-align: center;
  color: var(--muted);
  background: rgba(18, 21, 28, 0.5);
  border-radius: var(--radius);
  border: 1px dashed var(--border-2);
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-section { padding: 60px 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: start; }
.about-text {
  background: rgba(10, 12, 18, 0.88);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.about-text h2 {
  font-size: 36px;
  font-weight: 900;
  margin: 0 0 18px;
  letter-spacing: -1px;
  color: #ffffff;
}
.about-text p {
  color: #e6e9f0;
  line-height: 1.65;
  margin: 0 0 14px;
  font-size: 15px;
}
.about-text p:last-child { margin-bottom: 0; }

.about-features { display: grid; gap: 14px; }
.feature {
  display: flex;
  gap: 14px;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid var(--border-2);
  padding: 18px;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.feature-icon { font-size: 28px; flex-shrink: 0; }
.feature h4 { margin: 0 0 4px; font-size: 15px; color: #fff; }
.feature p { margin: 0; color: #b8bfca; font-size: 13px; }

/* ============================================================
   КАБИНЕТ
   ============================================================ */

.profile-section { padding: 40px 0; }
.profile-card {
  background: rgba(18, 21, 28, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(8px);
}
.profile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.profile-head h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.5px; }
.profile-actions { display: flex; gap: 10px; flex-shrink: 0; }
.profile-orders { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.profile-orders h3 { margin: 0 0 16px; font-size: 18px; }

.orders-list { display: grid; gap: 12px; }
.active-order-box { display: grid; gap: 12px; margin-bottom: 20px; }
.order-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}
.order-card-active {
  border-color: rgba(255, 29, 142, 0.45);
  background: rgba(255, 29, 142, 0.06);
  box-shadow: 0 8px 32px rgba(255, 29, 142, 0.12);
}
.order-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-card .id { font-weight: 800; color: #fff; font-size: 14px; }
.order-card .summary { color: #b6bdc9; font-size: 13px; line-height: 1.45; }
.order-card .order-addr { color: #9aa3b2; font-size: 12px; }
.order-card .order-total { font-weight: 900; color: var(--pink); font-size: 18px; justify-self: end; }
.order-card .status { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.4px; }

.order-track { padding: 12px 0 4px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.track-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.track-step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: var(--muted); text-align: center; }
.track-step .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.2);
}
.track-step.done .dot, .track-step.current .dot {
  background: var(--pink); border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 29, 142, 0.2);
}
.track-step.done { color: #d1d6df; }
.track-step.current { color: #fff; }
.track-title { margin: 0 0 4px; font-weight: 800; font-size: 15px; color: #fff; }
.track-hint { margin: 0; font-size: 13px; color: #9aa3b2; }
.track-eta { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--pink); }
.s-Новый { background: #10b981; color: #fff; }
.s-Готовится { background: #f59e0b; color: #fff; }
.s-Вдоставке { background: #3b82f6; color: #fff; }
.s-Завершён { background: #475569; color: #fff; }
.s-Отменён { background: #7f1d1d; color: #fff; }

/* ============================================================
   ЧЕКАУТ
   ============================================================ */

.checkout-section { padding: 40px 0 80px; }
.checkout-card {
  background: rgba(18, 21, 28, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(8px);
}
.checkout-form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > span {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.field input,
.field select,
.field textarea {
  background: rgba(8, 9, 13, 0.7);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 29, 142, 0.2);
}
.field textarea { resize: vertical; min-height: 60px; }
.field-hint { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); font-weight: 600; }

.seg-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(8, 9, 13, 0.7);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}
.seg-control.three { grid-template-columns: 1fr 1fr 1fr; }
.seg-control.pay-methods { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .seg-control.pay-methods { grid-template-columns: repeat(4, 1fr); }
}
.pay-hint { margin: 10px 0 0; font-size: 12px; line-height: 1.45; }
.seg-control input { display: none; }
.seg-control label {
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border-radius: 7px;
  cursor: pointer;
  transition: 0.15s;
}
.seg-control input:checked + label {
  background: linear-gradient(90deg, var(--pink-dark), var(--pink));
  color: #fff;
}

.checkout-summary {
  background: rgba(8, 9, 13, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}
.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: #c4cad6; }
.sum-row.total { font-size: 19px; font-weight: 900; color: #fff; padding-top: 10px; border-top: 1px solid var(--border); }

.order-status {
  font-size: 13px;
  color: var(--pink);
  font-weight: 700;
  margin: 8px 0 0;
  text-align: center;
}

.bonus-row {
  background: linear-gradient(135deg, rgba(255, 29, 142, 0.12), rgba(255, 29, 142, 0.04));
  border: 1px solid rgba(255, 29, 142, 0.3);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.bonus-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.bonus-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--pink);
  flex-shrink: 0;
  margin-top: 2px;
}
.bonus-text { font-size: 14px; color: #e6e9f0; }
.bonus-text strong { color: var(--pink); font-weight: 900; }
.bonus-text small { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }

.sum-row.earn-row { color: var(--muted); font-size: 13px; padding-top: 8px; border-top: 1px dashed var(--border); }
.earn { color: #10b981 !important; font-weight: 800; }

.profile-bonus { margin-top: 24px; }
.bonus-card {
  background: linear-gradient(135deg, rgba(255, 29, 142, 0.18), rgba(217, 0, 116, 0.08));
  border: 1px solid rgba(255, 29, 142, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 14px 40px rgba(255, 29, 142, 0.2);
}
.bonus-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 12px;
}
.bonus-card-label {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.bonus-card-value {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(90deg, #fff 0%, #ffb3dc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bonus-card-note { margin: 0; color: #e6e9f0; font-size: 13px; line-height: 1.5; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer { padding: 60px 0 30px; border-top: 1px solid var(--border); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #fff; }
.footer p { margin: 6px 0; color: #aab0bb; font-size: 14px; }
.footer a { color: var(--pink); }
.footer-copy {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ============================================================
   ПЛАВАЮЩАЯ КОРЗИНА
   ============================================================ */

.floating-cart {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  background: linear-gradient(90deg, var(--pink-dark), var(--pink));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 50px var(--pink-glow);
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  transition: transform 0.18s;
}
.floating-cart:hover { transform: translateY(-2px); }
.fc-icon { font-size: 22px; }
.fc-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.fc-meta strong { font-size: 14px; }
.fc-meta small { font-size: 12px; opacity: 0.85; margin-top: 2px; }

/* ============================================================
   КОРЗИНА (DRAWER)
   ============================================================ */

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  justify-content: flex-end;
}
.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 9, 0.7);
  backdrop-filter: blur(4px);
}
.cart-panel {
  position: relative;
  width: min(440px, 100vw);
  height: 100%;
  background: #0c0e14;
  border-left: 1px solid var(--border-2);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.24s ease-out;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-head h3 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.5px; }
.cart-head h3 small { color: var(--muted); font-weight: 700; font-size: 14px; margin-left: 6px; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-line {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 10px;
  align-items: center;
}
.cart-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: #14171f;
}
.cart-line-main strong { display: block; font-size: 14px; margin-bottom: 4px; }
.cart-line-main small { color: var(--muted); font-size: 12px; display: block; margin-bottom: 6px; }
.cart-line-main .line-price { font-weight: 800; color: var(--pink); font-size: 13px; }

.qty-controls { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-2);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--pink); border-color: var(--pink); }
.qty-num { min-width: 22px; text-align: center; font-weight: 800; font-size: 14px; }
.remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 14px;
  margin-left: 6px;
}
.remove-btn:hover { background: rgba(239, 68, 68, 0.25); }

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 14px;
}

.cart-foot { padding: 20px 24px; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 16px;
}
.cart-total strong { font-size: 22px; font-weight: 900; color: var(--pink); }

/* ============================================================
   МОДАЛКИ
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.82);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  border-radius: 16px;
  animation: popIn 0.2s ease-out;
}
@keyframes popIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }

.auth-card {
  background: #12151c;
  border: 1px solid var(--border-2);
  padding: 36px 30px 30px;
  width: 100%;
  max-width: 400px;
}
.auth-card h3 { margin: 0 0 6px; font-size: 24px; font-weight: 900; letter-spacing: -0.5px; }
.auth-card .muted { margin: 0 0 22px; }
.auth-card .field { margin-bottom: 14px; }

.product-modal-card {
  background: #fff;
  color: #161821;
  width: min(900px, 96vw);
  max-height: min(92dvh, 900px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-modal-card .modal-close { background: rgba(0, 0, 0, 0.06); border-color: transparent; color: #161821; }
.product-modal-card .modal-close:hover { background: rgba(0, 0, 0, 0.12); }

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.product-modal-image {
  background: linear-gradient(135deg, #f0f3f8, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.product-modal-image img { max-width: 100%; max-height: 360px; object-fit: contain; }
.product-modal-info {
  padding: 36px 32px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.product-modal-info h3 { margin: 0 0 6px; font-size: 30px; font-weight: 900; letter-spacing: -1px; }
.pm-price { font-size: 28px; font-weight: 900; color: var(--pink); margin-bottom: 6px; }
.pm-block { margin-top: 22px; }
.pm-block h4 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  color: #767d8a;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.pm-composition { margin: 0; color: #4a5264; line-height: 1.5; font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid #d4d7dc;
  background: #f1f3f7;
  color: #161821;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s;
  font-family: inherit;
}
.chip:hover { border-color: var(--pink); color: var(--pink); }
.chip.active {
  border-color: transparent;
  background: linear-gradient(90deg, var(--pink-dark), var(--pink));
  color: #fff;
}
.product-modal-info .btn-primary { margin-top: auto; flex-shrink: 0; }

html.modal-open,
body.modal-open {
  overflow: hidden;
  height: 100%;
}

.zones-list p { margin: 4px 0 0; color: #9aa3b2; font-size: 14px; }
.payment-info h3 { margin: 0 0 14px; font-size: 18px; }
.pay-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pay-list li { color: #c4cad6; font-size: 14px; line-height: 1.45; }
.pay-list strong { color: #fff; }

/* ============================================================
   ТОСТЫ
   ============================================================ */

.toasts {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}
.toast {
  background: #14171f;
  border: 1px solid var(--border-2);
  border-left: 4px solid var(--pink);
  padding: 14px 18px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  animation: toastIn 0.22s ease-out;
}
.toast.ok { border-left-color: #10b981; }
.toast.err { border-left-color: #ef4444; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 980px) {
  .hero-card { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .hero-right { order: -1; max-width: none; width: 100%; margin: 0 auto; min-height: auto; padding: 4px 0 8px; }
  .hero-logo-wrap { max-width: 280px; margin: 0 auto; }
  .hero-logo { width: auto; max-width: 100%; max-height: 180px; }
  .brand-logo { height: 54px; max-width: 210px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-modal-grid { grid-template-columns: 1fr; min-height: auto; max-height: none; }
  .product-modal-image { padding: 16px 16px 0; flex-shrink: 0; }
  .product-modal-image img { max-height: 180px; }
  .product-modal-info { padding: 20px 18px 24px; max-height: none; }
  #product-modal.modal { align-items: flex-end; padding: 0; }
  #product-modal .product-modal-card {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
  }
}

/* ============================================================
   V4 — мультистраничность, хиты, FAQ, самовывоз
   ============================================================ */

.page-pad { padding: 48px 0 64px; }
.page-view { animation: pageIn 0.35s ease-out; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.site-header.scrolled { background: rgba(10, 11, 16, 0.92); box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.top-nav a.nav-active { color: var(--pink); }
.top-nav a.nav-active::after { content: ''; display: block; height: 2px; background: var(--pink); border-radius: 2px; margin-top: 4px; }

.nav-toggle {
  display: none;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-2);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 10px;
  font-size: 20px;
  margin-left: auto;
}

.price { font-family: "Oswald", sans-serif; letter-spacing: 0.5px; }

.hits-section { padding: 20px 0 48px; }
.hits-scroll { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hit-card {
  background: rgba(17,19,27,.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, border-color .2s;
}
.hit-card:hover { transform: translateY(-4px); border-color: var(--pink); }
.hit-card img { width: 100%; height: 140px; object-fit: cover; }
.hit-card div { padding: 14px; }
.hit-card h4 { margin: 0 0 6px; font-size: 14px; }

.features-section { padding: 20px 0 48px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.reviews-section { padding: 20px 0 48px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card {
  background: rgba(17,19,27,.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.review-card .stars { color: var(--pink); margin-bottom: 10px; }
.review-card p { margin: 0 0 12px; color: #b4bbc8; font-size: 14px; }

.faq-section { padding: 20px 0 64px; }
.faq-item {
  background: rgba(17,19,27,.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 4px 18px;
}
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0 0 16px; color: #9aa3b2; font-size: 14px; }

.menu-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.search-input {
  width: 100%;
  background: rgba(17,19,27,.8);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
}
.search-input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-glow); }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-filter {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-2);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.chip-filter.active { background: linear-gradient(90deg, var(--pink-dark), var(--pink)); color: #fff; border-color: transparent; }

.p-badge { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 6px; text-transform: uppercase; }
.p-badge.spicy { background: #ef4444; color: #fff; }
.p-badge.veg { background: #10b981; color: #fff; }
.product-image { position: relative; }

.pickup-box .pickup-readonly {
  background: rgba(255,29,142,.08);
  border: 1px solid rgba(255,29,142,.25);
  border-radius: 12px;
  padding: 16px 18px;
  font-weight: 600;
  color: #f5f7fb;
}

.info-card { padding: 28px; border-radius: var(--radius-lg); margin-bottom: 24px; }
.glass { background: rgba(17,19,27,.65); border: 1px solid var(--border); backdrop-filter: blur(12px); }
.info-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-icon { font-size: 24px; }
.info-row strong { display: block; margin-bottom: 4px; }
.info-row p { margin: 0; color: #9aa3b2; }
.info-row a { color: var(--pink); }

.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  min-height: 280px;
  background: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.map-placeholder iframe { width: 100%; height: 280px; border: 0; }

.promo-card {
  background: linear-gradient(135deg, rgba(255,29,142,.12), rgba(17,19,27,.9));
  border: 1px solid rgba(255,29,142,.3);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.promo-badge {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 20px;
}
.site-footer a:hover { color: var(--pink); }
.site-footer h4 { margin: 0 0 12px; font-size: 14px; }

.narrow { max-width: 720px; }
.center { text-align: center; }
.page-404 .err-code { font-size: 96px; font-weight: 900; color: var(--pink); margin: 0; line-height: 1; }

.pick-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 980px) {
  .hits-scroll { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-inner { gap: 10px; padding: 10px 14px; flex-wrap: nowrap; }
  .brand { flex: 1; min-width: 0; }
  .brand-logo { height: 50px; max-width: min(52vw, 200px); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .top-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(10,11,16,.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 22px;
    gap: 12px;
  }
  .top-nav.open { display: flex; }
  .site-header .header-inner { position: relative; }
  .logo { font-size: 24px; }
  .tagline { display: none; }
  .btn-ghost span:not(.btn-icon) { display: none; }
  .header-actions { margin-left: auto; }

  .hero { padding: 24px 0; }
  .hero-card { padding: 20px 16px; gap: 20px; }
  .hero-logo-wrap { max-width: 220px; }
  .hero-logo { max-height: 140px; }
  .hero-right { padding: 0 0 4px; }
  .hero-stats { flex-wrap: wrap; gap: 18px; }

  .menu-section { padding: 20px 0 40px; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-image { height: 150px; }
  .product-title { font-size: 15px; }
  .product-desc { font-size: 12px; -webkit-line-clamp: 2; margin-bottom: 12px; }
  .price { font-size: 15px; padding: 4px 9px; }
  .pick-btn { padding: 7px 11px; font-size: 12px; }
  .product-body { padding: 14px; }

  .cat-nav { top: 64px; padding: 10px 0; }
  .cat-btn { padding: 8px 14px; font-size: 13px; }

  .checkout-card { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .profile-card { padding: 22px; }

  .floating-cart { right: 14px; bottom: 14px; padding: 12px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .container { padding: 0 14px; }
}

@media (max-width: 380px) {
  .menu-grid { grid-template-columns: 1fr; }
}
