/* Семь Ветров — русский стиль, сруб, уют, эко/Байкал */
:root {
  --color-wood: #4a3728;
  --color-wood-light: #6b5344;
  --color-cream: #f8f5f0;
  --color-beige: #e8dfd4;
  --color-accent: #3d5c2e;
  --color-accent-hover: #2d4518;
  --color-text: #2c2419;
  --color-text-muted: #5c5248;
  --font-heading: 'Cormorant Garamond', 'PT Serif', Georgia, serif;
  --font-body: 'Montserrat', 'PT Sans', sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Hero на всю страницу: фон фиксированный, контент прокручивается поверх */
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-cream) center/cover no-repeat fixed;
  background-image: url('../images/hero/hero.jpg');
  background-attachment: fixed;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(44,36,25,0.4) 0%, rgba(44,36,25,0.25) 30%, rgba(44,36,25,0.2) 100%);
  pointer-events: none;
}
body > main,
body > .site-footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* Типографика */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; }

.section-title {
  text-align: center;
  color: var(--color-wood);
  margin-bottom: 2rem;
}

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 240, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74, 55, 40, 0.1);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-wood);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img {
  max-height: 48px;
  width: auto;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.nav-list a {
  color: var(--color-wood);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-list a:hover {
  color: var(--color-accent);
  text-decoration: none;
}
.header-cta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
/* Иконки соцсетей в шапке (WhatsApp, Telegram, VK) */
.header-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s;
}
.header-social a:hover {
  color: #fff;
  text-decoration: none;
  transform: scale(1.1);
  opacity: 0.85;
}
.header-social a svg,
.header-social a img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}
.header-social a svg {
  fill: currentColor;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--color-wood);
  border: 2px solid var(--color-wood-light);
}
.btn-outline:hover {
  background: var(--color-wood);
  color: var(--color-cream);
  text-decoration: none;
}

/* Мобильное меню */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-wood);
  font-size: 1.5rem;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav { display: none; }
  .nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-cream);
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }
  .nav-list { flex-direction: column; }
  .header-cta { margin-left: auto; }
  .header-social { margin-left: auto; }
}

/* Hero — первый экран (фон уже на body, здесь только затемнение и контент) */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  position: relative;
  padding: 4rem 1.5rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 25, 0.35);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero h1 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 0.5rem;
}
.hero .tagline {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
}
.hero .btn {
  margin: 0 0.35rem;
}

/* Секции — полупрозрачный фон, чтобы текст читался поверх hero */
section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(248, 245, 240, 0.88);
}
section.alt {
  background: rgba(232, 223, 212, 0.9);
}

/* Карточки */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.card-image {
  aspect-ratio: 4/3;
  background: var(--color-beige);
  object-fit: cover;
}
.card-body { padding: 1.5rem; }
.card h3 { margin-bottom: 0.5rem; color: var(--color-wood); }
.card p { color: var(--color-text-muted); margin: 0; font-size: 0.95rem; }

/* Подвал */
.site-footer {
  background: rgba(74, 55, 40, 0.92);
  color: var(--color-cream);
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.site-footer a {
  color: rgba(255,255,255,0.9);
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #fff;
}
.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Страница контент */
/* Заголовок страницы — без своего фона, виден общий hero */
.page-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: transparent;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 25, 0.3);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.page-hero h1 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.5;
}
.page-hero .page-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.page-hero .page-hero-buttons .btn {
  margin: 0;
}
.page-hero .btn-outline-light {
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}
.page-hero .btn-outline-light:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  text-decoration: none;
}

.page-header {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  background: var(--color-beige);
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-content {
  padding: 2rem 1.5rem 4rem;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(248, 245, 240, 0.88);
}
.page-content p { margin-bottom: 1rem; }

/* Карточки домиков */
.cottages-section {
  padding: 2rem 1.5rem 4rem;
}
.cottage-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .cottage-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cottage-card {
  background: rgba(248, 245, 240, 0.95);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.cottage-card-gallery {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--color-beige);
  overflow: hidden;
}
.cottage-card-gallery-track {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.cottage-card-gallery-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cottage-card-gallery-track img.cottage-gallery-current {
  opacity: 1;
  z-index: 1;
}
.cottage-card-gallery-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
}
.cottage-gallery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cottage-gallery-btn:hover {
  background: rgba(255,255,255,0.45);
  color: #fff;
}
.cottage-gallery-counter {
  min-width: 2.5rem;
  text-align: center;
}
.cottage-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cottage-card-title {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--color-wood);
}
.cottage-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
  flex: 1;
}
.cottage-card-price {
  font-weight: 600;
  color: var(--color-wood);
  margin: 0 0 1rem;
  font-size: 1rem;
}
.cottage-card .btn {
  width: 100%;
  justify-content: center;
}
.cottage-info {
  margin-top: 1rem;
}
.cottage-info.page-content {
  max-width: 800px;
}

/* Галерея */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-grid a {
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-beige);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-grid a:hover img {
  transform: scale(1.05);
}

/* Лайтбокс галереи */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}
.gallery-lightbox.open {
  display: flex;
}
.gallery-lightbox .lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox .lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.gallery-lightbox .lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}
.gallery-lightbox .lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.gallery-lightbox .lightbox-prev,
.gallery-lightbox .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
  padding: 0;
}
.gallery-lightbox .lightbox-prev { left: 1rem; }
.gallery-lightbox .lightbox-next { right: 1rem; }
.gallery-lightbox .lightbox-prev:hover,
.gallery-lightbox .lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}
.gallery-lightbox .lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* FAQ */
.faq-list { margin-top: 1.5rem; }
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 1rem 0;
}
.faq-item h4 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.faq-item p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

/* Контакты */
.contact-block {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}
.contact-block a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
}
.contact-block .btn { margin-top: 0.5rem; }

/* Утилиты */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
