/* ============================================================
   FAMILY «stucco» — риверплейс.рф. Слой 3 поверх скина.
   Лейаут: фулбл-hero → кованая перемычка (факт-строка + tel) →
   бенто-паспорт → тёмный стейтмент → канонная коммерция →
   терраса тейков → фото-кладка → плита района → контакты.
   Плотные ритмы: секции 44–56px. Радиус-система: 0–2px («ковка»).
   ============================================================ */

/* ---------- hero ---------- */
.st-hero {
  position: relative;
  overflow: hidden;
  background: var(--st-iron);
  display: flex;
  flex-direction: column;
}
.st-hero-inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 24px;
}
.st-hero .st-h1 {
  color: var(--st-ivory);
  font-family: var(--st-font-display);
  font-size: clamp(38px, 6.2vw, 78px);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  padding: 0;
  background: none;
  width: 100%;
  max-width: 100%;
}
.st-h1-plate {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  padding: 10px 14px;
  background: rgba(43, 38, 32, 0.62);
  border-radius: 2px;
  line-height: 1.12;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.st-h1-name { display: block; }
.st-hero-lede {
  color: var(--st-ivory);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  max-width: 62ch;
  margin: 16px 0 0;
  padding: 12px 18px;
  background: rgba(43, 38, 32, 0.5);
  border-radius: 2px;
  width: fit-content;
  max-width: 100%;
}

/* шапка на hero: тёмная полупрозрачная до скролла */
header.header-white:not(.fixed):not(.active) {
  background: rgba(43, 38, 32, 0.78);
  border-bottom-color: rgba(246, 241, 231, 0.12);
}
header.header-white:not(.fixed) .header-brand {
  background: none;
  padding: 0;
  border-radius: 0;
}
header.header-white:not(.fixed) .header-brand a {
  display: inline-block;
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--st-ivory);
}
header.header-white:not(.fixed) .header-brand p {
  background: none;
  padding: 0;
  margin: 4px 0 0;
  color: var(--st-ivory);
}

/* ---------- кованая перемычка ---------- */
.st-band-forged {
  background: var(--st-iron);
  border-top: 1px solid rgba(246, 241, 231, .14);
}
.st-band-forged-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding-top: 22px;
  padding-bottom: 22px;
  flex-wrap: wrap;
}
.st-factline {
  color: var(--st-ivory);
  font-family: var(--st-font-display);
  font-size: clamp(17px, 1.9vw, 23px);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  margin: 0;
  align-self: center;
}
.st-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--st-ochre);
  color: var(--st-ivory);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  padding: 13px 22px;
  min-height: 44px;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease;
}
.st-tel:hover { background-color: var(--st-ochre-hover); color: var(--st-ivory); }

.st-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 10px 16px 14px;
  color: rgba(246, 241, 231, 0.88);
  text-decoration: none;
  border-top: 1px solid rgba(246, 241, 231, 0.12);
  transition: color .2s ease;
}
.st-scroll-hint:hover,
.st-scroll-hint:focus-visible {
  color: var(--st-ochre);
}
.st-scroll-hint__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.st-scroll-hint__icon {
  display: flex;
  line-height: 0;
  animation: st-scroll-hint-bounce 2.2s ease-in-out infinite;
}
@keyframes st-scroll-hint-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(5px); opacity: 1; }
}
.st-band-forged--hint-only .st-scroll-hint {
  border-top: none;
}

/* ---------- паспорт здания ---------- */
.st-passport { padding: 52px 0 48px; background: var(--st-ivory); }
.st-sec-title {
  font-size: clamp(26px, 3vw, 38px);
  color: var(--color-primary-text);
  margin: 0 0 28px;
}
.st-pass-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 10px;
  align-items: stretch;
}
.st-pass-feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.st-feat-tile {
  border: 1px solid var(--st-hairline);
  border-radius: 2px;
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--st-ivory);
}
.st-feat-tile:first-child { background: var(--st-sand); border-color: transparent; }
.st-feat-label {
  color: var(--st-muted);
  font-size: 13px;
  margin: 0 0 14px;
}
.st-feat-value {
  font-family: var(--st-font-display);
  font-size: clamp(26px, 2.8vw, 40px);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  color: var(--color-primary-text);
  margin: 0;
}
.st-feat-unit { font-size: .5em; font-family: var(--font-family); font-weight: 400; color: var(--st-muted); }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.st-chip {
  background: var(--st-sand);
  color: var(--color-primary-text);
  font-size: 14px;
  line-height: 1.35;
  padding: 9px 14px;
  border-radius: 2px;
}

/* ---------- тёмный стейтмент ---------- */
.st-statement { background: var(--st-iron); padding: 56px 0; }
.st-quote {
  color: var(--st-ivory);
  font-family: var(--st-font-display);
  font-size: clamp(18px, 2.3vw, 28px);
  line-height: 1.4;
  max-width: none;
  margin: 0;
  text-wrap: balance;
}
.st-jump {
  display: inline-block;
  margin-top: 26px;
  color: var(--st-ivory);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid var(--st-ochre);
  padding: 0 0 6px;
  min-height: 44px;
  transition: opacity .2s ease;
}
.st-jump:hover { opacity: .75; color: var(--st-ivory); }

/* ---------- терраса тейков ---------- */
.st-terrace { padding: 52px 0; background: var(--st-ivory); }
.st-terrace-grid { display: grid; gap: 10px; align-items: stretch; }
.st-terrace-n3 { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); }
.st-terrace-n2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.st-terrace-n1 { grid-template-columns: minmax(0, 1fr); }
.st-terrace-col {
  border: 1px solid var(--st-hairline);
  border-radius: 2px;
  padding: 24px 24px 26px;
}
.st-terrace-lead { background: var(--st-sand); border-color: transparent; }
.st-col-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin: 0 0 12px;
}
.st-col-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-primary-text);
  margin: 0;
}

/* ---------- фото-кладка ---------- */
.st-masonry { padding: 0; background: var(--st-ivory); display: grid; gap: 8px; }
.st-masonry-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- плита района ---------- */
.st-district { padding: 52px 0 56px; background: var(--st-ivory); }
.st-district-plate {
  background: var(--st-sand);
  border-left: 6px solid var(--st-iron);
  border-radius: 0;
  padding: 34px 38px 36px;
}
.st-district-text {
  font-family: var(--st-font-display);
  font-size: clamp(17px, 1.9vw, 24px);
  line-height: 1.45;
  color: var(--color-primary-text);
  max-width: none;
  margin: 0;
  text-wrap: balance;
}
.st-jump-dark {
  color: var(--color-primary-text);
  border-bottom-color: var(--st-ochre);
}
.st-jump-dark:hover { color: var(--color-primary-text); }

/* ---------- панорама 360° ---------- */
.st-panorama {
  padding: 52px 0 56px;
  background: var(--st-ivory);
}
.st-panorama-frame {
  overflow: hidden;
  border-radius: 2px;
  background: var(--st-sand);
}
.st-panorama-frame iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 400px;
  border: 0;
}

.st-hero-lede p {
  color: var(--st-ivory);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  margin: 0;
  max-width: 42em;
}
.st-hero-lede p + p {
  margin-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .st-tel, .st-jump { transition: none; }
  .st-scroll-hint__icon { animation: none; }
}

/* ---------- канонные секции: перекраска под скин ---------- */
.office-slider img { -o-object-fit: cover; object-fit: cover; }
.about-describtion { background-color: var(--color-grey-bg); }
.office, .about, .contact { background: var(--st-ivory); }
.office .title-color, .about .title-color, .contact .title-color { color: var(--color-primary-text); }

/* ---------- секция офисов: заголовок ---------- */
.office-heading {
  font-family: var(--st-font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 24px;
}

.office-heading .office-deal-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
}

.office-heading .office-deal-nav__sep,
.office-heading .office-deal-nav__suffix,
.office-heading .office-deal-nav a {
  display: inline;
  font: inherit;
}

.office-heading .office-deal-nav__sep {
  color: var(--st-muted);
}

.office-heading .js-office-btn {
  font-size: inherit;
  color: var(--st-muted);
  text-decoration: none;
}

.office-heading .js-office-btn.is-active {
  font-size: inherit;
  font-weight: 600;
  color: var(--color-primary-text);
}

.office-heading__phone {
  display: block;
  margin-top: 12px;
  font-family: var(--font-family);
  font-size: 22px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .office-heading .office-deal-nav {
    display: inline-flex !important;
  }

  .office-heading .office-deal-nav__sep,
  .office-heading .office-deal-nav__suffix {
    display: inline !important;
  }
}

/* плотные ритмы канона: ужать канонные mt-5/pt-5 сверх меры не трогаем,
   но секции семьи держат собственные 44–56px */

/* ---------- десктоп: первый экран = hero + band-forged = 100vh ---------- */
@media (min-width: 768px) {
  .st-first-screen {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .st-first-screen > .st-hero {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
  }
  .st-first-screen > .st-band-forged {
    flex: 0 0 auto;
  }
  .st-hero-inner {
    padding-bottom: 32px;
  }
}

/* ---------- мобайл: явный collapse каждого грида ---------- */
@media (max-width: 767px) {
  .st-first-screen {
    min-height: auto;
  }
  .st-hero {
    min-height: clamp(320px, 52dvh, 480px);
    height: auto;
    max-height: none;
  }
  .st-hero-inner {
    padding-bottom: 56px;
    max-width: 100%;
    overflow: hidden;
  }
  .st-hero .st-h1 {
    font-size: clamp(20px, 5.2vw, 30px);
    line-height: 1.15;
    width: 100%;
    max-width: 100%;
  }
  .st-h1-plate {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
    padding-left: 12px;
    padding-right: 12px;
  }
  .st-h1-name { display: block; }
  .st-hero-lede {
    font-size: 14px;
    margin-top: 12px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .st-band-forged-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 18px; padding-bottom: 20px; }
  .st-factline { font-size: 16px; }
  .st-tel { width: 100%; text-align: center; }
  .st-pass-grid { grid-template-columns: minmax(0, 1fr); }
  .st-pass-feat { grid-template-columns: 1fr 1fr; gap: 8px; }
  .st-feat-tile { padding: 14px 14px 12px; }
  .st-terrace-n3, .st-terrace-n2 { grid-template-columns: minmax(0, 1fr); }
  .st-masonry-pair { grid-template-columns: 1fr; }
  .st-passport, .st-terrace, .st-district, .st-panorama { padding-top: 40px; padding-bottom: 40px; }
  .st-statement { padding: 44px 0; }
}
