/* У МишАни — мудборд: холодные синие, серые; текст насыщенный для читаемости */
:root {
  --color-katun: #5B8FB9;
  --color-katun-light: #779ECB;
  --color-link-hover: #E22D1D;
  --color-logo-gold: #D4A017;
  --color-logo-red: #E22D1D;
  --color-logo-blue: #2E5B8A;
  --color-logo-outline: #1a1510;
  --color-wood: #3d4f5c;
  --color-wood-light: #4a5f6e;
  --color-nature: #1e2a32;
  --color-nature-light: #2d3d48;
  --color-bg: #F0F4F8;
  --color-card: rgba(255, 255, 255, 0.97);
  --color-overlay: rgba(91, 143, 185, 0.12);
  --color-charcoal: #1a2525;
  --color-mist: #BDD2DD;
  --font-head: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Open Sans", "Segoe UI", sans-serif;
  --shadow: 0 4px 24px rgba(54, 69, 79, 0.08);
  --radius: 12px;
  --header-h: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--color-charcoal);
  background: var(--color-bg);
  min-height: 100vh;
  position: relative;
}

a:hover:not(.btn) { color: var(--color-link-hover); }

/* Fixed background — лёгкая дымка в духе мудборда */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(240,244,248,0.92) 0%, rgba(189,210,221,0.15) 100%),
    url("../img/base/base_05.jpg") center center / cover no-repeat;
  background-color: var(--color-bg);
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

/* Hero - first block on every page (logo, title, text, button, scroll arrow) */
.hero {
  padding: 5cm 20px 2.5rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-logo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-katun-light);
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto 1rem;
  opacity: 0;
  animation: hero-in 1.2s ease-out 0s forwards;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(26, 21, 16, 0.35);
  opacity: 0;
  animation: hero-in 1.2s ease-out 0.3s forwards;
}
.hero-title .hero-title-usadba {
  color: var(--color-logo-gold);
  -webkit-text-stroke: 0.04em var(--color-logo-outline);
}
.hero-title .hero-title-u,
.hero-title .hero-title-ani {
  color: var(--color-logo-red);
  -webkit-text-stroke: 0.04em var(--color-logo-outline);
}
.hero-title .hero-title-mish {
  color: var(--color-logo-blue);
  -webkit-text-stroke: 0.04em var(--color-logo-outline);
}
.hero-text {
  max-width: 480px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-charcoal);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-link-hover);
  box-shadow: var(--shadow);
  min-height: 3.2em;
}
.hero-text .hero-text-typed {
  display: inline;
}
.hero-text .hero-text-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: var(--color-link-hover);
  animation: hero-cursor-blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}
.hero-text.hero-text-done .hero-text-cursor {
  display: none;
}
@keyframes hero-cursor-blink {
  50% { opacity: 0; }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero .btn { margin-bottom: 1.5rem; }
.hero-roomslot {
  margin-bottom: 1.5rem;
  min-height: 80px;
}
.hero-roomslot iframe { max-width: 100%; }
.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-wood);
  text-decoration: none;
  font-size: 0.85rem;
  margin-top: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}
.hero-scroll-wrap {
  display: block;
  width: 100%;
  text-align: center;
}
.hero-video-wrap {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-video-wrap video {
  width: 100%;
  display: block;
  background: #000;
  max-height: 320px;
}
.hero-scroll:hover { color: var(--color-link-hover); }
.hero-scroll svg { width: 28px; height: 28px; }
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Шапка — лёгкий цвет и полупрозрачность */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(91, 143, 185, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(54, 69, 79, 0.06);
  height: var(--header-h);
  border-bottom: 1px solid rgba(91, 143, 185, 0.12);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Соцсети в шапке справа — без обводки */
.header-social {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-nature);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.header-social a:hover {
  opacity: 1;
  color: var(--color-katun);
}
.header-social img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-nature);
  font-weight: 700;
  font-size: 1.25rem;
}
.logo-link img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.logo-link span { white-space: nowrap; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  padding: 8px 14px;
  text-decoration: none;
  color: var(--color-wood);
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover, .nav a.active {
  color: var(--color-link-hover);
  background: var(--color-overlay);
}

/* Кнопка бургер для мобилки */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-wood);
  border-radius: 1px;
}

/* Основной контент */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  min-height: calc(100vh - var(--header-h) - 180px);
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--color-nature);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 16px; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: 20px; }
h3 { font-size: 1.15rem; margin-bottom: 12px; }

.section {
  margin-bottom: 48px;
}
.section-title {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-katun-light);
}

/* Карточки */
.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--color-mist);
}
.card img { width: 100%; height: auto; display: block; }

/* Плашки «Почему мы» — более воздушные, карточка-ссылка */
.cards-airy .card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(189, 210, 221, 0.6);
  box-shadow: 0 2px 16px rgba(54, 69, 79, 0.04);
}
.cards-airy .card h3 { color: var(--color-nature); }
.cards-airy .card p { color: var(--color-wood); }

/* Такие же белые блоки на странице Услуги (и где нужен класс .card-airy) */
.card-airy {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(189, 210, 221, 0.6) !important;
  box-shadow: 0 2px 16px rgba(54, 69, 79, 0.04) !important;
}
.card-airy p,
.card-airy li { color: var(--color-wood); }
.cards-airy .card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.cards-airy .card-click-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: auto;
  pointer-events: none;
}
.cards-airy .card-link:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--color-katun-light);
  box-shadow: 0 4px 20px rgba(54, 69, 79, 0.1);
}
.cards-airy .card-link:hover h3 { color: var(--color-link-hover); }
.cards-airy .card-link:hover { color: var(--color-link-hover); }
.section-why-cta {
  text-align: center;
  margin-top: 24px;
}
.section-why-cta .btn { color: #fff; }
.section-why-cta .btn:hover { color: var(--color-link-hover); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--color-katun);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--color-katun-light); color: var(--color-link-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--color-katun);
  border: 2px solid var(--color-katun);
}
.btn-outline:hover { background: var(--color-overlay); color: var(--color-link-hover); border-color: var(--color-link-hover); }

/* Карусель */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.carousel-inner {
  display: flex;
  transition: transform 0.4s ease;
}
.carousel-item {
  min-width: 100%;
  flex-shrink: 0;
}
.carousel-item img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
/* Галерея на главной: слева и справа — предыдущее/следующее фото с полупрозрачностью 50% */
.carousel-gallery-wrap {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 5mm;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px 0;
}
.carousel-side-preview {
  flex-shrink: 0;
  width: calc(400px - 2cm);
  align-self: stretch;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0.5;
  box-shadow: var(--shadow);
  background: var(--color-charcoal);
}
.carousel-gallery-wrap .carousel--gallery {
  align-self: stretch;
  flex-shrink: 0;
}
.carousel-side-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .carousel-side-preview { display: none; }
}

/* Главная: карусель под фото 960×1280 (3:4) */
.carousel--gallery {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 3 / 4;
}
.carousel-gallery-wrap .carousel--gallery {
  flex-shrink: 0;
  width: 400px;
  max-width: 100%;
}
.carousel--gallery .carousel-item {
  cursor: pointer;
  aspect-ratio: 3 / 4;
  position: relative;
  background: var(--color-charcoal);
}
.carousel--gallery .carousel-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  color: var(--color-katun);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: background 0.2s;
  z-index: 2;
}
.carousel-btn:hover { background: rgba(255,255,255,0.75); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot.active { background: #fff; }

/* Галерея сетка */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Карточки экскурсий (изображение сверху, заголовок, описание) */
.excursion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.excursion-card {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
}
.excursion-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.excursion-card-body {
  padding: 20px;
  flex: 1;
}
.excursion-card-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--color-nature);
}
.excursion-card-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-wood);
}

/* Лайтбокс галереи */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox-content {
  max-width: 95vw;
  max-height: 90vh;
  position: relative;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
@media (max-width: 768px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* Виджет бронирования на странице цен */
.prices-roomslot { min-height: 120px; }
.prices-roomslot iframe { max-width: 100%; }

/* Блок бронирования — плейсхолдер под Roomslot */
.booking-widget-placeholder {
  background: var(--color-card);
  border: 2px dashed var(--color-mist);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--color-wood);
}
.booking-widget-placeholder strong { color: var(--color-katun); }

/* Футер — холодные тона мудборда */
.footer {
  background: linear-gradient(180deg, var(--color-nature) 0%, var(--color-charcoal) 100%);
  color: var(--color-mist);
  padding: 48px 20px 24px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: 12px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer ul { list-style: none; }
.footer a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer a:hover { color: var(--color-link-hover); }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  transition: opacity 0.2s;
}
.footer-social a:hover { opacity: 1; }
.footer-social img { width: 28px; height: 28px; object-fit: contain; opacity: 0.9; }
.footer-social a:hover img { opacity: 1; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.9;
}
.footer-registry {
  margin-top: 8px;
  font-size: 0.85rem;
}
.footer-registry a:hover { color: var(--color-link-hover); }

/* Contacts block: left = info + buttons, right = map */
.contacts-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}
@media (max-width: 768px) {
  .contacts-block { grid-template-columns: 1fr; }
}
.contacts-block-info h2 { margin-bottom: 16px; }
.contacts-block-info p { margin-bottom: 8px; }
.contacts-block-info a { color: var(--color-katun); }
.contacts-block-info a:hover { color: var(--color-link-hover); }
.contacts-block-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  margin-bottom: 16px;
}
.contacts-block-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.contacts-block-social img { width: 28px; height: 28px; object-fit: contain; }
.contacts-block-2gis {
  margin-bottom: 20px;
}
.contacts-2gis-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-size: 0.95rem;
}
.contacts-2gis-link:hover { color: var(--color-link-hover); }
.contacts-2gis-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.contacts-2gis-rating {
  font-weight: 700;
  color: var(--color-nature);
}
.contacts-2gis-stars {
  color: #e6b800;
  letter-spacing: 1px;
}
.contacts-2gis-reviews {
  color: var(--color-wood);
  font-size: 0.9rem;
}
.contacts-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.contacts-block-buttons .btn {
  color: #fff;
}
.contacts-block-buttons .btn:hover {
  color: var(--color-link-hover);
}
.contacts-block-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-mist);
  min-height: 420px;
}
.contacts-block-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* Two-column section (e.g. about: text left, video right) */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.section-about-text {
  font-size: 1.5rem;
  line-height: 1.6;
}
.section-about-text p { margin-bottom: 1rem; }
.section-about-text p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
  .section-split { grid-template-columns: 1fr; }
}

/* Видео в «О нас» — 1080×1920, показ целиком без увеличения */
.about-video-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: 0;
  aspect-ratio: 1080 / 1920;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-charcoal);
}
.about-video-wrap video {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 768px) {
  .about-video-wrap {
    margin-left: auto;
    margin-right: auto;
    max-width: 280px;
  }
}

/* Мобилка */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .burger { display: flex; }
  .main { padding: 24px 16px 60px; }
  .carousel-btn { width: 36px; height: 36px; font-size: 1rem; }
  /* В шапке на мобилке оставляем только WhatsApp и Telegram, ВК и Instagram скрыты */
  .header-social a:nth-child(3),
  .header-social a:nth-child(4) {
    display: none !important;
  }
}

/* Утилиты */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 16px; }
.mt-2 { margin-top: 16px; }
