/* Плавный скролл для всех якорных ссылок (#menu, #delivery, #orderForm и т.д.) */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* учитываем липкий topbar чтобы заголовок секции не прятался */
}

:root {
  --bg: #f7f4ef;
  --white: #1A2766;
  --dark: #f2f2f2;
  --muted: #b0b0b0;
  --primary: #FFD166;
  --accent: #fbbf24;
  --border: rgba(255, 255, 255, 0.12);
}

*{
  box-sizing: border-box;
}

/* ГЛОБАЛЬНЫЙ ФОН */
body {
    background: linear-gradient(90deg, hsla(230, 59%, 25%, 1) 0%, hsla(359, 73%, 39%, 1) 50%, hsla(32, 97%, 59%, 1) 100%);
    background-attachment: fixed;
    color: #f2f2f2;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
}

/* ЗЕРНО СВЕРХУ */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
    opacity: 0.18;
    z-index: 0;
}

/* ХИМИЧЕСКИЙ ДЫМ — ПОЛУПРОЗРАЧНЫЕ ПОЛОСЫ */
body::after {
    content: "";
    position: fixed;
    top: -50px;
    left: 0;
    width: 520%;
    height: 520%;
    background: url("https://www.pngarts.com/files/3/Smoke-PNG-Image-Transparent.png") repeat;
    opacity: 0.17;
    filter: hue-rotate(20deg) saturate(130%);
    animation: smokeMove 38s infinite linear;
    pointer-events: none;
    z-index: 0;
}

/* ДВИЖЕНИЕ ДЫМА */
@keyframes smokeMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-400px, -200px); }
}

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

.topbar{
  background: rgba(26, 39, 102, 0.9);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.brand{
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFD166;
}

nav a{
  margin-left: 24px;
  text-decoration: none;
  color: #f2f2f2;
  font-weight: 500;
}

.language-selector{
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn{
  background: rgba(255, 209, 102, 0.2);
  color: #FFD166;
  border: 1px solid #FFD166;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover{
  background: rgba(255, 209, 102, 0.3);
  transform: scale(1.05);
}

.lang-btn.active{
  background: #FFD166;
  color: #1A2766;
}

.hero{
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: start;
}

.hero h1{
  font-size: clamp(2.6rem, 4vw, 4rem);
  margin: 0 0 16px;
  line-height: 1.05;
  color: #f2f2f2;
}

.hero p{
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.7;
  color: #b0b0b0;
}

.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: none;
  color: #1A2766;
  background: #FFD166;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 24px;
}

.button-secondary{
  background: rgba(255, 255, 255, 0.15);
  color: #f2f2f2;
}

.hero-card, .order-card{
  background: rgba(26, 39, 102, 0.8);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  color: #f2f2f2;
}

.section{
  padding: 72px 0;
  position: relative;
  z-index: 1;
}

.section-light{
  background: transparent;
}

.section h2{
  margin: 0 0 18px;
  font-size: 2rem;
  color: #f2f2f2;
}

.section p {
  color: #b0b0b0;
}

.section li {
  color: #f2f2f2;
}

.section strong {
  color: #f2f2f2;
}

.product-grid{
  display: block;
  width: 100%;
}

.product-card{
  background: rgba(26, 39, 102, 0.8);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(10px);
  color: #f2f2f2;
}

.product-card h3{
  margin:0;
  color: #f2f2f2;
}

.product-card p{
  margin:0;
  color: #b0b0b0;
  line-height: 1.6;
}

.product-card .price{
  font-weight: 700;
  font-size: 1.1rem;
  color: #FFD166;
}

.product-card button{
  margin-top:auto;
  background: #FFD166;
  color: #1A2766;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.product-card button:hover {
  background: #22c55e;
}

button {
  background: #FFD166;
  color: #1A2766;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.cart-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:12px;
}

.cart-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid var(--border);
  color: #f2f2f2;
}

.cart-item strong{
  color: #f2f2f2;
}

.cart-summary{
  margin-top: 16px;
}

.cart-summary input{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #f2f2f2;
}

#applyPromo {
  margin-top: 12px;
}

  .cart-summary input::placeholder {
    color: #b0b0b0;
  }

.promo-message, .order-status{
  margin-top: 12px;
  color: #FFD166;
  font-weight: 600;
}

.cart-total{
  margin-top: 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:1.1rem;
  color: #f2f2f2;
}

.delivery-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
}

.delivery-map{
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
}

.delivery-map img{
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95);
}

.delivery-badge{
  position: absolute;
  padding: 10px 14px;
  background: rgba(26, 39, 102, 0.95);
  color: #f2f2f2;
  border-radius: 18px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.zone-1{top: 20%; left: 18%;}
.zone-2{top: 50%; right: 16%;}
.zone-3{bottom: 18%; left: 30%;}

.section-form{
  padding-bottom: 120px;
}

.order-card form{
  display:grid;
  gap:18px;
}

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

.form-group > div {
  color: #f2f2f2;
}

.form-group input, .form-group select, .form-group textarea{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #f2f2f2;
}

.form-group select {
  appearance: none;
}

.form-group select option {
  background: #1A2766;
  color: #f2f2f2;
}

.form-group input::placeholder, .form-group textarea::placeholder {
  color: #b0b0b0;
}

.footer{
  padding: 24px 0 36px;
  text-align: center;
  color: #b0b0b0;
}

@media(max-width: 980px){
  .hero-grid, .delivery-grid{
    grid-template-columns: 1fr;
  }
}

@media(max-width: 720px){
  nav a{
    margin-left: 12px;
    font-size: 0.95rem;
  }

  .hero{
    padding: 56px 0;
  }
}

/* ===== CATEGORY NAV ===== */
.category-nav {
  position: sticky;
  top: 73px;
  z-index: 90;
  background: rgba(10, 36, 28, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  margin: 0 0 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.category-nav-inner {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  width: max-content;
  min-width: 100%;
}

.cat-btn {
  background: transparent;
  color: #b0b0b0;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cat-btn:hover {
  background: rgba(255, 209, 102, 0.1);
  color: #f2f2f2;
}

.cat-btn.active {
  background: #FFD166;
  color: #1A2766;
  font-weight: 700;
}

/* Sticky category header while scrolling */
.category-sticky-label {
  position: sticky;
  top: 120px;
  z-index: 80;
  background: transparent;
  padding: 8px 0 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 209, 102, 0.2);
}

.category-sticky-label h3 {
  color: #FFD166;
  font-size: 1.1rem;
  margin: 0;
}

/* Адаптивная сетка продуктов */
@media(max-width: 1100px) {
  .category-section > div:last-child {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media(max-width: 760px) {
  .category-section > div:last-child {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media(max-width: 480px) {
  .category-section > div:last-child {
    grid-template-columns: 1fr !important;
  }
}

/* ===== MENU REDESIGN — sidebar + list ===== */
.menu-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

/* Сайдбар категорий */
.menu-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(26, 39, 102, 0.5);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  backdrop-filter: blur(10px);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: none;
}

.menu-sidebar::-webkit-scrollbar { display: none; }

.sidebar-cat-btn {
  background: transparent;
  color: #b0b0b0;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  line-height: 1.3;
}

.sidebar-cat-btn:hover {
  background: rgba(255, 209, 102, 0.1);
  color: #f2f2f2;
}

.sidebar-cat-btn.active {
  background: rgba(255, 209, 102, 0.15);
  color: #FFD166;
  font-weight: 700;
}

/* Список товаров */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cat-label {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f2f2f2;
  margin: 32px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.cat-label:first-child { margin-top: 0; }

/* Строка товара */
.product-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.25s ease, border-radius 0.25s ease;
  cursor: pointer;
  border-radius: 8px;
}

.product-row:hover {
  background: rgba(255, 209, 102, 0.04);
  border-radius: 12px;
}

.product-row-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
}

.product-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-row-img--empty {
  background: rgba(255,255,255,0.05);
}

.product-row-info {
  flex: 1;
  min-width: 0;
}

.product-row-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f2f2f2;
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-row-desc {
  font-size: 0.82rem;
  color: #b0b0b0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.product-row-price {
  font-size: 1rem;
  font-weight: 700;
  color: #f2f2f2;
  white-space: nowrap;
}

.product-row-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFD166;
  color: #1A2766;
  border: none;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s;
  padding: 0;
}

.product-row-btn:hover {
  background: #22c55e;
  transform: scale(1.1);
}

@media(max-width: 860px) {
  .menu-layout {
    grid-template-columns: 1fr;
  }
  .menu-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
  }
}

/* ===== FLOATING CART ===== */
.floating-cart {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  display: none;
}

.floating-cart.visible {
  display: block;
}

.floating-cart-btn {
  background: #FFD166;
  color: #1A2766;
  border: none;
  border-radius: 20px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(255, 209, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.floating-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 209, 102, 0.45);
}

.floating-cart-count {
  background: #1A2766;
  color: #FFD166;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.floating-cart-total {
  font-size: 1rem;
  font-weight: 700;
}

/* Плавающая корзина на мобилке — широкая кнопка снизу */
@media (max-width: 768px) {
  .floating-cart {
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .floating-cart-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 1.05rem;
  }
  .floating-cart-count {
    width: 28px; height: 28px;
    font-size: 0.95rem;
  }
}

/* ===== PRODUCT MODAL ===== */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}

.product-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.product-modal {
  background: #1A2766;
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.25s ease;
  scrollbar-width: none;
}

.product-modal::-webkit-scrollbar { display: none; }

.product-modal-overlay.open .product-modal {
  transform: translateY(0) scale(1);
}

.product-modal-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 24px 24px 0 0;
  display: block;
}

.product-modal-body {
  padding: 24px;
}

.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.product-modal-wrap {
  position: relative;
}

.product-modal-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f2f2f2;
  margin: 0 0 8px;
}

.product-modal-desc {
  color: #b0b0b0;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 20px;
}

.product-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.product-modal-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFD166;
}

.product-modal-add {
  background: #FFD166;
  color: #1A2766;
  border: none;
  border-radius: 14px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.product-modal-add:hover {
  background: #22c55e;
  transform: scale(1.03);
}

/* === service mode toggle (delivery/takeaway) === */
.service-mode-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.service-mode-option {
  flex: 1 1 0;
  min-width: 0;            /* позволить ужиматься меньше 140px на мобилке */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  transition: all .15s ease;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;     /* текст не переносится */
  overflow: hidden;
}
.service-mode-option:hover { border-color: #FFD166; }
.service-mode-option input[type="radio"] {
  accent-color: #FFD166;
  margin: 0;
  cursor: pointer;
  width: 18px;             /* фикс размера радио (iOS их делает огромными) */
  height: 18px;
  flex-shrink: 0;
  appearance: auto;
  -webkit-appearance: radio;
}
.service-mode-option span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.service-mode-option:has(input:checked) {
  border-color: #FFD166; background: rgba(255, 209, 102, 0.12);
}

/* На очень узких экранах ставим кнопки в столбик */
@media (max-width: 420px) {
  .service-mode-row { flex-direction: column; }
  .service-mode-option { flex: 1 1 auto; }
}


/* === phone with country selector === */
.phone-row {
  display: flex;
  gap: 8px;
  width: 100%;
  align-items: stretch;
}
.phone-country {
  flex: 0 0 110px;       /* фиксированная узкая ширина селекта */
  width: 110px;
  max-width: 110px;
  padding: 10px 8px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: #f2f2f2;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
}
.phone-country option { background: #1a1a1a; color: #f2f2f2; }
.phone-row input {
  flex: 1 1 auto;        /* инпут забирает всё остальное место */
  min-width: 0;
  width: 100%;
}


/* === Автоопределение зоны === */
.zone-status {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .15s ease;
}
.zone-status--pending { background: rgba(255,255,255,0.05); color: #b0b0b0; border-color: rgba(255,255,255,0.12); }
.zone-status--loading { background: rgba(255,255,255,0.06); color: #cfcfcf; border-color: rgba(255,255,255,0.12); }
.zone-status--ok      { background: rgba(255, 209, 102, 0.12); color: #b9f5cc; border-color: #FFD166; }
.zone-status--outside { background: rgba(255,90,90,0.10); color: #ffb4b4; border-color: rgba(255,90,90,0.5); }


/* === Мини-карта зон в форме заказа === */
.order-map {
  width: 100%;
  height: 280px;
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  display: block;  /* всегда видна для доставки; скрывается JS-классом hidden при takeaway */
}
.order-map.hidden { display: none; }
.order-map-hint {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #b0b0b0;
}
.order-map.hidden + .order-map-hint { display: none; }


/* === Лого и шапка === */
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.brand-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #FFD166 0%, #FA9A30 60%, #ff6b6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 2px 12px rgba(255, 209, 102, 0.25);
}
.brand-logo {
  width: 36px; height: 36px; border-radius: 50%;
  flex-shrink: 0;
}
.hero-logo {
  width: 120px; height: 120px; display: block;
  margin: 0 0 18px;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

/* === Расширенный футер === */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 36px 0 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col--brand { gap: 12px; }
.footer-logo {
  width: 72px; height: 72px; border-radius: 50%;
}
.footer-tag {
  color: #d0d0d0; font-size: 0.95rem; max-width: 220px;
}
.footer-title {
  font-weight: 700; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #FFD166; margin-bottom: 4px;
}
.footer-text { color: #f2f2f2; }
.footer-text--dim { color: #b0b0b0; font-size: 0.9rem; }
.footer-link {
  color: #f2f2f2; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 2px;
  width: fit-content;
  transition: border-color .15s ease, color .15s ease;
}
.footer-link:hover { color: #FFD166; border-color: #FFD166; }

.footer-col--social { align-items: flex-start; }
.social-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border: 2px solid #FFD166;
  border-radius: 999px;
  color: #FFD166;
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 209, 102, 0.08);
  transition: all .15s ease;
}
.social-btn:hover {
  background: #FFD166; color: #1A2766;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 209, 102, 0.4);
}

.footer-bottom {
  text-align: center;
  padding: 16px 0 32px;
  color: #b0b0b0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 16px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-logo { width: 90px; height: 90px; }
}


/* === Секция «Скачай приложение» === */
.section-app { padding: 56px 0; }
.app-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.app-info h2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  margin: 0 0 14px;
  background: linear-gradient(90deg, #FFD166 0%, #FA9A30 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.app-info p { color: #d0d0d0; font-size: 1.05rem; max-width: 520px; margin: 0 0 24px; }
.app-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  background: #1A2766;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  color: #f2f2f2;
  text-decoration: none;
  transition: all .15s ease;
  min-width: 170px;
}
.store-badge small { display: block; font-size: 0.7rem; color: #b0b0b0; line-height: 1; margin-bottom: 3px; }
.store-badge strong { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1; }
.store-badge:hover {
  border-color: #FFD166;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.app-qr {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px;
  background: #ffffff;
  border-radius: 16px;
  width: fit-content;
  margin-left: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.app-qr img { display: block; width: 220px; height: 220px; }
.app-qr-hint { color: #1A2766; font-weight: 600; font-size: 0.9rem; }

@media (max-width: 768px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-qr { margin: 0 auto; }
  .app-info h2 { font-size: 1.8rem; }
}


/* === Корзина-drawer === */
.cart-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 1100;
}
.cart-drawer-overlay.open {
  opacity: 1; pointer-events: auto;
}
.cart-drawer {
  position: fixed; top: 0; right: 0;
  width: 420px; max-width: 100vw;
  height: 100vh; max-height: 100vh;
  background: #1A2766;
  border-left: 1px solid rgba(255,255,255,0.1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.4);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  z-index: 1110;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cart-drawer-header h3 { margin: 0; font-size: 1.3rem; }
.cart-drawer-close {
  background: transparent; border: 0; padding: 0;
  color: #f2f2f2;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  width: 36px; height: 36px; border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.cart-drawer-close:hover { background: rgba(255,255,255,0.08); }

.cart-drawer-body {
  flex: 1; overflow-y: auto;
  padding: 14px 22px;
}
.drawer-cart-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.drawer-cart-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}
.drawer-cart-list .name { font-weight: 600; }
.drawer-cart-list .price-line { color: #b0b0b0; font-size: 0.9rem; margin-top: 4px; }
.drawer-cart-qty {
  display: inline-flex; align-items: center; gap: 8px;
}
.drawer-cart-qty button {
  width: 30px; height: 30px;
  border: 1px solid rgba(255, 209, 102, 0.5);
  background: rgba(255, 209, 102, 0.1);
  color: #FFD166;
  font-size: 1.1rem; font-weight: 700; line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all .15s ease;
}
.drawer-cart-qty button:hover { background: #FFD166; color: #1A2766; transform: scale(1.05); }
.drawer-cart-qty .qty {
  min-width: 20px;
  text-align: center;
  font-weight: 800;
  color: #f2f2f2;
  font-size: 1.05rem;
}

.drawer-cart-empty {
  color: #b0b0b0; text-align: center; padding: 40px 20px;
  display: block;
}
.drawer-cart-empty.hidden { display: none; }

.cart-drawer-footer {
  padding: 18px 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.15);
}
.cart-drawer-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-size: 1.1rem;
}
.cart-drawer-row strong { color: #FFD166; font-size: 1.25rem; }
.cart-drawer-footer .button { width: 100%; }

/* === Мобильная корзина-drawer (bottom-sheet) === */
@media (max-width: 768px) {
  .cart-drawer {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 85vh;
    max-height: 85vh;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
  }
  .cart-drawer.open { transform: translateY(0); }
  .cart-drawer-header { padding: 14px 18px; }
  .cart-drawer-header h3 { font-size: 1.15rem; }
  .cart-drawer-body { padding: 12px 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .cart-drawer-footer { padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
}

/* === Toast уведомления о добавлении в корзину === */
.cart-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -100px);
  background: #1A2766;
  color: #f2f2f2;
  border: 1px solid rgba(255, 209, 102, 0.5);
  border-radius: 999px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
  max-width: 92vw;
  white-space: nowrap;
}
.cart-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.cart-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #FFD166;
  color: #1A2766;
  font-weight: 800;
  font-size: 0.85rem;
}


/* === Account ============================================ */
.header-right { display: flex; align-items: center; }
.account-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 999px;
  color: #f2f2f2; font-weight: 600; cursor: pointer;
  transition: all .15s ease;
}
.account-btn:hover { border-color: #FFD166; color: #FFD166; }
.account-btn svg { flex-shrink: 0; }

.account-drawer .cart-drawer-body { padding: 20px 22px; }
.acc-form { display: flex; flex-direction: column; gap: 12px; }
.acc-form label { font-size: 0.9rem; color: #b0b0b0; }
.acc-form input {
  width: 100%; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 12px;
  background: rgba(255,255,255,0.06); color: #f2f2f2;
  font-size: 1rem;
}
.acc-form button { padding: 12px; }
.acc-error { color: #ff8a8a; font-size: 0.9rem; min-height: 18px; }

.acc-profile-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; background: rgba(255,209,102,0.08);
  border: 1px solid rgba(255,209,102,0.3); border-radius: 14px;
  margin-bottom: 18px;
}
.acc-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #FFD166, #FA9A30);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #1A2766; font-size: 1.4rem;
}
.acc-profile-card .name { font-weight: 700; font-size: 1.1rem; }
.acc-profile-card .phone { color: #b0b0b0; font-size: 0.9rem; }

.acc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.acc-stat {
  background: rgba(255,255,255,0.05); border-radius: 12px; padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}
.acc-stat .lbl { color: #b0b0b0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.acc-stat .val { font-weight: 800; font-size: 1.35rem; color: #FFD166; margin-top: 4px; }

.acc-section-title { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; color: #FFD166; margin: 14px 0 8px; }
.acc-order-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: rgba(255,255,255,0.04);
  border-radius: 10px; margin-bottom: 6px; font-size: 0.95rem;
}
.acc-order-row .date { color: #b0b0b0; font-size: 0.85rem; }
.acc-order-row .sum { font-weight: 700; }

.acc-logout {
  margin-top: 24px; width: 100%;
  padding: 12px; background: transparent; color: #ff8a8a;
  border: 1px solid #ff8a8a; border-radius: 12px; cursor: pointer;
  font-weight: 700;
}
.acc-logout:hover { background: rgba(255, 138, 138, 0.1); }


/* === Списание бонусов === */
.bonus-group {
  padding: 14px 16px;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 12px;
}
.bonus-group label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.bonus-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: #FFD166; cursor: pointer; }
.bonus-balance { color: #FFD166; margin-left: auto; font-weight: 700; }
.bonus-group input[type="range"] { width: 100%; margin-top: 10px; accent-color: #FFD166; }
.bonus-amount { margin-top: 6px; font-size: 0.95rem; color: #d0d0d0; }
.bonus-amount strong { color: #FFD166; }


/* === Метод оплаты === */
.payment-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  font-weight: 600;
  transition: all .15s ease;
}
.payment-option:hover { border-color: #FFD166; }
.payment-option input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: #FFD166;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}
.payment-option .payment-emoji { font-size: 1.4rem; line-height: 1; }
.payment-option:has(input:checked) {
  border-color: #FFD166;
  background: rgba(255, 209, 102, 0.12);
}


/* === Сдача с какой суммы === */
.change-from-group {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 12px;
}
.change-from-group label { font-weight: 700; display: block; margin-bottom: 8px; }
.change-from-row { display: flex; align-items: center; gap: 8px; }
.change-from-row input {
  flex: 1; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #f2f2f2;
  font-size: 1rem;
}
.change-from-row span { color: #FFD166; font-size: 1.2rem; font-weight: 700; }
.change-from-hint { margin-top: 6px; font-size: 0.85rem; color: #b0b0b0; }


/* === Огромный баннер на главной === */
.banner-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent;
}
.banner-img {
  display: block;
  width: 100%;
  height: auto;          /* сохраняем пропорции, видно всю картинку целиком */
  max-height: 80vh;       /* на огромных мониторах не растягиваем больше 80% высоты экрана */
  object-fit: contain;
  object-position: center;
}
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(26,39,102,0.55) 0%, rgba(26,39,102,0.15) 45%, transparent 70%);
  pointer-events: none;
}
.banner-content {
  position: absolute;
  top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  z-index: 1;
  padding: 0 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.banner-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 4rem;
  margin: 0 0 16px;
  color: #FFD166;
  letter-spacing: 1px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  line-height: 1.05;
}
.banner-sub {
  font-size: 1.25rem;
  max-width: 560px;
  color: #f2f2f2;
  margin: 0 0 28px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.banner-cta {
  font-size: 1.05rem;
  padding: 14px 32px;
}
@media (max-width: 768px) {
  .banner-hero { min-height: 380px; }
  .banner-title { font-size: 2.4rem; }
  .banner-sub { font-size: 1rem; }
}
@media (max-width: 480px) {
  .banner-hero { min-height: 320px; }
  .banner-title { font-size: 2rem; }
  .banner-content { padding: 40px 16px; }
}


/* ===================================
   Мобильная адаптация: компактная шапка и баннер
   =================================== */
@media (max-width: 720px) {
  /* Шапка: лого без надписи, более плотная */
  .header-inner { gap: 6px; padding: 8px 4px; flex-wrap: nowrap; }
  .brand-text { display: none; }
  .brand-logo { width: 36px; height: 36px; }

  /* Навигация в шапке (Menú/Entrega) — мельче */
  .topbar nav { gap: 10px; }
  .topbar nav a { font-size: 0.9rem; }

  /* Кнопка аккаунта — иконка, без приветствия */
  .account-btn { padding: 7px 9px; }
  #accountBtnLabel { display: none; }
  .account-btn svg { margin: 0; }

  /* Языковые кнопки — только флаг */
  .lang-btn { padding: 6px 10px; gap: 0; }
  .lang-label { display: none; }
  .lang-flag { font-size: 1.2rem; }

  /* Баннер — на мобиле текст ИДЁТ ПОД КАРТИНКОЙ, не поверх */
  .banner-overlay { display: none; }  /* градиент не нужен — текст и так на тёмном фоне */
  .banner-content {
    position: static;
    transform: none;
    padding: 20px 16px 24px;
    text-align: center;
  }
  .banner-title { font-size: 2rem; letter-spacing: 0.5px; line-height: 1.05; }
  .banner-sub { font-size: 0.95rem; margin-bottom: 16px; max-width: 100%; }
  .banner-cta { padding: 10px 22px; font-size: 0.95rem; }
  .banner-img { max-height: 60vw; object-fit: cover; }

  /* Hero-логотип меньше, иначе занимает пол-экрана */
  .hero-logo { width: 80px; height: 80px; margin-bottom: 12px; }
}

@media (max-width: 480px) {
  /* На самых узких — ещё компактнее */
  .topbar nav a { font-size: 0.85rem; }
  .lang-btn { padding: 5px 7px; }
  .banner-title { font-size: 1.7rem; }
  .banner-content { padding: 18px 14px; }
}


/* === Поле промокода в drawer корзины === */
.drawer-promo { display: flex; gap: 8px; margin-bottom: 10px; }
.drawer-promo input {
  flex: 1; min-width: 0;
  padding: 10px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #f2f2f2;
  font-size: 0.95rem;
}
.drawer-promo input::placeholder { color: #b0b0b0; }
.drawer-promo button {
  padding: 10px 16px;
  background: #FFD166; color: #1A2766;
  border: 0; border-radius: 10px;
  font-weight: 700; cursor: pointer;
  flex-shrink: 0;
}
.drawer-promo button:hover { background: #ffdb85; }
.drawer-promo-message {
  min-height: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #FFD166;
}


/* === Маркер цвета зоны в списке секции «Зоны доставки» === */
.zone-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}


/* === Унифицированный tooltip для зон доставки на обеих картах === */
.leaflet-tooltip.zone-tooltip {
  background: #1A2766 !important;
  color: #f2f2f2 !important;
  border: 1px solid #FFD166 !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  white-space: normal;
  text-align: left;
}
.leaflet-tooltip.zone-tooltip .zt-title {
  color: #FFD166;
  font-weight: 800;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 2px;
}
.leaflet-tooltip.zone-tooltip .zt-sub {
  color: #d0d0d0;
  font-weight: 400;
  font-size: 0.85rem;
}
/* Стрелочки от tooltip-а */
.leaflet-tooltip.zone-tooltip.leaflet-tooltip-top:before { border-top-color: #FFD166; }
.leaflet-tooltip.zone-tooltip.leaflet-tooltip-bottom:before { border-bottom-color: #FFD166; }
.leaflet-tooltip.zone-tooltip.leaflet-tooltip-left:before { border-left-color: #FFD166; }
.leaflet-tooltip.zone-tooltip.leaflet-tooltip-right:before { border-right-color: #FFD166; }


/* === Трекер активного заказа в личном кабинете === */
.tracker-card {
  background: linear-gradient(135deg, rgba(255,209,102,0.15), rgba(250,154,48,0.15));
  border: 1px solid rgba(255,209,102,0.4);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.tracker-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.tracker-head .label { font-weight: 700; color: #FFD166; }
.tracker-head .time { color: #b0b0b0; font-size: 0.85rem; }
.tracker-steps { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.tracker-step {
  flex: 1; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.1);
  transition: background .3s ease;
}
.tracker-step.done { background: #FFD166; }
.tracker-step.delivered.done { background: #4ade80; }
.tracker-text {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.95rem;
}
.tracker-text .now { font-weight: 700; color: #f2f2f2; }
.tracker-text .emoji { font-size: 1.3rem; }


/* === Подсказка о минимальной сумме заказа === */
.min-order-hint {
  font-size: 0.9rem;
  color: #ff8a8a;
  margin: 8px 0 12px;
  text-align: center;
  font-weight: 600;
  min-height: 18px;
}
.min-order-hint.ok { color: #4ade80; }
.min-order-hint:empty { display: none; }
.button.disabled, .button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


/* === Время доставки === */
.dtime-row { display: flex; flex-direction: column; gap: 10px; }
.dtime-option {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  font-weight: 600;
  transition: all .15s ease;
}
.dtime-option:hover { border-color: #FFD166; }
.dtime-option input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: #FFD166;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}
.dtime-option .dtime-emoji { font-size: 1.3rem; line-height: 1; }
.dtime-option small { color: #b0b0b0; font-weight: 400; font-size: 0.85rem; }
.dtime-option:has(input:checked) {
  border-color: #FFD166;
  background: rgba(255, 209, 102, 0.12);
}
.dtime-scheduled-row {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 12px;
}
.dtime-scheduled-row input[type="datetime-local"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #f2f2f2;
  font-size: 1rem;
  font-family: inherit;
  color-scheme: dark;
}
.dtime-error { color: #ff8a8a; font-size: 0.85rem; margin-top: 6px; min-height: 18px; font-weight: 600; }


.dtime-hint {
  font-size: 0.85rem; color: #b0b0b0;
  margin-top: 6px;
}


/* === Priming-модалка перед push-разрешением === */
.push-priming-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.push-priming-overlay.open { opacity: 1; pointer-events: auto; }

.push-priming-card {
  background: #1A2766;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 18px;
  padding: 28px 24px;
  max-width: 420px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.push-priming-emoji { font-size: 3.5rem; line-height: 1; margin-bottom: 12px; }
.push-priming-card h3 { color: #FFD166; margin: 0 0 12px; font-size: 1.3rem; }
.push-priming-card p { color: #d0d0d0; margin: 0 0 24px; line-height: 1.5; font-size: 0.95rem; }
.push-priming-actions { display: flex; gap: 10px; }
.push-priming-actions button {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  font-size: 0.95rem;
  transition: all .15s ease;
}
.push-priming-btn-cancel {
  background: transparent;
  color: #b0b0b0;
  border: 1px solid rgba(255,255,255,0.2) !important;
}
.push-priming-btn-cancel:hover { background: rgba(255,255,255,0.06); color: #f2f2f2; }
.push-priming-btn-ok {
  background: #FFD166;
  color: #1A2766;
}
.push-priming-btn-ok:hover { background: #ffdb85; transform: translateY(-1px); }


/* === Модификаторы в модалке товара === */
.product-mod-group {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.product-mod-group h4 {
  font-size: 0.95rem;
  margin: 0 0 10px;
  color: #FFD166;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-mod-group .mod-req {
  font-size: 0.75rem;
  color: #b0b0b0;
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 400;
}
.product-mod-options { display: flex; flex-direction: column; gap: 8px; }
.product-mod-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  transition: all .15s ease;
}
.product-mod-option:hover { border-color: #FFD166; }
.product-mod-option input { accent-color: #FFD166; cursor: pointer; }
.product-mod-option:has(input:checked) {
  border-color: #FFD166;
  background: rgba(255, 209, 102, 0.08);
}
.product-mod-option .mod-name { flex: 1; font-weight: 600; font-size: 0.95rem; }
.product-mod-option .mod-price { color: #FFD166; font-size: 0.9rem; }
.product-mod-error { color: #ff8a8a; font-size: 0.85rem; margin-top: 6px; min-height: 18px; }

/* В корзине — детали выбранных модификаций */
.cart-item-mods, .drawer-item-mods {
  color: #b0b0b0; font-size: 0.82rem; margin-top: 2px;
  line-height: 1.3;
}


/* === Cookies banner === */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  background: #1A2766;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 14px;
  padding: 16px 20px;
  display: none;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 1500;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-width: 980px;
  margin: 0 auto;
}
.cookie-banner.show { display: flex; }
.cookie-banner-text { flex: 1; min-width: 250px; color: #f2f2f2; font-size: 0.92rem; line-height: 1.5; }
.cookie-banner-text strong { color: #FFD166; margin-right: 6px; }
.cookie-banner-text a { color: #FFD166; margin-left: 6px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn-accept {
  background: #FFD166; color: #1A2766; border: 0;
  padding: 10px 22px; border-radius: 10px; font-weight: 700; cursor: pointer;
  transition: all .15s ease;
}
.cookie-btn-accept:hover { background: #ffdb85; transform: translateY(-1px); }

.footer-bottom-link {
  color: #b0b0b0; text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,0.2);
}
.footer-bottom-link:hover { color: #FFD166; border-bottom-color: #FFD166; }

/* === Уведомление-модалка от админа (тех. работы / закрыто) === */
.notice-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 2500;
}
.notice-modal-overlay.open {
  opacity: 1; pointer-events: auto;
}
.notice-modal {
  background: #1A2766;
  color: #f2f2f2;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 18px;
  padding: 30px 28px 24px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.92);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.notice-modal-overlay.open .notice-modal { transform: scale(1); }
.notice-modal-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 10px;
}
.notice-modal-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  color: #FFD166;
  font-weight: 800;
}
.notice-modal-text {
  margin: 0 0 22px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #f2f2f2;
  white-space: pre-wrap;
}
.notice-modal .button {
  min-width: 140px;
  padding: 12px 28px;
  font-size: 1rem;
}

/* Плашка-предупреждение наверху, остаётся пока уведомление активно */
.notice-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #FFD166 0%, #FFA630 100%);
  color: #1A2766;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  z-index: 1050;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.notice-banner.show { display: flex; }
.notice-banner-icon { font-size: 1.1rem; }
.notice-banner-text { line-height: 1.3; }

/* Когда заказы заблокированы — кнопки оформления выглядят неактивно */
.is-orders-blocked .button[type="submit"],
.is-orders-blocked #goToOrder,
.is-orders-blocked #drawerCheckout {
  opacity: 0.45;
  cursor: not-allowed !important;
  pointer-events: none;
}

@media (max-width: 480px) {
  .notice-modal { padding: 24px 20px 20px; border-radius: 14px; }
  .notice-modal-icon { font-size: 2.4rem; }
  .notice-modal-title { font-size: 1.15rem; }
  .notice-modal-text { font-size: 0.98rem; }
  .notice-banner { font-size: 0.85rem; padding: 8px 14px; }
}

/* === Приветственный онбординг (карусель 4 слайда) === */
.intro-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  z-index: 2400;
}
.intro-overlay.open {
  opacity: 1; pointer-events: auto;
}
.intro-modal {
  position: relative;
  background: linear-gradient(160deg, #1A2766 0%, #2c3a85 100%);
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 22px;
  width: 100%;
  max-width: 480px;
  padding: 38px 30px 26px;
  color: #f2f2f2;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  transform: translateY(20px) scale(0.96);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
.intro-overlay.open .intro-modal { transform: translateY(0) scale(1); }
.intro-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px;
  background: transparent;
  color: #b0b0b0;
  border: 0;
  border-radius: 50%;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  transition: background .15s ease, color .15s ease;
  z-index: 2;
}
.intro-close:hover { background: rgba(255,255,255,0.08); color: #FFD166; }

/* Слайды — горизонтальная лента */
.intro-slides-wrap {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.intro-slide {
  display: block;
  text-align: center;
  padding: 4px 4px 0;
  animation: introSlideIn .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes introSlideIn {
  0%   { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}
.intro-slide.is-back-anim {
  animation: introSlideInBack .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes introSlideInBack {
  0%   { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}
.intro-icon {
  font-size: 3.8rem;
  line-height: 1;
  margin: 6px 0 14px;
  filter: drop-shadow(0 4px 14px rgba(255, 209, 102, 0.35));
}
.intro-title {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFD166;
  line-height: 1.25;
}
.intro-text {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #e8e6e0;
  white-space: pre-wrap;
}

/* Точки-индикатор */
.intro-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 20px 0 18px;
}
.intro-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  border: 0;
  padding: 0;
  transition: all .2s ease;
}
.intro-dot.active {
  background: #FFD166;
  width: 24px;
  border-radius: 4px;
}

/* Кнопки навигации */
.intro-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.intro-btn {
  flex: 1;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.intro-btn-back {
  background: rgba(255,255,255,0.08);
  color: #e8e6e0;
  border: 1px solid rgba(255,255,255,0.15);
}
.intro-btn-back:hover { background: rgba(255,255,255,0.14); }
.intro-btn-back:disabled,
.intro-btn-back.hidden { opacity: 0; pointer-events: none; }
.intro-btn-next {
  background: #FFD166;
  color: #1A2766;
}
.intro-btn-next:hover { background: #fbbf24; transform: translateY(-1px); }
.intro-btn-next.is-final {
  background: linear-gradient(90deg, #FFD166 0%, #FA9A30 100%);
}

@media (max-width: 480px) {
  .intro-modal {
    padding: 30px 22px 22px;
    border-radius: 16px;
  }
  .intro-slides-wrap { min-height: 260px; }
  .intro-icon { font-size: 3.2rem; }
  .intro-title { font-size: 1.2rem; }
  .intro-text { font-size: 0.95rem; }
  .intro-btn { padding: 11px 14px; font-size: 0.95rem; }
}
