/* ==========================================================================
   Отель «Вершина» — стили
   Брейкпоинты повторяют оригинал: ≥1600 / 1200–1599 (базовый) / 960–1199 / 640–959 / <640
   ========================================================================== */

:root {
  --ink: #0c0f0d;
  --muted: #767978;
  --soft: #acafae;
  --line: #e9e3dd;
  --mint: #e4efeb;
  --green: #2e5347;
  --green-deep: #1a5240;
  --dark: #1a2b2a;
  --faq: #f8f8f8;
  --white: #fff;

  --font-head: "Alumni Sans", "Arial Narrow", sans-serif;
  --font-text: "Roboto", Arial, sans-serif;

  /* сетка */
  --container: 1120px;
  --gutter: 40px;
  --frame-m: 8px;
  --frame-r: 12px;
  --gap: 10px;
  --section: 140px;
  --title-gap: 60px;

  /* типографика */
  --h1: 82px;  --h1-lh: 66px;  --h1-ls: -1.6px;
  --h2: 50px;  --h2-lh: 40px;  --h2-ls: -1px;
  --h3: 36px;  --h3-lh: 29px;  --h3-ls: -0.7px;
  --ui: 16px;  --ui-lh: 19px;          /* подписи, меню, лейблы */
  --txt: 16px; --txt-lh: 19px;         /* текст в карточках */
  --sm: 14px;  --sm-lh: 17px;          /* текст отзывов */
  --dot: 8px;

  --btn-h: 59px;
  --btn-fs: 16px;
  --card-pad: 25px;
  --tile: 48px;
  --tile-r: 10px;
}

@media (min-width: 1600px) {
  :root {
    --container: 100vw;
    --gutter: 80px;
    --frame-m: 10px;
    --section: 180px;
    --h1: 108px; --h1-lh: 86px; --h1-ls: -2px;
    --h2: 72px;  --h2-lh: 58px; --h2-ls: -1.4px;
    --h3: 42px;  --h3-lh: 34px; --h3-ls: -0.8px;
    --ui: 20px;  --ui-lh: 24px;
    --txt: 18px; --txt-lh: 22px;
    --sm: 18px;  --sm-lh: 22px;
    --dot: 10px;
    --btn-h: 64px;
    --btn-fs: 20px;
    --card-pad: 29px;
    --tile: 62px;
    --tile-r: 12px;
  }
}

@media (max-width: 1199px) {
  :root { --section: 120px; --h1: 72px; --h1-lh: 60px; }
}

@media (max-width: 959px) {
  :root {
    --gutter: 25px;
    --section: 90px;
    --title-gap: 40px;
    --h1: 60px; --h1-lh: 50px;
    --h2: 40px; --h2-lh: 34px;
    --h3: 30px; --h3-lh: 25px;
  }
}

@media (max-width: 639px) {
  :root {
    --gutter: 25px;
    --frame-m: 6px;
    --frame-r: 10px;
    --section: 80px;
    --title-gap: 30px;
    --h1: 56px; --h1-lh: 45px; --h1-ls: -1.1px;
    --h2: 32px; --h2-lh: 26px; --h2-ls: -0.6px;
    --h3: 28px; --h3-lh: 22px; --h3-ls: -0.5px;
    --ui: 14px; --ui-lh: 17px;
    --txt: 14px; --txt-lh: 17px;
    --sm: 14px; --sm-lh: 17px;
    --btn-h: 48px;
    --btn-fs: 15px;
    --card-pad: 20px;
    --tile: 40px;
    --tile-r: 8px;
  }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--ui);
  line-height: var(--ui-lh);
  letter-spacing: -0.3px;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.frame {
  margin-inline: var(--frame-m);
  border-radius: var(--frame-r);
  overflow: hidden;
}
.section { padding-bottom: var(--section); }

/* ---------- Типографика ---------- */
.h1, .h2, .h3, .promo__title, .modal__title, .faq summary {
  font-family: var(--font-head);
  font-weight: 500;
}
.h1 { font-size: var(--h1); line-height: var(--h1-lh); letter-spacing: var(--h1-ls); }
.h2 { font-size: var(--h2); line-height: var(--h2-lh); letter-spacing: var(--h2-ls); margin-top: 24px; }
.h2--center { text-align: center; margin-inline: auto; }
.h3 { font-size: var(--h3); line-height: var(--h3-lh); letter-spacing: var(--h3-ls); }
.text { font-size: var(--txt); line-height: var(--txt-lh); color: var(--muted); }
.text--sm { font-size: var(--sm); line-height: var(--sm-lh); }
.h3 + .text { margin-top: 16px; }

@media (min-width: 1600px) { .h2 { margin-top: 30px; } }

.dot-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--ui);
  line-height: var(--ui-lh);
}
.dot-label::before {
  content: "";
  flex: none;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: currentColor;
}
.dot-label--muted { color: var(--muted); }
.dot-label--center { justify-content: center; }

/* ---------- Кнопки ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--btn-h);
  padding: 0 20px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-size: var(--btn-fs);
  line-height: 1.2;
  text-align: center;
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.btn:hover { background: var(--dark); }
.btn:active { transform: scale(.98); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--mint); }
.btn--green-text { color: var(--green-deep); }
.btn--deep { background: var(--green-deep); }
.btn--deep:hover { background: #1b2b2a; }

/* ---------- Карточки / фото ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: calc(var(--card-pad) - 1px);
}
.photo {
  border-radius: 10px;
  background: #d9d6d2 center / cover no-repeat;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  margin-top: var(--frame-m);
  margin-bottom: var(--section);
  min-height: 844px;
  color: var(--white);
  display: flex;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 0 80px;
}
.hero__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav { display: flex; gap: 24px; }
.nav a, .footer__col a { position: relative; padding-bottom: 4px; }
.nav a::after, .footer__col a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav a:hover::after, .footer__col a:hover::after { transform: scaleX(1); }
.hero__logo { width: 200px; }
.hero__phone { justify-self: end; font-weight: 600; }
.burger { display: none; }

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.hero__text { max-width: 685px; }
.hero .h1 { margin-top: 50px; max-width: 640px; }
.hero__lead { margin-top: 24px; max-width: 394px; }
.hero__aside { width: 274px; flex: none; display: flex; flex-direction: column; gap: 16px; }

.hero-slider {
  position: relative;
  height: 240px;
  border: 8px solid var(--white);
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
}
.hero-slider__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-slider__item.is-active { opacity: 1; }
.hero-slider__item img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.hero-slider__item::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .35));
  border-radius: 0 0 4px 4px;
}
.hero-slider__item figcaption {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  z-index: 1;
  font-size: 14px;
  line-height: 17px;
}

@media (min-width: 1600px) {
  .hero { min-height: 909px; }
  .hero__aside { width: 432px; }
  .hero-slider { height: 300px; border-width: 12px; }
  .hero .h1 { max-width: 830px; }
  .hero__lead { max-width: 520px; }
  .hero__text { max-width: 900px; }
  .hero-slider__item figcaption { font-size: 18px; line-height: 22px; }
}

/* ==========================================================================
   Об отеле
   ========================================================================== */
.about__title { max-width: 813px; }
.about { margin-top: var(--title-gap); display: grid; gap: var(--gap); }
.about__row {
  display: grid;
  grid-template-columns: 273fr 272fr 280fr 265fr;
  gap: var(--gap);
  height: 338px;
}
.about__card { display: flex; flex-direction: column; justify-content: space-between; }
.about__card .text { margin: 0; }
.about__spa {
  position: relative;
  height: 452px;
  padding: 10px;
  display: flex;
  justify-content: flex-end;
}
.about__spa-card {
  width: 266px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (min-width: 1600px) {
  .about__title { max-width: 1030px; }
  .about__row { grid-template-columns: 433fr 433fr 441fr 434fr; height: 480px; }
  .about__spa { height: 460px; }
  .about__spa-card { width: 422px; }
}

/* ==========================================================================
   Номера
   ========================================================================== */
.rooms__title { max-width: 1030px; }
.rooms { margin-top: var(--title-gap); display: grid; gap: 20px; }
.room {
  display: grid;
  grid-template-columns: 448px 1fr;
  gap: var(--gap);
  height: 510px;
  padding: 10px;
  border-radius: 12px;
  background: var(--dark);
}
.room__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
}
.amenities { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 28px; }
.amenities li {
  display: grid;
  place-items: center;
  width: var(--tile);
  height: var(--tile);
  border-radius: var(--tile-r);
  background: var(--mint);
}
.amenities img { width: 18px; height: 18px; }
.room__buy .btn { margin-top: 28px; }

@media (min-width: 1600px) {
  .rooms__title { max-width: 1550px; }
  .room { grid-template-columns: 570px 1fr; height: 620px; }
  .room__info { padding: 28px; }
  .amenities li { height: 62px; width: 60px; }
  .amenities img { width: 24px; height: 24px; }
}

/* Слайдер номеров */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  touch-action: pan-y;
  user-select: none;
}
.slider__track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.slider__track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.slider__arrow {
  position: absolute;
  top: 50%;
  width: 40px; height: 40px;
  margin-top: -20px;
  display: grid;
  place-items: center;
  opacity: .8;
  transition: opacity .2s;
}
.slider__arrow:hover { opacity: 1; }
.slider__arrow::before {
  content: "";
  width: 12px; height: 12px;
  border: solid var(--white);
  border-width: 0 0 1.5px 1.5px;
}
.slider__arrow--prev { left: 8px; }
.slider__arrow--prev::before { transform: translateX(3px) rotate(45deg); }
.slider__arrow--next { right: 8px; }
.slider__arrow--next::before { transform: translateX(-3px) rotate(-135deg); }
.slider__dots {
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.slider__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--white);
  transition: background-color .3s;
}
.slider__dots button.is-active { background: var(--green); }

/* ==========================================================================
   Сервис
   ========================================================================== */
.services__title { max-width: 560px; }
.services { margin-top: var(--title-gap); display: grid; gap: var(--gap); }
.services__row { display: grid; gap: var(--gap); }
.services__row--1 { grid-template-columns: 273fr 273fr 317fr 227fr; height: 345px; }
.services__row--2 { grid-template-columns: 240fr 274fr 280fr 296fr; height: 326px; }
.services__thumb { width: 180px; height: 180px; border-radius: 8px; }
.services__thumb--top { justify-self: end; align-self: start; }
.services__thumb--bottom { justify-self: start; align-self: end; }

.feature {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.feature__icon {
  display: grid;
  place-items: center;
  width: var(--tile);
  height: var(--tile);
  border-radius: var(--tile-r);
  background: var(--mint);
}
.feature__icon img { width: 18px; height: 18px; }

@media (min-width: 1600px) {
  .services__title { max-width: 650px; }
  .services__row--1 { grid-template-columns: 433fr 433fr 446fr 419fr; height: 330px; }
  .services__row--2 { grid-template-columns: 1fr 1fr 1fr 1fr; height: 330px; }
  .services__thumb { width: 285px; height: 265px; }
  .feature__icon img { width: 24px; height: 24px; }
}

/* ==========================================================================
   Акция
   ========================================================================== */
.promo {
  height: 763px;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: center / cover no-repeat;
  color: var(--white);
  text-align: center;
}
.promo__content { display: flex; flex-direction: column; align-items: center; }
.promo__title {
  max-width: 610px;
  font-size: 60px;
  line-height: 48px;
  letter-spacing: -1.6px;
}
.promo__text { max-width: 322px; margin-top: 20px; }
.promo .btn { width: 274px; margin-top: 32px; }
@media (min-width: 1600px) {
  .promo { height: 828px; }
  .promo__title { max-width: 830px; font-size: 82px; line-height: 66px; letter-spacing: -2px; }
  .promo__text { max-width: 430px; }
  .promo .btn { width: 432px; }
}

/* ==========================================================================
   Кафе
   ========================================================================== */
.cafe__title { max-width: 760px; }
.cafe {
  margin-top: var(--title-gap);
  display: grid;
  grid-template-columns: 368fr 274fr 180fr 274fr;
  gap: var(--gap);
  height: 400px;
}
.cafe__p1 { height: 332px; }
.cafe__p2 { height: 352px; align-self: end; }
.cafe__col { display: flex; flex-direction: column; gap: 8px; }
.cafe__p3 { flex: 1; }
.cafe__video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.cafe__card { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; border-radius: 8px; }

@media (min-width: 1600px) {
  .cafe__title { max-width: 1100px; }
  .cafe { grid-template-columns: 580fr 433fr 285fr 432fr; height: 600px; }
  .cafe__p1 { height: 490px; }
  .cafe__p2 { height: 510px; }
  .cafe__col { gap: 10px; }
}

/* ==========================================================================
   Активный отдых
   ========================================================================== */
.tours__title { max-width: 1120px; }
.tours {
  margin-top: var(--title-gap);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tour {
  display: flex;
  flex-direction: column;
  min-height: 578px;
  padding: 9px;
}
.tour__img { height: 180px; border-radius: 8px; flex: none; }
.tour__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 16px;
}
.tour__buy { margin-top: auto; padding-top: 24px; }
.tour__buy .btn { margin-top: 24px; }

@media (min-width: 1600px) {
  .tours__title { max-width: 1220px; }
  .tours { gap: 10px; }
  .tour { min-height: 675px; padding: 11px; }
  .tour__img { height: 271px; }
  .tour__body { padding: 32px 18px 18px; }
}

/* ==========================================================================
   Галерея
   ========================================================================== */
.gallery__title { max-width: 790px; }
.gallery {
  margin-top: var(--title-gap);
  display: grid;
  grid-template-columns: 272fr 272fr 272fr 274fr;
  gap: var(--gap);
  align-items: start;
}
.gallery__col { display: grid; gap: var(--gap); }
.gallery__col--offset { margin-top: 50px; }
.tile {
  position: relative;
  border-radius: 10px;
  background: #d9d6d2 center / cover no-repeat;
  overflow: hidden;
}
.tile--tall { height: 400px; }
.tile--short { height: 350px; }
.tile--lobby { height: 481px; }
.tile figcaption {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.tile figcaption::before {
  content: "";
  flex: none;
  width: var(--dot); height: var(--dot);
  border-radius: 50%;
  background: currentColor;
}
.tile figcaption::after {
  content: "";
  flex: none;
  width: 24px; height: 24px;
  margin-left: auto;
  background: url(../assets/icons/arrow-circle-right.svg) center / contain no-repeat;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s, transform .3s;
}
.tile:hover figcaption::after { opacity: 1; transform: none; }
.gallery__card { height: 319px; display: flex; flex-direction: column; justify-content: space-between; }
.gallery__card .text { margin: 0; }

@media (min-width: 1600px) {
  .gallery__title { max-width: 1040px; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .tile--lobby { height: 536px; }
  .tile figcaption { left: 30px; right: 30px; bottom: 30px; }
  .gallery__card { height: 264px; }
}

/* ==========================================================================
   Отзывы
   ========================================================================== */
.reviews__title { max-width: 730px; }
.reviews {
  margin-top: var(--title-gap);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 426px 393px;
  gap: var(--gap);
}
.review { display: flex; gap: 25px; padding: 0; }
.review__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--card-pad);
  min-width: 0;
}
.review--wide { grid-column: span 2; }
.review--wide .review__body { flex: 0 0 274px; }
.review--shifted { grid-column: 2; }
.review__img { flex: 1; margin: 9px 9px 9px 0; border-radius: 8px; }
.review__link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.review__link:hover { color: var(--green); }
.review .text { margin-top: 16px; }

@media (min-width: 1600px) {
  .reviews__title { max-width: 880px; }
  .reviews { grid-template-rows: 446px 424px; }
  .review--wide .review__body { flex-basis: 432px; }
  .review__img { margin: 11px 11px 11px 0; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  width: min(1160px, 100% - var(--gutter) * 2 + 40px);
  margin: var(--title-gap) auto 0;
  display: grid;
  gap: 6px;
}
.faq__item { border-radius: 8px; background: var(--faq); }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 77px;
  padding: 16px 90px 16px 30px;
  font-size: 32px;
  line-height: 26px;
  letter-spacing: -0.3px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: absolute;
  right: 26px; top: 50%;
  width: 28px; height: 28px;
  margin-top: -14px;
  transition: transform .35s ease;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%; height: 1.5px;
  margin-top: -.75px;
  background: var(--muted);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__answer { overflow: hidden; }
.faq__answer p { max-width: 500px; padding: 0 30px 25px; font-size: 16px; line-height: 19.2px; }

/* ==========================================================================
   Контакты
   ========================================================================== */
.section--contacts { padding-bottom: var(--frame-m); }
.contacts {
  margin-top: var(--title-gap);
  height: 828px;
  display: grid;
  place-items: center;
  padding: 20px;
  background: center / cover no-repeat;
}
.contacts__card {
  width: 368px;
  max-width: 100%;
  padding: 30px;
  border-radius: 8px;
  background: var(--white);
  text-align: center;
}
.contacts__card .btn { margin-top: 32px; }
@media (min-width: 1600px) {
  .contacts { height: 856px; }
  .contacts__card { width: 580px; padding: 40px; }
  .contacts__card .text { max-width: 427px; margin-inline: auto; }
}

/* ==========================================================================
   Футер
   ========================================================================== */
.footer {
  margin-bottom: var(--frame-m);
  border-radius: 10px;
  background: var(--dark);
  color: var(--white);
  padding: 160px 0 80px;
}
.footer__top {
  display: grid;
  grid-template-columns: 380px 206px 1fr auto;
  align-items: start;
}
.footer__logo { width: 200px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__col .footer__label { margin-bottom: 18px; }
.footer__col a { white-space: nowrap; }
.footer__label { color: var(--soft); }
.footer__bottom {
  display: grid;
  grid-template-columns: 400px 360px 1fr;
  margin-top: 120px;
}
.footer__copy { display: grid; gap: 20px; align-content: start; color: var(--muted); }
.footer__copy a { transition: color .2s; }
.footer__copy a:hover { color: var(--white); }
.footer__contact .footer__label { margin-bottom: 30px; }
.footer__big { font-size: 36px; line-height: 32px; letter-spacing: -0.7px; }
.footer__big a { transition: opacity .2s; }
.footer__big a:hover { opacity: .75; }

@media (min-width: 1600px) {
  .footer { padding-bottom: 80px; }
  .footer__top { grid-template-columns: 663fr 341fr 1fr auto; }
  .footer__col { gap: 18px; }
  .footer__bottom { grid-template-columns: 880fr 460fr 500fr; margin-top: 125px; }
  .footer__big { font-size: 42px; line-height: 38px; letter-spacing: -0.8px; }
}

/* ==========================================================================
   Мобильное меню
   ========================================================================== */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 90px 25px 40px;
  background: var(--dark);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; }
.menu__close, .modal__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
}
.menu__close::before, .menu__close::after, .modal__close::before, .modal__close::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px; top: 50%;
  height: 2px;
  background: var(--white);
  transform: rotate(45deg);
}
.menu__close::after, .modal__close::after { transform: rotate(-45deg); }
.menu__nav { display: grid; gap: 22px; font-family: var(--font-head); font-size: 44px; line-height: 1; font-weight: 500; }
.menu__phone { margin-top: auto; margin-bottom: 16px; font-size: 20px; font-weight: 600; }

/* ==========================================================================
   Поп-ап заявки
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 15, 13, .8);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  width: 460px;
  max-width: 100%;
  padding: 40px 45px;
  border-radius: 12px;
  background: var(--white);
  text-align: center;
  transform: translateY(20px) scale(.97);
  transition: transform .35s ease;
}
.modal.is-open .modal__box { transform: none; }
.modal__title { font-size: 48px; line-height: 42px; letter-spacing: -1px; }
.modal__descr { margin-top: 12px; color: var(--muted); }
.form { display: grid; }
.field {
  display: flex;
  align-items: center;
  height: 60px;
  margin-top: 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .2s;
}
.modal__descr + .field { margin-top: 24px; }
.field:focus-within { border-color: var(--green); }
.field.is-invalid { border-color: #d64545; }
.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 20px;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.field input::placeholder { color: var(--muted); }
.field__prefix { display: flex; align-items: center; gap: 10px; padding-left: 20px; }
.field--phone input { padding-left: 6px; }
.flag {
  width: 20px; height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  background: linear-gradient(#fff 33.3%, #1c57d6 33.3% 66.6%, #e0272f 66.6%);
}
.form__error { min-height: 0; color: #d64545; font-size: 14px; }
.form__error:not(:empty) { margin-top: 10px; }
.form__submit { height: 60px; margin-top: 25px; }
.form__note { margin-top: 25px; font-size: 14px; line-height: 16px; }
.form__success { padding: 20px 0; }

/* ==========================================================================
   Адаптив
   ========================================================================== */

/* ----- 960–1199 ----- */
@media (max-width: 1199px) {
  .nav { gap: 18px; }
  .about__row { height: 300px; }
  .about__card { padding: 20px; }
  .room { grid-template-columns: 400px 1fr; height: auto; min-height: 510px; }
  .footer__big { font-size: 28px; line-height: 26px; }
  .services__row--1 { grid-template-columns: repeat(3, 1fr); height: auto; }
  .services__row--1 > * { min-height: 345px; }
  .services__row--2 { grid-template-columns: repeat(3, 1fr); height: auto; }
  .services__row--2 > .card { min-height: 326px; }
  .services__thumb { display: none; }
  .cafe { grid-template-columns: 1.4fr 1fr 1fr; height: auto; }
  .cafe__col { display: none; }
  .cafe__p1, .cafe__p2 { height: 400px; }
  .gallery__col--offset { margin-top: 0; }
  .reviews { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .review--shifted { grid-column: auto; }
  .review--wide .review__body { flex-basis: 50%; }
  .footer__top { grid-template-columns: 1fr auto auto auto; gap: 60px; }
  .footer__bottom { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
}

/* ----- до 959: планшет/мобилка ----- */
@media (max-width: 959px) {
  .hero { min-height: max(700px, calc(100svh - var(--frame-m) * 2)); }
  .hero__inner { padding: 24px 0 24px; }
  .hero__top { grid-template-columns: 1fr auto 1fr; }
  .nav, .hero__phone { display: none; }
  .burger {
    display: grid;
    align-content: center;
    gap: 5px;
    width: 32px; height: 32px;
    justify-self: start;
  }
  .burger span { display: block; height: 2px; background: var(--white); border-radius: 1px; }
  .hero__logo { width: 170px; }
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 32px; text-align: center; }
  .hero__text { max-width: 560px; margin-inline: auto; }
  .hero .dot-label { justify-content: center; }
  .hero .h1 { margin: 40px auto 0; }
  .hero__lead { margin-inline: auto; }
  .hero__aside { width: 100%; }
  .hero-slider { display: none; }

  .dot-label--muted { justify-content: center; }
  .h2 { text-align: center; margin-inline: auto; }

  .about__row { grid-template-columns: 1fr 1fr; height: auto; }
  .about__p1, .about__p2 { aspect-ratio: 1 / .85; }
  .about__p3 { grid-column: 1 / -1; aspect-ratio: 1 / .65; }
  .about__card { grid-column: 1 / -1; gap: 16px; order: 1; }
  .about__spa { height: auto; padding: 0; flex-direction: column; background-image: none !important; background: none; }
  .about__spa::after {
    content: "";
    display: block;
    aspect-ratio: 1 / .75;
    margin-top: var(--gap);
    border-radius: 10px;
    background: url(../assets/img/about-sauna.webp) center / cover no-repeat;
  }
  .about__spa-card { width: 100%; border-radius: 10px; gap: 30px; }

  .room { grid-template-columns: 1fr; height: auto; padding: 5px; border-radius: 8px; }
  .room__info { padding: 15px; }
  .room .slider { aspect-ratio: 1 / .6; }
  .room__buy .btn { margin-top: 20px; }

  .services { grid-template-columns: 1fr 1fr; }
  .services__row { display: contents; }
  .services__row > * { min-height: 0 !important; }
  .services__row .photo { display: block; width: 100%; height: auto; aspect-ratio: 1 / .9; border-radius: 10px; }
  .feature { gap: 60px; }

  /* туры — горизонтальная лента со свайпом */
  .container--bleed-mobile { width: 100%; }
  .tours {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .tours::-webkit-scrollbar { display: none; }
  .tour { flex: 0 0 326px; max-width: 84vw; min-height: 493px; padding: 8px; scroll-snap-align: start; }
  .tour__img { height: 170px; }
  .tour__body { padding: 16px 9px 9px; }
  .tour__buy .btn { margin-top: 20px; }

  .gallery__col { display: contents; }
  .tile--tall, .tile--short { height: 280px; }
  .tile--lobby { grid-column: 1 / -1; height: 280px; }
  .gallery__card { grid-column: 1 / -1; height: auto; gap: 24px; }

  .promo { height: auto; min-height: 536px; }

  .cafe { grid-template-columns: 1fr 1fr; }
  .cafe__p1, .cafe__p2 { height: auto; aspect-ratio: 1 / 1.1; }
  .cafe__card { grid-column: 1 / -1; gap: 40px; }

  .gallery { grid-template-columns: 1fr 1fr; }

  .reviews { grid-template-columns: 1fr; }
  .review--wide { grid-column: auto; }

  .contacts { height: auto; min-height: 610px; }

  .footer { padding: 70px 0 60px; }
  .footer__top { grid-template-columns: 1fr; gap: 50px; }
  .footer__logo { width: 170px; }
  .footer__col { flex-direction: row; flex-wrap: wrap; gap: 14px 22px; }
  .footer__col .footer__label { flex-basis: 100%; margin-bottom: 4px; }
  .footer__col--docs { flex-direction: column; gap: 14px; }
  .footer__col--docs .footer__label { margin-bottom: 4px; }
  .footer__bottom { grid-template-columns: 1fr; gap: 50px; margin-top: 50px; }
  .footer__copy { order: 3; }
  .footer__contact .footer__label { margin-bottom: 16px; }
}

/* ----- до 639: телефон ----- */
@media (max-width: 639px) {
  .hero { min-height: 838px; }
  .hero__inner { padding: 20px 0 15px; width: calc(100% - 30px); }
  .hero__logo { width: 150px; }
  .hero .h1 { margin-top: 50px; }
  .hero__lead { margin-top: 32px; max-width: 250px; font-size: 15px; line-height: 18px; }
  .hero__bottom { gap: 50px; }

  .about__row { gap: 10px; }
  .about__card .text { margin-top: 12px; }

  .rooms { gap: 20px; }
  .amenities { margin-top: 24px; }
  .amenities img { width: 16px; height: 16px; }

  .services { grid-template-columns: 1fr; }
  .services__row .photo { aspect-ratio: 1 / .7; }

  .promo__title { font-size: 42px; line-height: 34px; letter-spacing: -1px; max-width: 320px; }
  .promo__text { font-size: 14px; line-height: 17px; }
  .promo .btn { width: 260px; }

  .cafe { grid-template-columns: 1fr; }
  .cafe__p1, .cafe__p2 { aspect-ratio: 1 / .75; }
  .cafe__col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .cafe__p3 { aspect-ratio: 1; }

  .tile--tall, .tile--short, .tile--lobby { height: 180px; }
  .tile figcaption { left: 12px; right: 12px; bottom: 12px; gap: 8px; font-size: 13px; line-height: 16px; }
  .tile figcaption::before { width: 6px; height: 6px; }
  .tile figcaption::after { opacity: 1; transform: none; width: 18px; height: 18px; }

  .review { flex-direction: column; gap: 0; }
  .review--wide .review__body { flex-basis: auto; }
  .review__body { gap: 60px; }
  .review__img { flex: none; aspect-ratio: 1 / .6; margin: 0 var(--card-pad) var(--card-pad); }

  .faq { width: calc(100% - 40px); }
  .faq summary { min-height: 62px; padding: 14px 64px 14px 18px; font-size: 22px; line-height: 20px; }
  .faq__icon { right: 16px; width: 22px; height: 22px; margin-top: -11px; }
  .faq__answer p { padding: 0 18px 20px; font-size: 14px; line-height: 17px; }

  .contacts__card { padding: 20px; }
  .contacts__card .btn { margin-top: 24px; }

  .footer__big { font-size: 28px; line-height: 25px; }

  .modal__box { padding: 32px 22px; }
  .modal__title { font-size: 38px; line-height: 34px; }
}

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