/* ===== БАЗА ===== */
:root {
  --accent: #b98a4e;
  --accent-dark: #9a6f3c;
  --dark: #1f2733;
  --darker: #161c26;
  --light: #f7f4ef;
  --text: #333a44;
  --muted: #7a818c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id], footer[id] { scroll-margin-top: 84px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

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

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

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--dark);
  margin-bottom: .5em;
  position: relative;
}

.section-lead { color: var(--muted); max-width: 640px; margin-bottom: 2rem; }

.ph {
  background: repeating-linear-gradient(45deg,#f2e3c9,#f2e3c9 8px,#ead5b3 8px,#ead5b3 16px);
  border-radius: 4px;
  padding: 0 6px;
  color: #7a5a20;
  font-weight: 600;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-block;
  padding: .8em 1.6em;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: .2s;
  font-size: 1rem;
  text-align: center;
}
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--lg { padding: 1em 2.2em; font-size: 1.05rem; }
.btn--sm { padding: .6em 1.2em; font-size: .9rem; }

/* ===== ШАПКА ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(22,28,38,.85);
  backdrop-filter: blur(10px);
  transition: .3s;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
}
.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a {
  color: #dfe3e8;
  text-decoration: none;
  font-size: .95rem;
  transition: .2s;
}
.nav a:hover { color: var(--accent); }
.header__cta { font-size: .9rem; padding: .6em 1.3em; }
.burger { display: none; background: none; border: none; cursor: pointer; margin-left: auto; }
.burger span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ===== ГЛАВНЫЙ ЭКРАН ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__gallery {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
  background: #0f141c;
}
.hero__gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroFade 1s ease both;
}
@keyframes heroFade { from { opacity: 0; transform: scale(1.03);} to { opacity: 1; transform: scale(1);} }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,20,28,.42) 0%, rgba(15,20,28,.55) 40%, rgba(15,20,28,.94) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 130px;
  padding-bottom: 60px;
  text-shadow: 0 2px 18px rgba(10, 14, 20, .5);
}
.hero__badge {
  display: inline-block;
  background: rgba(185,138,78,.9);
  padding: .35em 1em;
  border-radius: 30px;
  font-size: .85rem;
  letter-spacing: .5px;
  margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: .6em;
}
.hero__subtitle { font-size: 1.1rem; max-width: 640px; opacity: .92; margin-bottom: 1.6rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== ОБ ОБЪЕКТЕ ===== */
.about { padding: 80px 0; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about__text p { margin-bottom: 1.2rem; }
.features { list-style: none; margin-top: 1.5rem; display: grid; gap: .6rem; }
.features li { padding-left: 1.6rem; position: relative; }
.about__photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  display: block;
}
.about__photos-mini {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-top: 10px;
}
.about__photos-mini img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: .2s;
}
.about__photos-mini img:hover { transform: scale(1.04); }

/* ===== ГАЛЕРЕЯ ===== */
.gallery { padding: 80px 0; background: #fff; }
.gallery__grid {
  columns: 3;
  column-gap: 14px;
  margin-top: 2rem;
}
.gallery__grid img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: .25s;
  break-inside: avoid;
}
.gallery__grid img:hover { transform: scale(1.02); }

/* ===== УСЛУГИ ===== */
.services { padding: 80px 0; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
  transition: .25s;
}
.service-card:hover { transform: translateY(-5px); }
.service-card__icon { font-size: 2.4rem; margin-bottom: .8rem; }
.service-card h3 { color: var(--dark); margin-bottom: .4rem; }
.service-card p { color: var(--muted); font-size: .95rem; }

/* ===== КАРТА ===== */
.location { padding: 80px 0; background: #fff; }
.location__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.location__text .features { margin: 1.5rem 0 2rem; }
.location__links { display: flex; gap: 1rem; flex-wrap: wrap; }
.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
  height: 100%;
}
.location__map iframe { border-radius: var(--radius); }
.map-placeholder {
  height: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8efe4, #d7e2f0);
  color: var(--muted);
  font-size: 1.1rem;
  text-align: center;
  padding: 2rem;
}

/* ===== FAQ ===== */
.faq { padding: 80px 0; }
.faq__container { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.3rem 1.7rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.faq summary {
  font-weight: 600;
  color: var(--dark);
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0;
  font-size: 1.5rem;
  color: var(--accent);
  transition: .3s;
  top: -3px;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: .8rem; color: var(--muted); }

/* ===== ФУТЕР ===== */
.footer { background: var(--darker); color: #b9c0c9; padding: 60px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.logo--footer { font-size: 1.4rem; margin-bottom: 1rem; }
.footer__desc { font-size: .95rem; max-width: 300px; }
.footer__title { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer__list { list-style: none; display: grid; gap: .6rem; font-size: .95rem; }
.footer__list a { color: #b9c0c9; text-decoration: none; transition: .2s; }
.footer__list a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: .85rem;
  text-align: center;
}

/* ===== ЛАЙТБОКС ===== */.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,13,18,.94);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 82vh; border-radius: 8px; }
.lightbox__caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 88vw;
  text-align: center;
  color: #f2f2f2;
  font-size: .95rem;
  letter-spacing: .01em;
  background: rgba(0,0,0,.45);
  padding: .5rem 1rem;
  border-radius: 999px;
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  z-index: 201;
  padding: .2em .4em;
}
.lightbox__close { top: 14px; right: 22px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { color: var(--accent); }

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(22,28,38,.97);
    padding: 1.2rem 20px 1.4rem;
    gap: .9rem;
  }
  .about__grid, .location__grid { grid-template-columns: 1fr; }
  .hero__gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .gallery__grid { columns: 2; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .hero__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .hero__actions .btn { width: 100%; }
}
