/* A136, кв. 49. Робоче креслення: синька, білі лінії, червоний олівець. */
:root {
  --blue: #0b2a78;
  --blue-deep: #071d58;
  --line: #e3ecff;
  --line-2: rgba(227, 236, 255, .74);
  --line-3: rgba(227, 236, 255, .28);
  --grid: rgba(227, 236, 255, .09);
  --red: #ff6b4a;
  --red-ink: #0a1c4d;
  --red-text: #ffa48f;
  --paper: #f1f4fa;
  --ink: #0d2a6e;
  --ink-2: #3c528c;
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --text: "Golos Text", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 4.5vw, 4.5rem);
  --gap: clamp(4.5rem, 11vw, 9rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blue);
  color: var(--line);
  font: 400 1.0625rem/1.6 var(--text);
  text-rendering: optimizeLegibility;
  caret-color: var(--red);
  overflow-x: clip;
}
/* міліметрівка: дрібна й велика клітинка */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 2rem,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 2rem 100%,
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 10rem,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 10rem 100%,
    var(--blue);
}
::selection { background: var(--red); color: var(--red-ink); }
html { scrollbar-color: var(--line-3) var(--blue-deep); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 800; line-height: .94; letter-spacing: -.01em; margin: 0; text-wrap: balance; text-transform: uppercase; }
h1 { font-size: clamp(3.4rem, 9.2vw, 6rem); }
h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; list-style: none; }
.note { font-size: .9375rem; color: var(--line-2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--red); color: var(--red-ink); padding: .6rem 1rem; }

/* ── кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .8rem 1.6rem;
  background: var(--red); color: var(--red-ink);
  font: 700 1.0625rem/1.1 var(--text); text-decoration: none; letter-spacing: .01em;
  clip-path: polygon(0 0, calc(100% - .7rem) 0, 100% .7rem, 100% 100%, 0 100%);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: #ff8467; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.is-off { background: transparent; color: var(--line); outline: 1.5px dashed var(--line-2); outline-offset: -1.5px; cursor: default; }
.btn.is-off:hover { transform: none; background: transparent; }
.btn--small { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: .9375rem; }
.btn--big { min-height: 4.25rem; padding: 1rem 2.4rem; font-size: 1.25rem; }
.link { font-weight: 700; }

/* ── верхня планка ── */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem var(--pad);
  background: color-mix(in srgb, var(--blue) 92%, transparent);
  border-bottom: 1px solid var(--line-3);
}
.bar__mark { font: 800 1.75rem/1 var(--display); text-decoration: none; letter-spacing: .01em; }
.bar__mark span { font: 500 .9375rem/1 var(--text); color: var(--line-2); margin-left: .6rem; padding-left: .7rem; border-left: 1px solid var(--line-3); vertical-align: .2em; white-space: nowrap; }
.bar__mark { white-space: nowrap; }
@media (max-width: 420px) { .bar__mark span { font-size: .8125rem; margin-left: .45rem; padding-left: .5rem; } .bar .btn--small { padding-inline: .8rem; } }
.bar__nav { display: flex; gap: 1.6rem; margin-left: auto; font-size: .9375rem; }
.bar__nav a { text-decoration: none; padding: .4rem 0; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.bar__nav a:hover, .bar__nav a[aria-current="true"] { background-size: 100% 2px; }
@media (max-width: 860px) { .bar__nav { display: none; } .bar .btn { margin-left: auto; } }

/* ── аркуші ── */
.sheet { padding: var(--gap) var(--pad) 0; position: relative; }
.sheet > h2 + p, .sheet h2 + p { margin-top: 1.4rem; }

/* ── план ── */
.plan { width: 100%; height: auto; overflow: visible; }
.plan .room { fill: transparent; stroke: none; transition: fill .35s var(--ease); }
.plan__walls path { fill: none; stroke: var(--line); stroke-width: 5; stroke-linejoin: miter; }
.plan__walls path + path { stroke-width: 3; }
.plan__glass path { fill: none; stroke: var(--line); stroke-width: 1.5; }
.plan__cols rect { fill: var(--line); }
.plan__door { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: .02 .02; }
.plan__dims path { fill: none; stroke: var(--red); stroke-width: 1.5; }
.plan__dims text { font: 500 16px var(--mono); fill: var(--red-text); text-anchor: middle; }
.plan__labels text { font: 500 17px var(--text); fill: var(--line-2); text-anchor: middle; }
.plan__labels text.a { font: 500 22px var(--mono); fill: var(--line); }
.plan__marks circle, .plan__marks path { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.plan__marks text { font: 500 13px var(--mono); fill: var(--line-2); text-anchor: middle; }
.plan__marks text.street, .plan__marks circle + path + text { font: 500 15px var(--text); }
@media (prefers-reduced-motion: no-preference) { .plan--draw .plan__marks { opacity: 0; animation: ink .7s ease-out 2.4s forwards; } }

@media (prefers-reduced-motion: no-preference) {
  .plan--draw .plan__walls path, .plan--draw .plan__glass path, .plan--draw .plan__dims path {
    stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease) .2s forwards;
  }
  .plan--draw .plan__walls path + path { animation-delay: .9s; animation-duration: 1.6s; }
  .plan--draw .plan__glass path { animation-delay: 1.5s; animation-duration: 1.2s; }
  .plan--draw .plan__dims path { animation-delay: 2s; animation-duration: .9s; }
  .plan--draw .plan__cols rect, .plan--draw .plan__labels text, .plan--draw .plan__dims text, .plan--draw .plan__door {
    opacity: 0; animation: ink .7s ease-out 2.2s forwards;
  }
  .plan--draw .plan__cols rect { animation-delay: 1.3s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ink { to { opacity: 1; } }

/* ── 1. hero ── */
.hero {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  display: grid; gap: clamp(1.25rem, 2.2vw, 2rem) clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: minmax(0, 9fr) minmax(0, 14fr);
  grid-template-rows: 1fr auto;
  grid-template-areas: "head plan" "head block";
  min-height: min(calc(100svh - 3.9rem), 54rem);
  padding-bottom: clamp(1rem, 2vw, 1.75rem);
}
.hero__head { grid-area: head; }
.hero .lede { margin-top: 1.5rem; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); max-width: 32ch; }
.hero__plan { grid-area: plan; position: relative; align-self: center; cursor: crosshair; }
.hero__plan .plan { max-height: max(15rem, calc(100svh - 21.5rem)); }
.xy {
  position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0;
  font: 500 .75rem/1 var(--mono); color: var(--red-ink); background: var(--red);
  padding: .35rem .5rem; white-space: nowrap; transition: opacity .2s;
  font-variant-numeric: tabular-nums;
}
.hero__plan:hover .xy { opacity: 1; }

.tblock {
  grid-area: block;
  display: grid; grid-template-columns: 1.5fr 1.2fr .8fr 1.5fr;
  border: 1.5px solid var(--line);
}
.tblock > div { padding: .6rem .85rem; border-bottom: 1px solid var(--line-3); border-right: 1px solid var(--line-3); }
.tblock > div:nth-child(4) { border-right: 0; }
.tblock dt { font: 500 .75rem/1.2 var(--text); color: var(--line-2); margin-bottom: .25rem; }
.tblock dd { font-size: .9375rem; line-height: 1.3; }
.tblock__price { grid-column: 1 / 3; border-bottom: 0 !important; }
.tblock__price dd { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; }
.tblock__price b { font: 800 clamp(2.75rem, 4.6vw, 3.75rem)/.9 var(--display); color: var(--red); letter-spacing: 0; }
.tblock__price span { font: 500 .8125rem var(--mono); }
.tblock__cta { grid-column: 3 / 5; border: 0 !important; padding: 0 !important; display: grid; }
.tblock__cta .btn { width: 100%; height: 100%; clip-path: none; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "head" "plan" "block"; min-height: 0; }
  .hero__plan .plan { max-height: none; }
  .tblock { grid-template-columns: 1fr 1fr; }
  .tblock > div:nth-child(2) { border-right: 0; }
  .tblock__price, .tblock__cta { grid-column: 1 / -1; }
  .tblock__price { border-bottom: 1px solid var(--line-3) !important; border-right: 0; }
  .tblock__cta .btn { min-height: 3.5rem; }
}

/* ── 2. кімнати ── */
.rooms { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "plan head" "plan list"; grid-template-rows: auto 1fr; gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.rooms__head { grid-area: head; }
.rooms__plan { grid-area: plan; position: sticky; top: 5rem; }
.rlist { grid-area: list; }
.plan--live .room { cursor: pointer; pointer-events: all; }
.plan--live .room:hover { fill: rgba(227, 236, 255, .14); }
.plan--live .room.is-on { fill: var(--red); }
.plan--live .plan__labels text { pointer-events: none; }
.plan--live .plan__labels text.is-on { fill: var(--red-ink); }
.plan--live .plan__dims, .plan--live .plan__marks { display: none; }
.leader { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.leader path { fill: none; stroke: var(--red); stroke-width: 1.5; }
.leader rect { fill: var(--red); }
.rlist { border-top: 1.5px solid var(--line); }
.rlist button {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  width: 100%; padding: .8rem .75rem; border-bottom: 1px solid var(--line-3);
  font-size: 1.125rem; transition: background-color .25s, color .25s, padding .35s var(--ease);
}
.rlist button b { font: 500 1rem var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rlist button b::after { content: " м²"; color: var(--line-2); }
.rlist button:hover { background: rgba(227, 236, 255, .1); }
.rlist button:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.rlist button[aria-pressed="true"] { background: var(--red); color: var(--red-ink); padding-left: 1.4rem; font-weight: 700; }
.rlist button[aria-pressed="true"] b::after { color: inherit; }
.callout { margin-top: 2.25rem; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.5rem; align-items: start; }
.callout img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1.5px solid var(--red); }
.callout img[hidden] { display: none; }
.callout figcaption b { display: block; font: 800 clamp(1.75rem, 2.6vw, 2.25rem)/1 var(--display); text-transform: uppercase; margin-bottom: .6rem; }
.callout figcaption span { display: block; max-width: 34ch; }
.callout.is-swap img { animation: wipe .7s var(--ease); }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 960px) {
  .rooms { display: flex; flex-direction: column; gap: 1.25rem; align-items: stretch; }
  .rooms__plan { display: contents; }
  .rooms__head { order: 1; }
  .plan--live { order: 2; }
  .rlist { order: 3; display: flex; gap: .5rem; overflow-x: auto; border-top: 0; margin-inline: calc(var(--pad) * -1); padding: .25rem var(--pad) .75rem; scroll-padding-inline: var(--pad); scrollbar-width: none; }
  .rlist li { flex: none; }
  .rlist button { border: 1px solid var(--line-2); padding: .65rem .9rem; font-size: 1rem; gap: .6rem; }
  .rlist button[aria-pressed="true"] { padding-left: .9rem; border-color: var(--red); }
  .callout { order: 4; margin-top: 0; grid-template-columns: 1fr; gap: .9rem; }
  .leader { display: none; }
}
@media (max-width: 860px) {
  .plan__dims, .plan__marks, .plan__labels text:not(.a) { display: none; }
  .plan__labels text.a { font-size: 40px; }
  .plan__walls path { stroke-width: 7; } .plan__walls path + path { stroke-width: 4; }
}

/* ── 3. стан: білий аркуш ── */
.shell {
  margin-top: var(--gap); padding-bottom: var(--gap);
  background: var(--paper); color: var(--ink);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.shell ::selection { background: var(--ink); color: var(--paper); }
.shell__text { align-self: center; }
.spec { margin-top: 2.25rem; border-top: 1.5px solid var(--ink); }
.spec li { display: flex; justify-content: space-between; gap: 1.5rem; padding: .8rem 0; border-bottom: 1px solid rgba(13, 42, 110, .22); }
.spec span { font: 500 .9375rem/1.6 var(--text); color: var(--ink-2); }
.spec b { font-weight: 700; text-align: right; }
.shot { position: relative; }
.shot img, .shot video { display: block; width: 100%; object-fit: cover; }
.shot figcaption { font: 500 .875rem/1.4 var(--text); margin-top: .6rem; color: var(--ink-2); }
.shot--lead { --p: 1; overflow: clip; }
.shot--lead figcaption { position: relative; background: var(--paper); padding-top: .6rem; margin-top: 0; }
.shot--lead video { height: auto; aspect-ratio: 608 / 1080; background: var(--ink); }
.shot--lead { max-width: 26rem; justify-self: center; width: 100%; }
.shot--lead img, .shot--lead video { clip-path: inset(calc((1 - var(--p)) * 26%) 0); }
.shot--lead img { aspect-ratio: 3 / 4; clip-path: inset(calc((1 - var(--p)) * 26%) 0); scale: calc(1.12 - var(--p) * .12); transform-origin: 50% 60%; }
.strip {
  grid-column: 1 / -1; display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x proximity;
  margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 1rem; scroll-padding-inline: var(--pad); scrollbar-color: var(--ink-2) transparent;
}
.strip .shot { flex: 0 0 min(72vw, 34rem); scroll-snap-align: start; }
.strip .shot img { height: clamp(15rem, 34vw, 25rem); }
.strip .shot--tall { flex-basis: min(46vw, 19rem); }
@media (max-width: 860px) { .shell { grid-template-columns: 1fr; } .shell__text { position: static; } }

/* ── після ремонту: візуалізація плану ── */
.render { margin-top: 3rem; }
.render__open { display: block; border: 1.5px solid var(--line); cursor: zoom-in; overflow: hidden; background: var(--paper); }
.render__open img { display: block; width: 100%; height: auto; transition: scale .8s var(--ease); }
.render__open:hover img { scale: 1.015; }
.render figcaption { margin-top: 1.1rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; }
.render__legend { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.render__legend li { color: var(--line-2); font-size: .9375rem; }
.render__legend b { font: 500 .9375rem var(--mono); color: var(--line); margin-right: .35rem; font-variant-numeric: tabular-nums; }
.render figcaption > span { font-size: .875rem; color: var(--line-2); }
@media (max-width: 700px) { .render { margin-inline: calc(var(--pad) * -1); } .render__open { border-inline: 0; } .render figcaption { padding-inline: var(--pad); } }

/* ── перегляд зображення на весь екран ── */
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--blue-deep); color: var(--line); }
.viewer::backdrop { background: rgba(7, 29, 88, .85); }
.viewer[open] { display: grid; grid-template-rows: auto 1fr; }
.viewer__close { justify-self: end; margin: .75rem var(--pad); display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem 1rem; background: var(--red); color: var(--red-ink); border: 0; font: 700 1rem/1 var(--text); cursor: pointer; }
.viewer__close svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.5; }
.viewer__close:hover { background: #ff8467; }
.viewer__body { overflow: auto; display: grid; place-items: center; padding: 0 var(--pad) var(--pad); cursor: zoom-out; }
.viewer__body img { display: block; max-width: 100%; max-height: calc(100vh - 5rem); width: auto; height: auto; background: var(--paper); }
@media (max-width: 700px) { .viewer__body { place-items: center start; padding: 0 0 2rem; cursor: auto; } .viewer__body img { max-width: none; max-height: none; width: auto; height: min(55vh, 34rem); } }

/* ── 4. ціна ── */
.price h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .35em; }
.price__num { color: var(--red); font-size: 1.33em; }
.price__lede { margin-top: 1.4rem; }
.scale { position: relative; margin-top: 5.5rem; padding-top: 3.2rem; --lo: 2400; --span: 700; }
.scale__ticks li:last-child { translate: -3.4em 0; }
.scale__ticks li:last-child::before { left: 3.4em; }
.scale__ticks { display: grid; grid-template-columns: repeat(7, 1fr) 0; border-top: 1.5px solid var(--line); }
.scale__ticks li { white-space: nowrap; font: 500 .75rem var(--mono); padding-top: .9rem; position: relative; translate: -1.2em 0; font-variant-numeric: tabular-nums; }
.scale__ticks li::before { content: ""; position: absolute; left: 1.2em; top: -.5rem; height: 1rem; border-left: 1.5px solid var(--line); }
.scale__band, .scale__mark { position: absolute; top: 0; height: 3.2rem; display: flex; align-items: center; }
.scale__band { left: calc(200 / 700 * 100%); width: calc(400 / 700 * 100%); background: repeating-linear-gradient(-45deg, var(--line-3) 0 1px, transparent 1px 9px); border-inline: 1.5px solid var(--line); justify-content: center; }
.scale__band span { font: 500 .8125rem var(--text); background: var(--blue); padding: .2rem .6rem; }
.scale__mark { left: calc(100 / 700 * 100%); width: 0; border-left: 3px solid var(--red); height: 5.4rem; top: -2.2rem; align-items: flex-start; transition: left 1.4s var(--ease); }
.scale__mark span { font: 700 .9375rem/1 var(--text); background: var(--red); color: var(--red-ink); padding: .45rem .7rem; white-space: nowrap; translate: -3px 0; }
.price .note { margin-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) { .scale:not(.in) .scale__mark { left: 100%; } }
@media (max-width: 640px) { .scale__ticks li:not(:nth-child(2), :nth-child(5), :nth-child(7)) { visibility: hidden; } .scale__ticks li:nth-child(2) { translate: -.2em 0; } .scale__ticks li:nth-child(2)::before { left: .2em; } .scale__band span { font-size: .75rem; padding-inline: .25rem; } }

/* ── 5. будинок ── */
.tower { display: grid; grid-template-columns: minmax(9rem, 2fr) minmax(0, 6fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; --p: 1; }
.tower__draw { position: sticky; top: 6rem; }
#towerSvg { width: 100%; height: auto; max-height: min(74svh, 40rem); overflow: visible; }
#towerSvg .fl { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
#towerSvg .podium { stroke: var(--line); stroke-width: 2; fill: none; }
#towerSvg .fl.is-ten { fill: var(--red); stroke: var(--red); }
#towerSvg .leader { stroke: var(--red); stroke-width: 1.5; fill: none; }
#towerSvg .cab { fill: var(--line); }
.lift { position: absolute; left: 72%; top: 62%; }
#towerSvg { width: 70%; }
.lift span { display: block; font: 800 clamp(3.5rem, 7vw, 5.5rem)/.85 var(--display); color: var(--red); font-variant-numeric: tabular-nums; }
.lift small { font: 500 .8125rem var(--text); color: var(--line-2); }
.facts { margin-top: 2.5rem; display: grid; gap: 0; border-top: 1.5px solid var(--line); }
.facts li { display: grid; grid-template-columns: 3rem 1fr; gap: 1.25rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line-3); align-items: start; }
.facts svg { width: 3rem; height: 3rem; fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.facts b { display: block; font-size: 1.25rem; line-height: 1.25; }
.facts span { color: var(--line-2); font-size: 1rem; }
.tower__photo img { aspect-ratio: 3 / 4; border: 1.5px solid var(--line); }
.tower__photo figcaption { color: var(--line-2); }
@media (max-width: 1080px) { .tower { grid-template-columns: minmax(7rem, 1fr) minmax(0, 3fr); } .tower__photo { grid-column: 1 / -1; } .tower__photo img { aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .tower { grid-template-columns: 4.75rem minmax(0, 1fr); gap: 1rem; } #towerSvg { width: 100%; } .lift { position: static; margin-top: .5rem; } .lift span { font-size: 2.75rem; } .facts li { grid-template-columns: 2.25rem 1fr; gap: .8rem; } .facts svg { width: 2.25rem; height: 2.25rem; } }

/* ── 6. локація ── */
.route { margin-top: 3.5rem; width: 100%; height: auto; overflow: visible; }
.route__line { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: .012 .008; fill: none; }
.route circle { fill: var(--blue); stroke: var(--line); stroke-width: 1.5; }
.route g path { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.route__home rect { fill: var(--red); stroke: var(--red); }
.route__home path { stroke: var(--blue) !important; }
.route text { font: 700 19px var(--text); fill: var(--line); text-anchor: middle; }
.route text.t { font: 500 15px var(--text); fill: var(--line-2); }
.map { margin-top: 3.5rem; }
.map__frame { position: relative; aspect-ratio: 21 / 9; border: 1.5px solid var(--line); background: var(--blue-deep); }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-top: .9rem; }
.map figcaption span { color: var(--line-2); }
.map figcaption a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.map figcaption a:hover { color: var(--red); }
@media (max-width: 700px) { .map__frame { aspect-ratio: 4 / 5; } .map { margin-top: 2.5rem; } }
.rlist2 { display: none; margin-top: 2.5rem; border-top: 1.5px solid var(--line); }
.rlist2 li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line-3); }
.rlist2 b { font-size: 1.1875rem; }
.rlist2 span { font: 500 .9375rem var(--text); color: var(--line-2); white-space: nowrap; }
.rlist2 li.is-home b { color: var(--red-ink); background: var(--red); padding: .1rem .5rem; }
@media (max-width: 700px) { .route { display: none; } .rlist2 { display: block; } }

/* ── 7. документи ── */
.title { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.docs { margin-top: 2rem; border-top: 1.5px solid var(--line); max-width: 40rem; }
.docs li { padding: .85rem 0 .85rem 2.2rem; border-bottom: 1px solid var(--line-3); position: relative; font-size: 1.1875rem; }
.docs li::before { content: ""; position: absolute; left: .2rem; top: 1.15rem; width: 1rem; height: .5rem; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); rotate: -45deg; }
.title .note { margin-top: 1.25rem; }
.stamp { max-width: 22rem; justify-self: center; rotate: -9deg; width: 100%; }
.stamp svg { width: 100%; height: auto; overflow: visible; }
.stamp circle { fill: none; stroke: var(--red); stroke-width: 3; }
.stamp circle + circle { stroke-width: 1.5; }
.stamp text { fill: var(--red-text); text-anchor: middle; }
.stamp__ring { font: 700 13px var(--text); text-anchor: start !important; letter-spacing: .04em; }
.stamp__big { font: 800 35px var(--display); }
.stamp__date { font: 500 20px var(--mono); }
@media (prefers-reduced-motion: no-preference) {
  .stamp { transition: scale .45s var(--ease), opacity .25s; }
  .stamp:not(.in) { scale: 1.7; opacity: 0; }
}
@media (max-width: 800px) { .title { grid-template-columns: 1fr; } .stamp { max-width: 15rem; } }

/* ── перегляд ── */
.visit { padding-bottom: var(--gap); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.recap { border-top: 1.5px solid var(--line); }
.recap > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: .7rem 0; border-bottom: 1px solid var(--line-3); }
.recap dt { font: 500 .9375rem var(--text); color: var(--line-2); }
.recap dd { font: 800 clamp(2.5rem, 5vw, 4rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.recap > div:last-child dd { color: var(--red); }
@media (max-width: 800px) { .visit { grid-template-columns: 1fr; } }
.visit h2 { max-width: 14ch; }
.phones { margin-top: 2.25rem; border-top: 1.5px solid var(--line); }
.phones a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line-3); text-decoration: none; transition: padding .35s var(--ease), color .25s; }
.phones span { font-size: 1.125rem; color: var(--line-2); }
.phones b { font: 800 clamp(2.25rem, 4.6vw, 3.5rem)/1 var(--display); letter-spacing: .01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.phones a:hover { padding-left: .75rem; color: var(--red); }
.phones a:hover span { color: inherit; }
.visit .note { margin-top: 1.25rem; }

.foot { border-top: 1px solid var(--line-3); padding: 1.75rem var(--pad) 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem 3rem; font-size: .875rem; color: var(--line-2); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
.bar__mark em { font-style: normal; }
@media (max-width: 560px) {
  .bar__mark { display: flex; align-items: center; }
  .bar__mark span { display: inline-block; white-space: normal; line-height: 1.15; font-size: .75rem; vertical-align: middle; }
  .bar__mark em { display: block; }
}
