/* =========================================================================
   Башат — лендинг. Чистый CSS без сборки.
   Палитра и шрифты — общие с приложением (ТЗ v1.0, раздел 7):
   тёплая «бумажная» гамма, акцент — терракота. Без градиентов, свечений и узоров.
   ========================================================================= */

/* Метрики запасных шрифтов — меньше скачков вёрстки, пока грузятся Google Fonts */
@font-face {
  font-family: "EB Garamond Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 92%;
  ascent-override: 98%;
  descent-override: 30%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial");
  size-adjust: 103%;
  ascent-override: 103%;
  descent-override: 29%;
  line-gap-override: 0%;
}

/* Токены светлой темы (раздел 7) */
:root {
  color-scheme: light;
  --bg: #F4F1EA;
  --surface: #FAF8F3;
  --surface-2: #ECE7DD;
  --border: #E2DBCE;
  --text: #22201C;
  --text-2: #6B655C;
  --text-3: #776F64;
  --accent: #AD4E2B;
  --accent-soft: #F1E0D6;
  --ok: #4F6E48;
  --warn: #8A6219;
  --bad: #9E3B2B;

  --font-head: "EB Garamond", "EB Garamond Fallback", Georgia, serif;
  --font-body: "Manrope", "Manrope Fallback", Arial, sans-serif;

  --radius-chip: 999px;
  --radius-btn: 12px;
  --radius: 16px;
  --radius-input: 24px;
  /* Единственная тень — у всплывающих окон */
  --shadow-pop: 0 8px 24px rgba(34, 32, 28, .08);

  --header-h: 72px;
  --gutter: 16px;
  --container: 1240px;
  --section-y: clamp(64px, 8vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* Тёмная тема — по системной настройке */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1D1C1A;
    --surface: #262523;
    --surface-2: #302E2B;
    --border: #3A3835;
    --text: #ECE7DE;
    --text-2: #A9A296;
    --text-3: #958E83;
    --accent: #D97A55;
    --accent-soft: #3A2A22;
    --ok: #8FAE84;
    --warn: #D3A552;
    --bad: #DE7864;
  }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
b, strong { font-weight: 600; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -.005em;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  display: inline-block;
  vertical-align: -.22em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--surface);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--surface); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Типографика секций ---------- */
.section { padding-block: var(--section-y); }
.section--soft { background: var(--surface); border-block: 1px solid var(--border); }
.section--alt { background: var(--surface-2); }

.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}
.section__title {
  font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.75rem);
  font-weight: 500;
  color: var(--text);
}
.section__lead {
  margin: 1rem 0 0;
  max-width: 62ch;
  font-size: clamp(15px, .9rem + .2vw, 17px);
  color: var(--text-2);
}
.section__note { margin: .75rem 0 0; font-size: 13px; color: var(--text-3); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  flex: none;
  background: var(--border);
}

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist .i {
  width: 1.5rem; height: 1.5rem;
  padding: .25rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  stroke-width: 2;
  margin-top: .05rem;
}

.badge {
  display: inline-block;
  padding: .12rem .55rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .02em;
  vertical-align: middle;
}
.badge--accent { background: var(--accent-soft); color: var(--accent); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn .i { width: 1.15em; height: 1.15em; }

/* Главная — заливка accent, текст surface; вторичные — рамка 1 px */
.btn--primary { background: var(--accent); color: var(--surface); }
/* Наведение: кнопка остаётся акцентной, слегка приглушается */
.btn--primary:hover { background: var(--accent); color: var(--surface); opacity: .88; }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--text-3); }
.btn--secondary:hover { border-color: var(--text); color: var(--text); }
.btn--ghost,
.btn--outline-light { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover,
.btn--outline-light:hover { border-color: var(--text-3); color: var(--text); }

.btn--lg { min-height: 56px; padding-inline: 24px; font-size: 16px; }
.btn--sm { min-height: 48px; padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-scrolled { border-color: var(--border); }
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex: none;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { color: var(--text); }
.logo__mark { width: 30px; height: 28px; fill: var(--accent); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__word {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .16em;
}
.logo__sub {
  margin-top: .32rem;
  font-size: 11px;
  letter-spacing: .07em;
  color: var(--text-3);
}

.site-nav__list { list-style: none; padding: 0; }
.site-nav__list a {
  position: relative;
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
}
.site-nav__list a:hover { color: var(--text); }
.site-nav__list a[aria-current="true"] { color: var(--text); font-weight: 600; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-btn);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone .i { width: 20px; height: 20px; color: var(--text-2); }
.header-phone__num { display: none; }

.burger {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
}
.burger .i { width: 24px; height: 24px; }
.burger__close { display: none !important; }
.burger[aria-expanded="true"] .burger__open { display: none !important; }
.burger[aria-expanded="true"] .burger__close { display: inline-block !important; }

.header-cta { display: none; }
@media (min-width: 480px) { .header-cta { display: inline-flex; } }

/* Мобильное меню (до 1200px) */
@media (max-width: 1199.98px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px var(--gutter) 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-pop);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s linear .2s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s, transform .2s, visibility 0s;
  }
  .site-nav__list { display: grid; }
  .site-nav__list a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 17px;
  }
  .site-nav__list a[aria-current="true"]::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 3px;
    height: 20px;
    margin-top: -10px;
    border-radius: 2px;
    background: var(--accent);
  }
  .site-nav__extra { display: grid; gap: 12px; padding-top: 20px; }
  .site-nav__phone {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 17px;
    color: var(--text);
    text-decoration: none;
    min-height: 48px;
  }
  .site-nav__phone .i { color: var(--text-2); }
  .nav-open, .nav-open body { overflow: hidden; }

  /* Без JS: меню — горизонтальная лента под шапкой */
  .no-js .burger { display: none; }
  .no-js .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 12px; row-gap: 4px; }
  .no-js .site-nav {
    position: static;
    order: 3;
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
  }
  .no-js .site-nav__list { display: flex; gap: 16px; overflow-x: auto; }
  .no-js .site-nav__list a { border: 0; padding: 8px 0; font-size: .95rem; white-space: nowrap; }
  .no-js .site-nav__extra { display: none; }
}

/* Десктопное меню */
@media (min-width: 1200px) {
  .burger { display: none; }
  .site-nav { margin-left: auto; }
  .site-nav__list { display: flex; gap: 2px; }
  .site-nav__list a { padding: .5rem .62rem; font-size: .93rem; border-radius: 8px; }
  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: .62rem;
    right: .62rem;
    bottom: .2rem;
    height: 1px;
    border-radius: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .site-nav__list a:hover::after,
  .site-nav__list a[aria-current="true"]::after { transform: scaleX(1); }
  .site-nav__extra { display: none; }
  .site-header__actions { margin-left: 8px; }
}
@media (min-width: 1360px) {
  .header-phone { padding-inline: .5rem; }
  .header-phone__num { display: inline; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--text);
  padding-block: clamp(32px, 6vw, 80px) clamp(40px, 5vw, 64px);
  background: var(--bg);
}
.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}
.hero__title {
  font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4rem);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.05;
}
.hero__lead {
  margin: 1.25rem 0 0;
  max-width: 44ch;
  font-size: clamp(15px, .9rem + .3vw, 18px);
  color: var(--text-2);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
@media (max-width: 479.98px) { .hero__ctas .btn { width: 100%; } }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 640px) { .hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero__stat { padding: 16px; background: var(--surface); }
.hero__stat dt { font-size: 13px; font-weight: 500; color: var(--text-3); }
.hero__stat dd {
  margin: 4px 0 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(22px, 1.2rem + .5vw, 28px);
  line-height: 1.1;
  white-space: nowrap;
  color: var(--text);
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}
@media (min-width: 600px) { .hero__visual { max-width: 440px; } }
@media (min-width: 960px) { .hero__visual { max-width: 520px; } }
.hero__img {
  width: 100%;
  aspect-ratio: 670 / 1085;
  object-fit: cover;
  max-height: min(82vh, 760px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.hero__visual { max-height: 82vh; }
.hero__tag {
  position: absolute;
  left: 0;
  bottom: 12%;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.hero__tag-num { font-family: var(--font-head); font-weight: 500; font-size: 32px; line-height: 1; color: var(--accent); }
.hero__tag-text { font-size: 13px; font-weight: 500; line-height: 1.2; color: var(--text-2); }

.trust {
  list-style: none;
  padding: 0;
  margin: clamp(32px, 4vw, 48px) 0 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.4;
}
.trust__big {
  flex: none;
  width: 40px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  color: var(--text);
}
.trust__icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  color: var(--text-2);
  stroke-width: 1.5;
}

/* ---------- О компании ---------- */
.about { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.about__facts {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: clamp(18px, 2.5vw, 26px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.fact__num {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(40px, 2rem + 2vw, 56px);
  line-height: 1;
  color: var(--text);
}
.fact__label { font-size: 15px; color: var(--text-2); line-height: 1.4; }
.fact--lead .fact__num { color: var(--accent); }
.fact--accent { background: var(--accent-soft); border-color: var(--accent-soft); }

/* ---------- Объекты ---------- */
.objects { display: grid; gap: 24px; }
@media (min-width: 880px) { .objects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.obj-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.obj-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.obj-card__mark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 24px;
  color: var(--text);
}
.obj-card__mark .i {
  width: 56px;
  height: 56px;
  margin-bottom: auto;
  margin-left: auto;
  color: var(--text-2);
}
.obj-card__mark strong { font-family: var(--font-head); font-weight: 500; font-size: 28px; line-height: 1.15; }
.obj-card__mark span { color: var(--text-2); font-size: 15px; }
.obj-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* На фото «Sunrise» внизу слева служебная плашка — кадрируем по верхней части */
.obj-card__media--sunrise img { object-position: 50% 30%; }
.status {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-chip);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  color: var(--text);
}
/* Цвет статуса — только точка 8 px */
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--text-3);
}
.status--finishing::before { background: var(--accent); }
.status--completed::before { background: var(--ok); }
.status--construction::before { background: var(--warn); }

.obj-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(16px, 3vw, 24px);
}
.obj-card__title { font-size: clamp(24px, 1.3rem + .5vw, 30px); font-weight: 500; color: var(--text); }
.obj-card__addr { display: flex; gap: 8px; margin: 0; font-size: 15px; color: var(--text-2); }
.obj-card__addr .i { color: var(--text-2); margin-top: .1rem; }
.obj-card__desc { margin: 0; }
.obj-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
@media (max-width: 419.98px) { .obj-card__actions .btn { flex: 1 1 100%; } }

.meter__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-3);
}
.meter__head strong { font-weight: 600; color: var(--text); }
.meter__track { height: 8px; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.meter__fill {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 1%);
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
@media (min-width: 420px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts dt { font-size: 13px; font-weight: 500; color: var(--text-3); }
.facts dd { margin: 0; font-weight: 600; font-size: 15px; color: var(--text); }

/* ---------- Комфорт-класс ---------- */
.comfort {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: comfort;
}
@media (min-width: 600px) { .comfort { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .comfort { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.comfort__item {
  position: relative;
  counter-increment: comfort;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.comfort__item:hover { border-color: var(--text-3); }
.comfort__item::after {
  content: counter(comfort, decimal-leading-zero);
  content: counter(comfort, decimal-leading-zero) / "";
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 24px;
  color: var(--text-3);
}
.comfort__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: var(--radius-btn);
  background: var(--surface-2);
  color: var(--text-2);
}
.comfort__icon .i { width: 24px; height: 24px; stroke-width: 1.5; }
.comfort__title { margin-bottom: 8px; font-family: var(--font-body); font-size: 17px; font-weight: 600; color: var(--text); }
.comfort__item p { margin: 0; color: var(--text-2); }

/* ---------- Сегменты, табы, чипы ---------- */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  background: var(--surface-2);
  min-width: 0;
}
.segmented__opt { position: relative; }
.segmented__opt input,
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.segmented__opt span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-chip);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.segmented__opt span:hover { color: var(--text); }
.segmented__opt input:checked + span { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.segmented__opt input:focus-visible + span,
.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px 2px 6px;
}
.tab {
  flex: none;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.tab:hover { border-color: var(--text-3); color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
.tab[aria-disabled="true"] { color: var(--text-3); border-style: dashed; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  background: var(--surface);
  color: var(--text-2);
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip span:hover { border-color: var(--text-3); color: var(--text); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }

/* ---------- Планировки ---------- */
.layout-panel {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(16px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
@media (min-width: 900px) {
  .layout-panel { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
}
.layout-panel:focus-visible { outline-offset: 4px; }
.plan-box {
  position: relative;
  aspect-ratio: 10 / 7;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--bg);
  border: 1px solid var(--border);
}
.plan-box > svg { width: 100%; height: 100%; }
.plan-note { margin: 8px 0 0; font-size: 13px; color: var(--text-3); }

.layout-panel__info { min-height: 320px; }
.lp__project { margin: 0 0 4px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.lp__title { font-size: clamp(24px, 1.3rem + .6vw, 32px); font-weight: 500; color: var(--text); }
.expl { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.expl th, .expl td { padding: 8px 4px; border-bottom: 1px solid var(--border); text-align: left; }
.expl thead th { font-size: 13px; font-weight: 500; color: var(--text-3); }
.expl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.expl tbody tr { transition: background-color .15s; }
.expl tbody tr.is-hl { background: var(--accent-soft); }
.expl tfoot th, .expl tfoot td { font-weight: 600; color: var(--text); border-bottom: 0; }
.expl__n {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}
.lp__price {
  display: grid;
  gap: .15rem;
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.lp__price-label { font-size: 13px; font-weight: 500; color: var(--text-3); }
.lp__price strong { font-family: var(--font-head); font-size: 32px; font-weight: 500; line-height: 1.1; color: var(--text); }
.lp__price-note { font-size: 13px; color: var(--text-3); }
.lp__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lp__empty { padding: 16px 0; color: var(--text-2); }

/* SVG-план (генерируется в app.js) */
.plan { width: 100%; height: 100%; font-family: var(--font-body); }
.plan-room { stroke: var(--text-3); stroke-width: 1.25px; transition: fill .2s, stroke .2s; }
.plan-room--living { fill: var(--surface); }
.plan-room--hall { fill: var(--bg); }
.plan-room--wet { fill: var(--surface-2); }
.plan-room--outdoor { fill: url(#plan-hatch); }
.plan-room.is-hl { fill: var(--accent-soft); stroke: var(--accent); }
.plan-wall { fill: none; stroke: var(--text); stroke-width: 4px; }
.plan-window { fill: var(--surface); stroke: var(--text); stroke-width: 1px; }
.plan-window-line { stroke: var(--text-3); stroke-width: 1.5px; }
.plan-num circle { fill: var(--text); }
.plan-num text { fill: var(--surface); font-weight: 600; }
.plan-num, .plan-name, .plan-area, .plan-wall, .plan-window, .plan-window-line { pointer-events: none; }
.plan-name { fill: var(--text); font-weight: 600; }
.plan-area { fill: var(--text-2); }
/* Штриховка балконов (pattern в index.html) */
.plan-hatch__bg { fill: var(--surface); }
.plan-hatch__line { stroke: var(--border); }
.plan--mini .plan-room { stroke-width: .75px; }
.plan--mini .plan-wall { stroke-width: 1.75px; }

/* ---------- Подбор квартиры ---------- */
.picker {
  display: grid;
  gap: 18px 24px;
  align-items: end;
  margin-bottom: 16px;
  padding: clamp(16px, 2.5vw, 24px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
@media (min-width: 720px) { .picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .picker { grid-template-columns: auto minmax(180px, 220px) minmax(0, 1fr) auto; } }
.picker__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.picker__label {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
}
.picker__label output { color: var(--text); font-weight: 600; }
.picker__reset { justify-self: start; }
.picker__summary { min-height: 1.6em; margin: 0 0 16px; color: var(--text-2); }
.picker__summary strong { color: var(--text); }

.select { position: relative; }
.select select {
  width: 100%;
  min-height: 48px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.select .i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  right: 16px;
  pointer-events: none;
  color: var(--text-2);
}

/* Ползунки */
.range {
  --fill: 100%;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  /* два сплошных цвета с жёсткой границей — заполненная часть и остаток */
  background: linear-gradient(90deg, var(--accent) var(--fill), var(--surface-2) var(--fill));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}
.range::-moz-range-track { height: 8px; border-radius: 99px; background: var(--surface-2); }
.range::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--accent); }
.range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}
.range:focus-visible { outline-offset: 2px; }

.apts {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) { .apts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .apts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.apt-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 288px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.apt-card:not(.is-skeleton):hover { border-color: var(--text-3); }
/* Скелетон — ровная плашка surface-2 (без пульсации: анимации по ТЗ не длиннее 300 мс) */
.apt-card.is-skeleton {
  border-color: transparent;
  background: var(--surface-2);
}
.apt-card__top { display: flex; justify-content: space-between; gap: 12px; }
.apt-card__project { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--text-3); }
.apt-card__title { font-family: var(--font-body); font-size: 17px; font-weight: 600; color: var(--text); }
.apt-card__area { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.apt-card__thumb {
  flex: none;
  width: 92px;
  height: 64px;
  padding: 4px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.apt-card__thumb svg { width: 100%; height: 100%; }
.apt-card__meta {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.apt-card__meta li {
  padding: 4px 12px;
  border-radius: var(--radius-chip);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.apt-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; }
.apt-card__price strong { font-family: var(--font-head); font-size: 28px; font-weight: 500; line-height: 1.1; color: var(--text); }
.apt-card__price span { font-size: 13px; color: var(--text-3); }
.apt-card__actions { display: flex; gap: 8px; }
.apt-card__actions .btn { flex: 1; min-height: 48px; padding-inline: 16px; }
/* В сетке карточек акцент не повторяем: «Хочу эту» — вторичная с акцентным текстом */
.apt-card__actions .btn--primary { background: transparent; color: var(--accent); border-color: var(--accent); }
.apt-card__actions .btn--primary:hover { background: var(--accent-soft); color: var(--accent); }

.apt-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 290px;
  padding: 32px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.apt-empty p { max-width: 52ch; margin: 0; color: var(--text-2); }
.apt-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ---------- Калькулятор рассрочки ---------- */
.calc { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 960px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; } }
.calc__card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(16px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.field__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field__label { font-weight: 600; color: var(--text); }
.field__num {
  width: 9.5rem;
  min-height: 44px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  text-align: right;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
}
.field__num::-webkit-inner-spin-button,
.field__num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field__num { -moz-appearance: textfield; appearance: textfield; }
.field__hint { margin: 8px 0 0; font-size: 13px; color: var(--warn); }
.field__out { font-weight: 600; font-size: 15px; color: var(--text); white-space: nowrap; }

.calc__result {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--text);
}
@container (min-width: 600px) { .calc__result { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; } }
.calc__main-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); }
.calc__main-value {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(32px, 1.8rem + 1vw, 40px);
  line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.calc__main-value::after { content: " / мес."; font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--text-2); }
.calc__rows { display: grid; gap: 8px; margin: 0; }
.calc__rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.calc__rows dt { color: var(--text-2); }
.calc__rows dd { margin: 0; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.disclaimer { margin: 0; font-size: 13px; color: var(--text-3); }

/* ---------- Ход строительства ---------- */
.build { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 1000px) { .build { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }
.ring {
  position: relative;
  width: min(220px, 62vw);
  aspect-ratio: 1;
  margin: 28px 0;
}
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--border); stroke-width: 8; }
.ring__bar {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: var(--p, 0) 100;
  transition: stroke-dasharray .3s var(--ease);
}
.ring__value {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.ring__value strong { font-family: var(--font-head); font-size: 48px; font-weight: 500; line-height: 1; color: var(--text); }
.ring__value span { font-size: 13px; font-weight: 500; color: var(--text-3); }
.build__note { max-width: 48ch; color: var(--text-2); }
.build__note strong { color: var(--text); }

.stages { list-style: none; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stage {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.stage__head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; line-height: 1.35; }
.stage__pct { flex: none; font-weight: 600; color: var(--text-2); }
.stage__bar { height: 6px; margin: 8px 0; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.stage__bar span {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 1%);
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.stage.is-done .stage__bar span { background: var(--ok); }
.stage__date { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-3); }
/* Статус этапа — точка 8 px */
.stage__date::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.stage.is-done .stage__date::before { background: var(--ok); }

/* ---------- Вакансии ---------- */
.vacancies { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 960px) { .vacancies { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }
.vacancy-list { display: grid; gap: 12px; }
.vacancy {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.vacancy[open] { border-color: var(--text-3); }
.vacancy summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
  list-style: none;
  cursor: pointer;
}
.vacancy summary::-webkit-details-marker { display: none; }
.vacancy__title { font-family: var(--font-body); font-weight: 600; font-size: 17px; color: var(--text); }
.vacancy__meta { grid-column: 1; font-size: 13px; color: var(--text-3); }
.vacancy__chev {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  color: var(--text-2);
  transition: transform .25s var(--ease);
}
.vacancy[open] .vacancy__chev { transform: rotate(180deg); }
.vacancy__body { padding: 0 16px 16px; color: var(--text-2); }
.vacancy__body ul { margin: 0 0 16px; padding-left: 20px; }
.vacancy__body li::marker { color: var(--text-3); }

/* ---------- Контакты и форма ---------- */
.contacts { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 960px) { .contacts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.contact-list { list-style: none; padding: 0; display: grid; gap: 16px; margin: 32px 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .i { width: 24px; height: 24px; margin-top: 2px; color: var(--text-2); }
.contact-list__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contact-list a { color: var(--text); font-weight: 600; font-size: 17px; text-decoration: none; }
.contact-list a:hover { color: var(--accent); text-decoration: underline; }
.contacts__links { display: flex; flex-wrap: wrap; gap: 8px; }
/* Главная кнопка блока — «Отправить заявку» в форме; WhatsApp здесь вторичный */
.contacts__links .btn--primary { background: transparent; color: var(--accent); border-color: var(--accent); }
.contacts__links .btn--primary:hover { background: var(--accent-soft); color: var(--accent); }

.lead {
  padding: clamp(16px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.lead__title { font-size: 28px; font-weight: 500; color: var(--text); }
.lead__desc { margin: 8px 0 24px; color: var(--text-2); }
.lead__pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding: 8px 8px 8px 16px;
  border-radius: var(--radius-btn);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft);
  font-size: 15px;
  color: var(--text);
}
.lead__pick[hidden] { display: none; }
.lead__pick-clear {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.lead__pick-clear:hover { color: var(--text); }

.input { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.input label { font-weight: 600; font-size: 13px; color: var(--text); }
.input__opt { font-weight: 400; color: var(--text-3); }
.input input,
.input textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--bg);
  color: var(--text);
  transition: border-color .2s;
}
.input textarea { min-height: 96px; resize: vertical; }
.input input::placeholder,
.input textarea::placeholder { color: var(--text-3); }
.input input:focus,
.input textarea:focus { border-color: var(--accent); outline: none; }
.input input:focus-visible,
.input textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.input [aria-invalid="true"] { border-color: var(--bad); }
.input__error { margin: 0; font-size: 13px; color: var(--bad); }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.lead__consent { margin: 8px 0 0; font-size: 13px; color: var(--text-3); }
/* Ошибка отправки — полоска 3 px слева, без заливки */
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--bad);
  color: var(--text);
  font-size: 15px;
}
.form-status a { color: inherit; font-weight: 600; }
.form-status .btn { margin-top: 10px; }

.lead__success { padding: 24px 8px; text-align: center; }
.lead__success:focus { outline: none; }
.lead__success p { margin: 8px auto 24px; max-width: 40ch; color: var(--text-2); }
.lead__success-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--ok);
}
.lead__success-icon .i { width: 32px; height: 32px; stroke-width: 1.5; }

/* ---------- Подвал ---------- */
.site-footer { padding: 56px 0 24px; background: var(--bg); border-top: 1px solid var(--border); color: var(--text-2); font-size: 15px; }
.site-footer__grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); } }
.site-footer__brand p { margin: 1rem 0 0; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__nav a,
.site-footer__contacts a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.site-footer .i { color: var(--text-2); }
.site-footer__contacts { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.site-footer__phone { font-family: var(--font-head); font-weight: 500; font-size: 28px; color: var(--text) !important; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  position: relative;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  color: var(--text-3);
}
.site-footer__bottom p { margin: 0; }
/* Линия — по ширине колонки контента, без полей контейнера */
.site-footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--border);
}

/* ---------- Мобильная панель связи ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.mobile-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  border-radius: var(--radius-btn);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
}
.mobile-bar__btn:hover { color: var(--text); }
/* Главная кнопка на экране — в контенте; в панели связи акцент только рамкой и текстом */
.mobile-bar__btn--wa { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.mobile-bar__btn--wa:hover { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 767.98px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .nav-open .mobile-bar,
  body:has(.lead input:focus, .lead textarea:focus) .mobile-bar { display: none; }
}
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* ---------- Скелетоны ---------- */
.skeleton {
  border-radius: 8px;
  background: var(--surface-2);
}
.skeleton--fill { position: absolute; inset: 0; border-radius: inherit; }
.skeleton--title { height: 2rem; width: 70%; margin-bottom: 1.25rem; }
.skeleton--line { height: 1.1rem; margin-bottom: .9rem; }
.skeleton--line:nth-child(odd) { width: 85%; }

/* ---------- Без JS ---------- */
.no-js [data-js-only] { display: none !important; }

/* ---------- Появление при прокрутке (включает app.js) ---------- */
/* Появление: сдвиг 8 px и прозрачность, 250 мс */
.app-ready .reveal { transition: opacity .25s var(--ease), transform .25s var(--ease); }
.app-ready .reveal:not(.in-view) { opacity: 0; transform: translateY(8px); }
.app-ready .obj-card:not(.in-view) .meter__fill,
.app-ready .stages:not(.in-view) .stage__bar span { transform: scaleX(0); }
.app-ready .ring:not(.in-view) .ring__bar { stroke-dasharray: 0 100; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .app-ready .reveal:not(.in-view) { opacity: 1; transform: none; }
  .app-ready .obj-card:not(.in-view) .meter__fill,
  .app-ready .stages:not(.in-view) .stage__bar span { transform: none; }
  .app-ready .ring:not(.in-view) .ring__bar { stroke-dasharray: var(--p, 0) 100; }
}

@media print {
  .site-header, .mobile-bar, .picker, .lead { display: none !important; }
  .section--alt, .hero, .section--soft { background: transparent !important; }
}
