/* ML Service. Colours taken from the shop itself: the black fascia and white
   ML disc of the sign, and the yellow and pink of the pop-art murals. */
:root {
  --ink: #131313;
  --ink-2: #1f1f1f;
  --paper: #f4f1ea;
  --paper-2: #fbf9f4;
  --line: rgba(19, 19, 19, 0.14);
  --line-dark: rgba(244, 241, 234, 0.18);
  --muted: #57534d;
  --muted-dark: #b9b3a8;
  --yellow: #ffd23f;
  --yellow-2: #ffdd6b;
  --pink: #ec3a6a;

  --f-head: 'Unbounded', 'Noto Sans Georgian', system-ui, sans-serif;
  --f-body: 'Onest', 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --top: 68px;
  --pad: clamp(72px, 11vh, 128px);
  --gap: clamp(24px, 4vw, 64px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --promo: 0px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + var(--promo)); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

h1, h2 {
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 3.1vw, 3rem); line-height: 1.1; }
h3 { font-family: var(--f-head); font-weight: 500; font-size: 1.04rem; line-height: 1.3; }

/* Georgian has no Unbounded glyphs: set its headings in Noto Sans Georgian,
   a little smaller because Georgian words run long. */
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3, :lang(ka) .big-type {
  font-family: 'Noto Sans Georgian', var(--f-head);
  letter-spacing: 0;
}
:lang(ka) h1, :lang(ka) h2 { font-weight: 800; }
:lang(ka) h3 { font-weight: 700; }
:lang(ka) h2 { font-size: clamp(1.7rem, 2.7vw, 2.6rem); line-height: 1.2; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lead { font-size: 1.14rem; line-height: 1.6; max-width: 38em; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--yellow); }
.top :focus-visible, .dark :focus-visible, .hero :focus-visible, .foot :focus-visible, .bar :focus-visible, .nav :focus-visible {
  outline-color: var(--yellow); box-shadow: 0 0 0 6px var(--ink);
}
.yellow :focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 6px var(--paper-2); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 12px 16px; background: var(--yellow); color: var(--ink);
  font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
.skip:focus-visible { outline: 3px solid var(--ink); box-shadow: 0 0 0 6px var(--yellow); }

/* Buttons: square corners like the shop's signs. They step up on hover and
   press down on click. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  font: 600 16px/1.2 var(--f-body);
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform 0.18s var(--ease), background-color 0.18s, color 0.18s, border-color 0.18s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-line { border-color: var(--paper); color: var(--paper); }
.btn-line:hover { background: var(--paper); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2c2c2c; }
.btn-line-ink { border-color: var(--ink); color: var(--ink); }
.btn-line-ink:hover { background: var(--ink); color: var(--paper); }

.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.25s var(--ease);
}
.link:hover { background-size: 100% 3px; }

/* Photographs: square corners, a slow 1.03 zoom inside the frame on hover. */
.frame { overflow: hidden; background: var(--ink-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.frame:hover img { transform: scale(1.03); }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: var(--promo) 0 auto; z-index: 50;
  height: var(--top);
  background: var(--ink); color: var(--paper);
}
.top-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(244, 241, 234, 0.25); }
.brand-word { font: 500 15px/1 'Unbounded', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav > a {
  font-size: 15px; text-decoration: none; padding: 10px 0;
  background: linear-gradient(var(--yellow), var(--yellow)) 0 85% / 0 2px no-repeat;
  transition: background-size 0.25s var(--ease);
}
.nav > a:hover { background-size: 100% 2px; }
.top-end { display: flex; align-items: center; gap: 18px; }

.langs { display: flex; gap: 2px; font-size: 14px; }
.langs a {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 6px;
  text-decoration: none; color: inherit; opacity: 0.72;
  transition: opacity 0.18s, background-color 0.18s;
}
.langs a:hover { opacity: 1; background: rgba(244, 241, 234, 0.08); }
.langs a[aria-current='page'] { opacity: 1; box-shadow: inset 0 -2px 0 var(--yellow); }
.langs-menu { display: none; }

.menu-btn {
  display: none; width: 44px; height: 44px; padding: 0; border: 0;
  background: transparent; color: var(--paper); cursor: pointer;
}
.menu-lines, .menu-lines::before, .menu-lines::after {
  display: block; width: 22px; height: 2px; margin: 0 auto; background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ''; position: absolute; left: 0; }
.menu-lines::before { top: -7px; }
.menu-lines::after { top: 7px; }
.menu-btn[aria-expanded='true'] .menu-lines { background: transparent; }
.menu-btn[aria-expanded='true'] .menu-lines::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded='true'] .menu-lines::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding-top: calc(var(--top) + var(--promo));
  display: flex; background: var(--ink); color: var(--paper);
  overflow: hidden;
}
.hero-photo { position: absolute; inset: calc(var(--top) + var(--promo)) 0 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%; }
.hero-inner { position: relative; display: flex; align-items: flex-end; padding-block: 40px clamp(28px, 6vh, 64px); }
.hero-card { background: var(--ink); padding: clamp(26px, 3vw, 44px); max-width: 660px; }
.hero h1 { font-size: clamp(2rem, 3.5vw, 3.3rem); line-height: 1.08; }
:lang(ka) .hero h1 { font-size: clamp(1.75rem, 2.9vw, 2.75rem); line-height: 1.22; }
:lang(ru) .hero h1 { font-size: clamp(1.85rem, 2.9vw, 2.7rem); line-height: 1.12; }
:lang(ru) .hero-card { max-width: 700px; }
.hero-lead { margin-top: 18px; font-size: 1.1rem; color: var(--muted-dark); max-width: 34em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; font-size: 15px; }
.fact { display: inline-flex; align-items: center; gap: 8px; }
.fact strong { font-weight: 600; color: var(--paper); }
.fact-num { font: 700 1.15rem/1 'Unbounded', sans-serif; color: var(--yellow); }
.fact-stars { display: inline-flex; gap: 1px; color: var(--yellow); }
.fact-stars svg { width: 15px; height: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Entrance, once on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: hero-photo 1.6s var(--ease) both; }
  .hero-card { animation: hero-card 0.9s 0.2s var(--ease) both; }
  .hero-card > * { animation: hero-line 0.8s var(--ease) both; }
  .hero-card > :nth-child(1) { animation-delay: 0.35s; }
  .hero-card > :nth-child(2) { animation-delay: 0.45s; }
  .hero-card > :nth-child(3) { animation-delay: 0.55s; }
  .hero-card > :nth-child(4) { animation-delay: 0.65s; }
}
@keyframes hero-photo { from { transform: scale(1.07); } to { transform: none; } }
@keyframes hero-card { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes hero-line { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.sec { min-height: 100svh; padding-block: var(--pad); display: flex; align-items: center; }
.sec > .wrap { width: 100%; }
.dark { background: var(--ink); color: var(--paper); }
.dark .lead, .dark p { color: var(--muted-dark); }
.dark .lead { color: var(--paper); }
.yellow { background: var(--yellow); }

/* Repairs */
.repairs-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: start; }
.repairs-side .lead { margin-top: 20px; color: var(--muted); }
.repairs-photo { margin-top: 28px; aspect-ratio: 4 / 3.2; }
.repairs-photo img { object-position: 50% 55%; }
.repair-list { border-top: 1.5px solid var(--ink); }
.repair {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.repair h3 { grid-column: 1; }
.repair p { grid-column: 1; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.repair-time {
  grid-column: 2; grid-row: 1 / span 2; align-self: start;
  font-size: 0.86rem; font-weight: 600; white-space: nowrap;
  padding: 4px 10px; background: var(--ink); color: var(--paper);
}
.repair-time:empty { display: none; }
.note { margin-top: 18px; font-size: 0.95rem; color: var(--muted); }

/* Bench */
.bench-grid { display: grid; grid-template-columns: 5fr 6fr; gap: var(--gap); align-items: center; }
.bench-main { aspect-ratio: 4 / 5; max-height: calc(100svh - 2 * var(--pad) + 40px); width: 100%; }
.bench-text h2 { color: var(--paper); }
.bench-text .lead { margin-top: 22px; }
.bench-text p + p { margin-top: 14px; }
.bench-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.bench-pair .frame { aspect-ratio: 1; }

/* Stock */
.stock-head { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: end; }
.stock-head .lead { color: var(--muted); }
.stock-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 14px;
  height: clamp(320px, 56svh, 560px); margin-top: clamp(32px, 5vh, 56px);
}
.stock-grid .frame { height: 100%; }

/* Wait */
.wait { background: var(--paper-2); }
.wait-grid { display: grid; grid-template-columns: 5fr 6fr; gap: var(--gap); align-items: center; }
.wait-text .lead { margin-top: 20px; color: var(--muted); }
.perks { margin-top: 30px; border-top: 1.5px solid var(--ink); }
.perks li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500;
}
.perks li::before { content: ''; flex: none; width: 10px; height: 10px; background: var(--pink); transform: translateY(-1px); }
.wait-photos { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; height: clamp(420px, 72svh, 680px); }
.wait-photos .frame { height: 100%; }
.wait-b img { object-position: 40% 50%; }

/* Reviews */
.reviews-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.big-rating { font: 700 clamp(6rem, 14vw, 12.5rem)/0.85 'Unbounded', sans-serif; letter-spacing: -0.05em; }
.reviews-head .lead { margin-top: 12px; }
.reviews-head .link { display: inline-block; margin-top: 16px; font-weight: 600; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(32px, 5vh, 56px); }
.quote { background: var(--paper-2); padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.quote-stars { display: flex; gap: 2px; color: var(--ink); }
.quote-stars svg { width: 16px; height: 16px; }
.quote blockquote { font-size: 1.12rem; line-height: 1.5; flex: 1; }
.quote figcaption { font-size: 0.9rem; color: var(--muted); }
.quote-tr { white-space: nowrap; }

/* Visit */
.visit-title { font-size: clamp(2.3rem, 5.6vw, 5.4rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 16ch; }
:lang(ka) .visit-title { font-size: clamp(2rem, 4.4vw, 4.2rem); line-height: 1.15; max-width: 18ch; }
:lang(ru) .visit-title { max-width: 18ch; }
.visit-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); margin-top: clamp(32px, 5vh, 56px); align-items: stretch; }
.visit-text .lead { color: var(--muted); }
.facts { margin-top: 26px; border-top: 1.5px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.visit-side { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; min-height: 420px; }
.visit-photo { height: 100%; }
.map { position: relative; background: #e6e2d8; min-height: 100%; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }


/* ---------- Promo strip (switched on in the admin) ---------- */
.promo { position: fixed; inset: 0 0 auto; z-index: 51; background: var(--yellow); color: var(--ink); }
.promo-row { display: flex; align-items: center; gap: 12px; min-height: 40px; padding-block: 6px; }
.promo p { flex: 1; font-weight: 600; font-size: 15px; line-height: 1.35; text-align: center; }
.promo-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -10px -6px 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.promo-close svg { width: 18px; height: 18px; }
.promo-close:hover { background: rgba(19, 19, 19, 0.08); }

/* ---------- Prices ---------- */
.prices { background: var(--paper-2); align-items: flex-start; }
.prices-grid { display: grid; grid-template-columns: 4fr 7fr; gap: var(--gap); align-items: start; }
.prices-side { position: sticky; top: calc(var(--top) + var(--promo) + 32px); }
.prices-side .lead { margin-top: 20px; color: var(--muted); }
.prices-side .note { margin-top: 16px; }
.prices-actions { margin-top: 26px; }
.prices-main { display: grid; gap: 28px; }
.price-frame:focus-visible { outline-offset: 6px; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table thead th {
  position: sticky; top: calc(var(--top) + var(--promo)); z-index: 1;
  background: var(--ink); color: var(--paper);
  font: 600 0.86rem/1.25 var(--f-body); text-align: right; padding: 12px 14px; vertical-align: bottom;
}
.price-table thead th:first-child { text-align: left; }
.price-table tbody th { text-align: left; font-weight: 600; padding: 11px 14px; white-space: nowrap; }
.price-table td { text-align: right; padding: 11px 14px; white-space: nowrap; }
.price-table tbody tr { border-bottom: 1px solid var(--line); }
.price-table tbody tr:hover { background: rgba(255, 210, 63, 0.22); }
.price-table .cur { color: var(--muted); font-size: 0.85em; }
.price-table .ask { color: var(--muted); font-size: 0.9rem; }
.price-table .ask-dash { display: none; }
.social { margin-top: 10px; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding-block: 56px 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.4fr auto; gap: 32px; align-items: start; }
.foot p + p { margin-top: 6px; }
.foot-grid > div > p:not(.brand) { color: var(--muted-dark); }
.brand-foot { margin-bottom: 14px; }
.foot-langs .langs { margin-top: -10px; }
.foot-credit { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 13px; }

/* ---------- Phone bar ---------- */
.bar { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .top-call span { display: none; }
  .top-call { width: 44px; padding: 0; }
  .nav { gap: 20px; }
}

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .langs-top { display: none; }
  .nav {
    position: fixed; inset: var(--top) 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--gut) 40px; background: var(--ink);
    visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0s 0.2s;
  }
  .nav.open { visibility: visible; opacity: 1; transition: opacity 0.2s; }
  .nav > a { font: 700 1.6rem/1.2 var(--f-head); padding: 16px 0; border-bottom: 1px solid var(--line-dark); background: none; }
  :lang(ka) .nav > a { font-family: 'Noto Sans Georgian', sans-serif; font-weight: 800; }
  .langs-menu { display: flex; margin-top: 24px; font-size: 16px; }
  .top-end { margin-left: auto; gap: 8px; }

  .sec { min-height: 0; }
  .repairs-grid, .bench-grid, .wait-grid, .visit-grid, .stock-head, .prices-grid { grid-template-columns: 1fr; }
  .prices-side { position: static; }
  .stock-head { gap: 16px; }
  .bench-main { aspect-ratio: 4 / 3; max-height: none; }
  .bench-main img { object-position: 50% 40%; }
  .stock-grid { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .stock-grid .stock-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .stock-grid .frame:not(.stock-wide) { aspect-ratio: 3 / 4; }
  .wait-photos { height: auto; }
  .wait-photos .frame { aspect-ratio: 3 / 4; height: auto; }
  .visit-side { min-height: 0; grid-template-columns: 1fr 1.6fr; }
  .visit-photo { aspect-ratio: 3 / 4; height: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-langs { grid-column: 1 / -1; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .lead { font-size: 1.06rem; }
  .brand-word { display: none; }

  /* On a phone the bottom bar carries Call and Directions on every screen, so
     the hero ends above it and does not repeat those two buttons. */
  .top-call { display: none; }
  .hero { flex-direction: column; min-height: calc(100svh - 76px - env(safe-area-inset-bottom)); }
  .hero-photo { position: relative; inset: auto; height: 38svh; flex: none; }
  .hero-card { padding-top: 22px; }
  .hero-lead { margin-top: 12px; }
  .hero-facts { margin-top: 16px; }
  .hero-inner { padding: 0; flex: 1; align-items: stretch; }
  .hero-card { max-width: none; padding: 26px var(--gut) 30px; width: 100%; }
  .hero-actions { display: none; }

  .repair { grid-template-columns: 1fr; }
  .price-frame { overflow-x: auto; }
  .price-table { table-layout: fixed; }
  .price-table th:first-child { width: 30%; }
  .price-table td { white-space: normal; overflow-wrap: anywhere; }
  .price-table tbody th { white-space: normal; }
  .price-table .m-pre { display: none; }
  .price-table thead th { position: static; padding: 10px 6px; font-size: 0.76rem; white-space: normal; }
  .price-table tbody th, .price-table td { padding: 10px 6px; font-size: 0.92rem; }
  .price-table .ask-word { display: none; }
  .price-table .ask-dash { display: inline; }
  .price-table tbody th { position: sticky; left: 0; background: var(--paper-2); }
  .price-table .cur { display: none; }
  .promo p { text-align: left; font-size: 14px; }
  .repair-time { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
  .reviews-head { grid-template-columns: 1fr; gap: 8px; }
  .quote-grid { grid-template-columns: 1fr; }
  .visit-side { grid-template-columns: 1fr; }
  .visit-photo { display: none; }
  .map { min-height: 340px; }
  .visit-actions .btn { flex: 1 1 100%; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .stock-grid { grid-template-columns: 1fr 1fr; }
  .stock-grid .frame:nth-child(4) { display: none; }
  .wait-photos { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }

  .bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; inset: auto 0 0; z-index: 40;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
    background: var(--ink);
  }
  .bar .btn { min-height: 52px; min-width: 0; padding: 0 10px; gap: 8px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
