

/* Start:/bitrix/templates/main_v2/assets/page-hero.css?17797335734720*/
/* AP-R — единая hero-полоска для страниц без естественного hero-изображения
   (/compare/, /my/*).

   Решает: 2-я (прозрачная) шапка V2 спроектирована для тёмного фона hero.
   На страницах без hero иконки/текст шапки сливаются с белым контентом.
   Hero-полоска даёт тёмную «зону» под шапкой → контраст восстановлен,
   плюс получаем красивый контейнер для крошек и заголовка страницы.

   Используется через подключение SetAdditionalCSS('/bitrix/templates/main_v2/assets/page-hero.css'). */

.page-hero {
  position: relative;
  background: linear-gradient(135deg, #0e2a3e 0%, #13374f 38%, #1c4d6e 68%, #13374f 100%);
  color: #fff;
  /* Header V2 sticky+transparent (77px) рассчитан на тёмный фон ПОЗАДИ него.
     Поднимаем hero под header через отрицательный margin + компенсация padding-top. */
  margin-top: -77px;
  padding: calc(77px + 32px) 0 56px;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}
/* В sticky-режиме header может стать с фоном (.scrolled) — оставляем как есть.
   На mobile header высота 56px (см. main_v2 header.php), компенсируем. */
@media (max-width: 1023px) {
  .page-hero { margin-top: -56px; padding-top: calc(56px + 24px); }
}

/* Декоративные градиентные пятна — тёплый бирюзовый + холодный зелёный,
   чтобы полоска не была плоской «бетонной плитой». */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px circle at 78% -10%, rgba(23, 183, 191, .22), transparent 50%),
    radial-gradient(800px circle at 12% 110%, rgba(163, 217, 119, .12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* Едва заметные диагональные линии (текстура), как у дорогих сайтов */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, .025) 0 1px,
    transparent 1px 14px
  );
  pointer-events: none;
  z-index: 0;
}

.page-hero-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.page-hero-body {
  flex: 1 1 auto;
  min-width: 0;
}

/* Хлебные крошки */
.page-hero-crumbs {
  font: 500 13px/1.4 Manrope, system-ui, sans-serif;
  color: rgba(255, 255, 255, .65);
  margin: 0 0 14px;
}
.page-hero-crumbs a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  transition: color .15s ease;
}
.page-hero-crumbs a:hover { color: #fff; }
.page-hero-crumbs .sep { margin: 0 10px; color: rgba(255, 255, 255, .35); }

/* Заголовок и подзаголовок */
.page-hero-title {
  font: 800 44px/1.05 Manrope, system-ui, sans-serif;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  color: #fff;
}
.page-hero-title em {
  font-style: normal;
  color: #a3d977;
  font-weight: 800;
}
.page-hero-sub {
  font: 400 15px/1.55 Manrope, system-ui, sans-serif;
  color: rgba(255, 255, 255, .78);
  margin: 0;
  max-width: 640px;
}

/* Бейдж сверху над заголовком (опциональный, для категории/раздела) */
.page-hero-eyebrow {
  display: inline-block;
  background: rgba(163, 217, 119, .18);
  color: #c5e8a3;
  font: 700 11px/1 Manrope;
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 14px;
  border: 1px solid rgba(163, 217, 119, .35);
}

/* Декор-блок справа (SVG, иллюстрация раздела) */
.page-hero-art {
  flex: 0 0 auto;
  position: relative;
  width: 220px;
  height: 180px;
  opacity: .9;
}
.page-hero-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Mobile */
@media (max-width: 1023px) {
  .page-hero { padding: 28px 0 36px; }
  .page-hero-wrap { gap: 16px; }
  .page-hero-title { font-size: 36px; }
  .page-hero-art { width: 140px; height: 120px; opacity: .75; }
}

@media (max-width: 640px) {
  .page-hero { padding: 22px 0 28px; }
  .page-hero-title { font-size: 28px; line-height: 1.1; }
  .page-hero-sub { font-size: 14px; }
  .page-hero-art { display: none; }
  .page-hero-wrap { padding: 0 16px; }
}

/* End */


/* Start:/my/favorites/favorites.css?177972884111816*/
/* AP-R /my/favorites/ — стили страницы избранного (Фаза 0).
   Использует sitetemplate compare_v2 (полная V2-шапка/подвал).
   Бренд-палитра: #13374f (тёмно-синий), #17b7bf (бирюзовый), #a3d977 (зелёный CTA), #e74c3c (сердечко). */

.fav-main { background: #fbfaf6; min-height: 60vh; padding: 32px 0 96px; }
.fav-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Раздел-навигация */
.fav-sections { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 32px; padding: 0; border-bottom: 1px solid #e2e8ec; }
.fav-section { display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px;
  font: 700 14px/1 Manrope, system-ui, sans-serif; color: #5c6f80; text-decoration: none;
  border-bottom: 3px solid transparent; transform: translateY(1px); transition: color .15s, border-color .15s; }
.fav-section svg { width: 18px; height: 18px; flex-shrink: 0; }
.fav-section:hover { color: #13374f; }
.fav-section.is-active { color: #13374f; border-bottom-color: #17b7bf; }
.fav-section.is-disabled { color: #b9c4cc; cursor: default; pointer-events: none; }
.fav-section-count { background: #a3d977; color: #13374f; font: 800 12px/1 Manrope; padding: 3px 7px; border-radius: 999px; min-width: 18px; text-align: center; }
.fav-section-count[data-fav-empty="1"] { display: none; }
.fav-section-soon { background: #f0e6c2; color: #8a6a1a; font: 700 11px/1 Manrope; padding: 3px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }

/* Табы внутри избранного */
.fav-tabs { display: flex; gap: 4px; margin: 0 0 24px; }
.fav-tab { background: transparent; border: 1.5px solid #e2e8ec; border-radius: 999px;
  padding: 10px 20px; font: 700 14px/1 Manrope; color: #5c6f80; cursor: pointer; transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 8px; }
.fav-tab:hover { border-color: #17b7bf; color: #13374f; }
.fav-tab.is-active { background: #13374f; border-color: #13374f; color: #fff; }
.fav-tab-count { background: rgba(255,255,255,.18); color: inherit; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.fav-tab:not(.is-active) .fav-tab-count { background: #eef2f5; color: #5c6f80; }

/* Loading */
.fav-loading { text-align: center; padding: 80px 24px; color: #6b7c89; font: 500 15px/1.4 Manrope; }
.fav-spinner { width: 40px; height: 40px; border: 3px solid #e2e8ec; border-top-color: #17b7bf; border-radius: 50%;
  margin: 0 auto 16px; animation: fav-spin 1s linear infinite; }
@keyframes fav-spin { to { transform: rotate(360deg); } }

/* Empty state */
.fav-empty { text-align: center; padding: 64px 24px 96px; }
.fav-empty-art { width: 120px; height: 120px; margin: 0 auto 24px; }
.fav-empty h2 { font: 700 24px/1.2 Manrope; color: #13374f; margin: 0 0 12px; }
.fav-empty p { font: 400 15px/1.55 Manrope; color: #5c6f80; max-width: 480px; margin: 0 auto 28px; }
.fav-empty-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Кнопки */
.fav-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font: 800 14px/1 Manrope; padding: 12px 22px; border-radius: 8px;
  text-decoration: none; transition: all .15s ease; }
.fav-btn-primary { background: #a3d977; color: #13374f; }
.fav-btn-primary:hover { background: #8fc960; }
.fav-btn-secondary { background: #17b7bf; color: #fff; }
.fav-btn-secondary:hover { background: #149aa0; }
.fav-btn-ghost { background: transparent; color: #5c6f80; border: 1.5px solid #e2e8ec; }
.fav-btn-ghost:hover { color: #13374f; border-color: #b9c4cc; }
.fav-btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* Сетка карточек */
.fav-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.fav-grid-layout { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .fav-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fav-grid, .fav-grid-layout { grid-template-columns: 1fr; } }

/* Карточка ЖК */
.fav-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(19,55,79,.06);
  display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; position: relative; }
.fav-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(19,55,79,.10); }
.fav-card-img { position: relative; aspect-ratio: 16/10; background: #eaf6f7; overflow: hidden; }
.fav-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-card-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #c0cdd5; font-size: 13px; }
.fav-card-rm { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.95); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #e74c3c; box-shadow: 0 2px 8px rgba(19,55,79,.18); transition: all .15s ease; padding: 0; }
.fav-card-rm:hover { background: #e74c3c; color: #fff; transform: scale(1.08); }
.fav-card-rm svg { width: 18px; height: 18px; fill: currentColor; }
.fav-card-pill { position: absolute; top: 10px; left: 10px; background: rgba(19,55,79,.85); color: #fff;
  font: 700 11px/1 Manrope; padding: 6px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.fav-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fav-card-name { font: 700 17px/1.25 Manrope; color: #13374f; margin: 0; }
.fav-card-name a { color: inherit; text-decoration: none; }
.fav-card-name a:hover { color: #17b7bf; }
.fav-card-city { font: 500 13px/1.3 Manrope; color: #6b7c89; display: inline-flex; align-items: center; gap: 4px; }
.fav-card-city svg { width: 13px; height: 13px; }
.fav-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 4px; }
.fav-card-meta .item .l { font: 500 11px/1.2 Manrope; color: #94a3ad; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
.fav-card-meta .item .v { font: 700 14px/1.2 Manrope; color: #13374f; }
.fav-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #f0f3f5; }
.fav-card-actions a { flex: 1; text-align: center; font: 700 13px/1 Manrope; padding: 10px 12px; border-radius: 6px;
  text-decoration: none; transition: all .15s ease; }
.fav-card-actions .open { background: #f0f6f7; color: #13374f; }
.fav-card-actions .open:hover { background: #d5edef; }

/* Карточка планировки */
.fav-card-layout .fav-card-img { aspect-ratio: 4/3; background: #fbfaf6; }
.fav-card-layout .fav-card-img img { object-fit: contain; }
.fav-card-layout .fav-card-body { padding: 14px 16px 16px; gap: 8px; }
.fav-card-layout .fav-card-name { font-size: 15px; }
.fav-card-layout .fav-card-meta { grid-template-columns: 1fr 1fr; gap: 6px 12px; }

/* Sticky bulk-bar */
.fav-bulk { position: fixed; left: 0; right: 0; bottom: 0; background: #13374f; color: #fff;
  box-shadow: 0 -4px 24px rgba(0,0,0,.18); z-index: 50; padding: 14px 0; }
.fav-bulk[hidden] { display: none; }
.fav-bulk-row { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fav-bulk-info { display: flex; align-items: baseline; gap: 8px; }
.fav-bulk-count { font: 800 24px/1 Manrope; color: #a3d977; }
.fav-bulk-label { font: 500 14px/1 Manrope; color: rgba(255,255,255,.75); }
.fav-bulk-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fav-bulk .fav-btn-ghost { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.25); }
.fav-bulk .fav-btn-ghost:hover { color: #fff; border-color: #fff; }

/* ─── Модалка «Получить подбор от менеджера» ─────────────────────────── */
.fav-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; }
.fav-modal[hidden] { display: none; }
.fav-modal-overlay { position: absolute; inset: 0; background: rgba(19, 55, 79, .55); backdrop-filter: blur(2px); cursor: pointer; }
.fav-modal-card { position: relative; background: #fff; border-radius: 18px; max-width: 540px; width: 100%; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28); padding: 36px 36px 28px; }
.fav-modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: #f4f7f9; color: #5c6f80; border: none; cursor: pointer; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; transition: all .15s ease; padding: 0; }
.fav-modal-close:hover { background: #e2e8ec; color: #13374f; }

.fav-modal-eyebrow { display: inline-block; background: #fff5d9; color: #8a6a1a; font: 700 11px/1 Manrope;
  padding: 6px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.fav-modal-title { font: 800 24px/1.2 Manrope; color: #13374f; margin: 0 0 12px; letter-spacing: -.01em; }
.fav-modal-lead { font: 400 14px/1.5 Manrope; color: #5c6f80; margin: 0 0 18px; }
.fav-modal-incl { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px;
  background: #f4f9f9; border-radius: 10px; padding: 14px 16px; }
.fav-modal-incl li { font: 500 13px/1.45 Manrope; color: #13374f; padding-left: 22px; position: relative; }
.fav-modal-incl li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: #17b7bf; font-weight: 700; font-size: 14px; }

.fav-modal-fields { display: flex; flex-direction: column; gap: 14px; }
.fav-modal-field { display: flex; flex-direction: column; gap: 6px; }
.fav-modal-field-label { font: 700 12px/1 Manrope; color: #5c6f80; text-transform: uppercase; letter-spacing: .04em; }
.fav-modal-field input { border: 1.5px solid #e2e8ec; border-radius: 8px; padding: 12px 14px; font: 500 15px/1.2 Manrope; color: #13374f;
  transition: border-color .15s ease; background: #fbfaf6; }
.fav-modal-field input:focus { outline: none; border-color: #17b7bf; background: #fff; }
.fav-modal-field input::placeholder { color: #b9c4cc; }
.fav-modal-err { background: #fde8e7; color: #b3261e; font: 500 13px/1.4 Manrope; padding: 10px 12px; border-radius: 8px; }
.fav-modal-submit { width: 100%; padding: 14px 22px; font-size: 15px; margin-top: 4px; }
.fav-modal-tos { font: 400 12px/1.45 Manrope; color: #94a3ad; margin: 8px 0 0; text-align: center; }
.fav-modal-tos a { color: #5c6f80; }

.fav-modal-success { text-align: center; padding: 12px 0; }
.fav-modal-success-art { width: 80px; height: 80px; margin: 0 auto 16px; }
.fav-modal-success h2 { font: 800 22px/1.2 Manrope; color: #13374f; margin: 0 0 10px; }
.fav-modal-success p { font: 400 14px/1.5 Manrope; color: #5c6f80; margin: 0 0 22px; }

@media (max-width: 760px) {
  .fav-title { font-size: 30px; }
  .fav-head { padding: 16px 0 24px; }
  .fav-sections { gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; flex-wrap: nowrap; }
  .fav-section { padding: 12px 14px; font-size: 13px; }
  .fav-bulk { padding: 10px 0; }
  .fav-bulk-row { padding: 0 14px; gap: 8px; }
  .fav-bulk-count { font-size: 18px; }
  .fav-bulk-label { font-size: 12px; }
  .fav-bulk-actions { width: 100%; }
  .fav-bulk-actions .fav-btn { padding: 10px 12px; font-size: 12px; flex: 1; min-width: 0; }
  .fav-bulk-actions #fav-clear-btn { flex: 0; }
  .fav-modal-card { padding: 28px 22px 22px; border-radius: 14px; }
  .fav-modal-title { font-size: 20px; }
}

/* End */
/* /bitrix/templates/main_v2/assets/page-hero.css?17797335734720 */
/* /my/favorites/favorites.css?177972884111816 */
