/**
 * База отдыха «Берёзовый берег» — общие стили
 * Палитра: зелёные заголовки, бирюзовый акцент (кнопки, подвал, неон-подчёркивание)
 */

/* --- Шрифты подключаются в HTML (Google Fonts: Manrope + Playfair Display) --- */

:root {
  --color-forest: #4a7043;
  --color-forest-dark: #355731;
  --color-forest-soft: #e8efe6;
  --color-forest-mid: #6d8f66;
  --color-teal: #0d9488;
  --color-teal-dark: #0f766e;
  --color-teal-deep: #115e59;
  --color-teal-light: #2dd4bf;
  --color-teal-soft: #ccfbf1;
  --color-teal-glow: rgba(45, 212, 191, 0.55);
  --color-sand: #d2b48c;
  --color-wood: #8b5a2b;
  --color-sky: #a5d6ff;
  --color-sky-soft: #d9efff;
  --color-blush: #f4c2c2;
  --color-cream: #fdf8f0;
  --color-white: #ffffff;
  --color-text: #2a2f28;
  --color-text-muted: #5c6359;
  --color-line: rgba(13, 148, 136, 0.15);

  --font-sans: "Manrope", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;

  --shadow-soft: 0 4px 24px rgba(45, 60, 42, 0.08);
  --shadow-card: 0 12px 40px rgba(45, 60, 42, 0.12);
  --shadow-hover: 0 18px 48px rgba(45, 60, 42, 0.16);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --header-h: 82px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease-out);

  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --relief-light: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --relief-shade: inset 0 -1px 0 rgba(13, 148, 136, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /*
   * Одна фотография на весь сайт (все страницы подключают этот CSS):
   * зафиксирована за контентом, блоки и текст скроллятся поверх.
   * Файл — тот же, что постер героя: img/hero/hero.jpg
   */
  background-color: var(--color-teal-deep);
  /* Едва заметная вуаль — фото Алтая остаётся главным героем */
  background-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(253, 248, 240, 0.06) 45%,
      rgba(255, 255, 255, 0.11) 100%
    ),
    url("../img/hero/hero.jpg");
  background-size: 100% 100%, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

/* Микрозернистость — почти незаметно, не «моет» фото */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Видео на внутренних страницах (баня и т. п.) --- */
.embed-video {
  max-width: 900px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #1a1f18;
}

.embed-video video {
  width: 100%;
  max-height: min(70vh, 560px);
  object-fit: contain;
  margin-inline: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--color-teal-light);
  outline-offset: 3px;
}

/* --- Утилиты контейнера --- */
.container {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section__head {
  text-align: center;
  max-width: min(720px, 100%);
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.35rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(253, 248, 240, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(45, 60, 42, 0.1), var(--relief-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-forest-dark);
  background: linear-gradient(135deg, rgba(232, 239, 230, 0.95), rgba(217, 239, 255, 0.65));
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--relief-light), 0 4px 16px rgba(13, 148, 136, 0.12);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  color: var(--color-forest-dark);
  line-height: 1.2;
  margin: 0 auto 0.85rem;
  max-width: 100%;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.4), 0 0 18px rgba(45, 212, 191, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  width: fit-content;
  padding-bottom: 0.45rem;
}

.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-teal-light), #5eead4 45%, var(--color-teal));
  box-shadow: 0 0 14px var(--color-teal-glow), 0 0 28px rgba(45, 212, 191, 0.45);
}

.section__lead {
  margin: 0;
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.92;
}

/* --- Появление при скролле --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background 0.25s ease, color 0.25s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-dark));
  color: var(--color-white);
  box-shadow: 0 6px 22px rgba(13, 148, 136, 0.45);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-forest-dark);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.btn--ghost:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--color-white);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-forest-dark);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 18px rgba(45, 60, 42, 0.08), var(--relief-light);
}

.btn--outline:hover {
  background: #fff;
  border-color: rgba(45, 212, 191, 0.65);
  transform: translateY(-2px) scale(1.02);
}

.btn--sky {
  background: var(--color-sky-soft);
  color: var(--color-forest-dark);
  border: 1px solid rgba(165, 214, 255, 0.6);
}

.btn--sky:hover {
  background: var(--color-sky);
  transform: translateY(-2px) scale(1.02);
}

.btn--blush {
  background: var(--color-blush);
  color: var(--color-forest-dark);
  border: 1px solid rgba(244, 194, 194, 0.5);
}

.btn--blush:hover {
  filter: brightness(1.05);
  transform: translateY(-2px) scale(1.02);
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* --- Шапка --- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  /* Прозрачнее — видно фоновое фото в шапке */
  background: linear-gradient(180deg, rgba(253, 248, 240, 0.38) 0%, rgba(253, 248, 240, 0.22) 100%);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: background 0.35s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: linear-gradient(180deg, rgba(253, 248, 240, 0.72) 0%, rgba(253, 248, 240, 0.58) 100%);
  box-shadow: var(--shadow-soft);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo img {
  height: 54px;
  width: auto;
}

.logo__text {
  display: none;
}

/* Полоска мессенджеров в шапке (только мобильная ширина) */
.header-social {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

@media (max-width: 420px) {
  .logo img {
    height: 46px;
  }
}

/* Навигация */
.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__link {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-full);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  background: var(--color-teal-soft);
  color: var(--color-teal-dark);
}

.nav__messengers {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--color-line);
}

/* Иконки мессенджеров без «кружочка» — крупнее, сами по себе */
.messenger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem;
  background: transparent;
  border-radius: var(--radius-sm);
  box-shadow: none;
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

.messenger-btn img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.messenger-btn:hover {
  transform: scale(1.12);
  opacity: 0.92;
}

@media (max-width: 1024px) {
  .messenger-btn img {
    width: 38px;
    height: 38px;
  }
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-forest-soft);
  cursor: pointer;
  padding: 0 10px;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--color-teal-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .burger {
    display: flex;
    flex-shrink: 0;
  }

  .header-social {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: #fdf8f0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-card);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out), opacity 0.35s ease;
    gap: 0.25rem;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
  }

  .nav .nav__messengers {
    display: none;
  }
}

/* Отступ под фиксированную шапку; контент над декоративным слоем body::before */
main {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

/* --- Плавающая кнопка звонка --- */
.fab-call {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.15rem;
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-dark));
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 32px rgba(13, 148, 136, 0.5), 0 0 24px rgba(45, 212, 191, 0.25);
  animation: fab-pulse 2.8s ease-in-out infinite;
  transition: transform 0.25s var(--ease-out);
}

.fab-call:hover {
  transform: scale(1.05);
}

.fab-call__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@keyframes fab-pulse {
  0%,
  100% {
    box-shadow: 0 10px 32px rgba(13, 148, 136, 0.5), 0 0 20px rgba(45, 212, 191, 0.2);
  }
  50% {
    box-shadow: 0 10px 44px rgba(13, 148, 136, 0.65), 0 0 32px rgba(45, 212, 191, 0.45);
  }
}

@media (max-width: 480px) {
  .fab-call span {
    display: none;
  }
  .fab-call {
    width: 58px;
    height: 58px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

/* --- Герой --- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-white);
}

/* Плавающие «орбы» и блик — атмосфера курорта */
.hero__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 25%, rgba(165, 214, 255, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 85% 20%, rgba(244, 194, 194, 0.09) 0%, transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
  animation: hero-ambient-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-ambient-drift {
  from {
    transform: scale(1) translate(0, 0);
    opacity: 1;
  }
  to {
    transform: scale(1.08) translate(-2%, 1%);
    opacity: 0.92;
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video,
.hero__slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

.hero__slides {
  display: none;
}

.hero.no-video .hero__video {
  display: none;
}
.hero.no-video .hero__slides {
  display: block;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Слабее затемнение — лучше видно кадр с Алтаем */
  background: linear-gradient(
    125deg,
    rgba(28, 48, 32, 0.52) 0%,
    rgba(42, 58, 38, 0.34) 42%,
    rgba(53, 87, 49, 0.26) 65%,
    rgba(20, 40, 55, 0.22) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1160px, 100% - 32px);
  padding: clamp(2rem, 6vw, 4rem) 0;
}

/* Логотип + заголовок: стекло, микрорельеф, лёгкое движение (десктоп) */
.hero__brand-shell {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  flex-wrap: wrap;
  padding: 1rem 1.35rem 1rem 1rem;
  margin-bottom: 1.35rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), var(--relief-light), inset 0 0 0 1px rgba(165, 214, 255, 0.15);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  animation: hero-brand-float 7s ease-in-out infinite alternate;
}

@keyframes hero-brand-float {
  from {
    transform: translateY(0) rotate(-0.4deg);
  }
  to {
    transform: translateY(-5px) rotate(0.5deg);
  }
}

.hero__logo {
  width: clamp(120px, 22vw, 168px);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.35));
  animation: hero-logo-nudge 6s ease-in-out infinite;
}

@keyframes hero-logo-nudge {
  0%,
  100% {
    transform: rotate(-1.5deg) scale(1);
  }
  50% {
    transform: rotate(1.5deg) scale(1.02);
  }
}

.hero__brand-stack {
  min-width: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  padding-bottom: 0.4rem;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45), 0 0 48px rgba(165, 214, 255, 0.35);
  animation: hero-title-shine 8s ease-in-out infinite alternate;
  position: relative;
  width: fit-content;
}

.hero__title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-teal-light), #5eead4 50%, var(--color-teal));
  box-shadow: 0 0 16px var(--color-teal-glow), 0 0 28px rgba(45, 212, 191, 0.5);
}

@keyframes hero-title-shine {
  from {
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45), 0 0 40px rgba(165, 214, 255, 0.25);
  }
  to {
    text-shadow: 0 2px 32px rgba(0, 0, 0, 0.5), 0 0 56px rgba(165, 214, 255, 0.5), 0 0 20px rgba(244, 194, 194, 0.25);
  }
}

.hero__tagline {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  /* Высокий «портретный» кадр + весь контент поверх видео */
  .hero {
    min-height: min(92dvh, 900px);
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
  }

  .hero__ambient {
    opacity: 0.75;
  }

  .hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
  }

  .hero__video,
  .hero__slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center 32%;
    transform: scale(1.08);
  }

  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(12, 28, 24, 0.35) 0%,
      rgba(18, 42, 36, 0.18) 40%,
      rgba(18, 42, 36, 0.12) 55%,
      rgba(8, 22, 20, 0.5) 100%
    );
  }

  .hero__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: max(0.35rem, env(safe-area-inset-top)) 1rem max(1.1rem, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.28) 0%,
      transparent 42%,
      transparent 48%,
      rgba(0, 0, 0, 0.38) 100%
    );
    pointer-events: none;
  }

  .hero__brand-shell,
  .hero__actions {
    pointer-events: auto;
    width: 100%;
    max-width: 22rem;
  }

  .hero__brand-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 7cm 0 0;
    padding: 0.15rem 0 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }

  .hero__brand-stack {
    width: 100%;
  }

  .hero__logo {
    width: clamp(128px, 40vw, 188px);
    margin-bottom: 0.25rem;
    animation: none;
  }

  .hero__title {
    margin-inline: auto;
  }

  .hero__tagline {
    margin-top: 0.3rem;
  }

  .hero__actions {
    margin-top: 0;
    margin-bottom: 0;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .hero__btn-phone {
    display: none !important;
  }
}

.hero__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero__dot.is-active {
  background: var(--color-sky);
  transform: scale(1.25);
}

/* --- Преимущества (иконки) --- */
.features {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(253, 248, 240, 0.18) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-block: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.feature-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(248, 252, 249, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft), var(--relief-light), var(--relief-shade);
  transition: transform 0.4s var(--ease-out), box-shadow 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02) rotate(-0.5deg);
  box-shadow: 0 20px 50px rgba(45, 60, 42, 0.12), var(--relief-light), 0 0 0 1px rgba(165, 214, 255, 0.35);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-sky-soft), var(--color-blush));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--color-forest-dark);
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}

/* --- Блок домиков на главной: «воздушная» подложка --- */
.houses-preview {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(232, 239, 230, 0.12) 50%, rgba(217, 239, 255, 0.1) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-block: 1px solid rgba(255, 255, 255, 0.22);
}

/* --- Шахматные блоки домиков --- */
.houses-preview .house-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.houses-preview .house-row:last-child {
  margin-bottom: 0;
}

/* Страница «Наше размещение»: текстовая колонка заметнее на фоне фото */
.houses-preview--list .house-row__body--relief {
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.94) 0%, rgba(253, 248, 240, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--relief-light), var(--relief-shade), 0 20px 48px rgba(45, 60, 42, 0.1);
}

.houses-preview--list .house-row__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  margin: 0 0 0.65rem;
  color: var(--color-forest-dark);
  line-height: 1.2;
}

.houses-preview--list .house-row__body h2 a:hover {
  color: var(--color-teal-dark);
}

.houses-preview--list .house-row__body > p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* Поочерёдное появление: фото с одной стороны, текст — с другой */
.house-row--stagger .slide-in {
  opacity: 0;
  transform: translateX(var(--slide-shift, 0));
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  will-change: transform, opacity;
}

.house-row--stagger .slide-in--left {
  --slide-shift: -56px;
}

.house-row--stagger .slide-in--right {
  --slide-shift: 56px;
}

.house-row--stagger.is-row-visible .slide-in {
  opacity: 1;
  transform: translateX(0);
}

.house-row--stagger .slide-in:nth-child(2) {
  transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .house-row--stagger .slide-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .house-row--stagger .slide-in--left,
  .house-row--stagger .slide-in--right {
    --slide-shift: -28px;
  }

  .house-row--reverse.house-row--stagger .slide-in--left,
  .house-row--reverse.house-row--stagger .slide-in--right {
    --slide-shift: 28px;
  }
}

/* Универсальная заметная подложка под текст на фото */
.readability-card {
  padding: clamp(1.15rem, 3vw, 1.65rem) clamp(1.2rem, 3vw, 1.85rem);
  margin-bottom: 1rem;
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.94) 0%, rgba(253, 248, 240, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(45, 60, 42, 0.1), var(--relief-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.readability-card:last-child {
  margin-bottom: 0;
}

.readability-card--center {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.readability-card--center .section__lead {
  text-align: center;
}

.readability-card--inline {
  margin-top: 2rem;
  margin-bottom: 0;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.readability-card p,
.readability-card .section__lead {
  color: var(--color-text);
}

.readability-card .section__title {
  margin-bottom: 0.65rem;
}

.readability-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.readability-card p {
  margin: 0;
  color: var(--color-text);
  line-height: 1.65;
}

/* --- Страница «Баня»: текст на фоне + цена + заголовок над видео --- */
.banya-copy-card {
  max-width: 720px;
  margin-inline: auto;
}

.banya-copy-card .banya-prose {
  max-width: none;
  margin: 0;
}

.banya-copy-card .banya-prose h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.banya-copy-card .banya-prose > p {
  margin: 0 0 1rem;
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.65;
}

.banya-copy-card .banya-prose > p:last-child {
  margin-bottom: 0;
}

.banya-price-callout {
  margin-top: 1.35rem;
  padding: 1.1rem 1.25rem 1.15rem;
  background: linear-gradient(145deg, rgba(255, 252, 247, 0.98) 0%, rgba(232, 239, 230, 0.95) 100%);
  border: 1px solid rgba(139, 90, 43, 0.22);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 8px 28px rgba(45, 60, 42, 0.08);
  border-left: 4px solid var(--color-wood);
}

.banya-price-callout__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
}

.banya-price-callout__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-forest-dark);
}

.banya-price-callout__value {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.35rem);
  font-weight: 700;
  color: var(--color-wood);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.banya-price-callout__per {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-forest-mid);
}

.banya-video-heading {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.8vw, 2.15rem);
  font-weight: 600;
  text-align: center;
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  color: var(--color-forest-dark);
  line-height: 1.25;
  text-shadow:
    0 0 24px rgba(255, 255, 255, 0.95),
    0 0 12px rgba(255, 255, 255, 0.85),
    0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  padding-bottom: 0.55rem;
}

.banya-video-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(200px, 55%);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-teal-light), var(--color-teal));
  box-shadow: 0 0 12px var(--color-teal-glow);
}

.banya-video-actions {
  text-align: center;
  margin: 2rem 0 0;
}

.houses-preview .house-row--reverse .house-row__visual {
  order: 2;
}

@media (max-width: 768px) {
  .houses-preview .house-row,
  .houses-preview .house-row--reverse {
    grid-template-columns: 1fr;
  }
  .houses-preview .house-row--reverse .house-row__visual {
    order: 0;
  }
}

.house-row__visual {
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-forest-soft), var(--color-sky-soft));
  box-shadow: 0 16px 48px rgba(45, 60, 42, 0.14), var(--relief-light), 0 0 0 1px rgba(255, 255, 255, 0.35);
}

a.house-row__visual {
  display: block;
  color: inherit;
  transition: transform 0.4s var(--ease-out), box-shadow 0.35s ease;
}

a.house-row__visual:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 56px rgba(45, 60, 42, 0.16), var(--relief-light), 0 0 0 1px rgba(165, 214, 255, 0.35);
}

.house-row__visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.house-row__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out);
}

.house-row__visual:hover img {
  transform: scale(1.05);
}

.house-row__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-forest-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Текстовая колонка — «плитка» с микрорельефом */
.house-row__body--relief {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.82) 0%, rgba(253, 248, 240, 0.62) 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--relief-light), var(--relief-shade), 0 18px 44px rgba(45, 60, 42, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.house-row__body h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 0.75rem;
  color: var(--color-forest-dark);
}

.house-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.house-row__price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-wood);
  margin-bottom: 1.25rem;
}

.house-row__price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* --- Галерея сетка --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
}

.gallery-grid__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  box-shadow: 0 10px 32px rgba(45, 60, 42, 0.1), var(--relief-light), 0 0 0 1px rgba(255, 255, 255, 0.4);
  background: linear-gradient(145deg, var(--color-forest-soft), rgba(255, 255, 255, 0.5));
}

.gallery-grid__item--wide {
  grid-column: span 6;
  aspect-ratio: 16 / 9;
}

.gallery-grid__item--tall {
  grid-column: span 4;
  aspect-ratio: 3 / 4;
}

.gallery-grid__item--std {
  grid-column: span 4;
}

@media (max-width: 768px) {
  .gallery-grid__item--wide,
  .gallery-grid__item--tall,
  .gallery-grid__item--std {
    grid-column: span 6;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 520px) {
  .gallery-grid__item--wide,
  .gallery-grid__item--tall,
  .gallery-grid__item--std {
    grid-column: span 12;
  }
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.gallery-grid__item:hover img {
  transform: scale(1.06);
}

.gallery-grid__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid__cap {
  position: absolute;
  inset: auto 0 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

/* --- Отзывы слайдер --- */
.reviews {
  background: linear-gradient(185deg, rgba(217, 239, 255, 0.22) 0%, rgba(253, 248, 240, 0.14) 55%, rgba(232, 239, 230, 0.12) 100%);
  border-block: 1px solid rgba(255, 255, 255, 0.22);
}

.reviews .container {
  overflow-x: hidden;
  max-width: 100%;
}

.reviews__slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-card), var(--relief-light), var(--relief-shade);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.reviews__track {
  display: flex;
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
}

.review-card {
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.review-card__stars {
  color: var(--color-sand);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.review-card p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.review-card__author {
  font-weight: 700;
  color: var(--color-teal-dark);
}

.reviews__nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.reviews__nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(13, 148, 136, 0.25);
  background: var(--color-white);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--color-teal-dark);
  transition: background 0.2s ease, transform 0.2s ease;
}

.reviews__nav button:hover {
  background: var(--color-teal-soft);
  transform: scale(1.06);
}

/* --- Карта / как добраться --- */
.route-block {
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.26) 0%, rgba(253, 248, 240, 0.16) 100%);
  border-block: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.route-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .route-grid {
    grid-template-columns: 1fr;
  }
}

.route-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-card);
  border: 4px solid var(--color-teal-soft);
}

.route-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

@media (max-width: 900px) {
  .route-map iframe {
    height: 280px;
  }
}

.route-text ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
}

.route-text li {
  margin-bottom: 0.5rem;
}

/* Текст проезда под картой — читаемый на фоне фото сайта */
.route-block .route-text {
  padding: clamp(1.25rem, 3vw, 1.85rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    165deg,
    rgba(17, 94, 89, 0.94) 0%,
    rgba(13, 71, 66, 0.96) 48%,
    rgba(10, 55, 51, 0.97) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.route-block .route-text p,
.route-block .route-text li {
  color: rgba(255, 255, 255, 0.94);
}

.route-block .route-text strong {
  color: #fff;
  font-weight: 800;
}

.route-block .route-text ul {
  color: rgba(255, 255, 255, 0.9);
}

.route-block .route-text .btn {
  margin-top: 0.35rem;
}

/* Контакты: карточки внутри .route-text — тёмно-зелёный/бирюзовый текст (не белый от панели) */
.route-block .route-text .readability-card {
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.98) 0%, rgba(253, 248, 240, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 36px rgba(45, 60, 42, 0.1), var(--relief-light);
}

.route-block .route-text .readability-card h2 {
  color: var(--color-teal-dark);
}

.route-block .route-text .readability-card p,
.route-block .route-text .readability-card li {
  color: var(--color-forest-dark);
}

.route-block .route-text .readability-card strong {
  color: var(--color-teal-dark);
}

.route-block .route-text .readability-card a:not(.btn) {
  color: var(--color-teal-dark);
}

/* --- Футер --- */
.site-footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    165deg,
    #0a3d39 0%,
    var(--color-teal-deep) 28%,
    var(--color-teal-dark) 55%,
    #0c3533 82%,
    #062524 100%
  );
  color: rgba(255, 255, 255, 0.9);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
  border-top: 1px solid rgba(94, 234, 212, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-footer a:hover {
  color: #fbbf24;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo img {
  height: 48px;
  width: auto;
  margin-bottom: 0.75rem;
  opacity: 0.98;
}

.footer-muted {
  font-size: 0.9rem;
  opacity: 0.88;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.footer-social__link:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.35);
}

.footer-social__link img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.footer-title {
  font-weight: 800;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fef3c7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* --- Страница домика: галерея миниатюр --- */
/* Верх страниц без цветной «полосы» — только карточка в контейнере */
.house-hero {
  padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(0.75rem, 2vw, 1.25rem);
  background: transparent;
}

.house-hero > .container {
  max-width: min(760px, 100%);
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.35rem, 4vw, 2.5rem);
  text-align: center;
  /* Полупрозрачное «стекло» — фон фото чуть просвечивает */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(253, 248, 240, 0.45) 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(45, 60, 42, 0.08), var(--relief-light);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.house-hero .section__label {
  display: inline-block;
}

.house-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 auto 0.55rem;
  max-width: 100%;
  color: var(--color-forest-dark);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.35), 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  width: fit-content;
  padding-bottom: 0.45rem;
}

.house-hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-teal-light), #5eead4 50%, var(--color-teal));
  box-shadow: 0 0 12px var(--color-teal-glow), 0 0 22px rgba(45, 212, 191, 0.35);
}

.house-hero .section__lead {
  margin-inline: auto;
  max-width: 640px;
  text-align: center;
  color: var(--color-forest-dark);
}

.page-domiki .house-hero__logo {
  display: none;
}

@media (max-width: 768px) {
  .page-domiki .house-hero__logo {
    display: block;
    width: clamp(120px, 42vw, 168px);
    height: auto;
    margin: 0 auto 0.85rem;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.12));
  }

  .page-domiki .house-hero .section__lead {
    display: none;
  }
}

.house-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.house-gallery button {
  border: none;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.house-gallery button:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-card);
}

.house-gallery button picture {
  display: block;
  width: 100%;
  height: 100%;
}

.house-gallery button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2rem 0 0.85rem;
  color: var(--color-forest-dark);
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding-bottom: 0.4rem;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

.prose h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-teal-light), var(--color-teal));
  box-shadow: 0 0 10px var(--color-teal-glow);
}

.prose ul {
  padding-left: 1.2rem;
  color: var(--color-text-muted);
}

.booking-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

/* --- Lightbox (полноэкранный) --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 22, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img-wrap {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
}

.lightbox__img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox__prev {
  left: max(12px, env(safe-area-inset-left));
}
.lightbox__next {
  right: max(12px, env(safe-area-inset-right));
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__counter {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- Карточки услуг --- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(248, 252, 249, 0.85));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft), var(--relief-light), var(--relief-shade);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px) rotate(0.3deg);
  box-shadow: 0 20px 48px rgba(45, 60, 42, 0.12), var(--relief-light), 0 0 0 1px rgba(165, 214, 255, 0.35);
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--color-forest-dark);
}

.service-card__price {
  font-weight: 800;
  color: var(--color-wood);
  margin-bottom: 0.5rem;
}

a.service-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* --- Экскурсии: карточки --- */
.excursion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.exc-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(253, 248, 240, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft), var(--relief-light), var(--relief-shade);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.exc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(45, 60, 42, 0.12), var(--relief-light);
}

.exc-card__img {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-forest-soft), var(--color-sky));
}

.exc-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exc-card__body {
  padding: 1.25rem;
}

.exc-card h2,
.exc-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

/* --- Декоративный фон «листья» (лёгкая текстура без тяжёлых картинок) --- */
.leaf-bg {
  position: relative;
}

.leaf-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Слабый акцент — не перебивает фоновое фото */
  background-image: radial-gradient(ellipse 70% 50% at 10% 15%, rgba(165, 214, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(244, 194, 194, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse 50% 40% at 80% 88%, rgba(109, 143, 102, 0.06) 0%, transparent 42%),
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.14) 0%, transparent 35%);
  pointer-events: none;
  z-index: 0;
}

.leaf-bg > .container {
  position: relative;
  z-index: 1;
}

/* Уважение к настройке «меньше анимации» в системе */
@media (prefers-reduced-motion: reduce) {
  .hero__ambient,
  .hero__brand-shell,
  .hero__logo,
  .hero__title {
    animation: none !important;
  }

  a.house-row__visual:hover,
  a.house-row__visual:focus-visible {
    transform: none;
  }

  .house-row__visual:hover img {
    transform: none;
  }

  .feature-card:hover,
  .exc-card:hover {
    transform: none;
  }
}
