:root {
  /* Светлая лестница из четырёх ступеней: базовый фон, утопленный блок,
     акцентный блок и приподнятая карточка. Тёмный тон остаётся только в подвале. */
  --paper: #f2f0eb;
  --paper-2: #e8e4dc;
  --paper-3: #dbd5c9;
  --surface: #ffffff;

  --ink: #221e1b;
  --muted: #6e675e;
  --garnet: #7a2331;
  --brass: #7e6420;
  --brass-light: #c9a86a;
  --line: rgba(34, 30, 27, 0.14);
  --line-soft: rgba(34, 30, 27, 0.08);

  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.25rem, 4vw, 3rem);
  --step-5: clamp(2.5rem, 6.5vw, 5rem);

  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Golos Text", "Segoe UI", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: Prata, Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.14;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  max-width: 62ch;
}

a {
  color: inherit;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

/* picture нужен только для выбора webp или jpeg: своей коробки у него быть не должно,
   иначе ломается позиционирование кадров первого экрана. */
picture {
  display: contents;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--garnet);
  margin: 0;
}

.lead {
  font-size: var(--step-1);
  color: var(--muted);
}

.rule {
  width: 56px;
  height: 2px;
  background: var(--garnet);
  border: 0;
  margin: 0;
}

/* Шапка */

.topbar {
  --bar-fg: var(--ink);
  --bar-muted: var(--muted);
  --bar-accent: var(--garnet);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(242, 240, 235, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.topbar--over {
  --bar-fg: var(--paper);
  --bar-muted: rgba(242, 240, 235, 0.82);
  --bar-accent: var(--brass-light);
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.topbar--over.is-solid {
  --bar-fg: var(--ink);
  --bar-muted: var(--muted);
  --bar-accent: var(--garnet);
  background: rgba(242, 240, 235, 0.92);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(10px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.wordmark {
  font-family: Prata, Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--bar-fg);
  transition: color 0.35s ease;
}

.wordmark span {
  color: var(--bar-accent);
  transition: color 0.35s ease;
}

.nav {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--bar-muted);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--bar-fg);
  border-bottom-color: var(--bar-accent);
}

/* Полноэкранный первый экран */

.hero-full {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(4rem, 12vh, 8rem);
  overflow: hidden;
  color: var(--paper);
}

.hero-full__media {
  position: absolute;
  inset: 0;
}

.hero-full__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 16, 13, 0.88) 0%,
    rgba(20, 16, 13, 0.55) 38%,
    rgba(20, 16, 13, 0.3) 100%
  );
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  animation: kenburns 14s ease-out both;
}

.hero-full__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}


.hero-full .label {
  color: var(--brass-light);
}

.hero-full .rule {
  background: var(--brass-light);
}

.hero-full__title {
  font-size: var(--step-5);
  max-width: 16ch;
}

.hero-full__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(242, 240, 235, 0.85);
}

.hero-full__meta a {
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 240, 235, 0.35);
}

.hero-full__meta a:hover {
  color: #fff;
  border-bottom-color: var(--brass-light);
}

/* Первый экран внутренних страниц */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__title {
  font-size: var(--step-4);
}

.hero__figure {
  aspect-ratio: 3 / 2;
}

.hero__figure img {
  animation: kenburns 22s ease-out both;
}

/* Снимки */

.shot {
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band {
  aspect-ratio: 21 / 9;
  margin-block: clamp(3rem, 8vw, 5.5rem);
}

/* Секции и тональный ритм */

.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.section--tint {
  background: var(--paper-2);
}

.section--accent {
  background: var(--paper-3);
}

.split {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(1.25rem, 5vw, 4rem);
  align-items: start;
}

.split__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section__title {
  font-size: var(--step-3);
}

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.duo .shot {
  aspect-ratio: 4 / 5;
}

/* Карточки */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 18px 40px -28px rgba(34, 30, 27, 0.5);
}

.card h3 {
  font-size: var(--step-2);
}

.card p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.card__go {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--garnet);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Три опоры на главной */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--garnet);
}

.pillar h3 {
  font-size: var(--step-2);
}

.pillar p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Оценки гостей */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat__value {
  font-family: Prata, Georgia, serif;
  font-size: var(--step-3);
  color: var(--garnet);
  font-variant-numeric: tabular-nums;
}

.stat__note {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Меню */

.menu-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.menu-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 1px dotted var(--line);
  padding-bottom: 0.8rem;
}

.menu-list .price {
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.menu-note {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Меню, загруженное файлом: страницы показываются прямо на сайте */

.menu-doc {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: center;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.menu-doc__page {
  margin: 0;
  width: min(100%, 900px);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: 0 18px 40px -32px rgba(34, 30, 27, 0.7);
}

.menu-doc__page img {
  width: 100%;
  height: auto;
}

.menu-doc__link {
  align-self: start;
  font-weight: 500;
  color: var(--garnet);
  text-decoration-color: var(--line);
  text-underline-offset: 0.35em;
}

/* Карта */

.map {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper-3);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.map__stub {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: var(--gutter);
  text-align: center;
}

.map__note {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 44ch;
}

.map__load {
  font: inherit;
  font-weight: 500;
  color: var(--surface);
  background: var(--garnet);
  border: 0;
  padding: 0.85rem 1.75rem;
  cursor: pointer;
}

.map__load:hover {
  background: var(--ink);
}

/* Заглушка остаётся под картой: если чужой виджет не загрузится, гость увидит
   пояснение и кнопку, а не пустой прямоугольник. */
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map.is-loading .map__load {
  display: none;
}

.map__link {
  font-weight: 500;
  color: var(--garnet);
  text-underline-offset: 0.35em;
}

/* Список фактов */

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.facts li {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.facts__key {
  color: var(--muted);
  font-size: 0.9375rem;
}

.facts a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.facts a:hover {
  border-bottom-color: var(--garnet);
}

.phone {
  font-family: Prata, Georgia, serif;
  font-size: var(--step-4);
  color: var(--garnet);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color 0.25s;
}

.phone:hover {
  color: var(--ink);
}

/* Галерея */

.gallery {
  columns: 3;
  column-gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.gallery__item {
  break-inside: avoid;
  margin: 0 0 clamp(0.75rem, 1.5vw, 1.25rem);
  padding: 0;
  border: 0;
  width: 100%;
  display: block;
  background: var(--paper-3);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

/* Просмотр снимка */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(26, 22, 20, 0.95);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1200px);
  max-height: 84vh;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--paper);
  font-family: inherit;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0.75rem 1rem;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.lightbox button:hover {
  opacity: 1;
}

.lightbox__close {
  top: clamp(0.5rem, 2vw, 1.5rem);
  right: clamp(0.5rem, 2vw, 1.5rem);
}

.lightbox__prev {
  left: clamp(0.25rem, 2vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: clamp(0.25rem, 2vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__counter {
  position: absolute;
  bottom: clamp(0.75rem, 3vw, 1.75rem);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(242, 240, 235, 0.7);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

/* Подвал */

.footer {
  background: #1a1614;
  color: var(--paper);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.footer .label {
  color: var(--brass-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9375rem;
}

.footer__col a {
  text-decoration: none;
  color: rgba(242, 240, 235, 0.78);
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--paper);
}

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 240, 235, 0.18);
  font-size: 0.8125rem;
  color: rgba(242, 240, 235, 0.65);
  max-width: none;
}

/* Движение */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero__text > *,
.hero-full__content > * {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__text > *:nth-child(2),
.hero-full__content > *:nth-child(2) { animation-delay: 0.12s; }
.hero__text > *:nth-child(3),
.hero-full__content > *:nth-child(3) { animation-delay: 0.22s; }
.hero__text > *:nth-child(4),
.hero-full__content > *:nth-child(4) { animation-delay: 0.32s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@media (max-width: 900px) {
  .gallery {
    columns: 2;
  }
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .split,
  .facts li {
    grid-template-columns: 1fr;
  }

  .band {
    aspect-ratio: 3 / 2;
  }

  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-block: 0.9rem;
  }
}

@media (max-width: 560px) {
  .gallery {
    columns: 1;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-slide.is-active {
    opacity: 1;
  }
}

/* Снимок во всю ширину, показанный целиком. Широкая полоса 21/9 срезала у кадра
   верх и низ, и по остатку было не понять, что на снимке - особенно у блюд.
   Правила идут последними: они должны перебивать .band из медиазапросов выше. */
.band--full {
  aspect-ratio: auto;
  background: none;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.band--full img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  object-position: center;
}
