:root {
  --bg: #fafafa;
  --bg-2: #ffffff;
  --bg-3: #f3f4f6;
  --card: #ffffff;
  --text: #252222;
  --muted: #6f6866;
  --line: #e8e4e2;
  --accent: #c94a58;
  --accent-2: #d67882;
  --accent-dark: #a83d49;
  --ok: #1d9a68;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 14px 36px rgba(40, 35, 32, .08);
  --container: 1200px;
  --header-h: 80px;
  /* Логотип: бажана висота (--logo-img-target-h може перевизначатися з site-settings). Фактична висота не перевищує шапку. */
  --logo-img-target-h: 76px;
  --logo-img-slot-max-w: min(480px, 46vw);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(201, 74, 88, .05), transparent 64%),
    radial-gradient(700px 360px at 8% 8%, rgba(220, 220, 226, .35), transparent 60%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

body.no-scroll { overflow: hidden; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-left, 0px)) 0 max(20px, env(safe-area-inset-right, 0px));
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(130%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: var(--header-h);
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: var(--logo-img-slot-max-w);
}
.logo[hidden] {
  display: none !important;
}
/* Обгортка як на sushi-anime: на мобілці задає висоту «слота» під лого, на desktop не ламає верстку. */
.mobile-logo-inner {
  display: contents;
  min-width: 0;
  max-width: 100%;
}
.logo__img {
  display: none;
  height: auto;
  width: auto;
  max-height: min(var(--logo-img-target-h), calc(var(--header-h) - 10px));
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.logo--has-img .logo__img {
  display: block;
}
.logo__img--footer {
  max-height: 56px;
  max-width: min(380px, 94vw);
  height: auto;
  width: auto;
}

.nav {
  margin-left: 24px;
  display: flex;
  gap: 0;
  flex: 0 0 auto;
  align-items: center;
  padding: 4px;
  background: var(--bg-3);
  border-radius: 999px;
  border: 1px solid var(--line);
}
.nav a {
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  box-shadow: none;
  transition: color .2s, background .2s, box-shadow .2s;
}
.nav a:hover {
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: none;
}
.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Неон навігації (data-nav-neon на <html>) */
html[data-nav-neon="accent"] { --nav-neon-r: 201; --nav-neon-g: 74; --nav-neon-b: 88; --nav-neon-text: #a83d49; }
html[data-nav-neon="cyan"] { --nav-neon-r: 14; --nav-neon-g: 165; --nav-neon-b: 233; --nav-neon-text: #0369a1; }
html[data-nav-neon="gold"] { --nav-neon-r: 217; --nav-neon-g: 119; --nav-neon-b: 6; --nav-neon-text: #92400e; }
html[data-nav-neon="red"] { --nav-neon-r: 220; --nav-neon-g: 38; --nav-neon-b: 38; --nav-neon-text: #b91c1c; }
html[data-nav-neon="green"] { --nav-neon-r: 22; --nav-neon-g: 163; --nav-neon-b: 74; --nav-neon-text: #15803d; }
html[data-nav-neon="blue"] { --nav-neon-r: 37; --nav-neon-g: 99; --nav-neon-b: 235; --nav-neon-text: #1d4ed8; }
html[data-nav-neon="purple"] { --nav-neon-r: 147; --nav-neon-g: 51; --nav-neon-b: 234; --nav-neon-text: #7e22ce; }
html[data-nav-neon="orange"] { --nav-neon-r: 234; --nav-neon-g: 88; --nav-neon-b: 12; --nav-neon-text: #c2410c; }

html[data-nav-neon]:not([data-nav-neon="off"]) .nav a {
  transition:
    color .2s,
    border-color .2s,
    background .2s,
    box-shadow .28s ease,
    text-shadow .28s ease;
}
html[data-nav-neon]:not([data-nav-neon="off"]):not([data-nav-neon="soft"]) .nav a {
  border-color: rgba(var(--nav-neon-r), var(--nav-neon-g), var(--nav-neon-b), 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(var(--nav-neon-r), var(--nav-neon-g), var(--nav-neon-b), 0.07) 100%);
  box-shadow:
    0 0 0 1px rgba(var(--nav-neon-r), var(--nav-neon-g), var(--nav-neon-b), 0.18),
    0 2px 10px rgba(var(--nav-neon-r), var(--nav-neon-g), var(--nav-neon-b), 0.1),
    0 0 16px rgba(var(--nav-neon-r), var(--nav-neon-g), var(--nav-neon-b), 0.28),
    0 0 32px rgba(var(--nav-neon-r), var(--nav-neon-g), var(--nav-neon-b), 0.12);
}
html[data-nav-neon]:not([data-nav-neon="off"]):not([data-nav-neon="soft"]) .nav a:hover {
  color: var(--nav-neon-text, var(--accent-dark));
  border-color: rgba(var(--nav-neon-r), var(--nav-neon-g), var(--nav-neon-b), 0.55);
  background: rgba(var(--nav-neon-r), var(--nav-neon-g), var(--nav-neon-b), 0.1);
  box-shadow:
    0 0 0 1px rgba(var(--nav-neon-r), var(--nav-neon-g), var(--nav-neon-b), 0.35),
    0 4px 16px rgba(var(--nav-neon-r), var(--nav-neon-g), var(--nav-neon-b), 0.18),
    0 0 24px rgba(var(--nav-neon-r), var(--nav-neon-g), var(--nav-neon-b), 0.45),
    0 0 48px rgba(var(--nav-neon-r), var(--nav-neon-g), var(--nav-neon-b), 0.2);
  text-shadow: 0 0 14px rgba(var(--nav-neon-r), var(--nav-neon-g), var(--nav-neon-b), 0.35);
}
html[data-nav-neon="soft"] .nav a {
  border-color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-3) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 2px 8px rgba(37, 34, 34, 0.05),
    0 0 14px rgba(255, 255, 255, 0.55),
    0 0 28px rgba(201, 74, 88, 0.08);
}
html[data-nav-neon="soft"] .nav a:hover {
  color: var(--accent-dark);
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(201, 74, 88, 0.2),
    0 4px 14px rgba(37, 34, 34, 0.08),
    0 0 22px rgba(255, 255, 255, 0.7),
    0 0 40px rgba(201, 74, 88, 0.22);
  text-shadow: 0 0 12px rgba(201, 74, 88, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  html[data-nav-neon] .nav a {
    transition: color .2s, border-color .2s, background .2s;
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
  transition: color .2s;
}
.phone svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.phone:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
  user-select: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-dark); }
.btn--primary[disabled] {
  background: #eadbd1;
  color: var(--muted);
  cursor: not-allowed;
}
.btn--ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }

.btn--cart {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--text);
  flex-shrink: 0;
}
.btn--cart svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: inherit;
}
.btn--cart:hover {
  background: var(--accent);
  color: #fff;
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-2);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-3);
  position: relative;
}
.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  transition: transform .25s, opacity .2s, top .25s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ===== Hero (лише зображення банера, без декоративних заглушок) ===== */
.hero[hidden] {
  display: none !important;
}
.hero--split .hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  justify-items: center;
}
.hero { padding: 32px 0 48px; position: relative; overflow: hidden; }
.hero--split {
  padding-top: 24px;
  padding-bottom: 24px;
}
.hero__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero__art {
  position: relative;
  width: 100%;
  max-width: min(920px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero__banner {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  line-height: 0;
}

.hero__banner--promo {
  cursor: pointer;
}

.hero__banner--promo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.hero__art-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(560px, 78vh);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero__art-img--transparent {
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.hero__art-img[hidden] {
  display: none !important;
}
.section__head { text-align: center; margin-bottom: 32px; }
.section__title {
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.section__sub { color: var(--muted); margin: 0; }

/* ===== Menu / Tabs ===== */
.menu { padding: 40px 0 60px; }
.menu__search {
  display: flex;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto 20px;
}
.menu__search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.menu__search-input {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.menu__search-input::placeholder {
  color: var(--muted);
}
.menu__search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(201, 74, 88, 0.18);
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}
.tab {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: background .2s, color .2s, border-color .2s;
}
.tab:hover { color: var(--text); border-color: var(--accent); }
.tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ===== Products ===== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}
.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.product:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.product__media {
  aspect-ratio: 4 / 3;
  position: relative;
  background: #f7f6f4;
  overflow: hidden;
}
.product__visual {
  width: 100%;
  height: 100%;
  transition: opacity 0.2s ease;
}
.product__visual.is-switching {
  opacity: 0.45;
}
.product__media svg { width: 100%; height: 100%; }
.product__visual svg {
  width: 100%;
  height: 100%;
  display: block;
}
.product__media .product__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.product__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product__title { margin: 0; font-size: 16px; font-weight: 700; }
.product__desc-wrap {
  position: relative;
}
.product__desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.product__desc.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
.product__desc-toggle {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.product__desc-toggle:hover {
  opacity: 0.88;
}
.product__desc-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.product__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.product__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}
.product__price { font-size: 20px; font-weight: 800; }
.product__price-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.product__price-old {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 600;
}
.product__tag--sale {
  background: var(--ok);
}
.product--sale .product__price {
  color: var(--accent);
}
.product__variants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.product__variant {
  background: var(--bg-3);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  transition: background .2s, color .2s, box-shadow .2s;
  border: 1px solid transparent;
}
.product__variant:hover { background: var(--bg-2); border-color: var(--line); }
.product__variant.is-active {
  background: var(--accent);
  color: #fff;
}
.product__add {
  background: var(--bg-3);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  transition: background .2s, color .2s;
}
.product__add:hover { background: var(--accent); color: #fff; }

/* ===== Delivery ===== */
.delivery { padding: 60px 0; }
.delivery__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.delivery__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.delivery__card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.delivery__card h4 { margin: 0 0 6px; font-size: 16px; }
.delivery__card p { margin: 0; color: var(--muted); font-size: 14px; }

.zones {
  background: linear-gradient(180deg, #ffffff, #f5f5f5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  align-self: start;
}
.zones h4 { margin: 0 0 14px; }
.zones ul { list-style: none; padding: 0; margin: 0 0 14px; }
.zones li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
}
.zones li:last-child { border-bottom: 0; }
.zones__hint { color: var(--muted); font-size: 13px; margin: 0; }

/* ===== Reviews (Elfsight Google Reviews) ===== */
.reviews {
  padding: 64px 0 56px;
  background:
    radial-gradient(800px 320px at 50% -20%, rgba(201, 74, 88, .07), transparent 55%),
    linear-gradient(180deg, rgba(243, 244, 246, .65), transparent 52%),
    var(--bg);
  border-block: 1px solid rgba(232, 228, 226, .8);
}
.reviews__card {
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(14px, 2.4vw, 22px);
  box-shadow:
    var(--shadow),
    0 1px 0 rgba(255, 255, 255, .75) inset;
  overflow: hidden;
  min-height: 96px;
}
.reviews #elfsight-reviews-mount iframe {
  width: 100% !important;
}
.reviews__hint {
  margin: 12px 0 0;
  padding: clamp(14px, 2.5vw, 20px) clamp(16px, 3vw, 24px);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(111, 104, 102, .25);
}
.reviews__hint code {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  word-break: break-word;
}

/* ===== Contacts ===== */
.contacts { padding: 60px 0; }
.contacts__grid {
  max-width: 640px;
  margin: 0 auto;
}
.contacts__list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.contacts__list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.contacts__list span { color: var(--muted); font-size: 13px; align-self: center; }
.contacts__list strong { font-weight: 600; }
.contacts__list a { color: var(--text); }
.contacts__list a:hover strong { color: var(--accent); }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
input, select, textarea {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  color: var(--text);
  outline: 0;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; }
.form__status { margin: 0; font-size: 13px; min-height: 18px; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--accent-2); }

.order-success-overlay {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px);
  animation: fadeIn .2s ease;
}
.order-success-overlay[hidden] { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.order-success-card {
  background: #fff; border-radius: 20px;
  padding: 40px 32px 32px;
  max-width: 400px; width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.order-success-card__icon { font-size: 56px; line-height: 1; margin-bottom: 4px; }
.order-success-card__title { margin: 0; font-size: 24px; font-weight: 800; }
.order-success-card__text { margin: 0; font-size: 15px; line-height: 1.65; color: #555; }
.order-success-card__phone { margin: 0; font-size: 15px; font-weight: 600; }
.order-success-card__phone a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.order-success-card__btn { margin-top: 12px; min-width: 180px; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.footer__tag { color: var(--muted); font-size: 13px; margin: 12px 0 0; max-width: 320px; }
.footer__stub {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 260px;
}
.footer__legal {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 280px;
}
.footer__legal a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__legal a:hover {
  color: var(--accent);
}
.footer h5 { margin: 0 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer nav a, .footer a { color: var(--text); transition: color .2s; }
.footer nav a:hover, .footer a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-3);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
  transition: background .2s, color .2s;
}
.socials a:hover { background: var(--accent); color: #fff; }
.footer__copy { padding-top: 20px; color: var(--muted); font-size: 13px; text-align: center; }

/* ===== Subpages (licenzii.html) ===== */
.page-sub .header__actions .page-sub__order {
  display: none;
  padding: 10px 16px;
  font-size: 14px;
}
.page-sub .licenzii {
  padding: clamp(32px, 5vw, 56px) 0 64px;
}
.page-sub .licenzii__head {
  max-width: 720px;
  margin-inline: auto;
}
.page-sub .licenzii__intro {
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.6;
}
.page-sub .licenzii__grid {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(14px, 2.5vw, 22px);
}
.page-sub .licenzii__thumb {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.page-sub .licenzii__thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 15, 19, .12);
}
.page-sub .licenzii__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
@media (min-width: 961px) {
  .page-sub .header__actions .page-sub__order { display: inline-flex; }
}

/* ===== Cart drawer ===== */
.cart {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}
.cart.is-open { pointer-events: auto; visibility: visible; }
.cart__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 40, 38, .22);
  opacity: 0;
  transition: opacity .25s;
}
.cart.is-open .cart__overlay { opacity: 1; }
.cart__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  padding-right: env(safe-area-inset-right, 0px);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.cart.is-open .cart__panel { transform: translateX(0); }
.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.cart__head h3 { margin: 0; font-size: 18px; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-3);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  transition: background .2s;
}
.icon-btn:hover { background: var(--accent); color: #fff; }
.cart__list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart__empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}
.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.cart-item__media {
  width: 60px; height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f6f4;
}
.cart-item__media svg { width: 100%; height: 100%; }
.cart-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item__body h4 { margin: 0 0 4px; font-size: 14px; }
.cart-item__body span { color: var(--muted); font-size: 12px; }
.cart-item__included {
  display: block;
  margin-top: 4px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
}
.qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-3);
  border-radius: 10px;
  padding: 2px;
}
.qty button {
  width: 36px; height: 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: background .2s;
}
.qty button:hover { background: var(--accent); color: #fff; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; font-size: 14px; }
.cart-item__remove {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  transition: color .2s;
}
.cart-item__remove:hover { color: var(--accent-2); }

.cart__foot {
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cart__total strong { font-size: 22px; }

/* ===== Modal (checkout) ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal.is-open { visibility: visible; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 40, 38, .28);
  opacity: 0;
  transition: opacity .25s;
}
.modal.is-open .modal__overlay { opacity: 1; }
.modal__panel {
  position: relative;
  width: min(560px, calc(100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-height: calc(100vh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transform: translateY(20px);
  opacity: 0;
  transition: transform .25s, opacity .25s;
}
.modal.is-open .modal__panel { transform: translateY(0); opacity: 1; }
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.modal__head h3 { margin: 0; }
.modal__body {
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.modal__summary {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal__summary strong { color: var(--accent); }

#promoModal .modal__panel {
  width: min(640px, calc(100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
}

.promo-modal__body {
  gap: 16px;
}

.promo-modal__empty {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.promo-card {
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.promo-card + .promo-card {
  margin-top: 0;
}

.promo-card__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--accent-2);
}

.promo-card__date {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.promo-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.checkout-pay-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Каскад .checkout-pay-block{display:flex} перемагає браузерне [hidden] — явно приховуємо. */
.checkout-pay-block[hidden] {
  display: none !important;
}
.checkout-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.checkout-hint a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.checkout-hint__offer {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkout-hint__offer:hover {
  color: #2563eb;
}
label.checkout-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
label.checkout-check input[type="checkbox"] {
  margin-top: 3px;
  width: auto;
  flex-shrink: 0;
}
label.checkout-check span { flex: 1; }

.checkout-addons {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.checkout-addons__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}
.checkout-addons__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 8px;
  align-items: stretch;
  justify-content: space-between;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.checkout-addon-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  flex: 1 1 0;
  min-width: 72px;
  font-size: 11px;
  text-align: center;
}
.checkout-addon-field__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.checkout-addon-field__icon img,
.checkout-addon-field__plate {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.checkout-addon-field__icon svg[hidden],
.checkout-addon-field__icon img[hidden] {
  display: none !important;
}
.checkout-addon-field__label {
  color: var(--muted);
  line-height: 1.25;
}
.checkout-addon-field__input {
  width: 100%;
  max-width: 52px;
  padding: 6px 4px;
  font-size: 13px;
  text-align: center;
}
.checkout-addons__extra {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.cart-addons {
  flex-shrink: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility 0s .2s;
  z-index: 120;
  box-shadow: var(--shadow);
  font-size: 14px;
}
.toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .2s, transform .2s;
}

/* Затемнення під мобільним меню (клік — закриття) */
.nav-backdrop {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__art {
    max-width: 100%;
  }
  .delivery__grid {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  #siteHeroSection,
  #menu,
  #delivery,
  #reviews,
  #contacts {
    scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px);
  }
  :root {
    --header-h: 64px;
    --logo-img-slot-max-w: min(260px, 62vw);
    --logo-mobile-inner-h: 60px;
  }
  .header .logo .mobile-logo-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: var(--logo-mobile-inner-h);
    max-height: calc(var(--header-h) - 4px);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .header .logo .logo__img {
    max-height: 100%;
  }
  .header__inner {
    gap: 10px;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 49;
    background: rgba(42, 40, 38, .35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s, visibility 0s .25s;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .25s;
  }
  .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .menu {
    padding: 24px 0 40px;
  }
  .menu__search-input {
    font-size: 16px;
  }
  .menu .tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    margin-bottom: 24px;
    margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
    margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .menu .tabs::-webkit-scrollbar {
    height: 4px;
  }
  .menu .tabs::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 4px;
  }
  .menu .tabs .tab {
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .products {
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  }
  .modal__body input,
  .modal__body select,
  .modal__body textarea {
    font-size: 16px;
  }
  .contacts input,
  .contacts select,
  .contacts textarea {
    font-size: 16px;
  }
  .nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: saturate(130%) blur(14px);
    -webkit-backdrop-filter: saturate(130%) blur(14px);
    border: none;
    border-bottom: 1px solid rgba(232, 228, 226, 0.55);
    border-radius: 0;
    flex-direction: column;
    gap: 12px;
    padding: 12px max(16px, env(safe-area-inset-left, 0px)) 16px max(16px, env(safe-area-inset-right, 0px));
    transform: translate3d(0, calc(-100% - 16px), 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    margin: 0;
    z-index: 60;
  }
  .nav.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.25s ease, visibility 0s linear 0s;
  }
  .nav a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid rgba(232, 228, 226, 0.75);
    background: var(--bg-3);
  }
  html:not([data-nav-neon]) .nav a,
  html:not([data-nav-neon]) .nav a:hover {
    box-shadow: none;
  }
  html:not([data-nav-neon]) .nav a:hover {
    border-color: rgba(168, 61, 73, 0.38);
    background: rgba(201, 74, 88, 0.09);
  }
  .burger { display: inline-flex; }
  .phone span { display: none; }
  .phone {
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  .phone svg {
    width: 28px;
    height: 28px;
  }
  .hero { padding: 28px 0 32px; }
  .hero__art-img {
    max-height: min(360px, 46vh);
  }
  .delivery,
  .contacts {
    padding: 40px 0;
  }
  .footer {
    padding: 32px 0 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .delivery__cards { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .contacts__list li { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 720px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .hero--split .hero__inner {
    grid-template-columns: 1fr;
  }
  #siteHeroArt2 {
    display: none !important;
  }
  .hero {
    padding: 16px 0 24px;
  }
  .hero__art-img {
    max-height: min(300px, 42vh);
  }
  .menu {
    padding: 16px 0 36px;
  }
  .menu .section__head {
    margin-bottom: 22px;
  }
}

@media (min-width: 961px) {
  .nav-backdrop {
    display: none !important;
  }
}

/* Банер «закрито» — фіксований під шапкою, напівпрозорий, добре читається */
.ordering-closed-banner {
  display: none;
  position: fixed;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 55;
  margin: 0;
  padding: 11px max(16px, env(safe-area-inset-right, 0px)) 11px max(16px, env(safe-area-inset-left, 0px));
  text-align: center;
  font-weight: 700;
  font-size: clamp(13px, 3.4vw, 15px);
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(37, 34, 34, 0.52);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 28px rgba(37, 34, 34, 0.28);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.ordering-closed-banner:not([hidden]) {
  display: block;
}
body.ordering-closed button.product__add:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
