:root {
  --bg: #faf9f6;
  --text: #2c2c2c;
  --text-light: #666;
  --accent: #5e6b53;
  --accent-hover: #4a5441;
  --border: #e2dfd5;
  --font-head: 'Jura', sans-serif;
  --font-body: 'Jura', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: inherit; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
input, button, select, textarea { font-family: var(--font-body); }
img { max-width: 100%; display: block; border-radius: 8px; }
a { text-decoration: none; color: inherit; }

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

.btn { display: inline-block; padding: 14px 28px; font-family: var(--font-body); font-size: 14px; font-weight: 500; border-radius: 40px; cursor: pointer; transition: 0.2s; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; border: none; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Header */
.header { border-bottom: 1px solid var(--border); padding: 20px 0; background: #fff; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-head); font-size: 24px; font-weight: 600; color: var(--accent); }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--accent); }

/* Hero Split */
.hero-split { padding: 80px 0; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.badge { display: inline-block; padding: 6px 12px; background: #f0eee5; border-radius: 20px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; color: var(--accent); font-weight: 600; }
.hero-content h1 { font-family: var(--font-head); font-size: 56px; line-height: 1.1; margin-bottom: 24px; }
.hero-content p { font-size: 18px; color: var(--text-light); margin-bottom: 30px; }
.mobile-hero-visual { display: none; }
.hero-visual { position: relative; }
.main-img { width: 80%; margin-left: auto; aspect-ratio: 4/5; object-fit: cover; }
.sub-img { position: absolute; left: 0; bottom: 40px; width: 45%; aspect-ratio: 1/1; object-fit: cover; border: 10px solid var(--bg); }

/* About */
.about-section { padding: 100px 0; background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; margin-bottom: 80px; }
.about-image img { width: 100%; border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

.about-text h2 { font-family: var(--font-head); font-size: 44px; line-height: 1.2; margin-bottom: 30px; color: var(--text); }
.about-text p { font-size: 17px; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.feat-card { background: var(--bg); padding: 30px; border-radius: 20px; border: 1px solid var(--border); transition: 0.3s; }
.feat-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(94, 107, 83, 0.1); }
.feat-icon { width: 50px; height: 50px; background: rgba(94, 107, 83, 0.1); border-radius: 12px; margin-bottom: 24px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 24px; }
.feat-card strong { display: block; font-size: 17px; margin-bottom: 12px; color: var(--text); font-weight: 600; }
.feat-card span { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* Houses */
.houses-section { padding: 100px 0; }
.section-title { font-family: var(--font-head); font-size: 40px; text-align: center; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--accent); margin-bottom: 60px; font-size: 20px; font-weight: 600; }

/* Houses Row Layout */
.houses-section { padding: 100px 0; }
.house-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 80px; align-items: center; background: #fff; padding: 40px; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.03); border: 1px solid var(--border); }
.house-row:nth-child(even) { direction: rtl; }
.house-row:nth-child(even) .house-info { direction: ltr; }

.house-slider-container { position: relative; width: 100%; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; }
.house-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 100%; }
.house-slider::-webkit-scrollbar { display: none; }
.house-slider a { flex: 0 0 100%; scroll-snap-align: start; height: 100%; display: block; }
.house-slider img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.slider-nav { position: absolute; bottom: 20px; right: 20px; display: flex; gap: 8px; z-index: 10; direction: ltr; }
.slider-nav-btn { width: 36px; height: 36px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: none; transition: 0.2s; }
.slider-nav-btn:hover { background: var(--accent); color: #fff; }

.house-info h3 { font-family: var(--font-head); font-size: 32px; color: var(--accent); margin-bottom: 20px; }
.house-price-box { margin-bottom: 30px; padding: 20px; background: var(--bg); border-radius: 12px; border-left: 4px solid var(--accent); }
.house-price-box .price { font-size: 24px; font-weight: 600; color: var(--text); }
.house-price-box .desc { font-size: 15px; color: var(--text-light); margin-top: 5px; }

.house-features-list { list-style: none; margin-bottom: 30px; }
.house-features-list li { position: relative; padding-left: 24px; margin-bottom: 10px; font-size: 15px; color: var(--text-light); }
.house-features-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

/* Lightbox Premium */
.lightbox { position: fixed; inset: 0; background: rgba(10, 12, 10, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 1000; display: none; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease; }
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 40px; }
.lightbox__img { max-width: 90%; max-height: 85vh; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); opacity: 0; transform: scale(0.98); transition: 0.4s cubic-bezier(0.2, 0, 0.2, 1); }
.lightbox__img.is-loaded { opacity: 1; transform: scale(1); }

.lightbox__close { position: absolute; top: 40px; right: 40px; color: #fff; font-size: 28px; cursor: pointer; background: rgba(255,255,255,0.1); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: none; transition: 0.3s; z-index: 1010; }
.lightbox__close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 24px; cursor: pointer; background: rgba(255,255,255,0.05); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: none; transition: 0.3s; z-index: 1010; }
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.2); width: 70px; height: 70px; }
.lightbox__prev { left: 40px; }
.lightbox__next { right: 40px; }

.lightbox__counter { color: #fff; position: absolute; bottom: 40px; font-size: 14px; font-weight: 500; letter-spacing: 2px; opacity: 0.6; padding: 8px 16px; background: rgba(255,255,255,0.05); border-radius: 20px; }
.lightbox__caption { display: none; } /* Убираем подписи */

@media (max-width: 800px) {
  .lightbox__prev, .lightbox__next { width: 44px; height: 44px; top: auto; bottom: 30px; transform: none; }
  .lightbox__prev { left: 30%; }
  .lightbox__next { right: 30%; }
  .lightbox__close { top: 20px; right: 20px; }
}

@media (max-width: 1000px) {
  .house-row { grid-template-columns: 1fr; gap: 30px; direction: ltr !important; }
  .house-row:nth-child(even) .house-info { direction: ltr; }
  .house-info h3 { font-size: 28px; }
}

/* Gallery Masonry */
.gallery-masonry { padding: 100px 0; background: #fff; }
.masonry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.masonry-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; }
.masonry-grid img:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: 2/2; }

/* Sights Section */
.sights-section { padding: 100px 0; background: #fff; }
.sights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.sight-card { position: relative; height: 300px; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.sight-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.sight-card:hover img { transform: scale(1.1); }
.sight-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff; }
.sight-overlay strong { font-size: 17px; font-weight: 600; margin-bottom: 4px; display: block; }
.sight-overlay span { font-size: 14px; opacity: 0.8; font-weight: 500; }

/* Location Map */
.location-section { padding: 100px 0; background: var(--bg); }
.location-container { display: flex; flex-direction: column; gap: 40px; }
.location-text { text-align: center; max-width: 800px; margin: 0 auto; }
.location-text h2 { font-family: var(--font-head); font-size: 40px; margin-bottom: 20px; }
.location-text p { color: var(--text-light); margin-bottom: 10px; font-size: 17px; }
.location-map { height: 600px; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.08); }

.contact-line { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 20px; font-weight: 600; }
.location-detailed-info {
  margin-top: 30px;
  font-size: 32px;
  line-height: 1.3;
  color: var(--text);
  font-weight: 600;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .location-detailed-info {
    font-size: 20px;
    margin-top: 20px;
  }
}
.max-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #ea580c; color: #fff; border-radius: 8px; font-size: 14px; transition: 0.2s; }
.max-link:hover { transform: scale(1.1); background: #c2410c; }

@media (max-width: 1000px) {
  .sights-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sights-grid { grid-template-columns: 1fr; }
  .location-map { height: 400px; }
}

/* Reviews Section */
.reviews-section { padding: 100px 0; background: var(--bg); color: var(--text); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.review-card { background: #fff; padding: 32px; border-radius: 16px; display: flex; flex-direction: column; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: transform 0.3s ease; }
.review-card:hover { transform: translateY(-5px); }
.review-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px; color: #fff; text-transform: uppercase; flex-shrink: 0; }
.review-info h4 { font-size: 16px; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.review-info span { font-size: 13px; color: var(--text-light); }
.review-stars { color: #f59e0b; font-size: 16px; margin-bottom: 16px; }
.review-text { font-size: 15px; line-height: 1.6; color: var(--text); flex-grow: 1; margin-bottom: 24px; }
.review-source { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }
.review-source a { font-size: 13px; text-decoration: none; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.review-source a:hover { color: var(--accent-hover); }
.review-source a::after { content: '→'; }

.reviews-links { display: flex; justify-content: center; gap: 40px; margin-top: 50px; }
.reviews-links a { font-size: 15px; text-decoration: underline; color: var(--accent); font-weight: 500; transition: 0.2s; }
.reviews-links a:hover { color: var(--accent-hover); }

@media (max-width: 1100px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .reviews-grid { grid-template-columns: 1fr; } .reviews-links { flex-direction: column; align-items: center; gap: 15px; text-align: center; } }

/* Footer */
.footer-simple { padding: 40px 0; border-top: 1px solid var(--border); text-align: center; color: var(--text-light); font-size: 14px; background: #fff; }
.footer-simple a { text-decoration: underline; margin-left: 10px; }

/* Simple modal styles */
.contact-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; display: flex; align-items: center; justify-content: center; }
.contact-modal__card { background: #fff; padding: 40px; border-radius: 16px; width: 100%; max-width: 400px; position: relative; }
.contact-modal__close { position: absolute; right: 20px; top: 20px; border: none; background: transparent; font-size: 24px; cursor: pointer; color: var(--text-light); }
.contact-form__field { margin-bottom: 15px; }
.contact-form__field label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 500; }
.contact-form__field input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-body); }
.contact-modal h3 { font-family: var(--font-head); font-size: 24px; margin-bottom: 10px; }
.contact-modal p { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
.contact-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #2c2c2c; color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 14px; opacity: 0; transition: 0.3s; z-index: 1000; }
.contact-toast.is-visible { opacity: 1; }

@media (max-width: 900px) {
  .hero-container, .location-container, .house-row { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: 1fr 1fr; }
  .masonry-grid { grid-template-columns: 1fr 1fr; }
  .sub-img { display: none; }
  .main-img { width: 100%; margin: 0 auto; }
  .nav { display: none; }
  
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  /* Global */
  .container { padding: 0 16px; }
  .btn { width: 100%; padding: 16px 20px; font-size: 15px; }

  /* Header */
  .header { padding: 12px 0; }
  .logo { font-size: 17px; max-width: 140px; line-height: 1.2; }
  .header .btn { width: auto; padding: 8px 16px; font-size: 12px; }
  
  /* Hero */
  .hero-split { padding: 30px 0 50px; }
  .hero-content { text-align: center; }
  .hero-content h1 { font-size: 28px; line-height: 1.2; margin-bottom: 16px; }
  .mobile-hero-visual { display: block; margin: 24px 0; }
  .mobile-hero-visual img { width: 100%; border-radius: 16px; aspect-ratio: 16/10; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
  .hero-content p { font-size: 15px; margin-bottom: 24px; }
  .hero-visual { display: none; }
  
  /* Sections General */
  .about-section, .houses-section, .gallery-masonry, .sights-section, .location-section, .reviews-section { padding: 50px 0; }
  .section-title { font-size: 26px; line-height: 1.2; }
  .section-subtitle { font-size: 14px; margin-bottom: 30px; }

  /* About */
  .about-text { text-align: center; }
  .about-text h2 { font-size: 24px; margin-bottom: 20px; }
  .about-text p { font-size: 15px; line-height: 1.6; }
  
  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feat-card { padding: 20px; display: flex; align-items: flex-start; gap: 15px; text-align: left; }
  .feat-icon { margin-bottom: 0; width: 40px; height: 40px; font-size: 18px; flex-shrink: 0; }
  .feat-card strong { font-size: 16px; margin-bottom: 4px; }
  
  /* Houses */
  .house-row { padding: 16px; margin-bottom: 40px; gap: 20px; }
  .house-info { text-align: center; }
  .house-info h3 { font-size: 22px; margin-bottom: 15px; }
  .house-price-box { padding: 15px; margin-bottom: 20px; }
  .house-price-box .price { font-size: 18px; }
  .house-features-list { text-align: left; margin-bottom: 25px; }
  .house-features-list li { font-size: 14px; }
  
  .house-features { grid-template-columns: 1fr !important; gap: 10px !important; margin-bottom: 30px !important; }
  .house-gallery { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }

  /* Gallery Masonry */
  .masonry-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .masonry-grid img:nth-child(1) { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/10; }
  
  /* Sights */
  .sight-card { height: 200px; }
  .sight-overlay span { font-size: 14px; }

  /* Reviews */
  .review-card { padding: 20px; }
  .review-text { font-size: 14px; margin-bottom: 15px; }
  .reviews-links { gap: 15px; margin-top: 30px; }
  .reviews-links a { font-size: 14px; }

  /* Location */
  .location-text h2 { font-size: 26px; }
  .location-text p { font-size: 15px; }
  .location-address-notice { font-size: 18px; margin-top: 10px; }
  .location-map { height: 300px; margin-top: 20px; }
  .contact-line { font-size: 16px; justify-content: center; }

  /* Modal */
  .contact-modal__card { padding: 30px 20px; margin: 10px; }
  .contact-modal h3 { font-size: 20px; }
}

/* Excursions */
.excursions-section { padding: 100px 0; background: #fdfdfb; border-top: 1px solid var(--border); }
.excursions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }

.excursion-card { 
  transition: transform 0.4s ease, box-shadow 0.4s ease; 
  cursor: pointer; 
  background: #000; 
  border-radius: 20px; 
  overflow: hidden; 
  height: 400px; 
  box-shadow: 0 15px 35px rgba(0,0,0,0.06); 
  position: relative; 
}
.excursion-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; opacity: 0.85; }
.excursion-card:hover img { transform: scale(1.1); opacity: 1; }

.excursion-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: #fff;
}
.excursion-badge {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: #fb923c;
  font-weight: 700;
}
.excursion-card h3 {
  font-size: 28px;
  margin-bottom: 10px;
  font-family: var(--font-head);
}
.excursion-card p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .excursions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .excursions-section { padding: 60px 0; }
  .excursions-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
  .excursion-card { height: 320px; }
  .excursion-content { padding: 20px; }
  .excursion-card h3 { font-size: 24px; }
}
