/* ============================================================
   ЖАРА — FOOD DELIVERY  |  style.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #ff5722;
  --orange-light: #ff7043;
  --orange-glow: rgba(255,87,34,.35);
  --red: #e53935;
  --bg: #0d0d0f;
  --bg2: #141418;
  --bg3: #1c1c22;
  --glass: rgba(255,255,255,.04);
  --glass-border: rgba(255,255,255,.09);
  --text: #f0ede8;
  --text-muted: #8a8790;
  --card-bg: #18181e;
  --card-border: rgba(255,255,255,.07);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,.5);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 99px; }

/* ─── SELECTION ─── */
::selection { background: var(--orange); color: #fff; }

/* ─── HEADER ─── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: rgba(13,13,15,.8);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 24px;
  height: 68px;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  height: 100%;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
  flex-shrink: 0;
}
.logo-icon { font-size: 24px; filter: drop-shadow(0 0 8px #ff5722aa); }
.logo-text {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px; font-weight: 900;
  letter-spacing: .04em;
  background: linear-gradient(135deg, #ff5722, #ff9800);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav { display: flex; gap: 8px; margin-left: auto; }
.nav-link {
  padding: 8px 16px; border-radius: 99px;
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: var(--transition);
  border: 1px solid transparent;
}
.nav-link:hover {
  color: var(--text); background: var(--glass);
  border-color: var(--glass-border);
}
.cart-btn {
  position: relative; cursor: pointer;
  width: 46px; height: 46px;
  border-radius: 50%; border: 1.5px solid var(--glass-border);
  background: var(--glass); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.cart-btn:hover {
  background: var(--orange); border-color: var(--orange);
  box-shadow: 0 0 20px var(--orange-glow);
  transform: scale(1.08);
}
.cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 99px; background: var(--orange);
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0);
  transition: .25s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.cart-count.visible { opacity: 1; transform: scale(1); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; gap: 48px;
  padding: 120px 48px 80px;
  max-width: 1300px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.hero > * { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; left: -48px; right: -48px; pointer-events: none; z-index: 0; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .18;
  animation: blobFloat 10s ease-in-out infinite;
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #ff5722, transparent);
  top: -100px; right: 10%;
  animation-delay: 0s;
}
.blob-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #ff9800, transparent);
  bottom: 5%; left: 5%;
  animation-delay: -4s;
}
.blob-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #e53935, transparent);
  top: 40%; left: 35%;
  animation-delay: -7s;
}
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-30px) scale(1.05); }
  66%      { transform: translate(-20px,20px) scale(.97); }
}
.hero-content {
  position: relative; z-index: 1;
  flex: 0 1 580px; min-width: 0;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 20px;
  padding: 6px 14px; border-radius: 99px;
  border: 1px solid rgba(255,87,34,.3);
  background: rgba(255,87,34,.08);
}
.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 24px;
}
.highlight {
  background: linear-gradient(135deg, #ff5722 0%, #ff9800 50%, #ffcc02 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 16px; line-height: 1.7; color: var(--text-muted);
  max-width: 480px; margin-bottom: 36px;
}
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: 99px;
  background: linear-gradient(135deg, #ff5722, #ff9800);
  color: #fff; font-size: 16px; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(255,87,34,.4);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,.15), transparent);
  transform: translateX(-100%); transition: .5s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,87,34,.55); }
.btn-hero:hover::after { transform: translateX(100%); }
.btn-hero:active { transform: translateY(0); }

/* ─── HERO VISUAL ─── */
.hero-visual {
  flex: 0 0 380px; display: flex; justify-content: center; align-items: center;
  position: relative; z-index: 1;
}
.pizza-orbit {
  width: 340px; height: 340px;
  position: relative; display: flex;
  align-items: center; justify-content: center;
}
.orbit-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px dashed rgba(255,87,34,.2);
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-pizza {
  font-size: 120px;
  filter: drop-shadow(0 0 40px rgba(255,87,34,.4));
  animation: heroFloat 4s ease-in-out infinite;
  user-select: none;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-18px) rotate(5deg); }
}
.orbit-emoji {
  position: absolute; font-size: 32px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
  animation: orbitMove 10s linear infinite;
  transform-origin: 170px 170px;
}
.e1 { animation-delay: 0s; }
.e2 { animation-delay: -2.5s; }
.e3 { animation-delay: -5s; }
.e4 { animation-delay: -7.5s; }
@keyframes orbitMove {
  from { transform: rotate(0deg) translateX(155px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(155px) rotate(-360deg); }
}

/* ─── TIMER SECTION ─── */
.timer-section {
  background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
  padding: 48px 24px;
}
.timer-inner {
  max-width: 700px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.timer-label {
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.75);
}
.timer-display {
  display: flex; align-items: center; gap: 12px;
}
.timer-block {
  background: rgba(0,0,0,.2); backdrop-filter: blur(10px);
  border-radius: 16px; padding: 16px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 110px;
}
.timer-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 52px; font-weight: 900;
  color: #fff; line-height: 1;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.timer-unit { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); }
.timer-sep {
  font-family: 'Unbounded', sans-serif;
  font-size: 48px; font-weight: 900; color: #fff;
  opacity: .6; animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: .6; } 50% { opacity: 0; } }
.timer-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: rgba(255,255,255,.85);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  50%      { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

/* ─── CATALOG ─── */
.catalog { padding: 100px 24px; }
.catalog-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(28px,4vw,44px); font-weight: 900;
  margin-bottom: 8px;
}
.section-sub { color: var(--text-muted); font-size: 16px; }

/* ─── FILTERS ─── */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 48px;
}
.filter-btn {
  padding: 10px 22px; border-radius: 99px;
  border: 1.5px solid var(--glass-border);
  background: var(--glass); color: var(--text-muted);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  position: relative; overflow: hidden;
}
.filter-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--orange), #ff9800);
  opacity: 0; transition: var(--transition); border-radius: 99px;
}
.filter-btn span { position: relative; z-index: 1; }
.filter-btn:hover { border-color: var(--orange); color: var(--text); }
.filter-btn.active {
  border-color: var(--orange); color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff9800);
  box-shadow: 0 4px 20px rgba(255,87,34,.35);
}
.filter-btn.active::before { opacity: 0; }

/* ─── CARDS GRID ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ─── FOOD CARD ─── */
.food-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: default;
  display: flex; flex-direction: column;
  animation: cardIn .4s cubic-bezier(.4,0,.2,1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.food-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,87,34,.3);
  box-shadow: 0 20px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(255,87,34,.1);
}
.card-img-wrap {
  height: 180px;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.food-card:hover .card-img { transform: scale(1.07); }

.card-img-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(13,13,15,.55) 0%, transparent 55%);
}
.card-emoji-fb {
  display: none;
  font-size: 72px; position: absolute; z-index: 1;
  align-items: center; justify-content: center;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.4));
  user-select: none;
  width: 100%; height: 100%;
}

.card-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  backdrop-filter: blur(8px);
}
.badge-new { background: rgba(76,175,80,.2); color: #66bb6a; border: 1px solid rgba(76,175,80,.3); }
.badge-hot { background: rgba(255,87,34,.2); color: #ff7043; border: 1px solid rgba(255,87,34,.3); }
.badge-hit { background: rgba(255,193,7,.2); color: #ffca28; border: 1px solid rgba(255,193,7,.3); }

.card-body { padding: 18px 18px 0; flex: 1; }
.card-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.3;
}
.card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.card-footer {
  padding: 16px 18px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.card-price {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px; font-weight: 900;
  background: linear-gradient(135deg, #ff5722, #ff9800);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.card-price-old {
  font-size: 13px; color: var(--text-muted);
  text-decoration: line-through; margin-left: 8px;
}

/* ─── ADD BUTTON ─── */
.add-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg3); border: 1.5px solid var(--glass-border);
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  font-size: 20px; line-height: 1;
  flex-shrink: 0;
}
.add-btn:hover {
  background: var(--orange); border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(255,87,34,.4);
  transform: scale(1.12) rotate(90deg);
  color: #fff;
}
.add-btn:active { transform: scale(.95) rotate(0); }

/* ─── ABOUT ─── */
.about { padding: 100px 24px; background: var(--bg2); }
.about-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.about-text p {
  color: var(--text-muted); font-size: 15px;
  line-height: 1.8; margin: 16px 0 24px;
}
.about-list {
  list-style: none; display: flex; flex-direction: column; gap: 14px;
}
.about-list li {
  display: flex; align-items: center; gap: 14px;
  font-size: 15px; color: var(--text-muted);
}
.about-icon { font-size: 20px; flex-shrink: 0; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stat-card {
  background: var(--bg3); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transition: var(--transition);
}
.stat-card:hover {
  border-color: rgba(255,87,34,.3);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  transform: translateY(-3px);
}
.stat-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 36px; font-weight: 900;
  background: linear-gradient(135deg, #ff5722, #ff9800);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13px; color: var(--text-muted); }

/* ─── CART OVERLAY ─── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

/* ─── CART PANEL ─── */
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: 420px; max-width: 96vw;
  background: #16161a;
  border-left: 1px solid var(--glass-border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,.6);
}
.cart-panel.open { transform: translateX(0); }

.cart-header {
  padding: 20px 24px; border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.cart-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px; font-weight: 700;
}
.cart-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--glass-border);
  background: var(--glass); color: var(--text);
  cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.cart-close:hover { background: var(--red); border-color: var(--red); }

.cart-body { flex: 1; overflow-y: auto; padding: 16px 0; }

.cart-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding: 60px 24px;
  color: var(--text-muted); text-align: center;
}
.cart-empty-icon { font-size: 64px; opacity: .3; }
.cart-empty p { font-size: 17px; font-weight: 600; color: var(--text); }
.cart-empty span { font-size: 14px; }

.cart-items { list-style: none; }
.cart-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px; border-bottom: 1px solid var(--glass-border);
  animation: itemIn .3s cubic-bezier(.4,0,.2,1);
}
@keyframes itemIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cart-item-emoji { font-size: 36px; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.cart-item-price { font-size: 13px; color: var(--orange); font-weight: 600; }

.cart-qty {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.qty-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--glass-border);
  background: var(--glass); color: var(--text);
  cursor: pointer; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--orange); border-color: var(--orange); }
.qty-num { font-size: 15px; font-weight: 700; min-width: 20px; text-align: center; }

.cart-footer {
  padding: 20px 24px; border-top: 1px solid var(--glass-border);
  display: flex; flex-direction: column; gap: 14px; flex-shrink: 0;
}
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 17px; font-weight: 600;
}
.cart-total-price {
  font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 900;
  background: linear-gradient(135deg, #ff5722, #ff9800);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.cart-delivery-note {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
}
.delivery-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #66bb6a; flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
.cart-free-bar-wrap { display: flex; flex-direction: column; gap: 6px; }
.cart-free-bar {
  height: 6px; border-radius: 99px;
  background: var(--bg3); overflow: hidden;
}
.cart-free-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #ff5722, #ff9800);
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.cart-free-label { font-size: 12px; color: var(--text-muted); }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #27272d; border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 12px 24px;
  font-size: 14px; font-weight: 500; color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap; z-index: 999;
}
.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--glass-border);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; text-align: center;
}
.footer-desc { color: var(--text-muted); font-size: 14px; }
.footer-copy { font-size: 12px; color: #444; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-content { max-width: 100%; }
  .hero-visual { margin-top: 32px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .nav { display: none; }
}
@media (max-width: 600px) {
  .pizza-orbit { width: 260px; height: 260px; }
  .hero-pizza { font-size: 90px; }
  .orbit-emoji { font-size: 24px; }
  @keyframes orbitMove {
    from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
  }
  .orbit-emoji { transform-origin: 130px 130px; }
  .timer-num { font-size: 38px; }
  .timer-block { min-width: 85px; padding: 12px 16px; }
}
