/* Padel Living Residences — лендинг. Белый фон, глубокий зелёный для заголовков и кнопок,
   приглушённое золото для акцентов, цифр и иконок, графитовый текст. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --white: #ffffff;
  --green: #153d32;
  --green-deep: #0e2c24;
  --green-hover: #1d5244;
  --gold: #b99550;
  --gold-text: #8a6a26;      /* золото для текста на белом: читаемый контраст */
  --ink: #202923;
  --ink-soft: #55615a;
  --tint: #f2f5f2;
  --line: #dbe3dd;
  --on-green: #e4ece7;
  --error: #a3271b;
  --radius: 14px;
  --gutter: 20px;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bar-height: 0px;
}

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

html {
  /* Плавной прокрутки нет намеренно: переход через всю страницу должен сразу приводить к цели. */
  scroll-padding-top: 118px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h2 {
  margin-bottom: 18px;
  color: var(--green);
  font-size: clamp(1.75rem, 4.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h3 {
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--green);
}

.accent {
  color: var(--gold-text);
}

:focus-visible {
  outline: 3px solid #1d5fd1;
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn--small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.94rem;
}

.btn--whatsapp,
.btn--dark {
  background: var(--green);
  color: #fff;
}

.btn--whatsapp:hover,
.btn--dark:hover {
  background: var(--green-hover);
}

.btn--light {
  background: #fff;
  color: var(--green);
}

.btn--light:hover {
  background: var(--on-green);
}

.btn--outline {
  border: 1.5px solid var(--green);
  background: transparent;
  color: var(--green);
}

.btn--outline:hover {
  background: var(--tint);
}

/* На зелёном фоне главная кнопка — золотая. */
.hero .btn--whatsapp,
.band--green .contact .btn--whatsapp {
  background: var(--gold);
  color: #17201b;
}

.hero .btn--whatsapp:hover,
.band--green .contact .btn--whatsapp:hover {
  background: #c9a763;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.btn.zoom {
  display: inline-flex;
  border-radius: 999px;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: currentColor;
}

.ico {
  width: 26px;
  height: 26px;
  flex: none;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  padding: 9px 0;
  color: var(--green);
  text-decoration: none;
  line-height: 1.15;
}

.brand__name {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand__sub {
  color: var(--gold-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Меню разделов: на телефоне — отдельная строка с горизонтальной прокруткой. */
.site-nav {
  order: 3;
  display: flex;
  flex: 0 0 calc(100% + 2 * var(--gutter));
  gap: 4px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 calc(var(--gutter) - 10px) 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: none;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--gold-text);
}

.site-nav a[aria-current="true"] {
  background: var(--green);
  color: #fff;
}

.site-header .btn {
  display: none;
}

/* --- первый экран: на телефоне рендер сверху, текст под ним; на компьютере текст слева, рендер справа.
       Здание не затемняется. --- */

.hero {
  position: relative;
  background: var(--green);
  color: #fff;
}

.hero__media {
  position: relative;
}

.hero__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero__caption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(14, 44, 36, 0.72);
  font-size: 0.72rem;
}

.hero__content {
  padding-top: 26px;
  padding-bottom: 34px;
}

.hero__eyebrow {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__title {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 8.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero__lead {
  max-width: 30em;
  margin-bottom: 18px;
  color: var(--on-green);
  font-size: 1.08rem;
}

.hero__price {
  margin-bottom: 22px;
  color: var(--gold);
  font-size: clamp(2rem, 7vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero__price-label {
  display: block;
  margin-bottom: 4px;
  color: var(--on-green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.hero__note {
  margin: 18px 0 0;
  color: var(--on-green);
  font-size: 0.95rem;
}

/* --- секции и полосы --- */

.section,
.band {
  padding: 56px 0;
}

.section--tint,
.band--tint {
  background: var(--tint);
}

.band--green {
  background: var(--green);
  color: var(--on-green);
}

.band--green h2,
.band--green h3 {
  color: #fff;
}

.band--green .accent,
.band--green .eyebrow {
  color: var(--gold);
}

.band--green a {
  color: #fff;
}

.band--green figcaption {
  color: #b9c9c0;
}

.section__lead {
  max-width: 44em;
  color: var(--ink-soft);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--gold-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow__num {
  margin-right: 8px;
  opacity: 0.7;
}

.subhead {
  margin: 48px 0 16px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.subhead--first {
  margin-top: 0;
}

.fineprint {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.narrow {
  max-width: 44em;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

/* --- крупное изображение рядом с коротким текстом --- */

.media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.media-row + .media-row {
  margin-top: 40px;
}

.media-row__media img {
  width: 100%;
  border-radius: var(--radius);
}

.media-row__text .btn {
  margin-top: 8px;
}

/* --- коротко об оплате --- */

.brief__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.brief__text p {
  max-width: 30em;
}

.brief__steps {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brief__step {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 0 12px 26px;
  line-height: 1.35;
}

/* линия и точки, связывающие этапы */
.brief__step::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}

.brief__step:first-child::before {
  top: 50%;
}

.brief__step:last-child::before {
  bottom: 50%;
}

.brief__step::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--gold);
}

.brief__share {
  color: var(--gold-text);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brief__when {
  font-weight: 600;
}

.brief__when small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

/* --- рынок: тезисы без карточек, с золотой линией сверху --- */

.theses {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 26px 0 26px;
  padding: 0;
  list-style: none;
}

.thesis {
  padding-top: 14px;
  border-top: 3px solid var(--gold);
}

.thesis p {
  margin: 0;
}

.thesis .thesis__value {
  margin-bottom: 6px;
  color: var(--green);
  font-size: clamp(1.45rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.thesis__text {
  color: var(--ink-soft);
}

.more {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.more summary {
  padding: 12px 16px;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}

.more[open] summary {
  border-bottom: 1px solid var(--line);
}

.sources {
  margin: 0;
  padding: 12px 16px 14px 36px;
  font-size: 0.94rem;
}

.sources li {
  margin-bottom: 8px;
}

.sources li:last-child {
  margin-bottom: 0;
}

/* --- Джидда --- */

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding: 5px 0 5px 26px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 12px;
  height: 2px;
  background: var(--gold);
}

.scheme img {
  border: 1px solid var(--line);
  background: #f3f5f1;
}

.location__times h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.times {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.times li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  line-height: 1.35;
}

.times li:last-child {
  border-bottom: 0;
}

.times__min {
  color: var(--gold-text);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.map-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
}

.map-links__label {
  flex-basis: 100%;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* --- крупный просмотр: ссылка-изображение и кнопка под ним (не поверх подписей) --- */

.zoom {
  position: relative;
  display: block;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.zoom img {
  width: 100%;
  border-radius: var(--radius);
}

.zoom__hint {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  padding: 6px 16px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
}

.zoom:hover .zoom__hint {
  background: var(--tint);
}

.section--tint .zoom:hover .zoom__hint {
  background: #fff;
}

.zoom-figure img {
  border: 1px solid var(--line);
}

/* --- район --- */

.district {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  margin-top: 8px;
}

.district__text h3 {
  margin: 20px 0 6px;
  font-size: 1.35rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend__swatch {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.legend__swatch--padel {
  background: #c8572a;
}

.legend__swatch--plaza {
  background: #b9b9bb;
}

.legend__swatch--amaya {
  background: #f0c078;
}

.legend__swatch--commercial {
  background: #d98a8c;
}

.legend__swatch--residential {
  background: #c9d3ea;
}

.legend__swatch--school {
  background: #c2542c;
}

.legend__swatch--mosque {
  background: #6cb86a;
}

.legend__swatch--medical {
  background: #dba0c8;
}

/* инфраструктура: строки с золотыми иконками, без карточек */
.infra {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.infra__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.35;
}

.infra__item:last-child {
  border-bottom: 0;
}

.infra__item strong {
  display: block;
}

.infra__item span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.note {
  padding: 10px 14px;
  border-left: 3px solid var(--gold);
  background: var(--tint);
  border-radius: 0 10px 10px 0;
  font-size: 0.94rem;
}

/* сведения о праве собственности со ссылкой на источник */
.freehold {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.freehold strong {
  color: var(--green);
}

.freehold a {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* --- Padel Living: зелёная полоса --- */

.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding-top: 12px;
  border-top: 2px solid var(--gold);
}

.feature h3 {
  margin-bottom: 4px;
  font-size: 1.12rem;
}

.feature p {
  margin: 0;
  color: #c9d6cf;
  font-size: 0.96rem;
}

.wide-shot {
  margin-top: 36px;
}

.wide-shot img {
  width: 100%;
  border-radius: var(--radius);
}

.specs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.specs li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.specs strong {
  color: var(--green);
}

/* --- квартиры --- */

.units {
  width: 100%;
  margin-bottom: 14px;
  border-collapse: collapse;
}

.units th,
.units td {
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.units thead th {
  padding-top: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.units tbody th {
  color: var(--green);
  font-weight: 700;
}

.units td {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

.units thead th:last-child {
  text-align: right;
}

/* Переключатель включается скриптом; без него все группы видны подряд с заголовками. */
.plans-tabs {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 16px;
}

.has-tabs .plans-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 480px) {
  .has-tabs .plans-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .has-tabs .plans-tabs {
    display: flex;
  }
}

.has-tabs .plans__title {
  display: none;
}

.plans-tab {
  min-height: 46px;
  padding: 8px 12px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.plans-tab[aria-selected="true"] {
  background: var(--green);
  color: #fff;
}

.plans__title {
  margin: 26px 0 12px;
  font-size: 1rem;
}

/* Колонки сетки не могут стать шире экрана: минимальная ширина колонки — ноль, а не ширина чертежа.
   (В Safari чертёж иначе растягивал колонку до своего исходного размера, и страница уезжала вбок.) */
.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.plan-card {
  min-width: 0;
  padding: 10px 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* Телефон: одна карточка на всю ширину, чертёж целиком, в своих пропорциях и не крупнее исходного. */
.plan-card .zoom {
  display: block;
  border-radius: 6px;
}

.plan-card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
}

.plan-card figcaption {
  margin-top: 8px;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

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

/* Одно большое изображение, под ним лента миниатюр. Изображения не растягиваются:
   большое вписывается в рамку целиком, миниатюры обрезаны под общий формат. */
.gallery {
  margin-top: 20px;
}

.gallery__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--tint);
  overflow: hidden;
}

.gallery__main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.gallery__main img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  object-fit: contain;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 10px rgba(14, 44, 36, 0.28);
  color: var(--green);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.gallery__arrow:hover {
  background: #fff;
  color: var(--gold-text);
}

.gallery__arrow--prev {
  left: 8px;
}

.gallery__arrow--next {
  right: 8px;
}

.gallery__caption {
  margin: 8px 0 10px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.gallery__thumbs {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 4px 4px 10px;
  overflow-x: auto;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.gallery__thumbs li {
  flex: none;
}

.gallery__thumb {
  display: block;
  width: 104px;
  border-radius: 10px;
  outline: 3px solid transparent;
  outline-offset: 1px;
  opacity: 0.82;
}

.gallery__thumb img {
  width: 100%;
  border-radius: 8px;
}

.gallery__thumb:hover {
  opacity: 1;
}

/* выбранная миниатюра — в золотой рамке */
.gallery__thumb[aria-current="true"] {
  outline-color: var(--gold);
  opacity: 1;
}

.video {
  max-width: 960px;
}

.video video {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
}

/* --- подробный план оплаты: связанная последовательность.
       На телефоне — вертикально, на компьютере — в одну линию. --- */

.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 26px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.plan__step {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 0 14px 54px;
  counter-increment: step;
}

/* линия между этапами */
.plan__step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}

.plan__step:first-child::before {
  top: 50%;
}

.plan__step:last-child::before {
  bottom: 50%;
}

/* номер этапа */
.plan__step::after {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 800;
}

.plan__share {
  color: var(--green);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan__when {
  font-weight: 600;
  line-height: 1.35;
}

.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0 0 18px;
  padding: 8px 22px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
}

.facts__item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.facts__item:last-child {
  border-bottom: 0;
}

.facts dt {
  color: #c9d6cf;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.facts dd {
  margin: 2px 0 0;
  color: var(--gold);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* --- вопросы --- */

.faq {
  margin: 6px 0 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 16px 28px 16px 0;
  color: var(--green);
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
}

.faq details p {
  max-width: 46em;
  margin: 0 0 16px;
}

/* --- итоговое описание, форма и контакт --- */

.summary {
  margin-bottom: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.summary__text {
  max-width: 46em;
  margin: 0;
  color: #fff;
  font-size: 1.12rem;
  line-height: 1.55;
}

.callback {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.callback__intro p {
  max-width: 28em;
  margin: 0;
}

.contact {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact p {
  margin: 0;
}

.contact__name {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.contact__role {
  color: #b9c9c0;
  font-size: 0.92rem;
}

.contact .contact__phone {
  margin: 10px 0 16px;
  font-size: 1.08rem;
}

.contact__phone a {
  color: #fff;
  font-weight: 700;
}

.callback__form {
  padding: 22px 20px;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
}

.callback__form a {
  color: var(--green);
}

.callback__form .btn--whatsapp,
.callback__form .btn--dark {
  color: #fff;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid #9fb0a7;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.phone {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.field__hint {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.field__error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.92rem;
  font-weight: 700;
}

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit {
  width: 100%;
}

.form__consent {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.form__status {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--error);
  border-radius: 10px;
  background: #fbeeeb;
  color: #5e1710;
}

.form__status p {
  margin: 0 0 12px;
}

.form__status p:last-child {
  margin-bottom: 0;
}

/* Карточка формы белая и стоит на зелёной полосе: заголовок внутри неё — зелёный, а не белый, как на полосе. */
.band--green .callback__form h3,
.form-success h3 {
  color: var(--green);
}

.form-success h3 {
  margin-bottom: 10px;
  font-size: 1.6rem;
  font-weight: 800;
}

.form-success__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

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

.site-footer {
  padding: 28px 0 calc(28px + var(--bar-height));
  background: var(--green-deep);
  color: #b9c9c0;
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0 0 10px;
}

.site-footer strong {
  color: #fff;
}

/* --- кнопки связи на телефоне: закреплены снизу, место под них зарезервировано в подвале --- */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(21, 61, 50, 0.12);
  transition: transform 0.2s ease, visibility 0.2s;
}

.mobile-bar .btn {
  min-height: 48px;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.mobile-bar.is-hidden,
.mobile-bar.is-typing {
  transform: translateY(110%);
  visibility: hidden;
}

@media (max-width: 899px) {
  :root {
    --bar-height: 72px;
  }
}

/* --- крупный просмотр изображений (для показа на Zoom) --- */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--green-deep);
  color: #fff;
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lightbox::backdrop {
  background: var(--green-deep);
}

.lightbox__bar {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
}

/* на телефоне подпись занимает свою строку, кнопки — под ней */
.lightbox__caption {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.3;
}

.lightbox__btn {
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lightbox__btn[hidden] {
  display: none;
}

.lightbox__stage {
  flex: 1 1 0;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  cursor: zoom-in;
}

.lightbox__stage.is-zoomed img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

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

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.cta-row .btn {
  flex: 1 1 250px;
  max-width: 380px;
}

.btn--outline.btn--strong {
  border-width: 2px;
}

.field__optional {
  margin-left: 6px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

/* --- от планшета --- */

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    max-width: none;
  }

  .hero__image {
    aspect-ratio: 16 / 8;
  }

  .theses,
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phone {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .lightbox__caption {
    flex: 1 1 0;
  }

  /* Планшет: две колонки, чертежи в одинаковых рамках. Изображение вписано в рамку целиком
     и не влияет на ширину колонки. */
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .plans--1 {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-card .zoom {
    position: relative;
    height: 0;
    padding-top: 80%;
  }

  .plan-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: scale-down;
  }

  .plans--1 .plan-card .zoom {
    position: static;
    height: auto;
    padding-top: 0;
  }

  .plans--1 .plan-card img {
    position: static;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 6px 26px;
  }

  .facts__item {
    padding: 18px 20px 18px 0;
    border-bottom: 0;
  }
}

/* --- компьютер --- */

@media (min-width: 900px) {
  :root {
    --gutter: 32px;
  }

  body {
    font-size: 18px;
  }

  html {
    scroll-padding-top: 84px;
  }

  .section,
  .band {
    padding: 84px 0;
  }

  .site-header__inner {
    flex-wrap: nowrap;
    min-height: 68px;
  }

  .site-nav {
    order: 0;
    flex: 0 1 auto;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .site-header .btn {
    display: inline-flex;
    flex: none;
  }

  .mobile-bar {
    display: none;
  }

  /* первый экран: текст на зелёной панели слева, рендер справа без затемнения */
  .hero {
    display: flex;
    align-items: center;
    min-height: min(84svh, 740px);
  }

  .hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 43%;
  }

  .hero__image {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-position: 46% center;
  }

  .hero__caption {
    right: 16px;
    bottom: 16px;
    font-size: 0.8rem;
  }

  .hero__content {
    position: relative;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero__text {
    width: 41%;
    padding-right: 24px;
  }

  .hero__title {
    font-size: clamp(2.6rem, 4.4vw, 3.7rem);
  }

  .hero__actions {
    flex-direction: column;
    max-width: 360px;
  }

  .media-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 52px;
  }

  .media-row--reverse {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .media-row + .media-row {
    margin-top: 64px;
  }

  .brief {
    padding: 56px 0;
  }

  .brief__inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 56px;
    align-items: center;
  }

  .brief__text h2 {
    margin-bottom: 12px;
  }

  /* три этапа в одну линию */
  .brief__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .brief__step {
    display: block;
    padding: 30px 0 0;
  }

  .brief__step::before {
    left: 0;
    right: -28px;
    top: 5px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .brief__step:first-child::before {
    top: 5px;
  }

  .brief__step:last-child::before {
    right: 0;
    bottom: auto;
  }

  .brief__step::after {
    top: 0;
    margin-top: 0;
  }

  .brief__share {
    display: block;
    margin-bottom: 8px;
    font-size: 3.1rem;
  }

  .theses {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin: 34px 0 30px;
  }

  .more {
    max-width: 900px;
  }

  .district {
    grid-template-columns: minmax(0, 760px) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }

  .district__text h3 {
    margin-top: 6px;
  }

  .district .more {
    max-width: none;
  }

  .features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-top: 52px;
  }

  .wide-shot {
    margin-top: 52px;
  }

  .wide-shot img {
    aspect-ratio: 21 / 9;
    object-fit: cover;
    object-position: center 62%;
  }

  .specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plans--1 {
    grid-template-columns: minmax(0, 1fr);
  }

  .plans--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plans--1 .plan-card {
    max-width: 940px;
  }

  .plans-tab {
    padding: 8px 20px;
  }

  .gallery__arrow {
    width: 52px;
    height: 52px;
    margin-top: -26px;
    font-size: 1.4rem;
  }

  .gallery__arrow--prev {
    left: 16px;
  }

  .gallery__arrow--next {
    right: 16px;
  }

  .gallery__thumbs {
    gap: 12px;
  }

  .gallery__thumb {
    width: 150px;
  }

  /* пять платежей в одну линию */
  .plan {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    margin: 34px 0 36px;
  }

  .plan__step {
    display: block;
    padding: 52px 0 0;
  }

  .plan__step::before {
    left: 0;
    right: -24px;
    top: 17px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .plan__step:first-child::before {
    top: 17px;
  }

  .plan__step:last-child::before {
    right: 0;
    bottom: auto;
  }

  .plan__step::after {
    top: 0;
    margin-top: 0;
  }

  .plan__share {
    display: block;
    margin-bottom: 8px;
    font-size: 2.5rem;
  }

  .faq {
    max-width: 860px;
  }

  .summary__text {
    font-size: 1.25rem;
  }

  .callback {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "intro form" "contact form";
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 64px;
    row-gap: 26px;
    align-items: start;
  }

  .callback__intro {
    grid-area: intro;
  }

  .callback__form {
    grid-area: form;
    padding: 30px 30px;
  }

  .contact {
    grid-area: contact;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .mobile-bar {
    transition: none;
  }
}
