:root {
  --bg: radial-gradient(circle at 20% 20%, #ffffff, #f7f5f5 50%, #f2efef);
  --card: rgba(255, 255, 255, 0.9);
  --frost: #c2272d;
  --accent: #d2172d;
  --accent-2: #ff6f61;
  --text: #b1101f;
  --muted: #9b2937;
  --success: #2e9d50;
  --warning: #c15d1b;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

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

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#root {
  position: relative;
  z-index: 1;
}

.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(5px 5px at 10% 20%, rgba(178, 26, 38, 0.7), transparent),
    radial-gradient(5px 5px at 80% 30%, rgba(178, 26, 38, 0.65), transparent),
    radial-gradient(4px 4px at 50% 70%, rgba(178, 26, 38, 0.7), transparent),
    radial-gradient(4px 4px at 30% 60%, rgba(178, 26, 38, 0.65), transparent),
    radial-gradient(3px 3px at 60% 15%, rgba(178, 26, 38, 0.6), transparent),
    radial-gradient(3px 3px at 25% 80%, rgba(178, 26, 38, 0.55), transparent),
    radial-gradient(6px 6px at 70% 55%, rgba(178, 26, 38, 0.6), transparent),
    radial-gradient(5px 5px at 15% 45%, rgba(178, 26, 38, 0.6), transparent),
    radial-gradient(4px 4px at 40% 25%, rgba(178, 26, 38, 0.6), transparent),
    radial-gradient(3px 3px at 75% 75%, rgba(178, 26, 38, 0.55), transparent),
    radial-gradient(5px 5px at 55% 85%, rgba(178, 26, 38, 0.6), transparent),
    radial-gradient(4px 4px at 90% 60%, rgba(178, 26, 38, 0.55), transparent);
  background-size:
    480px 780px, 520px 800px, 500px 760px, 520px 780px,
    500px 820px, 520px 820px, 500px 800px, 520px 800px,
    520px 780px, 520px 820px, 520px 820px, 520px 800px;
  animation: snowfall 22s linear infinite;
  opacity: 0.9;
}

@keyframes snowfall {
  from {
    background-position:
      0 0, 0 0, 0 0, 0 0,
      0 0, 0 0, 0 0, 0 0,
      0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position:
      0 520px, 0 560px, 0 500px, 0 540px,
      0 580px, 0 560px, 0 520px, 0 560px,
      0 520px, 0 560px, 0 560px, 0 540px;
  }
}

.wrap {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 24px 0 110px;
}

.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82));
  border: 2px solid rgba(214, 28, 49, 0.25);
  border-radius: 24px;
  padding: 24px 24px 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(3px 3px at 20% 30%, rgba(214, 28, 49, 0.4), transparent 55%),
    radial-gradient(3px 3px at 80% 40%, rgba(178, 26, 38, 0.35), transparent 55%),
    radial-gradient(3px 3px at 60% 70%, rgba(214, 28, 49, 0.35), transparent 55%);
  opacity: 0.45;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(210, 23, 45, 0.12), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 111, 97, 0.14), transparent 40%),
    radial-gradient(circle at 50% 70%, rgba(214, 28, 49, 0.1), transparent 40%);
  pointer-events: none;
}

.title {
  font-family: "Playfair Display", "Manrope", serif;
  font-size: clamp(32px, 4vw, 42px);
  margin: 0 0 12px;
  letter-spacing: 0.5px;
}

.title.fancy {
  font-family: "Playfair Display", "Manrope", serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-logo {
  margin: 10px 0 18px;
  display: flex;
  justify-content: center;
}

.hero-logo img {
  height: 280px;
  width: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(18, 26, 52, 0.08);
}

.subtitle {
  color: #b94d55;
  margin: 0 0 24px;
  font-size: 16px;
}

.subtitle.subtitle-location {
  font-weight: 700;
  color: #b5383f;
  margin-bottom: 12px;
}

.tg-help {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.tg-wait {
  max-width: 540px;
  margin: 18px auto 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(214, 28, 49, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(18, 26, 52, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.coming-soon .tg-wait {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: min(640px, 92%);
  z-index: 5;
}

.tg-help .tg-text {
  color: #1b52b9;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1b9ada, #0f7ac3);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 24px rgba(15, 122, 195, 0.28);
}

.tg-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 122, 195, 0.34);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

.time-box {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(214, 28, 49, 0.2);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(4px);
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown .time-box:nth-child(4) {
  grid-column: 2 / 3;
}

@media (max-width: 540px) {
  .countdown {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    max-width: 420px;
  }
  .countdown .time-box:nth-child(4) {
    grid-column: auto;
  }
}

.time-value {
  font-size: 32px;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(214, 28, 49, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(214, 28, 49, 0.25);
  color: var(--text);
  font-weight: 600;
  width: fit-content;
}

.sections {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

@media (max-width: 1100px) {
  .sections {
    grid-template-columns: 1fr;
  }
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.group-block {
  margin-bottom: 18px;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 12px;
}

.group-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.group-count {
  font-size: 13px;
  color: var(--muted);
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(214, 28, 49, 0.18);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card::after {
  content: "";
  position: absolute;
  inset: 8px;
  background:
    radial-gradient(4px 4px at 15% 20%, rgba(214, 28, 49, 0.35), transparent 60%),
    radial-gradient(3px 3px at 70% 30%, rgba(178, 26, 38, 0.35), transparent 55%),
    radial-gradient(4px 4px at 40% 70%, rgba(214, 28, 49, 0.32), transparent 60%),
    radial-gradient(3px 3px at 85% 55%, rgba(178, 26, 38, 0.35), transparent 55%),
    radial-gradient(2px 2px at 50% 45%, rgba(214, 28, 49, 0.4), transparent 60%);
  opacity: 0.65;
  pointer-events: none;
  border-radius: 14px;
}

.card h3 {
  margin: 0;
  font-size: 18px;
}

.badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(214, 28, 49, 0.12);
  color: var(--accent);
  border: 1px solid rgba(214, 28, 49, 0.3);
  width: fit-content;
  font-family: "Aptos", "Segoe UI", "Manrope", sans-serif;
  font-weight: 700;
}

.desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: var(--frost);
}

.btn {
  border: none;
  background: linear-gradient(135deg, #e41c35, #b1101f);
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 22px rgba(177, 16, 31, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.secondary {
  background: rgba(214, 28, 49, 0.08);
  box-shadow: none;
}

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

.qty button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(214, 28, 49, 0.25);
  background: rgba(214, 28, 49, 0.08);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  font-size: 16px;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.qty span {
  display: inline-block;
  min-width: 12px;
  text-align: center;
  vertical-align: middle;
}

.panel {
  background: var(--card);
  border: 1px solid rgba(214, 28, 49, 0.22);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  align-self: start;
}

.panel h4 {
  margin: 0 0 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(214, 28, 49, 0.1);
}

.cart-item:last-child {
  border-bottom: none;
}

.card.card-blocked {
  opacity: 0.6;
  position: relative;
}

.card.card-blocked .badge {
  background: #ffdada;
  color: #c1121f;
  border-color: rgba(193, 18, 31, 0.6);
  animation: stopBlink 1.2s ease-in-out infinite alternate;
}

.cart-item-blocked {
  background: #fff4f4;
  border: 1px solid rgba(214, 28, 49, 0.6);
  border-radius: 12px;
  padding: 12px;
}

.cart-item-alert {
  animation: cartBlink 0.8s ease-in-out 2;
}

@keyframes cartBlink {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 28, 49, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(214, 28, 49, 0.15);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(214, 28, 49, 0);
  }
}

.note-stop {
  color: #c1121f;
  font-size: 12px;
  margin-top: 4px;
  background: #ffdada;
  border: 1px solid rgba(193, 18, 31, 0.35);
  padding: 4px 8px;
  border-radius: 8px;
  display: inline-block;
  animation: stopBlink 1.2s ease-in-out infinite alternate;
}

.cart-item-blocked .note-stop {
  box-shadow: 0 0 0 0 rgba(193, 18, 31, 0.3);
}

.blocked-message {
  animation: stopBlink 1.2s ease-in-out infinite alternate;
}

/* перекрываем общий .note для стоп-уведомлений */
.note.note-stop,
.blocked-message {
  background: #ffdada !important;
  border-color: rgba(193, 18, 31, 0.6) !important;
  color: #c1121f !important;
}

@keyframes stopBlink {
  0% {
    box-shadow: 0 0 0 0 rgba(193, 18, 31, 0.35);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(193, 18, 31, 0);
  }
}

.muted {
  color: var(--muted);
}

.total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0;
  font-weight: 700;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-size: 14px;
  color: var(--muted);
}

input,
select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(214, 28, 49, 0.22);
  background: rgba(214, 28, 49, 0.04);
  color: var(--text);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #b1101f 50%),
    linear-gradient(135deg, #b1101f 50%, transparent 50%),
    linear-gradient(to right, rgba(214, 28, 49, 0.16), rgba(214, 28, 49, 0.06));
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%, 0 0;
  background-size: 8px 8px, 8px 8px, 100% 100%;
  background-repeat: no-repeat;
}

select option:hover,
select optgroup:hover {
  background: rgba(214, 28, 49, 0.1);
}

input::placeholder {
  color: #c55b65;
}

.note {
  background: rgba(46, 157, 80, 0.08);
  color: #2f7d4d;
  border: 1px solid rgba(46, 157, 80, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

.order-id {
  font-size: 18px;
  font-weight: 700;
  color: var(--success);
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(214, 28, 49, 0.24);
  color: var(--text);
  background: rgba(214, 28, 49, 0.07);
  width: fit-content;
  font-size: 13px;
}

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

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.categories button {
  border: 1px solid rgba(214, 28, 49, 0.22);
  background: rgba(214, 28, 49, 0.05);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.categories button.active {
  background: rgba(214, 28, 49, 0.14);
  border-color: rgba(214, 28, 49, 0.35);
}

.empty {
  text-align: center;
  padding: 16px 8px;
  color: var(--muted);
}

.footer-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.footer-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(214, 28, 49, 0.2);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  border-radius: 0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 50;
  overflow: visible;
}

.footer-last-order {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 220px;
  position: relative;
}

.footer-label {
  font-weight: 700;
  color: var(--text);
}

.footer-id {
  font-weight: 800;
  color: var(--accent);
}

.footer-total {
  color: var(--text);
  font-weight: 700;
}

.footer-last-order-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-last-order-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-chip {
  background: rgba(214, 28, 49, 0.08);
  color: var(--text);
  border: 1px solid rgba(214, 28, 49, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.footer-chip-delivery {
  background: rgba(137, 194, 83, 0.12);
  border-color: rgba(137, 194, 83, 0.35);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  font-weight: 600;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(214, 28, 49, 0.2);
  border-radius: 28px;
  transition: 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #e41c35, #b1101f);
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.footer-btn {
  border: none;
  background: linear-gradient(135deg, #e41c35, #b1101f);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(177, 16, 31, 0.28);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.footer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(177, 16, 31, 0.35);
}

.footer-more {
  border: 1px solid rgba(214, 28, 49, 0.22);
  background: rgba(214, 28, 49, 0.06);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
}

.footer-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(214, 28, 49, 0.2);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  z-index: 70;
  max-height: 260px;
  overflow-y: auto;
}

.footer-popover-item {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(214, 28, 49, 0.06);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.popover-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.popover-id {
  background: rgba(214, 28, 49, 0.08);
  border: 1px solid rgba(214, 28, 49, 0.3);
  color: #b10f27;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 700;
}
.popover-time {
  font-size: 14px;
}

.footer-id-button {
  background: rgba(214, 28, 49, 0.08);
  border: 1px solid rgba(214, 28, 49, 0.6);
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.footer-id-button:hover {
  background: rgba(214, 28, 49, 0.14);
  border-color: rgba(214, 28, 49, 0.8);
  transform: translateY(-1px);
}

.footer-chip-ready {
  background: #e6f7ec;
  border: 1px solid #b5e1c4;
  color: #21693d;
}
.footer-chip-issued {
  background: #e6f7ec;
  border: 1px solid #b5e1c4;
  color: #21693d;
}

.footer-chip-cancelled {
  background: #ffe8e8;
  border: 1px solid #d2172d;
  color: #b10f27;
}

.footer-chip-wait {
  background: #fff5e5;
  border: 1px solid #f3d5a5;
  color: #c46b1f;
}

.footer-chip-blink {
  animation: blink 0.8s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(33, 105, 61, 0.6);
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

.fireworks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.firework {
  position: absolute;
  width: 4px;
  height: 4px;
  background: transparent;
  border-radius: 50%;
  box-shadow:
    0 0 6px 0 rgba(255, 215, 90, 0.9),
    0 0 6px 0 rgba(255, 112, 112, 0.9),
    0 0 6px 0 rgba(120, 200, 255, 0.9),
    0 0 6px 0 rgba(137, 194, 83, 0.85),
    0 0 6px 0 rgba(255, 167, 189, 0.88),
    0 0 6px 0 rgba(255, 255, 255, 0.85),
    0 0 6px 0 rgba(255, 179, 71, 0.85),
    0 0 6px 0 rgba(110, 180, 255, 0.8);
  animation: explode 1.4s ease-out infinite;
}

.firework.f1 {
  top: 30%;
  left: 22%;
  animation-delay: 0s;
}
.firework.f2 {
  top: 42%;
  left: 58%;
  animation-delay: 0.3s;
}
.firework.f3 {
  top: 62%;
  left: 36%;
  animation-delay: 0.6s;
}
.firework.f4 {
  top: 50%;
  left: 75%;
  animation-delay: 0.9s;
}
.firework.f5 {
  top: 70%;
  left: 18%;
  animation-delay: 1.2s;
}

@keyframes explode {
  0% {
    box-shadow:
      0 0 6px 0 rgba(255, 215, 90, 0.95),
      0 0 6px 0 rgba(255, 112, 112, 0.95),
      0 0 6px 0 rgba(120, 200, 255, 0.95),
      0 0 6px 0 rgba(137, 194, 83, 0.9),
      0 0 6px 0 rgba(255, 167, 189, 0.9),
      0 0 6px 0 rgba(255, 255, 255, 0.9),
      0 0 6px 0 rgba(255, 179, 71, 0.9),
      0 0 6px 0 rgba(110, 180, 255, 0.85);
    transform: scale(0.55);
  }
  40% {
    box-shadow:
      22px -16px 8px 10px rgba(255, 215, 90, 0.85),
      -20px 18px 8px 10px rgba(255, 112, 112, 0.85),
      10px 24px 8px 10px rgba(120, 200, 255, 0.85),
      -16px -22px 8px 10px rgba(137, 194, 83, 0.8),
      18px 20px 8px 10px rgba(255, 167, 189, 0.85),
      -8px 30px 8px 10px rgba(255, 255, 255, 0.8),
      20px 8px 8px 10px rgba(255, 179, 71, 0.8),
      -24px 10px 8px 10px rgba(110, 180, 255, 0.8);
    transform: scale(1);
  }
  100% {
    box-shadow:
      50px -38px 10px 0 rgba(255, 215, 90, 0),
      -48px 40px 10px 0 rgba(255, 112, 112, 0),
      18px 60px 10px 0 rgba(120, 200, 255, 0),
      -28px -72px 10px 0 rgba(137, 194, 83, 0),
      42px 48px 10px 0 rgba(255, 167, 189, 0),
      -14px 78px 10px 0 rgba(255, 255, 255, 0),
      60px 16px 10px 0 rgba(255, 179, 71, 0),
      -66px 18px 10px 0 rgba(110, 180, 255, 0);
    transform: scale(1.35);
  }
}

.firework.big {
  width: 7px;
  height: 7px;
  animation: explode-big 1.6s ease-out infinite;
}

@keyframes explode-big {
  0% {
    box-shadow:
      0 0 6px 0 rgba(255, 215, 90, 0.95),
      0 0 6px 0 rgba(255, 112, 112, 0.95),
      0 0 6px 0 rgba(120, 200, 255, 0.95),
      0 0 6px 0 rgba(137, 194, 83, 0.9),
      0 0 6px 0 rgba(255, 167, 189, 0.9),
      0 0 6px 0 rgba(255, 255, 255, 0.9),
      0 0 6px 0 rgba(255, 179, 71, 0.9),
      0 0 6px 0 rgba(110, 180, 255, 0.9),
      0 0 6px 0 rgba(178, 255, 140, 0.9),
      0 0 6px 0 rgba(255, 200, 120, 0.9),
      0 0 6px 0 rgba(255, 140, 200, 0.9),
      0 0 6px 0 rgba(200, 220, 255, 0.9),
      0 0 6px 0 rgba(255, 240, 180, 0.9),
      0 0 6px 0 rgba(180, 255, 220, 0.9),
      0 0 6px 0 rgba(220, 180, 255, 0.9);
    transform: scale(0.6);
  }
  40% {
    box-shadow:
      120px -70px 12px 16px rgba(255, 215, 90, 0.85),
      -116px 66px 12px 16px rgba(255, 112, 112, 0.85),
      48px 120px 12px 16px rgba(120, 200, 255, 0.85),
      -64px -124px 12px 16px rgba(137, 194, 83, 0.8),
      98px 110px 12px 16px rgba(255, 167, 189, 0.85),
      -28px 150px 12px 16px rgba(255, 255, 255, 0.8),
      140px 30px 12px 16px rgba(255, 179, 71, 0.8),
      -150px 36px 12px 16px rgba(110, 180, 255, 0.8),
      58px -120px 12px 16px rgba(178, 255, 140, 0.8),
      -72px 134px 12px 16px rgba(255, 200, 120, 0.8),
      42px 146px 12px 16px rgba(255, 140, 200, 0.8),
      -54px 94px 12px 16px rgba(200, 220, 255, 0.8),
      96px -116px 12px 16px rgba(255, 240, 180, 0.8),
      -34px -150px 12px 16px rgba(180, 255, 220, 0.8),
      118px 82px 12px 16px rgba(220, 180, 255, 0.8);
    transform: scale(1.1);
  }
  100% {
    box-shadow:
      220px -160px 16px 0 rgba(255, 215, 90, 0),
      -210px 170px 16px 0 rgba(255, 112, 112, 0),
      70px 240px 16px 0 rgba(120, 200, 255, 0),
      -120px -250px 16px 0 rgba(137, 194, 83, 0),
      180px 200px 16px 0 rgba(255, 167, 189, 0),
      -60px 280px 16px 0 rgba(255, 255, 255, 0),
      260px 60px 16px 0 rgba(255, 179, 71, 0),
      -280px 72px 16px 0 rgba(110, 180, 255, 0),
      120px -220px 16px 0 rgba(178, 255, 140, 0),
      -140px 240px 16px 0 rgba(255, 200, 120, 0),
      90px 260px 16px 0 rgba(255, 140, 200, 0),
      -100px 170px 16px 0 rgba(200, 220, 255, 0),
      180px -230px 16px 0 rgba(255, 240, 180, 0),
      -70px -270px 16px 0 rgba(180, 255, 220, 0),
      210px 140px 16px 0 rgba(220, 180, 255, 0);
    transform: scale(1.4);
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 20px 18px 14px;
  }

  .footer-bar {
    padding: 12px 14px;
  }
}

.coming-soon .hero-countdown {
  margin-top: 0;
}

.coming-soon {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon .hero-countdown .title {
  font-family: "Aptos", "Segoe UI", "Manrope", sans-serif;
  font-size: clamp(38px, 5vw, 52px);
  letter-spacing: 0.5px;
  text-align: center;
}

.coming-soon .countdown {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  justify-items: center;
  max-width: 560px;
  margin: 0 auto;
}

/* Новогодний декор */
.decor {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.decor-garland {
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background:
    radial-gradient(circle at 5% 50%, rgba(214, 28, 49, 0.4) 0 8px, transparent 10px),
    radial-gradient(circle at 15% 40%, rgba(255, 167, 189, 0.8) 0 8px, transparent 10px),
    radial-gradient(circle at 25% 60%, rgba(178, 26, 38, 0.7) 0 8px, transparent 10px),
    radial-gradient(circle at 35% 45%, rgba(255, 209, 102, 0.85) 0 8px, transparent 10px),
    radial-gradient(circle at 45% 55%, rgba(137, 194, 83, 0.8) 0 8px, transparent 10px),
    radial-gradient(circle at 55% 45%, rgba(214, 28, 49, 0.7) 0 8px, transparent 10px),
    radial-gradient(circle at 65% 60%, rgba(255, 167, 189, 0.8) 0 8px, transparent 10px),
    radial-gradient(circle at 75% 40%, rgba(255, 209, 102, 0.85) 0 8px, transparent 10px),
    radial-gradient(circle at 85% 55%, rgba(137, 194, 83, 0.8) 0 8px, transparent 10px),
    radial-gradient(circle at 95% 45%, rgba(214, 28, 49, 0.4) 0 8px, transparent 10px);
  background-repeat: repeat-x;
  opacity: 0.8;
}

.decor-garland-mid {
  top: 90px;
  height: 60px;
  opacity: 0.75;
  background-position: 0 10px;
}

.decor-garland-bottom {
  bottom: 0;
  top: auto;
  height: 60px;
  opacity: 0.7;
  background-position: 0 -8px;
}

.decor-baubles {
  inset: 0;
  background:
    radial-gradient(14px 14px at 6% 86%, rgba(214, 28, 49, 0.45), transparent 55%),
    radial-gradient(10px 10px at 14% 90%, rgba(255, 209, 102, 0.55), transparent 55%),
    radial-gradient(12px 12px at 92% 82%, rgba(178, 26, 38, 0.45), transparent 55%),
    radial-gradient(9px 9px at 84% 90%, rgba(137, 194, 83, 0.5), transparent 55%),
    radial-gradient(11px 11px at 18% 30%, rgba(123, 211, 247, 0.45), transparent 60%),
    radial-gradient(12px 12px at 72% 25%, rgba(255, 167, 189, 0.5), transparent 60%),
    radial-gradient(10px 10px at 60% 78%, rgba(214, 28, 49, 0.4), transparent 60%),
    radial-gradient(8px 8px at 32% 72%, rgba(255, 209, 102, 0.5), transparent 55%),
    radial-gradient(9px 9px at 48% 18%, rgba(137, 194, 83, 0.45), transparent 55%);
  opacity: 0.75;
}

.decor-glow {
  inset: 0;
  background: radial-gradient(40% 40% at 15% 20%, rgba(214, 28, 49, 0.12), transparent 60%);
  opacity: 0.9;
}

.decor-glow-right {
  inset: 0;
  background:
    radial-gradient(32% 35% at 82% 18%, rgba(255, 209, 102, 0.14), transparent 60%),
    radial-gradient(26% 32% at 75% 72%, rgba(178, 26, 38, 0.1), transparent 60%);
  opacity: 0.8;
}

.decor-ornaments {
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(214, 28, 49, 0.08), transparent 22%),
    radial-gradient(circle at 80% 22%, rgba(255, 167, 189, 0.15), transparent 20%),
    radial-gradient(circle at 70% 70%, rgba(214, 28, 49, 0.08), transparent 28%),
    radial-gradient(circle at 25% 75%, rgba(137, 194, 83, 0.08), transparent 24%),
    radial-gradient(circle at 55% 55%, rgba(255, 209, 102, 0.08), transparent 22%);
  opacity: 0.7;
}
.footer-chip-ready:not(.footer-chip-blink) {
  animation: blink 0.8s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(33, 105, 61, 0.6);
}
.footer-chip-blink-wait {
  animation: blink 0.8s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(196, 107, 31, 0.5);
}
