:root {
  /* Палитра в духе референсов: лес, олива, беж, серый — без оранжевого и неона */
  --bg-main: #e8e6dc;
  --bg-warm: #f2f0e8;
  --text-main: #3d3b36;
  --text-muted: rgba(61, 59, 54, 0.72);
  --forest: #5d5e4f;
  --forest-deep: #454a3e;
  --forest-soft: #6b7359;
  --sage: #8b9578;
  --wood-beige: #d9d7cc;
  --stone: #c5c4bc;
  --white: #ffffff;
  --accent-primary: var(--forest);
  --accent-hover: var(--forest-deep);
  --accent-soft: rgba(93, 94, 79, 0.14);
  --shadow-soft: rgba(45, 48, 42, 0.12);
  --shadow-medium: rgba(45, 48, 42, 0.18);
  /* Кадры галерей и превью карточек: портрет 960×1280 */
  --photo-aspect-ratio: 960 / 1280;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

.container-custom {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(58, 64, 52, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  /* дочернее меню position:absolute / top:100% — от нижней границы шапки */
  overflow: visible;
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.logo {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.05em;
  grid-column: 1;
}

/* Главная: две строки — ЭндорфInn / АдреналInn */
.logo--index-plain {
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.12;
  max-width: 12.5em;
}

.logo-index-houses {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-size: clamp(0.75rem, 2vw, 0.88rem);
}

.logo-index-houses__line1 {
  display: block;
  letter-spacing: 0.06em;
}

.logo-index-houses__line2 {
  display: block;
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.92;
}

.footer-site-logo {
  margin: 0 0 12px;
}

.footer-site-logo img {
  max-height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.logo__stack {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  gap: 2px;
  max-width: 100%;
}

.logo__line1 {
  font-size: 1em;
  letter-spacing: 0.04em;
}

.logo__line2 {
  font-size: 0.86em;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.9;
  margin-top: 2px;
}

/* Десктоп: одна строка в «логотипе»; моб. — в @media */
@media (min-width: 981px) {
  .logo .logo__stack {
    display: none;
  }

  .logo .logo__full {
    display: block;
  }
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-self: center;
  grid-column: 2;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.site-nav a:hover {
  color: #d4d9cc;
}

/* Моб. меню: логотип вверху (на десктопе в горизонтальном nav скрыт) */
@media (min-width: 981px) {
  .site-nav .site-nav-logo {
    display: none !important;
  }

  /* ПК: пункты меню визуально на одной линии с иконками соцсетей, чуть крупнее */
  .site-nav {
    transform: translateY(-5px);
  }

  .site-nav a {
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
  }
}

.site-nav-logo {
  width: 100%;
  box-sizing: border-box;
  padding: 0 6px 20px;
  margin-bottom: 4px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-nav-logo__img {
  display: inline-block;
  width: min(200px, 70vw);
  max-height: 120px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.mobile-menu-btn {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  border-radius: 14px;
  padding: 0;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}

.mobile-menu-btn.is-open {
  background: rgba(139, 149, 120, 0.35);
  border-color: rgba(200, 210, 180, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.mobile-menu-btn-bars {
  display: block;
  position: relative;
  width: 22px;
  height: 16px;
  margin: 0 auto;
}

.mobile-menu-btn-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.95);
  transition: transform 0.3s ease, opacity 0.25s ease, top 0.3s ease;
}

.mobile-menu-btn-bars span:nth-child(1) {
  top: 1px;
}

.mobile-menu-btn-bars span:nth-child(2) {
  top: 7px;
}

.mobile-menu-btn-bars span:nth-child(3) {
  top: 13px;
}

.mobile-menu-btn.is-open .mobile-menu-btn-bars span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.mobile-menu-btn.is-open .mobile-menu-btn-bars span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-open .mobile-menu-btn-bars span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-column: 3;
  justify-self: end;
}

.header-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  min-width: 32px;
  min-height: 32px;
}

.header-contact a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  font-weight: 700;
}

.header-contact img {
  width: 29px;
  height: 29px;
  display: block;
}

.header-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
}

.header-tel__icon {
  display: none;
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.95);
}

.header-tel__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.header-tel__text {
  white-space: nowrap;
}

.header-contact a[href^="tel:"] {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.header-contact a[href^="tel:"] .header-tel__text {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.page-offset {
  padding-top: 72px;
}

/* Главная: фон героя от верхнего края вьюпорта (под фикс-шапкой), без бежевой полосы main */
body.theme-mixed .page-offset {
  padding-top: 0;
}

.theme-mixed .hero {
  padding-top: 72px;
  box-sizing: border-box;
}

/* Главняя: низ оверлея остаётся в тон фото, без «светлого» пятна */
.theme-mixed .hero-overlay {
  background: linear-gradient(
    168deg,
    rgba(38, 44, 36, 0.5) 0%,
    rgba(55, 62, 52, 0.28) 45%,
    rgba(24, 30, 22, 0.48) 100%
  );
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-short {
  min-height: 78vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(58, 64, 52, 0.35) 0%,
    rgba(72, 78, 66, 0.22) 45%,
    rgba(232, 230, 220, 0.2) 100%
  );
}

.theme-endorfinn .hero-overlay {
  background: linear-gradient(
    160deg,
    rgba(52, 62, 54, 0.42) 0%,
    rgba(88, 98, 86, 0.28) 50%,
    rgba(210, 216, 206, 0.18) 100%
  );
}

.theme-adrenalin .hero-overlay {
  background: linear-gradient(
    155deg,
    rgba(56, 52, 48, 0.4) 0%,
    rgba(90, 84, 74, 0.26) 55%,
    rgba(220, 216, 208, 0.16) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
}

/* Страницы домов: одинаковая монограмма над заголовком (моб. и десктоп) */
.theme-endorfinn .hero .hero-content,
.theme-adrenalin .hero .hero-content {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.hero-brand-mark {
  display: flex;
  justify-content: center;
  margin: 0 auto 18px;
}

/* Герой на страницах «Дом…»: крупный знак (≈ в 3 раза больше прежнего 88px) */
.hero-brand-mark__img {
  width: clamp(192px, 36vw, 264px);
  max-width: 92%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

.hero-home-layout {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 360px));
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  margin-top: 56px;
}

.hero-top-copy {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  z-index: 3;
  margin-top: -110px;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.theme-mixed .hero-title {
  color: var(--white);
}

.hero-subtitle {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2.3vw, 1.35rem);
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

.hero-orb-card {
  display: block;
  text-decoration: none;
  color: #fff;
  text-align: center;
  border-radius: 100px;
  padding: 8px 6px;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.hero-orb-card:hover {
  transform: translateY(-8px) scale(1.05);
  filter: saturate(1.08);
}

.hero-orb-image {
  width: min(320px, 80vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(60, 47, 47, 0.28);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.hero-orb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-orb-card:hover .hero-orb-image {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 40px var(--shadow-medium), 0 0 0 8px rgba(255, 255, 255, 0.12);
}

.hero-orb-card.orb-endorfinn .hero-orb-image {
  border-color: rgba(212, 217, 204, 0.95);
  box-shadow: 0 20px 44px rgba(45, 52, 42, 0.35), 0 0 0 1px rgba(139, 149, 120, 0.35);
}

.hero-orb-card.orb-adrenalin .hero-orb-image {
  border-color: rgba(228, 224, 214, 0.95);
  box-shadow: 0 20px 44px rgba(52, 48, 42, 0.36), 0 0 0 1px rgba(120, 115, 105, 0.35);
}

.hero-orb-title {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 700;
  text-shadow: 0 6px 18px rgba(60, 47, 47, 0.35);
}

.hero-orb-meta {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 6px 18px rgba(60, 47, 47, 0.35);
}

.section {
  padding: 84px 0;
}

.section-soft {
  background: linear-gradient(180deg, var(--bg-warm), var(--wood-beige));
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.section-title,
.hero-title {
  position: relative;
}

.section-title::after,
.hero-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: clamp(84px, 18vw, 180px);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest), rgba(93, 94, 79, 0));
  box-shadow: none;
}

.hero-top-copy .hero-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.theme-endorfinn .hero-title::after,
.theme-endorfinn .section-title::after {
  background: linear-gradient(90deg, #6f7a62, rgba(111, 122, 98, 0));
}

/* подчёркивание H1 в герое — по центру, как весь блок */
.theme-endorfinn .hero .hero-content .hero-title::after,
.theme-adrenalin .hero .hero-content .hero-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.theme-adrenalin .hero-title::after,
.theme-adrenalin .section-title::after {
  background: linear-gradient(90deg, #6d6558, rgba(109, 101, 88, 0));
}

.theme-endorfinn .hero.hero-short .hero-title {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.theme-endorfinn .hero.hero-short .hero-subtitle {
  color: #dde3d6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.theme-adrenalin .hero.hero-short .hero-title {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.theme-adrenalin .hero.hero-short .hero-subtitle {
  color: #e8e4dc;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.theme-mixed .hero-title::after {
  background: linear-gradient(90deg, #7a8670, #6d6558, rgba(109, 101, 88, 0));
  box-shadow: none;
}

.section-text {
  margin: 0;
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.banya-tariff-card {
  margin-top: 28px;
  max-width: 760px;
  border-radius: 20px;
  padding: 26px 24px 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(60, 47, 47, 0.1);
  box-shadow: 0 10px 28px var(--shadow-soft);
}

.banya-tariff-lead {
  margin: 0 0 16px;
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.banya-tariff-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.banya-tariff-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(60, 47, 47, 0.08);
  font-size: 1.04rem;
  line-height: 1.45;
}

.banya-tariff-list li:first-child {
  padding-top: 0;
}

.banya-tariff-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.banya-tariff-name {
  color: var(--text-main);
  font-weight: 500;
}

.banya-tariff-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--forest-deep);
  text-align: right;
}

.banya-tariff-note {
  margin: 20px 0 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: none;
}

.banya-tariff-note a {
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
}

.banya-tariff-note a:hover {
  color: var(--forest-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.perk-callout {
  margin-top: 28px;
  max-width: 760px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.78),
    rgba(139, 149, 120, 0.2)
  );
  border: 1px solid rgba(93, 94, 79, 0.22);
  box-shadow: 0 8px 22px var(--shadow-soft);
}

.perk-callout-title {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--forest-deep);
  letter-spacing: 0.01em;
}

.perk-callout p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.58;
  color: var(--text-muted);
}

.perk-callout strong {
  color: var(--forest-deep);
  font-weight: 700;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: var(--accent-primary);
  color: var(--white);
  border-radius: 999px;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 12px 26px var(--shadow-medium);
}

.theme-endorfinn {
  --accent-primary: #5f6b52;
  --accent-hover: #4d5643;
}

.theme-adrenalin {
  --accent-primary: #5a5648;
  --accent-hover: #4a443a;
}

.btn-ghost {
  text-decoration: none;
  border: 1px solid rgba(60, 47, 47, 0.18);
  color: var(--text-main);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.8);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-ghost:hover {
  background: #fff;
  border-color: rgba(60, 47, 47, 0.32);
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.house-card {
  display: block;
  text-decoration: none;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  color: var(--text-main);
  border: 1px solid rgba(60, 47, 47, 0.08);
  box-shadow: 0 14px 40px rgba(60, 47, 47, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.house-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 44px rgba(60, 47, 47, 0.14);
}

.house-card img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--photo-aspect-ratio);
  object-fit: cover;
}

.house-card-content {
  padding: 24px;
}

.house-card-content h3 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.house-card-content p {
  margin: 0 0 16px;
  color: rgba(60, 47, 47, 0.8);
}

.stats-grid,
.amenities-grid,
.review-grid,
.common-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.stat-card,
.amenity-card,
.review-card {
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(60, 47, 47, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.theme-endorfinn .stat-card,
.theme-endorfinn .amenity-card,
.theme-endorfinn .review-card {
  box-shadow: 0 1px 0 rgba(93, 94, 79, 0.08), 0 8px 24px var(--shadow-soft);
}

.theme-adrenalin .stat-card,
.theme-adrenalin .amenity-card,
.theme-adrenalin .review-card {
  box-shadow: 0 1px 0 rgba(93, 94, 79, 0.08), 0 8px 24px var(--shadow-soft);
}

.stat-card h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.stat-card p {
  margin: 0;
}

.amenities-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.amenity-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.amenity-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--forest-soft);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.common-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.common-card {
  display: block;
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(60, 47, 47, 0.08);
  background: #fff;
  color: var(--text-main);
}

.common-card img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--photo-aspect-ratio);
  object-fit: cover;
}

.common-card .inner {
  padding: 16px;
}

.common-card h3 {
  margin: 0 0 8px;
}

.common-card p {
  margin: 0;
  color: rgba(60, 47, 47, 0.8);
}

.review-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.review-card p {
  margin: 0 0 10px;
}

.review-card span {
  color: rgba(60, 47, 47, 0.74);
  font-size: 0.95rem;
}

.site-footer {
  background: linear-gradient(180deg, #f5f3ec, #e4e2d8);
  border-top: 1px solid rgba(69, 74, 62, 0.15);
  padding: 48px 0 100px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

.footer-brand h3 {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  font-weight: 700;
  color: var(--forest-deep);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  max-width: 420px;
  font-size: 1.02rem;
  line-height: 1.65;
}

.footer-column h4 {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(93, 94, 79, 0.35);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  padding: 2px 0;
}

.footer-links a:hover {
  color: var(--forest);
}

.footer-contact {
  display: grid;
  gap: 12px;
}

.footer-contact a {
  text-decoration: none;
  color: var(--forest-deep);
  font-size: 1.12rem;
  font-weight: 700;
}

.footer-contact span {
  display: block;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 280px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(69, 74, 62, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.footer-bottom .footer-registry a {
  color: var(--forest);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom .footer-registry a:hover {
  color: var(--forest-deep);
}

.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-row img {
  width: 30px;
  height: 30px;
}

.social-row a {
  text-decoration: none;
  color: var(--text-main);
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(60, 47, 47, 0.12);
  box-shadow: 0 12px 34px rgba(60, 47, 47, 0.12);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-contact img {
  width: 20px;
  height: 20px;
}

.floating-contact a,
.floating-contact span {
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
}

.swiper {
  border-radius: 24px;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid rgba(60, 47, 47, 0.1);
  width: min(100%, 520px);
  margin-left: auto;
  margin-right: auto;
}

.house-swiper .swiper-slide {
  height: auto;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--photo-aspect-ratio);
  object-fit: cover;
  cursor: pointer;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  text-shadow: 0 2px 12px rgba(60, 47, 47, 0.4);
}

.swiper-pagination-bullet-active {
  background: var(--forest);
}

.realt-block {
  background: #fff;
  border: 1px solid rgba(60, 47, 47, 0.09);
  border-radius: 16px;
  min-height: 120px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(60, 47, 47, 0.7);
}

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hr-widget-lift {
  margin-top: -56px;
  margin-bottom: 10px;
}

@media (max-width: 980px) {
  /* Главная: отступ шапки внутри героя; main без padding, чтобы фото шло с верха (см. body.theme-mixed .page-offset) */
  .page-offset {
    padding-top: 88px;
  }

  body.theme-mixed .page-offset {
    padding-top: 0;
  }

  .theme-mixed .hero {
    align-items: flex-start;
    min-height: auto;
    padding-top: 88px;
    padding-bottom: 16px;
  }

  .theme-mixed .hero .hero-content {
    width: 100%;
    max-width: none;
    padding-top: 0;
  }

  .hero-home-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
  }

  .hero-top-copy {
    margin-top: 0;
    padding-top: 0;
  }

  .hero-orb-image {
    width: min(300px, 86vw);
  }

  .home-cards {
    grid-template-columns: 1fr;
  }

  /* DOM: логотип → соцсети (центр свободного пространства) → бургер. Одна визуальная полоса 48px для иконок и кнопки. */
  .header-inner {
    position: relative;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
    gap: 6px 8px;
    align-items: start;
    min-height: 80px;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    max-width: 100%;
    align-self: start;
    justify-self: start;
    padding-top: 0;
  }

  .logo .logo__full {
    display: none;
  }

  .logo .logo__stack {
    display: flex;
  }

  .header-contact {
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: start;
    gap: 2px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    /* Ровно как кнопка меню: одна «линия» инструментов, не растягивается на высоту двухстрочного лого */
    height: 48px;
    max-height: 48px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 0;
  }

  .header-contact a.header-social,
  .header-contact a.header-tel {
    min-width: 48px;
    min-height: 48px;
    max-height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .header-tel__icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-tel__text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .header-tel {
    position: relative;
  }

  .mobile-menu-btn {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    justify-self: end;
    align-self: start;
    flex-shrink: 0;
    position: relative;
    z-index: 120;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    margin-top: 0;
  }

  body.nav-menu-open {
    overflow: hidden;
  }

  body.nav-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(26, 28, 24, 0.52);
    pointer-events: none;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    box-sizing: border-box;
    z-index: 110;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 28px 22px calc(48px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    min-height: calc(100dvh - 5.5rem);
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(
      168deg,
      #3d4436 0%,
      #32382d 42%,
      #282c24 100%
    );
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .site-nav::before {
    content: "Навигация";
    display: block;
    padding: 0 6px 16px;
    margin-bottom: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(200, 206, 188, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav:has(.site-nav-logo)::before {
    content: none;
    display: none;
    padding: 0;
    margin: 0;
    border: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 18px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.2s ease,
      transform 0.2s ease;
  }

  .site-nav a:hover {
    color: #fff;
    background: rgba(139, 149, 120, 0.28);
    border-color: rgba(180, 192, 160, 0.45);
    transform: translateX(2px);
  }

  .site-nav a:active {
    background: rgba(139, 149, 120, 0.38);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hr-widget-lift {
    margin-top: -34px;
  }

  .banya-tariff-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .banya-tariff-price {
    white-space: normal;
    text-align: left;
  }
}
