/* Pines60 — deal presentation.
   Palette: East Texas pine (deep green) + pine pollen (warm yellow) on a cool sage paper.
   Type: Unbounded (display, wide) + Golos Text (body, Cyrillic-first grotesk). */

:root {
  --paper: #EDF1EA;
  --paper-2: #E2E8DE;
  --ink: #13241B;
  --ink-2: #44574B;
  --pine: #1C3A2C;
  --pine-2: #264A3A;
  --moss: #6E9579;
  --pollen: #E6B740;
  --pollen-2: #F1CB66;
  --line: rgba(19, 36, 27, .16);
  --on: #E8EEE6;
  --on-2: #A8BBAE;
  --line-d: rgba(232, 238, 230, .18);

  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Golos Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: max(20px, calc((100vw - 1160px) / 2));
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
b, strong { font-weight: 600; }
sup { font-size: .55em; vertical-align: super; line-height: 0; }

/* language switch: both languages live in the markup */
[data-lang="en"] [data-l="ru"], [data-lang="ru"] [data-l="en"] { display: none !important; }

:focus-visible { outline: 2px solid var(--pollen); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--pollen); color: var(--ink); padding: 10px 14px; border-radius: var(--r);
}
.skip:focus { top: 12px; }

/* ───────── top bar ───────── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  color: var(--on);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.bar.on-light {
  background: rgba(237, 241, 234, .92);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.bar.on-dark { background: rgba(28, 58, 44, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark svg { width: 26px; height: 26px; fill: currentColor; }
.mark span { font: 600 18px/1 var(--display); letter-spacing: -.01em; }
.mark b, .foot-mark b { color: var(--pollen); font-weight: 600; }
.bar.on-light .mark b { color: #B8871A; }
.bar-right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid currentColor; border-radius: var(--r); overflow: hidden; opacity: .9; }
.lang button {
  font: 500 12px/1 var(--body); letter-spacing: .04em;
  background: none; color: inherit; border: 0; padding: 8px 10px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--on); color: var(--pine); }
.bar.on-light .lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font: 600 15px/1.2 var(--body);
  text-decoration: none; text-align: center;
  background: var(--pollen); color: var(--ink);
  border: 1px solid var(--pollen); border-radius: var(--r);
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--pollen-2); border-color: var(--pollen-2); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(232, 238, 230, .08); border-color: currentColor; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ───────── slide rail ───────── */
.rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 20; }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rail a {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  height: 22px; text-decoration: none; color: var(--rail, var(--ink-2));
  font-size: 12px;
}
.rail a::after { content: ""; width: 14px; height: 2px; background: currentColor; opacity: .45; transition: width .2s, opacity .2s; }
.rail a > span { opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; white-space: nowrap; }
.rail a:hover > span, .rail a:focus-visible > span, .rail a[aria-current="true"] > span { opacity: 1; transform: none; }
.rail a[aria-current="true"]::after { width: 28px; opacity: 1; background: var(--pollen); }
.rail.on-dark { --rail: var(--on-2); }
@media (max-width: 1180px) { .rail { display: none; } }

/* ───────── slides ───────── */
.slide {
  position: relative;
  min-height: 100svh;
  padding: 112px var(--gutter) 80px;
  display: flex; flex-direction: column; justify-content: center;
  border-top: 1px solid var(--line);
}
.slide::before {
  content: attr(data-n) " / 11";
  position: absolute; top: 84px; right: var(--gutter);
  font: 500 12px/1 var(--display); letter-spacing: .02em;
  color: var(--ink-2); opacity: .7;
}
.dark { background: var(--pine); color: var(--on); border-top-color: transparent; }
.dark::before { color: var(--on-2); }
.dark .fine, .dark .own-note { color: var(--on-2); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.12; margin-bottom: 36px; max-width: 22ch; text-wrap: balance; }
h3 { font-size: 24px; line-height: 1.2; margin-bottom: 12px; }
.prose p { margin: 0 0 18px; max-width: 62ch; color: var(--ink-2); }
.prose p:first-of-type { color: var(--ink); font-size: 19px; }
.dark .prose p { color: var(--on-2); }
.dark .prose p:first-of-type { color: var(--on); }
.fine { margin: 28px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); max-width: 90ch; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split .prose h2 { margin-bottom: 28px; }

/* ───────── 01 cover ───────── */
.cover {
  padding-top: 120px;
  background:
    radial-gradient(90% 60% at 80% 0%, rgba(110, 149, 121, .28), transparent 70%),
    var(--pine);
}
.cover::before { top: 92px; }
.addr { margin: 0 0 18px; color: var(--on-2); font-size: 15px; }
.lockup {
  font: 800 clamp(64px, 12.5vw, 184px)/.86 var(--display);
  letter-spacing: -.045em;
  margin: 0 0 0 -.04em;
}
.lockup span { color: var(--pollen); margin-left: .04em; }
.cover-lede { margin: 26px 0 0; max-width: 52ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--on); }

.facade { margin: 40px 0 0; }
.roof { height: 10px; border: 1px solid var(--line-d); border-bottom: 0; margin: 0 -10px; border-radius: 2px 2px 0 0; }
.units {
  display: grid; grid-template-columns: repeat(30, 1fr); gap: 7px;
  padding: 12px 10px 14px; margin: 0 -10px;
  border-left: 1px solid var(--line-d); border-right: 1px solid var(--line-d);
  border-bottom: 2px solid var(--on-2);
}
.u { aspect-ratio: 3 / 4; border-radius: 2px; background: rgba(232, 238, 230, .06); border: 1px solid rgba(232, 238, 230, .2); transition: background-color .35s, box-shadow .35s, border-color .35s; }
.u.on { background: var(--pollen); border-color: var(--pollen); box-shadow: 0 0 14px rgba(230, 183, 64, .45); }
.facade figcaption { margin-top: 10px; font-size: 13px; color: var(--on-2); }

.terms {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin: 32px 0 0; border-top: 1px solid var(--line-d);
}
.terms div { padding: 18px 18px 0 0; }
.terms div + div { padding-left: 18px; border-left: 1px solid var(--line-d); }
.terms dt { font-size: 13px; color: var(--on-2); }
.terms dd { margin: 6px 0 0; font: 600 clamp(22px, 2.4vw, 32px)/1.1 var(--display); letter-spacing: -.02em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cover .fine { color: var(--on-2); margin-top: 18px; }

/* ───────── 02 deal ───────── */
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 345 / 128; object-fit: cover; border-radius: var(--r); }
.photo figcaption, .gallery figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-2); }

/* ───────── 03 numbers ───────── */
.numbers { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.ppu { margin: 0; display: grid; gap: 12px; color: var(--ink-2); max-width: 30ch; }
.ppu strong { font: 800 clamp(48px, 7vw, 96px)/.95 var(--display); letter-spacing: -.04em; color: var(--pine); }
.ledger { margin: 0; }
.ledger div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.ledger div:first-child { border-top: 1px solid var(--line); }
.ledger dt { color: var(--ink-2); }
.ledger dd { margin: 0; font-weight: 600; text-align: right; }

/* ───────── 04 location ───────── */
.split-map { align-items: stretch; }
.map { margin: 0; }
.map img { width: 100%; aspect-ratio: 11 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r); }
.map figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.near, .amenities { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.near li, .amenities li {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; background: var(--paper-2);
}

/* ───────── 05 property ───────── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.facts { margin-top: 32px; display: grid; gap: 14px; max-width: 70ch; }
.facts > p { margin: 0; font-size: 19px; }
.facts .fine { margin-top: 4px; }

/* ───────── 06 plan ───────── */
.plan { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.levers { list-style: none; margin: 0; padding: 0; counter-reset: lv; }
.levers li {
  counter-increment: lv;
  display: grid; grid-template-columns: 44px 1fr; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px;
}
.levers li:first-child { border-top: 1px solid var(--line); }
.levers li::before { content: counter(lv); font: 600 14px/1 var(--display); color: var(--moss); }
.plan-view { margin: 0; }
.toggle { display: inline-flex; border: 1px solid var(--pine); border-radius: var(--r); overflow: hidden; margin-bottom: 22px; }
.toggle button { font: 500 14px/1 var(--body); background: none; color: var(--pine); border: 0; padding: 11px 16px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--pine); color: var(--on); }
.facade-light { margin: 0; }
.facade-light .roof { border-color: var(--line); }
.facade-light .units { grid-template-columns: repeat(15, 1fr); border-color: var(--line); border-bottom-color: var(--ink-2); }
.facade-light .u { background: transparent; border-color: rgba(19, 36, 27, .3); }
.facade-light .u.on { background: var(--pine-2); border-color: var(--pine-2); box-shadow: none; }
.facade-light .u.hot { background: var(--pollen); border-color: #C99A24; }
.plan-view figcaption { margin-top: 14px; font-size: 16px; color: var(--ink-2); }
.plan-view figcaption b { font: 600 22px/1 var(--display); color: var(--ink); margin-right: 6px; }

/* ───────── 07 capital ───────── */
.capital { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.own { grid-column: 1 / -1; }
.own-title { margin: 0 0 14px; font-weight: 600; font-size: 16px; }
.ownbar { display: flex; height: 72px; border-radius: var(--r); overflow: hidden; }
.ownbar > span { width: var(--w); display: flex; align-items: center; gap: 10px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
.ownbar b { font: 600 26px/1 var(--display); }
.ownbar .lp { background: var(--pollen); color: var(--ink); }
.ownbar .gp { background: var(--pine-2); color: var(--on); border: 1px solid var(--line-d); border-left: 0; }
.own-note { margin: 12px 0 0; font-size: 14px; }
.uses ul { margin: 0; padding: 0; list-style: none; }
.uses li { padding: 9px 0; border-bottom: 1px solid var(--line-d); }
.uses li:first-child { border-top: 1px solid var(--line-d); }
.flow { list-style: none; margin: 0; padding: 0; counter-reset: fl; display: grid; gap: 0; align-self: start; }
.flow li { counter-increment: fl; position: relative; padding: 0 0 22px 52px; display: grid; gap: 4px; color: var(--on-2); }
.flow li b { color: var(--on); font-size: 17px; }
.flow li::before {
  content: counter(fl); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--pollen); color: var(--pollen);
  display: grid; place-items: center; font: 600 13px/1 var(--display);
}
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 2px; width: 1px; background: var(--line-d); }

/* ───────── 08 tax ───────── */
.tax { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.taxviz { margin: 0; padding: 28px; background: var(--paper-2); border-radius: var(--r); }
.tbar { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 18px; }
.tlabel { font-size: 14px; color: var(--ink-2); }
.track { height: 18px; background: rgba(19, 36, 27, .07); border-radius: 2px; position: relative; overflow: hidden; }
.fill { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--moss); }
/* range bar: solid to the low end ($150k), lighter to the high end ($250k) */
.fill-range { width: 100%; background: linear-gradient(90deg, var(--pine) 0 var(--w), rgba(28, 58, 44, .35) var(--w) 100%); }
.tval { font: 600 20px/1.2 var(--display); letter-spacing: -.01em; }

/* ───────── 09 risks ───────── */
.risks { width: 100%; border-collapse: collapse; }
.risks th, .risks td { text-align: left; vertical-align: top; padding: 15px 16px 15px 0; border-bottom: 1px solid var(--line); }
.risks thead th { font-size: 13px; font-weight: 500; color: var(--ink-2); border-bottom-color: var(--ink-2); padding-top: 0; }
.risks tbody th { width: 34%; font-weight: 600; }
.risks td { color: var(--ink-2); }

/* ───────── 10 invest ───────── */
.steps { list-style: none; margin: 0 0 48px; padding: 0; counter-reset: st; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { counter-increment: st; padding: 20px 20px 0 0; border-top: 2px solid var(--pine); display: grid; gap: 6px; align-content: start; color: var(--ink-2); }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(st); font: 800 34px/1 var(--display); color: var(--pine); margin-bottom: 6px; }
.steps b { color: var(--ink); font-size: 17px; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 500 22px/1 var(--display); color: var(--moss); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 64ch; }

/* ───────── 11 request ───────── */
.split-form { align-items: start; }
.split-form .prose .btn { margin-top: 8px; }
.lead { display: grid; gap: 14px; }
.lead label { display: grid; gap: 6px; font-size: 14px; color: var(--on-2); }
.lead input, .lead select, .lead textarea {
  font: 400 16px/1.4 var(--body); color: var(--on);
  background: rgba(232, 238, 230, .06); border: 1px solid var(--line-d); border-radius: var(--r);
  padding: 12px 14px; width: 100%;
}
.lead select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--on-2) 50%), linear-gradient(135deg, var(--on-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.lead select option { color: var(--ink); }
.lead input:focus, .lead select:focus, .lead textarea:focus { outline: 2px solid var(--pollen); outline-offset: 1px; border-color: transparent; }
.lead [aria-invalid="true"] { border-color: #F08A6C; }
.lead .consent { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; font-size: 13px; line-height: 1.5; }
.lead .consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--pollen); padding: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; min-height: 1.4em; font-size: 14px; color: #F5B39E; }
.done { padding: 32px; border: 1px solid var(--line-d); border-radius: var(--r); background: rgba(232, 238, 230, .04); }
.done p { color: var(--on-2); margin: 0 0 20px; }
.done:focus { outline: none; }

/* ───────── footer ───────── */
.foot { background: var(--ink); color: var(--on-2); padding: 56px var(--gutter) 40px; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; }
.foot p { margin: 0 0 8px; }
.foot a { color: var(--on); }
.foot-mark { font: 600 22px/1 var(--display); color: var(--on); margin-bottom: 14px !important; }
.legal, .copy { grid-column: 1 / -1; font-size: 12px; line-height: 1.55; max-width: 110ch; }
.legal { border-top: 1px solid var(--line-d); padding-top: 22px; margin-top: 8px !important; }

/* ───────── responsive ───────── */
@media (max-width: 980px) {
  .split, .numbers, .plan, .capital, .tax { grid-template-columns: 1fr; gap: 36px; }
  .terms { grid-template-columns: repeat(3, 1fr); }
  .terms div:nth-child(4) { padding-left: 0; border-left: 0; }
  .terms div:nth-child(n+4) { margin-top: 18px; border-top: 1px solid var(--line-d); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .slide { min-height: 0; padding-top: 104px; padding-bottom: 72px; }
  .cover { min-height: 100svh; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar { padding: 12px 16px; }
  .bar .btn-small { display: none; }
  .slide { padding-left: 16px; padding-right: 16px; }
  .slide::before { top: 76px; right: 16px; }
  .cover { padding-top: 112px; }
  .units { grid-template-columns: repeat(15, 1fr); gap: 4px; }
  .u { aspect-ratio: 1; }
  .terms { grid-template-columns: 1fr 1fr; }
  .terms div, .terms div + div { padding: 14px 12px 0 0; border-left: 0; margin-top: 0; border-top: 0; }
  .terms div:nth-child(n+3) { border-top: 1px solid var(--line-d); margin-top: 14px; }
  .terms div:last-child { grid-column: 1 / -1; }
  .cta-row .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; }
  .ownbar { height: auto; flex-direction: column; }
  .ownbar > span { width: 100%; padding: 14px 16px; }
  .ownbar .gp { border: 1px solid var(--line-d); border-top: 0; }
  .risks thead { display: none; }
  .risks tr { display: grid; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .risks th, .risks td { border: 0; padding: 0; width: auto !important; }
  .risks td { margin-top: 4px; }
  .foot-in { grid-template-columns: 1fr; }
  .taxviz { padding: 20px; }
}

/* social preview render (?og=1) */
.og .bar, .og .rail, .og .cover::before, .og .terms, .og .cta-row, .og .fine, .og .facade figcaption { display: none; }
.og .cover { padding-top: 64px; justify-content: flex-start; }

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