/* Пицария Bella Mia — същият облик като досегашния сайт, изчистен и бърз. */

@font-face {
  font-family: "Rubik";
  src: url("../fonts/rubik-cyrillic.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik";
  src: url("../fonts/rubik-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #e30027;
  --red-dark: #b8001f;
  --red-soft: #fde8ec;
  --green: #03913e;
  --green-soft: #e3f4ea;
  --ink: #010f1c;
  --ink-soft: #4b5563;
  --cream: #f8f3ec;
  --cream-dark: #efe6d9;
  --paper: #ffffff;
  --line: #e9e1d5;
  --dark: #010f1c;
  --known: #fff6d6;
  --known-line: #f2d675;

  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-small: 0.875rem;
  --step-body: 1rem;
  --step-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-head: clamp(1.75rem, 1.2rem + 2vw, 2.625rem);
  --step-hero: clamp(2.25rem, 1.2rem + 4.6vw, 4.5rem);

  --margin: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 72px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 8px; }
.i { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--red); color: #fff;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, transform 120ms ease, color 160ms ease;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn:active { transform: scale(0.97); }
.btn--light { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--light:hover { background: var(--cream); color: var(--ink); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn--wide { width: 100%; }
.btn--big { min-height: 58px; font-size: 1.125rem; }
.btn[disabled] { background: #9aa0a6; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 0; color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Горна лента с телефоните ---------- */
.review-note { margin: 0; padding: 8px var(--margin); background: var(--green); color: #fff; font-size: var(--step-small); text-align: center; font-weight: 500; }
.topline {
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  padding: 8px var(--margin);
  background: var(--dark); color: #fff; font-size: var(--step-small);
}
.topline__group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topline__areas { opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topline__phone { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.topline__phone .i { color: var(--red); }
.topline__phone:hover { color: #fff; text-decoration: underline; }
.topline__apps { gap: 8px; }
.topline__apps a { display: block; line-height: 0; }
.topline__apps img { height: 30px; width: auto; display: block; }

/* ---------- Хедър: лого вляво, меню вдясно ---------- */
.header { position: sticky; top: 0; z-index: 40; background: var(--cream); box-shadow: 0 1px 0 var(--line); }
.header__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--margin); height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.header__logo { flex: none; }
.header__logo img { width: 128px; height: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 600; text-decoration: none; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.02em;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--red); }
.nav__link .i { transition: transform 200ms var(--ease-out); }
.drop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
  min-width: 250px; margin: 0; padding: 8px; list-style: none;
  background: var(--paper); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(1, 15, 28, 0.16);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 160ms ease, transform 200ms var(--ease-out), visibility 0s linear 200ms;
}
.drop a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; text-decoration: none; }
.drop a:hover { background: var(--cream); color: var(--red); }
.drop img { width: 28px; height: 28px; }
.nav__item--drop:hover .drop, .nav__item--drop:focus-within .drop, .nav__item--drop.is-open .drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__item--drop:hover .nav__link .i, .nav__item--drop.is-open .nav__link .i { transform: rotate(180deg); }
.header__cart {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px;
  background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600;
  box-shadow: inset 0 0 0 2px var(--line);
}
.header__cart:hover { color: var(--red); }
.header__cart .i { width: 24px; height: 24px; }
.header__count {
  position: absolute; top: -6px; left: 26px; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 0.75rem; line-height: 20px; text-align: center;
}
.header__count.is-bump { animation: bump 420ms var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.header__total:empty { display: none; }
.header__burger { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .topline__areas { display: none; }
  .topline { justify-content: center; gap: 4px 18px; padding-block: 6px; }
  .header__inner { gap: 12px; }
  .header__logo img { width: 100px; }
  .header__cart { margin-left: auto; padding-inline: 10px; }
  .header__total { display: none; }
  .header__burger {
    display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 10px;
    background: var(--red); color: #fff; cursor: pointer; order: 3;
  }
  .header__burger-lines, .header__burger-lines::before, .header__burger-lines::after {
    display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 200ms var(--ease-out), opacity 120ms;
  }
  .header__burger-lines::before, .header__burger-lines::after { content: ""; position: absolute; left: 0; }
  .header__burger-lines::before { top: -6px; }
  .header__burger-lines::after { top: 6px; }
  .header__burger[aria-expanded="true"] .header__burger-lines { background: transparent; }
  .header__burger[aria-expanded="true"] .header__burger-lines::before { transform: translateY(6px) rotate(45deg); }
  .header__burger[aria-expanded="true"] .header__burger-lines::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: var(--paper); box-shadow: 0 18px 30px rgba(1, 15, 28, 0.14);
    max-height: calc(100svh - 120px); overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: block; animation: drop-in 220ms var(--ease-out); }
  .nav__list { flex-direction: column; align-items: stretch; padding: 8px var(--margin) 16px; gap: 0; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 4px; border-radius: 0; font-size: 1rem; box-shadow: 0 1px 0 var(--line); }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 4px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.flash { max-width: var(--max); margin: 16px auto; padding: 14px 18px; border-radius: var(--radius); background: var(--red-soft); color: var(--red-dark); font-weight: 500; width: calc(100% - 2 * var(--margin)); }

/* ---------- Банер ---------- */
.hero { position: relative; overflow: hidden; background: #1c1b1d; color: #fff; min-height: clamp(360px, 46vw, 560px); display: flex; align-items: center; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; animation: slide 18s infinite; }
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 6s; }
.hero__slide:nth-child(3) { animation-delay: 12s; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: drift 18s linear infinite; }
@keyframes slide { 0% { opacity: 0; } 4% { opacity: 1; } 33% { opacity: 1; } 37% { opacity: 0; } 100% { opacity: 0; } }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(10, 8, 8, 0.38); pointer-events: none; }
.hero__text { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 56px var(--margin); }
.hero__title { font-size: var(--step-hero); font-weight: 800; line-height: 1; max-width: 12ch; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero__lead { margin-top: 18px; max-width: 44ch; font-size: var(--step-lead); }
/* Текстът на всеки банер се сменя заедно със снимката (същият цикъл от 18 секунди) */
.hero__copies { display: grid; }
.hero__copy { grid-area: 1 / 1; opacity: 0; animation: slide 18s infinite; }
.hero__copy:nth-child(2) { animation-delay: 6s; }
.hero__copy:nth-child(3) { animation-delay: 12s; }
.hero__title--offer { font-size: clamp(1.75rem, 4.2vw, 3.25rem); max-width: 22ch; line-height: 1.1; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn--light { box-shadow: none; }
@media (max-width: 700px) {
  .hero { min-height: 0; }
  .hero__slide img { object-position: 78% 50%; }
  .hero::after { background: linear-gradient(0deg, rgba(10, 8, 8, 0.72), rgba(10, 8, 8, 0.25)); }
  .hero__text { padding-block: 120px 32px; }
  .hero--known { display: none; }
  .hero--known + .known { margin-top: 16px; }
}

/* ---------- Запомнен клиент (оцветено) ---------- */
.known { max-width: var(--max); margin: 24px auto 0; padding: 0 var(--margin); }
.known__text { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius); background: var(--known); box-shadow: inset 0 0 0 2px var(--known-line); }
.known__text .i { color: var(--red); margin-top: 3px; width: 22px; height: 22px; }
.known--order { margin: 0 0 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--known); box-shadow: inset 0 0 0 2px var(--known-line); }
.known--order .known__text { padding: 0; background: none; box-shadow: none; }
.known__ask { margin-top: 12px; font-weight: 600; }
.known__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.known.is-kept, .known--order.is-kept { background: var(--green-soft); box-shadow: inset 0 0 0 2px #9fd5b3; }

.closed { max-width: var(--max); margin: 24px auto 0; padding: 16px 20px; border-radius: var(--radius); background: var(--red-soft); color: var(--red-dark); font-weight: 600; width: calc(100% - 2 * var(--margin)); }

/* ---------- Меню ---------- */
.menu { background: linear-gradient(rgba(248, 243, 236, 0.9), rgba(248, 243, 236, 0.9)), url("../img/ui/pattern-light.webp") center top / 900px auto repeat; background-color: var(--cream); padding: 72px 0 96px; }
.menu__intro { text-align: center; padding: 0 var(--margin); }
.menu__title { font-size: var(--step-head); font-weight: 700; }
.menu__title span { color: var(--red); }

.cats { position: sticky; top: var(--header-h); z-index: 30; margin-top: 28px; background: rgba(248, 243, 236, 0.96); }
.cats__list { display: flex; gap: 8px; max-width: var(--max); margin: 0 auto; padding: 10px var(--margin); list-style: none; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.cats__list::-webkit-scrollbar { display: none; }
.cats__list li { flex: 1 0 auto; scroll-snap-align: start; }
.cats__item {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 104px; padding: 12px 10px;
  border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; text-align: center;
  box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.cats__item img { width: 56px; height: 56px; transition: transform 240ms var(--ease-out); }
.cats__item:hover { color: var(--red); }
.cats__item:hover img { transform: scale(1.08) rotate(-4deg); }
.cats__item.is-active { color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.cats.is-stuck .cats__item { flex-direction: row; min-width: 0; padding: 8px 14px; }
.cats.is-stuck .cats__item img { width: 30px; height: 30px; }
.cats.is-stuck { box-shadow: 0 6px 18px rgba(1, 15, 28, 0.08); }
@media (max-width: 700px) {
  .cats { margin-top: 20px; }
  .cats__list { padding-block: 8px; gap: 6px; }
  .cats__item, .cats.is-stuck .cats__item { flex-direction: row; min-width: 0; padding: 8px 12px; font-size: 0.875rem; }
  .cats__item img, .cats.is-stuck .cats__item img { width: 28px; height: 28px; }
}

.cat { max-width: var(--max); margin: 0 auto; padding: 48px var(--margin) 0; }
.cat__title { display: flex; align-items: center; gap: 12px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; }
.cat__title img { width: 44px; height: 44px; }
.cat__count { margin-left: 4px; padding: 2px 10px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: 0.875rem; font-weight: 500; }
.cat__note { margin-top: 8px; color: var(--ink-soft); max-width: 70ch; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
@media (max-width: 1020px) { .cards { grid-template-columns: 1fr; gap: 14px; } }
.card {
  display: grid; grid-template-columns: 160px 1fr; overflow: hidden;
  background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
  transition: box-shadow 200ms ease, transform 200ms var(--ease-out);
}
@media (hover: hover) { .card:hover { box-shadow: 0 0 0 1px var(--cream-dark), 0 14px 30px rgba(1, 15, 28, 0.08); transform: translateY(-2px); } }
.card__photo { display: block; width: 100%; padding: 0; border: 0; background: var(--cream-dark); cursor: zoom-in; }
.card__photo img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.card__body { display: flex; flex-direction: column; padding: 16px 18px; min-width: 0; }
.card__name { font-size: 1.125rem; font-weight: 700; }
.card__desc { margin-top: 4px; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.45; }
.card__variants { margin-top: auto; padding-top: 12px; display: grid; gap: 8px; }
.variant { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.variant--single { margin-top: auto; padding-top: 12px; }
.card__variants .variant + .variant { padding-top: 8px; box-shadow: 0 -1px 0 var(--line); }
.variant__info { display: flex; flex-direction: column; line-height: 1.25; }
.variant__name { color: var(--ink-soft); font-size: 0.875rem; white-space: nowrap; }
.price { color: var(--red); font-weight: 700; font-size: 1.125rem; }
.order-btn {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--red); color: #fff;
  font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms ease, transform 120ms ease;
}
.order-btn:hover { background: var(--red-dark); }
.order-btn:active { transform: scale(0.95); }
.order-btn.is-done { background: var(--green); }
.order-btn--off { display: inline-flex; align-items: center; background: #9aa0a6; color: #fff; }
.card.is-added { animation: added 700ms var(--ease-out); }
@keyframes added { 0% { box-shadow: 0 0 0 1px var(--line); } 30% { box-shadow: 0 0 0 3px var(--green); } 100% { box-shadow: 0 0 0 1px var(--line); } }
@media (max-width: 520px) {
  .card { grid-template-columns: 104px 1fr; }
  .card__body { padding: 12px 14px; }
  .card__name { font-size: 1.0625rem; }
  .variant { flex-direction: column; align-items: stretch; gap: 6px; }
  .variant__info { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 8px; }
  .order-btn, .variant form { width: 100%; }
}

/* ---------- Happy Hour ---------- */
.happy { position: relative; overflow: hidden; color: #fff; background: #3a2a22; }
.happy__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.happy::after { content: ""; position: absolute; inset: 0; background: rgba(15, 10, 8, 0.5); }
.happy__text { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 88px var(--margin); }
.happy__text > * { max-width: 560px; }
.happy__kicker { color: #ffd34d; font-weight: 700; font-size: 1.125rem; }
.happy__title { margin: 6px 0 12px; font-size: var(--step-head); font-weight: 800; }
.happy__text .btn { margin-top: 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark) url("../img/ui/pattern-dark.webp") center / 1400px auto; color: #e9edf2; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { max-width: var(--max); margin: 0 auto; padding: 48px var(--margin) 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12); }
.footer__brand img { width: 150px; }
.footer__brand p { margin-top: 12px; }
.footer__apps { display: flex; gap: 16px; font-weight: 600; }
.footer__phones { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-self: center; }
.footer__phones p { display: flex; gap: 14px; align-items: flex-start; }
.footer__ring { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff; }
.footer__phones a { font-weight: 700; }
.footer__cols { max-width: var(--max); margin: 0 auto; padding: 40px var(--margin) 48px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; }
.footer__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.footer__title::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 10px; background: var(--red); border-radius: 2px; }
.footer__cols p + p { margin-top: 10px; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__shops li { display: flex; gap: 8px; align-items: flex-start; }
.footer__shops .i { color: var(--red); margin-top: 3px; }
.footer__bottom { background: var(--red); color: #fff; padding: 14px var(--margin); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--step-small); }
.footer__bottom p:last-child { display: flex; gap: 20px; }
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__phones { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .footer__cols { grid-template-columns: 1fr; } }

/* ---------- Плаваща поръчка и съобщение ---------- */
.dock {
  position: fixed; z-index: 45; right: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 12px 28px rgba(1, 15, 28, 0.28);
  animation: dock-in 320ms var(--ease-out);
}
.dock:hover { color: #fff; }
.dock[hidden] { display: none; }
.dock__go { padding: 8px 16px; border-radius: 999px; background: var(--red); }
@keyframes dock-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .dock { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); justify-content: space-between; } }

.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(var(--header-h) + 52px); transform: translate(-50%, -12px);
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 24px);
  padding: 12px 14px 12px 12px; border-radius: 14px; background: var(--paper); color: var(--ink);
  box-shadow: 0 16px 40px rgba(1, 15, 28, 0.22); opacity: 0; transition: opacity 200ms ease, transform 280ms var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast[hidden] { display: none; }
.toast__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; }
.toast__text { font-weight: 600; }
.toast__link { font-weight: 700; white-space: nowrap; }
.toast.is-error .toast__icon { background: var(--red); }

/* ---------- Вътрешни страници ---------- */
.page__band { background: linear-gradient(rgba(248, 243, 236, 0.88), rgba(248, 243, 236, 0.88)), url("../img/ui/pattern-light.webp") center / 900px auto; background-color: var(--cream); padding: 56px var(--margin); text-align: center; }
.page__title { font-size: var(--step-head); font-weight: 800; }
.page { display: flex; flex-direction: column; min-height: 70vh; }
.page__body { width: 100%; max-width: var(--max); margin: 0 auto; padding: 48px var(--margin) 24px; }
.page__body--fact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 48px; align-items: start; }
.page__text { font-size: 1.0625rem; max-width: 68ch; }
.page__text p + p, .page__text ul, .page__text ol { margin-top: 14px; }
.fact { padding: 4px 0 4px 20px; border-left: 3px solid var(--red); }
.fact__num { margin: 0; font-size: clamp(3rem, 6vw, 4.25rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.fact__num b { color: var(--red); font-weight: 700; }
.fact__label { margin: 8px 0 0; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* Поръчки по телефона — по цялата ширина на страницата */
.callband { flex: 1; display: grid; align-items: center; margin-top: 24px; padding: 72px 0; text-align: center;
  background: linear-gradient(rgba(248, 243, 236, 0.9), rgba(248, 243, 236, 0.9)), url("../img/ui/pattern-light.webp") center / 900px auto; background-color: var(--cream); }
.callband__in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--margin); display: grid; gap: 28px; justify-items: center; }
.callband__title { font-size: var(--step-head); font-weight: 800; }
.callband__grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.callband__col { display: grid; gap: 14px; justify-items: center; padding: 32px 24px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.callband__where { margin: 0; max-width: 28ch; color: var(--ink-soft); }
.callband__tel { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; transition: color 160ms ease; }
.callband__tel:hover { color: var(--red); }
.callband__tel .i { width: 0.8em; height: 0.8em; color: var(--red); transform-origin: 60% 60%; }
.callband__hours { margin: 0; font-weight: 500; }
.js .callband .is-in .callband__tel .i, .js .callband__col.is-in .i { animation: ring 900ms var(--ease-out) 300ms 1; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .callband__col .i { animation: none !important; } }
@media (max-width: 860px) { .page__body--fact { grid-template-columns: 1fr; gap: 28px; } .callband__grid { grid-template-columns: 1fr; } .callband { padding: 48px 0; } }

.contacts { max-width: var(--max); margin: 0 auto; padding: 48px var(--margin) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact { padding: 28px; border-radius: var(--radius); background: var(--cream); }
.contact__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff; margin-bottom: 14px; }
.contact__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.contact p + p { margin-top: 10px; }
.contact a { font-weight: 700; }
.shops__title { max-width: var(--max); margin: 56px auto 0; padding: 0 var(--margin); font-size: var(--step-head); font-weight: 800; }
.shops { max-width: var(--max); margin: 0 auto; padding: 24px var(--margin) 96px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.shop { display: flex; flex-direction: column; gap: 6px; }
.shop__name { margin-top: 12px; font-size: 1.25rem; font-weight: 700; }
.shop__areas { color: var(--ink-soft); font-size: 0.9375rem; }
.shop__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--cream-dark) url("../img/ui/pattern-light.webp") center / 700px auto; display: grid; place-content: center; text-align: center; gap: 8px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px rgba(1, 15, 28, 0.12); }
.map__load .i { color: var(--red); }
.map__load:hover { color: var(--red); }
.map__note { font-size: var(--step-small); color: var(--ink-soft); padding: 0 16px; }
@media (max-width: 860px) { .contacts, .shops { grid-template-columns: 1fr; } }

/* ---------- Преглед на поръчката ---------- */
.order { max-width: var(--max); margin: 0 auto; padding: 40px var(--margin) 96px; }
.order__title { font-size: var(--step-head); font-weight: 800; margin-bottom: 24px; }
.order .flash { width: 100%; margin: 0 0 20px; }
.order__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.order__side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 14px; }
@media (max-width: 960px) { .order__grid { grid-template-columns: 1fr; } .order__side { position: static; } }
.order__fine { font-size: var(--step-small); color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.step { margin: 0 0 20px; padding: 22px; border: 0; border-radius: var(--radius); background: var(--cream); min-width: 0; }
.step__title { display: flex; align-items: center; gap: 12px; padding: 0; font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; float: left; width: 100%; }
h2.step__title { float: none; }
.step__title + * { clear: both; }
.step__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font-size: 1rem; }
.step__hint { color: var(--ink-soft); margin-bottom: 14px; }
.step.is-collapsed .fields, .step.is-collapsed .field { display: none; }
.step.is-collapsed::after { content: attr(data-summary); display: block; color: var(--ink-soft); }

.when { display: grid; gap: 10px; }
.when__opt { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 10px; background: var(--paper); cursor: pointer; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 160ms ease; }
.when__opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--red); }
.when__opt > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.when__opt select { min-height: 40px; padding: 0 10px; border-radius: 8px; border: 2px solid var(--line); background: var(--paper); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--red); width: 20px; height: 20px; flex: none; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .field:last-child { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 10px;
  border: 2px solid var(--line); background: var(--paper); font-size: 1rem;
  transition: border-color 160ms ease;
}
.field textarea { min-height: 0; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field--error input, .field--error select { border-color: var(--red); background: var(--red-soft); }
.field__error { color: var(--red-dark); font-size: 0.9375rem; font-weight: 500; }
.field--plain { margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }

.lines { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: 8px 14px; align-items: center; padding: 12px; border-radius: 10px; background: var(--paper); }
.line__photo { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: var(--cream-dark); }
.line__name { font-weight: 700; }
.line__meta { color: var(--ink-soft); font-size: 0.9375rem; }
.line__extras { color: var(--green); font-size: 0.9375rem; font-weight: 500; }
.line__total { font-weight: 700; min-width: 72px; text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--cream); border-radius: 999px; padding: 3px; }
.qty__btn { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--paper); cursor: pointer; transition: background-color 140ms; }
.qty__btn:hover { background: var(--red); color: #fff; }
.qty__btn .i { width: 16px; height: 16px; }
.qty__n { min-width: 24px; text-align: center; font-weight: 700; }
@media (max-width: 600px) {
  .line { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .line__photo { width: 56px; height: 56px; }
  .line .qty { grid-column: 2; justify-self: start; }
  .line__total { grid-column: 3; grid-row: 2; }
}
.addons { grid-column: 1 / -1; }
.addons__toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--green-soft); color: #046c30; font-weight: 600; cursor: pointer; list-style: none; }
.addons__toggle::-webkit-details-marker { display: none; }
.addons__toggle::before { content: "+"; font-weight: 800; transition: transform 200ms var(--ease-out); }
.addons[open] .addons__toggle::before { transform: rotate(45deg); }
.addons__form { margin-top: 12px; }
.addons__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.addon { margin: 0; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--cream); }
.addon.is-on { background: var(--green-soft); }
.addon__name { padding: 0; font-weight: 600; font-size: 0.9375rem; }
.addon__opts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.addon__opts label { position: relative; cursor: pointer; }
.addon__opts input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.addon__opts span { display: flex; flex-direction: column; align-items: center; min-width: 50px; padding: 4px 8px; border-radius: 8px; background: var(--paper); font-size: 0.875rem; font-weight: 600; line-height: 1.2; transition: background-color 140ms, color 140ms; }
.addon__opts small { font-weight: 400; color: var(--ink-soft); font-size: 0.75rem; }
.addon__opts input:checked + span { background: var(--green); color: #fff; }
.addon__opts input:checked + span small { color: #e6f6ec; }
.addon__opts input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 1px; }
.addons__bar { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 8px; margin-top: 12px; padding: 10px 0; background: linear-gradient(to top, var(--paper) 70%, rgba(255, 255, 255, 0)); }
.addons__close { display: none; }
.js .addons__close { display: inline-flex; }
.js .addons__save { display: none; }

/* Увеличена снимка */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; gap: 12px; align-content: center; padding: 16px; background: rgba(1, 15, 28, 0.88); opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 0s linear 160ms; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 160ms ease; }
.lightbox__img { max-width: min(92vw, 900px); max-height: 80vh; border-radius: var(--radius); background: var(--cream-dark); object-fit: contain; }
.lightbox__name { margin: 0; color: #fff; font-weight: 600; text-align: center; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox__close:hover { background: var(--red); color: #fff; }
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox.is-open { transition: none; } }

.bill { padding: 22px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 2px var(--line); }
.bill__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.bill__rows { margin: 0; display: grid; gap: 8px; }
.bill__rows div { display: flex; justify-content: space-between; gap: 12px; }
.bill__rows dd { margin: 0; font-weight: 600; text-align: right; }
.bill__happy { color: var(--green); }
.bill__total { margin-top: 6px; padding-top: 12px; box-shadow: 0 -2px 0 var(--line); font-size: 1.25rem; }
.bill__total dd { color: var(--red); font-weight: 800; }
.bill__hint { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--known); font-size: 0.9375rem; }
.bill__oven { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; color: var(--ink-soft); font-size: 0.9375rem; }
.bill.is-updating { opacity: 0.6; transition: opacity 120ms; }

.placed { max-width: 720px; margin: 24px auto; text-align: center; display: grid; justify-items: center; gap: 14px; }
.placed__mark { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: #fff; animation: pop 520ms var(--ease-out); }
.placed__mark .i { width: 40px; height: 40px; }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
.placed__title { font-size: var(--step-head); font-weight: 800; }
.placed__lead { color: var(--ink-soft); font-size: var(--step-lead); }
.placed__facts { width: 100%; margin: 12px 0; display: grid; gap: 2px; text-align: left; border-radius: var(--radius); overflow: hidden; }
.placed__facts div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 14px 18px; background: var(--cream); }
.placed__facts dt { color: var(--ink-soft); }
.placed__facts dd { margin: 0; font-weight: 700; }
.placed__items { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.placed__items li { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.placed__items li span:first-child { display: grid; gap: 2px; }
.placed__items small { font-weight: 400; color: var(--ink-soft); }
.placed__items-happy { color: var(--green); }
@media (max-width: 600px) { .placed__facts div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Появяване при скрол ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 360ms ease, transform 460ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .hero__slide:first-child { opacity: 1; }
  .hero__slide:not(:first-child) { display: none; }
  .hero__copy:first-child { opacity: 1; }
  .hero__copy:not(:first-child) { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
