/* ===== Переменные: цвета, шрифты, скругления ===== */
:root {
  --bg: #FBF9F6;
  --bg-alt: #F0EDE4;
  --card: #FFFFFF;
  --text: #2F3341;
  --muted: #62666F;
  --line: #E4DFD5;
  --green: #2E4A3B;
  --green-dark: #293630;
  --green-soft: #E6ECE7;
  --orange: #C9651D;       /* текст цен на светлом фоне (контраст ≥ 4.5:1) */
  --orange-bright: #E07B2E; /* плашки и акценты на тёмном фоне */
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 6px 24px rgba(47, 51, 65, .07);
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --mbar-h: 64px;
}
@media (min-width: 768px) { :root { --radius: 32px; } }

/* ===== Основа ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--text); background: var(--bg);
  padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 24px; height: 24px; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--orange-bright); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); padding: 10px 16px; border-radius: 12px; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* Заглушка: видно, что надо заменить. Чтобы скрыть подсветку для показа — уберите этот блок. */
.ph { outline: 1.5px dashed rgba(224, 123, 46, .7); outline-offset: 2px; border-radius: 4px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 100px; border: 2px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--primary:disabled { background: var(--bg-alt); color: var(--muted); cursor: not-allowed; }
.btn--outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--ghost { background: transparent; color: var(--muted); padding: 0 16px; }
.btn--ghost:hover { color: var(--text); }
.btn--glass { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); color: #fff; }
.btn--glass:hover { background: rgba(255,255,255,.28); }
.btn--light { background: #fff; color: var(--green-dark); }
.btn--light:hover { background: var(--bg-alt); }

/* ===== Шапка ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 246, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.header__cta { white-space: nowrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); margin-right: auto; }
.logo__mark { width: 36px; height: 22px; }
.logo__text { font-weight: 700; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.nav { display: none; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.nav a:hover { color: var(--green); }
.header__phone { display: none; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header__cta { display: none; }
.burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1099px) {
  .nav.is-open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); padding: 8px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.is-open a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
}
@media (min-width: 768px) { .header__phone { display: block; } }
@media (min-width: 1100px) {
  .nav { display: flex; gap: 20px; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
}

/* ===== Первый экран: название крупно, фото вырезано силуэтом гор ===== */
.hero { padding: 20px 0 0; overflow: hidden; }
@media (min-width: 768px) { .hero { padding-top: 28px; } }
.hero__top { position: relative; z-index: 2; display: grid; gap: 18px; }
@media (min-width: 1000px) { .hero__top { grid-template-columns: minmax(0, 1fr) 320px; align-items: end; gap: 40px; } }
.hero__title { margin: 8px 0 0; font-size: clamp(56px, 11.2vw, 160px); line-height: .8; font-weight: 700; letter-spacing: -.035em; text-transform: uppercase; color: var(--green-dark); }
.hero__letters { display: inline-flex; overflow: hidden; padding-bottom: .04em; }
.hero__letters > span { display: inline-block; transform: translateY(105%); animation: heroRise .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero__letters > span:nth-child(2) { animation-delay: .06s; }
.hero__letters > span:nth-child(3) { animation-delay: .12s; }
.hero__letters > span:nth-child(4) { animation-delay: .18s; }
.hero__letters > span:nth-child(5) { animation-delay: .24s; }
.hero__letters > span:nth-child(6) { animation-delay: .30s; }
.hero__letters > span:nth-child(7) { animation-delay: .36s; }
@keyframes heroRise { to { transform: none; } }
.hero__lead { margin: 0 0 18px; font-size: 17px; color: var(--muted); }
.hero__side .btn { width: 100%; }
.hero__side .btn + .btn { margin-top: 10px; }
.hero__in { opacity: 0; transform: translateY(18px); animation: heroIn .8s ease forwards; }
.hero__in--1 { animation-delay: .4s; } .hero__in--3 { animation-delay: .7s; } .hero__in--5 { animation-delay: 1.4s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.hero__photo { position: relative; margin-top: clamp(-120px, -7vw, -30px); height: 560px; }
@media (min-width: 900px) { .hero__photo { height: clamp(420px, 66vh, 720px); } }
.hero__mask { position: absolute; inset: 0; overflow: hidden; border-radius: 0 0 var(--radius) var(--radius);
  clip-path: polygon(0 100%, 8% 100%, 16% 100%, 24% 100%, 31% 100%, 36% 100%, 40% 100%, 44% 100%, 49% 100%, 56% 100%, 63% 100%, 70% 100%, 78% 100%, 86% 100%, 93% 100%, 100% 100%, 100% 100%, 0 100%);
  animation: heroRidgeM 1.6s .2s cubic-bezier(.2,.8,.2,1) forwards; }
@media (min-width: 900px) { .hero__mask { animation-name: heroRidge; } }
@keyframes heroRidge { to { clip-path: polygon(0 36%, 8% 31%, 16% 24%, 24% 28%, 31% 15%, 36% 4%, 40% 10%, 44% 6%, 49% 16%, 56% 22%, 63% 18%, 70% 27%, 78% 23%, 86% 31%, 93% 28%, 100% 35%, 100% 100%, 0 100%); } }
@keyframes heroRidgeM { to { clip-path: polygon(0 22%, 8% 19%, 16% 15%, 24% 17%, 31% 9%, 36% 3%, 40% 6%, 44% 4%, 49% 10%, 56% 13%, 63% 11%, 70% 16%, 78% 14%, 86% 18%, 93% 17%, 100% 21%, 100% 100%, 0 100%); } }
.hero__img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 2.4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes heroZoom { from { transform: scale(1.18); } to { transform: none; } }
.hero__ridge { display: none; }
@media (min-width: 900px) {
  .hero__ridge { display: block; position: absolute; left: 0; top: -14px; width: 100%; height: calc(100% + 14px); pointer-events: none; overflow: visible; }
  .hero__ridge path { fill: none; stroke: var(--orange-bright); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0 9; vector-effect: non-scaling-stroke; opacity: 0; animation: heroIn .6s 1.7s forwards; }
}

/* условия — полупрозрачная полоса поверх фото */
.hero__perks { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: repeat(2, 1fr); border-radius: 20px; overflow: hidden;
  background: rgba(24, 34, 29, .55); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); color: #fff; }
.hero__perks li { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.hero__perks li:nth-child(even) { border-left: 1px solid rgba(255,255,255,.16); }
.hero__perks li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); }
.hero__perks b { font-size: clamp(17px, 2vw, 24px); color: #FFB774; white-space: nowrap; }
.hero__perks span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.hero__perks .ph { color: #FFB774; align-self: flex-start; }
@media (min-width: 900px) {
  .hero__perks { left: 20px; right: 20px; bottom: 20px; grid-template-columns: repeat(4, 1fr); }
  .hero__perks li { padding: 18px 24px; }
  .hero__perks li + li { border-left: 1px solid rgba(255,255,255,.16); }
  .hero__perks li:nth-child(n+3) { border-top: 0; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero__letters > span, .hero__in, .hero__img, .hero__ridge path { animation: none; transform: none; opacity: 1; }
  .hero__mask { animation: none; clip-path: polygon(0 22%, 8% 19%, 16% 15%, 24% 17%, 31% 9%, 36% 3%, 40% 6%, 44% 4%, 49% 10%, 56% 13%, 63% 11%, 70% 16%, 78% 14%, 86% 18%, 93% 17%, 100% 21%, 100% 100%, 0 100%); }
}
@media (prefers-reduced-motion: reduce) and (min-width: 900px) {
  .hero__mask { clip-path: polygon(0 36%, 8% 31%, 16% 24%, 24% 28%, 31% 15%, 36% 4%, 40% 10%, 44% 6%, 49% 16%, 56% 22%, 63% 18%, 70% 27%, 78% 23%, 86% 31%, 93% 28%, 100% 35%, 100% 100%, 0 100%); }
}

/* ===== Общие разделы ===== */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 104px 0; } }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--green-dark); color: #fff; }
.section__head { max-width: 760px; margin-bottom: 32px; }
@media (min-width: 768px) { .section__head { margin-bottom: 48px; } }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 40px; }
.section__head--row .section__lead { max-width: 380px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.eyebrow--light { color: rgba(255,255,255,.8); }
.section__title, .hero__title, .quiz__q { text-wrap: balance; }
.section__lead, .hero__lead, .fact__text, .note { text-wrap: pretty; }
.section__title { font-size: clamp(28px, 4.6vw, 52px); line-height: 1.12; font-weight: 700; margin: 12px 0 14px; letter-spacing: -.01em; }
.section__lead { font-size: 17px; color: var(--muted); }
.section--dark .section__lead { color: rgba(255,255,255,.78); }
.note { margin-top: 20px; font-size: 13px; color: var(--muted); }
.center { display: flex; justify-content: center; margin-top: 40px; }

/* ===== О проекте ===== */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.fact { background: var(--card); border-radius: var(--radius-sm); padding: 20px 18px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .fact { padding: 30px; border-radius: 28px; } }
.fact__icon { display: block; width: 36px; height: 36px; color: var(--green); background: var(--green-soft); border-radius: 12px; padding: 7px; margin-bottom: 16px; }
.fact__value { font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; line-height: 1.2; display: inline-block; }
.fact__text { margin-top: 6px; font-size: 14px; color: var(--muted); }
.features { display: grid; grid-template-columns: 1fr; gap: 12px 24px; margin-top: 24px; padding: 22px 20px; background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(3, 1fr); padding: 28px 30px; border-radius: 28px; } }
.features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; line-height: 1.4; }
.features svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--green); }

.showcase { display: grid; gap: 10px; margin-top: 24px; grid-template-columns: repeat(2, 1fr); }
.showcase__item--big { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .showcase { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 16px; }
  .showcase__item--big { grid-column: 1; grid-row: 1 / 3; }
}
.showcase__item { position: relative; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.showcase__item--big { aspect-ratio: 1 / 1; }
@media (min-width: 900px) { .showcase__item, .showcase__item--big { aspect-ratio: auto; border-radius: 24px; } }
.showcase__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.showcase__item:hover img { transform: scale(1.03); }
.showcase__caption { position: absolute; left: 10px; bottom: 10px; right: 10px; text-align: left; background: rgba(255,255,255,.92); color: var(--text); font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 100px; width: fit-content; max-width: calc(100% - 20px); }
@media (min-width: 768px) { .showcase__caption { left: 16px; bottom: 16px; font-size: 13px; } }

/* ===== Планировки ===== */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan__img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 16px; border: 0; background: #fff; border-bottom: 1px solid var(--line); }
.plan__img { width: 100%; }
.plan__img img { width: 100%; height: 100%; object-fit: contain; }
.plan__zoom { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--green); }
.plan__zoom svg { width: 20px; height: 20px; }
.plan__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.plan__type { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--green); }
.plan__area { font-size: 30px; font-weight: 700; margin-top: 4px; }
.plan__rooms { margin: 12px 0 18px; font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.plan__price { font-size: 22px; font-weight: 700; color: var(--orange); margin: auto 0 16px; }

/* ===== Ход строительства ===== */
.months {
  --edge: 16px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--edge);
  padding: 4px var(--edge) 16px; scrollbar-width: thin;
}
@media (min-width: 640px) { .months { grid-auto-columns: 42%; } }
@media (min-width: 768px) { .months { --edge: max(32px, calc((100vw - 1240px) / 2 + 32px)); } }
@media (min-width: 1100px) { .months { grid-auto-columns: calc((min(100vw, 1240px) - 64px - 32px) / 3); gap: 16px; } }
.month { scroll-snap-align: start; }
.month__ph, .month__photo { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; }
.month__ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: repeating-linear-gradient(135deg, var(--bg-alt) 0 14px, #ECE8DE 14px 28px); color: var(--muted); font-size: 13px; font-weight: 600; }
.month__ph svg { width: 36px; height: 36px; color: var(--green); }
.month__photo { padding: 0; border: 0; width: 100%; }
.month__photo img { width: 100%; height: 100%; object-fit: cover; }
.month__mosaic { aspect-ratio: 4 / 3; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; border-radius: var(--radius-sm); overflow: hidden; }
.month__cell { position: relative; padding: 0; border: 0; background: var(--bg-alt); overflow: hidden; cursor: zoom-in; min-height: 0; }
.month__cell:first-child { grid-row: span 2; }
.month__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.month__cell:hover img { transform: scale(1.04); }
.month__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 26, 23, .45); color: #fff; font-size: 22px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .month__cell img { transition: none; } .month__cell:hover img { transform: none; } }
.month__date { margin-top: 14px; font-weight: 700; font-size: 18px; }
.month__text { margin-top: 4px; font-size: 14px; color: var(--muted); display: inline-block; }

/* ===== Расположение ===== */
.location { display: grid; gap: 16px; }
@media (min-width: 1000px) { .location { grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: stretch; } }
.location__scheme { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.location__scheme img { width: 100%; }
.map { border-radius: var(--radius); overflow: hidden; background: #E6E2D8; aspect-ratio: 16 / 10; }
@media (min-width: 1000px) { .location .map { aspect-ratio: auto; min-height: 300px; } }
.map--tall { aspect-ratio: auto; min-height: 340px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: inherit; border: 0; }

/* ===== Маршруты от дома: вкладки и фото-полароиды ===== */
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.routes__tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.routes__tab {
  min-height: 48px; padding: 0 22px; border-radius: 100px; border: 1.5px solid rgba(255,255,255,.45);
  background: transparent; color: #fff; font-weight: 600; font-size: 15px; transition: background-color .2s, color .2s;
}
.routes__tab:hover { background: rgba(255,255,255,.1); }
.routes__tab[aria-selected="true"] { background: #fff; color: var(--green-dark); border-color: #fff; }
@media (max-width: 599px) { .routes__tab { padding: 0 16px; } .routes__tab span { display: none; } }
.routes__note { text-align: center; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.75); }
.routes__panels { margin-top: 40px; }

.routes__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.routes__trail { display: none; }
.polaroid { margin: 0; background: #fff; padding: 8px 8px 0; border-radius: 4px; box-shadow: 0 14px 34px rgba(0,0,0,.35); transition: transform .3s; }
.polaroid:nth-child(odd) { transform: rotate(-2.5deg); }
.polaroid:nth-child(even) { transform: rotate(2deg); }
.polaroid img, .polaroid__ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.polaroid__ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: repeating-linear-gradient(135deg, var(--bg-alt) 0 12px, #ECE8DE 12px 24px); color: var(--muted); font-size: 12px; font-weight: 600; }
.polaroid__ph svg { width: 30px; height: 30px; color: var(--green); }
.polaroid figcaption { padding: 10px 4px 12px; text-align: center; font-weight: 600; font-size: 13px; line-height: 1.3; color: var(--text); }
.polaroid figcaption.ph { margin: 6px 4px 10px; padding: 4px; }
.routes__panel:not([hidden]) .polaroid { animation: drop .5s ease-out both; }
.routes__panel .polaroid:nth-child(3) { animation-delay: .08s; }
.routes__panel .polaroid:nth-child(4) { animation-delay: .16s; }
.routes__panel .polaroid:nth-child(5) { animation-delay: .24s; }
@keyframes drop { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* На широком экране фото разбросаны, их соединяет пунктирная тропа */
@media (min-width: 900px) {
  .routes__panel { display: block; position: relative; height: 700px; }
  .routes__trail { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .routes__trail path { fill: none; stroke: var(--orange-bright); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .75; vector-effect: non-scaling-stroke; }
  .polaroid { position: absolute; padding: 12px 12px 0; }
  .polaroid figcaption { font-size: 16px; padding: 14px 6px 18px; }
  .polaroid--1 { left: 1%;  top: 10px;  width: 33%; transform: rotate(-3deg); }
  .polaroid--2 { left: 37%; top: 150px; width: 29%; transform: rotate(3deg); }
  .polaroid--3 { left: 69%; top: 0;     width: 30%; transform: rotate(2deg); }
  .polaroid--4 { left: 66%; top: 400px; width: 25%; transform: rotate(-3deg); }
  .polaroid:hover { transform: rotate(0) scale(1.03); z-index: 2; }
}

/* Записка вместо фото в «Природа у дома» */
.polaroid--note { padding: 18px 18px 20px; color: var(--text); background: #FFFDF7; }
.polaroid__title { font-weight: 700; font-size: 15px; margin-bottom: 10px; color: var(--green); }
.polaroid--note ul { display: grid; gap: 8px; font-size: 14px; line-height: 1.35; }
.polaroid--note li { position: relative; padding-left: 16px; }
.polaroid--note li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-bright); }
.routes__panels .polaroid--note { grid-column: 1 / -1; }

/* «Горная рядом» и «Транспорт»: обычная сетка, без разброса фото */
.routes__panel--info { display: block; }
@media (min-width: 900px) { .routes__panel.routes__panel--info { height: auto; } }
.routes__panel--info:not([hidden]) > * { animation: drop .5s ease-out both; }
.near { display: grid; gap: 16px; }
@media (min-width: 900px) { .near { grid-template-columns: 1fr 1.6fr; gap: 24px; align-items: stretch; } }
.near__big { background: var(--orange-bright); color: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; }
.near__num { font-size: clamp(48px, 6vw, 76px); font-weight: 700; line-height: 1; margin-bottom: 14px; }
.near__big p:last-child { font-size: 16px; color: rgba(255,255,255,.95); }
.near__list { display: grid; gap: 10px; }
@media (min-width: 600px) { .near__list { grid-template-columns: 1fr 1fr; } }
.near__list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; color: var(--text); border-radius: var(--radius-sm); padding: 18px; }
.near__list svg { color: var(--green); flex: none; }
.near__list span { font-size: 14px; color: var(--muted); }
.near__list b { display: block; font-size: 16px; color: var(--text); margin-bottom: 2px; }

.bus { background: #fff; color: var(--text); border-radius: var(--radius); padding: 24px 22px; }
@media (min-width: 900px) { .bus { padding: 40px 44px; } }
.bus__head { display: flex; gap: 18px; align-items: center; }
.bus__num { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--orange-bright); color: #fff; font-size: 30px; font-weight: 700; }
.bus__head p { color: var(--muted); }
.bus__head b { display: block; font-size: clamp(18px, 2vw, 24px); color: var(--text); }
.bus__stops { list-style: none; position: relative; display: grid; gap: 14px; margin: 28px 0 0; padding-left: 26px; }
.bus__stops::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; border-left: 3px dotted var(--orange-bright); }
.bus__stops li { position: relative; font-weight: 600; font-size: 15px; }
.bus__stops li::before { content: ""; position: absolute; left: -26px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-sizing: content-box; transform: translateX(-1px); }
.bus__stop--home::before, .bus__stop--end::before { background: var(--orange-bright) !important; border-color: var(--orange-bright) !important; }
.bus__stop--home { color: var(--orange); }
@media (min-width: 900px) {
  .bus__stops { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 30px 0 0; }
  .bus__stops::before { left: 6%; right: 6%; top: 8px; bottom: auto; border-left: 0; border-top: 3px dotted var(--orange-bright); }
  .bus__stops li { text-align: center; font-size: 14px; }
  .bus__stops li::before { left: 50%; top: -30px; margin: 0 0 0 -9px; transform: none; }
}
.bus__note { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ===== Тема гор: горизонтали на фоне ===== */
.section--topo { background-image: url("../img/contours.svg"); background-repeat: no-repeat; background-size: 900px auto; background-position: right -380px top -60px; }
.section--topo-light { background-image: url("../img/contours-light.svg"); background-repeat: no-repeat; background-size: 1100px auto; background-position: left -420px bottom -180px; }
#location.section--topo { background-position: left -420px bottom -160px; }
#contacts.section--topo { background-position: right -380px bottom -200px; }
@media (min-width: 900px) {
  .section--topo { background-size: 1600px auto; background-position: right -620px top -120px; }
  .section--topo-light { background-size: 1600px auto; background-position: center bottom -260px; }
  #location.section--topo { background-position: left -700px bottom -300px; }
  #contacts.section--topo { background-position: right -560px bottom -360px; }
}

/* ===== Тема гор: пунктирная тропа между разделами ===== */
.has-trail { position: relative; }
.trail {
  --trail-h: 96px;
  position: absolute; left: 5px; top: calc(9px - var(--trail-h)); width: min(70%, 640px); height: var(--trail-h);
  overflow: visible; pointer-events: none; color: var(--orange-bright);
  clip-path: inset(0 -6px 100% -6px); transition: clip-path 1.4s ease-out;
}
.trail.is-drawn { clip-path: inset(-6px); }
.trail path { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .8; vector-effect: non-scaling-stroke; }
@media (min-width: 768px) { .trail { --trail-h: 150px; } }
.has-trail .eyebrow { position: relative; padding-left: 22px; }
.has-trail .eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; border: 2px solid var(--orange-bright);
}
.hero { padding-bottom: 32px; }
@media (min-width: 768px) { .hero { padding-bottom: 48px; } }

/* ===== Способы покупки ===== */
.pay { display: grid; gap: 16px; }
@media (min-width: 900px) { .pay { grid-template-columns: repeat(3, 1fr); } }
.pay__card { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px 24px; }
@media (min-width: 768px) { .pay__card { padding: 36px 32px; } }
.pay__card--accent { background: #fff; color: var(--text); border-color: #fff; }
.pay__icon { width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: rgba(255,255,255,.1); color: #fff; }
.pay__card--accent .pay__icon { background: var(--green-soft); color: var(--green); }
.pay__badge { position: absolute; top: 24px; right: 24px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 6px 12px; border-radius: 100px; background: var(--green); color: #fff; }
.pay__badge--orange { background: var(--orange-bright); color: #1E1A16; }
.pay__title { font-size: 22px; font-weight: 700; margin: 20px 0 10px; }
.pay__big { font-size: 34px; font-weight: 700; color: var(--orange-bright); line-height: 1.15; display: inline-block; }
.pay__card--accent .pay__big { color: var(--orange); }
.pay__big span { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.85); }
.pay__card--accent .pay__big span { color: var(--muted); }
.pay__list { margin-top: 18px; display: grid; gap: 10px; font-size: 15px; }
.pay__list li { padding-left: 18px; position: relative; width: fit-content; }
.pay__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-bright); }
.section--dark .pay__card:not(.pay__card--accent) .pay__list { color: rgba(255,255,255,.88); }

/* ===== Калькулятор платежа ===== */
.calc { margin-top: 24px; background: #fff; color: var(--text); border-radius: var(--radius); padding: 24px 20px; display: grid; gap: 24px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.15fr 1fr; gap: 40px; padding: 40px; margin-top: 32px; } }
.calc__title { font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.calc__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 10px; }
.calc__label:first-of-type { margin-top: 0; }
.calc__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.calc .chip:hover { border-color: #B9C4BD; }
.calc .chip.is-selected:hover { border-color: var(--green); }
.calc__result { background: var(--bg); border-radius: 20px; padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.calc__row span { color: var(--muted); }
.calc__row strong { font-weight: 700; white-space: nowrap; }
.calc__row--big { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 0; }
.calc__row--big strong { font-size: clamp(32px, 5vw, 44px); color: var(--orange); line-height: 1.1; }
.calc__note { font-size: 13px; color: var(--muted); margin: 12px 0 16px; text-wrap: pretty; }
@media (max-width: 599px) {
  .calc__chips { display: grid; grid-template-columns: 1fr 1fr; }
  .calc .chip { padding: 0 10px; font-size: 13px; min-height: 46px; }
}
.option small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }

/* ===== Документы ===== */
.docs { display: grid; gap: 12px; }
@media (min-width: 768px) { .docs { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.doc { display: flex; align-items: center; gap: 18px; padding: 22px; background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow); text-decoration: none; transition: box-shadow .2s; }
.doc:hover { box-shadow: 0 10px 30px rgba(47,51,65,.12); }
.doc__icon { width: 48px; height: 48px; padding: 10px; border-radius: 14px; background: var(--green-soft); color: var(--green); }
.doc__title { display: block; font-weight: 700; font-size: 17px; }
.doc__meta { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ===== Контакты ===== */
.contacts { display: grid; gap: 16px; }
@media (min-width: 900px) { .contacts { grid-template-columns: 1fr 1.3fr; gap: 24px; } }
.contacts__card { background: var(--card); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 768px) { .contacts__card { padding: 40px; } }
.contacts__phone { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; text-decoration: none; }
.contacts__messengers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contacts__messengers .btn { padding: 0 12px; }
.contacts__list { display: grid; gap: 14px; }
.contacts__list li { display: flex; gap: 12px; align-items: flex-start; }
.contacts__list svg { color: var(--green); margin-top: 1px; }
.contacts__list a { color: inherit; text-underline-offset: 3px; }
.contacts__social { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: -6px; }
.contacts__social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--green); text-decoration: none; }
.contacts__social a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contacts__social svg { width: 20px; height: 20px; }

/* ===== Подвал ===== */
.footer { background: var(--green-dark); color: rgba(255,255,255,.75); font-size: 14px; padding: 40px 0; }
.footer__inner { display: grid; gap: 20px; }
@media (min-width: 768px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
.footer p + p { margin-top: 6px; }
.footer__logo { color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.footer a { color: #fff; }

/* ===== Липкая панель (телефон) ===== */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(251,249,246,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(47,51,65,.08);
}
@media (min-width: 768px) { .mbar { display: none; } }
.mbar__btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 100px; border: 2px solid var(--green); color: var(--green); font-weight: 600; font-size: 14px; text-decoration: none; }
.mbar__btn svg { width: 20px; height: 20px; }
.mbar__btn--call { background: var(--green); color: #fff; }

/* ===== Квиз ===== */
dialog { border: 0; padding: 0; }
.quiz { width: 100%; max-width: 560px; margin: auto; background: transparent; max-height: 100dvh; }
.quiz::backdrop, .lightbox::backdrop { background: rgba(20, 26, 23, .62); }
.quiz__box { position: relative; background: var(--card); border-radius: var(--radius); padding: 28px 20px 20px; margin: 12px; max-height: calc(100dvh - 24px); overflow-y: auto; }
@media (min-width: 600px) { .quiz__box { padding: 40px 40px 32px; margin: 24px; } }
.quiz[open] .quiz__box { animation: pop .22s ease-out; }
.quiz__box:focus { outline: none; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.quiz__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); display: grid; place-items: center; }
.quiz__kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); padding-right: 48px; }
.quiz__step { margin-top: 8px; font-size: 13px; color: var(--muted); }
.quiz__bar { height: 6px; border-radius: 6px; background: var(--bg-alt); margin-top: 10px; overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 20%; background: var(--green); border-radius: 6px; transition: width .25s; }
.quiz__layout { margin-top: 12px; font-size: 13px; font-weight: 600; background: var(--green-soft); color: var(--green); padding: 8px 12px; border-radius: 10px; }
.quiz__form { margin-top: 22px; }
.quiz__screen { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz__q { font-size: clamp(22px, 4vw, 28px); font-weight: 700; line-height: 1.2; margin-bottom: 18px; padding: 0; }
.quiz__q:focus { outline: none; }
.quiz__hint { color: var(--muted); font-size: 15px; margin: -8px 0 18px; }
.options { display: grid; gap: 10px; }
@media (min-width: 480px) { .options { grid-template-columns: 1fr 1fr; } }
.option {
  position: relative; min-height: 64px; padding: 14px 44px 14px 18px; text-align: left;
  border: 2px solid var(--line); border-radius: 18px; background: var(--bg); font-weight: 600; font-size: 16px;
  transition: border-color .15s, background-color .15s;
}
.option:hover { border-color: #B9C4BD; }
.option.is-selected { border-color: var(--green); background: var(--green-soft); }
.option.is-selected::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.quiz__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.quiz__nav [data-next], .quiz__nav [data-submit] { flex: 1; max-width: 260px; margin-left: auto; }
.quiz__nav [data-prev][hidden] + * { margin-left: auto; }

.field { margin-bottom: 14px; }
.field label, .field__label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 54px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--text);
  border: 2px solid var(--line); border-radius: 14px; background: var(--bg);
}
.field input:focus { outline: none; border-color: var(--green); background: #fff; }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.field__error { color: #B3261E; font-size: 13px; margin-top: 4px; min-height: 0; }
.field__error:empty { display: none; }
.field__error--form { margin-top: 12px; font-size: 14px; }
.field__error--form a { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 100px; border: 2px solid var(--line); background: var(--bg); font-weight: 600; font-size: 14px; }
.chip.is-selected { border-color: var(--green); background: var(--green); color: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--green); }
.consent a { color: var(--green); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.quiz__thanks { text-align: center; padding: 12px 0 4px; }
.quiz__thanks .quiz__hint { margin: 0 0 24px; }
.quiz__thanks-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--green-soft); color: var(--green); margin: 0 auto 18px; }
.quiz__thanks-icon svg { width: 36px; height: 36px; }

/* ===== Увеличение картинок ===== */
.lightbox { background: transparent; max-width: 100vw; max-height: 100dvh; width: 100%; height: 100%; margin: 0; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; padding: 56px 12px 12px; }
.lightbox__img { max-width: min(1400px, 100%); max-height: calc(100dvh - 80px); width: auto; height: auto; object-fit: contain; border-radius: 16px; background: #fff; }
.lightbox__close { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; }
.lightbox__nav { position: fixed; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 0; background: #fff; color: var(--text); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--prev svg { transform: scaleX(-1); }
.lightbox__nav--next { right: 12px; }
.lightbox__count { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 100px; background: rgba(255,255,255,.92); color: var(--text); font-size: 14px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Страница политики ===== */
.legal { padding-bottom: 0; }
.legal__inner { max-width: 760px; padding-top: 40px; padding-bottom: 80px; }
.legal__inner h2 { font-size: 20px; margin: 32px 0 8px; }
.legal__inner p { margin-top: 10px; color: var(--muted); }
.legal__inner a { color: var(--green); font-weight: 600; }

/* ===== Телефон: факты в одну колонку, галерея лентой ===== */
@media (max-width: 599px) {
  .facts { grid-template-columns: 1fr; }
  .fact { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; padding: 18px; }
  .fact__icon { grid-row: 1 / 3; width: 40px; height: 40px; margin: 0; }
  .fact__value { justify-self: start; font-size: 19px; }
  .fact__text { margin-top: 2px; }

  .showcase {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px;
    margin: 16px -16px 0; padding: 0 16px 8px; scrollbar-width: none;
  }
  .showcase__item, .showcase__item--big { grid-column: auto; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .showcase__caption { white-space: nowrap; }
}
