/* ============================================================
   COSMOS LP — визуальная концепция (прототип, этап 4)
   Все стили изолированы внутри #cosmos-lp, префикс cx-.
   Дизайн-система: графит / молочный / брендовый синий / дерево.
   Фирменный приём: «балочная сетка» — тонкие структурные линии
   фахверкового каркаса как система разделителей и рамок.
   ============================================================ */

#cosmos-lp {
  /* --- токены --- */
  /* графит с фирменным тёмно-синим подтоном (#000818 из логотипа) */
  --cx-ink: #0c0f16;
  --cx-graphite: #161a23;
  --cx-graphite-2: #222735;
  --cx-blue: #03329a;
  --cx-blue-live: #0a45d6;
  --cx-milk: #f4f2ed;
  --cx-paper: #fbfaf7;
  --cx-wood: #b4885b;
  --cx-wood-deep: #8c6a45;
  --cx-line: rgba(22, 24, 28, 0.14);
  --cx-line-dark: rgba(255, 255, 255, 0.16);
  --cx-text: #2b2e33;
  --cx-text-soft: #5c6068;
  --cx-text-inv: #f2f1ee;
  --cx-text-inv-soft: rgba(242, 241, 238, 0.64);
  --cx-radius: 14px;
  --cx-container: 1240px;
  --cx-display: "Prata", "Georgia", serif;
  --cx-ui: "Onest", "Inter", system-ui, sans-serif;
  --cx-body: "Onest", "Inter", system-ui, sans-serif;

  font-family: var(--cx-body);
  color: var(--cx-text);
  background: var(--cx-milk);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* scoped reset */
#cosmos-lp *,
#cosmos-lp *::before,
#cosmos-lp *::after { box-sizing: border-box; margin: 0; padding: 0; }
#cosmos-lp img { max-width: 100%; display: block; }
#cosmos-lp a { color: inherit; text-decoration: none; }
#cosmos-lp button { font: inherit; cursor: pointer; border: 0; background: none; }
#cosmos-lp ul { list-style: none; }

#cosmos-lp .cx-container {
  max-width: var(--cx-container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* --- типографика --- */
#cosmos-lp .cx-display {
  font-family: var(--cx-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
}
#cosmos-lp .cx-h2 {
  font-family: var(--cx-display);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.14;
}
#cosmos-lp .cx-h3 {
  font-family: var(--cx-display);
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}

/* «балка»-ярлык: подпись секции на структурной линии с засечкой-стойкой */
#cosmos-lp .cx-beam {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--cx-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cx-wood-deep);
  margin-bottom: 22px;
}
#cosmos-lp .cx-beam::before {
  content: "";
  width: 34px;
  height: 12px;
  border-bottom: 1px solid var(--cx-wood);
  border-left: 1px solid var(--cx-wood);
}
#cosmos-lp .cx-beam::after {
  content: "";
  flex: 0 0 60px;
  height: 12px;
  border-bottom: 1px solid var(--cx-line);
}
#cosmos-lp .cx-dark .cx-beam { color: var(--cx-wood); }
#cosmos-lp .cx-dark .cx-beam::after { border-color: var(--cx-line-dark); }

/* --- кнопки --- */
#cosmos-lp .cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 30px;
  border-radius: 10px;
  font-family: var(--cx-ui);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
#cosmos-lp .cx-btn:active { transform: translateY(1px); }
#cosmos-lp .cx-btn--primary { background: var(--cx-blue); color: #fff; }
#cosmos-lp .cx-btn--primary:hover { background: var(--cx-blue-live); }
#cosmos-lp .cx-btn--ghost {
  border: 1px solid var(--cx-line);
  color: var(--cx-ink);
  background: transparent;
}
#cosmos-lp .cx-btn--ghost:hover { border-color: var(--cx-ink); }
#cosmos-lp .cx-dark .cx-btn--ghost,
#cosmos-lp .cx-hero .cx-btn--ghost { border-color: rgba(255, 255, 255, 0.38); color: var(--cx-text-inv); }
#cosmos-lp .cx-dark .cx-btn--ghost:hover,
#cosmos-lp .cx-hero .cx-btn--ghost:hover { border-color: var(--cx-text-inv); }
#cosmos-lp .cx-btn--wood { background: var(--cx-wood); color: #fff; }
#cosmos-lp .cx-btn--wood:hover { background: var(--cx-wood-deep); }
#cosmos-lp .cx-btn:focus-visible,
#cosmos-lp a:focus-visible,
#cosmos-lp input:focus-visible,
#cosmos-lp select:focus-visible {
  outline: 2px solid var(--cx-blue-live);
  outline-offset: 2px;
}

/* ============ HEADER ============ */
#cosmos-lp .cx-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(8, 11, 20, 0.55), rgba(8, 11, 20, 0));
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
#cosmos-lp .cx-header.is-scrolled {
  background: rgba(12, 15, 22, 0.9);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--cx-line-dark);
}
#cosmos-lp .cx-header__mcall,
#cosmos-lp .cx-header__burger { display: none; }
#cosmos-lp .cx-header__in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}
#cosmos-lp .cx-logo { display: flex; align-items: center; flex: 0 0 auto; }
#cosmos-lp .cx-logo img { display: block; height: 46px; width: auto; }
#cosmos-lp .cx-nav {
  display: flex;
  gap: 22px;
  margin-inline: auto;
  font-size: 14.5px;
  color: var(--cx-text-inv-soft);
}
#cosmos-lp .cx-nav a:hover { color: var(--cx-text-inv); }
#cosmos-lp .cx-header__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
#cosmos-lp .cx-header__phone {
  font-family: var(--cx-ui);
  font-weight: 500;
  color: var(--cx-text-inv);
  font-size: 16px;
  white-space: nowrap;
}
#cosmos-lp .cx-header__call {
  font-size: 12px;
  color: var(--cx-text-inv-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
#cosmos-lp .cx-header__call:hover { color: var(--cx-text-inv); }
#cosmos-lp .cx-header .cx-btn { min-height: 40px; padding: 8px 18px; font-size: 14px; }

/* ============ HERO ============ */
#cosmos-lp .cx-hero {
  position: relative;
  background: var(--cx-ink);
  color: var(--cx-text-inv);
  overflow: hidden;
}
#cosmos-lp .cx-hero__media {
  position: absolute;
  inset: 0;
}
#cosmos-lp .cx-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 60%;
}
#cosmos-lp .cx-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 20, 0.92) 0%, rgba(15, 17, 20, 0.78) 34%, rgba(15, 17, 20, 0.18) 68%, rgba(15, 17, 20, 0.42) 100%),
    linear-gradient(0deg, rgba(15, 17, 20, 0.85) 0%, transparent 30%);
}
#cosmos-lp .cx-hero__in {
  position: relative;
  z-index: 2;
  min-height: min(84vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(84px, 9vh, 110px) clamp(40px, 5vh, 64px);
}
/* живая карточка каталога в hero (ротация проектов) */
#cosmos-lp .cx-hero__catcard {
  display: inline-flex;
  flex-direction: column;
  width: 280px;
  margin-top: 24px;
  background: rgba(251, 250, 247, 0.97);
  border-radius: 18px;
  padding: 8px;
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(0, 8, 24, 0.38);
  transition: transform 0.25s ease;
}
#cosmos-lp .cx-hero__catcard:hover { transform: translateY(-2px); }
#cosmos-lp .cx-hero__catcard-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cx-graphite-2);
}
#cosmos-lp .cx-hero__catcard-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}
#cosmos-lp .cx-hero__catcard-media img.is-on { opacity: 1; }
#cosmos-lp .cx-hero__catcard-cap {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 11px;
  border-radius: 10px;
  background: rgba(5, 8, 16, 0.58);
  color: #fff;
}
#cosmos-lp .cx-hero__catcard-cap b { font-family: var(--cx-ui); font-weight: 600; font-size: 12.5px; letter-spacing: 0.08em; }
#cosmos-lp .cx-hero__catcard-cap span { font-size: 11px; color: rgba(255, 255, 255, 0.82); }
#cosmos-lp .cx-hero__catcard-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 6px 4px;
  font-family: var(--cx-ui);
  font-weight: 600;
  font-size: 13px;
  color: var(--cx-text);
}
#cosmos-lp .cx-hero__catcard-label svg { width: 21px; height: 21px; flex: 0 0 auto; transition: transform 0.25s ease; }
#cosmos-lp .cx-hero__catcard:hover .cx-hero__catcard-label svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  #cosmos-lp .cx-hero__catcard-media img { transition: none; }
}
#cosmos-lp .cx-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--cx-ui);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 241, 238, 0.85);
  margin-bottom: 24px;
}
#cosmos-lp .cx-hero__eyebrow::before {
  content: "";
  width: 30px;
  height: 11px;
  border-bottom: 1px solid var(--cx-wood);
  border-left: 1px solid var(--cx-wood);
}
#cosmos-lp .cx-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--cx-ui);
  font-weight: 500;
  font-size: 15.5px;
  color: var(--cx-text);
  text-decoration: underline;
  text-decoration-color: rgba(180, 136, 91, 0.6);
  text-underline-offset: 5px;
  background: none;
  border: 0;
  cursor: pointer;
}
#cosmos-lp .cx-link:hover { text-decoration-color: var(--cx-wood); }
#cosmos-lp .cx-link--inv { color: rgba(242, 241, 238, 0.92); }
#cosmos-lp .cx-link--strong { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.55); }
#cosmos-lp .cx-link--strong:hover { text-decoration-color: #fff; }
#cosmos-lp .cx-link::after { content: "→"; font-size: 15px; transition: transform 0.2s ease; }
#cosmos-lp .cx-link:hover::after { transform: translateX(3px); }
#cosmos-lp .cx-hero h1 {
  font-family: var(--cx-display);
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  max-width: 15ch;
  margin-bottom: 18px;
}
#cosmos-lp .cx-hero__sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--cx-text-inv-soft);
  max-width: 46ch;
  margin-bottom: 14px;
}
#cosmos-lp .cx-hero__price {
  font-family: var(--cx-ui);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--cx-text-inv);
  margin-bottom: 30px;
}
#cosmos-lp .cx-hero__price em {
  font-style: normal;
  color: #d9b183;
  text-shadow: 0 1px 14px rgba(15, 17, 20, 0.7);
}
#cosmos-lp .cx-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}
#cosmos-lp .cx-hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  border-top: 1px solid var(--cx-line-dark);
  padding-top: 16px;
  max-width: 760px;
  font-size: 13.5px;
  color: var(--cx-text-inv-soft);
}
#cosmos-lp .cx-hero__proof b { font-family: var(--cx-display); font-weight: 500; color: var(--cx-text-inv); font-size: 14.5px; }
#cosmos-lp .cx-hero__proof span { color: var(--cx-wood); }

/* ============ СЕКЦИИ ============ */
#cosmos-lp .cx-section { padding-block: clamp(52px, 6.5vw, 96px); }
#cosmos-lp .cx-dark { background: var(--cx-graphite); color: var(--cx-text-inv); }
#cosmos-lp .cx-dark .cx-h2 { color: var(--cx-text-inv); }

#cosmos-lp .cx-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
#cosmos-lp .cx-section__head p { color: var(--cx-text-soft); max-width: 52ch; }
#cosmos-lp .cx-dark .cx-section__head p { color: var(--cx-text-inv-soft); }

/* --- сценарии --- */
#cosmos-lp .cx-scenarios {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
#cosmos-lp .cx-scenario {
  position: relative;
  background: var(--cx-paper);
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
#cosmos-lp .cx-scenario:hover { border-color: var(--cx-wood); transform: translateY(-3px); }
#cosmos-lp .cx-scenario b {
  font-family: var(--cx-display);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.25;
}
#cosmos-lp .cx-scenario span { font-size: 13.5px; color: var(--cx-text-soft); }
#cosmos-lp .cx-scenario::before {
  content: "";
  width: 22px;
  height: 14px;
  border-left: 1px solid var(--cx-wood);
  border-bottom: 1px solid var(--cx-wood);
}

/* ============ КАТАЛОГ ============ */
#cosmos-lp .cx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
#cosmos-lp .cx-chip {
  border: 1px solid var(--cx-line);
  border-radius: 99px;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--cx-text);
  background: transparent;
  transition: all 0.18s ease;
}
#cosmos-lp .cx-chip:hover { border-color: var(--cx-ink); }
#cosmos-lp .cx-chip.is-active {
  background: var(--cx-ink);
  color: var(--cx-milk);
  border-color: var(--cx-ink);
}
#cosmos-lp .cx-catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
/* Карточка v4: чистое фото сверху + светлая инфо-панель под фото (архитектуру ничего не закрывает) */
#cosmos-lp .cx-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cx-paper);
  border: 1px solid var(--cx-line);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
#cosmos-lp .cx-card__photo { position: relative; aspect-ratio: 4 / 2.9; overflow: hidden; background: var(--cx-graphite-2); }
#cosmos-lp .cx-card--feature { grid-column: span 2; }
#cosmos-lp .cx-card--feature .cx-card__photo { aspect-ratio: 4 / 2.1; }
#cosmos-lp .cx-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -18px rgba(6, 10, 24, 0.45);
}
#cosmos-lp .cx-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
#cosmos-lp .cx-card__photo .cx-card__bg { position: absolute; }
#cosmos-lp .cx-card:hover .cx-card__bg { transform: scale(1.04); }
#cosmos-lp .cx-card { cursor: pointer; }
#cosmos-lp .cx-card__scrim { display: none; }
#cosmos-lp .cx-card__info {
  position: relative;
  width: 100%;
  padding: 16px 20px 18px;
  color: var(--cx-text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
#cosmos-lp .cx-card__meta { font-size: 12.5px; color: rgba(242, 241, 238, 0.7); letter-spacing: 0.04em; }
#cosmos-lp .cx-card__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
#cosmos-lp .cx-btn--glass {
  background: rgba(251, 250, 247, 0.14);
  color: #fff;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
#cosmos-lp .cx-btn--glass:hover { background: rgba(251, 250, 247, 0.26); }
#cosmos-lp .cx-card__media .cx-ph,
#cosmos-lp .cx-project__media .cx-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: rgba(242, 241, 238, 0.75);
  font-family: var(--cx-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background:
    linear-gradient(160deg, #262a31 0%, #1b1e23 70%),
    none;
  border: 0;
}
#cosmos-lp .cx-ph i {
  width: 26px;
  height: 16px;
  border-left: 1px solid var(--cx-wood);
  border-bottom: 1px solid var(--cx-wood);
}
#cosmos-lp .cx-ph em {
  font-style: normal;
  font-family: var(--cx-body);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(242, 241, 238, 0.45);
}
#cosmos-lp .cx-card__tag {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  background: rgba(8, 11, 20, 0.7);
  backdrop-filter: blur(4px);
  color: var(--cx-text-inv);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 99px;
  letter-spacing: 0.06em;
}
#cosmos-lp .cx-card__name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--cx-ui);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
#cosmos-lp .cx-card__name span { font-size: 13.5px; color: var(--cx-text-soft); font-weight: 400; }
#cosmos-lp .cx-card__specs {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--cx-line);
  border-bottom: 1px solid var(--cx-line);
  padding-block: 10px;
}
#cosmos-lp .cx-card__specs li {
  flex: 1;
  font-size: 13px;
  color: var(--cx-text-soft);
  border-right: 1px solid var(--cx-line);
  padding-right: 12px;
  margin-right: 12px;
}
#cosmos-lp .cx-card__specs li:last-child { border: 0; margin: 0; padding: 0; }
#cosmos-lp .cx-card__specs b {
  display: block;
  font-family: var(--cx-display);
  font-size: 16.5px;
  font-weight: 500;
  color: var(--cx-text);
}
#cosmos-lp .cx-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
#cosmos-lp .cx-card__price b { font-family: var(--cx-ui); font-size: 16.5px; font-weight: 600; }
#cosmos-lp .cx-card__price small { color: var(--cx-text-soft); font-size: 12.5px; }
#cosmos-lp .cx-card__actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: auto; }
#cosmos-lp .cx-card__actions .cx-link { white-space: nowrap; color: var(--cx-blue); text-decoration-color: rgba(3, 50, 154, 0.35); font-size: 14px; min-height: 34px; }
#cosmos-lp .cx-card__actions .cx-link:hover { text-decoration-color: var(--cx-blue); }
#cosmos-lp .cx-card__actions .cx-link { min-height: 36px; font-size: 14.5px; }
/* карточка-приглашение (индивидуальный проект) */
#cosmos-lp .cx-card--invite {
  background: var(--cx-paper);
  border: 1px solid var(--cx-line);
  aspect-ratio: 4 / 4;
  align-items: center;
}
#cosmos-lp .cx-card--invite .cx-card__info { color: var(--cx-text); gap: 12px; padding: 26px; }
#cosmos-lp .cx-card--invite:hover { box-shadow: 0 18px 40px -20px rgba(6, 10, 24, 0.25); }
#cosmos-lp .cx-invite-beam { display: block; width: 26px; height: 16px; border-left: 1px solid var(--cx-wood); border-bottom: 1px solid var(--cx-wood); }
#cosmos-lp .cx-card__invite-text { font-size: 14.5px; color: var(--cx-text-soft); }
#cosmos-lp .cx-project__price b,
#cosmos-lp .cx-project__price small { color: var(--cx-text); }
#cosmos-lp .cx-project__price small { color: var(--cx-text-soft); }
#cosmos-lp .cx-catalog__foot {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius);
  background: var(--cx-paper);
  padding: 22px 26px;
}
#cosmos-lp .cx-catalog__foot p b { font-family: var(--cx-display); font-weight: 500; }
#cosmos-lp .cx-catalog__foot p small { display: block; color: var(--cx-text-soft); }

/* ============ КВИЗ ============ */
#cosmos-lp .cx-quiz { position: relative; overflow: hidden; }
#cosmos-lp .cx-quiz__media {
  position: absolute;
  inset: 0 0 0 52%;
}
#cosmos-lp .cx-quiz__media img { width: 100%; height: 100%; object-fit: cover; }
#cosmos-lp .cx-quiz__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cx-graphite) 0%, rgba(30, 33, 38, 0.4) 40%, rgba(30, 33, 38, 0.25) 100%);
}
#cosmos-lp .cx-quiz__panel {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
#cosmos-lp .cx-quiz__frame {
  background: rgba(22, 24, 28, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid var(--cx-line-dark);
  border-radius: var(--cx-radius);
  padding: clamp(24px, 3.4vw, 40px);
}
/* прогресс: собирающийся каркас */
#cosmos-lp .cx-quiz__progress {
  display: flex;
  gap: 6px;
  margin-bottom: 26px;
}
#cosmos-lp .cx-quiz__progress i {
  flex: 1;
  height: 4px;
  background: var(--cx-line-dark);
  border-radius: 2px;
  transition: background-color 0.3s ease;
}
#cosmos-lp .cx-quiz__progress i.is-done { background: var(--cx-wood); }
#cosmos-lp .cx-quiz__promise {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
#cosmos-lp .cx-quiz__promise li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--cx-text-inv-soft);
  border: 1px solid var(--cx-line-dark);
  border-radius: 99px;
  padding: 7px 14px;
}
#cosmos-lp .cx-quiz__promise li::before {
  content: "";
  width: 9px;
  height: 6px;
  border-left: 1px solid var(--cx-wood);
  border-bottom: 1px solid var(--cx-wood);
}
#cosmos-lp .cx-demo-note {
  font-size: 11px;
  color: var(--cx-text-soft);
  opacity: 0.65;
  border-top: 1px dashed var(--cx-line);
  padding-top: 8px;
}
#cosmos-lp .cx-quiz__q {
  font-family: var(--cx-display);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 500;
  margin-bottom: 8px;
}
#cosmos-lp .cx-quiz__hint { color: var(--cx-text-inv-soft); font-size: 14.5px; margin-bottom: 22px; }
#cosmos-lp .cx-quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#cosmos-lp .cx-quiz__opt {
  border: 1px solid var(--cx-line-dark);
  border-radius: 10px;
  padding: 16px 18px;
  text-align: left;
  color: var(--cx-text-inv);
  font-size: 15.5px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
#cosmos-lp .cx-quiz__opt:hover { border-color: var(--cx-wood); background: rgba(180, 136, 91, 0.1); }
#cosmos-lp .cx-quiz__opt.is-picked { border-color: var(--cx-wood); background: rgba(180, 136, 91, 0.18); }
#cosmos-lp .cx-quiz__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}
#cosmos-lp .cx-quiz__back { color: var(--cx-text-inv-soft); font-size: 14.5px; }
#cosmos-lp .cx-quiz__back:hover { color: var(--cx-text-inv); }
#cosmos-lp .cx-quiz__result-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--cx-text-inv-soft);
}
/* форма контактов квиза */
#cosmos-lp .cx-quiz__form { display: grid; gap: 12px; }
#cosmos-lp .cx-field input,
#cosmos-lp .cx-field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--cx-line-dark);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cx-text-inv);
  padding: 12px 16px;
  font: inherit;
  font-size: 16px;
}
#cosmos-lp .cx-field input::placeholder { color: rgba(242, 241, 238, 0.4); }
#cosmos-lp .cx-light-form .cx-field input,
#cosmos-lp .cx-light-form .cx-field select,
#cosmos-lp .cx-quickbar .cx-field input,
#cosmos-lp .cx-quickbar .cx-field select,
#cosmos-lp .cx-packform .cx-field input,
#cosmos-lp .cx-packform .cx-field select,
#cosmos-lp .cx-pdf .cx-field input,
#cosmos-lp .cx-exit .cx-field input {
  background: #fff;
  color: var(--cx-text);
  border-color: var(--cx-line);
}
#cosmos-lp .cx-light-form .cx-field input::placeholder,
#cosmos-lp .cx-quickbar .cx-field input::placeholder,
#cosmos-lp .cx-packform .cx-field input::placeholder,
#cosmos-lp .cx-pdf .cx-field input::placeholder,
#cosmos-lp .cx-exit .cx-field input::placeholder { color: #9aa0a8; }
#cosmos-lp .cx-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--cx-text-soft); /* по умолчанию — читаемый тёмный (светлые контексты) */
}
#cosmos-lp .cx-consent a { text-decoration: underline; text-underline-offset: 2px; color: inherit; }
#cosmos-lp .cx-dark .cx-consent,
#cosmos-lp .cx-promo .cx-consent,
#cosmos-lp .cx-hero .cx-consent,
#cosmos-lp .cx-final .cx-consent { color: var(--cx-text-inv-soft); }
#cosmos-lp .cx-consent input { margin-top: 3px; accent-color: var(--cx-blue-live); }
/* результат квиза */
#cosmos-lp .cx-quiz__matches { display: grid; gap: 10px; margin-block: 18px; }
#cosmos-lp .cx-quiz__match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--cx-line-dark);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
}
#cosmos-lp .cx-quiz__match b { font-family: var(--cx-display); font-weight: 500; letter-spacing: 0.03em; }
#cosmos-lp .cx-quiz__match span { color: var(--cx-text-inv-soft); font-size: 13.5px; }

/* ============ КОМПЛЕКТАЦИИ ============ */
#cosmos-lp .cx-packages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
#cosmos-lp .cx-package {
  background: var(--cx-paper);
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#cosmos-lp .cx-package.is-featured { border-color: var(--cx-blue); box-shadow: 0 14px 40px -20px rgba(3, 50, 154, 0.4); }
#cosmos-lp .cx-package__label {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cx-blue);
  font-weight: 600;
}
#cosmos-lp .cx-package h3 { font-family: var(--cx-display); font-size: 21px; font-weight: 500; }
#cosmos-lp .cx-package ul { display: grid; gap: 8px; font-size: 14px; color: var(--cx-text-soft); }
#cosmos-lp .cx-package ul li { padding-left: 18px; position: relative; }
#cosmos-lp .cx-package ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 5px;
  border-left: 1px solid var(--cx-wood);
  border-bottom: 1px solid var(--cx-wood);
}
#cosmos-lp .cx-package__who { margin-top: auto; font-size: 13px; color: var(--cx-text-soft); border-top: 1px solid var(--cx-line); padding-top: 12px; }

/* ============ ТЕХНОЛОГИЯ ============ */
#cosmos-lp .cx-tech { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
#cosmos-lp .cx-tech__media { border-radius: var(--cx-radius); overflow: hidden; position: relative; aspect-ratio: 4/3.4; }
#cosmos-lp .cx-tech__media img { width: 100%; height: 100%; object-fit: cover; }
#cosmos-lp .cx-tech__list { display: grid; gap: 0; }
#cosmos-lp .cx-tech__item { display: flex; gap: 18px; padding-block: 18px; border-bottom: 1px solid var(--cx-line-dark); }
#cosmos-lp .cx-tech__item:first-child { border-top: 1px solid var(--cx-line-dark); }
#cosmos-lp .cx-tech__item b { font-family: var(--cx-ui); font-weight: 600; font-size: 16px; display: block; margin-bottom: 4px; }
#cosmos-lp .cx-tech__item p { font-size: 14.5px; color: var(--cx-text-inv-soft); }
#cosmos-lp .cx-tech__num {
  font-family: var(--cx-display);
  color: var(--cx-wood);
  font-size: 14px;
  min-width: 30px;
  padding-top: 3px;
}

/* ============ ЭКСКУРСИЯ ============ */
#cosmos-lp .cx-excursion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--cx-radius);
  overflow: hidden;
  background: var(--cx-paper);
  border: 1px solid var(--cx-line);
}
#cosmos-lp .cx-excursion__media { position: relative; min-height: 420px; }
#cosmos-lp .cx-excursion__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#cosmos-lp .cx-excursion__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 16px; }
#cosmos-lp .cx-excursion__body .cx-h2 { font-size: clamp(26px, 3vw, 38px); }
#cosmos-lp .cx-excursion__facts { display: flex; gap: 22px; flex-wrap: wrap; }
#cosmos-lp .cx-excursion__facts li { font-size: 13.5px; color: var(--cx-text-soft); }
#cosmos-lp .cx-excursion__facts b { display: block; font-family: var(--cx-display); font-size: 18px; font-weight: 500; color: var(--cx-text); }
#cosmos-lp .cx-excursion__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
#cosmos-lp .cx-excursion__form .cx-btn,
#cosmos-lp .cx-excursion__form .cx-consent { grid-column: 1 / -1; }

/* ============ PDF-МАГНИТ ============ */
#cosmos-lp .cx-pdf {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--cx-graphite-2);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--cx-line-dark);
  overflow: hidden;
}
#cosmos-lp .cx-pdf__stack { position: relative; min-height: 420px; }
#cosmos-lp .cx-pdf__cover {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%) rotate(-3deg);
  width: 54%;
  border-radius: 8px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65);
  z-index: 3;
}
#cosmos-lp .cx-pdf__page {
  position: absolute;
  top: 50%;
  border-radius: 6px;
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.55);
}
#cosmos-lp .cx-pdf__page--1 { right: 8%; width: 56%; transform: translateY(-52%) rotate(2.5deg); z-index: 2; }
#cosmos-lp .cx-pdf__page--2 { right: 2%; width: 40%; transform: translateY(-38%) rotate(7deg); z-index: 1; opacity: 0.85; }
#cosmos-lp .cx-channel { display: flex; gap: 8px; flex-wrap: wrap; }
#cosmos-lp .cx-channel__chip { position: relative; }
#cosmos-lp .cx-channel__chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
#cosmos-lp .cx-channel__chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid var(--cx-line-dark);
  color: var(--cx-text-inv-soft);
  font-size: 14px;
  transition: all 0.18s ease;
}
#cosmos-lp .cx-channel__chip input:checked + span { border-color: var(--cx-wood); color: var(--cx-text-inv); background: rgba(180, 136, 91, 0.16); }
#cosmos-lp .cx-channel__chip input:focus-visible + span { outline: 2px solid var(--cx-blue-live); outline-offset: 2px; }
#cosmos-lp .cx-pdf h3 { font-family: var(--cx-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; margin-bottom: 10px; }
#cosmos-lp .cx-pdf p { color: var(--cx-text-inv-soft); font-size: 15px; }
#cosmos-lp .cx-pdf__form { display: grid; gap: 12px; }

/* ============ ФИНАЛ ============ */
#cosmos-lp .cx-final { text-align: center; }
#cosmos-lp .cx-final .cx-h2 { max-width: 22ch; margin-inline: auto; }
#cosmos-lp .cx-final__sub { color: var(--cx-text-inv-soft); margin: 16px auto 30px; max-width: 52ch; }
#cosmos-lp .cx-final__form {
  display: flex;
  gap: 12px;
  max-width: 640px;
  margin-inline: auto;
}
#cosmos-lp .cx-final__form .cx-field { flex: 1; }


/* ============ FOOTER ============ */
#cosmos-lp .cx-footer { background: var(--cx-ink); color: var(--cx-text-inv-soft); font-size: 13.5px; }
#cosmos-lp .cx-footer__in {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding-block: 34px;
  border-top: 1px solid var(--cx-line-dark);
}
#cosmos-lp .cx-footer a { text-decoration: underline; text-underline-offset: 3px; }
#cosmos-lp .cx-footer a:hover { color: var(--cx-text-inv); }

/* ============ MOBILE STICKY NAV (Проекты · Подобрать · Позвонить) ============ */
#cosmos-lp .cx-sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0;
  background: rgba(12, 15, 22, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--cx-line-dark);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
}
#cosmos-lp .cx-sticky__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--cx-text-inv-soft);
  font-size: 11.5px;
  font-family: var(--cx-ui);
  padding: 6px 4px;
  border-radius: 12px;
}
#cosmos-lp .cx-sticky__item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#cosmos-lp .cx-sticky__item--main { background: var(--cx-blue); color: #fff; margin-top: -18px; border: 4px solid var(--cx-ink); box-shadow: 0 10px 24px -8px rgba(3, 50, 154, 0.6); }

/* ============ ДЕМО-ПАНЕЛЬ ПРЕСЕТОВ (только прототип) ============ */
#cosmos-lp .cx-demo {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 90;
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--cx-text-soft);
}
#cosmos-lp .cx-demo select { border: 1px solid var(--cx-line); border-radius: 8px; padding: 5px 8px; font-size: 12px; }

/* ============ HERO GRID / ПРОМО-ПАНЕЛЬ / ТАЙМЕР ============ */
#cosmos-lp .cx-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  width: 100%;
}
#cosmos-lp .cx-promo {
  background: rgba(8, 11, 20, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(180, 136, 91, 0.35);
  border-radius: 18px;
  padding: 20px 22px;
  max-width: 400px;
  justify-self: end;
  width: 100%;
}
#cosmos-lp .cx-promo__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
#cosmos-lp .cx-promo__step { font-size: 11.5px; color: rgba(242, 241, 238, 0.5); margin-top: 8px; text-align: center; }
#cosmos-lp .cx-promo__title {
  font-family: var(--cx-ui);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 6px;
}
#cosmos-lp .cx-promo__rating sup { color: var(--cx-wood); }
#cosmos-lp .cx-promo__benefit {
  font-family: var(--cx-ui);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cx-text-inv-soft);
  margin-bottom: 8px;
}
#cosmos-lp .cx-promo__benefit b {
  display: inline-block;
  font-family: var(--cx-display);
  font-size: 25px;
  letter-spacing: 0;
  text-transform: none;
  color: #E7C9A1;
  margin-left: 6px;
}
#cosmos-lp .cx-promo__sub { font-size: 13.5px; color: var(--cx-text-inv-soft); margin-bottom: 16px; }
#cosmos-lp .cx-promo form { display: grid; gap: 10px; }
#cosmos-lp .cx-field__label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cx-text-inv-soft);
  margin-bottom: 5px;
  font-family: var(--cx-ui);
}
#cosmos-lp .cx-light-form .cx-field__label,
#cosmos-lp .cx-quickbar .cx-field__label,
#cosmos-lp .cx-calc .cx-field__label,
#cosmos-lp .cx-pdf .cx-field__label { color: var(--cx-text-soft); }
/* таймер: архитектурные стойки-разделители, без мигания и красного */
#cosmos-lp .cx-timer { display: flex; align-items: center; gap: 14px; border-block: 1px solid rgba(180, 136, 91, 0.3); padding: 9px 0; margin-bottom: 12px; }
#cosmos-lp .cx-timer[hidden] { display: none; }
#cosmos-lp [data-slot="cta3"][hidden] { display: none; }
#cosmos-lp .cx-timer__label { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cx-text-inv-soft); font-family: var(--cx-ui); max-width: 12ch; line-height: 1.35; }
#cosmos-lp .cx-timer__row { display: flex; align-items: stretch; gap: 10px; margin-left: auto; }
#cosmos-lp .cx-timer__cell { display: flex; flex-direction: column; min-width: 36px; }
#cosmos-lp .cx-timer__cell b { font-family: var(--cx-ui); font-weight: 600; font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
#cosmos-lp .cx-timer__cell i { font-style: normal; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cx-text-inv-soft); }
#cosmos-lp .cx-timer__post { width: 1px; background: linear-gradient(180deg, var(--cx-wood) 0%, rgba(180, 136, 91, 0.15) 100%); }
#cosmos-lp .cx-hero__note { margin-top: 18px; font-size: 11.5px; color: rgba(242, 241, 238, 0.55); }

/* ============ ИКОНКИ ============ */
#cosmos-lp .cx-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.9;
  flex: 0 0 auto;
}
#cosmos-lp .cx-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#cosmos-lp .cx-icon--lg { width: 64px; height: 64px; }
#cosmos-lp .cx-icon--lg svg { width: 30px; height: 30px; }

/* ============ TRUST v4 ============ */
#cosmos-lp .cx-trust { background: var(--cx-milk); border-top: 0; }
#cosmos-lp .cx-trust__in { display: flex; flex-wrap: nowrap; gap: 14px; padding-block: clamp(24px, 2.6vw, 36px); }
#cosmos-lp .cx-trust__item { flex: 1 1 0; min-width: 0; }
#cosmos-lp .cx-trust__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; color: var(--cx-text); }
#cosmos-lp .cx-trust__item::before { display: none; }
#cosmos-lp .cx-trust__item .cx-icon { color: var(--cx-blue); border-color: rgba(3, 50, 154, 0.25); }
#cosmos-lp .cx-trust__item b { font-family: var(--cx-ui); font-weight: 600; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
#cosmos-lp .cx-trust__item small { font-size: 12px; color: var(--cx-text-soft); }

/* ============ QUICKBAR: 3 проекта под участок ============ */
#cosmos-lp .cx-quickbar {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  background: var(--cx-paper);
  border: 1px solid var(--cx-line);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 36px);
}
#cosmos-lp .cx-quickbar__text p { color: var(--cx-text-soft); font-size: 14.5px; margin-top: 6px; }
#cosmos-lp .cx-quickbar__form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
#cosmos-lp .cx-quickbar__form .cx-consent { grid-column: 1 / -1; }
#cosmos-lp .cx-quickbar__form .cx-btn { min-height: 52px; }

/* ============ PDF v4 ============ */
#cosmos-lp .cx-pdf { background: var(--cx-paper); border-color: var(--cx-line); }
#cosmos-lp .cx-pdf__visual img { border-radius: 12px; max-height: 600px; width: auto; margin-inline: auto; object-fit: contain; }
#cosmos-lp .cx-pdf__body h3 { margin-bottom: 8px; }
#cosmos-lp .cx-pdf__sub { color: var(--cx-text-soft); font-size: 15px; margin-bottom: 16px; }
#cosmos-lp .cx-pdf__points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
#cosmos-lp .cx-pdf__points li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--cx-text); }
#cosmos-lp .cx-pdf__points .cx-icon { width: 38px; height: 38px; color: var(--cx-wood-deep); border-color: rgba(140, 106, 69, 0.3); }
#cosmos-lp .cx-pdf__points .cx-icon svg { width: 18px; height: 18px; }
#cosmos-lp .cx-pdf .cx-channel__chip span,
#cosmos-lp .cx-exit .cx-channel__chip span,
#cosmos-lp .cx-light-form .cx-channel__chip span { border-color: var(--cx-line); color: var(--cx-text-soft); }
#cosmos-lp .cx-pdf .cx-channel__chip input:checked + span,
#cosmos-lp .cx-exit .cx-channel__chip input:checked + span,
#cosmos-lp .cx-light-form .cx-channel__chip input:checked + span { background: rgba(3, 50, 154, 0.08); border-color: var(--cx-blue); color: var(--cx-blue); }
#cosmos-lp .cx-channel__chip span svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.5; margin-right: 7px; }

/* ============ СМЕТА ============ */
#cosmos-lp .cx-estimate { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
#cosmos-lp .cx-estimate__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 620px; }
#cosmos-lp .cx-estimate__form .cx-consent,
#cosmos-lp .cx-estimate__form .cx-consent__error,
#cosmos-lp .cx-estimate__form .cx-btn { grid-column: 1 / -1; }
#cosmos-lp .cx-estimate__media img { border-radius: 14px; box-shadow: 0 28px 60px -22px rgba(0, 0, 0, 0.55); max-width: 340px; max-height: 470px; width: auto; margin-inline: auto; object-fit: contain; }

/* ============ ЛИНИЯ КОМПЛЕКТАЦИЙ ============ */
#cosmos-lp .cx-packline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 44px);
  position: relative;
}
#cosmos-lp .cx-packline li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 16px;
  border: 1px solid var(--cx-line);
  border-radius: 20px;
  background: var(--cx-paper);
  color: var(--cx-text);
}
#cosmos-lp .cx-packline li.is-featured { border-color: rgba(180, 136, 91, 0.55); }
#cosmos-lp .cx-packline__num { font-family: var(--cx-ui);
  position: absolute;
  top: 12px; left: 14px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(180, 136, 91, 0.15);
  color: var(--cx-wood-deep);
  font-family: var(--cx-display);
  font-size: 12.5px;
  display: flex; align-items: center; justify-content: center;
}
#cosmos-lp .cx-packline li .cx-icon { color: var(--cx-wood-deep); border-color: rgba(140, 106, 69, 0.3); }
#cosmos-lp .cx-packline b { font-family: var(--cx-ui); font-weight: 600; font-size: 15.5px; }
#cosmos-lp .cx-packline small { font-size: 12.5px; color: var(--cx-text-soft); }
#cosmos-lp .cx-packform {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  background: var(--cx-paper);
  border: 1px solid var(--cx-line);
  border-radius: 20px;
  padding: clamp(18px, 2.4vw, 26px);
}
#cosmos-lp .cx-packform .cx-consent, #cosmos-lp .cx-packform .cx-consent__error { grid-column: 1 / -1; }
#cosmos-lp .cx-packform .cx-btn { min-height: 52px; white-space: nowrap; }

/* ============ КАЛЬКУЛЯТОР ============ */
#cosmos-lp .cx-calc {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  background: var(--cx-graphite-2);
  color: var(--cx-text-inv);
  border-radius: 20px;
  padding: clamp(24px, 3.4vw, 44px);
}
#cosmos-lp .cx-calc .cx-beam { color: var(--cx-wood); }
#cosmos-lp .cx-calc__note { font-size: 13px; color: var(--cx-text-inv-soft); margin-top: 12px; max-width: 44ch; }
#cosmos-lp .cx-calc__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
#cosmos-lp .cx-calc__panel .cx-field__label { color: var(--cx-text-inv-soft); }
#cosmos-lp .cx-calc__result { grid-column: 1 / -1; border-top: 1px solid var(--cx-line-dark); padding-top: 12px; }
#cosmos-lp .cx-calc__result small { display: block; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cx-text-inv-soft); margin-bottom: 4px; }
#cosmos-lp .cx-calc__result b { font-family: var(--cx-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); }
#cosmos-lp .cx-calc__panel .cx-btn { grid-column: 1 / -1; }

/* ============ TECH GRID (производство/остекление) ============ */
#cosmos-lp .cx-techgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#cosmos-lp .cx-techcard {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
  background: var(--cx-graphite-2);
}
#cosmos-lp .cx-techcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
#cosmos-lp .cx-techcard:hover img { transform: scale(1.03); }
#cosmos-lp .cx-techcard__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 60px 22px 20px;
  background: linear-gradient(0deg, rgba(8, 11, 20, 0.85), transparent);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#cosmos-lp .cx-techcard__body b { font-family: var(--cx-display); font-weight: 400; font-size: 22px; }
#cosmos-lp .cx-techcard__body small { font-size: 13.5px; color: rgba(242, 241, 238, 0.78); max-width: 40ch; }
#cosmos-lp .cx-techcard__body .cx-link { margin-top: 6px; }

/* ============ CONSENT ERROR ============ */
#cosmos-lp .cx-consent.is-error span { color: #b4443c; }
#cosmos-lp .cx-consent.is-error input { outline: 2px solid #b4443c; outline-offset: 1px; }
#cosmos-lp .cx-consent__error { font-size: 12.5px; color: #b4443c; margin-top: 6px; }
#cosmos-lp .cx-consent__error[hidden] { display: none; }
#cosmos-lp .cx-dark .cx-consent.is-error span, #cosmos-lp .cx-dark .cx-consent__error { color: #e08a80; }

/* ============ EXIT POPUP ============ */
#cosmos-lp .cx-exit { position: fixed; inset: 0; z-index: 115; }
#cosmos-lp .cx-exit[hidden] { display: none; }
#cosmos-lp .cx-exit__backdrop { position: absolute; inset: 0; background: rgba(8, 11, 20, 0.62); backdrop-filter: blur(3px); }
#cosmos-lp .cx-exit__panel {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(1080px, calc(100% - 32px));
  height: fit-content;
  max-height: 85vh;
  overflow: auto;
  background: var(--cx-milk);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: 0;
}
#cosmos-lp .cx-exit__media { background: var(--cx-milk); border-radius: 20px 0 0 20px; overflow: hidden; display: flex; align-items: flex-start; justify-content: center; padding: 28px; }
#cosmos-lp .cx-exit__media img { width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: 6px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.25); }
#cosmos-lp .cx-exit__body { padding: clamp(24px, 3vw, 36px); }
#cosmos-lp .cx-exit__body > b { font-family: var(--cx-display); font-weight: 500; font-size: 23px; display: block; margin-bottom: 6px; }
#cosmos-lp .cx-exit__body > p { color: var(--cx-text-soft); font-size: 14.5px; margin-bottom: 14px; }
#cosmos-lp .cx-exit__points { display: grid; gap: 7px; margin-bottom: 18px; }
#cosmos-lp .cx-exit__points li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--cx-text-soft); }
#cosmos-lp .cx-exit__points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 6px; border-left: 1px solid var(--cx-wood); border-bottom: 1px solid var(--cx-wood); }
#cosmos-lp .cx-exit__body form { display: grid; gap: 12px; }
#cosmos-lp .cx-exit .cx-modal__close { top: 12px; right: 12px; width: 44px; height: 44px; background: var(--cx-milk); box-shadow: 0 4px 14px rgba(0, 8, 24, 0.12); }

/* ============ FOOTER v4 ============ */
#cosmos-lp .cx-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  padding-block: clamp(30px, 4vw, 48px) 22px;
}
#cosmos-lp .cx-footer__brand p { margin-top: 12px; font-size: 13px; color: var(--cx-text-inv-soft); max-width: 34ch; }
#cosmos-lp .cx-footer__grid nav { display: grid; gap: 8px; align-content: start; font-size: 13.5px; }
#cosmos-lp .cx-footer__grid nav b { font-family: var(--cx-ui); font-weight: 500; color: var(--cx-text-inv); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
#cosmos-lp .cx-footer__grid nav a { color: var(--cx-text-inv-soft); text-decoration: none; }
#cosmos-lp .cx-footer__grid nav a:hover { color: var(--cx-text-inv); }
#cosmos-lp .cx-footer__op { font-size: 11.5px; opacity: 0.7; }

/* ============ HERO QUICK FORM (legacy) ============ */
#cosmos-lp .cx-hero__quick {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  max-width: 620px;
}
#cosmos-lp .cx-hero__quick .cx-field { flex: 1 1 220px; }
#cosmos-lp .cx-hero__quick .cx-field input {
  background: rgba(251, 250, 247, 0.1);
  backdrop-filter: blur(4px);
  border-color: rgba(255, 255, 255, 0.3);
}
#cosmos-lp .cx-hero__quick .cx-btn { min-height: 52px; }
#cosmos-lp .cx-hero__quick .cx-consent { flex: 1 0 100%; }

/* ============ ПОСТРОЕННЫЕ ОБЪЕКТЫ ============ */
#cosmos-lp .cx-objects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 225px;
  gap: 14px;
}
#cosmos-lp .cx-object {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cx-graphite-2);
}
#cosmos-lp .cx-object:first-child { grid-column: span 2; grid-row: span 2; }
#cosmos-lp .cx-object img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
#cosmos-lp .cx-object:hover img { transform: scale(1.03); }
#cosmos-lp .cx-object figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 46px 18px 14px;
  color: var(--cx-text-inv);
  background: linear-gradient(0deg, rgba(8, 11, 20, 0.82), transparent);
}
#cosmos-lp .cx-object b { display: block; font-family: var(--cx-display); font-weight: 500; font-size: 15.5px; }
#cosmos-lp .cx-object span { font-size: 12.5px; color: rgba(242, 241, 238, 0.75); }
#cosmos-lp .cx-object em { display: block; font-style: normal; font-size: 11.5px; color: var(--cx-wood); margin-top: 3px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ============ SELECTION BAR ============ */
#cosmos-lp .cx-selection-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(12, 15, 22, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--cx-line-dark);
  border-radius: 99px;
  padding: 10px 12px 10px 22px;
  color: var(--cx-text-inv);
  box-shadow: 0 16px 40px -12px rgba(6, 10, 24, 0.6);
}
#cosmos-lp .cx-selection-bar[hidden] { display: none; }
#cosmos-lp .cx-selection-bar b { font-family: var(--cx-display); font-weight: 500; font-size: 14.5px; white-space: nowrap; }
#cosmos-lp .cx-selection-bar .cx-btn { min-height: 44px; padding: 9px 18px; font-size: 14px; border-radius: 99px; }

/* ============ BOTTOM SHEET (mobile) ============ */
#cosmos-lp .cx-sheet { position: fixed; inset: 0; z-index: 110; }
#cosmos-lp .cx-sheet[hidden] { display: none; }
#cosmos-lp .cx-sheet__backdrop { position: absolute; inset: 0; background: rgba(8, 11, 20, 0.6); }
#cosmos-lp .cx-sheet__panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--cx-milk);
  border-radius: 20px 20px 0 0;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: cx-sheet-up 0.25s ease;
}
@keyframes cx-sheet-up { from { transform: translateY(40px); opacity: 0.5; } to { transform: none; opacity: 1; } }
#cosmos-lp .cx-sheet__grip { width: 42px; height: 4px; border-radius: 2px; background: var(--cx-line); margin: 4px auto 8px; }
#cosmos-lp .cx-sheet__title { font-family: var(--cx-ui); font-weight: 600; font-size: 18px; margin-bottom: 4px; }
#cosmos-lp .cx-sheet__item {
  display: block;
  text-align: left;
  background: var(--cx-paper);
  border: 1px solid var(--cx-line);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--cx-ui);
  font-weight: 500;
  font-size: 16px;
  color: var(--cx-text);
}
#cosmos-lp .cx-sheet__item span { display: block; font-family: var(--cx-body); font-weight: 400; font-size: 13px; color: var(--cx-text-soft); margin-top: 2px; }

/* ============ ГАЛЕРЕЯ МОДАЛКИ ============ */
#cosmos-lp .cx-project__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
#cosmos-lp .cx-project__galnote { font-size: 12.5px; color: var(--cx-text-soft); margin-top: 10px; }
#cosmos-lp .cx-project__thumb {
  width: 84px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--cx-line);
  opacity: 0.85;
  padding: 0;
  cursor: pointer;
}
#cosmos-lp .cx-project__thumb.is-on { border-color: var(--cx-blue); opacity: 1; }
#cosmos-lp .cx-project__thumb img { width: 100%; height: 100%; object-fit: cover; }


/* ============ TRUST STRIP ============ */


/* ============ РЕАЛИЗОВАННЫЕ ============ */
#cosmos-lp .cx-realized {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
#cosmos-lp .cx-realized__item {
  position: relative;
  border-radius: var(--cx-radius);
  overflow: hidden;
  background: var(--cx-graphite-2);
}
#cosmos-lp .cx-realized__item--wide { grid-column: span 2; grid-row: span 2; }
#cosmos-lp .cx-realized__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
#cosmos-lp .cx-realized__item:hover img { transform: scale(1.03); }
#cosmos-lp .cx-realized__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 14px;
  font-size: 13.5px;
  color: var(--cx-text-inv);
  background: linear-gradient(0deg, rgba(15, 17, 20, 0.75), transparent);
}

/* ============ ГАРАНТИИ / ЭСКРОУ ============ */
#cosmos-lp .cx-guarantee { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
#cosmos-lp .cx-guarantee__item {
  background: var(--cx-paper);
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius);
  padding: 24px 22px;
}
#cosmos-lp .cx-guarantee__item::before {
  content: "";
  display: block;
  width: 24px;
  height: 15px;
  border-left: 1px solid var(--cx-wood);
  border-bottom: 1px solid var(--cx-wood);
  margin-bottom: 14px;
}
#cosmos-lp .cx-guarantee__item b { font-family: var(--cx-ui); font-weight: 600; font-size: 16.5px; display: block; margin-bottom: 8px; }
#cosmos-lp .cx-guarantee__item p { font-size: 14px; color: var(--cx-text-soft); }

/* ============ ИПОТЕКА ============ */
#cosmos-lp .cx-mortgage {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  background: var(--cx-paper);
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius);
  padding: clamp(26px, 4vw, 48px);
}
#cosmos-lp .cx-mortgage__list { display: grid; gap: 0; margin-top: 20px; }
#cosmos-lp .cx-mortgage__list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding-block: 12px;
  border-bottom: 1px solid var(--cx-line);
  font-size: 14.5px;
  color: var(--cx-text-soft);
}
#cosmos-lp .cx-mortgage__list li:first-child { border-top: 1px solid var(--cx-line); }
#cosmos-lp .cx-mortgage__list b { font-family: var(--cx-display); font-weight: 500; font-size: 16.5px; color: var(--cx-text); min-width: 96px; }
#cosmos-lp .cx-mortgage__form {
  display: grid;
  gap: 12px;
  align-content: start;
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius);
  padding: 24px;
}

/* ============ ЭТАПЫ ============ */
#cosmos-lp .cx-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--cx-line-dark);
  border-left: 1px solid var(--cx-line-dark);
}
#cosmos-lp .cx-steps li {
  counter-increment: step;
  border-right: 1px solid var(--cx-line-dark);
  border-bottom: 1px solid var(--cx-line-dark);
  padding: 24px 22px 26px;
}
#cosmos-lp .cx-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--cx-display);
  color: var(--cx-wood);
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
}
#cosmos-lp .cx-steps b { font-family: var(--cx-ui); font-weight: 600; font-size: 16.5px; display: block; margin-bottom: 6px; }
#cosmos-lp .cx-steps p { font-size: 14px; color: var(--cx-text-inv-soft); }

/* ============ ОТЗЫВЫ ============ */
#cosmos-lp .cx-reviews { display: grid; grid-template-columns: 1fr 1.7fr; gap: 16px; align-items: start; }
#cosmos-lp .cx-reviews__badge,
#cosmos-lp .cx-reviews__widget {
  background: var(--cx-paper);
  border: 1px solid var(--cx-line);
  border-radius: 20px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
#cosmos-lp .cx-reviews__widget { min-height: 320px; }
#cosmos-lp .cx-reviews__widget #myreviews-widget-container { flex: 1; width: 100%; min-height: 320px; }
#cosmos-lp #myReviews__block-widget { min-height: 320px; }
#cosmos-lp .cx-reviews b { font-family: var(--cx-display); font-weight: 500; font-size: 18px; }
#cosmos-lp .cx-reviews p { font-size: 14px; color: var(--cx-text-soft); }

/* ============ FAQ ============ */
#cosmos-lp .cx-faq { max-width: 860px; }
#cosmos-lp .cx-faq__item { border-bottom: 1px solid var(--cx-line); }
#cosmos-lp .cx-faq__item:first-child { border-top: 1px solid var(--cx-line); }
#cosmos-lp .cx-faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px 2px;
  font-family: var(--cx-ui);
  font-weight: 600;
  font-size: 16.5px;
}
#cosmos-lp .cx-faq__item summary::-webkit-details-marker { display: none; }
#cosmos-lp .cx-faq__item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--cx-wood);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}
#cosmos-lp .cx-faq__item[open] summary::after { transform: rotate(45deg); }
#cosmos-lp .cx-faq__item p { padding: 0 2px 18px; color: var(--cx-text-soft); font-size: 15px; max-width: 68ch; }

/* ============ FAQ CTA ============ */
#cosmos-lp .cx-faq__cta {
  margin-top: 26px;
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border: 1px solid var(--cx-line);
  border-radius: 20px;
  background: var(--cx-paper);
  padding: 20px 24px;
}
#cosmos-lp .cx-faq__cta b { font-family: var(--cx-display); font-weight: 500; }
#cosmos-lp .cx-faq__cta small { display: block; color: var(--cx-text-soft); }

/* ============ COOKIE BANNER ============ */
#cosmos-lp .cx-cookie {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: 420px;
  background: var(--cx-paper);
  border: 1px solid var(--cx-line);
  border-radius: 16px;
  box-shadow: 0 22px 50px -18px rgba(6, 10, 24, 0.35);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#cosmos-lp .cx-cookie[hidden] { display: none; }
#cosmos-lp .cx-cookie p { font-size: 13.5px; color: var(--cx-text-soft); }
#cosmos-lp .cx-cookie a { color: var(--cx-blue); text-decoration: underline; text-underline-offset: 3px; }
#cosmos-lp .cx-cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
#cosmos-lp .cx-cookie .cx-btn { min-height: 40px; padding: 8px 16px; font-size: 13.5px; }

/* ============ МОДАЛКА ============ */
#cosmos-lp .cx-modal { position: fixed; inset: 0; z-index: 100; }
#cosmos-lp .cx-modal[hidden] { display: none; }
#cosmos-lp .cx-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 17, 20, 0.66); backdrop-filter: blur(3px); }
#cosmos-lp .cx-modal__panel {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(880px, calc(100% - 32px));
  height: fit-content;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  background: var(--cx-milk);
  border-radius: var(--cx-radius);
  padding: clamp(22px, 3vw, 34px);
}
#cosmos-lp .cx-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--cx-line);
  color: var(--cx-text-soft);
  background: var(--cx-paper);
  z-index: 2;
}
#cosmos-lp .cx-project { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
#cosmos-lp .cx-project__media {
  border-radius: 10px;
  overflow: hidden;
  background: var(--cx-graphite-2);
  min-height: 300px;
  position: relative;
}
#cosmos-lp .cx-project__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
#cosmos-lp .cx-project__note {
  font-size: 13px;
  color: var(--cx-text-soft);
  border-left: 2px solid var(--cx-wood);
  padding-left: 12px;
  margin-bottom: 16px;
}
#cosmos-lp .cx-project__actions { display: flex; flex-wrap: wrap; gap: 10px; }
#cosmos-lp .cx-project__actions .cx-btn { min-height: 46px; font-size: 14.5px; padding: 10px 16px; }
#cosmos-lp .cx-formmodal { max-width: 460px; margin-inline: auto; }
#cosmos-lp .cx-formmodal__proj { font-size: 14px; color: var(--cx-text-soft); margin-top: 6px; }

/* ============ КАРТОЧКА: подборка и цена-запрос ============ */
#cosmos-lp .cx-card__fav {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(251, 250, 247, 0.92);
  color: var(--cx-text);
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 99px;
  transition: background-color 0.18s ease;
}
#cosmos-lp .cx-card__fav.is-on { background: var(--cx-wood); color: #fff; }
#cosmos-lp .cx-card__price-ask { font-family: var(--cx-ui); font-size: 14.5px; font-weight: 600; color: var(--cx-text); }
#cosmos-lp .cx-project__price .cx-card__price-ask { color: var(--cx-blue); }

/* ============ SUCCESS ============ */
#cosmos-lp .cx-success {
  border: 1px solid var(--cx-wood);
  border-radius: 10px;
  padding: 20px;
  background: rgba(180, 136, 91, 0.08);
}
#cosmos-lp .cx-success b { font-family: var(--cx-display); font-weight: 500; display: block; margin-bottom: 6px; }
#cosmos-lp .cx-success p { font-size: 13.5px; color: var(--cx-text-soft); }
#cosmos-lp .cx-dark .cx-success p { color: var(--cx-text-inv-soft); }

/* ============ АНИМАЦИИ ============ */
#cosmos-lp .cx-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
#cosmos-lp .cx-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  #cosmos-lp .cx-reveal { opacity: 1; transform: none; transition: none; }
  #cosmos-lp * { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ============ АДАПТИВ ============ */
@media (max-width: 1080px) {
  #cosmos-lp .cx-scenarios { grid-template-columns: repeat(3, 1fr); }
  #cosmos-lp .cx-catalog { grid-template-columns: repeat(2, 1fr); }
  #cosmos-lp .cx-packages { grid-template-columns: repeat(2, 1fr); }
  #cosmos-lp .cx-nav { display: none; }
  #cosmos-lp .cx-header__call { display: none; }
  #cosmos-lp .cx-objects { grid-auto-rows: 210px; }
  #cosmos-lp .cx-hero__grid { grid-template-columns: 1fr; }
  #cosmos-lp .cx-promo { justify-self: stretch; max-width: 640px; }
  #cosmos-lp .cx-trust__item small { display: none; }
  #cosmos-lp .cx-quickbar { grid-template-columns: 1fr; }
  #cosmos-lp .cx-estimate { grid-template-columns: 1fr; }
  #cosmos-lp .cx-estimate__media { display: none; }
  #cosmos-lp .cx-packline { grid-template-columns: repeat(2, 1fr); }
  #cosmos-lp .cx-packform { grid-template-columns: 1fr 1fr; }
  #cosmos-lp .cx-techgrid { grid-template-columns: 1fr; }
  #cosmos-lp .cx-calc { grid-template-columns: 1fr; }
  #cosmos-lp .cx-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) and (min-width: 761px) {
  #cosmos-lp .cx-guarantee { grid-template-columns: repeat(2, 1fr); }
  #cosmos-lp .cx-steps { grid-template-columns: repeat(2, 1fr); }
  #cosmos-lp .cx-realized { grid-auto-rows: 200px; }
}
@media (max-width: 760px) {
  #cosmos-lp { font-size: 16px; }
  #cosmos-lp .cx-sticky { display: grid; }
  #cosmos-lp .cx-section { padding-block: 52px; }
  #cosmos-lp .cx-hero h1 { font-size: 33px; line-height: 1.16; max-width: none; margin-bottom: 12px; }
  #cosmos-lp .cx-h2 { font-size: 31px; }
  #cosmos-lp .cx-section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  #cosmos-lp .cx-realized { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  #cosmos-lp .cx-realized__item--wide { grid-column: auto; grid-row: auto; }
  #cosmos-lp .cx-objects { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  #cosmos-lp .cx-object:first-child { grid-column: auto; grid-row: auto; }
  #cosmos-lp .cx-card--feature { grid-column: auto; }
  #cosmos-lp .cx-pdf__stack { min-height: 300px; }
  #cosmos-lp .cx-cookie { left: 10px; right: 10px; max-width: none; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); flex-direction: column; }
  #cosmos-lp .cx-faq__cta { flex-direction: column; align-items: flex-start; }
  #cosmos-lp .cx-card__actions { width: 100%; }
  #cosmos-lp .cx-card__actions .cx-btn { flex: 1; }
  #cosmos-lp .cx-selection-bar { left: 12px; right: 12px; transform: none; bottom: 84px; border-radius: 16px; flex-wrap: wrap; justify-content: center; padding: 12px; }
  #cosmos-lp .cx-hero__quick { display: none; } /* на мобильном короткую форму заменяет bottom sheet */
  #cosmos-lp .cx-hero__eyebrow { font-size: 10.5px; letter-spacing: 0.12em; }
  #cosmos-lp .cx-logo img { height: 40px; }
  #cosmos-lp .cx-guarantee { grid-template-columns: 1fr; }
  #cosmos-lp .cx-mortgage { grid-template-columns: 1fr; }
  #cosmos-lp .cx-steps { grid-template-columns: 1fr; }
  #cosmos-lp .cx-reviews { grid-template-columns: 1fr; }
  #cosmos-lp .cx-project { grid-template-columns: 1fr; }
  #cosmos-lp .cx-project__media { min-height: 220px; }
  #cosmos-lp .cx-tech--flip .cx-tech__media { order: -1; }
  #cosmos-lp .cx-header .cx-header__cta { display: none; }
  #cosmos-lp .cx-header__call { display: none; }
  #cosmos-lp .cx-header__contact { display: none; }
  #cosmos-lp .cx-header__mcall {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border: 1px solid var(--cx-line-dark);
    border-radius: 50%;
    color: var(--cx-text-inv);
    margin-left: auto;
  }
  #cosmos-lp .cx-header__mcall svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
  #cosmos-lp .cx-header__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    align-items: center;
  }
  #cosmos-lp .cx-header__burger span { display: block; width: 20px; height: 1.5px; background: var(--cx-text-inv); }
  #cosmos-lp .cx-hero__in { padding-block: 88px 24px; min-height: 0; }
  /* мобильный сценарий: фон-фото — компактная полоса вверху (не на всю высоту секции),
     иначе на узком и высоком контейнере object-fit:cover обрезает дом почти целиком.
     Текст ниже H1 идёт уже по сплошному тёмному фону секции (--cx-ink). */
  #cosmos-lp .cx-hero__media { bottom: auto; height: 420px; }
  #cosmos-lp .cx-hero__media::after {
    background:
      linear-gradient(180deg, rgba(15, 17, 20, 0.8) 0%, rgba(15, 17, 20, 0.4) 55%, rgba(15, 17, 20, 0.22) 100%);
  }
  #cosmos-lp .cx-hero__media img { filter: brightness(1.08); object-position: 50% 28%; }
  #cosmos-lp .cx-hero__catcard { display: flex; width: 100%; margin-top: 26px; }
  #cosmos-lp .cx-promo { margin-top: 26px; }
  #cosmos-lp .cx-hero__sub { font-size: 14.5px; margin-bottom: 8px; }
  #cosmos-lp .cx-hero__price { font-size: 15.5px; margin-bottom: 16px; }
  #cosmos-lp .cx-hero__cta { margin-bottom: 18px; }
  #cosmos-lp .cx-hero__cta .cx-btn { width: 100%; min-height: 50px; font-size: 15px; }
  #cosmos-lp .cx-promo__benefit b { font-size: 22px; }
  #cosmos-lp .cx-hero__eyebrow { font-size: 9.5px; letter-spacing: 0.08em; margin-bottom: 14px; }
  #cosmos-lp .cx-promo { padding: 16px; max-width: none; }
  #cosmos-lp .cx-promo__fields { display: none; } /* поля — на 2-м шаге в bottom-sheet-модале */
  #cosmos-lp .cx-promo__sub { display: none; }
  #cosmos-lp .cx-promo__step { display: none; }
  #cosmos-lp .cx-timer { flex-wrap: nowrap; gap: 10px; }
  #cosmos-lp .cx-timer__label { flex: 0 1 auto; font-size: 9.5px; letter-spacing: 0.05em; }
  #cosmos-lp .cx-timer__row { flex: 0 0 auto; }
  #cosmos-lp .cx-card__actions .cx-link:first-child { display: none; } /* карточка кликабельна целиком */
  #cosmos-lp .cx-filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; margin-inline: -20px; padding-inline: 20px; }
  #cosmos-lp .cx-chip { white-space: nowrap; flex: 0 0 auto; }
  #cosmos-lp .cx-card__photo { aspect-ratio: 4 / 2.5; }
  #cosmos-lp .cx-card__info { padding: 13px 16px 15px; gap: 6px; }
  #cosmos-lp .cx-pdf__visual img { max-height: 300px; }
  #cosmos-lp .cx-pdf__points { display: none; }
  #cosmos-lp .cx-estimate__points { margin-bottom: 16px; }
  #cosmos-lp .cx-promo__title { font-size: 16.5px; }
  #cosmos-lp .cx-timer__row { gap: 10px; }
  #cosmos-lp .cx-timer__cell b { font-size: 22px; }
  #cosmos-lp .cx-trust__in { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  #cosmos-lp .cx-trust__item:last-child { grid-column: 1 / -1; }
  #cosmos-lp .cx-quickbar__form { grid-template-columns: 1fr; align-items: stretch; }
  #cosmos-lp .cx-packline { grid-template-columns: 1fr 1fr; gap: 10px; }
  #cosmos-lp .cx-packform { grid-template-columns: 1fr; }
  #cosmos-lp .cx-estimate__form { grid-template-columns: 1fr; }
  #cosmos-lp .cx-calc__panel { grid-template-columns: 1fr; }
  #cosmos-lp .cx-exit__panel { grid-template-columns: 1fr; max-height: 90vh; }
  #cosmos-lp .cx-exit__media { padding: 14px; border-radius: 20px 20px 0 0; }
  #cosmos-lp .cx-exit__media img { max-height: 200px; }
  #cosmos-lp .cx-footer__grid { grid-template-columns: 1fr; gap: 18px; }
  #cosmos-lp .cx-card__photo { aspect-ratio: 4 / 2.8; }
  #cosmos-lp .cx-card--feature .cx-card__photo { aspect-ratio: 4 / 2.8; }
  #cosmos-lp .cx-hero__proof { display: none; }
  #cosmos-lp .cx-quiz__promise li { font-size: 12.5px; }
  #cosmos-lp .cx-scenarios { grid-template-columns: 1fr 1fr; }
  #cosmos-lp .cx-catalog { grid-template-columns: 1fr; }
  #cosmos-lp .cx-packages { grid-template-columns: 1fr; }
  #cosmos-lp .cx-quiz__media { display: none; }
  #cosmos-lp .cx-quiz__opts { grid-template-columns: 1fr; }
  #cosmos-lp .cx-tech { grid-template-columns: 1fr; }
  #cosmos-lp .cx-excursion { grid-template-columns: 1fr; }
  #cosmos-lp .cx-excursion__media { min-height: 240px; }
  #cosmos-lp .cx-excursion__form { grid-template-columns: 1fr; }
  #cosmos-lp .cx-pdf { grid-template-columns: 1fr; }
  #cosmos-lp .cx-final__form { flex-direction: column; }
  #cosmos-lp .cx-footer__in { flex-direction: column; gap: 14px; }
  #cosmos-lp .cx-demo { display: none; }
}

#cosmos-lp .cx-final__consent { grid-column: 1 / -1; justify-content: center; margin-top: 6px; }
#cosmos-lp .cx-final__form { flex-wrap: wrap; }

/* резерв высоты consent-слота до заполнения JS (анти-CLS) */
#cosmos-lp [data-consent-slot] { min-height: 42px; }

/* ============ СМЕТА (компакт) ============ */
#cosmos-lp .cx-estimate__points { display: grid; gap: 9px; margin: 4px 0 22px; max-width: 46ch; }
#cosmos-lp .cx-estimate__points li { position: relative; padding-left: 20px; font-size: 15px; color: var(--cx-text-inv-soft); }
#cosmos-lp .cx-estimate__points li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 6px; border-left: 1px solid var(--cx-wood); border-bottom: 1px solid var(--cx-wood); }

/* ============ КОМПЛЕКТАЦИИ CTA / ИПОТЕКА CTA ============ */
#cosmos-lp .cx-packcta,
#cosmos-lp .cx-mortgage__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--cx-paper);
  border: 1px solid var(--cx-line);
  border-radius: 18px;
  padding: 18px 22px;
}
#cosmos-lp .cx-packcta b, #cosmos-lp .cx-mortgage__cta b { font-family: var(--cx-ui); font-weight: 600; }
#cosmos-lp .cx-packcta small, #cosmos-lp .cx-mortgage__cta small { display: block; color: var(--cx-text-soft); font-size: 13px; }
#cosmos-lp .cx-packline li { cursor: pointer; }
#cosmos-lp .cx-catalog__more { text-align: center; margin-top: 22px; }
#cosmos-lp .cx-quiz__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
#cosmos-lp .cx-cookie-open .cx-sticky { display: none !important; }
#cosmos-lp .cx-mortgage { grid-template-columns: 1fr; padding: clamp(24px, 3vw, 40px); }
#cosmos-lp .cx-mortgage__cta { margin-top: 16px; }
@media (min-width: 761px) { #cosmos-lp .cx-mortgage__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } #cosmos-lp .cx-mortgage__list li { flex-direction: column; align-items: flex-start; border: 1px solid var(--cx-line); border-radius: 12px; padding: 12px 14px; } #cosmos-lp .cx-mortgage__list li:first-child { border-top: 1px solid var(--cx-line); } }

/* квиз в модале: живой узел остаётся в тёмной теме — сплошная графитовая панель */
#cosmos-lp .cx-quizmodal .cx-quiz__frame { background: var(--cx-graphite); border-color: var(--cx-line-dark); color: var(--cx-text-inv); }
#cosmos-lp .cx-quizmodal .cx-consent { color: var(--cx-text-inv-soft); }

/* ═══════════════════ ИПОТЕЧНОЕ НАПРАВЛЕНИЕ ═══════════════════ */

/* финансовый дисклеймер — обязателен под каждой финансовой формой */
#cosmos-lp .cx-findisc { font-size: 12px; line-height: 1.5; color: var(--cx-text-soft); margin-top: 12px; max-width: 72ch; }
#cosmos-lp .cx-dark .cx-findisc, #cosmos-lp .cx-exit__body .cx-findisc { color: var(--cx-text-soft); }

/* быстрый расчёт */
#cosmos-lp .cx-mquick { background: var(--cx-paper); border: 1px solid var(--cx-line); border-radius: var(--cx-radius); padding: 20px 22px; margin-bottom: 26px; }
#cosmos-lp .cx-mquick__fields { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; }
#cosmos-lp .cx-mquick__fields .cx-btn { min-height: 46px; white-space: nowrap; }

/* сравнение программ */
#cosmos-lp .cx-mcompare { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
#cosmos-lp .cx-mcompare__card { background: var(--cx-paper); border: 1px solid var(--cx-line); border-radius: var(--cx-radius); padding: 20px; display: flex; flex-direction: column; }
#cosmos-lp .cx-mcompare__card.is-featured { border-color: rgba(3, 50, 154, 0.35); box-shadow: 0 10px 30px rgba(0, 8, 24, 0.07); }
#cosmos-lp .cx-mcompare__card h3 { font-family: var(--cx-ui); font-weight: 600; font-size: 17px; margin-bottom: 6px; }
#cosmos-lp .cx-mcompare__who { font-size: 13px; color: var(--cx-text-soft); margin-bottom: 12px; min-height: 40px; }
#cosmos-lp .cx-mcompare__card ul { display: grid; gap: 8px; margin-bottom: 12px; }
#cosmos-lp .cx-mcompare__card li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; border-bottom: 1px dashed var(--cx-line); padding-bottom: 8px; }
#cosmos-lp .cx-mcompare__card li span { color: var(--cx-text-soft); flex: 0 0 auto; }
#cosmos-lp .cx-mcompare__card li b { text-align: right; font-weight: 600; }
#cosmos-lp .cx-mcompare__note { font-size: 12.5px; color: var(--cx-text-soft); margin-bottom: 14px; }
#cosmos-lp .cx-mcompare__card .cx-btn { margin-top: auto; }
#cosmos-lp .cx-mcompare__card--soft { background: transparent; border-style: dashed; }

/* проверка семейной */
#cosmos-lp .cx-mcheck { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 26px; align-items: start; }
#cosmos-lp .cx-mcheck__points { display: grid; gap: 9px; margin-top: 16px; }
#cosmos-lp .cx-mcheck__points li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--cx-text-soft); }
#cosmos-lp .cx-mcheck__points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 6px; border-left: 1px solid var(--cx-wood); border-bottom: 1px solid var(--cx-wood); }
#cosmos-lp .cx-mcheck__app { background: var(--cx-paper); border: 1px solid var(--cx-line); border-radius: var(--cx-radius); padding: 22px; }
#cosmos-lp .cx-mcheck__app .cx-quiz__q { color: var(--cx-text); }
#cosmos-lp .cx-mcheck__app .cx-quiz__opt { background: #fff; border: 1px solid var(--cx-line); color: var(--cx-text); }
#cosmos-lp .cx-mcheck__app .cx-quiz__opt:hover { border-color: rgba(3, 50, 154, 0.45); }
#cosmos-lp .cx-mcheck__app .cx-quiz__opt.is-picked { border-color: var(--cx-blue); box-shadow: inset 0 0 0 1px var(--cx-blue); }
#cosmos-lp .cx-mcheck__app .cx-quiz__back { color: var(--cx-text-soft); }
#cosmos-lp .cx-mcheck__app .cx-field input, #cosmos-lp .cx-mcheck__app .cx-field select { background: #fff; border-color: var(--cx-line); color: var(--cx-text); }

/* эскроу: четыре шага */
#cosmos-lp .cx-steps--four { grid-template-columns: repeat(4, 1fr); }

/* смета + документы */
#cosmos-lp .cx-mdocs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#cosmos-lp .cx-mdocs__panel { background: var(--cx-paper); border: 1px solid var(--cx-line); border-radius: var(--cx-radius); padding: 24px; }
#cosmos-lp .cx-mdocs__list { display: grid; gap: 9px; margin: 12px 0 12px; }
#cosmos-lp .cx-mdocs__list li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--cx-text); }
#cosmos-lp .cx-mdocs__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 6px; border-left: 1px solid var(--cx-wood); border-bottom: 1px solid var(--cx-wood); }

/* комплектации: две кнопки */
#cosmos-lp .cx-packcta__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── калькулятор ── */
#cosmos-lp .cx-mcalc { max-width: 860px; }
#cosmos-lp .cx-mcalc__resume { font-size: 13.5px; color: var(--cx-text-soft); margin-bottom: 6px; }
#cosmos-lp .cx-mcalc__steps { display: flex; gap: 6px; margin: 14px 0 18px; flex-wrap: wrap; }
#cosmos-lp .cx-mcalc__steps span { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cx-text-soft); padding: 5px 10px; border: 1px solid var(--cx-line); border-radius: 999px; }
#cosmos-lp .cx-mcalc__steps span.is-cur { border-color: var(--cx-blue); color: var(--cx-blue); }
#cosmos-lp .cx-mcalc__steps span.is-done { border-color: rgba(180, 136, 91, 0.55); color: var(--cx-wood); }
#cosmos-lp .cx-mcalc__lead { color: var(--cx-text-soft); font-size: 14.5px; margin-bottom: 14px; }
#cosmos-lp .cx-mcalc__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
#cosmos-lp .cx-mcalc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
#cosmos-lp .cx-mcalc__grid--three { grid-template-columns: repeat(3, 1fr); }
#cosmos-lp .cx-mcalc__proj { text-align: left; background: var(--cx-paper); border: 1px solid var(--cx-line); border-radius: 14px; overflow: hidden; padding: 0; cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease; }
#cosmos-lp .cx-mcalc__proj:hover { border-color: rgba(3, 50, 154, 0.45); transform: translateY(-2px); }
#cosmos-lp .cx-mcalc__proj.is-on { border-color: var(--cx-blue); box-shadow: inset 0 0 0 1px var(--cx-blue); }
#cosmos-lp .cx-mcalc__proj img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
#cosmos-lp .cx-mcalc__projinfo { display: grid; gap: 3px; padding: 11px 13px 13px; }
#cosmos-lp .cx-mcalc__projinfo b { font-family: var(--cx-ui); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; }
#cosmos-lp .cx-mcalc__projinfo i { font-style: normal; font-size: 12px; color: var(--cx-text-soft); }
#cosmos-lp .cx-mcalc__projinfo em { font-style: normal; font-size: 12.5px; font-weight: 600; }
#cosmos-lp .cx-mcalc__projinfo u { text-decoration: none; color: var(--cx-blue); font-size: 12.5px; font-weight: 600; margin-top: 4px; }
#cosmos-lp .cx-mcalc__skip { display: block; margin-top: 14px; background: none; border: 1px dashed var(--cx-line); border-radius: 12px; width: 100%; padding: 12px; color: var(--cx-text-soft); cursor: pointer; font-size: 13.5px; }
#cosmos-lp .cx-mcalc__skip:hover { color: var(--cx-blue); border-color: rgba(3, 50, 154, 0.4); }
#cosmos-lp .cx-mcalc__hero { border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
#cosmos-lp .cx-mcalc__hero img { width: 100%; max-height: 240px; object-fit: cover; display: block; }
#cosmos-lp .cx-mcalc__fields { display: grid; gap: 14px; }
#cosmos-lp .cx-mcalc__packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
#cosmos-lp .cx-mcalc__packs--row { grid-template-columns: repeat(2, 1fr); }
#cosmos-lp .cx-mcalc__pack { display: grid; gap: 3px; border: 1px solid var(--cx-line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--cx-paper); }
#cosmos-lp .cx-mcalc__pack input { position: absolute; opacity: 0; }
#cosmos-lp .cx-mcalc__pack b { font-family: var(--cx-ui); font-weight: 600; font-size: 14px; }
#cosmos-lp .cx-mcalc__pack span { font-size: 12px; color: var(--cx-text-soft); }
#cosmos-lp .cx-mcalc__pack.is-on { border-color: var(--cx-blue); box-shadow: inset 0 0 0 1px var(--cx-blue); }
#cosmos-lp .cx-mcalc__row2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 14px; margin-top: 4px; }
#cosmos-lp .cx-mcalc__note { font-size: 12.5px; color: var(--cx-text-soft); margin-top: 8px; }
#cosmos-lp .cx-mcalc__warn { font-size: 12.5px; color: #8a5a17; background: rgba(180, 136, 91, 0.12); border-radius: 8px; padding: 8px 10px; margin-top: 8px; }
#cosmos-lp .cx-mcalc__dp { display: flex; gap: 8px; }
#cosmos-lp .cx-mcalc__dp input { flex: 1; }
#cosmos-lp .cx-mcalc__dpmode { display: flex; border: 1px solid var(--cx-line); border-radius: 10px; overflow: hidden; }
#cosmos-lp .cx-mcalc__dpmode button { background: none; border: 0; padding: 0 14px; cursor: pointer; font-size: 14px; color: var(--cx-text-soft); }
#cosmos-lp .cx-mcalc__dpmode button.is-on { background: var(--cx-blue); color: #fff; }
#cosmos-lp .cx-mcalc__range { width: 100%; accent-color: var(--cx-blue); }
#cosmos-lp .cx-mcalc__scenarios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
#cosmos-lp .cx-mcalc__scenario { border: 1px solid var(--cx-line); border-radius: 16px; padding: 18px; background: var(--cx-paper); display: flex; flex-direction: column; }
#cosmos-lp .cx-mcalc__scenario.is-featured { border-color: rgba(3, 50, 154, 0.4); }
#cosmos-lp .cx-mcalc__scenario h4 { font-family: var(--cx-ui); font-weight: 600; font-size: 15.5px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
#cosmos-lp .cx-mcalc__tag { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #1c6b2f; background: rgba(46, 125, 50, 0.1); border-radius: 999px; padding: 3px 9px; }
#cosmos-lp .cx-mcalc__tag--soft { color: var(--cx-text-soft); background: rgba(0, 8, 24, 0.06); }
#cosmos-lp .cx-mcalc__scenario ul { display: grid; gap: 7px; margin-bottom: 10px; }
#cosmos-lp .cx-mcalc__scenario li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; border-bottom: 1px dashed var(--cx-line); padding-bottom: 7px; }
#cosmos-lp .cx-mcalc__scenario li span { color: var(--cx-text-soft); }
#cosmos-lp .cx-mcalc__pay { margin: 4px 0 6px; }
#cosmos-lp .cx-mcalc__pay span { display: block; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cx-text-soft); margin-bottom: 3px; }
#cosmos-lp .cx-mcalc__pay b { font-family: var(--cx-display); font-weight: 400; font-size: 24px; letter-spacing: 0.01em; }
#cosmos-lp .cx-mcalc__pay b i { font-style: normal; font-size: 14px; color: var(--cx-text-soft); }
#cosmos-lp .cx-mcalc__pay small { display: block; font-size: 11.5px; color: var(--cx-text-soft); margin-top: 3px; }
#cosmos-lp .cx-mcalc__scenario .cx-btn { margin-top: auto; }
#cosmos-lp .cx-mcalc__scenario .cx-mcalc__note { margin-bottom: 12px; }
#cosmos-lp .cx-mcalc__tune { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 16px; font-size: 13.5px; }
#cosmos-lp .cx-mcalc__tune .cx-link { color: var(--cx-blue); }
#cosmos-lp .cx-mcalc__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
#cosmos-lp .cx-mcalc__summary { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; background: var(--cx-graphite); color: var(--cx-text-inv); border-radius: 12px; padding: 10px 16px; margin-top: 18px; font-size: 13px; }
#cosmos-lp .cx-mcalc__summary b { font-weight: 600; }
#cosmos-lp .cx-mcalc__gets { display: grid; gap: 8px; margin: 12px 0 16px; }
#cosmos-lp .cx-mcalc__gets li { position: relative; padding-left: 20px; font-size: 14px; }
#cosmos-lp .cx-mcalc__gets li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 6px; border-left: 1px solid var(--cx-wood); border-bottom: 1px solid var(--cx-wood); }
#cosmos-lp .cx-mcalc__formwrap { max-width: 520px; }
#cosmos-lp .cx-mcalc__undecided .cx-mcalc__row2 { grid-template-columns: repeat(3, 1fr); }

/* ипотечный попап: фото проекта */
#cosmos-lp .cx-mpopup__media { border-radius: 12px; overflow: hidden; position: relative; margin-bottom: 12px; }
#cosmos-lp .cx-mpopup__media img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
#cosmos-lp .cx-mpopup__media span { position: absolute; left: 10px; bottom: 8px; background: rgba(5, 8, 16, 0.6); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 8px; }
#cosmos-lp #cx-mpopup .cx-exit__panel { grid-template-columns: 1fr; max-width: 460px; }

/* ── адаптив ипотечного направления ── */
@media (max-width: 1100px) {
  #cosmos-lp .cx-mcompare { grid-template-columns: repeat(2, 1fr); }
  #cosmos-lp .cx-mquick__fields { grid-template-columns: repeat(3, 1fr); }
  #cosmos-lp .cx-steps--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  #cosmos-lp .cx-mcheck { grid-template-columns: 1fr; }
  #cosmos-lp .cx-mcalc__grid, #cosmos-lp .cx-mcalc__grid--three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  #cosmos-lp .cx-mquick { padding: 16px; }
  #cosmos-lp .cx-mquick__fields { grid-template-columns: 1fr; }
  #cosmos-lp .cx-mcompare { grid-template-columns: 1fr; }
  #cosmos-lp .cx-mcompare__who { min-height: 0; }
  #cosmos-lp .cx-mdocs { grid-template-columns: 1fr; }
  #cosmos-lp .cx-steps--four { grid-template-columns: 1fr; }
  #cosmos-lp .cx-mcalc__grid, #cosmos-lp .cx-mcalc__grid--three { grid-template-columns: 1fr; }
  #cosmos-lp .cx-mcalc__packs, #cosmos-lp .cx-mcalc__packs--row { grid-template-columns: 1fr; }
  #cosmos-lp .cx-mcalc__row2 { grid-template-columns: 1fr; }
  #cosmos-lp .cx-mcalc__undecided .cx-mcalc__row2 { grid-template-columns: 1fr; }
  #cosmos-lp .cx-mcalc__scenarios { grid-template-columns: 1fr; }
  #cosmos-lp .cx-mcalc__nav .cx-btn { flex: 1; min-height: 48px; }
  #cosmos-lp .cx-packcta__btns { width: 100%; }
  #cosmos-lp .cx-packcta__btns .cx-btn { flex: 1; }
}

/* длинные ипотечные H1: компактнее, чтобы уложиться в ~3 строки на 1440 */
#cosmos-lp .cx-hero--longh1 h1 { font-size: clamp(27px, 2.9vw, 42px); line-height: 1.22; max-width: 30ch; }
@media (max-width: 760px) { #cosmos-lp .cx-hero--longh1 h1 { font-size: 25px; } }

/* ═══════════════════ УПРОЩЁННЫЙ ИПОТЕЧНЫЙ СЦЕНАРИЙ ═══════════════════ */

/* подпись «архитектурная визуализация» — маленькая, не перегружает карточку */
#cosmos-lp .cx-card__rendercap { font-size: 10.5px; color: var(--cx-text-soft); margin: 2px 0 0; }
#cosmos-lp .cx-mcalc__rendercap { position: absolute; left: 8px; bottom: 8px; font-size: 10px; color: #fff; background: rgba(5, 8, 16, 0.55); padding: 2px 8px; border-radius: 6px; }

/* платёж на карточке каталога (ипотечные presets) — выделен сильнее цены */
#cosmos-lp .cx-card__mortgage { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 8px; }
#cosmos-lp .cx-card__mortgage b { font-family: var(--cx-display); font-weight: 400; font-size: 19px; color: var(--cx-blue); }
#cosmos-lp .cx-card__mortgage small { font-size: 11px; color: var(--cx-text-soft); }

/* карточки калькулятора: превью платежа */
#cosmos-lp .cx-mcalc__proj { position: relative; }
#cosmos-lp .cx-mcalc__paypreview { display: block; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--cx-blue); margin-top: 2px; }

/* компактный tri-state «Есть право на семейную ипотеку?» */
#cosmos-lp .cx-mcalc__tri { display: flex; gap: 8px; }
#cosmos-lp .cx-mcalc__trib { flex: 1; padding: 10px; border: 1px solid var(--cx-line); border-radius: 10px; background: var(--cx-paper); cursor: pointer; font-size: 14px; font-weight: 600; }
#cosmos-lp .cx-mcalc__trib.is-on { border-color: var(--cx-blue); background: rgba(3, 50, 154, 0.06); color: var(--cx-blue); }
#cosmos-lp .cx-mcalc__row2--three { grid-template-columns: repeat(3, 1fr); }

/* экран результата: дом + огромный ежемесячный платёж */
#cosmos-lp .cx-mcalc__result { max-width: 560px; }
#cosmos-lp .cx-mcalc__resulthero { border-radius: 16px; overflow: hidden; margin-bottom: 16px; }
#cosmos-lp .cx-mcalc__resulthero img { width: 100%; max-height: 280px; object-fit: cover; display: block; }
#cosmos-lp .cx-mcalc__mainline { font-family: var(--cx-display); font-weight: 400; font-size: clamp(21px, 2.4vw, 27px); margin: 4px 0 16px; }
#cosmos-lp .cx-mcalc__resultrows { display: grid; gap: 8px; margin-bottom: 14px; }
#cosmos-lp .cx-mcalc__resultrows li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; border-bottom: 1px dashed var(--cx-line); padding-bottom: 7px; }
#cosmos-lp .cx-mcalc__resultrows li span { color: var(--cx-text-soft); }
#cosmos-lp .cx-mcalc__bigpay { font-family: var(--cx-display); font-weight: 400; font-size: clamp(34px, 4.2vw, 48px); color: var(--cx-blue); margin: 6px 0 14px; line-height: 1.05; }
#cosmos-lp .cx-mcalc__bigpay i { font-style: normal; font-size: 16px; color: var(--cx-text-soft); margin-left: 4px; }
#cosmos-lp .cx-mcalc__bigpay--market { font-size: 20px; color: var(--cx-text); background: var(--cx-paper); border: 1px solid var(--cx-line); border-radius: 12px; padding: 14px 16px; }

@media (max-width: 760px) {
  #cosmos-lp .cx-mcheck { display: none; } /* секция удалена из разметки — правило на случай кэша */
  #cosmos-lp .cx-mcalc__tri { flex-direction: column; }
  #cosmos-lp .cx-mcalc__row2--three { grid-template-columns: 1fr; }
  #cosmos-lp .cx-mcalc__bigpay { font-size: 34px; }
}

/* каталог: одна общая пометка про рендеры вместо подписи на каждой карточке */
#cosmos-lp .cx-catalog__rendernote { font-size: 12.5px; color: var(--cx-text-soft); margin-top: 6px; max-width: 60ch; }

/* коммерческий дедлайн фиксации стоимости: DEMO-маркировка + дисклеймер */
#cosmos-lp .cx-timer__demo {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E7C9A1;
  background: rgba(231, 201, 161, 0.14);
  border: 1px solid rgba(231, 201, 161, 0.4);
  border-radius: 6px;
  padding: 3px 8px;
  width: fit-content;
  margin-bottom: 8px;
}
#cosmos-lp .cx-promo__findisc { font-size: 11px; line-height: 1.5; color: var(--cx-text-inv-soft); margin-top: 10px; }

/* источник у ипотечного дедлайна в промо-панели (пресет mortgage-deadline) */
#cosmos-lp .cx-promo__source { font-size: 11px; line-height: 1.5; color: var(--cx-text-inv-soft); margin-top: 10px; }
#cosmos-lp .cx-promo__source[hidden] { display: none; }
#cosmos-lp .cx-promo__findisc[hidden] { display: none; }

/* ── атмосферные фоны тёмных секций (AI-визуализации из рекламного пакета,
      обрезаны без текста; плотное затемнение — фон, а не «фото объекта») ── */
#cosmos-lp #estimate {
  background: linear-gradient(rgba(12, 15, 22, 0.93), rgba(12, 15, 22, 0.9)),
    url('../assets/backdrops/estimate.jpg') center 35% / cover no-repeat;
}
#cosmos-lp #mortgage-escrow {
  background: linear-gradient(rgba(12, 15, 22, 0.92), rgba(12, 15, 22, 0.9)),
    url('../assets/backdrops/escrow.jpg') center 45% / cover no-repeat;
}
#cosmos-lp #contacts {
  background: linear-gradient(rgba(0, 8, 24, 0.9), rgba(0, 8, 24, 0.94)),
    url('../assets/backdrops/final.jpg') center 40% / cover no-repeat;
}
