/* SEO-страницы (Берёзовский, ипотека): проза, карточки домов */
.seo-hero .p-hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.seo-block { padding-block: clamp(48px, 8vh, 96px); }
.seo-prose { max-width: 68ch; display: grid; gap: 1.1em; color: var(--text-2); font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.18rem); line-height: 1.65; }
.seo-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 0.8em; }
.seo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.seo-card { display: grid; gap: 6px; align-content: start; color: inherit; text-decoration: none; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.seo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 8px; background: var(--line); }
.seo-card b { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 400; letter-spacing: -0.01em; }
.seo-card span { color: var(--text-2); }
.seo-card__price { font-family: var(--font-mono); color: var(--text) !important; }
.seo-card:hover b { text-decoration: underline; text-underline-offset: 6px; }
.seo-note { margin-top: 20px; color: var(--text-2); max-width: 62ch; }
@media (max-width: 760px) { .seo-cards { grid-template-columns: 1fr; } }

/* Доверие, двухколоночные блоки, карточки шагов, CTA-полоса */
.seo-trust { list-style: none; margin: 0; padding: clamp(28px, 5vh, 56px) var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.seo-trust li { display: grid; gap: 4px; padding-left: 18px; border-left: 2px solid var(--accent); }
.seo-trust b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.7rem); }
.seo-trust span { color: var(--text-2); }
.seo-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.seo-block--flip .seo-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.seo-block--flip .seo-photo { order: -1; }
.seo-split h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; margin: 14px 0 26px; text-wrap: balance; }
.seo-photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); }
.seo-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out-quart); }
.seo-photo:hover img { transform: scale(1.03); }
.seo-steps { list-style: none; padding: 0; counter-reset: st; }
.seo-steps li { counter-increment: st; position: relative; padding: 18px 0 18px 56px; border-top: 1px solid var(--line); }
.seo-steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-family: var(--font-mono); color: var(--accent); font-size: 0.9rem; letter-spacing: 0.08em; }
.seo-cta { margin: 0 var(--gutter); padding: clamp(24px, 4vw, 48px); background: var(--pine-deep); border: 1px solid var(--line-strong); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.seo-cta b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem); line-height: 1.15; max-width: 28ch; }
.seo-cta > div:first-child > span { display: block; margin-top: 8px; color: var(--text-2); }
@media (max-width: 860px) {
  .seo-split, .seo-block--flip .seo-split { grid-template-columns: 1fr; }
  .seo-block--flip .seo-photo { order: 0; }
  .seo-photo { aspect-ratio: 4 / 3; }
  .seo-trust { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .seo-photo img { transition: none; } }
.seo-cta__btns { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.seo-cta__tel { font-family: var(--font-mono); color: var(--text); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--line-strong); min-height: 44px; display: inline-flex; align-items: center; }
.seo-cta__tel:hover { text-decoration-color: var(--accent); }


.seo-cta__calc { color: var(--text); font-family: var(--font-mono); border-bottom: 1px solid var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
.seo-cta__calc:hover { color: var(--accent); }
.has-parallax { overflow: hidden; position: relative; }
.has-parallax img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; max-width: none; transition: none; will-change: transform; }
.has-parallax:hover img { transform: none; }
.seo-hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.8rem); line-height: 1.04; }

/* Схема расстояния в первом экране */
.seo-hero > .seo-route { grid-column: 2; grid-row: 1; align-self: start; position: relative; }
.seo-hero > div:first-child { grid-row: 1 / 3; }
.seo-hero > .p-hero__figure { grid-row: 2; }
.seo-route svg { width: 100%; height: auto; display: block; overflow: visible; }
.rt-grid line { stroke: var(--dark-line, rgba(236,233,223,.14)); stroke-width: 1; opacity: .5; }
.rt-radar circle { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; animation: rt-radar 3.2s ease-out infinite; animation-delay: 1.4s; }
.rt-radar circle:nth-child(2) { animation-delay: 2.2s; } .rt-radar circle:nth-child(3) { animation-delay: 3s; }
@keyframes rt-radar { 0% { transform: scale(.4); opacity: .7; } 100% { transform: scale(3.4); opacity: 0; } }
.rt-path { fill: none; stroke-linecap: round; }
.rt-path--faint { stroke: var(--text-3, #7d877b); stroke-width: 1.2; stroke-dasharray: .012 .02; opacity: .5; }
.rt-path--main { stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: rt-draw 2.4s .5s cubic-bezier(.16,1,.3,1) forwards; }
.rt-path--main[data-dashed] { stroke-dasharray: .016 .014; animation-name: rt-draw-d; }
@keyframes rt-draw { to { stroke-dashoffset: 0; } }
@keyframes rt-draw-d { from { opacity: 0; } to { opacity: 1; } }
.rt-runner { fill: var(--accent-soft, #e0b97f); filter: drop-shadow(0 0 6px var(--accent)); }
.rt-node circle { fill: var(--text); }
.rt-node--home circle { fill: var(--accent); }
.rt-node--target circle { fill: var(--accent-soft, #e0b97f); }
.rt-node text { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; fill: var(--text-2); }
.rt-node--home text, .rt-node--target text { fill: var(--text); }
.rt-node { opacity: 0; animation: rt-in .8s calc(.2s + var(--i) * .25s) cubic-bezier(.16,1,.3,1) forwards; }
@keyframes rt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.seo-route__num { position: absolute; right: 0; top: 0; text-align: right; display: grid; justify-items: end; gap: 2px; }
.seo-route__num b { font-family: var(--font-display); font-weight: 400; font-size: clamp(3.4rem, 2rem + 5vw, 6.6rem); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.seo-route__num i { font-style: normal; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft, #e0b97f); }
.seo-route__num span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3, #7d877b); max-width: 22ch; }
.seo-route__cap { margin: 6px 0 0; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3, #7d877b); }
@media (max-width: 860px) {
  .seo-hero > .seo-route, .seo-hero > div:first-child, .seo-hero > .p-hero__figure { grid-column: auto; grid-row: auto; }
  .seo-route__num b { font-size: 3.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rt-path--main { animation: none; stroke-dashoffset: 0; } .rt-node { animation: none; opacity: 1; } .rt-radar, .rt-runner { display: none; }
}

/* Портал-вступление: панели расходятся, видео листается прокруткой (только при .portal-on) */
.portal { display: none; }
.portal-on .portal { display: block; height: 520svh; position: relative; background: #0b120f; }
.portal-on .seo-hero { padding-top: 130px; }
.portal__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; background: #0b120f; }
.portal__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: var(--vo, 0); background: #0b120f; }
.portal__veil { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11,18,15,0) 45%, rgba(11,18,15,.7) 100%), linear-gradient(0deg, rgba(11,18,15,.72), rgba(11,18,15,0) 30%); }
.portal__pn { position: absolute; top: 0; bottom: 0; width: 52%; background: #0b120f; will-change: transform; }
.portal__pn--l { left: 0; transform: translateX(calc(var(--pt, 0) * -108%)); }
.portal__pn--r { right: 0; transform: translateX(calc(var(--pt, 0) * 108%)); }
.portal__dot { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--larch); }
.portal__dot--a { transform: translate(calc(var(--pt, 0) * -42vw), calc(var(--pt, 0) * -34vh)); }
.portal__dot--b { background: #7aa6c2; transform: translate(calc(var(--pt, 0) * 42vw), calc(var(--pt, 0) * 34vh)); }
.portal__title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: var(--tf, 1); font-family: var(--font-display); text-transform: uppercase; white-space: nowrap; line-height: .9;
  font-size: min(15.5vw, 12rem); letter-spacing: var(--ls, .02em); transform: scale(var(--ts, 1)); color: var(--text); }
.portal__title span { display: block; }
.portal__title .pa1 { transform: translateX(calc(var(--sp, 0) * -52%)); }
.portal__title .pa2 { transform: translateX(calc(var(--sp, 0) * 52%)); }
.portal__sub { position: absolute; left: 0; right: 0; top: calc(50% + min(10vw, 8rem)); text-align: center; margin: 0; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--larch-soft); opacity: var(--tf, 1); }
.portal__corner { position: absolute; z-index: 3; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.portal__corner b { color: var(--larch); font-weight: 400; }
.portal__corner--tl { left: var(--gutter); top: 104px; }
.portal__corner--tr { right: var(--gutter); top: 104px; text-align: right; }
.portal__corner--bl { left: var(--gutter); bottom: 26px; }
.portal__corner--br { right: var(--gutter); bottom: 26px; text-align: right; }
.portal__steps { position: absolute; z-index: 4; left: 50%; bottom: 62px; transform: translateX(-50%); width: min(92vw, 720px); display: grid; gap: 12px; justify-items: center; text-align: center; }
.portal__cap { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); letter-spacing: -.01em; min-height: 1.2em; transition: opacity .4s; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.portal__steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.portal__steps li { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); transition: color .3s; }
.portal__steps li.on { color: var(--larch-soft); }
.portal__bar { width: 100%; height: 1px; background: var(--dark-line); position: relative; overflow: hidden; }
.portal__bar i { position: absolute; inset: 0; background: var(--larch); transform-origin: 0 50%; transform: scaleX(0); }
.portal__hint { position: absolute; z-index: 4; left: 0; right: 0; bottom: 70px; text-align: center; margin: 0; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); opacity: var(--hint, 1); }
@media (max-width: 760px) {
  .portal-on .portal { height: 460svh; }
  .portal__corner--tr, .portal__corner--bl { display: none; }
  .portal__steps { bottom: 54px; } .portal__steps ol { display: none; }
}
/* телефон: кадр целиком по ширине в полном разрешении, а не обрезка 16:9 под вертикальный экран */
@media (max-width: 760px) {
  .portal__video { object-fit: contain; }
  .portal__veil { background: linear-gradient(0deg, rgba(11,18,15,.9), rgba(11,18,15,0) 28%), linear-gradient(180deg, rgba(11,18,15,.9), rgba(11,18,15,0) 24%); }
  .portal__title { font-size: min(17vw, 6rem); }
}

/* видео, которое прокручивается скроллом (карта маршрута) */
.seo-photo--video { position: relative; }
.seo-photo--video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.seo-photo--video:hover video { transform: none; }
.seo-photo__km { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; background: rgba(12,14,13,.78); color: var(--larch-soft, #e0b97f); font: 500 .95rem/1 var(--font-mono, "JetBrains Mono", monospace); letter-spacing: .08em; border: 1px solid var(--dark-line, rgba(255,255,255,.14)); }
@media (max-width: 760px) { .seo-photo.seo-photo--video { aspect-ratio: 4 / 5; max-width: 520px; margin-inline: auto; width: 100%; } }
