/* ============================================================
   «Кедровая Долина» — база отдыха в Горном Алтае
   Палитра: хвоя, кедр и закат над Катунью
   ============================================================ */

:root {
  --green-950: #0c1c13;
  --green-900: #10231a;
  --green: #1d3527;
  --green-soft: #2c4a38;
  --cream: #faf6ee;
  --cream-2: #f0e9d8;
  --cream-3: #e7dfc9;
  --gold: #c9973f;
  --gold-strong: #ab7c2b;
  --gold-soft: #e8c98a;
  --ink: #24312a;
  --muted: #6d7a6e;
  --line: #ddd5c2;
  --danger: #b3492f;
  --radius: 22px;
  --radius-sm: 13px;
  --shadow: 0 24px 60px -28px rgba(16, 35, 26, 0.35);
  --shadow-sm: 0 10px 30px -14px rgba(16, 35, 26, 0.25);
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", "Arial", sans-serif;
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #fff; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

section[id], footer[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

.icon { width: 22px; height: 22px; flex: none; }

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

/* ============ Кнопки ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.6px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--gold {
  background: linear-gradient(135deg, #d9a84e, #b7832e);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(183, 131, 46, 0.65);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(183, 131, 46, 0.75); }

.btn--primary { background: var(--green); color: var(--cream); }
.btn--primary:hover { background: var(--green-soft); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn--ghost { border-color: rgba(250, 246, 238, 0.55); color: var(--cream); }
.btn--ghost:hover { background: rgba(250, 246, 238, 0.14); }

.btn--ghost--dark, .btn--ghost.btn--ghost-dark { border-color: rgba(29, 53, 39, 0.35); color: var(--green); }
.btn--ghost.btn--ghost-dark:hover { background: rgba(29, 53, 39, 0.08); }

.btn--lg { padding: 18px 38px; font-size: 16.5px; }
.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--wide { width: 100%; }

/* ============ Навигация ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--cream);
  transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
  padding: 14px 0;
}
.nav__inner { display: flex; align-items: center; gap: 28px; }

.nav__logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.nav__logo svg { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25)); }
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.05;
  display: grid;
}
.nav__logo-text em { font-style: italic; color: var(--gold-soft); }
.nav__logo-text small {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 3px;
}

.nav__links { display: flex; gap: 6px; margin: 0 auto; }
.nav__links a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  opacity: 0.92;
  transition: background 0.25s, opacity 0.25s;
}
.nav__links a:hover { background: rgba(250, 246, 238, 0.14); opacity: 1; }

.nav__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav__phone { font-weight: 700; font-size: 15px; opacity: 0.95; }

.nav--scrolled {
  background: rgba(250, 246, 238, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 8px 30px -18px rgba(16, 35, 26, 0.4);
  padding: 8px 0;
}
.nav--scrolled .nav__logo-text em { color: var(--gold-strong); }
.nav--scrolled .nav__links a:hover { background: rgba(29, 53, 39, 0.09); }
.nav--scrolled .btn--primary { background: var(--green); }
.nav--scrolled .btn--gold { color: #fff; }

body.page-light .nav {
  background: rgba(250, 246, 238, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 8px 30px -18px rgba(16, 35, 26, 0.4);
  padding: 8px 0;
}
body.page-light .nav__logo-text em { color: var(--gold-strong); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger--open span:nth-child(2) { opacity: 0; }
.nav__burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 14s ease-out both;
}
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(12deg, rgba(9, 20, 13, 0.82) 0%, rgba(9, 20, 13, 0.42) 34%, rgba(9, 20, 13, 0.05) 62%),
    linear-gradient(180deg, rgba(9, 20, 13, 0.35), transparent 30%);
}

.hero__content { position: relative; padding-top: 140px; padding-bottom: 64px; width: 100%; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border: 1px solid rgba(250, 246, 238, 0.4);
  border-radius: 999px;
  background: rgba(12, 28, 19, 0.35);
  backdrop-filter: blur(8px);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero__badge .icon { width: 17px; height: 17px; color: var(--gold-soft); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 7.2vw, 92px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 40px rgba(9, 20, 13, 0.45);
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }

.hero__lead {
  max-width: 620px;
  font-size: clamp(16.5px, 1.6vw, 19.5px);
  line-height: 1.65;
  opacity: 0.94;
  margin-bottom: 36px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 42px; }

.hero__quick {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(250, 246, 238, 0.13);
  border: 1px solid rgba(250, 246, 238, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 860px;
}
.hero__quick label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}
.hero__deal {
  flex: 1 1 100%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-soft);
}
.hero__deal .icon { width: 19px; height: 19px; }
.hero__quick input,
.hero__quick select {
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(250, 246, 238, 0.35);
  background: rgba(250, 246, 238, 0.92);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.hero__quick .btn { padding: 13px 26px; }

/* ============ Статистика ============ */
.stats { background: var(--cream); position: relative; z-index: 2; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 10px 0 26px;
  border-left: 2.5px solid var(--gold);
}
.stat b {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--green);
  line-height: 1.1;
}
.stat span { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ============ Секции ============ */
.section { padding: 104px 0; }
.section--flush { padding-top: 40px; }
.section--tinted { background: var(--cream-2); }
.section--dark { background: var(--green-950); color: var(--cream); }
.section--dark .section__head p { color: rgba(250, 246, 238, 0.75); }

.section__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section__head h2,
.cta__info h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 18px;
}
.section__head h2 em, .cta__info h2 em, .success__card h1 em { font-style: italic; color: var(--gold-strong); }
.section--dark .section__head h2 em { color: var(--gold-soft); }
.section__head p { color: var(--muted); font-size: 17.5px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-strong);
  margin-bottom: 16px;
}
.eyebrow--light { color: var(--gold-soft); }

/* ============ О базе: карточки ============ */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(221, 213, 194, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #f3e3c2, #e8cf9d);
  color: var(--gold-strong);
  margin-bottom: 20px;
}
.feature__icon .icon { width: 27px; height: 27px; }
.feature h3 {
  font-family: var(--font-display);
  font-size: 21.5px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature p { font-size: 14.8px; color: var(--muted); }

/* ============ Домики ============ */
.cabins {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.cabin {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.cabin:hover { transform: translateY(-7px); box-shadow: var(--shadow); }

.cabin__media { position: relative; display: block; aspect-ratio: 16 / 10.5; overflow: hidden; }
.cabin__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.cabin:hover .cabin__media img { transform: scale(1.045); }
.cabin__badge {
  position: absolute;
  left: 18px; bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(12, 28, 19, 0.62);
  backdrop-filter: blur(8px);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cabin__photos {
  position: absolute;
  right: 18px; bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(12, 28, 19, 0.62);
  backdrop-filter: blur(8px);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.cabin__photos .icon { width: 16px; height: 16px; }
.cabin__media { cursor: zoom-in; }

.cabin__body { padding: 30px 30px 26px; display: flex; flex-direction: column; flex: 1; }
.cabin__body h3 { font-family: var(--font-display); font-size: 25px; font-weight: 600; }
.cabin__type {
  display: block;
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 6px 0 14px;
}
.cabin__body p { font-size: 15px; color: var(--muted); margin-bottom: 18px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.cabin__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
}
.cabin__price { font-size: 15px; color: var(--muted); }
.cabin__price b {
  font-family: var(--font-display);
  font-size: 27px;
  color: var(--ink);
  font-weight: 600;
}
.cabin__price span { font-size: 13.5px; }

/* ============ Услуги ============ */
.service-featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--green);
  border-radius: 30px;
  overflow: hidden;
  color: var(--cream);
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.service-featured__media { position: relative; min-height: 380px; }
.service-featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-featured__body { padding: clamp(30px, 4vw, 56px); align-self: center; }
.service-featured__tag {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.service-featured__body h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  margin-bottom: 16px;
}
.service-featured__body p { opacity: 0.88; font-size: 16px; margin-bottom: 24px; max-width: 46ch; }
.service-featured__price {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold-soft);
  margin-bottom: 24px;
}
.service-featured__price span { font-family: var(--font-body); font-size: 14.5px; opacity: 0.8; }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(221, 213, 194, 0.6);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service__icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d3527, #2c4a38);
  color: var(--gold-soft);
  margin-bottom: 20px;
}
.service__icon .icon { width: 25px; height: 25px; }
.service h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.service p { font-size: 14.6px; color: var(--muted); margin-bottom: 22px; }
.service__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}
.service__price { font-weight: 800; font-size: 17px; }
.service__price span { display: block; font-size: 12.3px; font-weight: 600; color: var(--muted); }
.service__add {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--gold-strong);
  transition: gap 0.25s ease;
}
.service__add:hover { gap: 11px; }
.service__add .icon { width: 17px; height: 17px; }

/* ============ Галерея ============ */
.masonry { columns: 3; column-gap: 20px; }
.masonry__item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.6);
}
.masonry__item a { display: block; position: relative; }
.masonry__item img { width: 100%; transition: transform 0.6s ease; }
.masonry__item:hover img { transform: scale(1.05); }
.masonry__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 22px 20px;
  background: linear-gradient(180deg, transparent, rgba(9, 20, 13, 0.85));
  color: var(--cream);
  display: grid;
  gap: 2px;
}
.masonry__item figcaption b { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.masonry__item figcaption span { font-size: 13.5px; opacity: 0.85; }

/* ============ Отзывы ============ */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(221, 213, 194, 0.6);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review__stars { display: flex; gap: 4px; color: var(--gold-strong); }
.review__stars .icon { width: 19px; height: 19px; fill: currentColor; }
.review p { font-size: 15.3px; color: var(--ink); }
.review footer {
  margin-top: auto;
  display: grid;
  gap: 2px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
.review footer b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.review footer span { font-size: 13px; color: var(--muted); }

/* ============ CTA / контакты ============ */
.cta { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.cta__info h2 { margin-bottom: 26px; }

.steps { list-style: none; display: grid; gap: 22px; margin-bottom: 36px; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 64px;
  display: grid;
  gap: 3px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.steps b { font-size: 16.5px; }
.steps span { color: var(--muted); font-size: 14.6px; }

.cta__contacts { display: grid; gap: 14px; }
.contact-line { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15.5px; }
.contact-line .icon { color: var(--gold-strong); }

.cta__card {
  background: var(--green);
  color: var(--cream);
  border-radius: 28px;
  padding: clamp(30px, 3.4vw, 48px);
  box-shadow: var(--shadow);
}
.cta__card h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  margin-bottom: 14px;
}
.cta__card p { opacity: 0.88; margin-bottom: 26px; }
.cta__note { display: block; text-align: center; font-size: 12.8px; opacity: 0.72; margin-top: 14px; }
.cta__card .cta__note { opacity: 0.6; }

/* ============ Footer ============ */
.footer {
  background: var(--green-950);
  color: rgba(250, 246, 238, 0.85);
  padding: 72px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.9fr 1fr;
  gap: 40px;
  padding-bottom: 52px;
}
.footer__brand p { font-size: 14.5px; opacity: 0.75; margin: 18px 0 22px; max-width: 34ch; }
.footer__brand .nav__logo-text em { color: var(--gold-soft); }
.footer__socials { display: flex; gap: 12px; }
.footer__socials a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(250, 246, 238, 0.28);
  transition: background 0.25s, transform 0.25s;
}
.footer__socials a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.footer__socials .icon { width: 20px; height: 20px; }

.footer__col { display: grid; gap: 11px; align-content: start; }
.footer__col h4 {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 8px;
}
.footer__col a { font-size: 14.8px; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.footer__col a:hover { opacity: 1; color: var(--gold-soft); }
.footer__col p { font-size: 14.2px; opacity: 0.7; }
.footer__contacts a { font-weight: 700; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(250, 246, 238, 0.12);
  font-size: 13px;
  opacity: 0.65;
}

/* ============ Страница бронирования ============ */
.pagehead {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(201, 151, 63, 0.28), transparent 60%),
    linear-gradient(160deg, var(--green-950), var(--green) 70%);
  color: var(--cream);
  padding: calc(var(--nav-h) + 64px) 0 56px;
}
.pagehead h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  margin-bottom: 14px;
}
.pagehead h1 em { font-style: italic; color: var(--gold-soft); }
.pagehead p { max-width: 60ch; opacity: 0.88; }

.booking {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 30px;
  align-items: start;
  padding-top: 44px;
  padding-bottom: 96px;
}

.booking__form {
  background: #fff;
  border-radius: 26px;
  padding: clamp(26px, 3vw, 44px);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(221, 213, 194, 0.6);
}
.booking__form fieldset { border: 0; margin-bottom: 34px; }
.booking__form legend {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 18px;
  padding-top: 8px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-soft); }
.field > span i { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(29, 53, 39, 0.12);
  background: #fff;
}
.field--error input, .field--error select { border-color: var(--danger); }
.field em { color: var(--danger); font-size: 12.8px; font-style: normal; font-weight: 600; }

.alert {
  background: #fbeae4;
  border: 1px solid #eac3b4;
  color: #8c3b24;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 26px;
  font-size: 14.5px;
}
.alert ul { margin: 6px 0 0 20px; }

/* Доп. услуги — чекбоксы-карточки */
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.extra {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.extra:hover { border-color: var(--gold); }
.extra input { position: absolute; opacity: 0; pointer-events: none; }
.extra__box {
  width: 26px; height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1.5px solid #c9c0aa;
  color: transparent;
  background: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.extra__box .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.extra--on { border-color: var(--gold); background: #fdf6e7; box-shadow: 0 6px 18px -10px rgba(183, 131, 46, 0.5); }
.extra--on .extra__box { background: var(--gold); border-color: var(--gold); color: #fff; }
.extra__info { display: grid; gap: 1px; min-width: 0; }
.extra__info b { font-size: 14.6px; line-height: 1.3; }
.extra__info i { font-style: normal; font-size: 12.3px; color: var(--muted); }
.extra__price { margin-left: auto; font-weight: 800; font-size: 14.6px; color: var(--green); white-space: nowrap; }

/* Итог */
.booking__total {
  border-top: 2px solid var(--cream-3);
  padding-top: 22px;
  display: grid;
  gap: 16px;
}
.booking__lines { display: grid; gap: 8px; }
.booking__lines .line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.booking__lines .line--sub { color: var(--muted); font-size: 14px; }
.booking__lines .line--discount { color: var(--gold-strong); font-weight: 700; }
.booking__lines .line b { font-weight: 800; }
.booking__sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.booking__sum span { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.booking__sum b {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  color: var(--green);
}

/* Правая колонка */
.booking__aside { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 22px; }
.aside-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(221, 213, 194, 0.6);
}
.aside-card img { width: 100%; height: 210px; object-fit: cover; }
.aside-card__body { padding: 24px 26px 26px; }
.aside-card__body h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.aside-card__body p { font-size: 14.3px; color: var(--muted); margin-bottom: 16px; }
.aside-card__price { font-size: 14px; color: var(--muted); }
.aside-card__price b { font-family: var(--font-display); font-size: 25px; color: var(--ink); font-weight: 600; }
.aside-card--contact { background: var(--green); color: var(--cream); border: 0; }
.aside-card--contact h3 { margin-bottom: 10px; }
.aside-card--contact p { opacity: 0.85; }

/* ============ Страница успеха / 404 ============ */
.success { display: flex; align-items: center; min-height: calc(100vh - var(--nav-h)); }
.success__card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 30px;
  padding: clamp(34px, 5vw, 64px);
  box-shadow: var(--shadow);
  text-align: center;
}
.success__card h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 600;
  margin-bottom: 14px;
}
.success__card > p { color: var(--muted); max-width: 52ch; margin: 0 auto 34px; }
.success__icon {
  width: 88px; height: 88px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9a84e, #b7832e);
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(183, 131, 46, 0.8);
}
.success__icon .icon { width: 44px; height: 44px; stroke-width: 1.9; }
.success__icon--fail {
  background: linear-gradient(135deg, #d96a4b, #b3492f);
  box-shadow: 0 18px 40px -16px rgba(179, 73, 47, 0.8);
  font-size: 38px;
  font-weight: 800;
  color: #fff;
}

/* Страница оплаты */
.pay-form { display: grid; gap: 16px; margin-bottom: 18px; text-align: left; }
.pay-form input[readonly] {
  background: var(--cream-2);
  color: var(--green-soft);
  cursor: default;
  font-weight: 700;
}
.pay-form input[type="number"][readonly]::-webkit-outer-spin-button,
.pay-form input[type="number"][readonly]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pay-form input[type="number"][readonly] { -moz-appearance: textfield; appearance: textfield; }

/* Экран ожидания ссылки на оплату */
.spinner {
  width: 72px; height: 72px;
  margin: 0 auto 26px;
  border: 5px solid var(--cream-3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: paySpin 0.9s linear infinite;
}
@keyframes paySpin { to { transform: rotate(360deg); } }
#waitBlock[hidden], #declineBlock[hidden], #paidBlock[hidden] { display: none; }
#waitLong a { color: var(--gold-strong); font-weight: 700; }

.success__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  margin-bottom: 34px;
}
.detail { padding: 16px 22px; border-bottom: 1px solid var(--line); display: grid; gap: 3px; background: var(--cream); }
.detail:nth-child(odd) { border-right: 1px solid var(--line); }
.detail:nth-last-child(-n+2) { border-bottom: 0; }
.detail span { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.detail b { font-size: 15.5px; }
.detail--sum { background: var(--green); color: var(--cream); }
.detail--spacer { background: var(--cream); }
.detail--sum span { color: rgba(250, 246, 238, 0.7); }
.detail--sum b { font-family: var(--font-display); font-size: 26px; color: var(--gold-soft); font-weight: 600; }

.success__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.success__actions .btn--ghost { border-color: rgba(29, 53, 39, 0.35); color: var(--green); }
.success__actions .btn--ghost:hover { background: rgba(29, 53, 39, 0.08); }

/* ============ Админ-таблица ============ */
.table-wrap {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  border: 1px solid rgba(221, 213, 194, 0.6);
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 1080px; font-size: 14px; }
.admin-table th {
  text-align: left;
  padding: 16px 18px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--cream-3);
  background: var(--cream);
}
.admin-table td { padding: 15px 18px; border-bottom: 1px solid rgba(221, 213, 194, 0.55); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag--new { background: #fdf0d5; color: #96690f; }
.tag--confirmed { background: #e2efe4; color: #2c5c3a; }

/* ============ Лайтбокс ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  background: rgba(8, 17, 12, 0.92);
  backdrop-filter: blur(6px);
  padding: 40px;
}
.lightbox--open { display: grid; }
.lightbox figure { max-width: min(1100px, 92vw); display: grid; gap: 14px; }
.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.8);
}
.lightbox figcaption { color: rgba(250, 246, 238, 0.85); text-align: center; font-size: 14.5px; }
.lightbox__close {
  position: absolute;
  top: 26px; right: 30px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(250, 246, 238, 0.35);
  background: rgba(250, 246, 238, 0.12);
  color: var(--cream);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox__close:hover { background: rgba(250, 246, 238, 0.25); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(250, 246, 238, 0.35);
  background: rgba(250, 246, 238, 0.12);
  color: var(--cream);
  font-size: 34px;
  line-height: 1;
  padding-bottom: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox__nav:hover { background: rgba(250, 246, 238, 0.25); }
.lightbox__nav--prev { left: 26px; }
.lightbox__nav--next { right: 26px; }
.lightbox__counter {
  position: absolute;
  top: 32px; left: 50%;
  transform: translateX(-50%);
  color: rgba(250, 246, 238, 0.9);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(250, 246, 238, 0.12);
  border: 1px solid rgba(250, 246, 238, 0.25);
  border-radius: 999px;
  padding: 7px 16px;
}
@media (max-width: 620px) {
  .lightbox { padding: 16px; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 26px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

/* ============ Анимации появления ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.reveal--visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ Адаптив ============ */
@media (max-width: 1100px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .booking { grid-template-columns: 1fr; }
  .booking__aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(320px, 86vw);
    background: var(--green-950);
    color: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: calc(var(--nav-h) + 24px) 28px 28px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.3, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
  }
  .nav__links--open { transform: translateX(0); }
  .nav__links a { font-size: 17px; padding: 12px 14px; width: 100%; }
  .nav__burger { display: inline-flex; position: relative; z-index: 120; }
  .nav__phone { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .cabins { grid-template-columns: 1fr; }
  .service-featured { grid-template-columns: 1fr; }
  .service-featured__media { min-height: 300px; }
  .cta { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 76px 0; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .cards-4, .services, .extras, .grid-2, .success__details { grid-template-columns: 1fr; }
  .detail:nth-child(odd) { border-right: 0; }
  .detail { border-bottom: 1px solid var(--line); }
  .detail:last-child { border-bottom: 0; }
  .detail--spacer { display: none; }
  .masonry { columns: 1; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat b { font-size: 30px; }
  .hero__quick { width: 100%; }
  .hero__quick label, .hero__quick input, .hero__quick select { width: 100%; min-width: 0; }
  .hero__quick .btn { width: 100%; }
  .hero__cta .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .booking__aside { grid-template-columns: 1fr; }
  .nav__actions .btn { display: none; }
  .cabin__foot { flex-direction: column; align-items: flex-start; }
}
