/* =====================================================================
   Sufra Shamia — styles
   Palette: Damascene wine + brass on warm cream.
   Layout uses logical properties throughout so RTL and LTR share one sheet.
   ===================================================================== */

:root {
  --wine-950: #1c0408;
  --wine-900: #2c0810;
  --wine-800: #43101b;
  --wine-700: #5e1626;
  --wine-600: #7a1d31;
  --brass: #c9a15a;
  --brass-200: #ead3a2;
  --brass-700: #94702c;
  --cream: #fbf5ea;
  --paper: #f4eada;
  --sand: #e6d6bb;
  --ink: #2a1814;
  --ink-soft: #6a5047;
  --ok: #58c27d;
  --off: #e08a6c;

  --f-display: "Playfair Display", "Noto Serif Georgian", "Aref Ruqaa", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", "Noto Sans Georgian", "Tajawal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-arabic: "Aref Ruqaa", "Tajawal", "Traditional Arabic", serif;

  --bar: 60px;
  --gut: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(44, 8, 16, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[lang="ar"] {
  --f-display: "Aref Ruqaa", "Playfair Display", "Traditional Arabic", serif;
  --f-body: "Tajawal", "Manrope", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
html[lang="ka"] {
  --f-display: "Noto Serif Georgian", "Playfair Display", Georgia, serif;
  --f-body: "Noto Sans Georgian", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* A section lands exactly under the top bar — none of the previous section shows.
     Only the menu groups need extra room, for the sticky tab row (see .group). */
  scroll-padding-top: calc(var(--bar) - 1px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - var(--gut) * 2, 1200px); margin-inline: auto; }

.skip {
  position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 200;
  padding: 10px 16px; border-radius: 10px; background: var(--brass); color: var(--wine-950); font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; color: var(--wine-600);
}
.eyebrow svg { width: 18px; height: 18px; flex: none; }
.eyebrow--gold { color: var(--brass); }
html:not([lang="ar"]) .eyebrow { letter-spacing: .12em; }
html[lang="en"] .eyebrow, html[lang="ru"] .eyebrow { text-transform: uppercase; font-size: .74rem; }
html[lang="ar"] .eyebrow { font-size: .95rem; }

.head { text-align: center; max-width: 720px; margin-inline: auto; margin-block-end: clamp(26px, 4vw, 44px); }
.head__title {
  font-family: var(--f-display); font-weight: 700; color: var(--wine-800);
  font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.15; margin-block: 8px 10px;
}
html[lang="ar"] .head__title { line-height: 1.45; font-size: clamp(2.3rem, 6vw, 3.9rem); margin-block: 0 4px; }
html[lang="ka"] .head__title { font-size: clamp(1.7rem, 4.6vw, 2.9rem); line-height: 1.3; }
.head__sub { color: var(--ink-soft); font-size: clamp(.95rem, 1.6vw, 1.06rem); }
.head--light .head__title { color: var(--cream); }
.head--light .head__sub { color: rgba(251, 245, 234, .72); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; line-height: 1.2; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 54px; padding: 12px 26px; font-size: 1.04rem; }
.btn--gold {
  color: var(--wine-950);
  background: linear-gradient(135deg, #f0d9a6, var(--brass) 55%, #b98c40);
  box-shadow: 0 12px 30px -12px rgba(201, 161, 90, .75);
}
.btn--ghost { color: var(--cream); border-color: rgba(234, 211, 162, .42); background: rgba(251, 245, 234, .05); }
.btn--ghost:hover { border-color: var(--brass-200); background: rgba(251, 245, 234, .12); }
.btn--wine { color: var(--cream); background: var(--wine-800); }
.btn--wine:hover { background: var(--wine-700); }
.btn--line { color: var(--wine-800); border-color: rgba(67, 16, 27, .35); }
.btn--line:hover { border-color: var(--wine-800); background: rgba(67, 16, 27, .05); }

.tag {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; line-height: 1.5;
  color: var(--wine-700); background: rgba(201, 161, 90, .2); border: 1px solid rgba(148, 112, 44, .28);
}
html[lang="ar"] .tag { font-size: .82rem; }

.price { font-family: "Playfair Display", Georgia, serif; font-weight: 700; color: var(--wine-700); font-size: 1.28rem; line-height: 1; white-space: nowrap; }
.price small { font-family: "Manrope", "Noto Sans Georgian", system-ui, sans-serif; font-size: .7em; font-weight: 700; color: var(--brass-700); margin-inline-start: 2px; }
.price--lg { font-size: 2rem; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Top bar ---------- */
.bar {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 60; height: var(--bar);
  color: var(--cream);
  transition: background-color .35s, box-shadow .35s;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
}
.bar.is-solid { background: rgba(44, 8, 16, .93); box-shadow: 0 10px 30px -18px #000; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bar__in { height: 100%; display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; min-height: 44px; margin-inline-end: auto; }
.brand__mark { width: 28px; height: 28px; color: var(--brass); flex: none; transition: transform .8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__logo { width: 44px; height: 44px; flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.08) rotate(-4deg); }
@media (min-width: 900px) { .brand__logo { width: 54px; height: 54px; } }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(.92rem, 3.9vw, 1.4rem); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[lang="ar"] .brand__name { font-size: clamp(1.25rem, 4.4vw, 1.7rem); line-height: 1.5; }

.bar__nav { display: none; gap: 26px; font-weight: 700; font-size: .95rem; }
.bar__nav a { position: relative; padding-block: 6px; opacity: .86; transition: opacity .2s; }
.bar__nav a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 2px; background: var(--brass); transform: scaleX(0); transition: transform .3s var(--ease); }
.bar__nav a:hover { opacity: 1; }
.bar__nav a:hover::after { transform: scaleX(1); }

.lang { display: inline-flex; flex: none; padding: 3px; border-radius: 999px; background: rgba(251, 245, 234, .1); border: 1px solid rgba(234, 211, 162, .28); direction: ltr; }
.lang__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 34px; padding: 4px 7px; border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1.2; color: rgba(251, 245, 234, .82); transition: background-color .25s, color .25s; }
.lang__btn[lang="ar"] { font-family: "Tajawal", system-ui, sans-serif; font-size: .88rem; }
.lang__btn[lang="ka"] { font-family: "Noto Sans Georgian", system-ui, sans-serif; }
.lang__btn[lang="ru"], .lang__btn[lang="en"] { font-family: "Manrope", system-ui, sans-serif; }
.lang__btn:hover { color: #fff; }
.lang__btn[aria-current="page"] { background: var(--brass); color: var(--wine-950); }
.lang__long { display: none; }

@media (max-width: 359px) {
  .brand { min-width: 44px; }
  .brand__name { display: none; }
}
@media (min-width: 900px) {
  :root { --bar: 70px; }
  .bar__nav { display: inline-flex; margin-inline-end: 10px; }
  .lang__long { display: inline; }
  .lang__short { display: none; }
  .lang__btn { padding: 6px 14px; font-size: .86rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--cream);
  padding-block: calc(var(--bar) + clamp(22px, 5vw, 64px)) clamp(44px, 7vw, 90px);
  background:
    radial-gradient(900px 520px at 82% 18%, rgba(201, 161, 90, .2), transparent 62%),
    radial-gradient(800px 640px at 8% 105%, rgba(122, 29, 49, .95), transparent 62%),
    linear-gradient(160deg, var(--wine-900), var(--wine-950));
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/pattern.svg") 0 0 / 96px 96px; opacity: .09;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
}
.hero__grid { display: grid; gap: clamp(30px, 6vw, 72px); align-items: center; }
.hero__text { min-width: 0; }
.hero__eyebrow { margin-block-end: clamp(10px, 2vw, 18px); }

.hero__alt { color: var(--brass-200); opacity: .92; line-height: 1.2; }
html[lang="ar"] .hero__alt { font-family: "Playfair Display", Georgia, serif; font-size: clamp(.85rem, 2.4vw, 1.05rem); letter-spacing: .42em; text-transform: uppercase; }
html:not([lang="ar"]) .hero__alt { font-family: var(--f-arabic); font-size: clamp(1.7rem, 5vw, 2.5rem); }

.hero__h1 { font: inherit; }
.hero__title, .hero__tagline { display: block; }
.hero__title {
  font-family: var(--f-display); font-weight: 700; line-height: 1.04;
  font-size: clamp(2.9rem, 12vw, 6.2rem);
  margin-block: 4px 12px;
  background: linear-gradient(120deg, #fff6e2 10%, var(--brass-200) 45%, var(--brass) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[lang="ar"] .hero__title { font-size: clamp(3.6rem, 16vw, 7.6rem); line-height: 1.32; margin-block: 0 4px; padding-block-end: .12em; }
html[lang="ka"] .hero__title { font-size: clamp(2.5rem, 10.5vw, 5.4rem); line-height: 1.18; }
html[lang="ru"] .hero__title { font-size: clamp(2.6rem, 11vw, 5.8rem); }

.hero__tagline { font-family: var(--f-display); font-size: clamp(1.2rem, 3.3vw, 1.75rem); line-height: 1.35; color: #fff6e2; }
html[lang="ar"] .hero__tagline { font-family: var(--f-body); font-weight: 700; font-size: clamp(1.25rem, 3.5vw, 1.8rem); line-height: 1.5; }
.hero__lead { margin-block-start: 12px; max-width: 54ch; color: rgba(251, 245, 234, .78); font-size: clamp(.98rem, 1.7vw, 1.1rem); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: clamp(20px, 3.4vw, 32px); }
.hero__cta .btn--gold { flex: 1 1 100%; }
@media (min-width: 520px) { .hero__cta .btn--gold { flex: 0 0 auto; } }
.hero__cta .btn--ghost { flex: 1 1 0; }
@media (min-width: 520px) { .hero__cta .btn--ghost { flex: 0 0 auto; } }

.status {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; margin-block-start: 20px;
  padding: 7px 15px; border-radius: 999px; font-size: .9rem; line-height: 1.4;
  background: rgba(0, 0, 0, .28); border: 1px solid rgba(234, 211, 162, .2);
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(88, 194, 125, .6); animation: pulse 2.2s infinite; flex: none; }
.status.is-closed .status__dot { background: var(--off); animation: none; }
.status strong { font-weight: 800; }
.status span:last-child { color: rgba(251, 245, 234, .74); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(88, 194, 125, 0); } 100% { box-shadow: 0 0 0 0 rgba(88, 194, 125, 0); } }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block-start: clamp(22px, 3.6vw, 34px); border-block-start: 1px solid rgba(234, 211, 162, .22); }
.facts li { padding: 14px 10px 0; text-align: center; min-width: 0; }
.facts li + li { border-inline-start: 1px solid rgba(234, 211, 162, .22); }
.facts strong { display: block; font-family: var(--f-display); font-size: clamp(1rem, 3.2vw, 1.4rem); line-height: 1.3; color: var(--brass-200); unicode-bidi: plaintext; }
html[lang="ar"] .facts strong { font-family: var(--f-body); font-weight: 800; }
.facts span { display: block; font-size: clamp(.7rem, 2.2vw, .84rem); line-height: 1.45; color: rgba(251, 245, 234, .68); margin-block-start: 3px; overflow-wrap: anywhere; }

/* The "sufra": plates on the table */
.hero__stage { min-width: 0; }
.stage { position: relative; width: min(100%, 520px, 78vw); aspect-ratio: 1; margin-inline: auto; }
.ring { position: absolute; inset: 6% 4% 2% 4%; width: 92%; height: 92%; color: var(--brass); direction: ltr; font-family: "Playfair Display", Georgia, serif; animation: spin 80s linear infinite reverse; }
.plate { position: absolute; border-radius: 50%; overflow: hidden; background: var(--wine-800); box-shadow: 0 0 0 5px rgba(251, 245, 234, .94), 0 0 0 6.5px var(--brass), 0 34px 60px -18px rgba(0, 0, 0, .8); }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate--1 { inset: 16% 14% 12% 14%; }
.plate--1 img { animation: spin 150s linear infinite; }
.plate--2 { width: 31%; aspect-ratio: 1; inset-block-start: 1%; inset-inline-end: 0; animation: float 7s ease-in-out infinite alternate; }
.plate--3 { width: 27%; aspect-ratio: 1; inset-block-end: 0; inset-inline-start: 1%; animation: float 8s ease-in-out -3s infinite alternate; }
/* The house seal: the restaurant's chef emblem resting on the table like a wax seal */
.seal { position: absolute; width: 31%; aspect-ratio: 1; inset-block-end: 0; inset-inline-start: 0; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #4c1522, #240b11 72%);
  box-shadow: 0 0 0 2px var(--brass), 0 0 0 7px rgba(36, 11, 17, .92), 0 0 0 8.5px rgba(201, 161, 90, .6), 0 30px 54px -16px rgba(0, 0, 0, .85);
  animation: float 8s ease-in-out -3s infinite alternate; }
.seal img { width: 86%; height: 86%; object-fit: contain; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { from { transform: translateY(-6px); } to { transform: translateY(8px); } }

@media (min-width: 900px) {
  /* The first screen is the hero plus the dish ribbon: the hero leaves room for the
     ribbon and tightens its spacing on short windows (vh-based), so the ribbon is
     never cut off at the bottom edge. */
  .hero { --ribbon: 56px; display: grid; align-items: center;
    min-height: min(calc(100vh - var(--ribbon)), 900px); min-height: min(calc(100svh - var(--ribbon)), 900px);
    padding-block: calc(var(--bar) + clamp(10px, 3.6vh, 56px)) clamp(16px, 4.6vh, 72px); }
  .hero__eyebrow { margin-block-end: clamp(6px, 1.6vh, 18px); }
  .hero__lead { margin-block-start: clamp(6px, 1.4vh, 12px); }
  .hero__cta { margin-block-start: clamp(12px, 3.2vh, 32px); }
  .hero__cta .btn--lg { min-height: clamp(44px, 7.4vh, 54px); padding-block: 8px; }
  .status { margin-block-start: clamp(10px, 2.4vh, 20px); }
  .facts { margin-block-start: clamp(12px, 3vh, 34px); }
  .facts li { padding-block-start: clamp(8px, 1.8vh, 14px); }
  /* Safety net for very short windows: the ribbon rests on the bottom edge of the
     screen until the page is scrolled to its own place, instead of hiding below it. */
  .ribbon { position: sticky; inset-block-end: 0; z-index: 5; }
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .stage { width: min(100%, 540px, calc(100vh - var(--bar) - 150px)); }
  .facts li { text-align: start; padding-inline: 18px 10px; }
  .hero__title { font-size: clamp(2.6rem, min(6.2vw, 13vh), 6.2rem); }
  html[lang="ar"] .hero__title { font-size: clamp(3rem, min(8.4vw, 17vh), 7.6rem); }
  html[lang="ka"] .hero__title { font-size: clamp(2.2rem, min(5.2vw, 11vh), 5.2rem); }
  html[lang="ru"] .hero__title { font-size: clamp(2.4rem, min(5.6vw, 12vh), 5.6rem); }
  .facts li:first-child { padding-inline-start: 0; }
}

/* Short desktop windows (small laptops, zoomed-in browsers): drop the secondary
   lines so the name, the three buttons and the ribbon all stay on the first screen.
   The same facts remain in the eyebrow, the open/closed pill and the Visit section. */
@media (min-width: 900px) and (max-height: 790px) {
  .facts { display: none; }
}
@media (min-width: 900px) and (max-height: 640px) {
  .hero__lead { display: none; }
  .hero__alt { display: none; }
  .hero__tagline { font-size: 1.2rem; }
  .hero { padding-block: calc(var(--bar) + 8px) 14px; }
}

/* ---------- Ribbon ---------- */
.ribbon { overflow: hidden; background: var(--brass); color: var(--wine-950); border-block: 1px solid var(--brass-700); direction: ltr; }
.ribbon__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.ribbon__set { display: flex; flex: none; align-items: center; }
.ribbon__set span { display: inline-flex; align-items: center; gap: 22px; padding-inline-start: 22px; padding-block: 9px; font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; line-height: 1.6; white-space: nowrap; }
.ribbon__set span::after { content: "✦"; font-family: system-ui, sans-serif; font-size: .7rem; opacity: .7; }
html[lang="ar"] .ribbon__set span { font-size: 1.35rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stars of the table ---------- */
.stars { padding-block: clamp(52px, 8vw, 100px) clamp(30px, 5vw, 60px); background: linear-gradient(var(--cream), var(--paper)); }
.stars__rail {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px;
  width: min(100% - var(--gut) * 2 - 12px, 500px); margin-inline: auto; padding-block: 10px 6px;
}
.star { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; text-align: center; }
.star__arch { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 999px 999px 14px 14px; }
.star__arch::before { content: ""; position: absolute; inset: -6px; border: 1.5px solid var(--brass); border-radius: 999px 999px 19px 19px; opacity: .75; transition: inset .45s var(--ease), opacity .45s; }
.star__clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.star__clip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.star:hover .star__arch::before { inset: -10px; opacity: 1; }
.star:hover img { transform: scale(1.06); }
.star__name { display: block; flex: 1; margin-block-start: 16px; font-family: var(--f-display); font-weight: 700; font-size: clamp(1rem, 4.4vw, 1.3rem); line-height: 1.3; color: var(--wine-800); overflow-wrap: anywhere; }
html[lang="ar"] .star__name { font-size: clamp(1.3rem, 5.6vw, 1.65rem); line-height: 1.5; margin-block-start: 12px; }
html[lang="ka"] .star__name { font-size: clamp(.9rem, 3.8vw, 1.12rem); line-height: 1.4; }
.star__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin-block-start: 8px; }
@media (min-width: 720px) {
  .stars__rail { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; width: min(100% - var(--gut) * 2 - 20px, 1100px); }
  .star__arch { border-radius: 999px 999px 16px 16px; }
  .star__arch::before { inset: -9px; border-radius: 999px 999px 22px 22px; }
  .star:hover .star__arch::before { inset: -13px; }
}
@media (min-width: 1000px) { .stars__rail { gap: 44px; } }

/* ---------- Menu ---------- */
.menu { padding-block: clamp(40px, 6vw, 80px) clamp(52px, 8vw, 100px); background: var(--paper); position: relative; }
.tabs { position: sticky; inset-block-start: var(--bar); z-index: 40; background: rgba(244, 234, 218, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-block: 1px solid var(--sand); }
.tabs__in { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.tabs__in::-webkit-scrollbar { display: none; }
.tabs__in { --end: right; }
[dir="rtl"] .tabs__in { --end: left; }
.tabs__in.fade-end { -webkit-mask-image: linear-gradient(to var(--end), #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to var(--end), #000 calc(100% - 40px), transparent); }
.tabs__in.fade-start { -webkit-mask-image: linear-gradient(to var(--end), transparent, #000 40px); mask-image: linear-gradient(to var(--end), transparent, #000 40px); }
.tabs__in.fade-start.fade-end { -webkit-mask-image: linear-gradient(to var(--end), transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to var(--end), transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.tab { flex: 1 0 auto; min-height: 42px; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem; line-height: 1.3; white-space: nowrap; text-align: center; color: var(--wine-800); background: var(--cream); border: 1.5px solid var(--sand); transition: background-color .25s, color .25s, border-color .25s; }
.tab small { font-weight: 700; opacity: .6; margin-inline-start: 6px; font-size: .8em; }
@media (max-width: 699px) { .tabs__in { gap: 6px; } .tab { flex: 0 0 auto; padding-inline: 14px; font-size: .9rem; } .tab small { display: none; } }
.tab.is-on { background: var(--wine-800); border-color: var(--wine-800); color: var(--cream); }
/* Centred rows must never be combined with sideways scrolling: the first tabs
   would be pushed off the edge with no way to reach them. On touch-sized screens
   the row scrolls from its start; on wide screens it wraps and centres instead. */
@media (min-width: 700px) { .tab { flex: 0 0 auto; padding-inline: 18px; } }
@media (min-width: 900px) { .tabs__in { flex-wrap: wrap; justify-content: center; overflow: visible; } }

/* --tabs-h is measured by js/app.js: the tab row can be one or two rows tall */
.group { padding-block-start: clamp(30px, 5vw, 54px); scroll-margin-top: calc(var(--tabs-h, 64px) + 4px); }
.group__head { display: flex; align-items: center; gap: 16px; margin-block-end: 6px; }
.group__head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to var(--line-dir, right), var(--brass), transparent); }
[dir="rtl"] .group__head::after { --line-dir: left; }
.group__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.3; color: var(--wine-800); }
html[lang="ar"] .group__title { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.5; }
html[lang="ka"] .group__title { font-size: clamp(1.25rem, 3.4vw, 1.8rem); }
.group__sub { color: var(--ink-soft); font-size: .95rem; margin-block-end: 18px; }

.grid { display: grid; gap: 12px; }
.dish {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; width: 100%; text-align: start;
  background: var(--cream); border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.dish:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brass); }
.dish__media { position: relative; display: block; min-height: 112px; overflow: hidden; background: var(--sand); }
.dish__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.dish:hover .dish__media img { transform: scale(1.07); }
/* Bottles and glasses: show the whole photo on white instead of cropping it */
.dish__media img.fit-contain, .star__clip img.fit-contain, .sheet__media img.fit-contain { object-fit: contain; background: #fff; padding: 8px; }
.sheet__media img.fit-contain { padding: 20px; }
.dish__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; min-width: 0; }
.dish__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dish__name { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; line-height: 1.3; color: var(--wine-800); min-width: 0; overflow-wrap: anywhere; }
html[lang="ar"] .dish__name { font-size: 1.42rem; line-height: 1.45; }
html[lang="ka"] .dish__name { font-size: 1rem; line-height: 1.4; }
.dish__ar { font-family: var(--f-arabic); font-size: 1.05rem; line-height: 1.4; color: var(--brass-700); text-align: left; }
.dish__desc { font-size: .86rem; line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
html[lang="ar"] .dish__desc { font-size: .95rem; }
.dish__tagrow { margin-block-start: auto; padding-block-start: 4px; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .dish { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .dish__media { aspect-ratio: 4 / 3; min-height: 0; }
  .dish__body { padding: 16px 18px 18px; gap: 6px; }
  .dish__name { font-size: 1.22rem; }
  html[lang="ar"] .dish__name { font-size: 1.55rem; }
  html[lang="ka"] .dish__name { font-size: 1.06rem; }
  .dish__desc { -webkit-line-clamp: 3; line-clamp: 3; font-size: .9rem; }
}
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1240px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.notes { margin-block-start: clamp(30px, 5vw, 50px); padding: 18px 22px; border-radius: var(--radius); border: 1px dashed var(--brass-700); background: rgba(251, 245, 234, .7); text-align: center; color: var(--ink-soft); font-size: .92rem; }
.notes p:first-child { color: var(--ink); font-weight: 700; margin-block-end: 4px; }
.noscript { padding: 30px 0; text-align: center; font-weight: 700; }

/* ---------- Visit ---------- */
.visit {
  position: relative; isolation: isolate; color: var(--cream);
  padding-block: clamp(56px, 8vw, 104px);
  background: radial-gradient(900px 500px at 15% 0%, rgba(201, 161, 90, .16), transparent 60%), linear-gradient(200deg, var(--wine-800), var(--wine-950));
}
.visit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/pattern.svg") 0 0 / 96px 96px; opacity: .06; }
.visit__grid { display: grid; gap: clamp(22px, 4vw, 44px); align-items: stretch; }
.info { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3.4vw, 34px); border-radius: 24px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(234, 211, 162, .2); min-width: 0; }
.info__row { display: flex; gap: 14px; align-items: flex-start; }
.info__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--brass-200); background: rgba(201, 161, 90, .14); border: 1px solid rgba(234, 211, 162, .25); }
.info__ico svg { width: 20px; height: 20px; }
.info h3 { font-size: .8rem; font-weight: 700; color: var(--brass); line-height: 1.5; }
html:not([lang="ar"]) .info h3 { letter-spacing: .06em; }
html[lang="ar"] .info h3 { font-size: .92rem; }
.info p { font-size: 1.05rem; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.link { display: inline-block; padding-block: 7px 5px; border-block-end: 1px solid rgba(234, 211, 162, .45); transition: border-color .2s, color .2s; }
.link:hover { color: var(--brass-200); border-color: var(--brass-200); }
.info__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-block-start: 6px; }
.info__actions .btn { flex: 1 1 auto; }
.social { padding-block-start: 18px; border-block-start: 1px solid rgba(234, 211, 162, .2); }
.social__list { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 10px; }
.chip { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 9px 15px; border-radius: 999px; font-size: .9rem; font-weight: 700; background: rgba(251, 245, 234, .07); border: 1px solid rgba(234, 211, 162, .28); transition: background-color .25s, border-color .25s, transform .25s var(--ease); }
.chip:hover { background: rgba(251, 245, 234, .14); border-color: var(--brass-200); transform: translateY(-2px); }
.chip svg { width: 18px; height: 18px; flex: none; color: var(--brass-200); }
.chip bdi { font-weight: 500; opacity: .72; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "Manrope", system-ui, sans-serif; }

.map { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.map__frame { position: relative; flex: 1; min-height: 340px; border-radius: 24px; overflow: hidden; background: var(--wine-800); border: 1px solid rgba(234, 211, 162, .35); box-shadow: 0 30px 60px -30px #000; }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--brass-200); font-weight: 700; direction: ltr; }
.map__fallback svg { width: 38px; height: 38px; }
.map__open { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; font-weight: 700; font-size: .95rem; color: var(--brass-200); border-block-end: 1px solid rgba(234, 211, 162, .4); }
.map__open svg { width: 18px; height: 18px; }
.map__open:hover { color: #fff; }
@media (min-width: 900px) {
  .visit__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .map__frame { min-height: 460px; }
}

/* ---------- Review ---------- */
.review { position: relative; isolation: isolate; text-align: center; color: var(--wine-950); padding-block: clamp(40px, 6vw, 72px); background: linear-gradient(135deg, #f1dcab, var(--brass) 55%, #b98c40); border-block: 1px solid var(--brass-700); }
.review::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/pattern.svg") 0 0 / 96px 96px; filter: brightness(0); opacity: .06; }
.review__in { display: grid; justify-items: center; gap: 8px; max-width: 640px; }
.review__stars { display: flex; gap: 6px; direction: ltr; color: var(--wine-800); }
.review__stars svg { width: clamp(26px, 7vw, 34px); height: clamp(26px, 7vw, 34px); }
.review__eyebrow { font-weight: 800; font-size: .9rem; color: var(--wine-700); margin-block-start: 6px; }
html[lang="en"] .review__eyebrow, html[lang="ru"] .review__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; }
.review__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.2; color: var(--wine-900); }
html[lang="ar"] .review__title { font-size: clamp(2.2rem, 6vw, 3.3rem); line-height: 1.45; }
html[lang="ka"] .review__title { font-size: clamp(1.5rem, 4.4vw, 2.3rem); line-height: 1.35; }
.review__text { max-width: 46ch; font-weight: 500; color: rgba(28, 4, 8, .82); margin-block-end: 12px; }
.review .btn--wine { box-shadow: 0 14px 30px -14px rgba(28, 4, 8, .8); max-width: 100%; white-space: normal; text-align: center; }
.review .btn--wine svg { color: var(--brass-200); }
.review__note { font-size: .8rem; color: rgba(28, 4, 8, .66); margin-block-start: 4px; }

/* ---------- QR ---------- */
.qr { padding-block: clamp(48px, 7vw, 90px); background: var(--cream); }
.qr__card { display: grid; gap: clamp(22px, 4vw, 48px); align-items: center; justify-items: center; text-align: center; padding: clamp(22px, 4vw, 48px); border-radius: 28px; background: #fff; border: 1px solid var(--sand); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.qr__card::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg") 0 0 / 96px 96px; opacity: .1; pointer-events: none; -webkit-mask-image: linear-gradient(120deg, transparent 45%, #000); mask-image: linear-gradient(120deg, transparent 45%, #000); }
.qr__code { position: relative; padding: 14px; border-radius: 22px; background: #fff; border: 2px solid var(--wine-800); box-shadow: 0 0 0 6px #fff, 0 0 0 7.5px var(--brass); }
.qr__code img { width: min(58vw, 230px); height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.qr__text { position: relative; min-width: 0; max-width: 520px; }
.qr__text .head__title { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
html[lang="ar"] .qr__text .head__title { font-size: clamp(2rem, 5vw, 3rem); }
.qr__text > p { color: var(--ink-soft); }
.qr__url { margin-block-start: 10px; font-weight: 800; color: var(--wine-700) !important; font-size: 1.1rem; font-family: "Manrope", system-ui, sans-serif; letter-spacing: .02em; }
.qr__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-block-start: 18px; }
.qr__actions .btn { white-space: normal; text-align: center; max-width: 100%; }
@media (min-width: 760px) {
  .qr__card { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: start; }
  .qr__actions { justify-content: flex-start; }
}

/* ---------- Footer ---------- */
.foot { background: var(--wine-950); color: rgba(251, 245, 234, .75); text-align: center; padding-block: clamp(40px, 6vw, 64px) calc(28px + env(safe-area-inset-bottom)); }
.foot__in { display: grid; justify-items: center; gap: 6px; }
.foot__mark { width: 40px; height: 40px; color: var(--brass); margin-block-end: 6px; }
.foot__logo { width: 116px; height: 116px; margin-block-end: 6px; }
.foot__name { font-family: var(--f-arabic); font-weight: 700; font-size: 2.6rem; line-height: 1.4; color: var(--brass-200); }
.foot__latin { font-family: "Playfair Display", Georgia, serif; letter-spacing: .34em; text-transform: uppercase; font-size: .74rem; color: var(--brass); }
.foot__line { margin-block-start: 14px; max-width: 46ch; }
.foot__social { display: flex; gap: 12px; margin-block: 18px 14px; }
.foot__social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--brass-200); border: 1px solid rgba(234, 211, 162, .3); transition: background-color .25s, color .25s, transform .25s var(--ease); }
.foot__social a:hover { background: var(--brass); color: var(--wine-950); transform: translateY(-3px); }
.foot__social svg { width: 20px; height: 20px; }
.foot__copy { font-size: .82rem; opacity: .7; }

.foot__dev { margin-block-start: 14px; padding: 10px 18px; min-height: 40px; border-radius: 999px; font-family: "Playfair Display", Georgia, serif; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(251, 245, 234, .55); border: 1px solid rgba(234, 211, 162, .18); transition: color .3s, border-color .3s, background-color .3s, letter-spacing .4s var(--ease); }
.foot__dev strong { font-weight: 700; color: var(--brass-200); }
.foot__dev:hover { color: rgba(251, 245, 234, .85); border-color: var(--brass); background: rgba(201, 161, 90, .08); letter-spacing: .34em; }

/* ---------- Developer card ---------- */
.dev { padding: 0; border: 0; background: transparent; color: var(--cream); width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; overflow: hidden; }
.dev:not([open]) { display: none; }
.dev[open] { display: grid; place-items: center; }
.dev::backdrop { background: rgba(12, 2, 4, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dev__card {
  position: relative; isolation: isolate; width: min(92vw, 400px); max-height: 92vh; overflow: auto; padding: 40px 28px 26px; text-align: center; border-radius: 26px;
  background: radial-gradient(420px 260px at 50% -10%, rgba(201, 161, 90, .26), transparent 70%), linear-gradient(165deg, var(--wine-800), var(--wine-950));
  border: 1px solid rgba(234, 211, 162, .45); box-shadow: 0 0 0 6px rgba(28, 4, 8, .6), 0 0 0 7px rgba(201, 161, 90, .35), 0 40px 90px -20px #000;
  animation: devIn .5s var(--ease);
}
.dev__card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: url("../img/pattern.svg") 0 0 / 80px 80px; opacity: .07; }
.dev__close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--brass-200); border: 1px solid rgba(234, 211, 162, .3); transition: background-color .2s, transform .3s var(--ease); }
.dev__close:hover { background: rgba(201, 161, 90, .16); transform: rotate(90deg); }
.dev__close svg { width: 18px; height: 18px; }
.dev__mono { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, #f0d9a6, var(--brass) 55%, #b98c40); box-shadow: 0 0 0 5px var(--wine-900), 0 0 0 6px rgba(201, 161, 90, .6), 0 14px 30px -10px rgba(201, 161, 90, .6); }
.dev__mono span { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.9rem; letter-spacing: .04em; color: var(--wine-950); }
.dev__eyebrow { font-family: "Playfair Display", Georgia, serif; font-size: .68rem; letter-spacing: .42em; text-transform: uppercase; color: var(--brass); margin-inline-end: -.42em; }
.dev__name { margin-block: 6px 4px; font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: clamp(1.7rem, 7vw, 2.1rem); line-height: 1.15; background: linear-gradient(120deg, #fff6e2 10%, var(--brass-200) 50%, var(--brass) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dev__role { font-size: .95rem; color: rgba(251, 245, 234, .72); }
.dev__rule { display: flex; align-items: center; gap: 12px; margin-block: 18px; color: var(--brass); }
.dev__rule::before, .dev__rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, transparent, rgba(201, 161, 90, .7)); }
.dev__rule::after { transform: scaleX(-1); }
.dev__rule svg { width: 18px; height: 18px; flex: none; }
.dev__lines { display: grid; gap: 10px; justify-items: center; }
.dev__lines li { display: inline-flex; align-items: center; gap: 10px; font-size: 1.02rem; font-weight: 500; }
.dev__lines svg { width: 18px; height: 18px; flex: none; color: var(--brass-200); }
.dev__lines a { display: inline-block; padding-block: 6px; border-block-end: 1px solid rgba(234, 211, 162, .4); font-family: "Manrope", system-ui, sans-serif; font-weight: 700; letter-spacing: .03em; }
.dev__lines a:hover { color: var(--brass-200); }
.dev__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block-start: 22px; }
.dev__actions .btn { margin: 0; min-height: 50px; padding-inline: 12px; }
.dev__note { margin-block-start: 18px; font-size: .86rem; color: rgba(251, 245, 234, .6); }
@keyframes devIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 70;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  background: rgba(28, 4, 8, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-block-start: 1px solid rgba(234, 211, 162, .25); color: var(--cream);
}
.dock a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; font-size: .72rem; font-weight: 700; line-height: 1.3; min-width: 0; }
.dock a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock a:first-child { color: var(--wine-950); background: linear-gradient(135deg, #f0d9a6, var(--brass)); }
.dock svg { width: 21px; height: 21px; }
.dock a:not(:first-child) svg { color: var(--brass-200); }
html[lang="ar"] .dock a { font-size: .8rem; }
@media (max-width: 819px) { .foot { padding-block-end: calc(96px + env(safe-area-inset-bottom)); } }
@media (min-width: 820px) { .dock { display: none; } }

/* ---------- Dish sheet ---------- */
.sheet { padding: 0; border: 0; background: transparent; color: var(--ink); width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; overflow: hidden; }
.sheet:not([open]) { display: none; }
.sheet::backdrop { background: rgba(28, 4, 8, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet__in {
  position: absolute; inset-inline: 0; inset-block-end: 0; max-height: 94vh; max-height: 94dvh;
  display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain;
  background: var(--cream); border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px -10px rgba(0, 0, 0, .6);
  animation: sheetUp .42s var(--ease);
}
.sheet__close { position: absolute; z-index: 2; inset-block-start: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--cream); background: rgba(28, 4, 8, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .2s, transform .25s var(--ease); }
.sheet__close:hover { background: var(--wine-700); transform: rotate(90deg); }
.sheet__close svg { width: 20px; height: 20px; }
.sheet__media { flex: none; background: var(--wine-900); }
.sheet__media img { width: 100%; height: min(46vh, 76vw); object-fit: cover; }
.sheet__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px var(--gut) calc(22px + env(safe-area-inset-bottom)); }
.sheet__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.2; color: var(--wine-800); }
html[lang="ar"] .sheet__name { font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1.45; }
html[lang="ka"] .sheet__name { font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.35; }
.sheet__ar { font-family: var(--f-arabic); font-size: 1.5rem; line-height: 1.4; color: var(--brass-700); align-self: stretch; text-align: left; }
.sheet__desc { font-size: 1.05rem; color: var(--ink-soft); }
.sheet__foot { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block-start: 10px; padding-block-start: 16px; border-block-start: 1px solid var(--sand); }
.sheet__nav { display: flex; gap: 8px; }
.btn--wa { align-self: stretch; margin-block-start: 6px; color: #fff; background: #1f8f4e; white-space: normal; text-align: center; }
.btn--wa:hover { background: #197a42; }
.round { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--wine-800); border: 1.5px solid var(--sand); background: #fff; transition: background-color .2s, color .2s, border-color .2s; }
.round:hover { background: var(--wine-800); color: var(--cream); border-color: var(--wine-800); }
.round svg { width: 20px; height: 20px; }
.round svg.flip { transform: scaleX(-1); }
[dir="rtl"] .round svg { transform: scaleX(-1); }
[dir="rtl"] .round svg.flip { transform: none; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }

@media (min-width: 820px) {
  .sheet__in { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(920px, 92vw); max-height: 88vh; flex-direction: row; border-radius: 26px; overflow: hidden; animation: sheetIn .4s var(--ease); }
  .sheet__media { flex: 1 1 54%; min-height: 460px; position: relative; }
  .sheet__media img { position: absolute; inset: 0; height: 100%; }
  .sheet__body { flex: 1 1 46%; justify-content: center; padding: 56px 36px 36px; overflow: auto; }
  @keyframes sheetIn { from { transform: translate(-50%, -46%); opacity: 0; } }
}

/* ---------- Print: A4 with four table cards ----------
   The sheet is 184 x 268 mm: it fits one A4 page whether the browser applies the
   12 mm margin asked for here or its own default margins. A sheet sized to the
   full 210 x 297 mm page overflows by a hair in Firefox and with default margins,
   which pushes the second row of cards onto a second page. */
.print { display: none; }
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; height: auto !important; min-height: 0 !important; }
  body > *:not(.print) { display: none !important; }
  .print { display: grid; grid-template-columns: 92mm 92mm; grid-template-rows: 134mm 134mm; width: 184mm; height: 268mm; margin: 0 auto; overflow: hidden; break-inside: avoid; page-break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pcard { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6mm; padding: 5mm 6mm; text-align: center; color: #2c0810; border: .2mm dashed #b9a98c; overflow: hidden; }
  .pcard__mark { width: 17mm; height: 17mm; border-radius: 50%; }
  .pcard__ar { font-family: "Aref Ruqaa", "Tajawal", serif; font-weight: 700; font-size: 27pt; line-height: 1.25; color: #43101b; }
  .pcard__en { font-family: "Playfair Display", Georgia, serif; font-size: 8.5pt; letter-spacing: .32em; text-transform: uppercase; color: #94702c; }
  .pcard__qr { box-sizing: border-box; width: 50mm; height: 50mm; margin-block: 2mm 1.5mm; padding: 2.2mm; border: .6mm solid #43101b; border-radius: 4mm; image-rendering: pixelated; }
  .pcard__scan { font-family: "Tajawal", "Manrope", "Noto Sans Georgian", sans-serif; font-weight: 700; font-size: 9.5pt; line-height: 1.45; }
  .pcard__scan span { display: block; }
  .pcard__scan span[lang="ar"] { font-size: 12pt; }
  .pcard__url { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 9.5pt; color: #5e1626; direction: ltr; margin-block-start: .6mm; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
