/* «Сосновый берег» — песок + сосна */
:root {
  --bg: #faf6ee;
  --surface: #f1e9d8;
  --surface-2: #e4d6b9;
  --text: #1e2a24;
  --muted: #6b6f63;
  --line: rgba(30, 42, 36, .12);
  --accent: #1f5c4a;
  --accent-hover: #174a3b;
  --accent-ink: #fff;
  --accent-2: #d29d45;
  --dark: #17241e;
  --radius: 14px;
  --font-head: "Spectral", Georgia, serif;
  --font-body: "Commissioner", system-ui, sans-serif;
  --free: #4caf7a;
  --reserved: #e5a93b;
  --sold: #b8b2a6;
}
.h1, .h2 { font-weight: 500; }
.h1 em, .h2 em { color: var(--accent); }
.h3 { font-family: var(--font-body); font-weight: 700; }

/* hero */
.hero { padding: 48px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero .h1 { font-size: clamp(36px, 5vw, 64px); }
.hero__price { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px; margin-top: 32px; padding: 20px 24px; background: var(--surface); border-radius: var(--radius); border-left: 4px solid var(--accent-2); }
.hero__price small { display: block; color: var(--muted); font-size: 13px; }
.hero__price b { font-family: var(--font-head); font-size: 26px; font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__media { position: relative; }
.hero__img { aspect-ratio: 4 / 4.6; border-radius: 240px 240px var(--radius) var(--radius); }
.hero__ribbon { position: absolute; left: -20px; bottom: 36px; background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 8px; font-weight: 600; box-shadow: var(--shadow-lg); }

/* features */
.feats { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feat { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.feat:hover { background: var(--bg); }
.feat b { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.feat p { color: var(--muted); }

/* plan */
.plan-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; flex-wrap: wrap; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend__i { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; user-select: none; transition: opacity .2s, border-color .2s; }
.legend__i input { position: absolute; opacity: 0; }
.legend__i:has(input:not(:checked)) { opacity: .45; }
.legend__i:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.legend__i b { color: var(--muted); font-weight: 600; }
.sw { width: 14px; height: 14px; border-radius: 4px; }
.sw--free { background: var(--free); } .sw--reserved { background: var(--reserved); } .sw--sold { background: var(--sold); }
.plan { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.plan__map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #dfe7cf; }
.plan__map svg { width: 100%; height: auto; }
.plan__label { font-family: var(--font-head); font-style: italic; font-size: 22px; fill: #2b6680; }
.plan__poi text { font-family: var(--font-body); font-size: 15px; font-weight: 600; fill: #6a5a3a; }
.plot { cursor: pointer; outline: none; }
.plot rect { stroke: #fff; stroke-width: 2.5; transition: fill .25s, opacity .25s, stroke .2s; }
.plot text { font-family: var(--font-body); font-size: 17px; font-weight: 700; fill: #fff; pointer-events: none; }
.plot--free rect { fill: var(--free); }
.plot--reserved rect { fill: var(--reserved); }
.plot--sold rect { fill: var(--sold); }
.plot--sold text { fill: #6f6a60; }
.plot:hover rect, .plot:focus-visible rect { filter: brightness(1.1); stroke: var(--dark); stroke-width: 4; }
.plot.is-selected rect { stroke: var(--dark); stroke-width: 5; }
.plot.is-dim { opacity: .18; pointer-events: none; }
.tip { position: absolute; z-index: 5; pointer-events: none; min-width: 190px; background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 14px 40px rgba(0,0,0,.22); font-size: 14px; transform: translate(-50%, calc(-100% - 14px)); }
.tip::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.tip b { font-family: var(--font-head); font-size: 20px; display: block; }
.tip__row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.tip__row span:last-child { color: var(--text); font-weight: 700; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; margin-top: 6px; }
.badge--free { background: var(--free); } .badge--reserved { background: var(--reserved); } .badge--sold { background: #8f897e; }
.plan__card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 20px); min-height: 300px; }
.plan__empty { display: grid; justify-items: center; text-align: center; gap: 12px; color: var(--muted); padding: 40px 10px; }
.plan__empty svg { width: 56px; height: 56px; color: var(--accent-2); }
.pc { animation: fadeUp .4s var(--ease); }
.pc__num { font-family: var(--font-head); font-size: 40px; font-weight: 600; line-height: 1; }
.pc__num small { font-size: 16px; color: var(--muted); font-family: var(--font-body); }
.pc__list { margin: 18px 0; display: grid; gap: 10px; }
.pc__list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.pc__list span { color: var(--muted); }
.pc__price { font-family: var(--font-head); font-size: 30px; font-weight: 600; color: var(--accent); }
.pc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; }
.pc__tags span { padding: 3px 10px; border-radius: 999px; background: var(--surface); font-size: 13px; }
.pc__month { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* terms */
.term { display: flex; flex-direction: column; gap: 6px; }
.term__big { font-family: var(--font-head); font-size: 54px; font-weight: 600; color: var(--accent-2); line-height: 1; margin-bottom: 10px; }
.term--hit { background: var(--accent); color: #fff; border-color: var(--accent); }
.term--hit p { color: rgba(255,255,255,.75); }

/* houses */
.hgal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hgal figure:nth-child(even) { margin-top: 48px; }
.hgal .media { display: block; aspect-ratio: 3 / 4; cursor: zoom-in; }
.hgal figcaption { margin-top: 10px; font-weight: 600; }

.section--dark .step::before { color: var(--accent-2); font-family: var(--font-head); }
.visit-card { background: var(--surface); border-radius: var(--radius); padding: 40px; }

@media (max-width: 1080px) {
  .plan { grid-template-columns: 1fr; }
  .plan__card { position: static; min-height: 0; }
}
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__img { aspect-ratio: 4 / 3; border-radius: 160px 160px var(--radius) var(--radius); }
  .hero__ribbon { left: 12px; }
  .hgal { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: 28px; }
  .hero__price { grid-template-columns: 1fr 1fr; gap: 12px 20px; padding: 16px; }
  .hero__price > div:last-child { grid-column: 1 / -1; }
  .hero__price b { font-size: 21px; }
  .hero__actions .btn { width: 100%; white-space: normal; }
  .feats { grid-template-columns: 1fr 1fr; }
  .feat { padding: 18px; }
  .feat b { font-size: 24px; }
  .plan__map { margin: 0 -20px; border-radius: 0; }
  .plot text { font-size: 22px; }
  .tip { min-width: 160px; font-size: 13px; }
  .hgal { gap: 10px; }
  .hgal figure:nth-child(even) { margin-top: 24px; }
  .hgal figcaption { font-size: 13px; }
  .visit-card { padding: 24px; }
}
