/*
Theme Name: Al-Aru Burabay
Theme URI: https://alaru.kz
Author: Al-Aru
Description: Сайт-визитка гостевых домиков Al-Aru в Боровом
Version: 1.0
*/

/* ============================================================
   СБРОС И БАЗОВЫЕ СТИЛИ
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary:   #2C6E49;   /* тёмно-зелёный — природа Борового */
  --color-accent:    #52B788;   /* светло-зелёный */
  --color-gold:      #C9A84C;   /* золото — тепло дерева */
  --color-dark:      #1A1A1A;
  --color-gray:      #F5F5F0;   /* фон секций */
  --color-white:     #FFFFFF;
  --color-text:      #333333;
  --font-main:       'Inter', 'Segoe UI', Arial, sans-serif;
  --font-heading:    'Playfair Display', Georgia, serif;
  --radius:          12px;
  --shadow:          0 4px 24px rgba(0,0,0,0.10);
  --transition:      0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover { background: #235438; transform: translateY(-2px); }

.btn-whatsapp {
  background: #25D366;
  color: var(--color-white);
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); }

/* ============================================================
   ШАПКА (HEADER)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1px;
}
.site-logo span { color: var(--color-gold); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
  transition: color var(--transition);
}
.header-nav a:hover { color: var(--color-primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-instagram:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-instagram svg { width: 16px; height: 16px; }

/* Бургер для мобильных */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   ГЕРОЙ (HERO) — ГЛАВНЫЙ БАННЕР
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.65);
  transition: transform 0.1s ease-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 110, 73, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background: var(--color-gold);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.92;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  letter-spacing: 1px;
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   СЕКЦИЯ — О МЕСТЕ
   ============================================================ */
.about {
  padding: 96px 0;
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text .section-title { margin-bottom: 20px; }

.about-text p {
  color: #555;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.feature-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-gray);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
}
.feature-chip svg { width: 16px; height: 16px; }

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-image:hover img { transform: scale(1.04); }

/* ============================================================
   СЕКЦИЯ — ДОМИКИ (КАРТОЧКИ)
   ============================================================ */
.cottages {
  padding: 96px 0;
  background: var(--color-gray);
}

.cottages-header {
  text-align: center;
  margin-bottom: 56px;
}

.cottages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.cottage-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.cottage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
}

.cottage-gallery {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.cottage-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.cottage-gallery img.active { opacity: 1; }

.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-prev:hover, .gallery-next:hover { background: #fff; }

.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.gallery-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: var(--transition);
}
.gallery-dot.active { background: #fff; }

.cottage-price-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background: var(--color-gold);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
}

.cottage-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cottage-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.cottage-capacity {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 16px;
}

.cottage-amenities {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  flex: 1;
}
.cottage-amenities li {
  font-size: 0.88rem;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cottage-amenities li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.cottage-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ============================================================
   СЕКЦИЯ — ДОПОЛНИТЕЛЬНЫЕ УСЛУГИ
   ============================================================ */
.services {
  padding: 96px 0;
  background: var(--color-white);
}

.services-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  transition: transform 0.6s ease;
}
.service-card:hover .service-card-bg { transform: scale(1.04); }

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}

.service-card-content {
  position: relative;
  z-index: 2;
  padding: 28px;
  color: #fff;
  width: 100%;
}

.service-icon { font-size: 2rem; margin-bottom: 8px; }

.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.service-card-price {
  font-size: 1.1rem;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card-desc { font-size: 0.9rem; opacity: 0.85; }

/* ============================================================
   СЕКЦИЯ — ТЕРРИТОРИЯ / ИНФРАСТРУКТУРА
   ============================================================ */
.territory {
  padding: 56px 0;
  background: var(--color-primary);
  color: #fff;
}

.territory-header {
  text-align: center;
  margin-bottom: 28px;
}
.territory-header .section-title { color: #fff; }
.territory-header .section-subtitle { color: rgba(255,255,255,0.75); }

.territory-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.territory-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  min-width: 90px;
}
.territory-item .ico { font-size: 2.2rem; }
.territory-item span {
  font-size: 0.88rem;
  opacity: 0.85;
  line-height: 1.4;
  max-width: 100px;
}

/* ============================================================
   СЕКЦИЯ — ПРАВИЛА
   ============================================================ */
.rules {
  padding: 96px 0;
  background: var(--color-gray);
}

.rules-header {
  text-align: center;
  margin-bottom: 48px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.rule-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.rule-icon { font-size: 1.8rem; flex-shrink: 0; }
.rule-text h4 {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-dark);
  font-size: 0.95rem;
}
.rule-text p { font-size: 0.85rem; color: #666; line-height: 1.5; }

/* ============================================================
   СЕКЦИЯ — КОНТАКТЫ И КАРТА
   ============================================================ */
.contacts {
  padding: 96px 0 0;
  background: var(--color-white);
}

.contacts-header {
  text-align: center;
  margin-bottom: 56px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
  align-items: center;
}

.contacts-info h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-item .ico { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-item-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 2px;
}
.contact-item-text span, .contact-item-text a {
  font-size: 1rem;
  color: var(--color-dark);
  font-weight: 500;
}
.contact-item-text a:hover { color: var(--color-primary); }

.contacts-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contacts-cta .btn { width: 100%; justify-content: center; font-size: 1rem; }

.contacts-visual {
  text-align: center;
}
.contacts-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 2ГИС карта */
.map-section { width: 100%; }
.map-section iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}
.map-fallback {
  text-align: center;
  padding: 10px;
  font-size: 0.85rem;
  color: #888;
  background: #f5f5f0;
}
.map-fallback a { color: var(--color-primary); }
@media (max-width: 600px) {
  .map-section iframe { height: 280px; }
}

/* ============================================================
   ФУТЕР
   ============================================================ */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 28px 20px;
  font-size: 0.85rem;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }

/* ============================================================
   ПЛАВАЮЩАЯ КНОПКА WHATSAPP
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 20px 14px 16px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-float svg { width: 24px; height: 24px; flex-shrink: 0; }
.whatsapp-float:hover {
  background: #1ebe5a;
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.5);
  animation: none;
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 6px 32px rgba(37,211,102,0.7); }
}

/* ============================================================
   АДАПТИВ (МОБИЛКИ)
   ============================================================ */
@media (max-width: 900px) {
  .about-grid, .contacts-grid, .services-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .burger { display: flex; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.2rem; }
  .cottages-grid { grid-template-columns: 1fr; }
  .territory-icons { gap: 24px 32px; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 14px; border-radius: 50%; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   КНОПКА «ВСЕ ФОТО» НА КАРТОЧКАХ
   ============================================================ */
.gallery-lightbox-btn {
  position: absolute;
  bottom: 48px;
  right: 12px;
  z-index: 6;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-family: var(--font-main);
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.gallery-lightbox-btn:hover { background: rgba(0,0,0,0.8); }

/* ============================================================
   ЛАЙТБОКС
   ============================================================ */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.lb-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 72vh;
}
#lb-main-img {
  max-width: 90vw;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 6px;
}
.lb-counter {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  white-space: nowrap;
}
.lb-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 90vw;
  padding: 8px 0 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}
.lb-thumbs img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, outline 0.2s;
  flex-shrink: 0;
}
.lb-thumbs img.active,
.lb-thumbs img:hover { opacity: 1; outline: 2px solid var(--color-gold); }
.lb-close {
  position: fixed;
  top: 18px; right: 22px;
  background: none; border: none;
  color: #fff; font-size: 2.2rem;
  cursor: pointer; line-height: 1;
  z-index: 100001;
}
.lb-prev, .lb-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none; color: #fff;
  font-size: 2.5rem; line-height: 1;
  width: 50px; height: 70px;
  cursor: pointer; border-radius: 4px;
  transition: background 0.2s;
  z-index: 100001;
}
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.28); }
@media (max-width: 600px) {
  .lb-prev, .lb-next { font-size: 2rem; width: 38px; height: 54px; }
  .lb-thumbs img { width: 52px; height: 38px; }
}