/* ============================================================
   ÉKO '77 — RESTAURANTS
   Loaded after style.css. Holds only what the design system
   does not already carry: the masthead, the four room rows and
   the paper-side variant of the live opening status.
   ============================================================ */

/* ============================================================
   MASTHEAD — the single block the client allows before the food
   ============================================================ */

.rest-mast {
  position: relative;
  background: var(--night);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(104px, 13vw, 152px) clamp(34px, 4.5vw, 56px);
}

/* ÉKO's own adire motif, the same one the home hero carries */
.rest-mast::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/adire.png?v=3");
  background-size: var(--adire) var(--adire);
  background-position: center top;
  opacity: .085;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.25) 62%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.25) 62%, transparent 100%);
  pointer-events: none;
}
.rest-mast::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(72% 58% at 18% 12%, rgba(185,156,85,.14) 0%, rgba(20,18,15,0) 68%);
  pointer-events: none;
}
.rest-mast > .wrap { position: relative; z-index: 1; }

.rest-mast .display { color: #fff; margin-top: 14px; }
.rest-mast__lede {
  font-family: var(--serif);
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.56;
  letter-spacing: .015em;
  color: rgba(255,255,255,.7);
  max-width: 48ch;
  margin: 18px 0 0;
}

/* ---------- the four-up jump strip -------------------------- */

.rest-jump {
  list-style: none;
  margin: clamp(28px, 4vw, 46px) 0 0;
  padding: clamp(18px, 2.4vw, 26px) 0 0;
  border-top: 1px solid rgba(255,255,255,.16);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px clamp(14px, 2.4vw, 34px);
}
.rest-jump li { min-width: 0; }
.rest-jump__go {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,.16);
  transition: border-color .3s ease;
}
.rest-jump__go:hover,
.rest-jump__go:focus-visible { border-bottom-color: rgba(255,255,255,.8); }

.rest-jump__name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 24px);
  letter-spacing: .02em;
  line-height: 1.2;
  color: #fff;
}
.rest-jump__go .loc__status { margin: 0; font-size: 10px; letter-spacing: .14em; }
.rest-jump__tip {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), color .3s ease;
  flex: none;
}
.rest-jump__go:hover .rest-jump__tip,
.rest-jump__go:focus-visible .rest-jump__tip { transform: translateY(3px); color: #fff; }

/* ============================================================
   THE FOUR ROOMS
   ============================================================ */

.room[id] { scroll-margin-top: 92px; }

.room {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(26px, 4.5vw, 64px);
  align-items: center;
}
.room--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }

/* the heading leads in the source; the plate is placed by order */
.room__fig { order: -1; min-width: 0; }
.room--flip .room__fig { order: 0; justify-self: end; }

.room + .room {
  margin-top: clamp(44px, 6vw, 88px);
  padding-top: clamp(44px, 6vw, 88px);
  border-top: 1px solid var(--rule);
}

.room__fig .plate img { aspect-ratio: 368 / 525; }
.room__body { min-width: 0; }

/* WOLVERHAMPTON is the constraint: thirteen uppercase characters at .13em
   tracking run about 11× the font size, and it must not spill its column —
   280px wide at 320px stacked, 476px wide beside the plate at 1024px */
.room__name {
  font-size: clamp(23px, 5vw, 40px);
  margin-top: 12px;
}
@media (min-width: 1001px) {
  .room__name { font-size: clamp(38px, 3.6vw, 46px); }
}

/* live status, paper-side. The script rewrites className, so the
   colour has to come from the parent, never from a second class. */
.room .loc__status {
  color: var(--ink-3);
  font-size: 10.5px;
  margin-top: 12px;
}
.room .loc__status::before { background: var(--rule); }
.room .loc__status.is-open { color: var(--green-deep); }
.room .loc__status.is-open::before {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0,131,78,.16);
}

/* ---------- the fact table --------------------------------- */

.room__facts {
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  padding: 0;
}
.room__facts > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 6px 20px;
  padding: 12px 0;
  border-bottom: 1px dotted var(--rule);
}
.room__facts > div:first-child { border-top: 1px dotted var(--rule); }
.room__facts dt {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 6px;
}
.room__facts dd {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  min-width: 0;
}
.room__facts a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: border-color .25s ease;
  overflow-wrap: anywhere;
}
.room__facts a:hover { border-bottom-color: var(--ink); }

.room__hours span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 330px;
}
.room__hours i { font-style: normal; color: var(--ink-3); }

.room__note {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.64;
  color: var(--ink-2);
  margin: clamp(18px, 2.2vw, 24px) 0 0;
  max-width: 58ch;
}
.room__cta { margin-top: clamp(20px, 2.6vw, 30px); }

/* ============================================================
   A WORD FROM OUR CHEF
   ============================================================ */

.chef-word { max-width: 720px; margin-inline: auto; }
.chef-word .chef__quote + .chef__quote { margin-top: 1em; }

/* ============================================================
   INHERITED FIX
   The panel's close button sits 10px into the gutter on purpose.
   Without this the optical nudge opens a horizontal scrollbar
   inside the open panel at 320px.
   ============================================================ */

.mobile-panel { overflow-x: hidden; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {
  .room,
  .room--flip { grid-template-columns: 1fr; gap: clamp(24px, 4vw, 32px); }
  /* 368px of source: 420 is as far as it goes before the print softens */
  .room__fig,
  .room--flip .room__fig { order: -1; justify-self: start; max-width: 420px; width: 100%; }
  /* stop the ledger and the buttons stretching the full tablet measure */
  .room__facts,
  .room__cta { max-width: 620px; }
}

@media (max-width: 820px) {
  .rest-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(16px, 4vw, 30px); }
}

@media (max-width: 900px) {
  /* every link in the fact table gets a thumb-sized box */
  .room__facts a { display: inline-block; padding: 11px 0 9px; }
  .room__facts > div { padding: 10px 0; }
  .room__cta .btn { flex: 1 1 auto; text-align: center; }

  /* --- three shared boxes still land under 44px in the system sheet.
         Fixed here because style.css is off limits; the same three want
         the same nudge globally. --- */
  .site-head .wordmark { padding-block: 14px; }
  .foot__col .addr-block a { padding: 12px 0 10px; }
  .foot__bottom nav a { padding: 13px 12px 13px 0; }
}

@media (max-width: 560px) {
  .rest-jump { grid-template-columns: 1fr; }
  .rest-mast__lede { font-size: 16.5px; }

  .room__facts > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .room__facts dt { padding-top: 0; }
  .room__hours span { max-width: none; }
  .room__cta { display: grid; gap: 10px; }
  .room__cta .btn { width: 100%; }
}

/* один реальный отзыв Google на зал — человек здесь выбирает конкретный
   зал, а не сеть, поэтому общий отзыв тут был бы бесполезен */
.room__q { margin: clamp(20px, 2.4vw, 28px) 0 0; max-width: 62ch; }
.room__q blockquote { font-size: 16px; }
.room__q figcaption a { border-bottom: 1px solid var(--rule); }
.room__q figcaption a:hover { border-bottom-color: var(--ink); }
