/* ===========================
   DESIGN TOKENS
=========================== */
:root {
  --primary: #C8502A;
  --primary-dark: #A83E1F;
  --primary-light: #E8724F;
  --accent: #F5A623;
  --accent-light: #FFD080;
  --bg: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-dark: #1E1208;
  --text: #2C1A0E;
  --text-muted: #7A6355;
  --text-light: #B09880;
  --border: #EAE0D5;
  --shadow-sm: 0 2px 8px rgba(44,26,14,0.08);
  --shadow-md: 0 8px 32px rgba(44,26,14,0.12);
  --shadow-lg: 0 20px 60px rgba(44,26,14,0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   HEADER
=========================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.logo__icon {
  font-size: 2rem;
  line-height: 1;
  animation: float 3s ease-in-out infinite;
}
.logo__text { display: flex; flex-direction: column; }
.logo__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.logo__sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav { display: flex; gap: 8px; }
.nav__link {
  color: var(--text);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.nav__link:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.cart-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cart-btn__count {
  background: var(--accent);
  color: var(--text);
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition);
}
.cart-btn__count.bump { animation: bump 0.3s ease; }

@keyframes bump {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background: linear-gradient(135deg, #FDF8F3 0%, #F9EDE0 50%, #F5E0CC 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}
.hero__shape--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #F5A62366, transparent);
  top: -100px; right: -100px;
  animation: drift 8s ease-in-out infinite;
}
.hero__shape--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #C8502A33, transparent);
  bottom: -50px; left: -50px;
  animation: drift 10s ease-in-out infinite reverse;
}
.hero__shape--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #E8724F22, transparent);
  top: 40%; left: 40%;
  animation: drift 6s ease-in-out infinite 2s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 30px); }
}

.floating-food {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  animation: slideDown 0.6s ease both;
}
.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
  animation: slideUp 0.7s ease both 0.1s;
}
.hero__accent {
  color: var(--primary);
  position: relative;
}
.hero__accent::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.7;
}
.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.7;
  animation: slideUp 0.7s ease both 0.2s;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: slideUp 0.7s ease both 0.3s;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: slideUp 0.7s ease both 0.4s;
}
.stat { text-align: left; }
.stat__num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat__divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px rgba(200, 80, 42, 0.35);
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 80, 42, 0.45);
  color: white;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(200, 80, 42, 0.05);
}
.btn--full { width: 100%; }

/* ===========================
   SECTION SHARED
=========================== */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}

/* ===========================
   HOW IT WORKS
=========================== */
.how {
  padding: 100px 0;
  background: white;
}
.how__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 40px 24px;
  position: relative;
}
.step__num {
  position: absolute;
  top: 20px; left: 20px;
  width: 28px; height: 28px;
  background: var(--accent);
  color: var(--text);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step__icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
  line-height: 1;
  animation: float 3s ease-in-out infinite;
}
.step:nth-child(3) .step__icon { animation-delay: 0.5s; }
.step:nth-child(5) .step__icon { animation-delay: 1s; }
.step__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text);
}
.step__desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.step__arrow {
  font-size: 2rem;
  color: var(--accent);
  padding: 0 8px;
  font-weight: 300;
}

/* ===========================
   MENU
=========================== */
.menu-section {
  padding: 100px 0;
  background: var(--bg);
}
/* Today header */
.today-header {
  text-align: center;
  margin-bottom: 48px;
}
.today-date {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  text-transform: capitalize;
  box-shadow: 0 4px 16px rgba(200,80,42,0.3);
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Разделители секций меню */
.menu-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.menu-divider::before,
.menu-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--border));
  border-radius: 1px;
}
.menu-divider::before {
  background: linear-gradient(to right, transparent, var(--border));
}
.menu-divider::after {
  background: linear-gradient(to left, transparent, var(--border));
}
.menu-divider__label {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg);
  padding: 6px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.menu-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.4s ease both;
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.menu-card__img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  line-height: 1;
  position: relative;
  overflow: hidden;
}
.menu-card__photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.menu-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.menu-card__cat {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.menu-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.menu-card__desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}
.menu-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.menu-card__weight {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}
.add-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  line-height: 1;
}
.add-btn:hover { background: var(--primary-dark); transform: scale(1.1); }
.add-btn:active { transform: scale(0.95); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   CART SIDEBAR
=========================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px;
  max-width: 95vw;
  background: white;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}
.cart.open { transform: translateX(0); }

.cart__header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--text);
}
.cart__close {
  background: var(--bg);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--text-muted);
}
.cart__close:hover { background: var(--primary); color: white; }

.cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.cart__empty-icon { font-size: 4rem; display: block; margin-bottom: 16px; opacity: 0.4; }
.cart__empty p { font-size: 1.1rem; font-weight: 500; margin-bottom: 8px; }
.cart__empty span { font-size: 0.9rem; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  animation: slideIn 0.3s ease;
}
.cart-item__emoji { font-size: 2rem; flex-shrink: 0; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item__price { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  transition: all var(--transition);
  line-height: 1;
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-num { font-weight: 700; font-size: 0.95rem; min-width: 20px; text-align: center; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.cart__footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}
.cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--text-muted);
}
.cart__total-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* ===========================
   MODAL
=========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1300;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 480px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}
.modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%);
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.modal__close:hover { background: var(--primary); color: white; }
.modal__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 20px;
}
.modal__summary {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.8;
}

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--primary); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-error {
  min-height: 22px;
  margin: 0 0 10px;
  color: #B3261E;
  font-size: 0.82rem;
  line-height: 1.4;
}

.form-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--text-muted);
}
.form-total strong { font-size: 1.4rem; color: var(--primary); }

/* SUCCESS MODAL */
.modal--success { text-align: center; padding: 60px 40px; }
.success__icon { font-size: 4rem; margin-bottom: 20px; }
.success__title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 16px;
}
.success__text { color: var(--text-muted); margin-bottom: 32px; line-height: 1.6; font-size: 1rem; }

/* ===========================
   CONTACTS
=========================== */
.contacts {
  padding: 100px 0;
  background: var(--bg-dark);
}
.contacts .section-title { color: white; }
.contacts .section-sub { color: rgba(255,255,255,0.5); }
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.contact-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.contact-card__icon { font-size: 2.5rem; margin-bottom: 16px; }
.contact-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.contact-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.7; }
.contact-card a { color: var(--accent-light); }
.contact-card a:hover { color: white; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer .logo__name { color: var(--accent); }
.footer .logo__sub { color: rgba(255,255,255,0.4); }
.footer__copy { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer__tagline { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer__admin-link {
  color: rgba(255,255,255,0.25);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color var(--transition);
  letter-spacing: 0.03em;
}
.footer__admin-link:hover { color: var(--accent); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .nav { display: none; }
  .hero__stats { gap: 16px; }
  .stat__num { font-size: 1.5rem; }
  .step__arrow { display: none; }
  .how__steps { flex-direction: column; align-items: center; }
  .footer__inner { justify-content: center; text-align: center; }
  .cart { width: 100%; }
}
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; }
}

/* ===========================
   SCROLLBAR
=========================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }
