/* Айка · страница продажи комплекса
   Палитра и типографика — из брендбука, см. DESIGN.md в корне проекта. */

:root {
  /* брендовые четыре */
  --paper:  oklch(95.4% 0.0097 72.7);
  --forest: oklch(34.0% 0.0282 144.9);
  --bark:   oklch(43.0% 0.0269 87.2);
  --sand:   oklch(79.8% 0.0268 84.6);

  /* производные */
  --paper-warm:   oklch(93.2% 0.0125 75);
  --sand-pale:    oklch(90.5% 0.0185 82);
  --forest-deep:  oklch(24.5% 0.0215 146);
  --ink:          oklch(28% 0.0185 80);
  --muted:        oklch(47% 0.0195 82);   /* темнее 52%: на бумаге давало 4.17, ниже AA */
  --muted-light:  oklch(80% 0.0165 84);
  --line:         oklch(43% 0.027 87 / 0.22);
  --line-light:   oklch(90% 0.02 84 / 0.28);

  --font-display: 'Oranienbaum', 'Times New Roman', serif;
  --font-text: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --s--1: clamp(0.8125rem, 0.79rem + 0.12vw, 0.9rem);
  --s-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --s-1:  clamp(1.2rem, 1.11rem + 0.45vw, 1.5rem);
  --s-2:  clamp(1.55rem, 1.35rem + 0.95vw, 2.15rem);
  --s-3:  clamp(2.1rem, 1.7rem + 1.9vw, 3.3rem);
  --s-4:  clamp(2.8rem, 1.9rem + 4.2vw, 5.6rem);

  --gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  --chapter: clamp(4.5rem, 3rem + 7vw, 8.5rem);
  --wrap: 1200px;
  --pad: clamp(1.25rem, 0.75rem + 2.5vw, 3rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--s-0)/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--font-display); line-height: 1.04; letter-spacing: 0.005em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.wrap { width: min(100% - var(--pad) * 2, var(--wrap)); margin-inline: auto; }

.vh, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; inset: 0.75rem auto auto 0.75rem; z-index: 90;
  background: var(--forest); color: var(--paper);
  padding: 0.7rem 1.1rem; border-radius: 2px; text-decoration: none;
}

:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.sec--dark :focus-visible, .cta :focus-visible, .hero :focus-visible { outline-color: var(--sand); }

/* ---------- кикер и линейки ---------- */

.kicker {
  margin: 0 0 1rem;
  font-size: var(--s--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero .kicker, .sec--dark .kicker, .cta .kicker { color: var(--sand); }

/* ---------- шапка ---------- */

.top {
  position: sticky; top: 0; z-index: 40;
  background: oklch(95.4% 0.0097 72.7 / 0.93);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in {
  width: min(100% - var(--pad) * 2, 1340px);
  margin-inline: auto;
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 68px;
}
.top__logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--bark); }
.top__logo img { width: 46px; height: auto; color: var(--bark); }
.top__logo-txt {
  display: flex; flex-direction: column; line-height: 1.1;
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.04em;
}
.top__logo-txt small {
  font-family: var(--font-text); font-size: 0.625rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-top: 2px;
}
.top__nav { display: flex; gap: clamp(0.9rem, 2vw, 1.9rem); margin-left: auto; }
.top__nav a {
  text-decoration: none; font-size: var(--s--1); color: var(--muted);
  padding: 0.4rem 0; border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.top__nav a:hover { color: var(--forest); border-bottom-color: var(--forest); }
.top__act { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.top__tel { text-decoration: none; font-weight: 600; font-size: var(--s--1); white-space: nowrap; }

@media (max-width: 1080px) { .top__nav { display: none; } }
@media (max-width: 620px) {
  .top__logo-txt small { display: none; }
  .top__tel { display: none; }
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.7rem 1.4rem;
  background: var(--forest); color: var(--paper);
  font: 600 var(--s--1)/1.2 var(--font-text);
  text-decoration: none; border: 1px solid var(--forest); border-radius: 2px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.btn--sm { padding: 0.55rem 1rem; min-height: 40px; }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--s-0); min-height: 56px; }
.btn--ghost { background: transparent; color: var(--paper); border-color: oklch(95% 0.01 75 / 0.55); }
.btn--ghost:hover { background: oklch(95% 0.01 75 / 0.14); border-color: var(--paper); }
.btn--light { background: var(--paper); color: var(--forest-deep); border-color: var(--paper); }
.btn--light:hover { background: var(--sand); border-color: var(--sand); }

.lnk { color: var(--forest); text-underline-offset: 3px; }
.lnk:hover { text-decoration-thickness: 2px; }

/* ---------- герой ---------- */

.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: min(92svh, 860px);
  padding: clamp(5rem, 14vh, 9rem) 0 clamp(2.5rem, 6vh, 4.5rem);
  color: var(--paper);
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, oklch(21% 0.019 146 / 0.84) 0%, oklch(21% 0.019 146 / 0.52) 48%, oklch(21% 0.019 146 / 0.02) 95%),
    linear-gradient(to top, oklch(21% 0.019 146 / 0.86) 0%, oklch(21% 0.019 146 / 0.38) 44%, oklch(21% 0.019 146 / 0.16) 76%, oklch(21% 0.019 146 / 0.5) 100%);
}
.hero__in { width: min(100% - var(--pad) * 2, var(--wrap)); margin-inline: auto; }
.hero h1 {
  /* Заголовок держит три цифры, поэтому кегль ниже общего дисплейного: иначе
     он занимает весь экран и выталкивает цену с первого экрана. */
  font-size: clamp(2.3rem, 1.5rem + 3.3vw, 4.3rem);
  max-width: 20ch; margin-bottom: 1.1rem; line-height: 1.06;
  text-wrap: balance;
}
.hero__lead {
  max-width: 54ch; font-size: var(--s-1); line-height: 1.5;
  color: oklch(93% 0.012 78 / 0.92);
}
.hero__deal {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: var(--gap);
  margin-top: clamp(2rem, 5vh, 3.5rem);
  padding-top: clamp(1.5rem, 3vh, 2.2rem);
  border-top: 1px solid oklch(90% 0.02 84 / 0.35);
}
.hero__price .kicker { margin-bottom: 0.35rem; }
.hero__price strong {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.4rem); line-height: 1;
}
.hero__price-note { display: block; margin-top: 0.5rem; font-size: var(--s--1); color: var(--sand); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (max-width: 560px) {
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* ---------- полоса показателей ---------- */

.band {
  background: var(--forest);
  color: var(--paper);
  padding: clamp(2rem, 4vw, 3.2rem) 0;
}
.band .fact { border-top-color: oklch(90% 0.02 84 / 0.3); }

/* ---------- секции ---------- */

.sec { padding: var(--chapter) 0; scroll-margin-top: 80px; }
.sec--sand { background: var(--sand-pale); }
.sec--muted { background: var(--paper-warm); }
.sec--dark { background: var(--forest); color: var(--paper); }
.sec--dark h2, .sec--dark h3 { color: var(--paper); }
.sec--dark .sec__lead, .sec--dark p { color: oklch(92% 0.012 80 / 0.88); }
.sec--dark .h3-rule { border-top-color: oklch(90% 0.02 84 / 0.3); }
.sec--dark .row { border-bottom-color: oklch(90% 0.02 84 / 0.22); }
.sec--dark .row__k { color: var(--sand); }
.sec--dark .note { color: var(--muted-light); }
.sec--dark .plain li::before { background: var(--sand); }

.sec__head { max-width: 62ch; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.sec__head h2 { font-size: var(--s-3); margin-bottom: 1rem; text-wrap: balance; }
.sec__lead { font-size: var(--s-1); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.sec--dark .sec__lead { color: oklch(89% 0.015 82 / 0.9); }

.h3-rule {
  font-size: var(--s--1); letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--forest);
  padding-top: 0.9rem; margin-bottom: 1.1rem;
  border-top: 1px solid var(--line);
}
.mt { margin-top: 2.5rem; }
.mt-lg { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- показатели ---------- */

.facts { display: grid; gap: 1px 2rem; margin: 0; }
.facts--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.facts--5 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.facts--3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.fact {
  border-top: 1px solid var(--line);
  padding: 1rem 0 0;
  display: flex; flex-direction: column-reverse; gap: 0.4rem;
}
.fact dt { font-size: var(--s--1); color: var(--muted); }
/* Специфичность выше, чем у .fact dt: иначе на зелёном подписи уходят в серый. */
.band .fact dt, .sec--dark .fact dt { color: var(--sand); }
.fact dd { margin: 0; }

.num {
  font-family: var(--font-display); font-size: var(--s-2); line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--forest);
}
.band .num, .sec--dark .num { color: var(--paper); }
.num span { font-family: var(--font-text); font-size: 0.42em; letter-spacing: 0.02em; color: var(--muted); }
.band .num span, .sec--dark .num span { color: var(--sand); }
.num--xl { font-size: clamp(3rem, 2rem + 4vw, 5rem); display: block; }

/* ---------- колонки, списки, строки ---------- */

.cols { display: grid; gap: var(--gap); }
.cols--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.cols--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gap-lg { gap: clamp(2rem, 4vw, 4rem); }

.plain { list-style: none; margin: 0; padding: 0; }
.plain li { position: relative; padding-left: 1.1rem; margin-bottom: 0.55rem; }
.plain li::before {
  content: ''; position: absolute; left: 0; top: 0.72em;
  width: 5px; height: 5px; background: var(--bark); border-radius: 50%;
}
.plain--two { columns: 2; column-gap: 2rem; }
.plain--two li { break-inside: avoid; }
.plain--check li::before { width: 7px; height: 2px; border-radius: 0; background: var(--forest); top: 0.85em; }

@media (max-width: 520px) { .plain--two { columns: 1; } }

.rows { display: flex; flex-direction: column; }
.row {
  display: grid; grid-template-columns: minmax(150px, 0.8fr) 1.6fr;
  gap: 0.5rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.row:first-child { border-top: 1px solid var(--line); }
.row__k { font-size: var(--s--1); color: var(--muted); }
.row__v { font-size: var(--s-0); }
.rows--num .row__v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.row--sum { border-bottom: 2px solid var(--line); }
.row--sum .row__k, .row--sum .row__v { font-weight: 700; color: var(--forest); }
.sec--dark .row--sum .row__k, .sec--dark .row--sum .row__v { color: var(--paper); }
.row--risk .row__k { font-weight: 700; color: var(--forest); font-size: var(--s-0); }

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .rows--num .row__v { text-align: left; }
}

.note { font-size: var(--s--1); color: var(--muted); max-width: 62ch; }

/* ---------- номерной фонд ---------- */

.rooms {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.room img { aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1.25rem; }
.room h3 { font-family: var(--font-display); font-size: var(--s-2); margin-bottom: 0.3rem; }
.room__cap { font-size: var(--s--1); color: var(--muted); margin-bottom: 1rem; }

.fig figcaption { margin-top: 0.75rem; font-size: var(--s--1); color: var(--muted); }
.fig img { aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- таблица ---------- */

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 0.85rem 1rem; text-align: right; border-bottom: 1px solid var(--line); }
.tbl thead th { font-size: var(--s--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tbl tbody th { text-align: left; font-weight: 400; padding-left: 0; }
.tbl thead th:first-child { text-align: left; padding-left: 0; }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }
.tbl__accent th, .tbl__accent td { font-weight: 700; color: var(--forest); }
.tbl__total th, .tbl__total td {
  font-weight: 700; color: var(--forest); border-bottom: none;
  border-top: 2px solid var(--line); font-size: var(--s-1);
}

.assume { background: var(--paper-warm); padding: clamp(1.5rem, 3vw, 2.25rem); }
.assume h3 { font-size: var(--s-1); font-family: var(--font-display); margin-bottom: 1rem; }

/* ---------- этапы роста ---------- */

.stages { list-style: none; margin: 0; padding: 0; }
.stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
}
.stage:last-child { border-bottom: 1px solid var(--line); }

/* Чередуем стороны, иначе три одинаковых ряда читаются как таблица. */
.stage:nth-child(even) .stage__pic { order: 2; }

.stage__pic { margin: 0; }
.stage__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stage:last-child .stage__pic img { aspect-ratio: 3 / 4; }

.stage__n {
  display: block; margin-bottom: 0.65rem;
  font-size: var(--s--1); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.stage h3 { font-family: var(--font-display); font-size: var(--s-2); margin-bottom: 0.75rem; }
.stage p { max-width: 54ch; }
.stage strong { font-weight: 700; color: var(--forest); }
.stage__facts { margin-top: 1.5rem; gap: 1px 1.5rem; }
.stage__facts .num { font-size: var(--s-1); }

@media (max-width: 820px) {
  .stage { grid-template-columns: 1fr; }
  .stage:nth-child(even) .stage__pic { order: 0; }
  .stage:last-child .stage__pic img { aspect-ratio: 4 / 3; }
}

/* ---------- цена ---------- */

.price {
  display: grid; grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.price__fig { border-top: 3px solid var(--forest); padding-top: 1.5rem; }
.price__fig .num--xl { margin-bottom: 1rem; }
.price__fig p { color: var(--muted); font-size: var(--s--1); margin-bottom: 1.75rem; }
.price__txt h2 { font-size: var(--s-3); margin-bottom: 1.25rem; }
.price__txt p { max-width: 62ch; color: var(--muted); }
.price__txt .plain { margin-top: 1.75rem; }

@media (max-width: 780px) { .price { grid-template-columns: 1fr; } }

/* ---------- галерея ---------- */

.gal__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.gal__tab {
  font: 600 var(--s--1)/1 var(--font-text);
  padding: 0.6rem 1.1rem; min-height: 40px;
  background: transparent; color: oklch(89% 0.015 82 / 0.75);
  border: 1px solid oklch(90% 0.02 84 / 0.3); border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.gal__tab:hover { border-color: var(--sand); color: var(--paper); }
.gal__tab.is-on { background: var(--sand); border-color: var(--sand); color: var(--forest-deep); }

.gal { columns: 3; column-gap: 1rem; }
@media (max-width: 900px) { .gal { columns: 2; } }
@media (max-width: 560px) { .gal { columns: 1; } }

.gal__it {
  display: block; width: 100%; padding: 0; margin: 0 0 1rem;
  border: 0; background: none; cursor: zoom-in;
  break-inside: avoid; position: relative; overflow: hidden;
}
.gal__it img { width: 100%; transition: transform 0.6s var(--ease), filter 0.6s var(--ease); }
.gal__it:hover img { transform: scale(1.03); filter: brightness(1.04); }
.gal__it[hidden] { display: none; }

/* ---------- лайтбокс ---------- */

.lb {
  position: fixed; inset: 0; z-index: 100;
  background: oklch(24.5% 0.0215 146 / 0.97);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.lb[hidden] { display: none; }
.lb.is-on { opacity: 1; }
.lb__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; gap: 0.85rem; }
.lb__img { max-width: 100%; max-height: 78svh; width: auto; object-fit: contain; margin-inline: auto; }
.lb__cap { color: var(--sand); font-size: var(--s--1); text-align: center; max-width: 70ch; margin-inline: auto; }
.lb__close, .lb__nav {
  position: absolute; z-index: 2;
  background: oklch(95% 0.01 75 / 0.1); color: var(--paper);
  border: 1px solid oklch(90% 0.02 84 / 0.25); border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.6rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  transition: background-color 0.25s var(--ease);
}
.lb__close:hover, .lb__nav:hover { background: oklch(95% 0.01 75 / 0.22); }
.lb__close { top: clamp(0.75rem, 2vw, 1.5rem); right: clamp(0.75rem, 2vw, 1.5rem); }
.lb__nav { top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lb__nav--prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lb__nav--next { right: clamp(0.5rem, 2vw, 1.5rem); }
body.lb-open { overflow: hidden; }

/* ---------- финальный призыв ---------- */

.cta {
  position: relative; isolation: isolate; color: var(--paper);
  padding: clamp(5rem, 11vw, 9rem) 0;
}
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to right, oklch(21% 0.019 146 / 0.92) 0%, oklch(21% 0.019 146 / 0.74) 55%, oklch(21% 0.019 146 / 0.45) 100%);
}
.cta h2 { font-size: var(--s-3); max-width: 20ch; margin-bottom: 1.1rem; }
.cta__lead { max-width: 56ch; font-size: var(--s-1); color: oklch(92% 0.012 80 / 0.9); }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.5rem; }
.cta__tel {
  font-family: var(--font-display); font-size: var(--s-2);
  text-decoration: none; color: var(--paper); white-space: nowrap;
  border-bottom: 1px solid oklch(90% 0.02 84 / 0.4); padding-bottom: 0.15rem;
}
.cta__tel:hover { border-bottom-color: var(--sand); }
.cta__note { margin-top: 1.75rem; font-size: var(--s--1); color: var(--sand); }

/* ---------- подвал ---------- */

.foot { background: var(--forest-deep); color: oklch(88% 0.015 82 / 0.72); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.foot__in { display: grid; gap: 1.5rem; grid-template-columns: minmax(180px, 0.6fr) 1.6fr; }
.foot__brand { display: flex; align-items: center; gap: 0.75rem; color: var(--sand); font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.03em; }
.foot__brand img { width: 44px; color: var(--sand); }
.foot__legal { font-size: var(--s--1); max-width: 70ch; }
.foot__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: var(--s--1); padding-top: 1.25rem; border-top: 1px solid oklch(90% 0.02 84 / 0.15); }
.foot__links a { color: var(--sand); text-underline-offset: 3px; }

@media (max-width: 680px) { .foot__in { grid-template-columns: 1fr; } }

/* ---------- появление при скролле ---------- */

.rv { opacity: 0; transform: translateY(18px); }
.rv.is-in { opacity: 1; transform: none; transition: opacity 0.62s var(--ease), transform 0.62s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .rv, .rv.is-in { opacity: 1; transform: none; transition: none; }
  .gal__it img, .btn, .top__nav a { transition: none; }
  .lb { transition: none; }
}

/* ---------- карта ---------- */

/* Виджет Яндекса грузится лениво: до секции «Локация» чужой код не подтягивается. */
.map { position: relative; aspect-ratio: 4 / 3; background: var(--sand-pale); overflow: hidden; }
/* Виджет рисует внизу собственную белую панель. Делаем iframe выше контейнера и срезаем
   её часть. Ровно 52px: при большем кропе виджет перестраивается и прячет копирайт
   «© Яндекс · Условия использования», а убирать его нельзя. Проверено на 52, 72 и 95. */
.map iframe { position: absolute; inset: 0; width: 100%; height: calc(100% + 52px); border: 0; }

@media (max-width: 860px) { .map { aspect-ratio: 1 / 1; } }

/* ---------- скачать PDF ---------- */

.dl {
  display: grid; grid-template-columns: auto 1fr; gap: 0.75rem 2rem; align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.75rem;
  border-top: 2px solid var(--forest);
}
.dl__meta { font-size: var(--s--1); color: var(--muted); max-width: 54ch; margin: 0; }

@media (max-width: 680px) { .dl { grid-template-columns: 1fr; } }

.cta__dl { margin-top: 1.5rem; font-size: var(--s--1); color: var(--sand); }
.cta__dl a { color: var(--paper); text-underline-offset: 3px; }

/* ---------- оценки на картах ---------- */

.rating { display: grid; grid-template-columns: repeat(2, minmax(150px, 220px)) 1fr; gap: 1.5rem 2.5rem; align-items: start; }
.rating__card {
  display: block; text-decoration: none; color: inherit;
  border-top: 2px solid var(--forest); padding-top: 1rem;
  transition: border-color 0.25s var(--ease);
}
.rating__card:hover { border-top-color: var(--bark); }
.rating__card:hover .rating__src { text-decoration: underline; text-underline-offset: 3px; }
.rating__num { display: block; margin-top: 0.75rem; font-family: var(--font-display); font-size: var(--s-3); line-height: 1; color: var(--forest); }
.rating__cnt { display: block; font-size: var(--s--1); color: var(--muted); }

/* Знаки Яндекс.Карт и 2ГИС — единственный цвет вне брендовой палитры. Чужие
   товарные знаки не перекрашиваем, поэтому держим их мелко, как подпись к источнику. */
.rating__src { display: flex; align-items: center; gap: 0.45rem; height: 22px; }
.rating__pin { height: 21px; width: auto; }
.rating__word { height: 16px; width: auto; }
/* У 2ГИС знак и слово в одном файле, поэтому оптическая высота другая. */
.rating__word--2gis { height: 17px; }
.rating__note { font-size: var(--s--1); color: var(--muted); margin: 0; max-width: 46ch; align-self: center; }

@media (max-width: 760px) {
  .rating { grid-template-columns: 1fr 1fr; }
  .rating__note { grid-column: 1 / -1; }
}

/* ---------- карта во всю ширину колонки ---------- */

.map--wide { aspect-ratio: 21 / 9; min-height: 340px; }

@media (max-width: 860px) { .map--wide { aspect-ratio: 4 / 3; min-height: 0; } }

/* ---------- плавающая связь ---------- */

.dock {
  position: fixed; z-index: 50;
  right: clamp(0.75rem, 1.6vw, 1.5rem);
  bottom: clamp(0.75rem, 1.6vw, 1.5rem);
  display: flex; flex-direction: column; gap: 0.5rem;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.dock.is-on { opacity: 1; transform: none; pointer-events: auto; }

.dock__btn {
  position: relative;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--forest); color: var(--paper);
  border-radius: 2px; text-decoration: none;
  box-shadow: 0 8px 24px oklch(24% 0.02 146 / 0.26);
  transition: background-color 0.25s var(--ease);
}
.dock__btn:hover { background: var(--forest-deep); }
.dock__btn svg { width: 23px; height: 23px; fill: currentColor; display: block; }

/* Подпись сдвигаем трансформом, а не шириной: layout-свойства не анимируем. */
.dock__lbl {
  position: absolute; right: calc(100% + 0.5rem); top: 50%;
  transform: translate(8px, -50%);
  background: var(--forest-deep); color: var(--paper);
  font: 600 var(--s--1)/1 var(--font-text);
  padding: 0.65rem 0.85rem; border-radius: 2px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.dock__btn:hover .dock__lbl,
.dock__btn:focus-visible .dock__lbl { opacity: 1; transform: translate(0, -50%); }

@media (max-width: 760px) {
  .dock__btn { width: 48px; height: 48px; }
  .dock__lbl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dock, .dock__btn, .dock__lbl { transition: none; }
}
