:root{
  --bg:#fbfbf9;
  --bg-dark:#2c362d;
  --text:#212121;
  --text-light:#f4f4f0;
  --muted:#7a7a7a;
  --accent:#7a8f7b;
  --accent-dark:#5a6b5b;
  --gold:#d4c4a8;
  --line:#e5e5e5;
  --radius:12px;
  --max:1200px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Jost',system-ui,sans-serif;
  font-weight:300;
  color:var(--text);
  background:var(--bg);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;object-fit:cover}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:0;background:none}
h1,h2,h3,h4{font-family:'Cormorant Garamond',serif;font-weight:400;line-height:1.15;letter-spacing:1px}
h1{font-size:clamp(3rem,6vw,5rem);text-transform:uppercase}
h2{font-size:clamp(2.2rem,4vw,3.2rem);text-transform:uppercase}
h3{font-size:1.4rem}
h4{font-size:1.8rem;color:var(--bg-dark);margin-bottom:1rem;border-bottom:1px solid var(--line);padding-bottom:.5rem}
.container{max-width:var(--max);margin:0 auto;padding:0 24px}
.eyebrow{
  font-size:.75rem;letter-spacing:.25em;text-transform:uppercase;
  color:var(--muted);margin-bottom:1.5rem;font-weight:400;
}
section{padding:clamp(4rem,8vw,7rem) 0}

/* Promo Bar */
.promo-bar{
  background:var(--bg-dark);
  color:var(--gold);
  text-align:center;
  padding:10px 15px;
  font-size:.85rem;
  letter-spacing:2px;
  text-transform:uppercase;
  font-weight:400;
}

/* Buttons */
.btn{
  display:inline-block;padding:16px 36px;border-radius:999px;
  background:var(--bg-dark);color:#fff;font-size:.95rem;letter-spacing:.05em;
  transition:.3s;border:1px solid var(--bg-dark);text-transform:uppercase;font-size:.8rem;
}
.btn:hover{background:var(--accent-dark);border-color:var(--accent-dark);transform:translateY(-2px)}
.btn--ghost{background:transparent;color:var(--text);border-color:var(--text)}
.btn--ghost:hover{background:var(--text);color:#fff}
.btn--sm{padding:12px 24px;font-size:.75rem}
.btn--light{background:#fff;color:var(--bg-dark);border-color:#fff}
.btn--light:hover{background:var(--gold);color:var(--bg-dark);border-color:var(--gold)}

/* Header */
.header{
  position:fixed;top:36px;left:0;right:0;z-index:50;
  transition:.3s;padding:20px 0;
}
.header.scrolled{background:rgba(251,251,249,.95);backdrop-filter:blur(10px);box-shadow:0 1px 0 var(--line);padding:10px 0;top:0}
.header__inner{display:flex;align-items:center;gap:32px}
.logo{font-family:'Cormorant Garamond',serif;font-size:1.5rem;font-weight:500;letter-spacing:2px}
.logo span{color:var(--muted);font-style:italic}
.nav{display:flex;gap:32px;margin-left:auto}
.nav a{font-size:.85rem;letter-spacing:.1em;text-transform:uppercase;position:relative;padding:4px 0}
.nav a::after{content:'';position:absolute;left:0;bottom:0;height:1px;width:0;background:var(--bg-dark);transition:.25s}
.nav a:hover::after{width:100%}
.header__cta{margin-left:16px}
.burger{display:none;flex-direction:column;gap:6px;padding:6px}
.burger span{width:26px;height:1px;background:var(--text);transition:.3s}
.burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger.open span:nth-child(2){opacity:0}
.burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Hero */
.hero{padding-top:clamp(10rem,16vw,14rem);padding-bottom:clamp(4rem,8vw,6rem)}
.hero__inner{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,5rem);align-items:center}
.hero h1 em{color:var(--accent);font-style:italic;text-transform:none}
.lead{margin:1.5rem 0 2rem;font-size:1.1rem;color:var(--muted);max-width:480px}
.hero__features{list-style:none;margin-bottom:2.5rem;display:flex;flex-direction:column;gap:1rem}
.hero__features li{display:flex;align-items:center;gap:12px;font-size:.95rem;color:var(--text);letter-spacing:.5px}
.hero__features span{font-size:1.2rem;opacity:0.8}
.hero__actions{display:flex;gap:16px;flex-wrap:wrap}
.hero__image{position:relative;display:flex;justify-content:center}
.arch-frame{
  width:100%;max-width:420px;height:600px;
  border-radius:250px 250px 0 0;overflow:hidden;
  box-shadow:20px 20px 0px 0px var(--line);
}
.arch-frame img{width:100%;height:100%;object-fit:cover}

/* Section Headers */
.section-head{text-align:center;margin-bottom:clamp(2.5rem,5vw,4rem);max-width:640px;margin-inline:auto}
.section-head h2{margin-top:.2rem}

/* Services */
.services__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-bottom: 2rem;}
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:36px 30px;transition:.3s;display:flex;flex-direction:column;
}
.card:hover{transform:translateY(-5px);box-shadow:0 20px 40px -20px rgba(0,0,0,.05);border-color:var(--accent)}
.card h3{margin-bottom:.8rem;font-size:1.5rem}
.card p{color:var(--muted);font-size:.95rem;flex:1}
.card__price{margin-top:1.5rem;font-family:'Cormorant Garamond',serif;font-size:1.6rem;color:var(--bg-dark);font-weight:600}
.card--accent{background:var(--bg-dark);color:var(--text-light);border-color:var(--bg-dark)}
.card--accent p{color:#a0a8a2}
.card--accent .card__price{color:var(--gold)}

/* Full Price List */
.full-price-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
  border-radius: var(--radius);
  padding: 0 30px;
  border: 1px solid transparent;
}
.full-price-list.open {
  max-height: 2000px;
  padding: 40px 30px;
  border-color: var(--line);
  margin-top: 1rem;
}
.full-price-list ul { list-style: none; }
.full-price-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 1rem;
}
.full-price-list li span:first-child { color: var(--text); max-width: 70%; }
.full-price-list li span:last-child { font-weight: 500; color: var(--bg-dark); white-space: nowrap; }

/* Gallery */
.gallery{background:#f2f2ef}
.gallery__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.gallery__grid img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:var(--radius);transition:.5s ease;cursor:pointer;}
.gallery__grid img:hover{transform:scale(1.02);box-shadow:0 20px 40px -20px rgba(0,0,0,.2)}

/* Booking CTA */
.booking{background:var(--bg-dark);color:#fff;text-align:center}
.booking__inner{max-width:700px;margin:0 auto}
.booking h2{color:#fff;margin-bottom:1rem}
.booking p{color:#a0a8a2;margin-bottom:2.5rem;font-size:1.1rem}

/* Contacts */
.contacts__inner{display:grid;grid-template-columns:1fr 1.2fr;gap:clamp(2rem,6vw,5rem);align-items:center}
.contacts__list{list-style:none;display:grid;gap:1.8rem;margin-top:2rem}
.contacts__list li{display:flex;flex-direction:column;padding-bottom:1.5rem;border-bottom:1px solid var(--line)}
.contacts__list span{font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-bottom:.4rem}
.contacts__list strong{font-weight:400;font-size:1.1rem}
.contacts__list a:hover strong{color:var(--accent)}
.contacts__map{border-radius:var(--radius);overflow:hidden;min-height:450px;box-shadow:0 20px 50px -20px rgba(0,0,0,.1)}
.contacts__map iframe{width:100%;height:100%;min-height:450px;border:0;display:block}

/* Footer */
.footer{background:var(--bg);padding:2.5rem 0;border-top:1px solid var(--line)}
.footer__inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.footer p{color:var(--muted);font-size:.85rem}

/* Reveal */
.reveal{opacity:0;transform:translateY(30px);transition:opacity .8s ease,transform .8s ease}
.reveal.in{opacity:1;transform:none}

/* Responsive */
@media (max-width:960px){
  .nav{position:fixed;inset:0;background:var(--bg);flex-direction:column;justify-content:center;align-items:center;gap:30px;transform:translateX(100%);transition:.4s;margin:0;z-index:40}
  .nav.open{transform:none}
  .nav a{font-size:1.5rem}
  .burger{display:flex;margin-left:auto;z-index:60}
  .header__cta{display:none}
  .hero__inner,.contacts__inner{grid-template-columns:1fr;text-align:center}
  .hero__image{order:-1;margin-top:2rem}
  .arch-frame{max-width:320px;height:450px;box-shadow:none}
  .lead{margin-inline:auto}
  .hero__features{align-items:center}
  .hero__actions{justify-content:center}
  .services__grid,.gallery__grid{grid-template-columns:repeat(2,1fr)}
  .full-price-list { grid-template-columns: 1fr; gap: 20px; }
  .full-price-list.open { padding: 30px 20px; }
}
@media (max-width:600px){
  .services__grid,.gallery__grid{grid-template-columns:1fr}
  .contacts__map{min-height:350px}
  .contacts__map iframe{min-height:350px}
}

/* Стили для логотипа-картинки */
.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 960px) {
  .logo-img {
    height: 35px;
  }
}

/* --- Модальное окно --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(33, 33, 33, 0.7); /* Темное затемнение */
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--bg);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: translateY(30px);
  transition: transform 0.4s ease;
  border: 1px solid var(--gold);
  position: relative;
}
.modal-overlay.show .modal-box {
  transform: translateY(0);
}
.modal-box h2 {
  color: var(--bg-dark);
  margin-bottom: 1rem;
  font-size: 2rem;
  text-transform: uppercase;
}
.modal-box p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: var(--text);
}
.modal-box .btn {
  margin-top: 10px;
  padding: 12px 40px;
}
/* Кнопка крестик в углу */
.modal-close-x {
  position: absolute;
  top: 15px; right: 15px;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s;
  line-height: 1;
}
.modal-close-x:hover {
  color: var(--bg-dark);
}

/* Стили для юридических страниц */
.legal-page {
  padding-top: 140px;
  padding-bottom: 80px;
}
.legal-page h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 2rem;
  color: var(--bg-dark);
  text-transform: none;
}
.legal-page h3 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  color: var(--bg-dark);
}
.legal-page p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.legal-page a { color: var(--accent-dark); text-decoration: underline; }

/* Стили для ссылок в футере */
.footer__links {
  display: flex;
  gap: 20px;
}
.footer__links a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: underline;
  transition: 0.2s;
}
.footer__links a:hover { color: var(--bg-dark); }
@media (max-width: 600px) {
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { flex-direction: column; gap: 10px; }
}
