/* ============================================================
   Ola Kebab — styles.css
   Палітра взята з реального лого/вивіски кафе.
   ============================================================ */

:root {
  /* Фірмові кольори */
  --red:        #E42026;
  --red-dark:   #C4161C;
  --red-soft:   #FDECEC;
  --yellow:     #FDC426;
  --yellow-dark:#E0A800;
  --ink:        #211F20;   /* майже чорний з лого */
  --ink-2:      #2E2B2C;
  --cream:      #FFF8F0;
  --white:      #FFFFFF;
  --gray:       #6B6B6B;
  --gray-light: #E6E2DE;

  /* Типографіка */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Відступи / радіуси */
  --gap:    16px;
  --gap-lg: 32px;
  --pad-section: 56px;
  --radius:    14px;
  --radius-lg: 20px;

  --shadow:    0 2px 10px rgba(33, 31, 32, .08);
  --shadow-md: 0 8px 24px rgba(33, 31, 32, .12);
  --shadow-lg: 0 16px 48px rgba(33, 31, 32, .22);

  --header-h: 64px;
  --catnav-h: 60px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

/* Атрибут hidden має вигравати у власних display: flex/grid нижче */
[hidden] { display: none !important; }

/* Відступи для якорів задаємо через scroll-margin-top на самих цілях.
   scroll-padding-top на html тут НЕ використовуємо: він додається до
   scroll-margin-top цілі, і секції меню зупинялись на ~90px нижче потрібного. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.muted { color: var(--gray); font-size: 14px; }
.loading { color: var(--gray); padding: 40px 0; text-align: center; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  color: #fff;
  transition: box-shadow .25s var(--ease);
}
.header.is-stuck { box-shadow: 0 4px 18px rgba(0, 0, 0, .28); }

.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white);
  object-fit: cover;
}
.brand__name {
  font-size: 20px; font-weight: 800; letter-spacing: -.02em;
  color: #fff;
}

/* --- Навігація --- */
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav__link {
  padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  color: rgba(255, 255, 255, .82);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav__link--phone { display: none; }

/* Кнопки корзини й бургера — у правому куті, після навігації */
.header__actions { display: flex; align-items: center; gap: 4px; margin-left: 10px; }

/* --- Кнопка корзини --- */
.cart-btn {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 12px;
  color: #fff; cursor: pointer;
  transition: background .2s var(--ease);
}
.cart-btn:hover { background: rgba(255, 255, 255, .12); }
.cart-btn.is-bump { animation: bump .35s var(--ease); }

@keyframes bump {
  0%, 100% { transform: scale(1); }
  40%      { transform: scale(1.18); }
}

.cart-btn__badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--ink);
  font-size: 11px; font-weight: 800; line-height: 1;
  border-radius: 999px;
}

/* --- Бургер --- */
.burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 0; border-radius: 12px;
  cursor: pointer; padding: 12px 11px;
}
.burger span {
  display: block; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  padding: 48px 0 56px;
  text-align: center;
}
/* Червоне світіння за вивіскою */
.hero__glow {
  position: absolute; inset: -30% 0 auto 50%;
  width: 900px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(228, 32, 38, .55) 0%, rgba(228, 32, 38, 0) 62%);
  pointer-events: none;
}
.hero__inner { position: relative; }

.hero__sign {
  width: min(100%, 660px);
  margin: 0 auto 26px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 6vw, 44px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
  color: #fff;
}
.hero__subtitle {
  margin: 0 auto 26px; max-width: 560px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(15px, 2.4vw, 17px);
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-bottom: 28px;
}

.hero__chips {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .85);
  font-size: 13.5px; font-weight: 500;
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border: 2px solid transparent; border-radius: 999px;
  font-size: 15.5px; font-weight: 700; text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn--primary {
  background: var(--red); color: #fff; border-color: var(--red);
  box-shadow: 0 4px 14px rgba(228, 32, 38, .3);
}
.btn--primary:hover:not(:disabled) { background: var(--red-dark); border-color: var(--red-dark); }

.btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn--yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn--yellow:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }

/* Другорядна кнопка на світлому тлі (на темному — .btn--ghost) */
.btn--outline {
  background: transparent; color: var(--ink); border-color: var(--gray-light);
}
.btn--outline:hover { border-color: var(--red); color: var(--red); }

.btn--sm    { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ============================================================
   СЕКЦІЇ
   ============================================================ */
.section { padding: var(--pad-section) 0; scroll-margin-top: calc(var(--header-h) + 12px); }
.section--categories { background: var(--white); }
.section--menu       { background: var(--cream); }
.section--about      { background: var(--white); }
.section--contacts   { background: var(--cream); }

.section__head { margin-bottom: 28px; }
.section__title {
  margin: 0; font-size: clamp(23px, 4.5vw, 32px);
  font-weight: 800; letter-spacing: -.02em;
}
/* Жовта риска — відсилання до вивіски */
.section__title::after {
  content: ""; display: block;
  width: 52px; height: 4px; border-radius: 2px;
  background: var(--yellow); margin-top: 10px;
}
.section__lead { margin: 12px 0 0; color: var(--gray); font-size: 15px; }

/* ============================================================
   ПЛИТКА КАТЕГОРІЙ
   ============================================================ */
.cat-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}

.cat-card {
  position: relative; display: block;
  border: 0; padding: 0; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  cursor: pointer; text-align: left;
  background: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s var(--ease), opacity .2s var(--ease);
  opacity: .88;
}
.cat-card:hover img { transform: scale(1.06); opacity: 1; }

.cat-card__overlay {
  position: absolute; inset: auto 0 0 0; padding: 12px 13px 11px;
  background: linear-gradient(to top, rgba(33, 31, 32, .92) 12%, rgba(33, 31, 32, 0) 100%);
  color: #fff;
}
.cat-card__name  { display: block; font-weight: 700; font-size: 15px; line-height: 1.25; }
.cat-card__count { display: block; font-size: 12.5px; color: var(--yellow); margin-top: 2px; }

/* ============================================================
   STICKY-СТРІЧКА КАТЕГОРІЙ
   ============================================================ */
.catnav {
  position: sticky; top: var(--header-h); z-index: 90;
  margin-bottom: 24px; padding: 10px 0;
  background: var(--cream);
  border-bottom: 1px solid var(--gray-light);
}

.catnav__inner {
  display: flex; gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  /* ховаємо скролбар */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.catnav__inner::-webkit-scrollbar { display: none; }

.catnav__btn {
  flex: 0 0 auto;
  scroll-snap-align: center;
  padding: 9px 16px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  color: var(--ink); cursor: pointer;
  transition: background .22s var(--ease), border-color .22s var(--ease),
              color .22s var(--ease), transform .15s var(--ease);
}
.catnav__btn:hover { border-color: var(--gray); }
.catnav__btn:active { transform: scale(.97); }

.catnav__btn.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 3px 10px rgba(228, 32, 38, .28);
}

/* ============================================================
   МЕНЮ
   ============================================================ */
/* Відступ під хедер + стрічку, щоб заголовок категорії не ховався за ними.
   --sticky-h = реальна виміряна висота (хедер + стрічка), її проставляє JS;
   значення у fallback — приблизні, на випадок якщо JS не відпрацював. */
.cat-block { margin-bottom: 44px; scroll-margin-top: calc(var(--sticky-h, 127px) + 12px); }
.cat-block:last-child { margin-bottom: 0; }

.cat-block__head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-light);
}
.cat-block__title { margin: 0; font-size: clamp(19px, 3.5vw, 24px); font-weight: 800; }
.cat-block__count { color: var(--gray); font-size: 14px; }

.dish-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  /* Картки з фото і без нього сусідять в одному рядку — хай кожна має
     власну висоту, інакше під текстовою залишається порожня пляма. */
  align-items: start;
}

.dish {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.dish:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: transparent; }
.dish.is-in-cart { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }

/* Фото страви — на всю ширину картки, врівень з її верхнім краєм */
.dish__photo {
  margin: -16px -16px 14px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 13px 13px 0 0;
  background: var(--gray-light);
}
.dish__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.dish:hover .dish__photo img { transform: scale(1.04); }

.dish__name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.dish__desc {
  margin: 5px 0 0;
  color: var(--gray); font-size: 13px; line-height: 1.4;
}

/* Вибір розміру / м’яса */
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.opt {
  /* Ширина за вмістом: якщо три розміри не влазять — ряд переноситься,
     але текст ніколи не обрізається. */
  flex: 0 1 auto;
  padding: 7px 12px;
  background: var(--cream);
  border: 1.5px solid var(--gray-light);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  color: var(--gray); cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.opt:hover { border-color: var(--gray); color: var(--ink); }
.opt.is-on {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

.dish__foot {
  margin-top: auto; padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.dish__price { font-size: 18px; font-weight: 800; white-space: nowrap; }
.dish__price .cur { font-size: 13px; font-weight: 600; color: var(--gray); }

/* Кнопка "+ Додати" / степер */
.add-btn {
  padding: 9px 16px; border: 2px solid var(--red); border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease), transform .15s var(--ease);
}
.add-btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.add-btn:active { transform: scale(.96); }

.stepper {
  display: inline-flex; align-items: center;
  background: var(--red); border-radius: 999px; overflow: hidden;
}
.stepper button {
  width: 34px; height: 36px;
  background: transparent; border: 0; color: #fff;
  font-size: 19px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: background .15s var(--ease);
}
.stepper button:hover { background: rgba(0, 0, 0, .18); }
.stepper__qty {
  min-width: 26px; text-align: center;
  color: #fff; font-weight: 800; font-size: 15px;
}

/* ============================================================
   ПРО НАС
   ============================================================ */
.about { display: grid; gap: var(--gap-lg); align-items: center; }
.about__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%; object-fit: cover;
}
.about__text p { margin: 14px 0 0; color: #3E3B3C; }

/* ============================================================
   КОНТАКТИ
   ============================================================ */
.contacts { display: grid; gap: var(--gap); }
.contacts__card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.contacts__card h3 { margin: 0 0 16px; font-size: 19px; font-weight: 800; }

.contacts__row {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 12px; font-size: 15.5px;
}
.contacts__row a { color: var(--red); font-weight: 700; text-decoration: none; }
.contacts__row a:hover { text-decoration: underline; }

.contacts__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.contacts__card--delivery { background: var(--ink); color: #fff; border-color: transparent; }
.contacts__card--delivery .muted { color: rgba(255, 255, 255, .6); }

.delivery-note {
  display: inline-block; margin: 0 0 16px; padding: 7px 14px;
  background: var(--yellow); color: var(--ink);
  border-radius: 999px; font-size: 14px; font-weight: 700;
}

.zones__title {
  margin: 0 0 4px;
  font-size: 15.5px; font-weight: 700; color: var(--yellow);
}

.zones { list-style: none; margin: 0 0 16px; padding: 0; }
.zones li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px;
  padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 15px;
}
.zones li:last-child { border-bottom: 0; }
.zones b { color: rgba(255, 255, 255, .72); font-weight: 600; font-size: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(255, 255, 255, .6); padding: 26px 0; }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  font-size: 13.5px;
}
.footer__sep { opacity: .45; }

/* ============================================================
   КОРЗИНА (DRAWER)
   ============================================================ */
.backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(33, 31, 32, .55);
  opacity: 0; transition: opacity .28s var(--ease);
  backdrop-filter: blur(2px);
}
.backdrop.is-open { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160;
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  visibility: hidden;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer__head {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  background: var(--ink); color: #fff;
}
.drawer__title { margin: 0; font-size: 18px; font-weight: 800; flex: 1; }

.drawer__close, .drawer__back {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 10px;
  color: #fff; cursor: pointer;
  transition: background .18s var(--ease);
}
.drawer__close:hover, .drawer__back:hover { background: rgba(255, 255, 255, .14); }

/* Перемикання виглядів (корзина / форма / успіх) */
.drawer__view { display: none; flex: 1; min-height: 0; flex-direction: column; }
.drawer[data-view="cart"]     .drawer__view[data-view="cart"],
.drawer[data-view="checkout"] .drawer__view[data-view="checkout"],
.drawer[data-view="success"]  .drawer__view[data-view="success"] { display: flex; }

.drawer__body { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.drawer__foot {
  flex-shrink: 0; padding: 16px;
  background: var(--white);
  border-top: 1px solid var(--gray-light);
}

.total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; font-size: 16px;
}
.total strong { font-size: 22px; font-weight: 800; }

/* --- Порожня корзина --- */
.empty { text-align: center; padding: 56px 20px; color: var(--gray); }
.empty svg { margin: 0 auto 16px; color: var(--gray-light); }
.empty p { margin: 0 0 6px; font-weight: 700; font-size: 17px; color: var(--ink); }

/* --- Позиція в корзині --- */
.line {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px;
  align-items: center;
  padding: 12px; margin-bottom: 10px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
}
.line__img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.line__name { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.line__meta { color: var(--gray); font-size: 13px; margin-top: 2px; }
.line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line__sum { font-weight: 800; font-size: 15px; white-space: nowrap; }

.line .stepper { background: var(--ink); }
.line .stepper button { width: 30px; height: 30px; font-size: 17px; }
.line .stepper__qty { min-width: 22px; font-size: 14px; }

.line__remove {
  background: transparent; border: 0; padding: 4px;
  color: var(--gray); cursor: pointer; line-height: 0;
  border-radius: 6px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.line__remove:hover { color: var(--red); background: var(--red-soft); }

/* ============================================================
   ФОРМА ЗАМОВЛЕННЯ
   ============================================================ */
.form { display: flex; flex-direction: column; gap: 16px; }

.form__summary {
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--gray-light);
  font-size: 14px;
}
.form__summary .total { margin: 0; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 14px; font-weight: 700; }
.field .req { color: var(--red); }

.input, .select, .textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white);
  border: 2px solid var(--gray-light); border-radius: 10px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(228, 32, 38, .12);
}
.textarea { resize: vertical; min-height: 76px; }
.select { appearance: none; background-image: none; cursor: pointer; }

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--red); }

.error {
  color: var(--red); font-size: 13px; font-weight: 600;
  display: none;
}
.field.has-error .error { display: block; }

/* --- Radio (спосіб отримання) --- */
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 10px; text-align: center;
  background: var(--white);
  border: 2px solid var(--gray-light); border-radius: 10px;
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio:hover { border-color: var(--gray); }
.radio:has(input:checked) { border-color: var(--red); background: var(--red); color: #fff; }
.radio:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* --- Нотатки / попередження --- */
.note {
  padding: 11px 13px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.45;
}
.note--warn { background: #FFF6DB; border: 1px solid #F3D882; color: #6B5200; }
.note--info { background: var(--red-soft); border: 1px solid #F5C3C4; color: #8C1418; }

.honeypot {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

/* --- Успіх --- */
.success { text-align: center; padding: 40px 10px; }
.success__icon {
  width: 76px; height: 76px; margin: 0 auto 20px;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  border-radius: 50%; font-size: 38px;
  box-shadow: 0 8px 22px rgba(228, 32, 38, .32);
}
.success h3 { margin: 0 0 10px; font-size: 21px; font-weight: 800; }
.success p  { margin: 0 0 8px; color: var(--gray); font-size: 15px; }
.success__cooktime { color: var(--ink); font-weight: 600; font-size: 14px; margin-top: 14px; }
.success__id {
  display: inline-block; margin: 4px 0 16px; padding: 6px 16px;
  background: var(--yellow); color: var(--ink);
  border-radius: 999px; font-weight: 800; letter-spacing: .06em;
}

/* Спінер на кнопці */
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (min-width: 768px) {
  :root { --pad-section: 76px; --header-h: 72px; --catnav-h: 64px; }

  /* На десктопі стрічка теж sticky, але горизонтальний скрол не потрібен —
     категорії вкладаються в ширину контейнера. */
  .catnav { padding: 12px 0; }
  .catnav__inner { scroll-snap-type: none; gap: 6px; }
  .catnav__btn { scroll-snap-align: none; padding: 9px 11px; font-size: 13.5px; }

  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .contacts { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 76px; }
}

@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; }
}

/* На широких екранах стрічці вистачає місця — повертаємо просторіші кнопки */
@media (min-width: 1100px) {
  .catnav__inner { gap: 8px; }
  .catnav__btn { padding: 9px 14px; font-size: 14px; }
}

/* Мобільна навігація (< 768px) */
@media (max-width: 767px) {
  .burger { display: block; }
  .nav__link--phone { display: block; }

  /* Тут .nav — position: fixed, тобто поза потоком і нікого не відштовхує,
     тому кнопки притискаємо до правого краю самі. */
  .header__actions { margin-left: auto; }

  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    flex-direction: column; gap: 0;
    padding: 8px 12px 16px;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .3);
    transform: translateY(-140%);
    transition: transform .28s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link {
    padding: 14px 12px; border-radius: 10px; font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  .nav__link:last-child { border-bottom: 0; }

  .drawer { max-width: 100%; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .dish-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

/* Дуже вузькі екрани */
@media (max-width: 380px) {
  .dish-grid { grid-template-columns: 1fr; }
  .radios { grid-template-columns: 1fr; }
}
