/* ==========================================================
   Xhome.am — оформление
   Цвета логотипа: чёрный, голубой #29A9DA, белый.
   Сначала стили для телефона, ниже — для планшета и компьютера.
   ========================================================== */

:root,
[data-theme="dark"] {
  --bg: #07090C;
  --bg-glass: rgba(7, 9, 12, .9);
  --surface: #10151B;
  --surface-2: #161C23;
  --surface-3: #1D252E;
  --line: #1F2730;
  --line-2: #2C3743;
  --text: #EEF3F7;
  --text-2: #C4CED8;
  --muted: #8794A3;
  --blue: #29A9DA;
  --blue-hover: #4ABCE8;
  --blue-text: #47BDEA;
  --blue-soft: rgba(41, 169, 218, .13);
  --blue-line: rgba(41, 169, 218, .42);
  --on-blue: #021219;
  --warn: #F5A524;
  --danger: #FF6B6B;
  --ok: #2BD47D;
  --ok-text: #4ADE8F;
  --hdr: #030405;
  --shadow: 0 14px 34px rgba(0, 0, 0, .5);
  --overlay: rgba(1, 3, 5, .72);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #F1F4F7;
  --bg-glass: rgba(241, 244, 247, .92);
  --surface: #FFFFFF;
  --surface-2: #F4F7F9;
  --surface-3: #E8EEF2;
  --line: #E0E6EC;
  --line-2: #CAD4DD;
  --text: #0B1218;
  --text-2: #2B3641;
  --muted: #5D6A77;
  --blue: #29A9DA;
  --blue-hover: #1E97C7;
  --blue-text: #0E76AA;
  --blue-soft: rgba(41, 169, 218, .12);
  --blue-line: rgba(14, 118, 170, .38);
  --on-blue: #021219;
  --warn: #F5A524;
  --danger: #D93636;
  --ok: #1FB866;
  --ok-text: #11804A;
  --hdr: #05070A;
  --shadow: 0 14px 34px rgba(16, 32, 48, .13);
  --overlay: rgba(4, 9, 14, .55);
  color-scheme: light;
}

:root {
  --font: 'Inter', 'Noto Sans Armenian', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Montserrat', 'Noto Sans Armenian', 'Inter', system-ui, sans-serif;
  --font-num: 'Montserrat', 'Inter', system-ui, sans-serif;
  --radius: 14px;
  --tabbar-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* Армянская версия: шрифт с армянскими буквами для всего текста, цифры цен — Montserrat */
html[lang="hy"] {
  --font: 'Noto Sans Armenian', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Noto Sans Armenian', 'Montserrat', system-ui, sans-serif;
}

/* ---------- Основа ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
  overflow-x: hidden;
  overflow-wrap: break-word; /* длинные армянские слова переносятся, а не распирают страницу */
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

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

.icon {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

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

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: 16px; }

.muted { color: var(--muted); }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-text); margin-bottom: 8px;
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.btn--primary { background: var(--blue); color: var(--on-blue); }
.btn--primary:hover { background: var(--blue-hover); }
.btn--surface { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn--surface:hover { border-color: var(--line-2); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--outline { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--outline:hover { border-color: #fff; }
.btn--lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--wide { width: 100%; max-width: 320px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  color: inherit; transition: background-color .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
[data-theme="light"] .sheet .icon-btn:hover,
[data-theme="light"] .filters .icon-btn:hover { background: var(--surface-3); }

.count-badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--blue); color: var(--on-blue);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.count-badge--inline { position: static; margin-left: 2px; }
.count-badge[hidden] { display: none; }

/* ---------- Поля форм ---------- */

.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: 13px; color: var(--muted); font-weight: 500; }

.input,
.field input,
.field textarea,
.select select {
  width: 100%; height: 46px; padding: 0 14px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 11px;
  font-size: 16px; /* 16px — чтобы iPhone не увеличивал страницу при вводе */
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 92px; }
.input::placeholder,
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: .8; }
.input:focus,
.field input:focus,
.field textarea:focus,
.select select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

.select { position: relative; display: block; }
.select select { padding-right: 40px; cursor: pointer; text-overflow: ellipsis; }
.select > .icon {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}

.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--danger); }

/* Чекбокс */
.check {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; cursor: pointer; font-size: 14px; color: var(--text-2);
  user-select: none;
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  flex: 0 0 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid var(--line-2); background: var(--surface-2);
  transition: background-color .15s, border-color .15s;
}
.check input:checked + .check__box {
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23021219' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  border-color: var(--blue);
}
.check input:focus-visible + .check__box { outline: 2px solid var(--blue); outline-offset: 2px; }
.check.is-invalid .check__box { border-color: var(--danger); }

/* Переключатель из нескольких вариантов */
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  padding: 4px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 38px; padding: 0 8px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: background-color .15s, color .15s;
}
.seg input:checked + span { background: var(--blue); color: var(--on-blue); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }

.form { display: grid; gap: 14px; }
.form h3 { font-family: var(--font-head); font-size: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 359px) { .form__row { grid-template-columns: 1fr; } }

.form-done { text-align: center; padding: 28px 8px; display: grid; justify-items: center; gap: 8px; }
.form-done[hidden] { display: none; }
.form-done h3 { font-family: var(--font-head); font-size: 20px; }
.form-done__icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-text); margin-bottom: 6px;
}
.form-done__icon .icon { width: 28px; height: 28px; stroke-width: 2.4; }

/* ---------- Шапка ---------- */

.hdr { background: var(--hdr); color: #fff; position: relative; z-index: 30; }

.hdr__row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "logo actions" "search search";
  align-items: center; gap: 10px 8px;
  padding-top: 10px; padding-bottom: 12px;
}

.hdr__logo { grid-area: logo; display: block; }

/* Логотип из слоёв: крыша домика опускается на место, в окне загорается свет,
   потом раз в несколько секунд крыша «подпрыгивает», а окно вспыхивает */
.logo { position: relative; display: block; height: 54px; aspect-ratio: 814 / 246; }
@media (max-width: 359px) { .logo { height: 44px; } }
.logo > img,
.logo__roof,
.logo__roof img { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo__x { transform-origin: 12% 62%; animation: logo-x .7s cubic-bezier(.2, .8, .2, 1) both; }
.logo__roof { transform-origin: 8% 22%; animation: logo-roof 1s cubic-bezier(.34, 1.5, .6, 1) .25s both, logo-roof-idle 9s ease-in-out 4s infinite; }
.logo__roof img { transform-origin: 8% 22%; transition: transform .4s cubic-bezier(.34, 1.5, .6, 1); }
.logo__win { animation: logo-win 1.1s linear .95s both, logo-glow 9s ease-in-out 4.4s infinite; }
.logo__text { animation: logo-text .8s cubic-bezier(.2, .8, .2, 1) .45s both; }
.hdr__logo:hover .logo__roof img { transform: translateY(-10%) rotate(-5deg); }

@keyframes logo-x { from { opacity: 0; transform: scale(.7) rotate(-10deg); } }
@keyframes logo-roof {
  0% { opacity: 0; transform: translateY(-70%) rotate(-14deg); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes logo-roof-idle {
  0%, 86%, 100% { transform: none; }
  90% { transform: translateY(-11%) rotate(-5deg); }
  94% { transform: translateY(1.5%); }
  97% { transform: translateY(-2%); }
}
@keyframes logo-win {
  0% { opacity: 0; }
  20% { opacity: 1; }
  30% { opacity: .15; }
  45% { opacity: 1; }
  55% { opacity: .4; }
  70%, 100% { opacity: 1; }
}
@keyframes logo-glow {
  0%, 84%, 100% { opacity: 1; filter: none; }
  87% { opacity: .2; filter: none; }
  90%, 95% { opacity: 1; filter: brightness(2.3) drop-shadow(0 0 5px rgba(130, 220, 255, 1)); }
}
@keyframes logo-text { from { opacity: 0; transform: translateX(-4%); } }

.hdr__search { grid-area: search; position: relative; display: flex; gap: 8px; }
.hdr__search > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8C99A6; pointer-events: none; }
.hdr__search input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px 0 44px;
  background: #11171E; color: #fff;
  border: 1px solid #222C37; border-radius: 12px; font-size: 16px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.hdr__search input::placeholder { color: #7D8A97; }
.hdr__search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(41, 169, 218, .2); }
.hdr__search input::-webkit-search-cancel-button { filter: invert(.6); }
.hdr__search-btn { display: none; }

.hdr__actions { grid-area: actions; justify-self: end; display: flex; align-items: center; gap: 2px; }
.hdr__actions .cur,
.hdr__theme,
.hdr__add,
.hdr__actions .lang { display: none; }

/* Переключатель языка */
.lang { padding: 3px; gap: 2px; border-radius: 10px; background: #11171E; border: 1px solid #222C37; }
.lang button { height: 32px; padding: 0 9px; border-radius: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #8C99A6; transition: color .2s, background-color .2s; }
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: var(--blue); color: var(--on-blue); }
.hdr__lang span {
  display: inline-grid; place-items: center; min-width: 36px; height: 28px; padding: 0 6px;
  border: 1px solid #2A3540; border-radius: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #DDE5EC;
}
/* Телефон: выбор из трёх языков в маленьком меню под кнопкой */
.hdr__langwrap { position: relative; display: flex; }
.lang-pop {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40;
  display: grid; gap: 2px; min-width: 168px; padding: 6px;
  background: #11171E; border: 1px solid #222C37; border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}
.lang-pop[hidden] { display: none; }
.lang-pop button {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 9px;
  color: #DDE5EC; font-size: 15px; font-weight: 600; text-align: left;
}
.lang-pop button b { min-width: 34px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: #8C99A6; }
.lang-pop button:hover,
.lang-pop button:focus-visible { background: #1A222B; outline: none; }
.lang-pop button[aria-pressed="true"] { background: rgba(41, 169, 218, .16); color: #fff; }
.lang-pop button[aria-pressed="true"] b { color: var(--blue); }

/* Статус «консультант на связи» */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.status__dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #7D8A97; }
.status.is-open { color: var(--ok-text); }
.status.is-open .status__dot { position: relative; background: var(--ok); }
.status.is-open .status__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ring 2s ease-out infinite; }
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(43, 212, 125, .55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(43, 212, 125, 0); }
}

.hdr__theme .icon--sun { display: none; }
[data-theme="light"] .hdr__theme .icon--sun { display: block; }
[data-theme="light"] .hdr__theme .icon--moon { display: none; }

.cur { position: relative; display: inline-flex; align-items: center; }
.cur__select {
  height: 40px; padding: 0 30px 0 12px; border-radius: 10px;
  background: #11171E; color: #fff; border: 1px solid #222C37;
  font-weight: 600; font-size: 14px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.cur__chev { position: absolute; right: 8px; width: 16px; height: 16px; color: #8C99A6; pointer-events: none; }

.subnav { display: none; }

/* ---------- Главный экран ---------- */

/* Фото лучших объектов сменяют друг друга; поверх — затемнение, заголовок и быстрый подбор */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff; background: #05080B;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.1);
  transition: opacity 1.4s ease, transform 10s cubic-bezier(.2, .6, .3, 1);
}
.hero__slide.is-on { opacity: 1; transform: none; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 6, 9, .62) 0%, rgba(3, 6, 9, .5) 38%, rgba(3, 6, 9, .93) 100%);
}
.hero.is-plain {
  background:
    radial-gradient(700px 360px at 10% 0%, rgba(41, 169, 218, .28), transparent 70%),
    radial-gradient(600px 300px at 100% 100%, rgba(41, 169, 218, .14), transparent 70%),
    #05080B;
}

.hero__inner { position: relative; display: grid; gap: 18px; padding-top: 26px; padding-bottom: 20px; }
.hero__main { min-width: 0; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%;
  padding: 7px 13px 7px 11px; border-radius: 999px;
  background: rgba(41, 169, 218, .16); border: 1px solid rgba(92, 198, 238, .38);
  color: #B5E8FA; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__pulse { position: relative; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #2BD47D; }
.hero__pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: ring 2s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }

.hero__title {
  margin-top: 14px; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(30px, 8.6vw, 66px); line-height: 1.07; letter-spacing: -.015em;
}
.hero__title span {
  color: #4CC3EE;
  background: linear-gradient(92deg, #7FDDFF 0%, #36B5E5 55%, #29A9DA 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__sub { margin-top: 12px; max-width: 580px; color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.5; }
.hero__sub b { color: #fff; font-weight: 700; }

/* Быстрый подбор */
.finder {
  margin-top: 22px; padding: 8px; border-radius: 22px;
  background: rgba(9, 14, 19, .66);
  border: 1px solid rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.finder__tabs {
  display: flex; gap: 4px; padding: 0 0 8px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.finder__tabs::-webkit-scrollbar { display: none; }
.finder__tab {
  flex: 0 0 auto; height: 38px; padding: 0 15px; border-radius: 12px;
  color: rgba(255, 255, 255, .74); font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.finder__tab:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.finder__tab[aria-pressed="true"] { background: #fff; color: #061017; }

.finder__row { display: grid; gap: 8px; }
.finder__field {
  position: relative; display: block; height: 60px; min-width: 0; border-radius: 15px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .11);
  transition: border-color .2s, background-color .2s;
}
.finder__field:hover { border-color: rgba(255, 255, 255, .24); }
.finder__field:focus-within { border-color: var(--blue); background: rgba(41, 169, 218, .12); }
.finder__icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 21px; height: 21px; color: #5CC6EE; pointer-events: none; }
.finder__chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: rgba(255, 255, 255, .55); pointer-events: none; }
.finder__label {
  position: absolute; left: 48px; right: 40px; top: 10px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .58);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
/* список растянут на всё поле — открывается нажатием в любом месте */
.finder__field select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 22px 40px 0 48px; border: 0; border-radius: inherit;
  background: transparent; color: #fff; font-size: 16px; font-weight: 600;
  cursor: pointer; text-overflow: ellipsis;
  -webkit-appearance: none; appearance: none;
}
.finder__field select:focus { outline: none; }
.finder__field option,
.finder__field optgroup { background: #0E151C; color: #fff; }
.finder__go {
  height: 58px; border-radius: 15px; padding: 0 22px;
  font-size: 16px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(41, 169, 218, .35);
}
.finder__go .icon { width: 20px; height: 20px; }
.finder__n {
  display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 9px; margin-left: 2px;
  border-radius: 999px; background: rgba(2, 18, 25, .16); font: 800 13.5px/1 var(--font-num);
}
.finder__go.is-empty { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .75); box-shadow: none; }

.hero__trust { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .88); }
.hero__trust .icon { width: 18px; height: 18px; color: #5CC6EE; stroke-width: 2; }

/* Объект на фото и полоски переключения фото */
.hero__side { display: flex; align-items: center; min-width: 0; }
.hero__feature { display: none; }
.hero__dots { display: flex; gap: 4px; }
.hero__dot { display: grid; align-items: center; width: 30px; height: 24px; }
.hero__dot i { position: relative; display: block; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .3); }
.hero__dot i::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dot:hover i { background: rgba(255, 255, 255, .5); }
.hero__dot.is-on i::after { animation: dot-fill 6.5s linear forwards; }
.hero.is-paused .hero__dot.is-on i::after { animation-play-state: paused; }
@keyframes dot-fill { to { transform: scaleX(1); } }

.hero__feature {
  position: relative; gap: 3px; width: 330px; padding: 16px 58px 16px 18px;
  text-align: left; color: #fff; border-radius: 18px;
  background: rgba(9, 14, 19, .6); border: 1px solid rgba(255, 255, 255, .15);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  transition: border-color .2s, transform .2s;
}
.hero__feature:hover { border-color: rgba(92, 198, 238, .65); transform: translateY(-2px); }
.hero__feature > span:not(.hero__feature-go) { animation: feat-in .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero__feature-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hero__feature-top .badge { flex: none; }
.hero__feature-cat { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__feature-price { margin-top: 6px; font-family: var(--font-num); font-weight: 800; font-size: 25px; line-height: 1.15; }
.hero__feature-price small { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.hero__feature-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.hero__feature-loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .72); min-width: 0; }
.hero__feature-loc .icon { width: 15px; height: 15px; color: #5CC6EE; }
.hero__feature-loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__feature-go {
  position: absolute; right: 14px; top: 50%; margin-top: -18px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: var(--on-blue); transition: transform .2s;
}
.hero__feature:hover .hero__feature-go { transform: translateX(3px); }
.hero__feature-go .icon { width: 18px; height: 18px; stroke-width: 2.4; }
@keyframes feat-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Плавное появление ---------- */

.reveal [data-reveal]:not(.is-in) { opacity: 0; }
.reveal [data-reveal].is-in { animation: reveal-up .8s cubic-bezier(.2, .7, .2, 1) backwards; }
.reveal .hero__main > [data-reveal]:nth-child(2) { animation-delay: .08s; }
.reveal .hero__main > [data-reveal]:nth-child(3) { animation-delay: .16s; }
.reveal .hero__main > [data-reveal]:nth-child(4) { animation-delay: .24s; }
.reveal .hero__main > [data-reveal]:nth-child(5) { animation-delay: .32s; }
.reveal .perks > [data-reveal]:nth-child(2),
.reveal .contacts__grid > [data-reveal]:nth-child(2) { animation-delay: .1s; }
.reveal .perks > [data-reveal]:nth-child(3) { animation-delay: .2s; }
.reveal .perks > [data-reveal]:nth-child(4) { animation-delay: .3s; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(26px); } }

/* карточки объявлений появляются по очереди */
.card--in { animation: card-in .55s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Популярные места ---------- */

.places { padding: 8px 0 40px; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px; }
.section-head__note { color: var(--muted); font-size: 14px; max-width: 420px; }

.places__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 200px; grid-auto-rows: 150px; gap: 10px; }
.place {
  position: relative; isolation: isolate; overflow: hidden; min-width: 0;
  display: flex; align-items: flex-end; padding: 14px; text-align: left; color: #fff;
  border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(135deg, #123241, #071016);
}
.place:first-child { grid-column: span 2; }
.place img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.place::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 6, 9, .05) 25%, rgba(3, 6, 9, .85)); }
.place:hover img { transform: scale(1.07); }
.place__body { display: grid; gap: 2px; min-width: 0; padding-right: 8px; }
.place__name { font-family: var(--font-head); font-weight: 800; font-size: 18px; line-height: 1.2; }
.place:first-child .place__name { font-size: 24px; }
.place__meta { font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.place__go {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5, 10, 14, .45); border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.place__go .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.place:hover .place__go { background: var(--blue); border-color: var(--blue); color: var(--on-blue); transform: translateX(2px); }

/* Позвонить консультанту */
.callband {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px;
  margin-top: 14px; padding: 14px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(41, 169, 218, .17), rgba(41, 169, 218, .03) 70%), var(--surface);
  border: 1px solid var(--blue-line);
}
.callband__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--blue); color: var(--on-blue); }
.callband__icon .icon { width: 24px; height: 24px; stroke-width: 2; }
.callband__text { display: grid; gap: 4px; min-width: 0; }
.callband__text b { font-family: var(--font-head); font-size: 15.5px; line-height: 1.3; }
.callband__phones { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.callband__phones .btn { padding: 0 10px; font-family: var(--font-num); font-weight: 700; font-size: 15px; letter-spacing: .01em; }

/* Категории — строка вкладок-«пилюль» над объявлениями; на телефоне листается пальцем */
.cats {
  display: flex; gap: 8px;
  margin: 0 -16px 10px; padding: 2px 16px 4px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cats::-webkit-scrollbar { display: none; }

.cat {
  flex: 0 0 auto; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 7px 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: border-color .2s, background-color .2s, color .2s;
}
.cat > .icon { width: 18px; height: 18px; color: var(--blue-text); transition: color .2s; }
.cat:hover { border-color: var(--blue-line); color: var(--text); }
.cat__n {
  display: inline-grid; place-items: center;
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font: 700 12.5px/1 var(--font-num); color: var(--muted);
  transition: background-color .2s, color .2s, border-color .2s;
}
.cat[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.cat[aria-current="true"] > .icon { color: var(--on-blue); }
.cat[aria-current="true"] .cat__n { background: rgba(2, 18, 25, .14); border-color: transparent; color: var(--on-blue); }

/* ---------- Каталог ---------- */

.catalog { padding: 24px 0 36px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.crumbs a:hover { color: var(--blue-text); }
.crumbs span[aria-hidden] { opacity: .6; }

.catalog__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.catalog__title { font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.catalog__count { color: var(--muted); font-size: 14px; }

.catalog__layout { position: relative; }

/* Панель фильтров: на телефоне — выезжает снизу */
.filters {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  height: 92vh; height: 92dvh;
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .4);
  transform: translateY(102%); visibility: hidden;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s .32s;
}
.filters-open .filters { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .8, .2, 1); }

.filters-backdrop {
  position: fixed; inset: 0; z-index: 65; background: var(--overlay);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.filters-open .filters-backdrop { opacity: 1; pointer-events: auto; }

.filters__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 8px 6px 18px; border-bottom: 1px solid var(--line);
}
.filters__head::before {
  content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 4px; border-radius: 2px; background: var(--line-2);
}
.filters__head h3 { font-family: var(--font-head); font-size: 18px; }

.filters__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.filters__foot {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px;
  padding: 12px 16px calc(12px + var(--safe-b));
  border-top: 1px solid var(--line); background: var(--surface);
}

/* Группа фильтров */
.fg { border-bottom: 1px solid var(--line); }
.fg:last-child { border-bottom: 0; }
.fg > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 18px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 15px;
}
.fg > summary::-webkit-details-marker { display: none; }
.fg > summary .icon { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.fg[open] > summary .icon { transform: rotate(180deg); }
.fg__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-left: 8px; display: none; vertical-align: middle; }
.fg.has-value .fg__dot { display: inline-block; }
.fg__body { padding: 0 18px 16px; display: grid; gap: 10px; }
.fg__hint { font-size: 12px; color: var(--muted); }

.range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.range .input { height: 44px; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  min-width: 46px; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line-2); color: var(--text-2);
  font-weight: 600; font-size: 14px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.pill:hover { border-color: var(--muted); }
.pill[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
.checks--one { grid-template-columns: 1fr; }
.checks .check { min-height: 38px; font-size: 14px; }

.cat-switch { display: grid; gap: 6px; }
.cat-switch button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 44px; padding: 0 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; text-align: left;
}
.cat-switch button .icon { color: var(--blue-text); }
.cat-switch__n { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cat-switch button:hover { border-color: var(--blue-line); }

/* Панель над результатами */
.toolbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  margin: 0 -16px 10px; padding: 8px 16px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.toolbar__filters { flex: 0 0 auto; padding: 0 14px; }
.toolbar__sort { flex: 1; min-width: 0; }
.toolbar__sort select { height: 44px; padding-right: 34px; background: var(--surface); font-size: 15px; font-weight: 500; }

.view-toggle { display: flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.view-toggle button { width: 38px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }

/* Выбранные условия */
.active { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.active:empty { display: none; }
.chip-x {
  display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 6px 0 12px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-text);
  border: 1px solid var(--blue-line); font-size: 13px; font-weight: 600;
}
.chip-x .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.chip-x--reset { background: transparent; border-color: var(--line-2); color: var(--text-2); padding: 0 12px; }

/* Сетка объявлений */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-3); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card__media.is-broken img { opacity: 0; }

.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 56px); }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 7px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(3, 5, 8, .72); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.badge .icon { width: 13px; height: 13px; }
.badge--top { background: var(--blue); color: var(--on-blue); }
.badge--urgent { background: var(--warn); color: #1C1300; }
/* Внизу фото карточки: сколько фото и есть ли видео */
.card__counts { position: absolute; left: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 16px); }
.card__counts .badge { text-transform: none; letter-spacing: 0; font-size: 12px; }
.badge--video .icon { width: 11px; height: 11px; }

/* Лента «Продано» / «Сдано» через угол фото */
.ribbon { position: absolute; top: 0; left: 0; z-index: 1; width: 160px; height: 160px; overflow: hidden; pointer-events: none; }
.ribbon span {
  position: absolute; top: 38px; left: -55px; width: 210px; transform: rotate(-45deg);
  padding: 6px 0; text-align: center; white-space: nowrap;
  background: linear-gradient(90deg, #0F6F9C, #29A9DA 50%, #0F6F9C); color: #fff;
  font: 800 11px/1.15 var(--font-head); letter-spacing: .1em; text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, .4); border-bottom: 1px solid rgba(0, 0, 0, .3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.ribbon--lg { width: 240px; height: 240px; }
.ribbon--lg span { top: 58px; left: -75px; width: 300px; padding: 9px 0; font-size: 15px; letter-spacing: .14em; }
.card.is-sold .card__media img { filter: grayscale(.85) brightness(.6); }
.card.is-sold .card__price { color: var(--muted); }

.fav-btn {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center; color: #fff;
}
.fav-btn::before {
  content: ''; position: absolute; inset: 5px; border-radius: 50%;
  background: rgba(3, 5, 8, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.fav-btn .icon { position: relative; width: 19px; height: 19px; transition: transform .2s; }
.fav-btn.is-active .icon { fill: var(--blue); stroke: var(--blue); }
.fav-btn.pop .icon { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.3); } }

.card__body { display: flex; flex-direction: column; gap: 3px; padding: 10px 11px 11px; flex: 1; min-width: 0; }
.card__price { font-family: var(--font-num); font-weight: 700; font-size: 16px; color: var(--blue-text); line-height: 1.25; }
.card__price small { font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); }

/* Цена: прежняя (зачёркнута, со стрелкой «снижена / изменена»), новая и пересчёт в валюту посетителя */
.price-old { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.price-old s { text-decoration-thickness: 1.5px; }
.price-chg { display: inline-flex; align-items: center; gap: 2px; padding: 0 6px; border-radius: 999px; font-family: var(--font); font-size: 11px; font-weight: 700; line-height: 17px; white-space: nowrap; }
.price-chg--down { background: rgba(43, 212, 125, .15); color: var(--ok-text); }
.price-chg--up { background: var(--surface-3); color: var(--text-2); }
.price-now { display: block; }
.price-conv { display: block; margin-top: 1px; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); }
.hero__feature-price .price-old, .hero__feature-price .price-conv { color: rgba(255, 255, 255, .72); }
.popw__price .price-old { font-size: 14px; }
.popw__price .price-conv { font-size: 13px; }

.card__title {
  font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__loc { display: flex; align-items: flex-start; gap: 4px; font-size: 12.5px; line-height: 1.35; color: var(--muted); min-width: 0; }
.card__loc .icon { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.card__loc span { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__desc { display: none; }
.card__meta { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--muted); }
.card__id { display: none; }

/* На телефоне и планшете — одна кнопка, которая переключает вид */
@media (max-width: 1023px) {
  .view-toggle { padding: 0; border: 0; background: none; }
  .view-toggle button { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
  .view-toggle button[aria-pressed="true"] { display: none; }
}

/* Вид «списком» */
.grid.is-list { grid-template-columns: 1fr; }
.grid.is-list .fav-btn { right: auto; left: calc(40% - 48px); }
@media (max-width: 639px) {
  .grid.is-list .badges .badge:not(.badge--top):not(.badge--urgent) { display: none; }
}
.grid.is-list .card { display: grid; grid-template-columns: 40% 1fr; }
.grid.is-list .card__media { aspect-ratio: auto; height: 100%; min-height: 128px; }
.grid.is-list .card__body { padding: 10px 12px; }

.empty {
  grid-column: 1 / -1; text-align: center;
  padding: 36px 20px; border-radius: 18px;
  background: var(--surface); border: 1px dashed var(--line-2);
  display: grid; justify-items: center; gap: 10px;
}
.empty__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); }
.empty h3 { font-family: var(--font-head); font-size: 18px; }
.empty p { color: var(--muted); max-width: 420px; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }

.more-wrap { display: flex; justify-content: center; margin-top: 18px; }
.more-wrap .btn[hidden] { display: none; }

/* ---------- Собственникам ---------- */

.owners { padding: 8px 0 36px; }
.owners__card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 22px; padding: 26px 20px; border-radius: 22px; color: #fff;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(41, 169, 218, .38), transparent 65%),
    radial-gradient(300px 200px at 0% 100%, rgba(41, 169, 218, .12), transparent 70%),
    linear-gradient(140deg, #0B1720, #04070A);
  border: 1px solid rgba(41, 169, 218, .28);
}
.owners__card .eyebrow { color: #5CC6EE; }
.owners__photo {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: center / cover no-repeat; opacity: .3;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
.owners__card h2 { font-family: var(--font-head); font-size: clamp(22px, 5.6vw, 32px); font-weight: 800; }
.owners__text > p:not(.eyebrow) { margin-top: 10px; color: #B9C6D2; max-width: 620px; }
.owners__actions { display: grid; gap: 10px; }
.owners__card .btn--outline { background: rgba(5, 10, 14, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.owners__card .btn--primary { box-shadow: 0 12px 30px rgba(41, 169, 218, .35); }

.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #E4EBF1; }
.ticks .icon { color: #5CC6EE; stroke-width: 2.4; width: 18px; height: 18px; }

/* ---------- О компании ---------- */

.about { padding: 8px 0 36px; }
.section-head { margin-bottom: 18px; }
.section-head h2,
.contacts h2 { font-family: var(--font-head); font-size: clamp(22px, 5.4vw, 30px); font-weight: 800; }

.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.perk {
  position: relative; overflow: hidden; padding: 18px 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.perk::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), transparent); opacity: 0; transition: opacity .25s;
}
.perk:hover { border-color: var(--blue-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.perk:hover::before { opacity: 1; }
.perk__n { position: absolute; top: 14px; right: 16px; font: 800 26px/1 var(--font-num); color: var(--line-2); }
.perk__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, #3BBDEB, #1A84B8); color: #fff;
  box-shadow: 0 10px 24px rgba(41, 169, 218, .28);
}
.perk__icon .icon { width: 24px; height: 24px; }
.perk h3 { font-family: var(--font-head); font-size: 15.5px; margin-bottom: 6px; }
.perk p { font-size: 13.5px; color: var(--muted); }

/* ---------- Контакты ---------- */

.contacts { padding: 8px 0 40px; }
.contacts__grid { display: grid; gap: 22px; }
.contacts__info > .muted { margin-top: 8px; }

.clist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; }
.clist li { display: flex; align-items: flex-start; gap: 12px; }
.clist li > div { min-width: 0; padding-top: 2px; }
.clist__phones { display: flex; flex-wrap: wrap; gap: 2px 16px; font-family: var(--font-num); font-size: 17px; }
.clist__phones a { font-weight: 700; }
.clist__value { display: block; }
.clist__note { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); font-weight: 500 !important; }
.clist .status { margin-top: 4px; font-weight: 600; }
.clist__icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--blue-text); }
.clist__label { display: block; font-size: 12px; color: var(--muted); }
.clist a, .clist span:not(.clist__label):not(.clist__icon) { font-weight: 600; }
.clist a:hover { color: var(--blue-text); }

.messengers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.msg {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px;
  transition: border-color .2s;
}
.msg:hover { border-color: var(--line-2); }
.msg--wa .icon { color: #25D366; }
.msg--vb .icon { color: #8F7CF7; }
.msg--tg .icon { color: #2AABEE; }
.msg--ani .icon { color: var(--blue-text); }

/* Соцсети */
.socials__label { margin-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.social {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s;
}
.social:hover { border-color: var(--blue-line); }
.social > span { display: grid; min-width: 0; line-height: 1.3; }
.social b { font-size: 13.5px; }
.social small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.soc--wa .icon { color: #25D366; }
.soc--ig .icon { color: #E4405F; }
.soc--fb .icon { color: #1877F2; }
.soc--tt .icon { color: var(--text); }
.soc--vb .icon { color: #8F7CF7; }
.soc--tg .icon { color: #2AABEE; }
.socials--icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.soc {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: #11171E; border: 1px solid #222C37; color: #D2DBE3; transition: border-color .2s, color .2s;
}
.soc .icon { color: inherit !important; }
.soc:hover { border-color: var(--blue); color: var(--blue); }

/* Карта офиса */
.office-map { margin-top: 22px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.office-map iframe { display: block; width: 100%; height: 240px; border: 0; background: var(--surface-2); }
.office-map__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 14px; }
.office-map__addr { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; font-size: 14px; }
.office-map__addr .icon { color: var(--blue-text); width: 18px; height: 18px; }
.office-map__route { flex: 0 0 auto; height: 40px; padding: 0 12px; font-size: 14px; }

/* Тёмные карты в тёмной теме */
[data-theme="dark"] .office-map iframe,
[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.75) brightness(.95); }

.panel { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }

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

/* Снизу запас под кнопку Лилит: в конце страницы она не закрывает подвал */
.footer { background: var(--hdr); color: #A9B5C1; padding: 34px 0 88px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand img { height: 54px; width: auto; margin-bottom: 12px; }
.footer__brand p { max-width: 360px; }
.footer__brand .footer__tagline { margin-bottom: 6px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer__col span { color: #A9B5C1; }
.footer__col { display: grid; gap: 8px; align-content: start; }
.footer__col h4 { color: #fff; font-size: 14px; margin-bottom: 4px; }
.footer__col a, .footer__col button { color: #D2DBE3; text-align: left; font-size: 14px; }
.footer__col a, .footer__col span { overflow-wrap: anywhere; }
.footer__col a:hover, .footer__col button:hover { color: var(--blue); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  margin-top: 26px; padding-top: 16px; border-top: 1px solid #161C23; font-size: 12px; color: #7C8895;
}

/* ---------- Нижняя панель (телефон) ---------- */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(4, 6, 9, .94); color: #8995A2;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid #161D25;
}
.tabbar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; color: inherit; min-width: 0;
}
.tabbar__item .icon { width: 22px; height: 22px; }
.tabbar__item.is-active { color: var(--blue); }
.tabbar__item.is-active .icon { stroke-width: 2.1; }
.tabbar__icon { position: relative; display: block; }
.tabbar__icon .count-badge { top: -6px; right: -12px; }
.tabbar__live { position: absolute; top: -2px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px #05070A; }
.tabbar__item--add { color: #DDE5EC; }
.tabbar__ani { width: 24px; height: 24px; border-radius: 7px; }
.tabbar__live--on { display: block; }

/* На телефоне и планшете Лилит открывается из нижней панели — плавающая кнопка не закрывает объявления */
@media (max-width: 1023px) {
  .ani-fab, .ani-teaser { display: none !important; }
}
.tabbar__plus {
  width: 46px; height: 46px; margin-top: -20px; border-radius: 15px;
  display: grid; place-items: center; background: var(--blue); color: var(--on-blue);
  box-shadow: 0 6px 18px rgba(41, 169, 218, .45), 0 0 0 4px #05070A;
}
.tabbar__plus .icon { stroke-width: 2.6; }

/* ---------- Окна ---------- */

.sheet {
  padding: 0; border: 0; margin: 0; background: transparent; color: var(--text);
  width: 100%; max-width: 100%; max-height: 100%;
}
.sheet::backdrop { background: var(--overlay); }
.sheet[open] .sheet__inner { animation: sheet-in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-in { from { transform: translateY(28px); opacity: 0; } }

.sheet__inner {
  background: var(--surface); overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Окна-формы и меню на телефоне выезжают снизу */
.sheet--form,
.sheet--menu { margin-top: auto; }
.sheet--form .sheet__inner,
.sheet--menu .sheet__inner {
  max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0;
  padding-bottom: var(--safe-b);
}
.sheet__head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 8px 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.sheet__head h3 { font-family: var(--font-head); font-size: 18px; }
.sheet__body { padding: 16px 18px 22px; }
.sheet__body .form > .muted { font-size: 14px; }

.menu { display: grid; gap: 2px; }
.menu__logo { height: 38px; width: auto; }
[data-theme="light"] .sheet--menu .sheet__head { background: var(--hdr); color: #fff; }
.menu__label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; }
.menu__label:first-child { margin-top: 0; }
.menu > a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 10px; border-radius: 12px; font-weight: 600; }
.menu > a .icon { color: var(--blue-text); }
.menu > a:hover, .menu > a[aria-current="true"] { background: var(--surface-2); }
.menu__nav { display: grid; gap: 8px; margin-bottom: 10px; }
.menu__group { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.menu__group > summary {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 14px;
  font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none;
}
.menu__group > summary::-webkit-details-marker { display: none; }
.menu__group > summary > .icon:first-child { color: var(--blue-text); }
.menu__chev { margin-left: auto; color: var(--muted); transition: transform .2s; }
.menu__group[open] > summary .menu__chev { transform: rotate(180deg); }
.menu__group a {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px;
  border-top: 1px solid var(--line); font-weight: 600; font-size: 15px;
}
.menu__group a .icon { width: 20px; height: 20px; color: var(--blue-text); }
.menu__group a[aria-current="true"] { color: var(--blue-text); background: var(--blue-soft); }
.menu__group .nav-count { margin-left: auto; font: 700 12.5px/1.2 var(--font-num); color: var(--muted); }
.menu__settings { display: grid; gap: 14px; margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Объявление: на телефоне — на весь экран */
.sheet--listing { height: 100%; }
.sheet--listing .sheet__inner { height: 100%; height: 100dvh; background: var(--bg); }

.ld { position: relative; min-height: 100%; display: flex; flex-direction: column; }

.ld__bar { position: sticky; top: 0; z-index: 5; height: 0; }
.ld__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 0; }
.ld__bar-group { display: flex; gap: 8px; }
.ld__bar .ld__bar-label,
.ld__bar .ld__x { display: none; }
.ld__bar-inner { transition: background-color .2s; }
.ld.is-scrolled .ld__bar-inner {
  background: var(--bg-glass); border-bottom: 1px solid var(--line); padding-bottom: 10px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ld.is-scrolled .ld__bar .ld__bar-label {
  display: block; flex: 1; min-width: 0; font-weight: 600; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ld.is-scrolled .ld__bar .round-btn { background: transparent; color: var(--text); }
.ld.is-scrolled .ld__bar .round-btn.is-active .icon { fill: var(--blue); stroke: var(--blue); }
.round-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(3, 5, 8, .62); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.round-btn.is-active .icon { fill: var(--blue); stroke: var(--blue); }

.gal { position: relative; background: #000; }
.gal__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__track img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: center; }
.gal__count {
  position: absolute; right: 10px; bottom: 10px;
  height: 26px; padding: 0 10px; border-radius: 13px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(3, 5, 8, .7); color: #fff; font-size: 12.5px; font-weight: 600;
}
.gal__count .icon { width: 14px; height: 14px; }
/* Объявление без фото: значок типа и надпись вместо пустого чёрного блока */
.gal__none {
  aspect-ratio: 4 / 3; display: grid; place-items: center; align-content: center; gap: 12px; padding: 20px;
  background: radial-gradient(circle at 50% 42%, rgba(41, 169, 218, .16), transparent 62%), var(--surface-3);
  color: var(--muted); font-size: 14px; font-weight: 600; text-align: center;
}
.gal__none .icon { width: 48px; height: 48px; color: var(--blue); }
.card__none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: radial-gradient(circle at 50% 50%, rgba(41, 169, 218, .12), transparent 65%); }
.card__none .icon { width: 40px; height: 40px; opacity: .6; }
.gal__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; display: none; place-items: center;
  background: rgba(3, 5, 8, .6); color: #fff;
}
.gal__nav--prev { left: 12px; }
.gal__nav--next { right: 12px; }
.gal__thumbs { display: none; }
.gal__track img { cursor: zoom-in; }
/* Кнопка «открыть фото крупно» */
.gal__zoom {
  position: absolute; left: 10px; bottom: 10px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(3, 5, 8, .7); color: #fff;
}
.gal__zoom .icon { width: 17px; height: 17px; }
.gal__zoom:hover { background: rgba(3, 5, 8, .85); }
/* Кнопка «Смотреть видео» на фото объявления */
.gal__video {
  position: absolute; left: 52px; bottom: 10px;
  height: 34px; padding: 0 14px 0 11px; border-radius: 17px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(3, 5, 8, .7); color: #fff; font-size: 13px; font-weight: 600;
  transition: background-color .15s, color .15s;
}
.gal__video .icon { width: 14px; height: 14px; }
.gal__video:hover { background: var(--blue); color: var(--on-blue); }
.gal__video--solo { left: 10px; }

/* ---------- Видео в объявлении ---------- */
.vids { display: grid; gap: 12px; }
.vid {
  position: relative; aspect-ratio: var(--ar, 16 / 9);
  width: min(100%, calc(70vh * var(--ar, 1.7778))); margin-inline: auto;
  border-radius: 14px; overflow: hidden; background: #000;
}
.vid__start { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vid__start img,
.vid__start video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vid__play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(3, 5, 8, .62); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .2s, background-color .2s, color .2s;
}
.vid__play .icon { width: 26px; height: 26px; margin-left: 4px; }
.vid__start:hover .vid__play { background: var(--blue); color: var(--on-blue); transform: scale(1.06); }
.vid__tag { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(3, 5, 8, .7); color: #fff; font-size: 12px; font-weight: 700; }
.vid > video,
.vid > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* ---------- POP-окно: объявление само открывается через заданное время ---------- */
.sheet--pop { margin-top: auto; }
.sheet--pop .sheet__inner { max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; padding-bottom: var(--safe-b); }
.popw { position: relative; }
.popw__x {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(3, 5, 8, .62); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.popw__x:hover { background: rgba(3, 5, 8, .85); }
.popw__media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; }
.popw__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.popw__media:hover img { transform: scale(1.03); }
.popw__label {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: 14px; background: var(--blue); color: var(--on-blue);
  font-size: 12.5px; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.popw__label .icon { width: 14px; height: 14px; fill: currentColor; }
.popw__body { display: grid; gap: 6px; padding: 16px 18px 20px; }
.popw__body .badges { position: static; max-width: none; }
.popw__price { font-family: var(--font-num); font-weight: 800; font-size: 24px; color: var(--blue-text); line-height: 1.2; }
.popw__price small { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--muted); }
.popw__title {
  font-family: var(--font-head); font-size: 17px; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.popw__loc { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 14px; }
.popw__loc .icon { flex: none; width: 16px; height: 16px; }
.popw__loc > span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popw__id { margin-left: auto; flex: none; font-size: 12.5px; }
.popw__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
.popw__actions .btn { height: 48px; }
/* на телефоне «Позвонить» — только значок, чтобы длинная армянская надпись главной кнопки помещалась */
@media (max-width: 639px) {
  .popw__actions .btn--surface { width: 48px; padding: 0; }
  .popw__actions .btn--surface span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Фото на весь экран с увеличением ---------- */
.pv {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: rgba(0, 0, 0, var(--pv-a, 1)); color: #fff;
  overscroll-behavior: contain;
}
.pv:focus { outline: none; }
.pv::backdrop { background: transparent; }
.pv[open] { animation: pv-in .2s ease-out; }
@keyframes pv-in { from { opacity: 0; } }
.pv__stage {
  position: absolute; inset: 0; overflow: hidden;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  cursor: zoom-in;
}
.pv.is-zoomed .pv__stage { cursor: grab; }
.pv.is-zoomed .pv__stage:active { cursor: grabbing; }
.pv__strip { display: flex; width: 100%; height: 100%; will-change: transform; }
.pv__strip.is-anim { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.pv__slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.pv__slide img {
  position: absolute; inset: 0; margin: auto;
  max-width: 100%; max-height: 100%; transform-origin: 50% 50%;
  -webkit-user-drag: none; will-change: transform;
}
.pv__slide img.is-anim { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.pv__bar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 22px 18px;
  background: linear-gradient(rgba(0, 0, 0, .55), transparent);
  pointer-events: none;
}
.pv__bar > * { pointer-events: auto; }
.pv__count { font: 600 14px/1 var(--font-num); letter-spacing: .02em; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.pv__tools { display: flex; gap: 8px; margin-left: auto; }
/* Тёмные полупрозрачные кнопки видны и на светлых, и на тёмных фото */
.pv__btn,
.pv__nav {
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(12, 14, 18, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .15s, opacity .15s;
}
.pv__btn { width: 44px; height: 44px; }
.pv__btn:hover,
.pv__nav:hover { background: rgba(12, 14, 18, .8); }
.pv__btn:disabled { opacity: .4; cursor: default; }
.pv__btn:disabled:hover { background: rgba(12, 14, 18, .55); }
.pv__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; display: none; }
.pv__nav .icon { width: 24px; height: 24px; }
.pv__nav--prev { left: 18px; }
.pv__nav--next { right: 18px; }
.pv.is-single .pv__nav { display: none !important; }
.pv__nav[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) { .pv__nav { display: grid; } }
.pv__hint {
  position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px); padding: 9px 16px; border-radius: 999px;
  background: rgba(0, 0, 0, .66); font-size: 13.5px; font-weight: 500; text-align: center;
  pointer-events: none; opacity: 0; transition: opacity .3s;
}
.pv__hint.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .pv[open] { animation: none; }
}

.ld__main { padding: 16px 16px 8px; display: grid; gap: 22px; }
.ld__head .badges { position: static; margin-bottom: 8px; max-width: none; }
.ld__title { font-family: var(--font-head); font-size: 21px; font-weight: 700; line-height: 1.25; }
.ld__loc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 8px; color: var(--text-2); font-size: 14px; text-align: left; }
.ld__loc .icon { width: 16px; height: 16px; color: var(--blue-text); }
.ld__loc-link { color: var(--blue-text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Мини-карта объекта */
.ld__addr { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-weight: 600; font-size: 14.5px; }
.ld__addr .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--blue-text); }
.map { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13.5px; font-weight: 600; }
.map__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-text); }
.map__links .icon { width: 16px; height: 16px; }
.map__note { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* Объект продан */
.soldbox {
  display: grid; gap: 12px; padding: 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(41, 169, 218, .18), rgba(41, 169, 218, .04) 70%), var(--surface);
  border: 1px solid var(--blue-line);
}
.soldbox__ribbon {
  justify-self: start; padding: 5px 12px; border-radius: 8px;
  background: linear-gradient(90deg, #0F6F9C, #29A9DA); color: #fff;
  font: 800 12px/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
}
.soldbox__text b { font-size: 16px; }
.soldbox__text p { margin-top: 4px; color: var(--text-2); font-size: 14px; }
.soldbox__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.soldbox__actions .btn,
.ld__cta .btn,
.calld__row .msg { white-space: normal; height: auto; min-height: 44px; padding: 6px 10px; line-height: 1.2; text-align: center; }
.ld__cta .btn { min-height: 48px; }
.ld.is-sold .pricebox__main { color: var(--muted); }
.ld.is-sold .gal__track img { filter: grayscale(.6) brightness(.8); }
.ld__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.pricebox { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.pricebox__main { font-family: var(--font-num); font-weight: 800; font-size: 28px; color: var(--blue-text); line-height: 1.15; }
.pricebox__main small { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--muted); }
.pricebox__main .price-old { font-size: 16px; margin-bottom: 3px; }
.pricebox__main .price-chg { font-size: 12.5px; line-height: 20px; }
.pricebox__alt { margin-top: 6px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.pricebox__ppm { margin-top: 2px; font-size: 13px; color: var(--text-2); }
.pricebox__contact { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.agent { display: flex; align-items: center; gap: 12px; }
.agent__avatar { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px; display: grid; place-items: center; background: #05070A; border: 1px solid var(--blue-line); overflow: hidden; }
.agent__avatar img { width: 34px; height: auto; }
.agent__name { font-weight: 700; font-size: 15px; }
.agent__note { font-size: 12.5px; color: var(--muted); }
.msg-row { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 8px; }
.msg-row .msg { justify-content: center; padding: 0 8px; font-size: 13px; min-width: 0; }
@media (max-width: 420px) {
  .msg-row:has(.msg:nth-child(3)) .msg { flex-direction: column; gap: 3px; height: 60px; padding: 0 4px; font-size: 11.5px; }
}
.agent .status { margin-top: 2px; font-size: 12.5px; }
.pricebox__contact .btn { font-family: var(--font-num); letter-spacing: .01em; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fact {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0;
}
.fact .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--blue-text); }
.fact__value { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact__label { font-size: 12px; color: var(--muted); }

.ld__section > h3 { font-family: var(--font-head); font-size: 17px; margin-bottom: 12px; }
.params { margin: 0; display: grid; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.params > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.params > div:last-child { border-bottom: 0; }
.params dt { color: var(--muted); }
.params dd { margin: 0; font-weight: 600; text-align: right; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; }
.tag .icon { width: 15px; height: 15px; color: var(--blue-text); stroke-width: 2.4; }

.ld__desc { color: var(--text-2); font-size: 15px; line-height: 1.65; }
/* Английская версия: описание ещё не переведено — показываем оригинал и ссылку на переводчик */
.ld__desc-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 8px; font-size: 13.5px; color: var(--muted); }
.ld__desc-note a { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-text); font-weight: 600; }
.ld__desc-note a .icon { width: 16px; height: 16px; }

.ld__aside { padding: 0 16px; }
.ld__aside-in { display: grid; gap: 14px; }
.ld__form { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ld__form .form { gap: 10px; }
.ld__form h4 { font-size: 15px; }

.ld__similar { padding: 26px 0 20px; }
.ld__similar > h3 { font-family: var(--font-head); font-size: 17px; padding: 0 16px; margin-bottom: 12px; }
.similar {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 10px;
  padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.similar::-webkit-scrollbar { display: none; }
.similar .card { scroll-snap-align: start; }

.ld__cta {
  position: sticky; bottom: 0; z-index: 4; margin-top: auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  padding: 10px 16px calc(10px + var(--safe-b));
  background: var(--bg-glass); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ld__cta .msg { justify-content: center; height: 48px; }
.ld__cta .btn { height: 48px; }

/* Уведомление */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); z-index: 100;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow); transition: opacity .25s, transform .25s;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* Окно «Позвонить консультанту» */
.calld { display: grid; gap: 10px; }
.calld > .status { margin-bottom: 2px; }
.calld__phone {
  display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 18px; border-radius: 14px;
  background: var(--blue); color: var(--on-blue);
  font: 700 20px/1 var(--font-num); letter-spacing: .02em;
}
.calld__phone + .calld__phone { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.calld__phone .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.calld__text { font-size: 14px; }
.calld__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.calld__row .msg { justify-content: center; padding: 0 8px; min-width: 0; }
.calld__row .msg[hidden] { display: none; }

/* Меню: язык и соцсети */
.menu__lang { margin-bottom: 14px; }
.menu__socials .soc { background: var(--surface-2); border-color: var(--line); color: var(--text); }

/* ==========================================================
   Помощница «Лилит»
   ========================================================== */

.ani { position: fixed; left: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px); z-index: 45; }

.ani-fab {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 58px; border-radius: 29px; padding: 0;
  background: #05070A; color: #fff; border: 1px solid rgba(41, 169, 218, .6);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 4px rgba(41, 169, 218, .12);
  transition: transform .2s, box-shadow .2s;
}
.ani-fab:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .5), 0 0 0 5px rgba(41, 169, 218, .2); }
.ani-fab,
.ani-teaser { transition: opacity .2s, transform .2s, box-shadow .2s; }
.ani.is-away .ani-fab,
.ani.is-away .ani-teaser,
.ani.is-scrolled-away .ani-fab,
.ani.is-scrolled-away .ani-teaser,
.ani.is-blocked:not(.is-open) .ani-fab,
.ani.is-blocked:not(.is-open) .ani-teaser { opacity: 0; transform: scale(.85); pointer-events: none; }
.ani-fab:active { transform: scale(.97); }
.ani-fab__label { display: none; padding-right: 18px; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.ani-fab__dot { position: absolute; left: 42px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); border: 2px solid #05070A; }

/* Аватар Лилит — домик из логотипа, в окне мигает свет, когда она «печатает» */
.ani-ava {
  position: relative; display: block; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #123142, #05070A 72%);
}
.ani-ava img { position: absolute; left: 14%; top: 13%; width: 72%; height: 72%; }
.ani-ava__win { animation: ani-win 5s ease-in-out 2s infinite; }
.ani-ava__roof { animation: ani-roof 5s ease-in-out 2s infinite; transform-origin: 30% 20%; }
.ani.is-typing .ani-ava__win { animation: ani-win-type .7s steps(2) infinite; }
@keyframes ani-win {
  0%, 72%, 100% { filter: none; }
  80%, 88% { filter: brightness(2) drop-shadow(0 0 3px rgba(130, 220, 255, .95)); }
}
@keyframes ani-roof {
  0%, 64%, 82%, 100% { transform: none; }
  70% { transform: translateY(-7%) rotate(-4deg); }
  76% { transform: translateY(1%); }
}
@keyframes ani-win-type { 50% { filter: brightness(2.2) drop-shadow(0 0 3px rgba(130, 220, 255, 1)); } }

.ani-teaser {
  position: absolute; left: 0; bottom: calc(100% + 12px); width: min(280px, calc(100vw - 24px));
  padding: 12px 34px 12px 14px; border-radius: 16px 16px 16px 4px;
  background: var(--surface); color: var(--text); border: 1px solid var(--blue-line); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.ani-teaser.is-shown { opacity: 1; transform: none; }
.ani-teaser__text { display: block; text-align: left; font-size: 14px; line-height: 1.45; font-weight: 500; }
.ani-teaser__x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); }
.ani-teaser__x .icon { width: 16px; height: 16px; }

.ani-panel {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  background: var(--bg); opacity: 0; transform: translateY(16px);
  transition: opacity .22s ease, transform .22s ease;
}
.ani-panel[hidden] { display: none; }
.ani.is-open .ani-panel { opacity: 1; transform: none; }
.ani.is-open .ani-teaser { display: none; }

.ani-head {
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 6px 10px 12px;
  background: var(--hdr); color: #fff; border-bottom: 1px solid #161D25;
}
.ani-ava--head { flex-basis: 44px; width: 44px; height: 44px; border: 1px solid rgba(41, 169, 218, .5); }
.ani-head__text { flex: 1; min-width: 0; }
.ani-head h3 { font-family: var(--font-head); font-size: 16px; }
.ani-head p { font-size: 12px; color: #9AA6B2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ani-head .icon-btn { color: #C9D2DB; }

.ani-log {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 10px;
}
.ani-msg { max-width: 90%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; animation: msg-in .25s ease both; }
.ani-msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.ani-msg--user { align-self: flex-end; background: var(--blue); color: var(--on-blue); border-bottom-right-radius: 5px; font-weight: 500; }
.ani-msg.is-typing { padding: 8px 12px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.ani-sum { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--blue-text); }
.ani-dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.ani-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.ani-dots i:nth-child(2) { animation-delay: .15s; }
.ani-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.ani-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 4px; animation: msg-in .25s ease both; }
.ani-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 18px;
  border: 1px solid var(--blue-line); background: var(--blue-soft); color: var(--blue-text);
  font-size: 13.5px; font-weight: 600; line-height: 1.25; text-align: left; transition: background-color .2s;
}
.ani-chip:hover { background: rgba(41, 169, 218, .22); }
.ani-chip .icon { width: 16px; height: 16px; }
.ani-chip.is-primary { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }

.ani-cards { display: grid; gap: 8px; margin-top: 10px; }
.ani-card {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%;
  padding: 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); text-align: left;
  transition: border-color .2s;
}
.ani-card:hover { border-color: var(--blue-line); }
.ani-card img,
.ani-card__ph { width: 76px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--surface-3); }
.ani-card.is-sold img { filter: grayscale(.85) brightness(.6); }
.ani-card__body { display: grid; gap: 1px; min-width: 0; }
.ani-card b { font-family: var(--font-num); font-size: 15px; color: var(--blue-text); }
.ani-card b small { font-family: var(--font); font-size: 11.5px; font-weight: 500; color: var(--muted); }
.ani-card__body > span { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ani-card__body small { display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.ani-card__body small .icon { width: 12px; height: 12px; }

.ani-lead { display: flex; gap: 6px; margin-top: 10px; }
.ani-lead input {
  flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-size: 16px;
}
.ani-lead input:focus { outline: none; border-color: var(--blue); }
.ani-lead input.is-invalid { border-color: var(--danger); }
.ani-lead .btn { height: 42px; padding: 0 14px; }

.ani-input { display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--surface); }
.ani-input input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 23px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-size: 16px;
}
.ani-input input::placeholder { color: var(--muted); }
.ani-input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.ani-send { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--on-blue); }
.ani-send .icon { stroke-width: 2.2; }

/* ==========================================================
   Планшет
   ========================================================== */

@media (min-width: 640px) {
  .container { padding-inline: 24px; }
  .hero__inner { padding-top: 40px; padding-bottom: 26px; }
  .finder__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder__go { grid-column: 1 / -1; }
  .places__grid { grid-template-rows: 260px; grid-auto-rows: 190px; gap: 14px; }
  .place { padding: 18px; }
  .place:first-child .place__name { font-size: 30px; }
  .perk { padding: 22px 20px; }
  .cats { margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; }
  .toolbar { margin-inline: -24px; padding-inline: 24px; }
  .grid { gap: 14px; }
  .card__price { font-size: 18px; }
  .card__title { font-size: 14px; }
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks { gap: 14px; }
  .owners__card { padding: 34px 32px; }
  .owners__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* планшет: логотип и текст сверху, под ними четыре колонки */
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 24px; }
  .grid.is-list .card { grid-template-columns: 260px 1fr; }
  .grid.is-list .fav-btn { left: 212px; }
  .grid.is-list .card__desc {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 13.5px; color: var(--muted); margin-top: 4px;
  }
  .grid.is-list .card__id { display: inline; }
  .card__id { display: inline; }
  .similar { grid-auto-columns: 40%; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* окна по центру экрана */
  .sheet--form { margin: auto; width: min(620px, calc(100% - 48px)); }
  .sheet--form .sheet__inner { border-radius: 20px; max-height: calc(100vh - 48px); }
  .sheet--call { width: min(440px, calc(100% - 48px)); }
  .sheet--pop { margin: auto; width: min(440px, calc(100% - 48px)); }
  .sheet--pop .sheet__inner { border-radius: 20px; max-height: calc(100vh - 48px); }
}

@media (min-width: 768px) {
  .callband { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px 16px; }
  .callband__phones { grid-column: auto; display: flex; }
  .callband__phones .btn { padding: 0 16px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contacts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
  .catalog__title { font-size: 26px; }
}

/* ==========================================================
   Компьютер
   ========================================================== */

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .toast { bottom: 24px; }

  .hdr { position: sticky; top: 0; }
  .hdr__row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo search actions";
    gap: 24px; padding-top: 10px; padding-bottom: 10px;
  }
  .logo { height: 84px; }
  .hdr__search { max-width: 640px; width: 100%; justify-self: center; }
  .hdr__search-btn { display: inline-flex; }
  .hdr__actions { gap: 6px; }
  .hdr__actions .cur,
  .hdr__theme,
  .hdr__actions .lang { display: inline-flex; }
  .hdr__lang,
  .hdr__langwrap { display: none; }
  .hdr__add { display: inline-flex; margin-left: 6px; }
  .hdr__menu { display: none; }
  html { scroll-padding-top: 178px; }

  /* Меню разделов: Վաճառք · Վարձակալություն · Օրավարձ · Կոմերցիոն տարածքներ */
  .subnav { display: block; background: #080B0F; border-top: 1px solid #141A21; }
  .mnav { display: flex; align-items: stretch; gap: 4px; height: 50px; margin: 0 0 0 -12px; padding: 0; list-style: none; }
  .mnav__item { position: relative; display: flex; align-items: center; }
  .mnav__btn {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 10px;
    color: #D2DBE3; font-weight: 600; font-size: 15px; white-space: nowrap;
    transition: color .15s, background-color .15s;
  }
  .mnav__btn .icon { width: 16px; height: 16px; color: #6F7C89; transition: transform .15s; }
  .mnav__item:not(.no-hover):hover .mnav__btn,
  .mnav__item.is-open .mnav__btn { color: #fff; background: rgba(255, 255, 255, .07); }
  .mnav__item.is-current .mnav__btn { color: var(--blue); }
  .mnav__item.is-current .mnav__btn .icon { color: var(--blue); }
  .mnav__item:not(.no-hover):hover .mnav__btn .icon,
  .mnav__item.is-open .mnav__btn .icon { transform: rotate(180deg); }
  .mnav__drop {
    position: absolute; top: 100%; left: 0; z-index: 40;
    display: none; min-width: 270px; padding: 8px;
    background: #10151B; border: 1px solid #222B35; border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  }
  .mnav__item:not(.no-hover):hover .mnav__drop,
  .mnav__item.is-open .mnav__drop { display: grid; gap: 2px; }
  .mnav__drop a {
    display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px 0 12px; border-radius: 10px;
    color: #DCE3EA; font-size: 14.5px; font-weight: 500; white-space: nowrap;
    transition: background-color .15s, color .15s;
  }
  .mnav__drop a .icon { flex: none; width: 20px; height: 20px; color: var(--blue); }
  .mnav__drop a:hover, .mnav__drop a:focus-visible { background: rgba(255, 255, 255, .07); color: #fff; }
  .mnav__drop a[aria-current="true"] { background: rgba(41, 169, 218, .14); color: var(--blue); }
  .mnav__sep { height: 1px; margin: 4px 8px; background: #222B35; }
  .nav-count {
    margin-left: auto; min-width: 26px; padding: 3px 8px; border-radius: 10px; text-align: center;
    background: rgba(255, 255, 255, .06); color: #8C99A6; font: 700 12px/1.2 var(--font-num);
  }

  .ani { left: 24px; bottom: 24px; }
  .ani-fab__label { display: block; }
  .ani-panel {
    position: absolute; inset: auto auto calc(100% + 14px) 0;
    width: 390px; height: min(620px, calc(100vh - 230px));
    border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  }
  .ani-head { padding-top: 10px; }
  .ani-input { padding-bottom: 10px; }

  /* Главный экран: слева заголовок и подбор, справа внизу — объект с фото */
  .hero::before {
    background:
      linear-gradient(90deg, rgba(3, 6, 9, .9) 0%, rgba(3, 6, 9, .72) 38%, rgba(3, 6, 9, .28) 72%, rgba(3, 6, 9, .18) 100%),
      linear-gradient(0deg, rgba(3, 6, 9, .7) 0%, rgba(3, 6, 9, 0) 38%);
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px;
    min-height: clamp(520px, calc(100vh - 230px), 650px);
    padding-top: 56px; padding-bottom: 44px;
  }
  .hero__main { align-self: center; max-width: 800px; }
  .hero__sub { font-size: 17px; }
  .finder { margin-top: 28px; padding: 10px; }
  .finder__go { grid-column: auto; height: 60px; padding: 0 22px 0 24px; }
  .finder__row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) auto; }
  .hero__trust { margin-top: 20px; gap: 10px 24px; }
  .hero__trust li { font-size: 14px; }
  .hero__side { flex-direction: column; align-items: flex-end; gap: 14px; }
  .hero__feature { display: grid; }

  .places { padding: 16px 0 56px; }
  .places__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 230px); grid-auto-rows: 230px; gap: 16px; }
  .place:first-child { grid-row: span 2; }
  .place:first-child .place__name { font-size: 34px; }
  .place { padding: 22px; }
  .place__name { font-size: 20px; }

  .owners__photo {
    left: auto; width: 62%; opacity: .5;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
  }
  .about { padding: 16px 0 56px; }
  .perk { padding: 26px 22px 24px; }
  .perk__n { top: 20px; right: 22px; font-size: 30px; }
  .perk h3 { font-size: 17px; }
  .perk p { font-size: 14px; }
  .cats { margin: 2px 0 18px; padding: 0; flex-wrap: wrap; overflow: visible; }
  .cat { height: 44px; padding: 0 8px 0 16px; font-size: 14.5px; }

  .catalog { padding-top: 40px; }
  /* Компьютер: заголовок слева, сортировка и вид справа; под ними во всю ширину — вкладки категорий */
  .catalog__wrap {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    grid-template-areas: "crumbs crumbs" "head toolbar" "cats cats" "layout layout";
  }
  .crumbs { grid-area: crumbs; }
  .catalog__head { grid-area: head; margin-bottom: 14px; }
  .cats { grid-area: cats; }
  .catalog__layout { grid-area: layout; }
  .catalog__layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }

  .filters {
    position: sticky; top: 176px; z-index: 1;
    height: auto; max-height: calc(100vh - 286px); /* внизу слева остаётся место для кнопки Лилит */
    transform: none; visibility: visible; transition: none;
    border: 1px solid var(--line); border-radius: 18px; box-shadow: none;
  }
  .filters-backdrop { display: none; }
  .filters__head { padding: 14px 10px 12px 18px; }
  .filters__head::before { display: none; }
  .filters__head .icon-btn { display: none; }
  .filters__foot { grid-template-columns: 1fr; padding: 12px 16px; border-radius: 0 0 18px 18px; }
  #filters-apply { display: none; }
  .fg > summary { padding: 13px 18px; font-size: 14.5px; }
  .input, .field input, .field textarea, .select select { font-size: 15px; }
  .range .input { height: 40px; }
  .pill { height: 36px; }

  .toolbar { grid-area: toolbar; position: static; margin: 0 0 14px; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; justify-content: flex-end; }
  .toolbar__filters { display: none; }
  .toolbar__sort { flex: 0 0 220px; }
  .grid { gap: 16px; }

  @media (hover: hover) {
    .card:hover { border-color: var(--blue-line); transform: translateY(-3px); box-shadow: var(--shadow); }
    .card:hover .card__media img { transform: scale(1.05); }
  }

  .owners__card { grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 44px 48px; }
  .owners__actions { grid-template-columns: 1fr; min-width: 240px; }
  .footer { padding-top: 48px; padding-bottom: 100px; }
  .footer__grid { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 26px 28px; }
  .footer__brand { grid-column: auto; }

  /* Объявление — окно по центру */
  .sheet--listing {
    margin: auto; width: min(1180px, calc(100% - 48px)); height: auto;
    max-height: calc(100vh - 48px); border-radius: 22px; overflow: hidden;
  }
  .sheet--listing .sheet__inner { height: auto; max-height: calc(100vh - 48px); border-radius: 22px; }
  .ld {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas: "bar bar" "gallery aside" "main aside" "similar similar";
    column-gap: 28px; padding: 16px 28px 0;
  }
  .ld__bar { grid-area: bar; position: static; height: auto; }
  .ld__bar-inner,
  .ld.is-scrolled .ld__bar-inner { padding: 0 0 14px; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ld__bar .ld__back { display: none; }
  .ld__bar .ld__x { display: grid; }
  .ld__bar .ld__bar-label,
  .ld.is-scrolled .ld__bar .ld__bar-label { display: block; flex: 1; font-size: 13px; color: var(--muted); font-weight: 500; }
  .ld.is-scrolled .ld__bar .round-btn { background: var(--surface-2); }
  .round-btn { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .round-btn:hover { border-color: var(--line-2); }
  .ld__gallery { grid-area: gallery; }
  .gal { border-radius: 16px; overflow: hidden; }
  .gal__track img,
  .gal__none { aspect-ratio: 16 / 10; }
  .map { aspect-ratio: auto; height: 300px; }
  .gal__nav { display: grid; }
  .gal__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; }
  .gal__thumbs button { flex: 0 0 84px; height: 60px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .65; transition: opacity .2s, border-color .2s; }
  .gal__thumbs button[aria-current="true"] { border-color: var(--blue); opacity: 1; }
  .gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .ld__main { grid-area: main; padding: 22px 0 8px; }
  .ld__main .pricebox { display: none; }
  .ld__title { font-size: 26px; }
  /* Колонка с ценой занимает всю высоту своей ячейки, а прилипает её содержимое —
     так оно не заезжает на «Похожие объявления» при прокрутке */
  .ld__aside { grid-area: aside; padding: 0; }
  .ld__aside-in { position: sticky; top: 0; }
  .params { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .params > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .params > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .ld__similar { grid-area: similar; padding: 30px 0 28px; }
  .ld__similar > h3 { padding: 0; }
  .similar { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; overflow: visible; }
  .ld__cta { display: none; }
}

@media (min-width: 1280px) {
  .catalog__layout { grid-template-columns: 316px minmax(0, 1fr); gap: 28px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

/* На узком компьютере в шапке и строке разделов не помещается всё — прячем второстепенное */
.hdr__add-short { display: none; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .cat > .icon { display: none; }
  .cat { padding-left: 14px; }
  .hdr__search-btn { display: none; }
  .hdr__add-long { display: none; }
  .hdr__add-short { display: inline; }
}

/* На телефоне и планшете цена показана в начале объявления, а справа остаются только контакты */
@media (max-width: 1023px) {
  .ani.is-open .ani-fab { visibility: hidden; }
  .ld__aside .pricebox__price { display: none; }
  .ld__aside .pricebox__contact { margin-top: 0; padding-top: 0; border-top: 0; }
}

/* ---------- Фон по бокам на широком экране ---------- */

/* Когда экран шире содержимого, по бокам не пусто: сетка, как на чертеже, мягкое голубое свечение,
   а на очень широких экранах — рисунки: планировка квартиры слева и строящийся дом с краном справа */
.backdrop {
  --grid-minor: rgba(71, 189, 234, .045);
  --grid-major: rgba(71, 189, 234, .085);
  --glow: rgba(41, 169, 218, .11);
  --art: #47BDEA;
  display: none; position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
[data-theme="light"] .backdrop {
  --grid-minor: rgba(14, 118, 170, .06);
  --grid-major: rgba(14, 118, 170, .11);
  --glow: rgba(41, 169, 218, .13);
  --art: #0E76AA;
}
.backdrop__side { display: none; }
.side-art {
  width: 100%; max-width: 270px; height: 100%; max-height: 720px;
  color: var(--art); opacity: .22;
  clip-path: inset(100% 0 0 0);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 90%, transparent 100%);
}
.side-art__t { font: 600 9px/1 ui-monospace, Consolas, 'Courier New', monospace; letter-spacing: .04em; }
/* рисунки «вырастают» снизу вверх, когда человек доходит до каталога, потом чуть покачиваются */
.backdrop.is-on .side-art { animation: art-rise 2.6s cubic-bezier(.3, .7, .2, 1) forwards, art-float 16s ease-in-out 2.6s infinite; }
.backdrop.is-on .backdrop__side--right .side-art { animation-delay: .35s, 2.95s; }
@keyframes art-rise { to { clip-path: inset(0 0 0 0); } }
@keyframes art-float { 50% { transform: translateY(-10px); } }

@media (min-width: 1400px) {
  .backdrop { display: block; }
  .backdrop::before {
    content: ''; position: absolute; inset: 0;
    background-image:
      linear-gradient(var(--grid-minor) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px),
      linear-gradient(var(--grid-major) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
    background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
    background-position: center top;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - 720px), transparent calc(50% - 630px), transparent calc(50% + 630px), #000 calc(50% + 720px), #000 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - 720px), transparent calc(50% - 630px), transparent calc(50% + 630px), #000 calc(50% + 720px), #000 100%);
  }
  .backdrop::after {
    content: ''; position: absolute; inset: 0;
    background:
      radial-gradient(560px 700px at 0% 30%, var(--glow), transparent 70%),
      radial-gradient(560px 700px at 100% 72%, var(--glow), transparent 70%);
  }
}

@media (min-width: 1680px) {
  .backdrop__side {
    position: absolute; top: 0; bottom: 0; width: calc((100vw - 1320px) / 2);
    display: grid; place-items: center; padding: 190px 34px 40px;
  }
  .backdrop__side--left { left: 0; }
  .backdrop__side--right { right: 0; }
}

/* ---------- Телефон и планшет: лёгкая графика ---------- */

/* Размытие фона под стеклянными элементами на телефоне тормозит прокрутку (особенно на десятках карточек),
   поэтому здесь вместо него плотный полупрозрачный фон — выглядит почти так же */
@media (max-width: 1023px) {
  .badge, .fav-btn::before, .place__go, .hero__eyebrow, .owners__card .btn--outline,
  .finder, .toolbar, .tabbar { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .fav-btn::before { background: rgba(3, 5, 8, .62); }
  .place__go { background: rgba(5, 10, 14, .6); }
  .hero__eyebrow { background: rgba(8, 30, 42, .82); }
  .finder { background: rgba(9, 14, 19, .86); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
  .toolbar { background: var(--bg); }
  .tabbar { background: rgba(4, 6, 9, .98); }

  /* Рисунки «как на чертеже» видны и на телефоне: сетка на фоне страницы, внизу — планировка и строящийся дом */
  .backdrop {
    display: block;
    --grid-minor: rgba(71, 189, 234, .035);
    --grid-major: rgba(71, 189, 234, .07);
  }
  [data-theme="light"] .backdrop {
    --grid-minor: rgba(14, 118, 170, .05);
    --grid-major: rgba(14, 118, 170, .09);
  }
  .backdrop::before {
    content: ''; position: absolute; inset: 0;
    background-image:
      linear-gradient(var(--grid-minor) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px),
      linear-gradient(var(--grid-major) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
    background-position: center top;
  }
  .backdrop::after {
    content: ''; position: absolute; inset: 0;
    background:
      radial-gradient(70% 40% at 0% 25%, var(--glow), transparent 70%),
      radial-gradient(70% 40% at 100% 80%, var(--glow), transparent 70%);
  }
  .backdrop__side { display: none; }
}

/* ---------- Телефон: фото и рисунки на главном экране ---------- */

.hero__feature[hidden] { display: none !important; }
.hero__scene { display: none; }

@media (max-width: 1023px) {
  /* Фото объекта — крупно и ярко сверху; полоски смены фото, как в «историях»; внизу фото — цена объекта.
     Заголовок и подбор — ниже, на тёмном фоне, поэтому фото больше ничем не закрыто */
  .hero:not(.is-plain) { --photo-h: clamp(300px, 84vw, 460px); }
  .hero:not(.is-plain) .hero__media { bottom: auto; height: var(--photo-h); }
  .hero:not(.is-plain)::before {
    background: linear-gradient(180deg,
      rgba(3, 6, 9, .55) 0, rgba(3, 6, 9, .08) 110px, rgba(3, 6, 9, .04) calc(var(--photo-h) - 150px),
      rgba(5, 8, 11, .86) calc(var(--photo-h) - 34px), #05080B var(--photo-h));
  }
  .hero:not(.is-plain) .hero__inner { padding-top: calc(var(--photo-h) - 30px); }
  .hero:not(.is-plain) .hero__eyebrow { position: absolute; top: 42px; left: 16px; max-width: calc(100% - 32px); }
  .hero:not(.is-plain) .hero__title { margin-top: 0; }
  .hero:not(.is-plain) .hero__side {
    position: absolute; top: 8px; left: 16px; right: 16px; height: calc(var(--photo-h) - 52px);
    flex-direction: column; align-items: stretch; justify-content: space-between; pointer-events: none;
  }
  .hero__side > * { pointer-events: auto; }
  .hero:not(.is-plain) .hero__dots { order: -1; }
  .hero:not(.is-plain) .hero__dot { flex: 1; width: auto; height: 22px; }
  .hero:not(.is-plain) .hero__dot i { background: rgba(255, 255, 255, .38); }

  .hero__feature {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
    align-self: flex-start; width: auto; max-width: min(100%, 320px); padding: 9px 52px 9px 11px; gap: 0;
    border-radius: 16px; background: rgba(6, 10, 14, .78); border-color: rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  }
  .hero__feature-top { grid-row: 1 / 3; }
  .hero__feature-top .badge { margin-right: 10px; }
  .hero__feature-cat, .hero__feature-title { display: none; }
  .hero__feature-price { grid-column: 2; margin: 0; font-size: 19px; }
  .hero__feature-price small { font-size: 12.5px; }
  .hero__feature-loc { grid-column: 2; font-size: 12px; }
  .hero__feature-go { right: 9px; width: 34px; height: 34px; margin-top: -17px; }

  /* Рисунки «как на чертеже»: на телефоне по бокам места нет, поэтому оба стоят в ряд под подбором */
  .hero__scene {
    display: block; position: relative; padding-top: 4px; padding-bottom: 6px;
  }
  .hero__scene::before {
    content: ''; position: absolute; inset: -40px 0 0; z-index: -1; pointer-events: none;
    background-image:
      linear-gradient(rgba(92, 198, 238, .06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(92, 198, 238, .06) 1px, transparent 1px);
    background-size: 20px 20px; background-position: center bottom;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%);
    mask-image: linear-gradient(180deg, transparent, #000 45%);
  }
  .hero__scene svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; color: #5CC6EE; }
  .hero__scene .hs-plan { opacity: .82; }
  .hs-t { font: 600 7px/1 ui-monospace, Consolas, 'Courier New', monospace; letter-spacing: .02em; }
  .hs-lit { fill: #FFD27A; stroke: none; opacity: 0; }
  .hs-hook { transform: translateY(62px); }

  /* как оживает: линии планировки прорисовываются, дома и кран поднимаются из-под земли */
  .reveal .hs-draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
  .reveal .hs-fade { opacity: 0; }
  .reveal .hs-rise { transform: translateY(200px); }
  .hero__scene.is-on .hs-draw { animation: hs-draw 2.6s cubic-bezier(.45, .1, .3, 1) var(--d, 0s) forwards; }
  .hero__scene.is-on .hs-fade { animation: hs-show 1s ease var(--d, 0s) forwards; }
  .hero__scene.is-on .hs-rise { animation: hs-rise 1.6s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) forwards; }
  /* потом всё время: кран поднимает плиту, в окнах загорается и гаснет свет (пока рисунок на экране) */
  .hero__scene.is-on .hs-hook { animation: hs-hook 9s ease-in-out 2.2s infinite paused; }
  .hero__scene.is-on .hs-slab { animation: hs-slab 9s linear 2.2s infinite paused; }
  .hero__scene.is-on .hs-lit { animation: hs-lit 8s ease-in-out calc(var(--d) + 1.6s) infinite paused; }
  .hero__scene.is-live .hs-hook,
  .hero__scene.is-live .hs-slab,
  .hero__scene.is-live .hs-lit { animation-play-state: running; }
}
@keyframes hs-draw { to { stroke-dashoffset: 0; } }
@keyframes hs-show { to { opacity: 1; } }
@keyframes hs-rise { to { transform: none; } }
@keyframes hs-hook {
  0%, 12% { transform: translateY(62px); }
  52%, 66% { transform: translateY(-62px); }
  100% { transform: translateY(62px); }
}
@keyframes hs-slab { 0% { opacity: 0; } 6%, 66% { opacity: 1; } 71%, 100% { opacity: 0; } }
@keyframes hs-lit { 0%, 100% { opacity: 0; } 14%, 56% { opacity: .9; } 70% { opacity: 0; } }

@media (min-width: 640px) and (max-width: 1023px) {
  .hero:not(.is-plain) .hero__eyebrow { left: 24px; max-width: calc(100% - 48px); }
  .hero:not(.is-plain) .hero__side { left: 24px; right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Если на телефоне включена экономия энергии или «убрать анимацию», сайт не замирает:
   фото на главном экране плавно сменяются, блоки мягко проявляются — но без движения и приближения */
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transform: none !important; transition: opacity 1.4s ease !important; }
  .reveal [data-reveal].is-in,
  .card--in { animation-name: fade-in !important; animation-duration: .7s !important; }
  .hero__dot.is-on i::after { animation-duration: 6.5s !important; }
  .side-art { clip-path: none !important; }
  .backdrop:not(.is-on) .side-art { opacity: 0 !important; }
  .backdrop.is-on .side-art { animation: fade-in 1.6s ease backwards !important; }
}
@keyframes fade-in { from { opacity: 0; } }

/* «убрать анимацию» на телефоне: рисунок под подбором просто плавно проявляется, свет в окнах мягко мигает */
@media (prefers-reduced-motion: reduce) {
  .hero__scene.is-on svg { animation: fade-in 1.6s ease backwards !important; }
  .hero__scene.is-live .hs-lit { animation-duration: 8s !important; animation-iteration-count: infinite !important; }
}
