/* ===== Variables ===== */
:root {
  --color-bg: #f4f1eb;
  --color-bg-dark: #0f1f24;
  --color-surface: #ffffff;
  --color-primary: #1a4d5c;
  --color-primary-light: #2a6b7d;
  --color-accent: #c8952e;
  --color-accent-hover: #b07f1f;
  --color-text: #1c2b30;
  --color-text-muted: #5a6b72;
  --color-border: rgba(26, 77, 92, 0.12);
  --font: 'Manrope', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(15, 31, 36, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 31, 36, 0.15);
  --header-h: 80px;
  --header-logo-max-h: var(--header-h);
  --transition: 0.25s ease;
  --cal-free-bg: #ffffff;
  --cal-free-border: rgba(26, 77, 92, 0.18);
  --cal-booked-bg: #f5d0d0;
  --cal-booked-border: #e08080;
  --cal-booked-text: #9b2c2c;
  --cal-pending-bg: #e4e7eb;
  --cal-pending-border: #c5cad1;
  --cal-pending-text: #6b7280;
  --cal-arrival-bg: #f5d0d0;
  --cal-arrival-border: #e08080;
  --cal-arrival-text: #9b2c2c;
  --cal-stay-bg: #d4e4f7;
  --cal-stay-border: #6a9fd4;
  --cal-stay-text: #1e4a72;
  --cal-departure-bg: #fff3cd;
  --cal-departure-border: #e6c84a;
  --cal-departure-text: #856404;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.btn--outline {
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn--sm { padding: 10px 20px; font-size: 14px; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.header--scrolled,
body[data-house-id] .header,
body[data-attraction-id] .header,
body[data-legal-page] .header {
  background: rgba(15, 31, 36, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}
/* Главная: крупный логотип и без подложки, пока не прокрутили */
body:has(#hero) .header:not(.header--scrolled) {
  --header-logo-max-h: 148px;
  height: auto;
  min-height: var(--header-h);
  padding: 16px 0;
}
body:has(#hero) .header:not(.header--scrolled) .header__inner {
  min-height: calc(var(--header-h) - 24px);
}
body:has(#hero) .header.header--scrolled {
  height: var(--header-h);
  padding: 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}
.header__logo {
  display: flex;
  align-items: center;
  align-self: center;
  color: #fff;
  flex-shrink: 0;
}
.header__logo img {
  width: auto;
  height: auto;
  max-height: var(--header-logo-max-h);
  object-fit: contain;
  flex-shrink: 0;
  transition: max-height var(--transition);
}
.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.header__nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
}
.header__nav a,
.header__nav-group > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  padding: 0 11px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  transition: var(--transition);
}
.header__nav a:hover,
.header__nav-group > a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.header__nav-group {
  position: relative;
  display: flex;
  align-items: center;
}
.header__nav-dropdown::after {
  content: '';
  width: 0;
  height: 0;
  margin-top: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
}
.header__subnav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  padding: 8px;
  background: rgba(15, 31, 36, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 2px;
  z-index: 10;
}
.header__nav-group::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.header__nav-group:hover .header__subnav,
.header__nav-group:focus-within .header__subnav { display: flex; }
.header__subnav a {
  display: flex;
  align-items: center;
  height: auto;
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}
.header__subnav a.is-active {
  background: rgba(200, 149, 46, 0.18);
  color: var(--color-accent);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 100px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(200, 149, 46, 0.28);
}
.header__phone svg { flex-shrink: 0; }
.header__phone:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 149, 46, 0.34);
}
.header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  transition: var(--transition);
}
.header__burger:hover { background: rgba(255, 255, 255, 0.12); }
.header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.header__nav-panel { display: contents; }
.header__nav-top,
.header__nav-footer { display: none; }

.header__nav-vk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  transition: opacity var(--transition);
}
.header__nav-vk:hover {
  opacity: 0.82;
  color: #fff;
}
.header__nav-vk img {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.header__nav-vk-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}
/* Слой 1 — медиа */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__fallback,
.hero__fallback img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero--static .hero__video {
  display: none;
}
.hero__bg img,
.hero__bg picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Слой 2 — подложка: снизу плотнее (текст), сверху легче (логотип, небо) */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(15, 31, 36, 0.97) 0%,
      rgba(15, 31, 36, 0.88) 28%,
      rgba(15, 31, 36, 0.55) 58%,
      rgba(15, 31, 36, 0.32) 100%
    ),
    radial-gradient(
      ellipse 120% 80% at 20% 100%,
      rgba(15, 31, 36, 0.75) 0%,
      transparent 55%
    );
}
.hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 31, 36, 0.45) 0%,
    transparent 45%,
    transparent 100%
  );
}
/* Слой 3 — текст */
.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: calc(var(--header-h) + 40px);
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.55),
    0 1px 4px rgba(0, 0, 0, 0.65);
}
.hero__title em {
  font-style: normal;
  color: var(--color-accent);
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin-bottom: 32px;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}
.hero__label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(15, 31, 36, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.hero__stats strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}
.hero__stats span { font-size: 13px; color: rgba(255, 255, 255, 0.78); }
@media (max-width: 768px) {
  .hero__label { display: none; }
  .hero__content { padding-top: calc(var(--header-h) + 114px); }
  .hero__overlay {
    background:
      linear-gradient(
        to top,
        rgba(15, 31, 36, 0.9) 0%,
        rgba(15, 31, 36, 0.78) 40%,
        rgba(15, 31, 36, 0.35) 100%
      );
  }
  .hero__overlay::after { opacity: 0.55; }
  .hero__title em { display: block; }
}

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section__header { margin-bottom: 48px; max-width: 640px; }
.section__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.section__desc { color: var(--color-text-muted); font-size: 17px; }

.legal__content {
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.65;
}
.legal__content p {
  margin: 0 0 16px;
}
.legal__content p:last-child {
  margin-bottom: 0;
}
.legal__content h2 {
  margin: 28px 0 12px;
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
}
.legal__content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== About ===== */
.about { background: var(--color-surface); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.about__main .section__title { margin-bottom: 20px; }
.about__text p { color: var(--color-text-muted); margin-bottom: 16px; font-size: 17px; line-height: 1.65; }
.about__text p:last-child { margin-bottom: 0; }
.about__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-feature {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid rgba(26, 77, 92, 0.06);
  transition: var(--transition);
}
.about-feature:hover {
  transform: translateX(4px);
  border-color: rgba(26, 77, 92, 0.12);
  box-shadow: 0 12px 28px rgba(15, 31, 36, 0.08);
}
.about-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  font-size: 3rem;
  line-height: 1;
  border-radius: 22px;
  flex-shrink: 0;
}
.about-feature--boats .about-feature__icon {
  background: linear-gradient(145deg, #dceef5 0%, #b8dce8 100%);
  box-shadow: inset 0 -2px 0 rgba(26, 77, 92, 0.08);
}
.about-feature--camp .about-feature__icon {
  background: linear-gradient(145deg, #e8f4e0 0%, #c8ddb8 100%);
  box-shadow: inset 0 -2px 0 rgba(26, 77, 92, 0.08);
}
.about-feature--fish .about-feature__icon {
  background: linear-gradient(145deg, #e3f0e3 0%, #c5dfc5 100%);
  box-shadow: inset 0 -2px 0 rgba(26, 77, 92, 0.08);
}
.about-feature--home .about-feature__icon {
  background: linear-gradient(145deg, #f7ead4 0%, #edd5ab 100%);
  box-shadow: inset 0 -2px 0 rgba(200, 149, 46, 0.15);
}
.about-feature__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.about-feature__content p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ===== Houses cards (index) ===== */
.houses-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-bottom: 96px;
}
.house-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.house-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.house-card--featured { border: 2px solid var(--color-accent); }
.house-card__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.house-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}
.house-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.house-card:hover .house-card__image img { transform: scale(1.04); }
.house-card__badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 14px;
  background: rgba(15, 31, 36, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.house-card__gallery-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(15, 31, 36, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.house-card__gallery-btn:hover {
  background: var(--color-accent);
  transform: scale(1.04);
}
.house-card__gallery-btn svg { flex-shrink: 0; }
.house-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  color: inherit;
}
.house-card__body:hover .house-card__more { color: var(--color-accent-hover); }
.house-card__body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.house-card__new {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 100px;
}
.house-card__location {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 600;
}
.house-card__excerpt {
  font-size: 14px;
  color: var(--color-text-muted);
  flex: 1;
}
.house-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.house-card__tags li {
  padding: 4px 10px;
  background: var(--color-bg);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.house-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}
.house-card__price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}
.house-card__price small { font-size: 13px; font-weight: 500; color: var(--color-text-muted); }
.house-card__more {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.house-card__avail {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-muted);
}
.house-card__avail strong {
  font-weight: 700;
  color: #1f6b38;
}

/* ===== House page ===== */
.house-page-wrap { padding-top: var(--header-h); }
.house-page .house-section__body { padding-top: 40px; padding-bottom: 64px; }
.house-others {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}
.house-others__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 24px;
}
.houses-cards--compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.house-page-error {
  padding: 120px 0;
  text-align: center;
}

.page-error {
  min-height: calc(100vh - var(--header-h) - 120px);
  padding: 48px 0 80px;
  display: flex;
  align-items: center;
}
.page-error__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.page-error__code {
  margin: 0 0 8px;
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-primary);
  opacity: 0.18;
}
.page-error__title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--color-text);
}
.page-error__text {
  margin: 0 0 28px;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.page-error__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.page-error__actions .btn--outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  backdrop-filter: none;
}
.page-error__actions .btn--outline:hover {
  background: rgba(26, 77, 92, 0.08);
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
}
.page-error__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-error__links a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}
.page-error__links a:hover {
  color: var(--color-accent);
}

/* ===== Houses intro & sections ===== */
.houses-intro {
  padding-top: 96px;
  padding-bottom: 32px;
}

.house-section {
  margin-bottom: 48px;
}
.house-section__hero-wrap {
  position: relative;
  overflow: hidden;
}
.house-section__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 560px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(15, 31, 36, 0.88) 0%, rgba(15, 31, 36, 0.15) 55%, rgba(15, 31, 36, 0.05) 100%);
}
.house-section__hero-content {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  z-index: 3;
  padding-bottom: 20px;
  color: #fff;
  pointer-events: none;
}

/* House gallery */
.house-gallery { background: var(--color-bg-dark); }
.house-gallery__main {
  position: relative;
  height: 560px;
  overflow: hidden;
}
.house-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.house-gallery__slide.is-active { opacity: 1; }
.house-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.house-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--color-primary);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.house-gallery__nav:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.house-gallery__nav--prev { left: 16px; }
.house-gallery__nav--next { right: 16px; }
.house-gallery__counter {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(15, 31, 36, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.house-gallery__thumbs {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  scrollbar-width: thin;
  background: #fff;
  border-top: 1px solid rgba(15, 31, 36, 0.08);
  box-shadow: 0 -4px 20px rgba(15, 31, 36, 0.06);
}
.house-gallery__thumb {
  flex-shrink: 0;
  width: 84px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(15, 31, 36, 0.12);
  opacity: 0.75;
  transition: var(--transition);
  padding: 0;
  background: var(--color-surface);
  box-shadow: 0 2px 8px rgba(15, 31, 36, 0.08);
}
.house-gallery__thumb.is-active,
.house-gallery__thumb:hover {
  opacity: 1;
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(15, 31, 36, 0.14);
  transform: translateY(-2px);
}
.house-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.house-section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}
.house-section__location {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
}
.house-section__body {
  padding: 40px 0 0;
}
.house-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.house-section__address {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.house-section__address svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}
.house-section__address strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.house-section__address p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  font-weight: 500;
}
.house-section__map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}
.house-section__map-link:hover { color: var(--color-accent); }
.house-section__desc {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.house-section__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.house-section__tags li {
  padding: 6px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}
.house-section__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 28px;
}
.house-section__features li {
  font-size: 14px;
  color: var(--color-text-muted);
  padding-left: 18px;
  position: relative;
}
.house-section__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.house-section__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.house-section__price-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
}
.house-section__price-note {
  font-size: 13px;
  color: var(--color-text-muted);
}
.house-section__sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.house-section__map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 220px;
  box-shadow: var(--shadow);
}
.house-section__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.house-video-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}
.house-video-section__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.house-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-dark);
  box-shadow: var(--shadow);
}
.house-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.house-section__calendar-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.house-section__calendar {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.house-section__calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}
.house-section__calendar-header h2,
.house-section__calendar-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.calendar-legend__item {
  font-size: 12px;
  color: var(--color-text-muted);
  padding: 4px 10px;
  background: var(--color-surface);
  border-radius: 100px;
}
.house-section__calendar-frame {
  position: relative;
  min-height: 120px;
  overflow: hidden;
}
.house-section__calendar-loading,
.house-section__calendar-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--color-text-muted);
  font-size: 14px;
  text-align: center;
}
.house-section__calendar-error .btn { margin-top: 8px; }

/* ===== Booking calendar widget ===== */
.bk-cal { padding: 16px 16px 12px; }
.bk-cal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.bk-cal__range {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  flex: 1;
}
.bk-cal__nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-primary);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.bk-cal__nav:hover:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
}
.bk-cal__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.bk-cal__months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bk-cal__month {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.bk-cal__month-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 10px;
}
.bk-cal__weekdays,
.bk-cal__week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.bk-cal__weekdays { margin-bottom: 4px; }
.bk-cal__weekday {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  color: var(--color-text-muted);
  text-transform: uppercase;
}
.bk-cal__weeks { display: flex; flex-direction: column; gap: 3px; }
.bk-cal__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.bk-cal__day--empty {
  background: transparent;
  border-color: transparent;
}
.bk-cal__day--free {
  background: var(--cal-free-bg);
  border-color: var(--cal-free-border);
  color: var(--color-primary);
  cursor: default;
  transition: var(--transition);
}
.bk-cal__day--free[role="button"] { cursor: pointer; }
.bk-cal__day--free[role="button"]:hover {
  background: #e8f4f8;
  border-color: var(--color-primary-light);
  box-shadow: 0 2px 8px rgba(26, 77, 92, 0.08);
}
.bk-cal__day--free:hover {
  background: var(--color-bg);
  border-color: var(--color-primary-light);
  box-shadow: 0 2px 8px rgba(26, 77, 92, 0.08);
}
.bk-cal__day--in-range {
  background: rgba(200, 149, 46, 0.18);
  border-color: rgba(200, 149, 46, 0.35);
  color: var(--color-primary);
}
.bk-cal__day--check-in,
.bk-cal__day--check-out {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(200, 149, 46, 0.35);
}
.bk-cal__hint {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.bk-cal__day--booked {
  background: var(--cal-booked-bg);
  border-color: var(--cal-booked-border);
  color: var(--cal-booked-text);
  cursor: not-allowed;
}
.bk-cal__day--pending {
  background: var(--cal-pending-bg);
  border-color: var(--cal-pending-border);
  color: var(--cal-pending-text);
  cursor: not-allowed;
}
.bk-cal__day--arrival {
  background: var(--cal-arrival-bg);
  border-color: var(--cal-arrival-border);
  color: var(--cal-arrival-text);
  cursor: not-allowed;
}
.bk-cal__day--stay {
  background: var(--cal-stay-bg);
  border-color: var(--cal-stay-border);
  color: var(--cal-stay-text);
  cursor: not-allowed;
}
.bk-cal__day--busy {
  background: var(--cal-stay-bg);
  border-color: var(--cal-stay-border);
  color: var(--cal-stay-text);
  cursor: not-allowed;
}
.bk-cal__day--departure {
  background: var(--cal-departure-bg);
  border-color: var(--cal-departure-border);
  color: var(--cal-departure-text);
  cursor: not-allowed;
}
/* Выезд + можно новый заезд: половина жёлтая, половина красная */
.bk-cal__day--departure[role="button"] {
  cursor: pointer;
  background: linear-gradient(
    135deg,
    var(--cal-departure-bg) 0%,
    var(--cal-departure-bg) 50%,
    var(--cal-arrival-bg) 50%,
    var(--cal-arrival-bg) 100%
  );
  border-color: var(--cal-departure-border);
  color: var(--cal-departure-text);
}
.bk-cal__day--departure[role="button"]:hover {
  filter: brightness(0.97);
  box-shadow: 0 2px 8px rgba(133, 100, 4, 0.15);
}
.bk-cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.bk-cal__legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--color-text-muted);
}
.bk-cal__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.bk-cal__legend-dot--free { background: var(--cal-free-bg); border: 1px solid var(--cal-free-border); }
.bk-cal__legend-dot--booked { background: var(--cal-booked-bg); border: 1px solid var(--cal-booked-border); }
.bk-cal__legend-dot--pending { background: var(--cal-pending-bg); border: 1px solid var(--cal-pending-border); }
.bk-cal__legend-dot--arrival { background: var(--cal-arrival-bg); border: 1px solid var(--cal-arrival-border); }
.bk-cal__legend-dot--stay { background: var(--cal-stay-bg); border: 1px solid var(--cal-stay-border); }
.bk-cal__legend-dot--busy { background: var(--cal-stay-bg); border: 1px solid var(--cal-stay-border); }
.bk-cal__legend-dot--departure {
  background: linear-gradient(
    135deg,
    var(--cal-departure-bg) 0%,
    var(--cal-departure-bg) 50%,
    var(--cal-arrival-bg) 50%,
    var(--cal-arrival-bg) 100%
  );
  border: 1px solid var(--cal-departure-border);
}

@media (max-width: 1024px) {
  .bk-cal__months { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .bk-cal__months { grid-template-columns: 1fr; }
}

.house-section__calendar-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.house-section__calendar-status {
  padding: 10px 20px;
  font-size: 12px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}
.house-section--loading {
  padding: 60px 0;
  background: var(--color-surface);
  margin-bottom: 24px;
  border-radius: var(--radius);
}
.house-section__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--color-text-muted);
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }



/* ===== Attractions ===== */
.attractions { background: var(--color-bg-dark); color: #fff; }
.attractions .section__title { color: #fff; }
.attractions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.attraction-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.attraction-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.attraction-card--wide { grid-column: span 2; flex-direction: row; }
.attraction-card--wide .attraction-card__image {
  width: 45%;
  min-height: 220px;
  flex-shrink: 0;
}
.attraction-card--wide .attraction-card__body { flex: 1; }
.attraction-card__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.attraction-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}
.attraction-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.attraction-card:hover .attraction-card__image img { transform: scale(1.04); }
.attraction-card__gallery-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(15, 31, 36, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.attraction-card__gallery-btn:hover {
  background: var(--color-accent);
  transform: scale(1.04);
}
.attraction-card__gallery-btn svg { flex-shrink: 0; }
.attraction-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.attraction-card__body:hover .attraction-card__more { text-decoration: underline; }
.attraction-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.attraction-card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; flex: 1; }
.attractions__grid--page .attraction-card__body p { color: var(--color-text-muted); }
.attraction-card__more {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}
.attraction-card:hover .attraction-card__more { text-decoration: underline; }

/* Attraction detail page */
.attraction-page .house-section__body { padding-top: 40px; padding-bottom: 64px; }
.attraction-page__actions { margin-top: 8px; }
.attraction-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.attraction-info__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.attraction-info__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
}
.attraction-services {
  margin: 24px 0;
  padding: 20px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.attraction-services h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.attraction-services__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.attraction-services__list li {
  font-size: 14px;
  color: var(--color-text);
  padding-left: 20px;
  position: relative;
}
.attraction-services__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.attraction-others .attractions__grid--page {
  background: transparent;
}
.attractions__grid--page .attraction-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}
.attractions__grid--page .attraction-card p { color: var(--color-text-muted); }
.attractions__grid--page .attraction-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
}

/* ===== Trophies ===== */
.trophies { background: var(--color-surface); }
.trophies__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}
.trophy-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}
.trophy-item:hover { transform: scale(1.02); }
.trophy-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trophy-item--wide { grid-column: span 2; }

/* ===== Prices ===== */
.prices > .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.prices .section__header {
  margin-bottom: 0;
  max-width: 720px;
}
.price-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.price-card--accent {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--color-primary);
  color: #fff;
}
.price-card__photo {
  min-height: 280px;
  background: #0f1f24;
}
.price-card__photo picture,
.price-card__photo img {
  width: 100%;
  height: 100%;
  display: block;
}
.price-card__photo img {
  object-fit: cover;
}
.price-card__body {
  padding: 32px;
}
.price-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.price-card--accent h3 { border-color: rgba(255,255,255,0.15); }
.price-list { display: flex; flex-direction: column; gap: 16px; }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 15px;
}
.price-list span { color: var(--color-text-muted); }
.price-card--accent .price-list span { color: rgba(255,255,255,0.7); }
.price-list strong { font-weight: 700; white-space: nowrap; color: var(--color-primary); }
.price-card--accent .price-list strong { color: var(--color-accent); }
.price-card__note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.45;
}
.price-card__note--muted {
  color: var(--color-text-muted);
}

/* ===== Booking ===== */
.booking { background: var(--color-bg); }
.booking__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}
.booking__info {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}
.booking__info p { color: var(--color-text-muted); margin-bottom: 24px; }
.booking__times {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.booking__times div {
  padding: 16px 14px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  flex: 1;
  border: 1px solid var(--color-border);
}
.booking__times strong { display: block; font-size: 13px; color: var(--color-text-muted); margin-bottom: 4px; }
.booking__times span { font-size: 1.1rem; font-weight: 700; color: var(--color-primary); }
.booking__phones { display: flex; flex-direction: column; gap: 16px; margin-bottom: 12px; }
.booking__phone-item { display: flex; flex-direction: column; gap: 4px; }
.booking__phone {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  transition: var(--transition);
}
.booking__phone--secondary { font-size: 1.25rem; font-weight: 700; color: var(--color-text); }
.booking__phone:hover { color: var(--color-accent); }
.booking__phone-note { font-size: 14px; color: var(--color-text-muted); }
.booking__email { font-size: 15px; color: var(--color-text-muted); }
.booking__email:hover { color: var(--color-primary); }
.booking__houses h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.booking__houses-note {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.houses-cards--booking {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-bottom: 0;
}
.prices .houses-cards--booking {
  grid-template-columns: repeat(2, 1fr);
}
.houses-cards--booking .house-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.houses-cards--booking .house-card__tags li {
  background: var(--color-bg);
}
.houses-cards--booking .house-card__body {
  padding: 18px;
}
.houses-cards--booking .house-card__body h3 {
  font-size: 1.1rem;
}

/* ===== Booking request form ===== */
.bk-form {
  margin-top: 20px;
  padding: 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bk-form__header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.bk-form__header p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.bk-form__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bk-form__date-card {
  padding: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.bk-form__date-label {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.bk-form__date-value {
  font-size: 14px;
  color: var(--color-primary);
}
.bk-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bk-form__field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}
.bk-form__field small {
  font-weight: 500;
  color: var(--color-text-muted);
}
.bk-form__field input,
.bk-form__field select,
.bk-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}
.bk-form__field input:focus,
.bk-form__field select:focus,
.bk-form__field textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(26, 77, 92, 0.08);
}
.bk-form__summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}
.bk-form__error {
  font-size: 13px;
  color: var(--cal-booked-text);
  background: #fff4f4;
  border: 1px solid #f0c7c7;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.bk-form__error a {
  color: var(--color-primary);
  font-weight: 700;
  white-space: nowrap;
}
.bk-form__error a:hover { color: var(--color-accent); }
.bk-form__success {
  font-size: 13px;
  color: #1f6b43;
  background: #edf8f1;
  border: 1px solid #b9e3c9;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.bk-form__submit { width: 100%; }
.bk-form__calendar-error {
  font-size: 14px;
  color: var(--color-text-muted);
  padding: 16px;
}
.bk-form--overlay {
  margin-top: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.bk-form__trip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.bk-form__trip-item span {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.bk-form__trip-item strong {
  font-size: 14px;
  color: var(--color-primary);
}
.bk-form__trip-arrow {
  color: var(--color-text-muted);
  font-size: 18px;
  padding-top: 14px;
}

/* Selection bar after calendar */
.bk-selection-wrap { margin-top: 16px; }
.bk-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #edf7f3 0%, #f7faf9 100%);
  border: 1px solid #c8e3d6;
  border-radius: var(--radius-sm);
}
.bk-selection[hidden] { display: none; }
.bk-selection__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.bk-selection__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.bk-selection__range {
  font-size: 1rem;
  color: var(--color-primary);
}
.bk-selection__meta {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}
.bk-selection__error {
  width: 100%;
  margin: 0;
  font-size: 13px;
  color: var(--cal-booked-text);
}
.bk-selection__btn {
  flex-shrink: 0;
  min-width: 180px;
}

/* Booking overlay */
.bk-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.bk-overlay[hidden] { display: none; }
.bk-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 42, 0.55);
  backdrop-filter: blur(4px);
}
.bk-overlay__dialog {
  position: relative;
  width: min(100%, 480px);
  max-height: min(92vh, 760px);
  overflow: auto;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  padding: 24px 24px 28px;
}
.bk-overlay__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--color-text-muted);
  transition: var(--transition);
}
.bk-overlay__close:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}
.bk-overlay__body .bk-form { gap: 16px; }

.booking__request {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.booking__request-calendar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
}
.booking__request-calendar .bk-cal { padding: 20px; }
.booking__request-selection { margin-top: 16px; }

/* ===== Contacts ===== */
.contacts { background: var(--color-surface); }
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
.contacts__info { display: flex; flex-direction: column; gap: 28px; }
.contact-item strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.contact-item p { color: var(--color-text-muted); line-height: 1.7; }
.contact-item a { color: var(--color-primary); font-weight: 600; transition: var(--transition); }
.contact-item a:hover { color: var(--color-accent); }
.contacts__tagline {
  font-style: italic;
  color: var(--color-text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.contacts__map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow);
}

/* ===== VK banner ===== */
.vk-banner {
  padding: 28px 0;
  background: linear-gradient(135deg, #0077ff 0%, #005ecb 55%, #004aad 100%);
}
.vk-banner__link {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: var(--transition);
}
.vk-banner__link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 40, 100, 0.25);
}
.vk-banner__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}
.vk-banner__icon-img {
  width: 48px;
  height: 48px;
  display: block;
}
.vk-banner__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.vk-banner__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}
.vk-banner__text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}
.vk-banner__cta {
  flex-shrink: 0;
  padding: 12px 20px;
  border-radius: 100px;
  background: #fff;
  color: #0077ff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
}
.vk-banner__link:hover .vk-banner__cta {
  background: #f0f7ff;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__brand img {
  height: 40px;
  width: auto;
  max-width: 152px;
  object-fit: contain;
}
.footer__brand strong { display: block; color: #fff; font-size: 15px; }
.footer__brand span { font-size: 13px; }
.footer__copy { margin-left: auto; font-size: 13px; }
.footer__phone {
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}
.footer__phone:hover { background: var(--color-accent-hover); }

/* ===== Footer Legal Links ===== */
.footer__legal {
  display: flex;
  gap: 14px 24px;
  flex-wrap: wrap;
}
.footer__legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}
.footer__legal a:hover { color: #fff; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 36px;
  color: #fff;
  line-height: 1;
  opacity: 0.7;
  transition: var(--transition);
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: #fff;
  opacity: 0.6;
  padding: 16px;
  transition: var(--transition);
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav[hidden] { display: none; }
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lightbox__counter[hidden] { display: none; }

/* ===== Cookie consent ===== */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 250;
  max-width: 980px;
  margin: 0 auto;
  background: rgba(15, 31, 36, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-consent__inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cookie-consent__text {
  flex: 1 1 auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}
.cookie-consent__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

@media (max-width: 768px) {
  .cookie-consent__inner { flex-direction: column; gap: 12px; }
  .cookie-consent__actions { width: 100%; }
  .cookie-consent__actions .btn { width: 100%; }
  .footer__legal { justify-content: center; }
}

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .header__inner { gap: 12px; }
  .header__nav a,
  .header__nav-group > a {
    padding: 0 8px;
    font-size: 12px;
  }
  .header__phone {
    padding: 0 14px;
    font-size: 13px;
  }
}

@media (min-width: 1280px) {
  .house-gallery__main { height: 640px; }
  .house-section__hero-overlay { height: 640px; }
}

@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .about__features { max-width: 560px; }
  .houses-cards { grid-template-columns: 1fr; }
  .houses-cards--compact { grid-template-columns: 1fr 1fr; }
  .house-section__grid { grid-template-columns: 1fr; }
  .house-section__sidebar .house-section__calendar { order: 1; }
  .house-section__sidebar .house-section__map { order: 2; }
  .attractions__grid { grid-template-columns: 1fr 1fr; }
  .attraction-card--wide {
    grid-column: span 1;
    flex-direction: column;
  }
  .attraction-card--wide .attraction-card__image { width: 100%; min-height: auto; }
  .attraction-info,
  .attraction-services__list { grid-template-columns: 1fr; }
  .trophies__grid { grid-template-columns: repeat(3, 1fr); }
  .trophy-item--wide { grid-column: span 2; }
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header__inner {
    gap: 12px;
  }
  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    z-index: 110;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: none;
    background: rgba(15, 31, 36, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0;
    margin: 0;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    overflow: hidden;
  }
  body.nav-open .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    filter: none;
  }
  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .header__nav-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
  }
  .header__nav-top {
    display: block;
    flex-shrink: 0;
    background: rgba(15, 31, 36, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: env(safe-area-inset-top, 0px);
  }
  .header__nav-top .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: var(--header-h);
    min-height: var(--header-h);
  }
  .header__nav-top .header__logo {
    display: flex;
    align-items: center;
    height: 100%;
  }
  .header__nav-top .header__logo img {
    height: auto;
    width: auto;
    max-height: 100%;
    max-width: none;
    object-fit: contain;
  }
  .header__nav-top .header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .header__nav-top .header__phone-text {
    display: none;
  }
  .header__nav-top .header__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    box-shadow: none;
  }
  .header__nav-top .header__burger,
  .header__nav-top .header__nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
  }
  .header__nav-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
    padding-top: 16px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    border-top: none;
  }
  .header__nav-links {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    align-content: flex-start;
    gap: 4px;
    padding: 24px 16px 16px;
  }
  .header__nav a,
  .header__nav-group > a {
    justify-content: flex-start;
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }
  .header__nav-top a,
  .header__nav-footer a {
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    justify-content: center;
  }
  .header__nav-top .header__phone {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    justify-content: center;
  }
  .header__nav-footer .header__nav-vk {
    width: auto;
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
    background: none;
  }
  .header__nav-footer .header__nav-vk:hover {
    background: none;
  }
  .header__nav-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .header__nav-group::before { display: none; }
  .header__subnav {
    position: static;
    display: none;
    transform: none;
    min-width: 0;
    margin-top: 4px;
    padding: 4px 0 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    box-shadow: none;
    border-left: 2px solid rgba(200, 149, 46, 0.35);
    border-radius: 0;
  }
  .header__nav-group.is-expanded .header__subnav { display: flex; }
  .header__nav-group.is-expanded .header__nav-dropdown::after {
    transform: rotate(180deg);
  }
  .header__nav-group:hover .header__subnav,
  .header__nav-group:focus-within .header__subnav { display: none; }
  .header__nav-group.is-expanded:hover .header__subnav,
  .header__nav-group.is-expanded:focus-within .header__subnav { display: flex; }
  .header__phone-text { display: none; }
  .header__phone {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    box-shadow: none;
  }
  .header__burger { display: inline-flex; }
  .header__burger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .header__burger.is-active span:nth-child(2) { opacity: 0; }
  .header__burger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .section { padding: 64px 0; }
  .contacts { overflow-x: hidden; }
  .about-feature {
    grid-template-columns: 72px 1fr;
    gap: 16px;
    padding: 16px 18px;
  }
  .about-feature__icon {
    width: 72px;
    height: 72px;
    font-size: 2.5rem;
    border-radius: 18px;
  }
  .about-feature:hover { transform: none; }
  .houses-cards--compact { grid-template-columns: 1fr; }
  .prices .houses-cards--booking { grid-template-columns: 1fr; }
  .price-card--accent { grid-template-columns: 1fr; }
  .price-card__photo { min-height: 220px; max-height: 240px; }
  .attractions__grid { grid-template-columns: 1fr; }
  .attractions .section__title {
    font-size: clamp(1.55rem, 4.6vw, 1.85rem);
  }
  .trophies__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .trophy-item--wide { grid-column: span 2; }
  .booking__info { padding: 28px; }
  .booking__request { margin-top: 24px; }
  body.bk-has-selection-dock {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .bk-selection-wrap.is-docked {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 220;
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(15, 31, 36, 0.12);
    box-shadow: 0 -8px 28px rgba(15, 31, 36, 0.14);
  }
  .bk-selection-wrap.is-docked .bk-selection {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }
  .bk-selection__label { display: none; }
  .bk-selection__info {
    flex: 1;
    min-width: 0;
    gap: 1px;
  }
  .bk-selection__range {
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bk-selection__meta {
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bk-selection-wrap.is-docked .bk-selection__error {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 6px);
    width: auto;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.3;
    background: #fff4f4;
    border: 1px solid #f0c7c7;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(15, 31, 36, 0.08);
  }
  .bk-selection__btn {
    width: auto;
    min-width: 0;
    flex-shrink: 0;
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
  .bk-form__trip { grid-template-columns: 1fr; }
  .bk-form__trip-arrow { display: none; }
  .bk-form__dates { grid-template-columns: 1fr; }
  .houses-cards--booking { grid-template-columns: 1fr; }
  .booking__times { flex-direction: column; gap: 12px; }
  .house-gallery__main { height: 280px; }
  .house-section__hero-overlay { height: 280px; }
  .house-section__hero-content { bottom: 72px; padding-bottom: 16px; }
  .house-gallery__thumbs { padding: 12px 14px; gap: 8px; }
  .house-gallery__thumb { width: 68px; height: 50px; }
  .house-section__features { grid-template-columns: 1fr; }
  .house-section__calendar-frame { min-height: 100px; }
  .contacts__map {
    width: 100vw;
    max-width: 100vw;
    height: 300px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    box-shadow: none;
  }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__copy { margin-left: 0; }
  .vk-banner__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
  }
  .vk-banner__cta { align-self: stretch; text-align: center; }
  .hero__stats { gap: 20px; }
}

@media (max-width: 480px) {
  .trophies__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .trophy-item--wide { grid-column: span 2; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
