/* ============================================================
   Kisto — Дизайн-система затишної кав'ярні та пекарні
   Тепла палітра, м'яка типографіка, висока читабельність (WCAG AA),
   адаптивні компоненти публічних сторінок.
   ============================================================ */

/* ---------- Шрифти (свої, без запитів до Google) ---------- */
@font-face {
  font-family: "Nunito";
  font-weight: 200 1000;
  font-display: optional;
  src: url("/assets/nunito-cyrillic.63b14e3ef096.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 300 700;
  font-display: optional;
  src: url("/assets/cormorant-cyrillic.017fab69b4be.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Nunito";
  font-weight: 200 1000;
  font-display: optional;
  src: url("/assets/nunito-latin.ba344451eab2.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 300 700;
  font-display: optional;
  src: url("/assets/cormorant-latin.d80df8ff5aec.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Dancing Script";
  font-weight: 700;
  font-display: optional;
  src: url("/assets/dancing-latin.06b326d772e3.woff2") format("woff2");
  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 {
  --bg: #fbf6ec;
  --sand: #f3e3cb;
  --fg: #2c211a;
  --line: #e6d6bf;
  --muted: #665042;
  --accent: #a8652a;
  --primary: #4a2c1d;
  --tint: #f3e2cc;
  --card: #fffdf8;
  --gold: #e3b27a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Nunito", "Segoe UI", -apple-system, sans-serif;
  --script: "Dancing Script", "Cormorant Garamond", Georgia, serif;
}

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


html {
  scroll-padding-top: 11rem;
}

body {
  overflow-wrap: break-word;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

::selection {
  background: var(--tint);
  color: var(--primary);
}

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

/* ---------- Skip link (Accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: top 0.25s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Навігація ---------- */
.nav-wrap {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 0.5rem);
  z-index: 60;
  padding: 0 1rem;
}

.nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.85rem 1rem 0.65rem;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 6px 24px rgba(74, 44, 29, 0.08);
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary);
  line-height: 1;
  letter-spacing: 0.01em;
}

.nav .brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(74, 44, 29, 0.2);
}

.nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(max-content, 1fr));
  width: 100%;
  min-width: 0;
  gap: 0.5rem;
  padding-top: 0.65rem;
  /* Keep one row even with enlarged system text; only this row can scroll. */
  overflow-x: auto;
}

.nav ul a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  padding: 0.65rem 0.3rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav ul a:hover {
  color: var(--accent);
  background: rgba(168, 101, 42, 0.08);
}

.nav ul a.active {
  color: var(--primary);
  background: var(--sand);
}

.nav ul a:focus-visible {
  outline-offset: -4px;
}

@media (max-width: 680px) {
  .nav-wrap { padding: 0 0.5rem; }
  .nav { padding: 0.65rem 0.35rem 0.4rem; gap: 0.6rem; border-radius: 22px; }
  .nav .brand { font-size: 2rem; gap: 0.55rem; }
  .nav .brand img { width: 42px; height: 42px; }
  .nav ul { gap: 0.25rem; padding-top: 0.5rem; }
  .nav ul a {
    min-height: 50px;
    font-size: clamp(0.9375rem, 4.1vw, 1.125rem);
    padding: 0.6rem 0.15rem;
  }
}

@media (max-width: 340px) {
  .nav ul a { font-size: 0.875rem; padding-inline: 0.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4.5rem 1.5rem 5rem;
  background: radial-gradient(circle at 88% 15%, #f5dcb8 0, transparent 45%),
              radial-gradient(circle at 4% 95%, #f1e2c8 0, transparent 40%),
              var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-badge {
  width: 190px;
  max-width:100%;
  height:auto;
  aspect-ratio:1;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  display: block;
  box-shadow: 0 14px 40px rgba(74, 44, 29, 0.22);
  transition: transform 0.3s ease;
}
.hero-badge:hover {
  transform: scale(1.03);
}

.kicker {
  display: inline-block;
  background: var(--sand);
  color: var(--primary);
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: 1.1;
  color: var(--primary);
  max-width: 18ch;
  margin: 0 auto;
}

.brandfont {
  font-family: var(--script) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  font-size: 1.22em !important;
  color: var(--accent) !important;
  padding: 0 0.15em;
}

.hero p.lead {
  max-width: 48ch;
  margin: 1.5rem auto 0;
  font-size: 1.2rem;
  color: var(--fg);
}

.hero .actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hours-strip {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.75rem;
  font-size: 0.98rem;
  color: var(--fg);
}
.hours-strip span {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.hours-strip b {
  color: var(--accent);
  font-weight: 800;
}

.hero-art {
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: min(34vw, 360px);
  opacity: 0.45;
  pointer-events: none;
}
@media (max-width: 720px) {
  .hero-art { display: none; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  padding: 0.85rem 1.85rem;
  min-height: 48px;
  max-width: 100%;
  text-align: center;
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 999px;
  transition: all 0.25s ease;
}
.btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(74, 44, 29, 0.15);
}
.btn.accent {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn.accent:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Секції ---------- */
.section {
  padding: 4.5rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.section-head {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-head h2,
h1.page-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--primary);
}

.section-head h2 em,
h1.page-title em {
  font-family: var(--script);
  font-style: normal;
  color: var(--accent);
  font-size: 1.2em;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0.75rem auto 0;
}

/* ---------- Сітки та Картки (Tiles) ---------- */
.grid {
  display: grid;
  gap: 1.75rem;
}
.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(74, 44, 29, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(74, 44, 29, 0.12);
}

.tile .t-num {
  display: inline-block;
  background: var(--sand);
  color: var(--primary);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.tile h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary);
}

.tile p {
  font-size: 1.05rem;
  color: var(--fg);
}

.tile .t-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ---------- Фотогалерея атмосфери (.ph) ---------- */
.ph {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(74, 44, 29, 0.1);
  aspect-ratio: 4 / 3;
  background: var(--sand);
  display: block;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.ph:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(74, 44, 29, 0.16);
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.ph:hover img {
  transform: scale(1.05);
}
.ph figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.2rem 1.4rem 1.1rem;
  background: linear-gradient(to top, rgba(31, 26, 23, 0.85) 0%, rgba(31, 26, 23, 0) 100%);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.ph .ph-badge {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ---------- Смуга-заклик до дії (Band) ---------- */
.band {
  background: var(--primary);
  color: var(--bg);
  padding: 4.5rem 2rem;
  text-align: center;
  border-radius: 36px;
  max-width: 1140px;
  margin: 2rem auto 4rem;
  box-shadow: 0 12px 36px rgba(74, 44, 29, 0.15);
}
.band h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: #fbf6ec;
}
.band h2 em {
  font-family: var(--script);
  font-style: normal;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2em;
}
.band p {
  max-width: 52ch;
  margin: 1.25rem auto 2rem;
  color: #efe3d0;
  font-size: 1.15rem;
}
.band .btn {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.band .btn:hover {
  background: var(--gold);
  color: var(--primary);
}

@media (max-width: 640px) {
  .band {
    margin: 1.5rem 0.75rem 3rem;
    border-radius: 28px;
    padding: 3rem 1.25rem;
  }
}

/* ---------- Меню: фільтри та таблиці ---------- */
.menu-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.75rem;
  margin: 1.75rem 0 2.5rem;
}
.filter-btn {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--primary);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0.85rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  min-height: 60px;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(74, 44, 29, 0.15);
}

@media (max-width: 600px) {
  .menu-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .filter-btn { font-size: 1rem; }
}

table.price {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(74, 44, 29, 0.06);
  border: 1px solid var(--line);
  overflow: hidden;
  font-size: 1.08rem;
}
table.price th {
  padding: 1.1rem 1.5rem;
  background: var(--sand);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  letter-spacing: 0.02em;
}
table.price td {
  padding: 0.95rem 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}
table.price tr:last-child td {
  border-bottom: none;
}
table.price td:last-child,
table.price th:last-child {
  text-align: right;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  white-space: nowrap;
}

.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.tag.tag-v {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}
.tag.tag-hit {
  background: #fff3e0;
  color: #974000;
  border: 1px solid #ffe0b2;
}

.menu-notice {
  margin-top: 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem 1.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ---------- Відгуки: зірковий рейтинг та картки ---------- */
.rating-group {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 2px;
  font-size: 2rem;
  margin: 0.3rem 0;
}
.rating-group input[type=radio] {
  position:absolute; width:1px; height:1px; padding:0; margin:0; border:0;
  overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
.rating-group input:focus-visible + label {
  outline:2px solid var(--primary); outline-offset:4px; border-radius:4px;
}
form.plain .rating-group label {
  cursor: pointer;
  color: #75665a;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
}
form.plain .rating-group label:hover,
form.plain .rating-group label:hover ~ label,
form.plain .rating-group input:checked ~ label {
  color: #87501e;
}
form.plain .rating-group label:hover {
  transform: scale(1.05);
}

.review-note { font-size:.9rem; line-height:1.5; color:var(--muted); }

/* Форма */
form.plain {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}
form.plain label {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
}
form.plain input,
form.plain textarea {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--fg);
  transition: border-color 0.25s, box-shadow 0.25s;
}
form.plain input:focus,
form.plain textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 101, 42, 0.15);
  outline: none;
}
form.plain textarea {
  min-height: 130px;
  resize: vertical;
}
form.plain .hp {
  display: none;
}
.rv-status {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--accent);
  min-height: 1.5rem;
}

/* ---------- Контакти ---------- */
.contact-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 1.75rem 2rem;
  box-shadow: 0 8px 24px rgba(74, 44, 29, 0.06);
  display: flex;
  flex-direction: column;
}
.contact-list .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-list .row:last-child {
  border-bottom: none;
}
.contact-list .row .k {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.contact-list .row .v {
  font-size: 1.15rem;
  color: var(--fg);
}
.contact-list .row .v small {
  font-size: 0.95rem;
  color: var(--muted);
}
.contact-list .row .v a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.contact-list .row .v a:hover {
  color: var(--accent);
}

.copy-btn {
  background: rgba(168, 101, 42, 0.08);
  border: 1px solid var(--line);
  color: var(--primary);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  margin-left: 0.6rem;
  vertical-align: middle;
  transition: all 0.2s;
}
.copy-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.copied-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  opacity: 0;
}
.copied-badge.show {
  opacity: 1;
}

.social-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sand);
  color: var(--primary) !important;
  font-weight: 800 !important;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 0.95rem;
  transition: transform 0.2s, background 0.2s;
}
.social-pill:hover {
  background: var(--accent);
  color: #fff !important;
  transform: translateY(-2px);
}

.map-container {
  margin-top: 2rem;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(74, 44, 29, 0.08);
  height: clamp(360px, 56.25vw, 600px);
  background: var(--sand);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 640px) {
  .contact-list { padding: 1.25rem 1.4rem; }
  .contact-list .row { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Mobile Bottom Bar (.mbar) ---------- */
.mbar {
  display: none;
}
@media (max-width: 720px) {
  body {
    padding-bottom: 5.5rem;
  }
  .mbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    gap: 0.6rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(251, 246, 236, 0.98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(74, 44, 29, 0.08);
  }
  .mbar a {
    flex: 1;
    text-align: center;
    padding: 0.85rem 0.5rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s;
  }
  .mbar a:active {
    background: var(--accent);
  }
  .mbar a.alt {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
  }
}

.contact-list .v {
  overflow-wrap: anywhere;
}

/* ---------- Дуже вузькі екрани (складні телефони, звужене вікно) ---------- */
@media (max-width: 340px) {
  .section, .hero { padding-inline: 1rem; }
  .tile { padding: 1.25rem; }
  .btn { padding-inline: 1rem; }
  .ph figcaption { flex-wrap: wrap; gap: 0.35rem; }
  table.price { font-size: 1rem; }
  table.price th, table.price td { padding-inline: 0.7rem; overflow-wrap: anywhere; }
  table.price td:last-child, table.price th:last-child { white-space: normal; }
  .contact-list .row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 240px) {
  .mbar { flex-direction: column; gap: 0.4rem; }
  body { padding-bottom: 9rem; }
}

/* Екстремально вузькі вікна: усе зменшується пропорційно, слова переносяться де завгодно */
@media (max-width: 200px) {
  html { font-size: 13px; }
  body { overflow-wrap: anywhere; }
  .section, .hero { padding-inline: 0.6rem; }
  .tile { padding: 0.9rem; }
  .btn { padding-inline: 0.6rem; }
}

@media (max-width: 140px) {
  html { font-size: 11px; }
  .nav-wrap { padding-inline: 0.25rem; }
}


[hidden] { display:none !important; }
.contact-hours { display:flex; flex-direction:column; gap:.15rem; }
.live-menu-grid > div { min-width:0; }
.live-menu-grid table + table { margin-top:2rem; }
.menu-item-name { font-size:1.125rem; font-weight:800; line-height:1.45; color:var(--primary); }
.menu-description { display:block; margin-top:.35rem; font-size:.82em; line-height:1.5; color:var(--muted); font-weight:400; }
.live-message { padding:1.5rem; border:1px solid var(--line); border-radius:16px; color:var(--muted); }
.live-message .btn { margin-top:.75rem; cursor:pointer; font:inherit; }

.price td:first-child,.tile h3,.tile p,.live-message { overflow-wrap:anywhere; }
.hours-strip > [data-live-hours] { display:contents; }
.admin-body { padding-bottom:0; }

/* Long owner-provided prices/units must also fit a narrow phone. */
.live-menu-grid table.price { table-layout:fixed; }
.live-menu-grid table.price th:last-child,.live-menu-grid table.price td:last-child { width:36%; white-space:normal; overflow-wrap:anywhere; }
.live-menu-grid table.price th:first-child { overflow-wrap:anywhere; }

[data-logo] { -webkit-user-drag:none; -webkit-touch-callout:none; user-select:none; -webkit-user-select:none; }

[data-contact-address], [data-phone-text], [data-contact-email] { overflow-wrap:anywhere; }

/* Small previews with an accessible full-image dialog. */
.price-with-photo { display:flex; flex-direction:column; align-items:flex-end; gap:.5rem; min-width:0; }
.dish-photo { display:block; flex:none; width:80px; height:80px; max-width:100%; padding:0; border:1px solid var(--line); border-radius:12px; background:var(--sand); overflow:hidden; cursor:zoom-in; }
.dish-photo img { display:block; width:100%; height:100%; object-fit:cover; }
.featured-photo { width:120px; height:120px; margin:0 0 1rem 1rem; }
.photo-open { overflow:hidden; }
.photo-dialog { width:min(900px,calc(100% - 24px)); max-width:calc(100% - 24px); max-height:92vh; max-height:92dvh; margin:auto; padding:16px; border:1px solid var(--line); border-radius:18px; background:var(--card); color:var(--fg); overflow:auto; }
.photo-dialog::backdrop { background:#21190fe0; }
.photo-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:12px; }
.photo-dialog-head h2 { font-family:var(--serif); font-size:1.7rem; line-height:1.2; overflow-wrap:anywhere; }
.photo-close { flex:none; width:44px; height:44px; border:1px solid var(--line); border-radius:50%; background:var(--sand); color:var(--fg); font:28px/1 sans-serif; cursor:pointer; }
.photo-large { display:block; width:100%; height:auto; max-height:72vh; max-height:72dvh; object-fit:contain; border-radius:8px; }
.photo-status { text-align:center; font-size:.9rem; }
@media(max-width:600px) { .dish-photo { width:68px; height:68px; }.featured-photo { width:88px; height:88px; } }

/* Real public reviews; arbitrary visitor text always wraps. */
.reviews-column { min-width:0; }
.guest-review { padding:1.5rem; border:1px solid var(--line); border-radius:22px; background:var(--card); margin-bottom:1rem; box-shadow:0 4px 16px #4a2c1d0d; }
.guest-review-head { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:.5rem 1rem; }
.guest-review-head h3 { margin:0; font-size:1.2rem; font-weight:800; overflow-wrap:anywhere; }
.guest-review-stars { color:#8a540d; white-space:nowrap; letter-spacing:.1em; }
.guest-review-message { margin:.8rem 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.guest-review-date { font-size:.85rem; color:var(--muted); }
.reviews-actions { display:flex; flex-wrap:wrap; gap:.6rem; }
.reviews-actions .btn { cursor:pointer; }
#rv-form button:disabled { opacity:.6; cursor:wait; }

/* Resilient content notices and photo fallback keep controls within mobile cards. */
.content-notice { margin:1rem auto; max-width:1100px; padding:1rem; }
.content-notice p { margin-bottom:.6rem; }
.photo-fallback { display:grid; place-items:center; width:80px; height:80px; padding:.35rem; font-size:.8rem; color:var(--primary); background:var(--sand); }
.review-protection-wrap { min-width:0; width:100%; }
#review-protection { max-width:100%; }
@media(max-width:360px) { #rv-form { gap:1rem; } .tile:has(#rv-form) { padding:1rem; } }

.legal-links{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;width:100%;font-size:.85rem}.legal-links a,.legal-copy a,.review-consent a{text-decoration:underline;text-underline-offset:3px}.legal-copy{max-width:780px;margin:auto;line-height:1.8}.legal-copy h2{margin-top:2rem;font-size:1.65rem}.legal-copy li{margin:.5rem 0}.legal-notice{padding:16px;border:1px solid #b59064;border-radius:16px;background:#fff7e9}.review-consent{display:flex!important;align-items:flex-start;gap:12px;font-size:.9rem;line-height:1.6;margin:16px 0}.plain .review-consent input{width:20px;height:20px;flex:0 0 20px;margin-top:4px;accent-color:#4a2c1d}.map-permission{padding:24px;text-align:center;background:#f8f3eb;border-radius:18px}.map-permission p{max-width:650px;margin:0 auto 16px}.map-revoke{margin:12px}.map-container iframe[hidden]{display:none}.footer{flex-wrap:wrap}

.map-container{height:auto;min-height:0}.map-container iframe{height:clamp(360px,56.25vw,600px)}.legal-copy{padding-left:24px;padding-right:24px;overflow-wrap:anywhere}

.legal-copy a,.legal-links a,.review-consent a,.map-permission a{color:var(--coffee,#4a2c1d)}
