
/* Постраничный скролл */
html,
body {
  height: 100%;
  overflow: hidden;
}

.pages {
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.page {
  position: relative;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(5rem, 11vh, 6.5rem) clamp(1.25rem, 6vw, 6rem) clamp(2rem, 6vh, 4rem);
  background-size: cover;
  background-position: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

/* Навигация */
.logo {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: clamp(1rem, 3vw, 2rem);
}

.logo img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
}

.dots {
  position: fixed;
  z-index: 10;
  top: 50%;
  right: clamp(.6rem, 2vw, 1.6rem);
  transform: translateY(-50%);
  display: grid;
  gap: .9rem;
}

.dots a {
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: rgba(29, 24, 20, .35);
  transition: background .2s, transform .2s;
}

.dots a:hover {
  transform: scale(1.3);
}

.dots a.is-active {
  background: var(--gold);
  transform: scale(1.3);
}

/* Приветствие */
#s1 {
  color: var(--paper);
  background-image: linear-gradient(180deg, rgba(29, 24, 20, .35), rgba(29, 24, 20, 0) 45%, rgba(29, 24, 20, .5)), url(../img/hero/background.png);
}

.hero h1,
.hero p {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(3.4rem, 13vw, 9.5rem);
  letter-spacing: .1em;
  margin: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .55);
}

.hero p {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  max-width: 34rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

.hero__han {
  position: absolute;
  top: 50%;
  right: clamp(1.5rem, 6vw, 9rem);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-size: clamp(4rem, min(15vw, 22vh), 12rem);
  line-height: 1.05;
  color: var(--seal);
  opacity: .9;
  filter: drop-shadow(0 0 14px rgba(243, 211, 145, .6));
}


.hero__hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  font-size: .95rem;
  text-shadow: 0 1px 6px #000;
}

.hero__hint::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: .5rem auto 0;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  animation: nudge 1.6s ease-in-out infinite;
}

@keyframes nudge {
  50% {
    transform: translateY(8px) rotate(45deg);
  }
}

/* О нас */
#s2 {
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(111, 21, 21, .12) 1px, transparent 0);
  background-size: 22px 22px;
}

.about {
  flex-direction: row;
  gap: clamp(2rem, 6vw, 5rem);
  text-align: left;
}

.about__text {
  flex: 1 1 0;
  max-width: 34rem;
}

.about h2 {
  padding-bottom: .4em;
  border-bottom: 3px double var(--seal);
}

.about__photo {
  flex: 1 1 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.about__photo img {
  width: min(100%, 34rem, 68vh);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 8px double var(--gold);
  box-shadow: 0 0 0 10px var(--lacquer), 0 24px 50px rgba(29, 24, 20, .4);
  filter: sepia(.25) saturate(1.15) contrast(1.05);
}

/* Меню */
#s3 {
  justify-content: space-between;
  background-image: url(../img/menu/background.png);
  background-position: center bottom;
}

.menu__head p {
  margin: 0;
  color: #4a3a28;
}

.plates {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(.4rem, 3vw, 3rem);
  width: 100%;
}

.plate {
  display: block;
  width: min(30vw, 40vh);
  text-decoration: none;
  transition: transform .3s;
}

.plate img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 12px rgba(60, 35, 10, .4));
  transition: filter .3s;
}

.plate span {
  display: block;
  margin-top: -9%;
  font-weight: 700;
  font-size: clamp(.85rem, 1.7vw, 1.3rem);
  color: #3b2410;
}

.plate:hover,
.plate:focus-visible {
  transform: translateY(-12px) scale(1.04);
}

.plate:hover img {
  filter: drop-shadow(0 28px 16px rgba(60, 35, 10, .5)) saturate(1.2);
}

/* Доска событий */
#s4 {
  color: var(--paper);
  background-color: var(--lacquer);
  background-image: linear-gradient(rgba(40, 8, 8, .9), rgba(30, 6, 6, .95)), repeating-linear-gradient(45deg, var(--gold) 0 1px, transparent 1px 26px), repeating-linear-gradient(-45deg, var(--gold) 0 1px, transparent 1px 26px);
}

.gallery {
  position: relative;
  width: min(92vw, 46rem, calc((100dvh - 21rem) * 1.5));
  min-width: 16rem;
}

.gallery__view {
  overflow: hidden;
  border: 4px double var(--gold);
  touch-action: pan-y;
}

.gallery__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform .6s ease;
}

.gallery__track li {
  flex: 0 0 100%;
}

.gallery__track figure {
  margin: 0;
}

.gallery__track img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery figcaption {
  padding: .6rem 1rem;
  font-size: .95rem;
  background: rgba(0, 0, 0, .45);
}

.gallery__btn {
  position: absolute;
  top: calc(50% - 1.6rem);
  width: 3rem;
  height: 3rem;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--paper);
  background: rgba(111, 21, 21, .85);
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.gallery__btn:hover {
  background: var(--seal);
}

.gallery__btn--prev {
  left: -1.5rem;
}

.gallery__btn--next {
  right: -1.5rem;
}

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin-top: .8rem;
}

.gallery__dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  cursor: pointer;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: transparent;
}

.gallery__dots button.is-active {
  background: var(--gold);
}

/* Бронь и карта */
#s5 {
  color: var(--paper);
  overflow: hidden;
  background-image: radial-gradient(circle at 50% 120%, #a02a22, #4d0d0d 70%);
}

#s5::before {
  content: "迎";
  position: absolute;
  font-family: var(--font-brush);
  font-size: min(60vw, 80vh);
  line-height: 1;
  color: var(--gold);
  opacity: .08;
  pointer-events: none;
}

.visit p {
  position: relative;
  max-width: 34rem;
}

.visit .actions {
  position: relative;
}

/* Акции */
#s6 {
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(111, 21, 21, .12) 1px, transparent 0);
  background-size: 22px 22px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
  width: min(100%, 62rem);
  margin-bottom: 2rem;
}

.promo-card {
  padding: 1.5rem;
  text-align: left;
  background: var(--silk);
  border: 1px solid var(--gold);
  border-top: 6px solid var(--seal);
  box-shadow: 0 10px 24px rgba(29, 24, 20, .12);
}

.promo-card h3 {
  color: var(--lacquer);
}

.promo-card p {
  font-size: .95rem;
}

.promo-card .promo-card__price {
  display: block;
  font-size: 1.4rem;
  color: var(--seal);
}

/* Отзыв и подвал */
#s7 {
  color: var(--paper);
  background-image: linear-gradient(rgba(29, 24, 20, .86), rgba(29, 24, 20, .92)), url(../img/hero/background.png);
}

.review p {
  max-width: 34rem;
}

.review .footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1rem;
  color: #c9bb94;
  border-color: rgba(201, 162, 75, .3);
}

#s1, #s7 { isolation: isolate; overflow: hidden; }

#s1::before, #s7::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -1;
  background: inherit;
  filter: blur(8px);
}

#s1::after, #s7::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(244, 236, 216, .10);
}

/* Адаптив */
@media (max-width: 800px) {
  .about {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .about__photo img {
    width: min(100%, 17rem);
  }

  .hero__han {
    right: 1rem;
    opacity: .35;
  }

  .gallery__btn--prev {
    left: -.4rem;
  }

  .gallery__btn--next {
    right: -.4rem;
  }

  .dots {
    gap: .6rem;
  }
}