/* === SECTIONS.CSS === */
/* assets/css/sections.css */
/* НАЗНАЧЕНИЕ: Верхние секции - hero, доверие, ценовая лестница, объект, апартаменты, локация */
/* СВЯЗИ: tokens.css, layout.css, views/sections/*.php */
/* РАЗМЕР: ~490 строк */

/* ==========================================================
   HERO
   ========================================================== */

.hero {
  padding-top: clamp(118px, 14vw, 172px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}

.hero-title .kicker { display: block; margin-bottom: var(--s5); }

.hero-aside .note { margin-top: var(--s4); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s6);
}

.hero-shot {
  position: relative;
  margin-top: clamp(40px, 5vw, 68px);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--paper-2);
}

.hero-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 1.4s var(--out-expo);
}

.hero-shot:hover img { transform: scale(1.03); }

.shot-tag {
  position: absolute;
  left: clamp(16px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 28px);
  display: flex;
  gap: var(--s3);
  padding: 9px var(--s4);
  border-radius: var(--r-pill);
  background: rgba(17, 21, 26, .58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 500;
}

.shot-tag span + span { color: rgba(246, 246, 244, .62); }

/* ==========================================================
   ОБЛЕТ ОБЪЕКТА
   ========================================================== */

.flyover {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--paper-2);
}

/* Пропорции блока равны пропорциям самого файла (848x560).
   Тогда кадр виден целиком: ни срезанных краев от object-fit: cover,
   ни черных полей по бокам. */
.flyover-media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 848 / 560;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule);
}

.metric { padding: clamp(24px, 3vw, 34px) clamp(14px, 2vw, 26px) 0 0; }

.metric + .metric {
  padding-left: clamp(14px, 2vw, 26px);
  border-left: 1px solid var(--rule);
}

.metric dt {
  margin-bottom: var(--s3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.metric .figure i {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

/* ==========================================================
   ПОЧЕМУ БАЛАТОН
   ========================================================== */

/* Три колонки, а не четыре: доводов шесть, и при четырех колонках
   последний ряд оставался бы наполовину пустым. */
.trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 3.4vw, 52px);
}

.trust-num {
  display: block;
  padding-bottom: var(--s4);
  margin-bottom: var(--s5);
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--champagne-deep);
}

.trust-body h3 { margin-bottom: var(--s3); }

.trust-body p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-70);
}

/* ==========================================================
   ЦЕНОВАЯ ЛЕСТНИЦА - ПОДПИСНОЙ БЛОК САЙТА
   ========================================================== */

.ladder { border-top: 1px solid var(--rule); }

.rung {
  display: grid;
  grid-template-columns: minmax(0, 262px) minmax(50px, 1fr) minmax(0, 128px) minmax(0, 168px);
  align-items: center;
  gap: clamp(14px, 2.6vw, 32px);
  padding: clamp(16px, 2.2vw, 26px) 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left .5s var(--out-quart);
}

.rung:hover { padding-left: var(--s3); }

.rung-price {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  transition: color .4s ease;
}

.rung-price i {
  font-family: var(--sans);
  font-style: normal;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

.rung.is-now .rung-price    { color: var(--ink); }
.rung.is-target .rung-price { color: var(--champagne-deep); }

/* Заливка линии по положению ступени, ширину задает PHP через --fill */
.rung-rule {
  position: relative;
  height: 1px;
  background: var(--rule);
}

.rung-rule::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 0%);
  background: var(--champagne-deep);
  transition: width 1.2s var(--out-expo);
}

.rung-when {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.rung-mark { text-align: right; }

.tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--mute);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-70);
  white-space: nowrap;
}

.tag-now {
  background: var(--ink);
  box-shadow: none;
  color: var(--paper);
}

.ladder-note { margin-top: var(--s5); }

/* Намеренно не похож на ступень лестницы: отдельная карточка с левой
   линией отделяет рыночный ориентир от графика прайса. Оформленный
   как ступень, диапазон прочитался бы как позиция прайса. */
.market-forecast {
  margin-top: clamp(30px, 3.6vw, 48px);
  padding: clamp(26px, 3vw, 38px) clamp(24px, 3vw, 40px);
  border-left: 2px solid var(--champagne-deep);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--paper-2);
}

/* Секция инвестиций идет на band-alt, где подложка карточки совпала бы
   с фоном полосы - там она берется на тон светлее. */
.band-alt .market-forecast { background: var(--paper); }

.market-forecast .kicker { display: block; margin-bottom: var(--s3); }
.market-forecast h3 { margin-bottom: var(--s4); }

.mf-range {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--champagne-deep);
}

.mf-range i {
  font-family: var(--sans);
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

.mf-note {
  max-width: 64ch;
  margin-top: var(--s4);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.drivers { margin-top: clamp(48px, 6vw, 88px); }

.drivers-head { margin-bottom: var(--s6); }

.drivers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
}

.driver {
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
}

.driver h4 { margin-bottom: var(--s2); }

.driver p,
.exit-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-70);
}

.exits {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--r-lg);
  background: var(--champagne-wash);
}

.exits > h3 { margin-bottom: var(--s6); }

.exits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(226px, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
}

.exit-item h4 { margin-bottom: var(--s2); }

/* ==========================================================
   ПЕРВЫЙ ОБЪЕКТ
   ========================================================== */

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.project-story h3 { margin-bottom: var(--s3); }
.project-story h3 + p { margin-bottom: var(--s6); }

.project-story p {
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--ink-70);
}

.project-story > *:last-child { margin-bottom: 0; }

.spec { border-top: 1px solid var(--ink); }

.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s5);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--rule);
}

.spec-row dt {
  font-size: 14px;
  color: var(--ink-soft);
}

.spec-row dd {
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

.spec-request dd { font-weight: 400; }

/* ==========================================================
   АПАРТАМЕНТЫ
   ========================================================== */

/* Чертежи этажа над карточками. Подложка светлее секции: линии
   на чертеже тонкие, и на цветном фоне они теряются. Картинку не
   обрезаем по сетке - у плана нельзя срезать края. */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
  margin-bottom: clamp(32px, 4vw, 64px);
  /* Пропорции у чертежей разные. Без этого более низкая карточка
     растягивалась бы до соседней и висела бы с пустотой под подписью. */
  align-items: start;
}

.plan-shot {
  padding: var(--s5);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--rule-soft);
}

.plan-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  cursor: zoom-in;
}

.plan-shot figcaption {
  margin-top: var(--s4);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.units {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(296px, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
}

/* Две ссылки в карточке: посмотреть план и перейти к заявке */
.unit-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
}

.unit {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
  transition: transform .6s var(--out-quart);
}

.band-alt .unit { background: var(--paper); }

.unit:hover { transform: translateY(-4px); }

.unit-shot { position: relative; overflow: hidden; }

.unit-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--out-expo);
}

.unit:hover .unit-shot img { transform: scale(1.04); }

.unit-area {
  position: absolute;
  top: var(--s4);
  left: var(--s4);
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: rgba(246, 246, 244, .92);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -.01em;
}

.unit-body { padding: clamp(24px, 3vw, 34px); }

.unit-body h3 { margin-bottom: var(--s2); }

.unit-note {
  margin-bottom: var(--s5);
  font-size: 14.5px;
  color: var(--ink-70);
}

.unit-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4) var(--s5);
  padding: var(--s5) 0;
  margin-bottom: var(--s5);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.unit-facts dt {
  margin-bottom: 5px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.unit-facts dd {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.entry-row { margin-top: clamp(44px, 5vw, 72px); }

.entry-row > h3 { margin-bottom: var(--s6); }

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: var(--s5);
}

.entry-card {
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--rule);
}

.entry-card.is-primary {
  background: var(--champagne-wash);
  box-shadow: inset 0 0 0 1px rgba(128, 97, 52, .3);
}

.entry-pct {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--champagne-deep);
}

.entry-card h4 { margin-bottom: 3px; }

.entry-card p {
  font-size: 14px;
  color: var(--ink-70);
}

/* ==========================================================
   ЛОКАЦИЯ
   ========================================================== */

.place {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.place-shot {
  position: sticky;
  top: 108px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.place-shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.place-story p {
  margin-bottom: var(--s5);
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-70);
}

/* Время в пути - единственные измеримые числа в описательной колонке,
   поэтому они вынесены в карточки, а не в общий текст. */
.times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
  margin: 0 0 var(--s5);
}

.time-card {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s5);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--champagne-wash);
}

/* flex: none - иначе иконка сжимается, когда подпись длиннее места */
.time-icon {
  flex: none;
  display: block;
  color: var(--champagne-deep);
}

.time-icon svg { width: 30px; height: 30px; }

.time-card b {
  display: block;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.time-card b + span {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.place-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
  padding: var(--s6) 0;
  margin: var(--s2) 0 var(--s5);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.place-facts dt {
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.place-facts dd {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -.02em;
}

/* ==========================================================
   ИНФРАСТРУКТУРА
   ========================================================== */

.wide-shot {
  margin-bottom: clamp(36px, 4vw, 56px);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.wide-shot img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.wide-shot figcaption {
  padding-top: var(--s4);
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* Разделители рисуем тенями на самих ячейках, а не фоном контейнера:
   иначе незаполненные ячейки последнего ряда светятся серым. */
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(206px, 1fr));
  margin-bottom: var(--s6);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}

.amenity {
  display: block;
  padding: clamp(22px, 2.6vw, 30px);
  box-shadow: 1px 0 0 var(--rule), 0 1px 0 var(--rule);
  transition: background-color .4s ease;
}

.amenity:hover { background: var(--paper); }

.amenity-icon {
  display: block;
  margin-bottom: var(--s4);
  color: var(--champagne-deep);
}

.amenity-icon svg { width: 26px; height: 26px; }

.amenity-title {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 15.5px;
}

.amenity-note {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Два довода, которые не сводятся к иконке в сетке: их нужно объяснить
   словами, поэтому они идут отдельным рядом под перечнем. */
.infra-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
  margin-bottom: var(--s6);
}

.infra-note {
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
}

.infra-note h4 { margin-bottom: var(--s2); }

.infra-note p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-70);
}

/* ==========================================================
   ГАЛЕРЕЯ ОТДЕЛКИ
   ========================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
  margin-bottom: var(--s6);
}

.shot {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper-2);
}

.shot:first-child { grid-column: span 2; grid-row: span 2; }

.shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.1s var(--out-expo);
}

.shot:first-child img { aspect-ratio: 1 / 1; }

.shot:hover img { transform: scale(1.05); }

.shot-zoom {
  position: absolute;
  right: var(--s3);
  bottom: var(--s3);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: rgba(246, 246, 244, .9);
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s var(--out-quart);
}

.shot-zoom svg { width: 15px; height: 15px; }
.shot:hover .shot-zoom { opacity: 1; transform: none; }

.materials { margin-top: clamp(40px, 4.6vw, 64px); }

.materials h3 { margin-bottom: var(--s5); }

.materials ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

.materials li {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 14px;
  color: var(--ink-70);
}
