.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  color: var(--parchment);
  background: var(--emerald-deep);
  border-bottom: 1px solid transparent;
  transition: box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.site-header.is-scrolled { border-color: var(--line-light); box-shadow: 0 8px 20px rgba(4, 41, 35, .16); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; color: var(--emerald-deep); background: var(--gold); border-radius: 50%; font: 700 1.8rem/.9 var(--font-display); }
.brand-name { font: 600 clamp(1.4rem, 2.2vw, 1.65rem)/.9 var(--font-display); letter-spacing: -.03em; }
.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2rem); }
.site-nav a { color: var(--parchment); font-size: .86rem; font-weight: 600; text-decoration: none; transition: color 180ms var(--ease); }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--gold-pale); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; color: var(--parchment); background: transparent; border: 1px solid var(--line-light); border-radius: 50%; }
.menu-toggle i { font-size: 1.15rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button--primary { color: var(--paper); background: var(--emerald); }
.button--primary:hover { background: var(--emerald-bright); }
.button--outline { color: currentColor; background: transparent; border-color: currentColor; }
.button--outline:hover { color: var(--emerald-deep); background: var(--gold-pale); border-color: var(--gold-pale); }
.button--gold { color: var(--emerald-deep); background: var(--gold); }
.button--gold:hover { background: var(--gold-pale); }
.button--small { min-height: 39px; padding-inline: .9rem; font-size: .75rem; }

.fact-list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); }
.fact-list li { display: flex; align-items: center; gap: .75rem; padding: 1rem; color: var(--walnut); background: var(--paper); font-weight: 600; }
.fact-list i { width: 1.3rem; color: var(--emerald); text-align: center; }

.package-card { display: flex; flex-direction: column; min-height: 100%; padding: clamp(1.5rem, 3vw, 2.5rem); color: var(--walnut); border: 1px solid var(--line); background: var(--paper); }
.package-card--featured { color: var(--paper); background: var(--emerald-deep); border-color: var(--emerald-deep); }
.package-label { margin: 0 0 .75rem; color: var(--smoke); font-size: .85rem; font-weight: 700; }
.package-card--featured .package-label { color: var(--gold-pale); }
.package-price { margin: .4rem 0 1.35rem; color: var(--emerald); font: 600 clamp(2.2rem, 4vw, 3.1rem)/1 var(--font-display); }
.package-card--featured .package-price { color: var(--gold-pale); }
.package-list { display: grid; gap: .55rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.package-list li { display: flex; gap: .55rem; align-items: flex-start; }
.package-list li::before { content: '✦'; color: var(--gold); font-size: .75rem; line-height: 1.8; }
.package-card .button { margin-top: auto; align-self: flex-start; }

.contact-modal, .lightbox { position: fixed; z-index: 60; inset: 0; display: none; align-items: center; justify-content: center; overflow-y: auto; padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); background: rgba(5, 35, 30, .76); }
.contact-modal.is-open, .lightbox.is-open { display: flex; }
.modal-card { position: relative; width: min(100%, 510px); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: clamp(2.75rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4rem) clamp(2rem, 6vw, 4rem); color: var(--parchment); background: var(--emerald-deep); box-shadow: var(--shadow-modal); -webkit-overflow-scrolling: touch; }
.modal-card::before { position: absolute; top: 1rem; right: 1rem; bottom: 1rem; left: 1rem; pointer-events: none; content: ''; border: 1px solid rgba(201, 169, 97, .45); }
.modal-card > * { position: relative; }
.modal-card h2 { font-size: clamp(2.35rem, 6vw, 4.1rem); }
.modal-close { position: absolute; z-index: 1; top: 1.2rem; right: 1.2rem; display: grid; width: 42px; height: 42px; padding: 0; place-items: center; color: var(--parchment); background: transparent; border: 1px solid var(--line-light); border-radius: 50%; }
.modal-contact-list { display: grid; gap: .65rem; margin: 1.75rem 0 2rem; }
.modal-contact-list a { color: var(--parchment); font-weight: 700; text-decoration-color: var(--gold); text-underline-offset: .2em; }

.site-footer { color: var(--parchment); background: var(--emerald-deep); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; padding-block: 4.2rem 2.6rem; }
.footer-intro p { margin-top: 1rem; color: rgba(245, 241, 232, .75); }
.footer-title { margin-bottom: .85rem; color: var(--gold-pale); font-family: var(--font-sans); font-size: .8rem; font-weight: 700; }
.footer-links { display: grid; gap: .45rem; padding: 0; margin: 0; list-style: none; }
.footer-links a { font-size: .88rem; text-decoration: none; }
.footer-links a:hover { color: var(--gold-pale); }
.footer-socials { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-socials a { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line-light); border-radius: 50%; transition: color 180ms var(--ease), background 180ms var(--ease); }
.footer-socials a:hover { color: var(--emerald-deep); background: var(--gold-pale); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; color: rgba(245, 241, 232, .7); border-top: 1px solid var(--line-light); font-size: .75rem; }

/* ===== Адаптивность хедера и футера по брейкпоинтам 1024 / 768 / 480 / 360 ===== */
@media (max-width: 1024px) {
  .header-phone { font-size: .76rem; }
  .header-actions { gap: .75rem; }
}

@media (max-width: 960px) {
  .header-phone, .header-actions .button { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .site-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: grid; gap: 0; max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; padding: .75rem var(--space-md) 1.25rem; background: var(--emerald-deep); border-top: 1px solid var(--line-light); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .site-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line-light); }
  .site-nav .button { display: inline-flex; margin-top: .9rem; color: var(--emerald-deep); background: var(--gold); border-color: var(--gold); }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-block: 3rem 2rem; }
  .footer-intro { grid-column: span 2; }
  .footer-grid > :last-child { grid-column: auto; }
  .header-inner { min-height: 68px; gap: .75rem; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.5rem; }
  .brand-mark { width: 34px; height: 34px; font-size: 1.55rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-intro, .footer-grid > :last-child { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: .35rem; }
}

@media (max-width: 360px) {
  .menu-toggle { width: 42px; height: 42px; }
  .header-inner { min-height: 64px; }
}
