/* EIWA · home page. Wider screens (client, 2026-10-08): first screen «Шкала 72» (variant А, approved) · 便り news ·
   空間 space beside 予約 quick booking · 和 about and the chef · 会員 «Карта гостя» · 処 «Как добраться» · the dark
   «Сезон сейчас» last. Phones have their own order and a lighter set (the PHONES section at the end).
   Quiet by design: white at 10–70 %, one pink tick (and its small glyph), lots of air. */

/* ======================================================================
   1 · first screen
   ====================================================================== */
.hero {
  --tick: clamp(.625rem, 1.2vw, 1.0625rem);
  --tick-q: clamp(1rem, 1.8vw, 1.625rem);
  --tick-now: clamp(1.875rem, 3.4vw, 3.0625rem);

  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 var(--gutter) calc(clamp(1.125rem, 2.4vw, 2.25rem) + var(--safe-b)); /* the ruler clears the home indicator */
  overflow: hidden;
  background: #151515;
  color: #fff;
  --focus: #fff;
}

/* the video (Task 16 adds the source); its poster — and the same photo underneath — carry the look */
.hero__media {
  position: absolute; inset: 0;
  z-index: -1;
  background: #151515 url('../img/interior-2.jpg') center / cover no-repeat;
  filter: brightness(.34) saturate(.55);
}
.hero__video { width: 100%; height: 100%; object-fit: cover; }
/* a soft local shade under the words (left, lower half) and the ruler: the small lines stay readable when the
   video passes a light frame. No edge, no box — two gradients that fade to nothing */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1; /* above the video (same layer, later in the tree), under the text */
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 64% at 0% 70%, rgba(0, 0, 0, .48), rgba(0, 0, 0, .2) 55%, transparent 100%),
    linear-gradient(to top, rgba(0, 0, 0, .38), transparent 34%);
}

.hero__body {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 4.4vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.hero__logo { width: clamp(13.75rem, 30vw, 35rem); height: auto; }
.hero__claim {
  max-width: 19em;
  margin-top: clamp(1.25rem, 2.2vw, 2.125rem);
  font-size: clamp(1.125rem, 1.6vw, 1.625rem);
  font-weight: 300;
  line-height: 1.35;
  color: rgba(255, 255, 255, .7);
}
/* two ways in, right under the phrase (client, 2026-10-07: «кнопки акцентно как на фото»): the pink accent to the
   menu (.btn--accent, base.css) and a white outline beside it, both rounded like it */
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  margin-top: clamp(1.5rem, 2.6vw, 2.5rem);
}
.hero__go { min-height: 3.25rem; padding-inline: 1.75rem; font-size: 1.0625rem; }
.hero__book {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .875rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px;
  font-size: 1.0625rem; line-height: 1; white-space: nowrap;
  color: #fff;
  transition: border-color var(--dur-fast) linear, background-color var(--dur-fast) linear;
}
.hero__book::after { display: none; }
@media (hover: hover) { .hero__book:hover { border-color: #fff; background: rgba(255, 255, 255, .08); } }
.hero__actions + .hero__contacts { margin-top: clamp(1.25rem, 2vw, 2rem); }
.hero__contacts {
  display: flex; flex-wrap: wrap; align-items: baseline;
  margin-top: clamp(.875rem, 1.4vw, 1.375rem);
  font-size: .875rem;
  color: rgba(255, 255, 255, .8); /* was .45: unreadable over a light video frame */
}
.hero__contacts a { color: rgba(255, 255, 255, .92); }
.hero__sep { padding-inline: .7em; }

/* the scale: today's glyph and caption, 72 ticks, the four seasons */
.hero__scale { position: relative; margin-top: auto; }
.hero__now { margin-bottom: clamp(.5rem, .8vw, .75rem); line-height: 1.2; color: rgba(255, 255, 255, .82); }
.hero__now-jp,
.hero__now-caption { position: relative; display: block; width: max-content; max-width: 100%; }
.hero__now-jp {
  margin-bottom: clamp(.25rem, .5vw, .5rem);
  padding-left: .3em; /* balances the trailing letter-spacing so the glyphs centre on the tick */
  font-size: clamp(1.125rem, 1.9vw, 1.75rem);
  letter-spacing: .3em;
  line-height: 1.1;
  color: rgba(255, 164, 208, .8);
  font-variant: normal;
}
.hero__now-caption { font-size: clamp(.75rem, 1.1vw, .9375rem); }

.hero__ruler {
  display: flex; align-items: flex-end; justify-content: space-between;
  height: var(--tick-now);
}
.hero__ruler i {
  display: block; flex: none;
  width: 1px; height: var(--tick);
  background: rgba(255, 255, 255, .22);
}
.hero__ruler i.is-quarter { height: var(--tick-q); background: rgba(255, 255, 255, .45); }
.hero__ruler i.is-past { background: rgba(255, 255, 255, .1); }
.hero__ruler i.is-now { height: var(--tick-now); background: rgba(255, 164, 208, .85); }

.hero__quarters {
  position: relative;
  height: 1.4em;
  margin-top: clamp(.5rem, .7vw, .75rem);
  padding: 0;
  list-style: none;
  font-size: clamp(.75rem, .95vw, .875rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, .8); /* small labels over the video: readable on its light frames too (was .62) */
}
/* each label starts at its quarter tick: 0, 18, 36, 54 of 0…71 */
.hero__quarters li { position: absolute; top: 0; }
.hero__quarters li:nth-child(2) { left: calc(18 / 71 * 100%); }
.hero__quarters li:nth-child(3) { left: calc(36 / 71 * 100%); }
.hero__quarters li:nth-child(4) { left: calc(54 / 71 * 100%); }

/* without JS there is no today: the photo, logo, phrase and contacts stand alone */
html:not(.js) .hero__ruler,
html:not(.js) .hero__quarters { display: none; }

/* intro: hidden until GSAP takes over; a CSS failsafe shows everything if the script never runs */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-intro] { opacity: 0; animation: hero-failsafe 0s 2.4s forwards; }
}
@keyframes hero-failsafe { to { opacity: 1; } }

@media (max-width: 599px) {
  .hero__logo { width: min(64vw, 18.75rem); }
  .hero__body { margin-block: auto; padding-top: calc(var(--header-h) + 2rem); }
  .hero__scale { margin-top: 0; }
  .hero__contacts { display: block; font-size: .875rem; } /* 14 px: the smallest line a phone reads over video */
  .hero__now-caption, .hero__quarters { font-size: .875rem; }
  .hero__sep--tel { display: none; }
  .hero__contacts a { display: table; margin-top: .375rem; } /* the phone on its own line */
}

@media (prefers-reduced-motion: reduce) {
}

/* ======================================================================
   section heads: thin pink glyph + small-caps title (便り, 和, 献立, 空間, 予約)
   ====================================================================== */
.section-head {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: .25rem clamp(.75rem, 1.2vw, 1.125rem);
  margin-bottom: clamp(1.5rem, 2.4vw, 2.25rem);
}
.section-head__jp { font-size: clamp(1rem, 1.5vw, 1.375rem); line-height: 1; }
.section-head__title {
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.1;
}
[data-reveal='lines'] { text-wrap: wrap; } /* balance would fight the line split */

/* ======================================================================
   2 · Акции и новости
   ====================================================================== */
.news {
  --gap: clamp(1rem, 1.6vw, 1.5rem);
  container-type: inline-size;
  padding: clamp(3rem, 5.6vw, 5.5rem) var(--gutter) var(--section-y);
}
html:not(.js) .news { display: none; }

.news__rail { margin-inline: calc(-1 * var(--gutter)); }
.news .news__list { /* beats ul[role=list] in base.css */
  display: flex; align-items: flex-start;
  gap: var(--gap);
  width: max-content;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
}

/* desktop with up to three entries: a quiet grid, the main entry spans two columns */
@media (min-width: 900px) {
  .news:not(.news--rail) .news__rail { margin-inline: 0; }
  .news:not(.news--rail) .news__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: auto;
    padding: 0;
  }
  .news:not(.news--rail) .news-card--main { grid-column: span 2; }

  .news--rail .news-card { width: calc((100cqw - 3 * var(--gap)) / 4); }
  .news--rail .news-card--main { width: calc((100cqw - 3 * var(--gap)) / 2 + var(--gap)); }
}

/* phones, and the desktop rail before the drag switches on: native horizontal scroll, next card peeks */
@media (max-width: 899px) {
  .news__rail {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .news__rail::-webkit-scrollbar { display: none; }
  .news-card { width: min(70vw, 21.25rem); scroll-snap-align: start; }
  .news-card--main { width: min(80vw, 28.75rem); }
}
.news--rail .news__rail { overflow-x: auto; }
/* wherever the news run as a rail (phones, tablets; desktop with more than three): like the menu's category strip,
   the edges fade — the card cut at the right reads as «more →», not as a word broken off */
@media (max-width: 899px) {
  .news__rail {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - max(var(--gutter), 3rem)), transparent);
    mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - max(var(--gutter), 3rem)), transparent);
  }
}
.news--rail .news__rail {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - max(var(--gutter), 4.5rem)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - max(var(--gutter), 4.5rem)), transparent);
}
.news__rail.is-draggable { overflow: hidden; overflow: clip; }
.news__rail.is-draggable .news__list { user-select: none; -webkit-user-select: none; }

/* card: picture, type dot · date, title, short text, optional link */
.news-card { flex: none; min-width: 0; }
.news-card__media {
  aspect-ratio: 4 / 3;
  margin-bottom: clamp(.75rem, 1vw, 1rem);
  overflow: hidden;
  background: var(--paper-2);
}
.news-card--main .news-card__media { aspect-ratio: 16 / 10; }
.news-card__media img,
.news-card__media video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; }
/* a poster (square, lettering to the edges): shown whole over the same picture, blurred */
.news-card__media--photo { position: relative; background: var(--ink); }
.news-card__media--photo::before {
  content: ''; position: absolute; inset: -10%;
  background: var(--news-bg) center / cover no-repeat;
  filter: blur(24px) brightness(.7);
}
.news-card__media--photo img { position: relative; object-fit: contain; }

.news-card__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: .75rem;
  margin-bottom: .375rem;
  font-size: var(--fs-label);
  line-height: 1.3;
  color: var(--mute);
}
.news-card__type { display: inline-flex; align-items: center; gap: .55em; }
.news-card__type::before {
  content: '';
  flex: none;
  width: .4375rem; height: .4375rem;
  border-radius: 50%;
  background: var(--mute);
  transform: translateY(1px);
}
.news-card__type--season::before { background: var(--season); }
.news-card__type--promo::before { background: var(--ink); } /* one pink on the news screen: the 便り glyph */
.news-card__type--event::before { background: var(--mute); }
.news-card__type--news::before { background: var(--line-strong); }

.news-card__title {
  margin-bottom: .5rem;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 400;
  line-height: 1.15;
}
.news-card--main .news-card__title { font-size: clamp(1.625rem, 2.4vw, 2.25rem); font-weight: 300; }
.news-card__text {
  max-width: 34em;
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.news-card__link, .news-card__more { margin-top: .875rem; font-size: 1rem; }
.news-card__archive { display: none; } /* phones only: the rail shows the past items too */
.news-card:not(.skel) { cursor: pointer; }
.news-card__text {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4;
  overflow: hidden;
}

/* data did not load: one quiet line in place of news and season */
.home-error {
  padding: clamp(3rem, 5.6vw, 5.5rem) var(--gutter) 0;
  font-size: var(--fs-body);
  color: var(--ink-2);
}
.home-error a { color: var(--ink); }

/* ======================================================================
   7 · Сезон сейчас — the dark block: sekki line, seasonal kanji, 72 ko (the last block on wider screens)
   ====================================================================== */
.season {
  --ribbon-inset: clamp(1.25rem, 2.4vw, 2.25rem); /* soft fade before the ribbon's edge; today's card stops after it */
  --ribbon-fade: clamp(3rem, 7vw, 6.5rem); /* and at the right edge: a card cut there reads as «more →», not a clipped word */
  --card: clamp(5.75rem, 7.6vw, 7.75rem);
  --card-now: clamp(26.25rem, 36vw, 36.25rem);
  --card-gap: clamp(.625rem, 1vw, 1rem);

  position: relative;
  background: #151515;
  color: #fff;
  --focus: #fff;
}
html:not(.js) .season { display: none; }

.season__frame {
  display: grid;
  grid-template-columns: minmax(0, 25vw) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: clamp(1.5rem, 3.6vw, 4rem);
  row-gap: clamp(1rem, 2.6vh, 2rem);
  height: 100vh;
  height: 100svh;
  padding: calc(var(--header-h) + clamp(1rem, 3vh, 2.25rem)) var(--gutter) clamp(1.125rem, 3vh, 2rem);
  overflow: hidden;
}

.season__head {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .25rem 1.5rem;
  font-size: clamp(.8125rem, 1.05vw, .9375rem);
  line-height: 1.3;
}
.season__title { font-size: inherit; font-weight: 400; color: rgba(255, 255, 255, .6); } /* ≥ 4.5:1 on #151515 */
.season__sekki { color: rgba(255, 255, 255, .6); }

/* the big kanji with its ornament (brand book), light on dark */
.season__glyph {
  align-self: center;
  display: grid; justify-items: start; gap: clamp(1rem, 2.4vh, 1.75rem);
  min-height: 0;
}
.season__kanji {
  width: 100%;
  max-width: min(100%, 50vh);
  height: auto;
  filter: invert(1);
  opacity: .92;
}
.season__quarters {
  display: flex; gap: .9em;
  font-family: var(--font-jp);
  font-weight: 200;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1;
  color: rgba(255, 255, 255, .28);
}
.season__q.is-now { color: rgba(255, 255, 255, .9); }

/* the ribbon: bleeds to the right edge; on the left it fades out over --ribbon-inset */
.season__ribbon {
  position: relative;
  min-height: 0;
  margin-left: calc(-1 * var(--ribbon-inset));
  margin-right: calc(-1 * var(--gutter));
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--ribbon-inset), #000 calc(100% - var(--ribbon-fade)), transparent);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--ribbon-inset), #000 calc(100% - var(--ribbon-fade)), transparent);
}
.season__ribbon:focus-visible { outline-offset: -2px; }
.season.is-pinned .season__ribbon { overflow: hidden; overflow: clip; }

.season .season__track { /* beats ol[role=list] in base.css */
  position: relative; /* offsetLeft of the cards is measured from here */
  display: flex; align-items: stretch;
  gap: var(--card-gap);
  width: max-content;
  height: 100%;
  margin: 0;
  padding: 0 var(--gutter) 0 var(--ribbon-inset);
  list-style: none;
}
.season.is-pinned .season__track { will-change: transform; }

/* quiet cards: vertical name, number, words */
.ko {
  flex: none;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  width: var(--card);
  padding: .25rem 0 2px .875rem;
  border-left: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .5);
}
.ko--past { color: rgba(255, 255, 255, .3); border-left-color: rgba(255, 255, 255, .09); }
.ko__jp {
  font-family: var(--font-jp);
  font-weight: 200;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  align-self: flex-start; /* a vertical line hugs the card's left edge, like the caption under it */
}
.ko__cap { display: grid; gap: .25rem; font-size: .8125rem; line-height: 1.25; }
.ko__num { font-variant-numeric: tabular-nums; }

/* today's card: wide, season-coloured edge */
.ko--now {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(.875rem, 1.4vw, 1.375rem);
  width: var(--card-now);
  margin-left: var(--ribbon-inset); /* air before today — and the past card stays behind the ribbon's edge */
  padding: .25rem 0 2px clamp(.875rem, 1.4vw, 1.375rem);
  border-left-color: var(--season);
  color: #fff;
}
.ko--now .ko__jp { color: var(--season); font-size: clamp(1.375rem, 1.9vw, 1.75rem); }
.ko__body { display: flex; flex-direction: column; min-height: 0; }
.ko__media {
  flex: 1 1 auto;
  min-height: 4.5rem;
  max-height: 30vh;
  margin-bottom: clamp(.75rem, 2vh, 1.375rem);
  background: rgba(255, 255, 255, .04);
}
.ko__media img { width: 100%; height: 100%; object-fit: contain; }
.ko__meta { font-size: .8125rem; color: rgba(255, 255, 255, .55); }
.ko__title {
  margin: .375rem 0 clamp(.5rem, 1.4vh, .875rem);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 200;
  line-height: 1.08;
}
.ko__text { font-size: .9375rem; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.ko__menu { margin-top: clamp(.75rem, 2vh, 1.25rem); padding-top: .75rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.ko__menu-label { font-size: .8125rem; color: rgba(255, 255, 255, .45); }
.season .ko__dishes { margin: .25rem 0 .5rem; padding: 0; list-style: none; font-size: .9375rem; line-height: 1.45; }
.ko__dishes li { display: flex; gap: .75rem; justify-content: space-between; color: rgba(255, 255, 255, .82); }
.ko__dish { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ko__price { flex: none; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ko__more { font-size: .9375rem; color: #fff; }

/* the 72 ticks again, today in the season's colour (the pink one lives on the first screen) */
.season__ruler {
  grid-column: 1 / -1;
  display: flex; align-items: flex-end; justify-content: space-between;
  height: clamp(1.125rem, 2.2vw, 1.875rem);
}
.season__ruler i { display: block; flex: none; width: 1px; height: 32%; background: rgba(255, 255, 255, .22); }
.season__ruler i.is-quarter { height: 56%; background: rgba(255, 255, 255, .4); }
.season__ruler i.is-past { background: rgba(255, 255, 255, .1); }
.season__ruler i.is-now { height: 100%; background: var(--season); }

/* phones: no pin — the kanji above, a native ribbon opened at today's card */
@media (max-width: 767px) {
  .season { --card: 5.75rem; --card-now: min(84vw, 23.75rem); }
  .season__frame {
    display: block;
    height: auto;
    padding: clamp(3.5rem, 14vw, 5rem) var(--gutter) 1.75rem;
  }
  .season__head { display: grid; gap: .375rem; margin-bottom: 1.75rem; }
  .season__glyph { margin-bottom: 2rem; }
  .season__kanji { max-width: min(62vw, 16.25rem); }
  /* until season.js puts the glyph in: its box already has the glyph's size (html[data-season] is set at start) */
  .js .season__kanji-box:empty { width: min(62vw, 16.25rem); aspect-ratio: 1143 / 1314; }
  .js[data-season='summer'] .season__kanji-box:empty { aspect-ratio: 1220 / 1282; }
  .js[data-season='autumn'] .season__kanji-box:empty { aspect-ratio: 1415 / 1136; }
  .js[data-season='winter'] .season__kanji-box:empty { aspect-ratio: 1270 / 1259; }
  .js .season__quarters:empty { height: clamp(1.125rem, 1.5vw, 1.375rem); }
  .season__ribbon {
    margin-inline: calc(-1 * var(--gutter));
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter); /* = the track's padding: today's card lands where season.js puts it */
  }
  .ko { scroll-snap-align: start; }
  .season__ribbon::-webkit-scrollbar { display: none; }
  .season .season__track { height: auto; padding: 0 var(--gutter); }
  .ko { min-height: 16.25rem; }
  .ko__media { flex: none; aspect-ratio: 4 / 3; max-height: none; }
  .season__ruler { margin-top: 1.75rem; }
}

/* ======================================================================
   5 · Карта гостя — a quiet band after «О нас», the home's one loyalty block (the 会員 glyph is its accent)
   ====================================================================== */
.loyal {
  display: grid;
  grid-template-columns: minmax(7.5rem, 14vw) minmax(0, 1fr) auto;
  gap: 1.125rem clamp(1.5rem, 3.4vw, 3.5rem);
  align-items: baseline;
  padding: clamp(3.5rem, 7vw, 7rem) var(--gutter);
  background: rgba(255, 255, 255, .5);
}
.loyal__label { display: grid; gap: .625rem; justify-items: start; }
.loyal__jp { font-size: clamp(1.25rem, 1.8vw, 1.75rem); line-height: 1; }
.loyal__title { font-size: var(--fs-label); font-weight: 400; line-height: 1.2; color: var(--mute); }
.loyal__text { max-width: 44ch; font-size: clamp(1.25rem, 1.9vw, 1.875rem); font-weight: 300; line-height: 1.35; }
.loyal__go { justify-self: end; font-size: 1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .loyal { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .loyal__label { display: flex; align-items: baseline; gap: .875rem; }
  .loyal__go { justify-self: start; white-space: normal; }
}

/* ======================================================================
   4 · О нас · 料理長 — the restaurant's line, then the chef: a big portrait, his name in large thin type,
   his own words, two lines from his bio and his path as a quiet timeline. A leaf shadow sways over it.
   One pink: the 料理長 glyph.
   ====================================================================== */
.about {
  --leaf-x: 0px; --leaf-y: 0px; --leaf-r: 0deg; /* GSAP moves these, 14 s there and back */
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-areas:
    'photo label'
    'photo intro'
    'photo who'
    'photo quote'
    'photo notes'
    'path  path';
  grid-template-rows: auto auto auto auto 1fr auto;
  column-gap: clamp(2rem, 6vw, 7.5rem);
  align-items: start;
  padding: var(--section-y) var(--gutter);
  overflow: hidden;
  overflow: clip;
}
.about::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -12%; right: -8%;
  width: min(72vw, 68.75rem);
  aspect-ratio: 4 / 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 22% 12% at 58% 30%, rgba(28, 28, 28, .07), transparent 70%),
    radial-gradient(ellipse 14% 26% at 72% 46%, rgba(28, 28, 28, .06), transparent 72%),
    radial-gradient(ellipse 26% 10% at 40% 52%, rgba(28, 28, 28, .05), transparent 70%),
    radial-gradient(ellipse 12% 20% at 84% 22%, rgba(28, 28, 28, .06), transparent 70%),
    radial-gradient(ellipse 40% 34% at 64% 38%, rgba(28, 28, 28, .035), transparent 72%);
  filter: blur(.375rem);
  transform: translate3d(var(--leaf-x), var(--leaf-y), 0) rotate(var(--leaf-r));
  transform-origin: 80% 10%;
}
.about__label { grid-area: label; }
.about__title { font-size: var(--fs-label); font-weight: 400; color: var(--mute); line-height: 1.2; }
.about__text {
  grid-area: intro;
  max-width: 24em;
  margin-top: .875rem;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink-2);
}

/* the portrait: tall, quiet, square-cornered */
.about__photo { grid-area: photo; margin: 0; aspect-ratio: 2 / 3; overflow: hidden; background: var(--paper-2); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(.15); }

.chef__who { grid-area: who; display: grid; justify-items: start; margin-top: clamp(2.5rem, 6vw, 6rem); }
.chef__jp { font-size: clamp(1.25rem, 1.9vw, 1.875rem); line-height: 1; letter-spacing: .3em; }
.chef__name {
  margin-top: clamp(.75rem, 1.4vw, 1.25rem);
  font-size: clamp(3rem, 7.4vw, 7.5rem);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.chef__role { margin-top: .875rem; font-size: 1rem; color: var(--mute); }

.chef__quote { grid-area: quote; margin: clamp(2rem, 4vw, 3.75rem) 0 0; }
.chef__quote blockquote {
  max-width: 21em;
  padding-left: clamp(1rem, 1.6vw, 1.75rem);
  border-left: 1px solid var(--line-strong);
  font-size: clamp(1.375rem, 2vw, 2.125rem);
  font-weight: 300;
  line-height: 1.3;
}

.chef__notes {
  grid-area: notes;
  display: grid; grid-template-columns: repeat(2, minmax(0, 15em)); gap: 1rem clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2rem, 3.6vw, 3.25rem);
  padding-left: clamp(1rem, 1.6vw, 1.75rem);
  font-size: 1rem; line-height: 1.45;
  color: var(--ink-2);
}

/* the path: a hairline with a tick per place, left to right; EIWA's tick is filled */
.chef__path {
  grid-area: path;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 clamp(1rem, 2vw, 2rem);
  margin-top: clamp(3.5rem, 7vw, 7rem);
  border-top: 1px solid var(--line-strong);
}
.chef__path li { position: relative; display: grid; align-content: start; gap: .375rem; padding-top: 1.375rem; }
.chef__path li::before {
  content: '';
  position: absolute; left: 0; top: -.3125rem;
  width: .5625rem; height: .5625rem; border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.chef__path .chef__now::before { background: var(--ink); }
.chef__place { font-size: clamp(1.125rem, 1.5vw, 1.375rem); font-weight: 400; line-height: 1.2; }
.chef__step { font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }

/* tablets: the portrait stays beside the name; the path folds into three columns */
@media (max-width: 1099px) {
  .chef__notes { grid-template-columns: minmax(0, 1fr); max-width: 26em; }
  .chef__path { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; border-top: 0; }
  .chef__path li { border-top: 1px solid var(--line-strong); }
}

/* phones: the portrait on top, then name, words and a vertical path */
@media (max-width: 699px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'label' 'intro' 'photo' 'who' 'quote' 'notes' 'path';
    grid-template-rows: none;
  }
  .about__text { margin-bottom: 2rem; }
  .about__photo { aspect-ratio: 4 / 5; }
  .chef__who { margin-top: 2rem; }
  .chef__name { font-size: clamp(2.75rem, 14vw, 4rem); white-space: normal; }
  .chef__path {
    grid-template-columns: minmax(0, 1fr); row-gap: 0;
    margin-top: 3rem; margin-left: .25rem;
    border-left: 1px solid var(--line-strong);
  }
  .chef__path li { border-top: 0; padding: 0 0 1.5rem 1.5rem; }
  .chef__path li:last-child { padding-bottom: 0; }
  .chef__path li::before { left: -.3125rem; top: .4375rem; }
}

/* ======================================================================
   3 · Пространство 空間 — a strip of the rooms, dragged with inertia
   ====================================================================== */
.space { padding: 0 var(--gutter) var(--section-y); }
.space__rail { margin-inline: calc(-1 * var(--gutter)); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.space__rail::-webkit-scrollbar { display: none; }
.space__rail.is-draggable { overflow: hidden; overflow: clip; }
.space__rail.is-native { scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
.space .space__track {
  display: flex; gap: clamp(.75rem, 1.2vw, 1.25rem);
  width: max-content;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
  user-select: none; -webkit-user-select: none;
}
.space__item { flex: none; scroll-snap-align: start; }
.space__item img {
  height: clamp(18.75rem, 58vh, 37.5rem);
  width: auto;
  background: var(--paper-2);
  filter: saturate(.8);
  pointer-events: none;
}
.space__cap { margin-top: .625rem; font-size: var(--fs-label); color: var(--mute); }
@media (max-width: 599px) {
  .space__item img { height: clamp(17.5rem, 62vh, 28.75rem); height: clamp(17.5rem, 62svh, 28.75rem); }
}

/* ======================================================================
   3 · Бронь 予約 — day · time · guests as underlined fields
   ====================================================================== */
.quick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: 0 var(--gutter) var(--section-y);
}
.quick__lead { font-size: clamp(2.125rem, 4vw, 4rem); font-weight: 300; line-height: 1.05; }
.js .quick__nojs { display: none; }
.quick__nojs { grid-column: 2; font-size: 1.125rem; }

.quick__fields {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.quick__field {
  display: grid; gap: .25rem;
  min-height: 4.5rem;
  padding: .875rem .75rem .75rem 0;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
}
.quick__field + .quick__field { padding-left: .75rem; }
.quick__label { font-size: var(--fs-label); color: var(--mute); line-height: 1.2; }
.quick__value {
  position: relative;
  justify-self: start;
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  font-weight: 300;
  line-height: 1.15;
  white-space: nowrap;
}
.quick__value::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -.1875rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.quick__field[aria-expanded='true'] .quick__value::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) { .quick__field:hover .quick__value::after { transform: scaleX(1); transform-origin: left; } }
.quick__field:focus-visible { outline-offset: -2px; }

.quick__pop {
  position: absolute; left: 0; right: 0; top: calc(100% + .5rem);
  z-index: 6;
  padding: .875rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1.125rem 2.5rem rgba(28, 28, 28, .08);
}
.quick .quick__opts { display: grid; gap: .375rem; margin: 0; padding: 0; list-style: none; }
.quick__opts--date { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.quick__opts--time { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.quick__opts--guests { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.quick__opt {
  display: grid; justify-items: center; align-content: center; gap: 2px;
  width: 100%;
  min-height: 2.75rem;
  padding: .375rem 2px;
  border: 1px solid var(--line-strong);
  font-size: 1rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.quick__opt-sub { font-size: .75rem; color: var(--mute); font-variant: all-small-caps; letter-spacing: var(--tracking-sc); }
.quick__opt[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.quick__opt[aria-pressed='true'] .quick__opt-sub { color: rgba(243, 243, 242, .7); }
.quick__opt:disabled { opacity: .32; cursor: default; }
@media (hover: hover) { .quick__opt:not(:disabled):not([aria-pressed='true']):hover { border-color: var(--ink); } }

.quick__go { margin-top: 1.375rem; font-size: 1.125rem; }
.quick__past { margin-bottom: .625rem; font-size: .9375rem; color: var(--mute); } /* today's gone times: named once, not listed */

@media (max-width: 899px) {
  .quick { grid-template-columns: 1fr; align-items: start; }
  .quick__nojs { grid-column: 1; }
  .quick__opts--time { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick__opts--guests { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
  .quick__opts--date { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick__value { font-size: 1.1875rem; }
  .quick__field { padding-right: .375rem; }
  .quick__field + .quick__field { padding-left: .5rem; }
}

/* ======================================================================
   3 · Пространство + Бронь in one row (client, 2026-10-08): the rooms' drag strip on the left (~60 %), day · time ·
   guests on the right (~40 %), each under its own small head on one line. Below 1024 px the two stay one under the
   other (a 40 % column on a tablet is too narrow for the three fields); phones: .stay is display: contents.
   ====================================================================== */
@media (min-width: 1024px) {
  .stay {
    --stay-fade: clamp(2rem, 4vw, 4rem);
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    column-gap: clamp(2.5rem, 4.4vw, 5.5rem);
    padding: 0 var(--gutter) var(--section-y);
  }
  .stay > .space, .stay > .quick { padding: 0; }
  /* the strip bleeds off the left edge and stops at its column, fading out there (a cut photo reads as «more →»);
     the track ends a fade's width early, so the last photo is whole once dragged to the end. The fade is a paper
     veil over the column's edge that lets every press through to the strip (pointer-events: none) */
  .stay .space__rail { margin-inline: calc(-1 * var(--gutter)) 0; }
  .stay .space { position: relative; }
  .stay .space::after {
    content: '';
    position: absolute; top: 0; right: 0; bottom: 0; z-index: 1;
    width: var(--stay-fade);
    background: linear-gradient(to right, rgba(243, 243, 242, 0), var(--paper));
    pointer-events: none;
  }
  .stay .space .space__track { padding-right: var(--stay-fade); }
  .stay .space__item img { height: clamp(22.5rem, 52vh, 33.75rem); }
  /* the booking: head and line at the top, the three fields at the bottom — level with the photos' captions */
  .stay .quick { display: flex; flex-direction: column; }
  .stay .quick__lead { font-size: clamp(2rem, 2.8vw, 3rem); }
  .stay .quick__form, .stay .quick__nojs { margin-top: auto; padding-top: 2rem; }
  .stay .quick__opts--guests { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* the rhythm on wider screens: every block ends with --section-y and the next one starts flush — «О нас» now
   follows the space/booking row (not the tinted loyalty band), «Как добраться» is followed by the dark season */
@media (min-width: 768px) {
  .page--home .about { padding-top: 0; }
  .page--home .visit { padding-bottom: var(--section-y); } /* (beats the .visit rule further down) */
}

/* ======================================================================
   6 · Как добраться 処 (#contacts) — rendered by the server (js/core/visit.js): address and landmark, the metro with
   its line colours and walking minutes, hours; «Построить маршрут» (the block's one pink) opens a chooser of map apps,
   «Позвонить» beside it. Right: a schematic of the area — the map at every width; wider screens add «Открыть карту»,
   and only that press brings the Yandex widget over it (js/ui/map-embed.js). Desktop: two columns; phones: info → buttons → schematic.
   ====================================================================== */
.visit {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: var(--section-y) var(--gutter) 0;
  scroll-margin-top: var(--header-h);
}
.visit .section-head__jp { color: var(--mute); } /* the pink here is «Построить маршрут» */
.visit__address { font-size: clamp(1.625rem, 2.8vw, 2.75rem); font-weight: 300; line-height: 1.15; }
.visit__where { margin-top: .625rem; font-size: 1.0625rem; line-height: 1.45; color: var(--ink-2); }
.visit__facts { display: grid; gap: 1.375rem; margin: clamp(1.75rem, 3vw, 2.75rem) 0 0; }
.visit__fact { display: grid; gap: .375rem; }
.visit__fact dd { margin: 0; font-size: 1.0625rem; line-height: 1.45; }
.visit .visit__metro { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; } /* beats ul[role=list] */
.visit__station { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .625rem; }
.visit__line {
  flex: none; align-self: center;
  width: .625rem; height: .625rem; border-radius: 50%;
  background: var(--metro, var(--ink-2));
}
.visit__walk { font-size: .9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.visit__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .875rem 1rem;
  margin-top: clamp(2rem, 3.4vw, 3rem);
}
.visit__call {
  min-height: 3.25rem; gap: 1rem; padding-inline: 1.75rem;
  border-radius: 999px; color: var(--ink); /* the outline pill, rounded like the pink one */
  font-size: 1.0625rem;
  transition: background-color var(--dur-fast) linear, color var(--dur-fast) linear;
}
@media (hover: hover) { .visit__call:hover { background: var(--ink); color: var(--paper); } }
.visit__call:focus-visible { outline: 2px solid var(--ink); outline-offset: .1875rem; }
.visit__tel { font-variant: normal; letter-spacing: 0; font-variant-numeric: tabular-nums; opacity: .72; }

/* the map's place: paper, a hairline frame; the schematic is a button (it opens the chooser) */
.visit__map {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  overflow: hidden;
}
.visit__scheme {
  display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; color: inherit;
  cursor: pointer;
}
.visit__scheme:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.visit__cap {
  position: absolute; right: .75rem; bottom: .5rem;
  font-size: .75rem; color: var(--mute);
  pointer-events: none;
}
/* «Открыть карту» (wider screens, js/ui/map-embed.js): the Yandex widget only on that press — the schematic until then */
.visit__open {
  position: absolute; right: .75rem; top: .75rem; z-index: 2; /* the north arrow is top-left */
  min-height: 2.75rem; padding-inline: 1rem;
  background: var(--paper); color: var(--ink);
  font-size: .9375rem;
  transition: background-color var(--dur-fast) linear, color var(--dur-fast) linear;
}
@media (hover: hover) { .visit__open:hover { background: var(--ink); color: var(--paper); } }
.visit__open[aria-busy='true'] { cursor: progress; }
@media (max-width: 767px) { .visit__open { display: none; } } /* phones: «Построить маршрут» is their map */
.visit__frame {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; border: 0; display: block;
  opacity: 0; transition: opacity var(--dur) linear;
}
.visit__map.is-live .visit__frame { opacity: 1; }

/* the schematic (SVG user units: 400 × 300, so the type follows its width — smaller numbers on wide screens) */
.vs { display: block; width: 100%; height: 100%; }
.vs__grid { fill: none; stroke: rgba(28, 28, 28, .07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.vs__metro-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.vs__walk { stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 1 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.vs text {
  font-family: var(--font-sans);
  paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; /* a halo over the lines */
}
.vs__station circle { stroke: var(--paper); stroke-width: 2; }
.vs__station text { font-size: 14px; letter-spacing: .02em; fill: var(--ink-2); }
.vs__walk-label { font-size: 13px; fill: var(--ink); font-variant-numeric: tabular-nums; }
.vs__halo { fill: var(--pink); fill-opacity: .28; }
.vs__dot { fill: var(--pink); stroke: var(--ink); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.vs__name { font-size: 16px; font-weight: 600; letter-spacing: .14em; fill: var(--ink); }
.vs__sub { font-size: 11px; letter-spacing: .02em; fill: var(--mute); }
.vs__scale path, .vs__north path { fill: none; stroke: var(--mute); stroke-width: 1; vector-effect: non-scaling-stroke; }
.vs__scale text, .vs__north text { font-size: 11px; fill: var(--mute); }
@media (min-width: 600px) {
  .vs__station text { font-size: 9.5px; }
  .vs__walk-label { font-size: 9px; }
  .vs__name { font-size: 10.5px; }
  .vs__sub { font-size: 7.5px; }
  .vs__scale text, .vs__north text { font-size: 7.5px; }
  .vs text { stroke-width: 3px; }
}

/* «Построить маршрут» → the chooser (js/ui/map-embed.js moves it to <body>): a popover by the button on wider
   screens, a bottom sheet on phones. Paper, a hairline, the rows of the site's lists. */
.route[hidden] { display: none; }
.route { position: fixed; inset: 0; z-index: var(--z-panel); }
.route__scrim { position: absolute; inset: 0; background: rgba(28, 28, 28, .2); opacity: 0; transition: opacity var(--dur) linear; }
.route.is-open .route__scrim { opacity: 1; }
.route__sheet {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.route__sheet:focus { outline: none; }
.route__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem .5rem; }
.route__title { font-size: 1.0625rem; font-weight: 600; letter-spacing: .02em; }
.route__close {
  flex: none; width: 2.75rem; height: 2.75rem; margin: -.5rem -.75rem -.5rem 0;
  display: grid; place-items: center;
  font-size: 2rem; font-weight: 200; line-height: 1; color: var(--ink);
}
.route__close:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.route .route__list { margin: 0; padding: 0 0 .5rem; list-style: none; } /* beats ul[role=list] */
.route__row + .route__row .route__link { border-top: 1px solid var(--line); }
.route__link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.25rem; margin-inline: 1.25rem;
  font-size: 1.0625rem;
}
.route__arrow { color: var(--mute); transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) linear; }
@media (hover: hover) {
  .route__link:hover .route__arrow { color: var(--ink); transform: translateX(.2em); }
}
.route__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* the navigator is an app: only where it can be installed (phones, tablets) */
@media (hover: hover) and (pointer: fine) {
  .route__row--app { display: none; }
}

/* popover: no scrim, the page stays usable; placed by the script under (or over) the button */
.route--pop { pointer-events: none; }
.route--pop .route__scrim { display: none; }
.route--pop .route__sheet {
  position: fixed; width: 20rem;
  box-shadow: 0 1.25rem 3rem rgba(28, 28, 28, .1);
  pointer-events: auto;
  opacity: 0; transform: translateY(-.375rem);
  transition: opacity var(--dur-fast) linear, transform var(--dur-fast) var(--ease-out);
}
.route--pop.is-open .route__sheet { opacity: 1; transform: none; }

/* bottom sheet: the full width, from the bottom edge, above the home indicator */
.route--sheet .route__sheet {
  left: 0; right: 0; bottom: 0;
  border-width: 1px 0 0;
  padding-bottom: calc(.75rem + var(--safe-b));
  transform: translateY(100%);
  transition: transform var(--dur) var(--ease-out);
}
.route--sheet.is-open .route__sheet { transform: none; }
.route--sheet .route__head { padding: 1.25rem var(--gutter) .75rem; }
.route--sheet .route__title { font-size: 1.375rem; }
.route--sheet .route__link { min-height: 3.5rem; margin-inline: var(--gutter); font-size: 1.125rem; }
@media (prefers-reduced-motion: reduce) {
  .route__scrim, .route__sheet, .route--pop .route__sheet, .route--sheet .route__sheet, .visit__frame { transition: none; }
}

@media (max-width: 899px) {
  .visit { grid-template-columns: minmax(0, 1fr); }
}

/* «Сезон сейчас»: one square arrow inside the ribbon, at its right edge (no pin) */
.season__more {
  position: absolute; z-index: 2;
  right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: 3.5rem; height: 3.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(21, 21, 21, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 0;
  color: rgba(255, 255, 255, .9); font: inherit; font-size: 1.25rem; line-height: 1;
  cursor: pointer; touch-action: manipulation;
  transition: border-color .2s, color .2s, background-color .2s;
}
.season__more:hover { border-color: #fff; color: #fff; background: rgba(21, 21, 21, .9); }
.season__more:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.season__ribbon { scrollbar-width: none; }
.season__ribbon::-webkit-scrollbar { display: none; }
@media (max-width: 767px) { .season__more { width: 2.75rem; height: 2.75rem; right: .75rem; } }

.ko--now.skel .ko__jp { display: block; width: 1.5rem; height: 6rem; background: rgba(255, 255, 255, .06); }
.ko--now.skel .ko-skel__gap { visibility: hidden; height: 1.65rem; }
/* «Сезон сейчас»: the sekki line keeps its line while it is still empty */
.js .season__sekki:empty::before { content: '\a0'; }

/* news cards: the skeleton uses the card's own blocks, so the row is as tall as the real one.
   Phones: every card reserves two title lines and four text lines — the row (as tall as its tallest card)
   no longer jumps when the news arrive. */
.news-card.skel .skel__line { margin-top: 0; }
.news-card.skel .news-card__meta .skel__line { height: 1.3em; }
.news-card.skel .news-card__title .skel__line { height: 1.15em; }
.news-card.skel .news-card__text { display: grid; align-content: start; gap: .5rem; min-height: calc(2em * 1.45); }
@media (min-width: 900px) {
  .news-card.skel .news-card__text .skel__line:nth-child(3) { display: none; } /* two lines of text on a desktop card */
}
.news-card.skel .news-card__link { display: block; height: 1.625rem; padding-top: .375rem; }
.news-card.skel .news-card__link .skel__line { height: 100%; }
@media (max-width: 899px) {
  .news-card__title { min-height: calc(2em * 1.15 + .5rem); margin-bottom: 0; padding-bottom: .5rem; }
  .news-card__text, .news-card.skel .news-card__text { min-height: calc(4em * 1.45); }
}

/* ======================================================================
   PHONES (≤ 767 px) — the lighter home (client, 2026-10-07: «громоздко», «перегруз», «главная — это о нас»).
   Six blocks (client, 2026-10-08): first screen · Пространство (the rooms, large) · the news rail · Сезон сейчас ·
   шеф · Как добраться. The «О нас» lead line repeats the first screen — not on phones; the chef stays.
   Quick booking and the «Карта гостя» band repeat the site menu and the floating order button — hidden here;
   home.js does not start them until they show. The order and which blocks show come from home.json (the admin
   «Главная» screen, see «the blocks' order» at the end); the .stay wrapper is display: contents here, so #space takes
   its own place.
   Smoothness: no blur/filter work, no backdrop-filter, below-the-fold blocks skip rendering until near.
   Everything phone-only is display:none above 767 px, so tablets and desktop are untouched.
   ====================================================================== */
.hero__phone,
.hero__nowline,
.news__count,
.space__lead,
.space__count,
.season__go,
.ko__line,
.chef__toggle { display: none; }

@media (max-width: 767px) {
  /* the order and the hidden blocks: home.json (see «the blocks' order» at the end); #space leaves the .stay row */
  .stay { display: contents; }

  /* below the fold: rendered only when near the viewport (placeholder sizes measured at 402 px, then remembered) */
  #about, #contacts {
    content-visibility: auto;
    contain-intrinsic-size: auto 760px;
  }
  #news { content-visibility: auto; contain-intrinsic-size: auto 700px; }

  /* ---- 1 · first screen: logo, phrase, «Заказать» + «Забронировать», one «now» line ---- */
  .hero__wide { display: none; }
  .hero__phone { display: inline; }
  .hero__scale, .hero__contacts { display: none; }
  .hero__actions {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem;
    max-width: 26rem;
  }
  .hero__go, .hero__book { min-height: 3.5rem; padding: .875rem .75rem; font-size: 1.125rem; letter-spacing: .07em; } /* «Забронировать» fits half of a 375 px screen */
  .hero__go { gap: .5em; }
  /* «Сезон 48 из 72 · Вода начинает убывать →»: plain words, white — «Заказать» is the screen's one pink */
  .hero__nowline:not([hidden]) { display: block; margin-top: 1rem; }
  .hero__nowline-link {
    display: inline-flex; align-items: center; gap: .375em;
    min-height: 2.75rem; padding-block: .5rem;
    font-size: 1rem; line-height: 1.35;
    color: rgba(255, 255, 255, .85);
    text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35);
    text-decoration-thickness: 1px; text-underline-offset: .3em;
  }
  .hero__nowline-arrow { text-decoration: none; }
  .hero__nowline-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  /* the darkening as a plain layer: a CSS filter over a playing video costs every frame */
  .hero__media { filter: none; }
  .hero__media::after { content: ''; position: absolute; inset: 0; background: rgba(14, 14, 14, .7); }
  .hero__body { padding-bottom: 1.5rem; }

  /* ---- 4 · Сезон сейчас: the kanji small, today's card alone, a link to the season's dishes ---- */
  .season__frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: none;
    column-gap: 1.25rem; row-gap: 0;
    height: auto;
    padding: 3rem var(--gutter) 2.75rem;
  }
  .season__head { grid-column: 1; grid-row: 1; align-self: start; margin-bottom: 0; }
  /* one calendar here: today's micro-season card with its own dates; the big season's line is for wider screens,
     the big kanji stays as the block's picture (client, 2026-10-07: «Так вода или равноденствие?») */
  .season__sekki { display: none; }
  .season__glyph { grid-column: 2; grid-row: 1; margin: 0; align-self: start; }
  .season__kanji, .js .season__kanji-box:empty { width: 5.5rem; max-width: 5.5rem; }
  .season__quarters { display: none; }
  .season__ribbon {
    grid-column: 1 / -1;
    margin: 2rem 0 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .season .season__track { display: block; width: auto; padding: 0; }
  .season .ko:not(.ko--now) { display: none; }
  .season .ko--now { width: auto; min-height: 0; margin-left: 0; }
  .season .ko__media, .season .ko__menu { display: none; }
  .season .ko__title { font-size: 1.75rem; margin-bottom: .5rem; }
  /* the micro-season's own two sentences (seasons.json → ko, ≤ 240 chars) are read whole; the clamp only guards
     against a runaway text typed in the admin */
  .season .ko__text {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7;
    overflow: hidden;
  }
  .season .ko__line {
    display: block;
    margin-top: .875rem; padding-top: .75rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .875rem; line-height: 1.4;
    color: rgba(255, 255, 255, .7);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .season__ruler, .season__more { display: none; }
  .season__go { display: block; grid-column: 1 / -1; margin-top: 1.75rem; font-size: 1.0625rem; }
  .season__go .link { color: #fff; }

  /* ---- headings (client, 2026-10-07: «любые заголовки акцентнее»): bigger, heavier; the glyph small and grey ---- */
  .section-head { gap: .25rem .75rem; margin-bottom: 1.5rem; }
  .section-head__title { font-size: 1.75rem; font-weight: 600; letter-spacing: .06em; }
  .section-head__jp { font-size: .9375rem; color: var(--mute); }

  /* ---- 3 · news: every item as a rail, newest first (js/pages/home.js), the next card peeking, «1 / 9» under it.
     The poster whole: the frame takes the picture's own proportions (--news-ratio, square until it loads) ---- */
  .news { padding: 3.5rem var(--gutter) 1.5rem; }
  .news .news__rail, .news.news--rail .news__rail {
    margin-inline: calc(-1 * var(--gutter));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-mask-image: none; mask-image: none;
  }
  .news .news__list { display: flex; align-items: flex-start; gap: .875rem; width: max-content; padding: 0 var(--gutter); }
  .news .news-card, .news .news-card--main { width: 84vw; max-width: 26rem; scroll-snap-align: start; }
  .news-card__media, .news-card--main .news-card__media { aspect-ratio: var(--news-ratio, 1 / 1); margin-bottom: .875rem; }
  .news-card__media--photo { background: var(--paper-2); }
  .news-card__media--photo::before { display: none; }
  .news-card__media--photo img { object-fit: contain; }
  .news-card__meta { justify-content: flex-start; gap: .5rem; margin-bottom: .5rem; }
  .news-card__date::before { content: '·'; margin-right: .5rem; }
  .news-card__archive {
    display: inline-block; margin-left: auto;
    padding: .0625rem .5rem .125rem;
    border: 1px solid var(--line-strong);
    color: var(--mute);
  }
  .news-card__title, .news-card--main .news-card__title {
    font-size: 1.375rem; font-weight: 600; line-height: 1.2;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  }
  .news-card__title, .news-card__text, .news-card.skel .news-card__text { min-height: 0; }
  .news-card__text { -webkit-line-clamp: 2; line-clamp: 2; }
  /* every card as tall as the row, its «Подробнее →» at the bottom: the «1 / 9» sits right under the links, not under
     an empty strip below the shorter cards (client, 2026-10-07: a large gap under the counter) */
  .news .news__list { align-items: stretch; }
  .news .news-card { display: flex; flex-direction: column; }
  .news-card__more { align-self: flex-start; margin-top: auto; padding-top: .75rem; font-size: 1.0625rem; }
  .news__count:not([hidden]) {
    display: block; margin-top: 1rem;
    font-size: var(--fs-label); color: var(--mute); font-variant-numeric: tabular-nums;
  }

  /* ---- 5 · О нас: the chef beside his name, his words; bio and path behind «О шефе →». The lead line
     («Современное прочтение…») is not shown: it repeats the first screen (client, 2026-10-08) ---- */
  .about {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas: 'label label' 'photo who' 'quote quote' 'toggle toggle' 'notes notes' 'path path';
    grid-template-rows: none;
    column-gap: 1.25rem;
    padding: 3.5rem var(--gutter) 2.5rem;
  }
  .about::before { display: none; } /* the leaf shadow: a blurred layer — not on phones */
  .about__label { margin-bottom: 1.5rem; }
  .about__text { display: none; }
  .about__photo { aspect-ratio: 2 / 3; }
  .about__photo img { filter: none; }
  .chef__who { align-self: end; margin-top: 0; }
  .chef__name { font-size: clamp(2.125rem, 10vw, 2.75rem); white-space: normal; }
  .chef__quote { margin-top: 1.75rem; }
  .chef__quote blockquote { font-size: 1.25rem; }
  .chef__toggle { display: inline-block; grid-area: toggle; justify-self: start; margin-top: 1.5rem; font-size: 1.0625rem; }
  .chef__toggle-arrow { display: inline-block; transition: transform var(--dur) var(--ease-out); }
  .chef__toggle[aria-expanded='true'] .chef__toggle-arrow { transform: rotate(90deg); }
  html:not(.js) .chef__toggle { display: none; }
  .js .about:not(.is-chef-open) .chef__notes,
  .js .about:not(.is-chef-open) .chef__path { display: none; }
  .chef__notes { grid-template-columns: minmax(0, 1fr); margin-top: 1.5rem; }
  .chef__path {
    grid-template-columns: minmax(0, 1fr); row-gap: 0;
    margin-top: 2rem; margin-left: .25rem;
    border-top: 0; border-left: 1px solid var(--line-strong);
  }
  .chef__path li { border-top: 0; padding: 0 0 1.5rem 1.5rem; }
  .chef__path li:last-child { padding-bottom: 0; }
  .chef__path li::before { left: -.3125rem; top: .4375rem; }

  /* ---- 2 · Пространство: right under the first screen, the rooms large — a full-bleed native snap strip of 4:5
     photos (≈ 82vw), the next one peeking, small-caps captions under them, «1 / 6» below (js/ui/news-rail.js) ---- */
  .space { padding: 3.5rem var(--gutter) 1rem; }
  .space .section-head { margin-bottom: .5rem; }
  .space__lead { display: block; margin-bottom: 1.5rem; font-size: 1.0625rem; line-height: 1.4; color: var(--ink-2); }
  .space__rail { scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
  .space .space__track { gap: .75rem; }
  .space__item { width: 82vw; max-width: 26rem; }
  .space__item img {
    display: block;
    width: 100%; height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: none;
  }
  .space__cap { margin-top: .75rem; }
  .space__count:not([hidden]) {
    display: block; margin-top: 1rem;
    font-size: var(--fs-label); color: var(--mute); font-variant-numeric: tabular-nums;
  }

  /* ---- 6 · Как добраться, then a slim footer. No map frame on phones (it did not work in the in-app browsers,
     client 2026-10-07, Telegram): the schematic is the map, a tap on it opens the route chooser ---- */
  .visit { gap: 2.5rem; padding-top: 3.5rem; }
  .visit__address { font-size: 1.75rem; }
  .visit__facts { margin-top: 1.75rem; }
  .visit__actions { flex-direction: column; align-items: stretch; gap: .75rem; margin-top: 2rem; }
  .visit__call { justify-content: space-between; min-height: 3.5rem; font-size: 1.125rem; }
  .page--home .footer { padding-top: 3.5rem; }
  .page--home .footer__logo { width: 7.5rem; }
}

/* touch screens: no backdrop blur on the home */
@media (pointer: coarse) {
  .season__more { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(21, 21, 21, .9); }
}

/* ==== phone legibility + button type (client, iPhone, 2026-10-08) — ONE appended block. The pills read in real
   capitals like .btn--accent / .btn--outline (base.css): 15 px on wide screens, 16 px on phones, 600, tracking ≤ .05em.
   Labels on the dark «Сезон сейчас» come up to the shared label size and a brighter white. ==== */
.hero__go, .hero__book, .visit__call {
  font-size: .9375rem; font-weight: 600; letter-spacing: .05em;
  font-variant: normal; text-transform: uppercase;
}
@media (max-width: 767px) {
  .hero__go, .hero__book, .visit__call { font-size: 1rem; letter-spacing: .04em; }
  .season__head { font-size: var(--fs-label); }
  .season__title, .season__sekki { color: rgba(255, 255, 255, .78); }
  .ko__meta { font-size: var(--fs-label); color: rgba(255, 255, 255, .72); }
  .visit__cap { font-size: .8125rem; }
}
/* the narrowest phones (320–359 px): «Заказать» + «Забронировать» still side by side */
@media (max-width: 359px) {
  .hero__go, .hero__book { padding-inline: .5rem; font-size: .9375rem; letter-spacing: .02em; }
}

/* ======================================================================
   the blocks' order (home.json, Task 13 «как лего»): the server writes data-order-phone / data-order-desktop on every
   block (server/home-page.js), is-off-phone / is-off-desktop on a hidden one and home-gap-* where a block that starts
   flush follows a dark or tinted one. main is a flex column at every width; the first screen keeps order 0.
   .stay-apart: the rooms and the booking each in their own place (the booking does not follow the rooms on wide screens).
   ====================================================================== */
.page--home main { display: flex; flex-direction: column; }
.page--home main > *, .stay > *, .stay-apart > * { min-width: 0; }
.stay-apart { display: contents; }
@media (max-width: 767px) {
  [data-order-phone='1'] { order: 1; } [data-order-phone='2'] { order: 2; } [data-order-phone='3'] { order: 3; }
  [data-order-phone='4'] { order: 4; } [data-order-phone='5'] { order: 5; } [data-order-phone='6'] { order: 6; }
  [data-order-phone='7'] { order: 7; } [data-order-phone='8'] { order: 8; } [data-order-phone='9'] { order: 9; }
  .page--home .is-off-phone { display: none !important; }
  .page--home .home-gap-phone { padding-top: 3.5rem; }
}
@media (min-width: 768px) {
  [data-order-desktop='1'] { order: 1; } [data-order-desktop='2'] { order: 2; } [data-order-desktop='3'] { order: 3; }
  [data-order-desktop='4'] { order: 4; } [data-order-desktop='5'] { order: 5; } [data-order-desktop='6'] { order: 6; }
  [data-order-desktop='7'] { order: 7; } [data-order-desktop='8'] { order: 8; } [data-order-desktop='9'] { order: 9; }
  .page--home .is-off-desktop { display: none !important; }
  .page--home .home-gap-desktop { padding-top: var(--section-y); }
}

/* the chef without a portrait (home.json chef.photo empty): one column, never an empty frame (server/home-page.js) */
.about.about--no-photo {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'label' 'intro' 'who' 'quote' 'notes' 'path';
  grid-template-rows: none;
}
@media (max-width: 767px) {
  .about.about--no-photo { grid-template-areas: 'label' 'who' 'quote' 'toggle' 'notes' 'path'; }
  .about--no-photo .chef__who { margin-top: 0; }
}
