/* ============================================================
   Карэм — турбаза на Алтае
   Дизайн-система: тёплые песочно-охристые тона, лаконичность
   ============================================================ */
:root {
  --sand:        #F6EEE0;   /* фон страницы */
  --sand-deep:   #EEE1CC;   /* чередующиеся секции */
  --cream:       #FDFAF3;   /* карточки */
  --ink:         #2A211A;   /* основной текст */
  --ink-soft:    #6E5C4B;   /* вторичный текст */
  --amber:       #C6892C;   /* акцент */
  --amber-deep:  #A46C1C;   /* акцент hover */
  --amber-tint:  #F2E3C7;   /* подложка иконок */
  --green:       #5E6B4C;   /* природный акцент */
  --line:        rgba(42, 33, 26, .12);
  --shadow-sm:   0 4px 18px rgba(42, 33, 26, .07);
  --shadow-md:   0 14px 40px rgba(42, 33, 26, .13);
  --radius:      18px;
  --radius-sm:   12px;
  --font-head:   "Cormorant Garamond", Georgia, serif;
  --font-body:   "Manrope", "Segoe UI", system-ui, sans-serif;
  --maxw:        1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id], footer[id] { scroll-margin-top: 82px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Типографика ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 .4em;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: .005em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 14px;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.section-head p  { color: var(--ink-soft); font-size: 1.06rem; margin: .3em 0 0; }

.section { padding: 92px 0; }
.section--sand { background: var(--sand-deep); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .96rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--amber); color: #fff; box-shadow: 0 10px 26px rgba(198,137,44,.32); }
.btn--primary:hover { background: var(--amber-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(198,137,44,.4); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--sand); }

/* ============================================================
   Шапка
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 14px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.logo__img { height: 58px; width: auto; display: block; transition: height .3s ease; }
.logo__img--color { display: none; }
.site-header.scrolled .logo__img--white { display: none; }
.site-header.scrolled .logo__img--color { display: block; }

.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--amber); transition: width .22s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.header-phone { color: #fff; font-weight: 700; text-decoration: none; font-size: .96rem; white-space: nowrap; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.header-phone:hover { color: var(--amber); }

/* состояние после скролла */
.site-header.scrolled {
  background: rgba(253,250,243,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(42,33,26,.09);
  padding: 9px 0;
}
.site-header.scrolled .logo__img { height: 46px; }
.site-header.scrolled .main-nav a { color: var(--ink-soft); text-shadow: none; }
.site-header.scrolled .main-nav a:hover { color: var(--ink); }
.site-header.scrolled .header-phone { color: var(--ink); text-shadow: none; }
.site-header.scrolled .header-phone:hover { color: var(--amber-deep); }
.site-header.scrolled .nav-burger span { background: var(--ink); }

/* бургер */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  cursor: pointer;
  background: none; border: none; padding: 0;
}
.nav-burger span { display: block; width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,14,9,.5) 0%, rgba(20,14,9,.2) 40%, rgba(20,14,9,.66) 100%);
}
.hero__overlay::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 130px;
  background: linear-gradient(180deg, transparent, var(--sand));
}
.hero__content { position: relative; z-index: 2; padding: 120px 20px 90px; max-width: 860px; }
.hero .eyebrow { color: #F0D8A6; }
.hero h1 {
  color: #fff;
  font-size: clamp(3.6rem, 11vw, 7rem);
  font-weight: 600;
  letter-spacing: .02em;
  margin: 0 0 .12em;
  text-shadow: 0 4px 40px rgba(0,0,0,.4);
}
.hero__tagline { font-family: var(--font-head); font-size: clamp(1.4rem, 3.2vw, 2.1rem); font-weight: 500; margin: 0 0 .4em; }
.hero__desc { max-width: 560px; margin: 0 auto 34px; font-size: 1.08rem; color: rgba(255,255,255,.9); }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__ratings { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.rating-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  color: #fff; font-size: .9rem; text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.rating-pill:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.rating-pill__star { color: #F5C24B; font-size: 1.05rem; line-height: 1; }
.rating-pill b { font-weight: 800; font-size: 1.02rem; }
.rating-pill span { color: rgba(255,255,255,.82); font-weight: 500; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.75);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none;
}
.hero__scroll span { width: 1px; height: 34px; background: rgba(255,255,255,.6); animation: scrollPulse 1.8s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   О базе + фичи
   ============================================================ */
.about__intro { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.about__intro .lead {
  color: var(--ink);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: .55em;
}
.about__intro p { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.7; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 58px; height: 58px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--amber-tint); color: var(--amber-deep);
}
.feature__icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 1.5rem; margin-bottom: .3em; }
.feature p { margin: 0; font-size: .96rem; color: var(--ink-soft); line-height: 1.55; }

/* ============================================================
   Размещение (карточки с каруселью)
   ============================================================ */
.room {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  margin-bottom: 42px;
}
.room:last-child { margin-bottom: 0; }
.room--reverse .carousel { order: 2; }

.room__info { padding: 42px 44px; display: flex; flex-direction: column; justify-content: center; }
.room__badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--amber-tint); color: var(--amber-deep);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 16px;
}
.room__info h3 { font-size: 2.1rem; margin-bottom: .1em; }
.room__price { font-size: 1.05rem; color: var(--ink-soft); margin: 0 0 22px; }
.room__price b { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--amber-deep); }
.room__desc { font-size: 1rem; color: var(--ink-soft); line-height: 1.65; margin: 0 0 22px; }
.room__features { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.room__features li { position: relative; padding-left: 30px; font-size: .98rem; color: var(--ink); }
.room__features li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  background: var(--amber); border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--cream), 0 0 0 1px var(--amber);
}
.room__cta { align-self: flex-start; }

/* ---------- Карусель ---------- */
.carousel { position: relative; overflow: hidden; background: #1c1712; min-height: 100%; }
.carousel__track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.carousel__slide { min-width: 100%; height: 100%; }
.carousel__slide img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; cursor: zoom-in; }

.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(253,250,243,.9); color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: background .18s ease, transform .18s ease;
  z-index: 3;
}
.carousel__btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }

.carousel__count {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  background: rgba(20,14,9,.6); color: #fff; font-size: .8rem; font-weight: 600;
  padding: 5px 12px; border-radius: 50px; backdrop-filter: blur(4px);
}
.carousel__dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: background .2s ease, transform .2s ease; }
.carousel__dot.is-active { background: #fff; transform: scale(1.35); }

/* ============================================================
   Инфраструктура
   ============================================================ */
.amenities__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.amenity {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 18px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.amenity:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.amenity__icon {
  width: 52px; height: 52px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--amber-tint); color: var(--amber-deep);
}
.amenity__icon svg { width: 27px; height: 27px; }
.amenity span:last-child { display: block; font-weight: 600; font-size: .92rem; line-height: 1.4; }

/* ============================================================
   Галерея
   ============================================================ */
.carousel--gallery {
  max-width: 1000px; margin: 0 auto;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.carousel--gallery .carousel__slide img { height: 600px; min-height: 0; }
.carousel--gallery .carousel__dots { display: none; }

/* ============================================================
   Как добраться
   ============================================================ */
.location__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
.location__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); line-height: 0; min-height: 380px; }
.location__map iframe { border: 0; width: 100%; height: 100%; min-height: 380px; }
.location__info { display: flex; flex-direction: column; justify-content: center; }
.location__info h3 { font-size: 1.9rem; }
.location__row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.location__row svg { flex: 0 0 auto; width: 24px; height: 24px; color: var(--amber-deep); margin-top: 3px; }
.location__row b { display: block; }
.location__row span { color: var(--ink-soft); font-size: .96rem; }
.location__buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ============================================================
   Мы всегда на связи (клиентоориентированность)
   ============================================================ */
.care { padding: 40px 0 90px; }
.care__inner {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, var(--amber-tint), var(--cream));
  border: 1px solid rgba(196,137,44,.28);
  border-radius: var(--radius); padding: 48px 52px; box-shadow: var(--shadow-sm);
}
.care__eyebrow { display: inline-block; color: var(--amber-deep); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: .7em; }
.care__text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 .4em; }
.care__text p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; max-width: 60ch; }
.care__action { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.care__phone { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.3rem); color: var(--ink); text-decoration: none; font-weight: 600; }
.care__phone:hover { color: var(--amber-deep); }

/* ============================================================
   Подвал
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(246,238,224,.82); padding: 68px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-rules-link { cursor: pointer; }
.footer-brand__name { font-family: var(--font-head); font-size: 1.9rem; color: #fff; margin-bottom: .3em; }
.footer-brand p { margin: 0; font-size: .96rem; line-height: 1.6; }
.footer-col h4 { color: var(--amber); font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 1em; font-family: var(--font-body); font-weight: 700; }
.footer-col a { color: rgba(246,238,224,.82); text-decoration: none; display: block; margin-bottom: 12px; font-weight: 500; transition: color .18s ease; }
.footer-col a:hover { color: var(--amber); }
.footer-phone { font-family: var(--font-head); font-size: 1.6rem; color: #fff !important; }
.footer-note { font-size: .78rem; color: rgba(246,238,224,.5); font-weight: 400; }
.footer-copy { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(246,238,224,.15); text-align: center; font-size: .85rem; color: rgba(246,238,224,.55); }
.footer-copy p { margin: 0; }

/* ============================================================
   Модалка «Правила проживания»
   ============================================================ */
.rules-modal {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(16,11,7,.6); backdrop-filter: blur(3px);
  display: none; align-items: flex-start; justify-content: center;
  opacity: 0; transition: opacity .25s ease; padding: 40px 20px; overflow-y: auto;
}
.rules-modal.is-open { display: flex; opacity: 1; }
.rules-modal__dialog {
  background: var(--cream); border-radius: var(--radius);
  max-width: 760px; width: 100%; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.35); margin: auto;
  animation: rulesIn .32s ease;
}
@keyframes rulesIn { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.rules-modal__close {
  position: absolute; top: 16px; right: 18px; z-index: 2;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: rgba(42,33,26,.06); color: var(--ink); font-size: 1.7rem; line-height: 1;
  cursor: pointer; transition: background .18s ease;
}
.rules-modal__close:hover { background: rgba(42,33,26,.14); }
.rules-modal__head { padding: 44px 52px 26px; border-bottom: 1px solid rgba(196,137,44,.2); }
.rules-modal__eyebrow { display: inline-block; color: var(--amber-deep); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin-bottom: .6em; }
.rules-modal__head h2 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); margin: 0 0 .35em; }
.rules-modal__head p { margin: 0; color: var(--ink-soft); line-height: 1.7; max-width: 58ch; }
.rules-modal__body { padding: 30px 52px 8px; }
.rule { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(42,33,26,.07); }
.rule:last-child { border-bottom: none; }
.rule__num { flex: 0 0 auto; font-family: var(--font-head); font-size: 1.5rem; color: var(--amber); font-weight: 600; min-width: 34px; }
.rule h3 { margin: 2px 0 .3em; font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.rule p { margin: 0; color: var(--ink-soft); line-height: 1.65; font-size: .98rem; }
.rules-modal__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 26px 52px 40px; margin-top: 12px;
  background: var(--amber-tint); border-radius: 0 0 var(--radius) var(--radius);
}
.rules-modal__foot p { margin: 0; color: var(--ink); font-weight: 600; max-width: 40ch; }

/* ============================================================
   Cookie-баннер
   ============================================================ */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 190;
  padding: 16px 20px;
  transform: translateY(120%); opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}
.cookie.is-visible { transform: translateY(0); opacity: 1; }
.cookie__inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  justify-content: space-between;
  background: var(--ink); color: rgba(246,238,224,.9);
  border: 1px solid rgba(196,137,44,.35);
  border-radius: 16px; padding: 20px 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.cookie__text { margin: 0; font-size: .95rem; line-height: 1.6; max-width: 70ch; flex: 1 1 340px; }
.cookie__text a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 12px; flex: 0 0 auto; }
.cookie__btn { padding: 11px 22px; font-size: .92rem; }
.cookie .btn--outline { border-color: rgba(246,238,224,.4); color: rgba(246,238,224,.9); }
.cookie .btn--outline:hover { border-color: var(--amber); color: var(--amber); background: transparent; }

/* ============================================================
   Лайтбокс
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16,11,7,.94);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__btn {
  position: absolute; background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 56px; height: 56px; border-radius: 50%; font-size: 1.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .18s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,.26); }
.lightbox__prev { left: 4%; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 4%; top: 50%; transform: translateY(-50%); }
.lightbox__close { top: 22px; right: 22px; width: 48px; height: 48px; font-size: 1.5rem; }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: .9rem; letter-spacing: .05em; }

/* ============================================================
   Появление при скролле
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ============================================================
   Адаптив
   ============================================================ */
/* CTA внутри мобильного меню — скрыт на десктопе */
.main-nav__cta { display: none; }

@media (max-width: 1080px) {
  .main-nav { gap: 22px; }
  .main-nav a { font-size: .9rem; }
  .header-inner { gap: 16px; }
}

@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .amenities__grid { grid-template-columns: repeat(3, 1fr); }
  .carousel--gallery .carousel__slide img { height: 460px; }
}

@media (max-width: 900px) {
  .nav-burger { display: flex; z-index: 70; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(330px, 84vw);
    background: var(--ink); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 6px; padding: 40px 34px;
    transform: translateX(100%); transition: transform .32s ease; z-index: 65;
    margin-left: 0;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .main-nav { transform: translateX(0); box-shadow: -20px 0 60px rgba(0,0,0,.35); }
  .main-nav a { color: #fff; font-size: 1.2rem; padding: 12px 0; width: 100%; text-shadow: none; }
  .main-nav a::after { display: none; }
  .main-nav__cta {
    display: inline-flex; margin-top: 22px; width: 100%; justify-content: center;
  }
  .header-phone { display: none; }
  .header-cta .btn--primary { display: none; }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .care__inner { grid-template-columns: 1fr; gap: 26px; padding: 40px 34px; }
  .care__action { align-items: stretch; }
  .care__action .btn { justify-content: center; }
}

@media (max-width: 860px) {
  .section { padding: 66px 0; }
  .room { grid-template-columns: 1fr; }
  .room--reverse .carousel { order: 0; }
  .room__info { padding: 34px 28px; }
  .carousel__slide img { min-height: 300px; }
  .location__layout { grid-template-columns: 1fr; }
  .rules-modal__head { padding: 40px 30px 24px; }
  .rules-modal__body { padding: 24px 30px 4px; }
  .rules-modal__foot { padding: 24px 30px 32px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .logo__img { height: 48px; }
  .site-header.scrolled .logo__img { height: 42px; }
  .features { grid-template-columns: 1fr; }
  .amenities__grid { grid-template-columns: repeat(2, 1fr); }
  .carousel--gallery .carousel__slide img { height: 300px; }
  .hero__content { padding: 110px 18px 80px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__ratings { gap: 10px; }
  .rating-pill { font-size: .82rem; padding: 8px 13px; }
  .room__info h3 { font-size: 1.7rem; }
  .carousel__btn { width: 40px; height: 40px; font-size: 1.3rem; }
  .location__buttons { flex-direction: column; }
  .location__buttons .btn { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .rules-modal { padding: 0; }
  .rules-modal__dialog { border-radius: 0; min-height: 100%; }
  .rule { gap: 14px; }
  .rules-modal__foot { flex-direction: column; align-items: stretch; }
  .rules-modal__foot .btn { justify-content: center; }
  .cookie { padding: 12px; }
  .cookie__inner { padding: 18px 20px; gap: 16px; }
  .cookie__actions { width: 100%; }
  .cookie__btn { flex: 1; justify-content: center; }
}

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