/* =========================================================
   Гостевой дом «На Санаторной» — прототип нового дизайна
   Дизайн-система: тёплый песочный фон + изумрудный акцент
   ========================================================= */

:root {
  --ink: #082a41;
  --ink-2: #123a54;
  --muted: #587386;
  --line: #d9e8f3;
  --brand: #0874bf;
  --brand-dark: #05559a;
  --brand-50: #e8f5fe;
  --brand-100: #d2ecfc;
  --cyan: #12b5d3;
  --sand: #f0f7fc;
  --sand-2: #e3f1fa;
  --gold: #d9a441;
  --white: #fff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -30px rgba(8, 42, 65, .45);
  --shadow-soft: 0 10px 30px -18px rgba(8, 42, 65, .35);
  --maxw: 1200px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; margin: 0; color: var(--ink); }

p { margin: 0; }

.container { width: min(var(--maxw), 92vw); margin: 0 auto; }

.section { padding: clamp(64px, 8vw, 120px) 0; }

.section--sand { background: var(--sand); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 22px;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brand);
}

.h2 { font-size: clamp(30px, 3.6vw, 46px); }

.lead { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 56ch; }

.muted { color: var(--muted); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 12px 28px -14px rgba(8, 116, 191, .9); }
.btn--primary:hover { background: var(--brand-dark); }

.btn--ghost { background: transparent; border-color: rgba(8, 42, 65, .18); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-50); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand-50); }

.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }

/* ---------- header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -24px rgba(8, 42, 65, .5);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 84px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  flex: none;
}

.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__title { font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.logo__sub { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 14px; }

.header__phone { font-weight: 600; font-size: 15px; color: var(--ink); }

/* шапка поверх фото на главной */
.header.is-over:not(.is-scrolled) .logo__title { color: #fff; }
.header.is-over:not(.is-scrolled) .logo__sub { color: rgba(255, 255, 255, .72); }
.header.is-over:not(.is-scrolled) .nav a { color: rgba(255, 255, 255, .94); }
.header.is-over:not(.is-scrolled) .nav a::after { background: #6fd0ee; }
.header.is-over:not(.is-scrolled) .header__phone { color: #fff; }
.header.is-over:not(.is-scrolled) .burger {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .4);
}
.header.is-over:not(.is-scrolled) .burger span,
.header.is-over:not(.is-scrolled) .burger span::before,
.header.is-over:not(.is-scrolled) .burger span::after { background: #fff; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .25s ease, opacity .2s ease;
}
.burger span { top: 50%; margin-top: -1px; }
.burger span::before, .burger span::after { content: ""; left: 0; transform: none; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(120px, 15vh, 168px) 0 clamp(18px, 2.5vw, 30px);
  background:
    radial-gradient(1100px 600px at 84% -12%, rgba(18, 181, 211, .12), rgba(18, 181, 211, 0) 62%),
    linear-gradient(180deg, #f1f9fe 0%, #f7fbfe 58%, #fff 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -160px; top: -140px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 181, 211, .12), rgba(18, 181, 211, 0) 65%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(30px, 4.5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__card { max-width: 620px; }

.hero .kicker { color: var(--brand-dark); }
.hero .kicker::before { background: var(--cyan); }

.hero h1 {
  font-size: clamp(44px, 6vw, 82px);
  line-height: .98;
  margin-bottom: 24px;
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}

.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 46ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__chips {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(8, 42, 65, .12);
  font-size: 13.5px;
  color: var(--ink-2);
}

.hero__chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero__chips li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.hero__media { position: relative; }

.hero__photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.3;
}

.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }

.hero__badge {
  position: absolute;
  left: -22px;
  bottom: 26px;
  background: #fff;
  color: var(--ink-2);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 290px;
}

.hero__badge b { display: block; font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--ink); }
.hero__badge span { font-size: 12.5px; line-height: 1.35; color: var(--muted); display: block; margin-top: 4px; }

.hero__badge-icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: var(--brand-50);
  display: grid;
  place-items: center;
  color: var(--brand);
}

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 760px; }
  .hero__badge { left: auto; right: 18px; bottom: -18px; }
}

@media (max-width: 700px) {
  .hero { padding: 112px 0 40px; }
  .hero__badge { position: static; margin-top: 18px; max-width: 320px; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- about ---------- */

#about.section { padding-top: clamp(44px, 5vw, 76px); }

.about__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.about__text p + p { margin-top: 18px; }

.about__list { margin-top: 28px; display: grid; gap: 12px; }
.about__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.about__list svg { flex: none; margin-top: 3px; color: var(--brand); }



.about__media { position: relative; }
.about__media > img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* ---------- amenities ---------- */

.amenities__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.section--sand .card { border-color: #ece3d5; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: transparent; }

.card__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--brand-50);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card__icon img { width: 30px; height: 30px; object-fit: contain; }

.card h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---------- gallery ---------- */

.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }

.filter {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(8, 42, 65, .14);
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .2s ease;
}
.filter:hover { border-color: var(--brand); color: var(--brand-dark); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.carousel { position: relative; }


.carousel__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; border-radius: 8px; }

.carousel__track .shot {
  flex: 0 0 clamp(150px, 20vw, 232px);
  scroll-snap-align: start;
}

.carousel__arrow {
  position: absolute;
  top: calc(50% - 22px);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background .2s ease, color .2s ease, opacity .2s ease, border-color .2s ease;
}
.carousel__arrow:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.carousel__arrow--prev { left: -22px; }
.carousel__arrow--next { right: -22px; }
.carousel__arrow[disabled] { opacity: .35; }
.carousel__arrow[hidden] { display: none; }

@media (max-width: 700px) {
  .carousel__track .shot { flex-basis: 68vw; }
  .carousel__arrow { width: 38px; height: 38px; top: calc(50% - 30px); }
  .carousel__arrow--prev { left: -14px; }
  .carousel__arrow--next { right: -14px; }
}

.carousel__counter {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.carousel__counter b { color: var(--ink-2); font-weight: 600; }

.shot {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: #dfe7e3;
  transform: translateZ(0);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.shot:hover img { transform: scale(1.045); }
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 42, 65, 0) 55%, rgba(8, 42, 65, .55) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.shot:hover::after { opacity: 1; }
.shot figcaption {
  position: absolute;
  left: 14px; bottom: 12px;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: all .3s ease;
}
.shot:hover figcaption { opacity: 1; transform: none; }


/* ---------- booking ---------- */

.booking { background: var(--ink); color: #eef3f0; }
.booking .kicker { color: #7cc7ea; }
.booking .kicker::before { background: #7cc7ea; }
.booking h2 { color: #fff; }
.booking .lead { color: #a9c2d4; }

.booking__head { max-width: 780px; }

.booking-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.booking-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 18px 20px;
}

.step__num {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: #fff;
}
.booking-step b { display: block; color: #fff; font-weight: 600; font-size: 15.5px; margin-bottom: 4px; }
.booking-step span { font-size: 14px; color: #a9c2d4; line-height: 1.5; }

.booking-widget {
  margin-top: 26px;
  background: #fff;
  color: var(--ink-2);
  border-radius: var(--radius);
  padding: clamp(12px, 2vw, 24px);
  box-shadow: var(--shadow);
}

.booking__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.booking__pay { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.booking__pay img { height: 22px; width: auto; background: #fff; border-radius: 6px; padding: 3px 6px; }

.booking__links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14.5px; }
.booking__links a { color: #7cc7ea; border-bottom: 1px solid rgba(143, 210, 240, .35); padding: 11px 0; }
.booking__links a:hover { border-color: #7cc7ea; }

.booking-card__note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  background: var(--sand);
  border-radius: 10px;
  padding: 10px 14px;
}

@media (max-width: 900px) {
  .booking-steps { grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
  .booking-widget { padding: 12px; }
  .booking__foot { margin-top: 20px; }
}

/* ---------- location ---------- */

.location__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}

.map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  background:
    linear-gradient(rgba(8, 116, 191, .07), rgba(8, 116, 191, .07)),
    repeating-linear-gradient(0deg, #e6f0f7 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, #e6f0f7 0 1px, transparent 1px 56px),
    #faf8f3;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
}
.map::before {
  content: "";
  position: absolute;
  width: 46%; height: 34%;
  right: -6%; bottom: -8%;
  background: linear-gradient(135deg, rgba(8, 116, 191, .14), rgba(8, 116, 191, .04));
  border-radius: 40% 30% 0 0;
  transform: rotate(-8deg);
}
.map__pin {
  width: 56px; height: 56px;
  border-radius: 50% 50% 50% 4px;
  background: var(--brand);
  transform: rotate(-45deg);
  box-shadow: 0 16px 30px -12px rgba(8, 116, 191, .7);
  margin-bottom: 18px;
  display: grid; place-items: center;
}
.map__pin span { transform: rotate(45deg); width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.map__text { position: relative; z-index: 1; }
.map__text b { display: block; font-size: 17px; color: var(--ink); }
.map__text p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

.routes { display: grid; gap: 14px; }
.route {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  background: #fff;
}
.route h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.route h3 svg { color: var(--brand); }
.route p { font-size: 14.5px; color: var(--muted); }

.contact-card {
  border-radius: 16px;
  background: var(--brand-50);
  padding: 22px;
  display: grid;
  gap: 10px;
}
.contact-card a { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.contact-card a:hover { color: var(--brand-dark); }
.contact-card svg { color: var(--brand-dark); flex: none; }

/* ---------- rules ---------- */

.rules__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  transition: all .25s ease;
}
.rule:hover { border-color: var(--brand); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.rule b { display: block; font-size: 16.5px; font-weight: 600; margin-bottom: 4px; }
.rule span { font-size: 14px; color: var(--muted); }
.rule__arrow {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--brand-dark);
  transition: all .25s ease;
}
.rule:hover .rule__arrow { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- footer ---------- */

.footer { background: #072438; color: #9fb9cc; padding: clamp(52px, 6vw, 80px) 0 30px; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr .9fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer .logo__title { color: #fff; }
.footer .logo__sub { color: #7d97ab; }
.footer p { font-size: 14.5px; line-height: 1.7; }
.footer h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #7d97ab; margin: 0 0 16px; font-weight: 600; }
.footer ul { display: grid; gap: 2px; }
.footer ul a { font-size: 14.5px; display: inline-block; padding: 11px 0; }
.footer ul a:hover { color: #fff; }

.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  display: grid; place-items: center;
  transition: all .2s ease;
}
.footer__social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-top: 24px;
  font-size: 13px;
  color: #7d97ab;
}
.footer__bottom a { display: inline-flex; align-items: center; gap: 8px; }
.footer__bottom a:hover { color: #fff; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 14, 12, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255, 255, 255, .16); }
.lightbox__close { top: 26px; right: 26px; }
.lightbox__prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 26px; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; color: #cfe3f0; font-size: 14px; }

/* ---------- mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--sand);
  display: none;
  flex-direction: column;
  padding: 14px 6vw 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open { display: flex; animation: menuIn .22s ease both; }

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 16px;
}
.mobile-menu__close {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.mobile-menu__close:hover { border-color: var(--brand); color: var(--brand); }

.mobile-menu__nav { display: flex; flex-direction: column; margin-top: 4px; }
.mobile-menu__nav a {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
  padding: 14px 0;
  border-bottom: 1px solid rgba(8, 42, 65, .1);
  color: var(--ink);
}
.mobile-menu__nav a:last-child { border-bottom: 0; }

.mobile-menu__actions {
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  gap: 10px;
}
.mobile-menu__actions .btn { width: 100%; }

/* ---------- sticky mobile cta ---------- */

.mobile-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 70;
  display: none;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -20px rgba(8, 42, 65, .5);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(130%);
  pointer-events: none;
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
body.is-scrolled .mobile-cta { opacity: 1; transform: none; pointer-events: auto; }
body.page .mobile-cta { opacity: 1; transform: none; pointer-events: auto; }
.mobile-cta .btn { flex: 1; height: 48px; }
.mobile-cta .btn--ghost { flex: none; width: 56px; padding: 0; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .nav { display: none; }
  .header__actions .btn { display: none; }
  .burger { display: block; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 84px; }
  .about__grid, .location__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 720px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; padding-bottom: 84px; }
  .header__inner { height: 72px; gap: 12px; }
  .header__phone { display: none; }
  .logo__sub { display: none; }
  .logo__title { font-size: 17px; white-space: nowrap; }
  .logo__mark { width: 38px; height: 38px; border-radius: 10px; font-size: 18px; }
  .hero { padding-top: 116px; }
  .hero__actions .btn { width: 100%; }
  .hero__badge { position: static; margin-top: 16px; max-width: none; }
  .hero__chips { gap: 10px 14px; font-size: 13px; }
  .cards { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .rules__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .lightbox { padding: 16px; }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
  .lightbox__close { top: 14px; right: 14px; }
  .mobile-cta { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .shot img, .card, .rule, .btn { transition: none; }
}

/* =========================================================
   Внутренние страницы, карта-iframe, форма TravelLine
   ========================================================= */

body.page { padding-top: 84px; }

.header.is-solid {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.page-hero {
  padding: clamp(44px, 6vw, 80px) 0 clamp(28px, 4vw, 44px);
  background: linear-gradient(180deg, var(--sand) 0%, #f4fafd 70%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { font-size: clamp(32px, 4.6vw, 54px); }
.page-hero .lead { margin-top: 18px; }

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumbs a:hover { color: var(--brand-dark); }
.breadcrumbs span { opacity: .6; }

.section--tight { padding-top: clamp(40px, 5vw, 64px); }

.prose { max-width: 780px; font-size: 17px; }
.prose p { margin: 0; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: clamp(34px, 4vw, 50px); }
.prose h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; margin-top: 28px; }
.prose ul, .prose ol { padding-left: 1.45em; margin: 0; }
.prose li::marker { color: var(--brand); }
.prose ol > li::marker { font-weight: 600; }
.prose a { color: var(--brand-dark); border-bottom: 1px solid rgba(8, 116, 191, .35); }
.prose a:hover { border-color: var(--brand-dark); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose em { font-style: italic; }
.prose .note {
  background: var(--brand-50);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.prose-outro { font-size: 18px; color: var(--ink); margin-top: 36px; }

.requisites {
  display: grid;
  grid-template-columns: minmax(170px, 220px) 1fr;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 26px;
}
.requisites dt {
  background: var(--sand);
  padding: 13px 18px;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.requisites dd {
  margin: 0;
  padding: 13px 18px;
  font-size: 15.5px;
  border-bottom: 1px solid var(--line);
}
.requisites dt:last-of-type, .requisites dd:last-of-type { border-bottom: 0; }

/* карта */
.map--embed {
  padding: 0;
  display: block;
  background: #eaeef0;
  height: clamp(320px, 30vw, 460px);
}
.map--embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* встраиваемая форма TravelLine */
.tl-embed { min-height: 480px; }
.tl-embed iframe { display: block; width: 100%; border: 0; }

/* галерея: скрытые элементы и фильтры */

@media (max-width: 700px) {
  body.page { padding-top: 72px; }
  .requisites { grid-template-columns: 1fr; }
  .requisites dt { border-bottom: 0; padding-bottom: 0; background: transparent; }
  .requisites dd { padding-top: 2px; }
  .map--embed { height: 300px; }
}

/* ---------- служебное ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: #fff;
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  box-shadow: var(--shadow-soft);
  font-size: 15px;
}
.skip:focus { left: 0; }

/* ---------- списки в документах (обычные маркеры, без grid) ---------- */

.prose p { margin: 0; }
.prose ul, .prose ol { margin: 18px 0 0; padding-left: 1.45em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { padding-left: 0.15em; }
.prose li + li { margin-top: 10px; }
.prose li > ul, .prose li > ol { margin-top: 8px; }
.prose li > ul > li + li, .prose li > ol > li + li { margin-top: 6px; }

/* ---------- мобильные правки ---------- */

.about__media > img { height: auto; }

@media (max-width: 900px) {
  .amenities__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
  }
  .amenities__head .lead { max-width: 46ch; }
}

@media (max-width: 700px) {
  .gallery__head { align-items: flex-start; }
  .filters { width: 100%; }
  .booking-card { padding: 20px; }
}

/* иконки карточек наследуют цвет темы */
.card__icon svg { color: var(--brand); }
.card__icon img { width: 30px; height: 30px; object-fit: contain; }