/* Внутренние страницы: «О поселке», «Контакты». Общая база, шапка, компоненты. */
html { overflow-x: hidden; }
img { height: auto; }
body { margin: 0; background: #0c0f08; color: #f5f5f5; font-family: 'Montserrat', sans-serif; overflow-x: hidden; }
a { color: #8ba48c; text-underline-offset: 2px; }

/* Шапка */
header { display: flex; justify-content: space-between; align-items: center; padding: 20px; position: relative; background-color: #0c0f08; }
header .logo { display: inline-block; padding: 9px 0; margin: -9px 0; }
header .logo img { width: 140px; height: auto; display: block; }
#nav-menu { display: flex; gap: 20px; align-items: center; }
#nav-menu a { text-decoration: none; color: #ccc; font-size: 16px; transition: 0.3s; }
#nav-menu a:hover, #nav-menu a[aria-current="page"] { color: #fff; }
.burger { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 25px; cursor: pointer; border: 0; background: none; box-sizing: content-box; padding: 10px 7px; margin: -10px -7px; }
.burger span { display: block; height: 4px; background-color: #fff; border-radius: 2px; }
@media (max-width: 768px) {
  #nav-menu { position: absolute; top: 70px; right: 0; background-color: #0c0f08; flex-direction: column; align-items: flex-start; width: min(200px, 80vw); padding: 20px; gap: 15px; transform: translateX(100%); transition: transform 0.3s ease, visibility 0.3s; border-radius: 0 0 0 10px; visibility: hidden; pointer-events: none; z-index: 10; }
  #nav-menu.active { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .burger { display: flex; }
}

/* Каркас страницы */
.wrap { max-width: 1100px; margin: 0 auto; padding: 8px 20px 56px; }
.crumbs { margin: 0 0 18px; font-size: 14px; color: #979d97; }
.eyebrow { margin: 0 0 10px; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: #8ba48c; }
h1, h2, h3 { font-family: 'Marcellus SC', serif; font-weight: 400; color: #fff; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin: 0 0 14px; }
h3 { font-size: 1.25rem; margin: 0 0 8px; }
.lead { max-width: 640px; margin: 0 0 24px; color: #d6d6d6; font-size: 1.08rem; line-height: 1.65; }
.section { margin: 64px 0 0; }
.section > p { max-width: 680px; color: #cfcfcf; line-height: 1.7; margin: 0 0 14px; }
.panel { position: relative; isolation: isolate; overflow: hidden; border: 1px solid rgba(139, 164, 140, 0.4); border-radius: 18px; background: #11140c; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url('/uploads/img10.webp') center / cover no-repeat; opacity: 0.35; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btns .write-btn { text-decoration: none; margin: 0; }
.btns .primary { background: #fff; color: #0c0f08; font-weight: 600; }
.btns .primary:hover, .btns .primary:focus-visible { background: transparent; color: #fff; }

/* О поселке */
.ab-hero { padding: 40px 32px; }
.ab-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 0; padding: 0; }
.ab-stats div { padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.ab-stats dt { margin: 0 0 4px; font-size: 13px; color: #979d97; }
.ab-stats dd { margin: 0; font-family: 'Marcellus SC', serif; font-size: 1.45rem; color: #fff; }
.ab-where { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.ab-where p, .ab-manage p { max-width: none; margin: 0 0 14px; color: #cfcfcf; line-height: 1.7; }
.ab-card { padding: 22px; border: 1px solid rgba(139, 164, 140, 0.4); border-radius: 14px; background: linear-gradient(160deg, rgba(139, 164, 140, 0.12), rgba(255, 255, 255, 0.02)); }
.ab-card h3 { color: #8ba48c; }
.ab-where .ab-card p { margin: 0 0 10px; color: #e6e6e6; line-height: 1.55; font-size: 15px; }
.ab-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ab-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; display: block; }
.ab-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ab-value { padding: 24px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; background: rgba(255, 255, 255, 0.03); }
.ab-value h3 { font-size: 1.4rem; margin-bottom: 14px; }
.ab-value ul { margin: 0; padding: 0; list-style: none; }
.ab-value li { position: relative; padding-left: 20px; margin: 0 0 10px; color: #e0e0e0; line-height: 1.5; }
.ab-value li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: #8ba48c; }
.ab-note { margin: 24px 0 0; color: #cfcfcf; max-width: 720px; line-height: 1.6; }
.ab-ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ab-way { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid rgba(139, 164, 140, 0.4); border-radius: 16px; text-decoration: none; color: inherit; background: linear-gradient(160deg, rgba(139, 164, 140, 0.12), rgba(255, 255, 255, 0.02)); transition: border-color 0.25s, transform 0.25s; }
.ab-way:hover, .ab-way:focus-visible { border-color: #8ba48c; transform: translateY(-3px); }
.ab-way h3 { margin: 0; font-size: 1.5rem; }
.ab-way p { margin: 0; color: #cfcfcf; line-height: 1.6; flex: 1; }
.ab-way span { color: #fff; font-weight: 600; }
.ab-manage { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.ab-manage dl { margin: 0; padding: 22px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; }
.ab-manage dt { margin: 14px 0 2px; font-size: 13px; color: #979d97; }
.ab-manage dt:first-child { margin-top: 0; }
.ab-manage dd { margin: 0; color: #e6e6e6; line-height: 1.5; }
.ab-reviews { text-align: center; }
.ab-reviews h2 { text-align: center; }
.reviews-widget { width: 100%; max-width: 560px; margin: 0 auto; }
.reviews-widget iframe { width: 100%; height: 640px; border: 1px solid #2a3324; border-radius: 8px; box-sizing: border-box; background: #fff; display: block; }
.ab-reviews .maps-credit { display: block; margin-top: 6px; font-size: 12px; color: #979d97; }
.ab-reviews .maps-link { display: inline-block; margin-top: 10px; padding: 12px 0; }
.ab-cta { margin-top: 64px; padding: 44px 28px; text-align: center; }
.ab-cta p { margin: 0 auto 20px; max-width: 520px; color: #d6d6d6; line-height: 1.6; }
.ab-cta .btns { justify-content: center; }

/* Контакты */
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin-top: 8px; }
.ct-cards { display: grid; gap: 14px; }
.ct-card { padding: 20px 22px; border: 1px solid rgba(139, 164, 140, 0.4); border-radius: 14px; background: linear-gradient(160deg, rgba(139, 164, 140, 0.1), rgba(255, 255, 255, 0.02)); }
.ct-card dt { margin: 0 0 4px; font-size: 13px; color: #979d97; }
.ct-card dd { margin: 0; color: #fff; line-height: 1.5; }
.ct-card dd a { color: #fff; text-decoration: none; font-family: 'Marcellus SC', serif; font-size: 1.35rem; display: inline-block; padding: 6px 0; }
.ct-card dd a:hover, .ct-card dd a:focus-visible { color: #8ba48c; }
.ct-card small { display: block; margin-top: 4px; color: #979d97; font-size: 13px; }
.ct-form { padding: 30px 28px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 18px; background: #11140c; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.ct-form h2 { font-size: 1.7rem; margin: 0 0 8px; }
.ct-form .ct-lead { margin: 0 0 20px; color: #aaa; line-height: 1.5; }
.ct-form .lead-page { padding: 0; max-width: none; margin: 0; }
.ct-org { margin: 40px 0 0; color: #979d97; font-size: 14px; line-height: 1.7; }

@media (max-width: 900px) {
  .ab-stats { grid-template-columns: repeat(2, 1fr); }
  .ab-where, .ab-manage, .ct-grid { grid-template-columns: 1fr; }
  .ab-values { grid-template-columns: 1fr; }
  .ab-gallery { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .ab-gallery li { scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .wrap { padding: 4px 16px 40px; }
  .ab-hero { padding: 28px 20px; }
  .ab-ways { grid-template-columns: 1fr; }
  .ct-form { padding: 24px 18px; }
  .section { margin-top: 48px; }
  .reviews-widget iframe { height: 560px; }
}
