/* Шрифты разбиты на сабсеты по алфавитам (unicode-range): старые локальные файлы
   покрывали только латиницу, и кириллица падала на системный serif/sans —
   «Квартира на продажа в Calpe» рисовалась двумя разными шрифтами.
   Теперь браузер берёт нужный сабсет, и оба алфавита выглядят одинаково. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 200 800;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 200 800;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 200 800;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic-ext.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 200 800;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-cyrillic.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-cyrillic-ext.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Палитра — одна с rent.inftour.es (07.08.2026, решение Алекса «цветовая гамма сайта
   должна соответствовать rent.inftour.es/services»). Оттуда же взяты фон #f5f5f0,
   золото #d4af37 и холодная серо-синяя шкала текста и линий; шрифты (Manrope +
   Cormorant Garamond) совпадали и раньше. --brass-dark темнее золота намеренно:
   #d4af37 на белом даёт контраст ~1,9:1 и для текста и ссылок непригодно. */
:root {
  --ink: #101828;
  --ink-700: #364153;
  --muted: #6a7282;
  --canvas: #f5f5f0;
  --surface: #ffffff;
  --surface-warm: #fcfbf6;
  --line: #e5e7eb;
  --line-strong: #d1d5dc;
  --brass: #d4af37;
  --brass-dark: #96762a;
  --brass-soft: #f6efd9;
  --sea: #315f70;
  --sea-soft: #e9f0f2;
  --success: #2f6e55;
  --error: #973d3d;
  --focus: #315f70;
  --shadow: 0 12px 40px rgba(17, 20, 25, 0.09);
  --shadow-soft: 0 4px 18px rgba(17, 20, 25, 0.07);
  --header-height: 76px;
  --utility-offset: 32px;
  --container: 1280px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--utility-offset) + 24px);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.drawer-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
}

::selection {
  background: var(--brass-soft);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 8px;
  z-index: 200;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--ink);
  color: white;
  padding: 10px 16px;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 80px), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 40px), 760px);
  margin-inline: auto;
}

.section {
  padding-block: 104px;
}

.section--tight {
  padding-block: 72px;
}

.section--white {
  background: var(--surface);
}

.section--warm {
  background: var(--surface-warm);
}

/* Раньше это были чёрные полосы; с 08.08.2026 сайт светлый — секция стала
   светло-серой, как контентная зона rent.inftour.es. */
.section--ink {
  background: #efefef;
  color: var(--ink);
}

.section--ink .quote-card,
.section--ink .cost-box,
.section--ink .contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
}

.section--ink .timeline__item::after {
  background: var(--line-strong);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--brass-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  background: currentColor;
  content: "";
}

/* Надзаголовок на светлом фоне: тёмное золото, чистое #d4af37 на белом нечитаемо. */
.section--ink .eyebrow,
.hero .eyebrow {
  color: #6f5720;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Cormorant по умолчанию даёт старостильные цифры: «2» садится на строчную высоту,
   а «8» торчит вверх — рядом с прописными это читается как опечатка.
   lining-nums выравнивает все цифры по высоте заглавных.
   Правило собирает все места, где используется этот шрифт, чтобы цифры были в одном стиле. */
h1,
h2,
h3,
.verified-item__number,
.quote-card blockquote,
.advisor-card__avatar {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 4.6vw, 4rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(1.95rem, 3.3vw, 2.95rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.14;
}

.lead {
  max-width: 700px;
  color: var(--ink-700);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

/* Подзаголовок под первым экраном: называет вещи своими именами (город, услуга, тип жилья)
   для поисковиков и для человека, попавшего сюда из поиска. Читается как подпись, не как заголовок. */
.seo-lead {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* SEO-подпись того же цвета, что и лид над ней (решение 09.08.2026). */
.hero .seo-lead,
.page-hero--media .seo-lead,
.page-hero--media .lead {
  color: var(--ink-700);
}

/* --- Страница района --- */
/* Четыре факта в ряд: кому подходит, плюсы, минусы, пешая доступность.
   Минусы намеренно того же размера, что и плюсы: это обещание честности, а не мелкий шрифт. */
.zone-facts {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin-bottom: 28px;
}

.zone-fact {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-warm);
}

.zone-fact h3 {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-dark);
}

.zone-fact p {
  margin: 0;
  color: var(--ink-700);
}

.zone-fact--cons {
  border-color: var(--line-strong);
  background: var(--surface);
}

.zone-price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding: 20px 24px;
  border-left: 3px solid var(--brass);
  border-radius: var(--radius-sm);
  background: var(--brass-soft);
}

.zone-price-box__label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-dark);
}

.zone-price-box__value {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
}

.zone-price-box__note {
  flex: 1 1 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.zone-comment {
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.zone-comment h3 {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-dark);
}

.zone-comment p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.zone-links {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.zone-link {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.zone-link:hover,
.zone-link:focus-visible {
  border-color: var(--brass);
  transform: translateY(-2px);
}

.zone-link strong {
  display: block;
  font-size: 1.02rem;
}

.zone-link span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (prefers-reduced-motion: reduce) {
  .zone-link {
    transition: none;
  }
  .zone-link:hover,
  .zone-link:focus-visible {
    transform: none;
  }
}

.section--ink .lead,
.hero .lead {
  color: var(--ink-700);
}

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

.tiny {
  color: var(--muted);
  font-size: 0.78rem;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 13px 20px;
  /* Серая кнопка вместо чёрной — как на сайте аренды. */
  background: #787878;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease-out, background 160ms ease-out, border-color 160ms ease-out;
}

.btn:hover {
  transform: translateY(-1px);
  background: #676767;
}

.btn--brass {
  background: var(--brass);
  color: var(--ink);
}

.btn--brass:hover {
  background: #c5a233;
}

.btn--light {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn--outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: rgba(17, 20, 25, 0.06);
}

.btn--small {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 0.8rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 0.3em;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Верхняя строка — серая, как на rent.inftour.es, а не чёрная (решение 08.08.2026).
   Липкая: переключатель день/ночь должен быть под рукой в любой точке страницы. */
.utility-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--utility-offset);
  display: flex;
  align-items: center;
  background: #787878;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.72rem;
}

.utility-bar a {
  color: #fff;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.utility-bar__links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.utility-bar a {
  text-decoration: none;
}

/* Переключатель разделов экосистемы: этот сайт — покупка и продажа, вторая половина —
   аренда для отдыха на rent.inftour.es. Явные «табы» вместо ссылки в общем списке,
   чтобы два сайта читались как одна система. */
.brand-switch {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.brand-switch__item {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-switch__item.is-current {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

a.brand-switch__item {
  border-color: rgba(196, 161, 79, 0.55);
  background: rgba(196, 161, 79, 0.16);
  color: var(--brass);
}

a.brand-switch__item:hover,
a.brand-switch__item:focus-visible {
  border-color: var(--brass);
  background: var(--brass);
  color: var(--ink);
}

.utility-bar__note {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Переключатель языка сайта: компактный select в верхней строке (desktop)
   и отдельный блок в мобильном меню (utility-bar на мобильных скрыт). */
.lang-switch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 24px 3px 11px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='5'><path d='M0 0l4 5 4-5z' fill='%23c4a14f'/></svg>");
  background-repeat: no-repeat;
  background-position: right 9px center;
}

.lang-switch select:hover,
.lang-switch select:focus-visible {
  border-color: var(--brass);
  color: #fff;
}

.lang-switch select option {
  background: #fff;
  color: #111419;
  font-weight: 400;
}

.mobile-menu .lang-switch {
  margin-top: 14px;
}

.mobile-menu .lang-switch select {
  width: 100%;
  background-color: rgba(17, 20, 25, 0.05);
  border-color: rgba(17, 20, 25, 0.25);
  color: inherit;
  padding: 10px 30px 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.site-header {
  position: sticky;
  top: var(--utility-offset);
  z-index: 80;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  min-height: var(--header-height);
  display: grid;
  /* Колонки и зазор сжимаются вместе с окном: пунктов в меню восемь, и на 1200–1400 px
     фиксированные 174px + 28px не оставляли им места — подписи ломались на две строки. */
  grid-template-columns: clamp(132px, 11vw, 174px) 1fr auto;
  align-items: center;
  gap: clamp(12px, 1.6vw, 28px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  /* Логотип не шире своей колонки: она сжимается по clamp, а фиксированная ширина
     на узких десктопах вылезала за край и толкала страницу вбок. */
  width: 100%;
  max-width: 164px;
  height: auto;
}

.nav-list,
.header-actions {
  display: flex;
  align-items: center;
}

.nav-list {
  justify-content: center;
  /* Восемь пунктов вместе с «пилюлей» аренды: шаг и кегль сжимаются с шириной окна,
     чтобы строка оставалась одна везде, где меню вообще показывается. */
  gap: clamp(7px, 0.85vw, 15px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  padding-block: 27px;
  font-size: clamp(0.64rem, 0.55vw + 0.29rem, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  /* Подпись пункта не переносится никогда: лучше сжать кегль, чем сломать строку. */
  white-space: nowrap;
}

.nav-list a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--brass);
  content: "";
  transition: transform 160ms ease;
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Выпадающее подменю «Продажи»: типы объектов. Открывается по наведению
   и по клавиатурному фокусу; на тач-устройствах меню всё равно мобильное. */
.nav-sub-holder {
  position: relative;
}

.nav-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  min-width: 190px;
  margin: 0;
  padding: 10px 0;
  transform: translateX(-50%) translateY(6px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(17, 20, 25, 0.16);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease, transform 140ms ease;
}

.nav-sub-holder:hover .nav-sub,
.nav-sub-holder:focus-within .nav-sub {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-sub li a {
  display: block;
  padding: 9px 20px;
  white-space: nowrap;
}

.nav-sub li a::after {
  content: none;
}

.nav-sub li a:hover {
  background: rgba(168, 130, 60, 0.1);
  color: var(--brass-dark, #8a6d2f);
}

@media (prefers-reduced-motion: reduce) {
  .nav-sub {
    transition: none;
  }
}

/* Строка типов под пунктом «Продажи» в мобильном меню. */
.mobile-menu__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 2px 0 10px 18px;
}

.mobile-menu__sub a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
}

/* Аренда для отдыха — вторая половина системы. В меню выделена «пилюлей»:
   видно сразу, что раздел есть, и что это отдельный сайт (↗). */
.nav-list__rent {
  margin-left: 2px;
}

.nav-list__rent a {
  padding: 7px clamp(8px, 0.8vw, 11px);
  border: 1px solid var(--brass);
  border-radius: 999px;
  background: var(--brass-soft);
  color: var(--brass-dark);
  font-size: clamp(0.6rem, 0.5vw + 0.28rem, 0.68rem);
  white-space: nowrap;
}

.nav-list__rent a::after {
  content: none;
}

.nav-list__rent a:hover,
.nav-list__rent a:focus-visible {
  background: var(--brass);
  color: var(--ink);
}

.header-actions {
  justify-content: flex-end;
  gap: 8px;
}

.icon-btn {
  position: relative;
  min-width: 46px;
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}

.icon-btn:hover {
  border-color: var(--line);
  background: white;
}

.icon-btn svg,
.inline-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.count-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  min-height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface-warm);
  border-radius: 999px;
  background: var(--brass);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 800;
}

.lang-select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  padding-inline: 10px;
  font-size: 0.74rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
}

/* На узких десктопах кнопка-CTA в шапке уступает место пунктам меню.
   Порог опущен с 1340px до 1260px: кегль и шаг меню теперь сжимаются вместе с окном,
   поэтому восемь пунктов помещаются в одну строку и рядом с кнопкой.
   Ниже порога CTA остаётся в мобильном меню и в блоках страниц. */
@media (max-width: 1260px) {
  .header-actions .btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
}

/* Первый экран: невысокий, фото яркое, текст тёмный прямо на снимке — без белой
   плашки. Читаемость держат мягкая светлая растяжка слева и белый ореол букв. */
.hero {
  position: relative;
  min-height: min(470px, calc(100vh - 190px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #eceded;
  color: var(--ink);
}

.hero__media,
.hero__media::after {
  position: absolute;
  inset: 0;
}

.hero__media picture,
.hero__media img {
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
}

.hero__media::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.40) 38%, rgba(255, 255, 255, 0.12) 66%, rgba(255, 255, 255, 0) 84%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.30) 0%, transparent 34%);
  content: "";
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 52px 26px;
}

.hero__copy {
  max-width: 760px;
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.72), 0 0 22px rgba(255, 255, 255, 0.55);
}

/* Кегли первого экрана совпадают с секцией «Больше, чем список объектов». */
.hero__copy h1 {
  font-size: clamp(1.9rem, 3.3vw, 2.9rem);
  line-height: 1.06;
  margin-bottom: 16px;
}

.hero__copy .lead {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

.hero__copy .seo-lead {
  font-size: 1rem;
  line-height: 1.5;
}

/* Размер заголовка первого экрана теперь общий для всего сайта (правило h1 выше):
   самый длинный вариант ложится по 2–3 слова в строку и занимает три строки вместо пяти. */

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  list-style: none;
}

.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__proof li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
  content: "";
}

.search-panel {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 0.8fr auto;
  align-items: end;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  color: var(--ink);
  overflow: hidden;
}

.search-field {
  min-width: 0;
  padding: 15px 18px 13px;
  border-right: 1px solid var(--line);
}

.search-field label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-field select,
.search-field input {
  width: 100%;
  min-height: 30px;
  border: 0;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  outline: 0;
}

.search-panel .btn {
  height: 100%;
  min-height: 74px;
  border-radius: 0;
  padding-inline: 28px;
}

.personal-note {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.77rem;
}

.personal-note button {
  color: #fff;
}

.conversation-panel {
  display: grid;
  gap: 13px;
  max-width: 980px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  padding: 18px;
  color: var(--ink);
}

.conversation-panel__label {
  color: var(--brass-dark);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.conversation-panel__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 52px;
  align-items: stretch;
  gap: 8px;
}

/* Панель первого экрана работает как чат с Бланкой: лента ответов + готовые вопросы. */
.hero-chat__composer,
.hero-chat .conversation-panel__composer {
  grid-template-columns: minmax(0, 1fr) 52px;
}

.hero-chat__head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

/* Панель Бланки на первом экране: описание агента, пилюля «Спросить Бланку»
   (та же, что плавающая кнопка чата) и карточка-ссылка на весь каталог.
   Кнопка и карточка стоят в одну строку — так панель ниже и первый экран
   не отодвигает содержание страницы. */
.hero-assistant {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 18px;
}

.hero-assistant .hero-chat__head,
.hero-assistant__desc {
  grid-column: 1 / -1;
}

.hero-assistant .btn-maria {
  grid-column: 1;
  align-self: center;
}

.hero-assistant .hero-catalog-cta {
  grid-column: 2;
}

@media (max-width: 720px) {
  .hero-assistant {
    grid-template-columns: 1fr;
  }

  .hero-assistant .btn-maria,
  .hero-assistant .hero-catalog-cta {
    grid-column: 1;
  }
}

.hero-assistant__desc {
  margin: 0;
  color: var(--ink-700);
  font-size: 1rem;
  line-height: 1.55;
}

.btn-maria {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  padding: 8px 8px 8px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #b8914a, #8a6d2f);
  color: #fff;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(138, 109, 47, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-maria:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(138, 109, 47, 0.55);
}

.btn-maria__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.btn-maria__text small {
  font-size: 11.5px;
  font-weight: 400;
  opacity: 0.85;
}

.btn-maria__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}

.btn-maria__icon svg {
  width: 26px;
  height: 26px;
  fill: #8a6d2f;
}

/* Вторая кнопка панели героя — та же золотая заливка, что у «Спросить Бланку»
   (решение 09.08.2026): две карточки читаются как пара, а не как кнопка и плашка. */
.hero-catalog-cta {
  display: block;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #b8914a, #8a6d2f);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(138, 109, 47, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-catalog-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(138, 109, 47, 0.55);
}

.hero-catalog-cta strong {
  display: block;
  font-size: 1.05rem;
}

.hero-catalog-cta span {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .btn-maria,
  .btn-maria:hover,
  .hero-catalog-cta,
  .hero-catalog-cta:hover {
    transition: none;
    transform: none;
  }
}

.hero-chat__log {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 260px;
  overflow-y: auto;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-warm);
}

.hero-chat__msg {
  max-width: 90%;
  padding: 9px 13px;
  border-radius: 13px;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.hero-chat__msg--user {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.hero-chat__msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.hero-chat__msg--bot a {
  color: var(--brass-dark);
}

.hero-chat__msg--wait {
  align-self: flex-start;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-chat__action {
  align-self: flex-start;
  padding: 8px 13px;
  border: 1px solid var(--brass);
  border-radius: 999px;
  background: #fff;
  color: var(--brass-dark);
  font-size: 0.85rem;
  text-decoration: none;
}

.hero-chat__action:hover {
  background: var(--brass);
  color: #fff;
}

.hero-chat__chips {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hero-chat__chip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 14px;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.hero-chat__chip:hover,
.hero-chat__chip:focus-visible {
  border-color: var(--brass);
  background: var(--surface-warm);
}

.hero-chat__chip:disabled {
  opacity: .55;
  cursor: default;
}

.hero-chat__refresh {
  justify-self: start;
  border: 0;
  background: none;
  padding: 0;
  color: var(--brass-dark);
  font: inherit;
  font-size: 0.83rem;
  text-decoration: underline;
  cursor: pointer;
}

.conversation-panel textarea {
  width: 100%;
  min-height: 66px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 13px 15px;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}

.conversation-panel textarea:focus {
  border-color: var(--brass);
  outline: 3px solid rgba(188, 147, 75, 0.18);
}

.conversation-panel__voice,
.conversation-panel__send {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-warm);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.05rem;
}

.conversation-panel__send {
  border-color: var(--brass);
  background: var(--brass);
  font-size: 1.5rem;
}

.conversation-panel__voice:hover,
.conversation-panel__voice:focus-visible,
.conversation-panel__send:hover,
.conversation-panel__send:focus-visible {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.conversation-panel__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.conversation-panel__choices button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 7px 12px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

.conversation-panel__choices button:hover,
.conversation-panel__choices button:focus-visible,
.conversation-panel__choices button[aria-pressed="true"] {
  border-color: var(--brass);
  background: var(--brass-soft);
  color: var(--ink);
}

.conversation-panel__privacy {
  margin: 0;
  color: var(--muted);
  font-size: 0.71rem;
}

.conversation-panel__response {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  font-size: 0.84rem;
}

.conversation-panel__response .button-row {
  margin-top: 12px;
}

.context-explain {
  margin-top: 14px;
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.context-note {
  max-width: 640px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  line-height: 1.55;
}

.ecosystem-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ecosystem-grid .contact-panel {
  display: flex;
  min-height: 245px;
  flex-direction: column;
}

.ecosystem-grid .text-link {
  margin-top: auto;
  padding-top: 20px;
}

.account-summary__brief {
  margin: 12px 0;
  border-left: 2px solid var(--brass);
  padding-left: 12px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-head__copy {
  max-width: 760px;
}

.section-head h2 {
  margin-bottom: 10px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

#method .card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lifestyle-card {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: white;
  text-decoration: none;
}

.lifestyle-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease-out;
}

.lifestyle-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 14, 18, 0.88), rgba(8, 14, 18, 0.08) 70%);
  content: "";
}

.lifestyle-card:hover img {
  transform: scale(1.015);
}

.lifestyle-card__content {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.lifestyle-card__content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

/* Плитки «по типу» над подборкой на главной. Числа подставляет сервер. */
.type-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: -18px 0 34px;
}

.type-tile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-warm);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.type-tile:hover,
.type-tile:focus-visible {
  border-color: var(--brass);
  color: var(--brass-dark);
}

.type-tile__name {
  font-size: 0.875rem;
  font-weight: 600;
}

.type-tile__count {
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.type-tile:hover .type-tile__count,
.type-tile:focus-visible .type-tile__count {
  color: var(--brass-dark);
}

@media (max-width: 900px) {
  .type-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.property-card {
  position: relative;
  min-width: 0;
}

.property-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e7e6e1;
}

.property-card__media > a,
.property-card__media img {
  width: 100%;
  height: 100%;
}

.property-card__media img {
  object-fit: cover;
  transition: transform 240ms ease-out;
}

.property-card:hover .property-card__media img {
  transform: scale(1.015);
}

.favorite-btn {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  min-width: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
}

.favorite-btn svg {
  width: 21px;
  height: 21px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
}

.favorite-btn[aria-pressed="true"] svg {
  fill: var(--brass);
  stroke: var(--brass-dark);
}

.property-badges {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  /* Справа оставляем место под «сердечко»: иначе третья плашка уезжает под него. */
  right: 62px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 5px 9px;
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.badge--verified {
  background: rgba(47, 110, 85, 0.92);
  color: white;
}

/* Статусные плашки объекта.
   Три уровня по смыслу: «объект уже занят» — тёмные и глухие, «про деньги» — тёплые
   акцентные, «свойство объекта» — спокойные. Так карточку можно читать по цвету,
   не вчитываясь, и при этом она не превращается в светофор. */
.badge--sold {
  background: rgba(17, 20, 25, 0.92);
  color: #fff;
}

.badge--reserved {
  background: rgba(138, 104, 36, 0.94);
  color: #fff;
}

.badge--offer {
  background: rgba(151, 61, 61, 0.94);
  color: #fff;
}

.badge--reduced {
  background: rgba(168, 100, 31, 0.94);
  color: #fff;
}

.badge--project {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(17, 20, 25, 0.16);
}

.badge--building {
  background: rgba(49, 95, 112, 0.92);
  color: #fff;
}

.badge--new {
  background: rgba(196, 161, 79, 0.95);
  color: var(--ink);
}

.badge--sea {
  background: rgba(31, 127, 156, 0.92);
  color: #fff;
}

/* Бассейн и вид на горы — та же «спокойная» группа, что и вид на море:
   это свойство объекта, а не статус сделки и не про деньги. */
.badge--pool {
  background: rgba(38, 143, 158, 0.9);
  color: #fff;
}

.badge--mountain {
  background: rgba(88, 122, 92, 0.92);
  color: #fff;
}

/* Плашки в шапке страницы объекта: обычный поток, а не наложение на фото,
   поэтому позиционирование базового класса здесь сбрасывается. */
.property-badges--page {
  position: static;
  inset: auto;
  margin: 0 0 14px;
}

.property-card__body {
  padding: 16px 2px 0;
}

.property-card__topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
}

.property-card__location {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.property-card__price {
  margin: 0;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

.property-card h3 {
  min-height: 2.3em;
  margin-bottom: 11px;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.property-card h3 a {
  text-decoration: none;
}

.property-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin: 0;
  padding: 0;
  color: var(--ink-700);
  font-size: 0.78rem;
  list-style: none;
}

.property-facts li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.property-facts li + li::before {
  width: 3px;
  height: 3px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--brass);
  content: "";
}

.property-card__reason {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--sea);
  font-size: 0.76rem;
  font-weight: 700;
}

.verified-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: hidden;
}

/* Хронология компании — пять шагов в одну линию. Правило стоит до медиа-запросов
   ниже, поэтому на планшете и мобильном полоса всё равно сворачивается в 2 и 1 колонку. */
.verified-strip--timeline {
  grid-template-columns: repeat(5, 1fr);
}

.verified-strip--timeline .verified-item {
  padding: 26px 22px;
}

.verified-item {
  min-height: 190px;
  background: var(--surface);
  padding: 30px;
}

.verified-item__number {
  display: block;
  margin-bottom: 8px;
  color: var(--brass-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
}

.verified-item strong {
  display: block;
  margin-bottom: 6px;
}

.verified-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.split__note {
  position: absolute;
  right: -28px;
  bottom: 30px;
  max-width: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.check-list,
.plain-list {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 13px;
  padding-left: 29px;
}

.check-list li::before {
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass-dark);
  content: "✓";
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: steps;
}

.timeline__item {
  position: relative;
  padding-top: 62px;
  counter-increment: steps;
}

.timeline__item::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass-dark);
  content: counter(steps, decimal-leading-zero);
  font-size: 0.73rem;
  font-weight: 800;
}

.timeline__item:not(:last-child)::after {
  position: absolute;
  top: 21px;
  right: 10px;
  left: 55px;
  height: 1px;
  background: var(--line);
  content: "";
}

.timeline__item h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0;
}

.timeline__item p {
  color: var(--muted);
  font-size: 0.86rem;
}

.quote-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(28px, 4vw, 48px);
}

.quote-card blockquote {
  margin: 0 0 24px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.22;
}

.quote-card cite {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  padding: clamp(32px, 5vw, 64px);
}

.cta-band p {
  color: var(--ink-700);
}

.cta-band h2 {
  margin-bottom: 10px;
}

.cta-band p {
  max-width: 690px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.page-hero {
  padding-block: 74px 54px;
}

.page-hero--media {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #eceded;
  color: var(--ink);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.5);
}

.page-hero--media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  object-fit: cover;
}

.page-hero--media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.46) 44%, rgba(255, 255, 255, 0) 82%);
  content: "";
}

.page-hero--media .container {
  position: relative;
  z-index: 2;
  padding-block: 82px;
  /* Фото и текст стоят в одном флекс-ряду: без боковых отступов текст прилипает к фото. */
  padding-inline: clamp(28px, 4vw, 64px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  color: var(--muted);
  font-size: 0.74rem;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 6px;
  content: "/";
}

.catalog-layout {
  display: grid;
  grid-template-columns: 278px 1fr;
  align-items: start;
  gap: 34px;
}

.filter-panel {
  position: sticky;
  top: calc(var(--header-height) + var(--utility-offset) + 20px);
  /* Фильтров больше, чем помещается в экран: панель прокручивается сама,
     а полосу прокрутки показываем явно — иначе не видно, что список продолжается. */
  max-height: calc(100vh - var(--header-height) - var(--utility-offset) - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.filter-panel {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) var(--surface-warm);
}

.filter-panel::-webkit-scrollbar {
  width: 11px;
}

.filter-panel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--surface-warm);
}

.filter-panel::-webkit-scrollbar-thumb {
  border: 3px solid var(--surface);
  border-radius: 999px;
  background: var(--line-strong);
}

.filter-panel::-webkit-scrollbar-thumb:hover {
  background: var(--brass);
}

.filter-panel__header,
.catalog-tools,
.active-filters {
  display: flex;
  align-items: center;
}

.filter-panel__header {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

/* Быстрые кнопки «Мои приоритеты» / «Последний поиск» под заголовком фильтров */
.filter-quick {
  display: grid;
  gap: 8px;
  margin: -6px 0 18px;
}

.filter-quick .btn {
  width: 100%;
  justify-content: center;
}

/* «Сохранить мои приоритеты» — над кнопкой «Показать результаты» */
.btn--save-priorities {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

.filter-panel__header h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.filter-panel__header [data-close-filters] {
  display: none;
}

.filter-group {
  padding-block: 17px;
  border-top: 1px solid var(--line);
}

.filter-group > label,
.filter-group legend {
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 800;
}

.filter-group fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-group select,
.filter-group input[type="number"],
.filter-group input[type="text"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 9px 11px;
}

.checkbox-list {
  display: grid;
  gap: 9px;
}

/* Строка с галочкой. Флексбокс здесь не годится: каждая ссылка внутри подписи
   становилась бы отдельным элементом строки, и длинный текст с двумя ссылками
   («принимаю правовую информацию и политику конфиденциальности») вылезал за карточку.
   Обычный поток + вынесенный чекбокс — текст переносится как абзац. */
.checkbox-row {
  position: relative;
  display: block;
  padding: 5px 0 5px 28px;
  font-size: 0.83rem;
  line-height: 1.45;
}

.checkbox-row input {
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brass-dark);
}

.catalog-tools {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.catalog-tools__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-tools select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 12px;
}

.active-filters {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.chip[aria-pressed="true"],
.chip--active {
  border-color: var(--brass);
  background: var(--brass-soft);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 22px;
}

.mobile-filter-trigger {
  display: none;
}

.map-panel {
  display: none;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 35% 40%, rgba(49, 95, 112, 0.2) 0 5px, transparent 6px),
    radial-gradient(circle at 62% 62%, rgba(196, 161, 79, 0.65) 0 7px, transparent 8px),
    linear-gradient(132deg, var(--sea-soft), #f6f2e7);
  place-items: center;
  text-align: center;
}

.map-panel.is-visible {
  display: grid;
}

/* Карта стоит над строкой «фильтры + результаты» — отделяем её от них. */
.container > .map-panel.is-visible {
  margin-bottom: 30px;
}

/* --- Карта каталога (assets/js/catalog-map.js) --- */

.map-panel.cmap {
  padding: 0;
  overflow: hidden;
  background: var(--surface-warm);
  place-items: stretch;
}

.cmap__viewport {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background: #dfe4e6;
}

/* cursor наследуется, поэтому кликабельным элементам возвращаем указатель явно. */
.cmap__marker,
.cmap__tip a,
.cmap__controls button,
.cmap__controls a {
  cursor: pointer;
}

/* Кнопка ⤢ удваивает высоту: на большой карте маркеры перестают наслаиваться. */
.map-panel.cmap.is-tall .cmap__viewport {
  min-height: 1040px;
}

/* На странице объекта карта скромнее: она иллюстрация к карточке, а не рабочий инструмент. */
.map-panel.cmap--property .cmap__viewport {
  min-height: 420px;
}

.cmap__viewport.is-dragging {
  cursor: grabbing;
}

.cmap__layer {
  position: absolute;
  inset: 0;
}

.cmap__layer--markers {
  pointer-events: none;
}

.cmap__tile {
  position: absolute;
  top: 0;
  left: 0;
  width: 256px;
  height: 256px;
  user-select: none;
  -webkit-user-drag: none;
}

.cmap__marker {
  position: absolute;
  top: 0;
  left: 0;
  margin: -17px 0 0 -17px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 11px 0 7px;
  border: 1px solid rgba(0, 0, 0, .16);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .28);
  pointer-events: auto;
}

/* Позицию маркера задаёт inline-transform из JS — здесь его трогать нельзя. */
.cmap__marker:hover,
.cmap__marker:focus-visible {
  z-index: 5;
  border-color: var(--brass);
  background: var(--surface-warm);
}

.cmap__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
}

.cmap__icon svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

/* Группа объектов: заменяет слипшиеся маркеры одним кружком с их числом.
   Клик приближает группу, на предельном зуме группы не собираются вовсе. */
.cmap__cluster {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brass-dark);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 120ms ease;
}

.cmap__cluster:hover,
.cmap__cluster:focus-visible {
  transform: scale(1.08);
}

.cmap__cluster--big {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {
  .cmap__cluster { transition: none; }
  .cmap__cluster:hover, .cmap__cluster:focus-visible { transform: none; }
}

.cmap__marker--villa .cmap__icon { background: #2f5d50; }
.cmap__marker--apartment .cmap__icon { background: #315f70; }
.cmap__marker--new .cmap__icon { background: #8a6d2f; }
.cmap__marker--plot .cmap__icon { background: #6b7a3a; }
.cmap__marker--commercial .cmap__icon { background: #7a4a3a; }

/* Точка ручной привязки объекта (админка): стоит ровно на координате, а не рядом.
   pointer-events отключены, чтобы клик по самой точке тоже попадал в карту. */
.pick-pin {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 7;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brass-dark);
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* Офис — не объект каталога: выделяем его тёмной плашкой и держим поверх маркеров. */
.cmap__marker--office {
  z-index: 6;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.79rem;
  font-weight: 700;
}

.cmap__marker--office:hover,
.cmap__marker--office:focus-visible {
  background: #2a2f38;
  border-color: var(--brass);
}

.cmap__marker--office .cmap__icon { background: var(--brass); }
.cmap__marker--office .cmap__icon svg { fill: var(--ink); }

.cmap__tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 262px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .32);
  text-align: left;
}

/* Подсказка кликабельна: внутри ссылки на карточку и на Google Карты. */
.cmap__tip-main {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cmap__tip img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.cmap__tip-body {
  display: block;
  padding: 10px 12px 10px;
}

.cmap__tip-body--plain {
  padding-bottom: 4px;
}

.cmap__tip-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.94rem;
  line-height: 1.3;
}

.cmap__tip-kicker {
  display: block;
  margin: 0 0 3px;
  color: var(--brass-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cmap__tip-price {
  display: block;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.cmap__tip-total {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.cmap__tip-actions {
  display: flex;
  gap: 8px;
  padding: 0 12px 10px;
}

.cmap__tip-actions a {
  flex: 1;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.cmap__tip-actions a:hover {
  border-color: var(--brass);
  background: var(--surface-warm);
}

.cmap__tip-hint {
  margin: 0;
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.cmap__controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: grid;
  gap: 6px;
}

.cmap__controls button,
.cmap__controls a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.cmap__controls button:hover,
.cmap__controls a:hover {
  border-color: var(--brass);
}

.cmap__controls svg {
  width: 17px;
  height: 17px;
  fill: var(--ink);
}

.cmap__google {
  font-family: var(--font-display, inherit);
}

.cmap__legend,
.cmap__counter,
.cmap__credit {
  position: absolute;
  z-index: 6;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .93);
  font-size: 0.72rem;
  text-align: left;
}

.cmap__legend {
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cmap__legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cmap__legend-ico {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.cmap__legend-ico svg {
  width: 11px;
  height: 11px;
  fill: #fff;
}

.cmap__legend-ico--villa { background: #2f5d50; }
.cmap__legend-ico--apartment { background: #315f70; }
.cmap__legend-ico--new { background: #8a6d2f; }
.cmap__legend-ico--plot { background: #6b7a3a; }
.cmap__legend-ico--office { background: var(--brass); }
.cmap__legend-ico--office svg { fill: var(--ink); }

.cmap__counter {
  bottom: 12px;
  left: 12px;
  color: var(--muted);
}

.cmap__credit {
  bottom: 12px;
  right: 12px;
  color: var(--muted);
}

.cmap__credit a {
  color: inherit;
}

@media (max-width: 700px) {
  .cmap__viewport { min-height: 420px; }
  .map-panel.cmap.is-tall .cmap__viewport { min-height: 840px; }
  .cmap__legend { display: none; }
  .cmap__tip { width: 210px; }
  .cmap__tip img { height: 92px; }
}

.property-page-head {
  display: grid;
  /* minmax(0, 1fr): без него длинный заголовок распирает колонку и прижимается к цене */
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px 48px;
  padding-block: 46px 24px;
}

.property-page-head h1 {
  max-width: 900px;
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

/* Проданный объект: цена на странице зачёркнута (класс ставит app.js по плашке sold). */
.is-sold .property-page-head__price {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.55;
}

.property-page-head__price {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  white-space: nowrap;
}

.property-head-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 240px));
  gap: 8px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.gallery button {
  position: relative;
  min-height: 0;
  border: 0;
  padding: 0;
  background: #ddd;
  overflow: hidden;
}

.gallery button:first-child {
  grid-row: 1 / 3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery button:hover img {
  transform: scale(1.015);
}

.gallery__count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 9px 12px;
  font-size: 0.76rem;
  font-weight: 800;
}

.key-facts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-block: 26px 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.key-fact {
  min-height: 96px;
  background: var(--surface);
  padding: 18px;
}

.key-fact span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.key-fact strong {
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.property-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 70px;
}

.property-content > section {
  padding-block: 40px;
  border-top: 1px solid var(--line);
}

.property-content > section:first-child {
  padding-top: 0;
  border-top: 0;
}

.property-content h2 {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
}

.advisor-card {
  position: sticky;
  top: calc(var(--header-height) + var(--utility-offset) + 24px);
  /* Карточка липкая, но с формой она бывает выше экрана — тогда кнопка «Отправить»
     оказывалась за нижним краем и до неё приходилось листать всю страницу.
     Прокручиваем саму карточку, полосу показываем явно. */
  max-height: calc(100vh - var(--header-height) - var(--utility-offset) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 26px;
}

.advisor-card::-webkit-scrollbar {
  width: 11px;
}

.advisor-card::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--surface-warm);
}

.advisor-card::-webkit-scrollbar-thumb {
  border: 3px solid var(--surface);
  border-radius: 999px;
  background: var(--line-strong);
}

.advisor-card::-webkit-scrollbar-thumb:hover {
  background: var(--brass);
}

.advisor-card__person {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.advisor-card__avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brass-soft);
  color: var(--brass-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.advisor-card__person strong,
.advisor-card__person small {
  display: block;
}

.advisor-card__person small {
  color: var(--muted);
}

.advisor-card .btn {
  width: 100%;
  margin-top: 9px;
}

.trust-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.cost-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-warm);
  padding: 26px;
}

.cost-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}

.cost-row:last-child {
  border: 0;
}

.cost-row--total {
  font-size: 1.06rem;
  font-weight: 800;
}

/* Символы свойств объекта: цветные эмодзи приводим к чёрно-белым. */
.spec-ico {
  display: inline-block;
  filter: grayscale(1);
}

/* Характеристики объекта (Detalle + Características): две колонки на десктопе.
   Поверхность прежняя (.cost-box) — ночная тема покрывает её существующими правилами. */
.spec-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

@media (max-width: 680px) {
  .spec-cols {
    grid-template-columns: 1fr;
  }
}

/* Второй вход с первого экрана: проверить объект, найденный в другом агентстве. */
.hero__second-cta {
  margin: 18px 0 0;
  font-size: 1.02rem;
}

.hero__second-cta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.hero__second-cta a:hover {
  opacity: .78;
}

.calculator {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

/* Вариант «по содержимому»: поле не тянется на треть строки, а занимает
   ровно ширину своей подписи (ипотечный калькулятор — там подписи разной длины). */
.calculator--auto {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
}

.calculator--auto .form-field {
  width: max-content;
  min-width: 92px;
}

.calculator--auto .form-field input {
  width: 100%;
}

/* Диапазон «от – до» двумя полями в одной строке */
.range-pair {
  display: flex;
  align-items: center;
  gap: 6px;
}

.range-pair input {
  width: 68px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.76rem;
  font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  padding: 11px 12px;
}

.form-field textarea {
  min-height: 126px;
  resize: vertical;
}

.form-field small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(24px, 4vw, 46px);
}

.form-success {
  border: 1px solid rgba(47, 110, 85, 0.35);
  border-radius: 9px;
  background: rgba(47, 110, 85, 0.08);
  padding: 14px;
  color: var(--success);
}

.mobile-cta {
  display: none;
}

.comparison-bar {
  position: fixed;
  z-index: 65;
  right: 24px;
  bottom: 24px;
  left: 24px;
  max-width: 840px;
  margin-inline: auto;
  display: none;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 60px rgba(16, 24, 40, 0.18);
  padding: 12px 14px 12px 20px;
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.comparison-bar.is-visible {
  display: grid;
}

body.has-comparison-bar {
  padding-bottom: 92px;
}

.compare-btn {
  min-height: 32px;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  padding: 4px 0;
}

.compare-btn[aria-pressed="true"] {
  color: var(--brass-dark);
}

.dialog-backdrop,
.drawer-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(17, 20, 25, 0.64);
  padding: 20px;
}

.dialog-backdrop.is-open,
.drawer-backdrop.is-open {
  display: flex;
}

.dialog {
  width: min(100%, 700px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  padding: clamp(24px, 5vw, 48px);
}

.dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dialog__header h2 {
  margin-bottom: 6px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-block: 18px 26px;
}

.choice-card {
  position: relative;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-warm);
  padding: 17px;
  text-align: left;
}

.choice-card[aria-pressed="true"] {
  border-color: var(--brass);
  background: var(--brass-soft);
}

.choice-card strong {
  margin-bottom: 3px;
}

.choice-card small {
  color: var(--muted);
}

.profile-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 16px 24px;
}

.why-this {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--sea);
  font-size: 0.72rem;
  font-weight: 700;
}

.cookie-banner {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  left: 24px;
  max-width: 780px;
  margin-inline: auto;
  display: none;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 70px rgba(17, 20, 25, 0.2);
  padding: 18px 20px;
}

.cookie-banner.is-visible {
  display: grid;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.77rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
}

.toast {
  position: fixed;
  z-index: 150;
  pointer-events: none;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100% - 40px));
  transform: translateY(130%);
  border-radius: 10px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  padding: 13px 17px;
  font-size: 0.8rem;
  transition: transform 220ms ease-out;
}

.toast.is-visible {
  transform: translateY(0);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-warm);
  padding-block: 72px 22px;
}

/* Бренд шире, дальше колонки по числу детей (Каталог / Покупателям / INFTOUR / Контакты).
   grid-auto-flow: column кладёт каждую колонку в свой неявный трек 1fr, поэтому сетка
   одинаково работает и на спецстраницах, где навигационных колонок меньше. */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 44px 34px;
}

.footer-brand img {
  width: 180px;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-column h2 {
  margin-bottom: 16px;
  font-family: "Manrope", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: var(--ink-700);
  font-size: 0.8rem;
  list-style: none;
}

.footer-column a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--brass-dark);
}

/* Контакты подвала: адрес и город, затем два телефона с языками и почта. */
.footer-contacts .footer-contacts__group {
  margin-top: 7px;
}

.footer-contacts__langs {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===== Отзывы Google в «Центре прозрачности» (about.html) =================
   Секция тёмная (.section--ink), поэтому карточки — светлые плашки на ней. */
.reviews {
  margin-top: 46px;
  color: var(--ink);
}

/* Две колонки: слева сводка с гистограммой (как в Google), справа прокручиваемая
   лента отзывов. Клик по строке гистограммы фильтрует ленту (как в Amazon). */
.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 28px 34px;
  align-items: start;
}

.reviews-summary {
  position: sticky;
  top: calc(var(--header-height, 76px) + var(--utility-offset, 32px) + 16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-warm);
}

.reviews-summary__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.reviews-summary__score {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reviews-summary__score strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.2rem;
  line-height: 0.9;
}

.reviews-summary__score div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reviews-summary__score .muted {
  font-size: 0.8rem;
}

/* Гистограмма: строка = кнопка фильтра по числу звёзд */
.reviews-bars {
  display: grid;
  gap: 6px;
}

.reviews-bar {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
}

.reviews-bar[disabled] {
  cursor: default;
  opacity: 0.55;
}

.reviews-bar__track {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.reviews-bar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brass);
  transition: width 0.3s ease;
}

.reviews-bar__count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.reviews-bar:not([disabled]):hover .reviews-bar__fill,
.reviews-bar.is-active .reviews-bar__fill {
  background: var(--brass-dark);
}

.reviews-bar.is-active {
  font-weight: 700;
}

.reviews-reset {
  align-self: start;
}

.reviews-google {
  align-self: start;
  margin-top: 4px;
}

.reviews-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

/* Горизонтальные ленты (отзывы и кейсы): крупные стрелки слева и справа,
   полный текст — в модалке, первоисточник — по ссылкам в карточке */
.h-scroller {
  display: flex;
  align-items: center;
  gap: 12px;
}

.h-scroller__arrow {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-700);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.h-scroller__arrow:hover,
.h-scroller__arrow:focus-visible {
  border-color: var(--brass);
  color: var(--brass-dark);
  background: var(--brass-soft);
}

/* Дорожка — flex-ребёнок: без min-width:0 она распирает контейнер */
.h-scroller [data-scroll-track] {
  flex: 1 1 auto;
  min-width: 0;
}

.reviews-list {
  display: grid;
  grid-auto-flow: column;
  /* В видимой области — ровно три карточки (два зазора по 14px) */
  grid-auto-columns: calc((100% - 28px) / 3);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.reviews-list .review-card {
  scroll-snap-align: start;
}

.reviews-list::-webkit-scrollbar {
  height: 8px;
}

.reviews-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--line-strong);
}

.reviews-list::-webkit-scrollbar-thumb:hover {
  background: var(--brass);
}

.reviews-list:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}

.reviews-none {
  margin-top: 14px;
}

/* Имя автора — ссылка на его профиль Google */
.review-card__head a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.review-card__head a:hover,
.review-card__head a:focus-visible {
  color: var(--brass-dark);
}

/* «Когда что-то идёт не так» — реальные низкие оценки и наши решения */
.reviews-cases {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.reviews-cases h3 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
}

.reviews-cases__lead {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--ink-700);
  font-size: 0.9rem;
  line-height: 1.6;
}

.case-grid {
  display: grid;
  grid-auto-flow: column;
  /* В видимой области — два кейса (один зазор 14px) */
  grid-auto-columns: calc((100% - 14px) / 2);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.case-grid::-webkit-scrollbar {
  height: 8px;
}

.case-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--line-strong);
}

.case-card {
  scroll-snap-align: start;
}

.case-card__source {
  margin-top: 8px;
  align-self: start;
  font-size: 0.8rem;
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-warm);
}

.case-card__quote {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.6;
}

.case-card__quote::before {
  content: "« ";
  color: var(--brass-dark);
}

.case-card__quote::after {
  content: " »";
  color: var(--brass-dark);
}

.case-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.case-card__meta a {
  color: inherit;
  text-decoration: none;
}

.case-card__meta a:hover,
.case-card__meta a:focus-visible {
  color: var(--brass-dark);
}

.case-card__action {
  margin-top: auto;
  border-left: 2px solid var(--brass);
  padding-left: 12px;
}

.case-card__action strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-dark);
}

.case-card__action p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
}

@media (max-width: 680px) {
  .h-scroller {
    gap: 6px;
  }

  .h-scroller__arrow {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .reviews-list,
  .case-grid {
    grid-auto-columns: 100%;
  }
}

/* Сноска о спорных отзывах под лентой */
.reviews-note {
  margin: 16px 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
}

.reviews-tools select {
  min-width: 210px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
}

.stars {
  color: var(--brass-dark);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-warm);
}

.review-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.review-card__avatar--letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brass-soft);
  color: var(--brass-dark);
  font-weight: 700;
  text-transform: uppercase;
}

.review-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.review-card__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--ink-700);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Наш ответ — визуально «вложен» в отзыв, как в карточке Google. */
.review-card__reply {
  border-left: 2px solid var(--brass);
  padding-left: 12px;
}

.review-card__reply strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-dark);
}

.review-card__reply p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
}

.review-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: auto;
  font-size: 0.8rem;
}

.reviews-more {
  margin-top: 22px;
  text-align: center;
}

.reviews-empty {
  margin: 0;
}

/* Полный просмотр одного отзыва */
.review-dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 24, 40, 0.55);
}

.review-dialog__box {
  position: relative;
  width: min(640px, 100%);
  max-height: 82vh;
  overflow-y: auto;
  border-radius: 14px;
  background: var(--surface);
}

.review-dialog__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

.review-card--full {
  border: 0;
  background: none;
}

.review-card--full .review-card__text,
.review-card--full .review-card__reply p {
  display: block;
  overflow: visible;
}

/* Строка отзывов и соцсетей в подвале (как на rent.inftour.es/lobby) */
.review-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 54px;
  padding-block: 18px 2px;
  border-top: 1px solid var(--line);
}

.review-bar + .footer-bottom {
  margin-top: 16px;
}

.review-bar__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Временно (11.08.2026, решение Алекса): оценки скрыты, остались только значки-ссылки.
   Вернуть цифры — удалить правило .review-bar__item .review-bar__name и соседние. */
.review-bar__item .review-bar__name,
.review-bar__item .review-bar__score,
.review-bar__item .review-bar__max {
  display: none;
}

.review-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-700);
  text-decoration: none;
  transition: color 0.2s ease;
}

.review-bar__item:hover,
.review-bar__item:focus-visible {
  color: var(--brass-dark);
}

.review-bar__mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 1;
}

.review-bar__name {
  font-size: 0.75rem;
  font-weight: 600;
}

.review-bar__score {
  font-size: 0.75rem;
  font-weight: 700;
}

.review-bar__max {
  font-size: 0.625rem;
  color: #99a1af;
}

.review-bar__sep {
  width: 1px;
  height: 16px;
  background: var(--line-strong);
}

.review-bar__social {
  display: inline-flex;
  color: var(--muted);
  transition: color 0.2s ease;
}

.review-bar__social svg {
  display: block;
}

.review-bar__social--ig:hover,
.review-bar__social--ig:focus-visible {
  color: #dc2743;
}

.review-bar__social--fb:hover,
.review-bar__social--fb:focus-visible {
  color: #1877f2;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion__item {
  border-bottom: 1px solid var(--line);
}

.accordion__trigger {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  background: transparent;
  padding: 16px 0;
  font-weight: 750;
  text-align: left;
}

.accordion__panel {
  display: none;
  max-width: 780px;
  padding: 0 0 22px;
  color: var(--muted);
}

.accordion__trigger[aria-expanded="true"] + .accordion__panel {
  display: block;
}

/* Юридические разделы (privacy.html): три зоны, раскрывающиеся при наведении курсора.
   Текст длинный, поэтому раскрытая зона не тянет страницу вниз бесконечно, а прокручивается внутри.
   :focus-within — для клавиатуры, .is-open — для тача, где наведения не существует. */
.policy-cards__hint {
  margin: 8px 0 22px;
}

.policy-cards {
  display: grid;
  /* minmax(0, 1fr), а не 1fr: иначе широкая таблица cookie внутри свёрнутой зоны
     раздувает свою колонку и три зоны получаются разной ширины. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.policy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.policy-card:hover,
.policy-card:focus-within,
.policy-card.is-open {
  border-color: var(--brass);
  box-shadow: 0 18px 40px rgba(17, 20, 25, 0.09);
}

.policy-card__head {
  cursor: pointer;
}

.policy-card__num {
  display: block;
  margin-bottom: 8px;
  color: var(--brass-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  font-variant-numeric: lining-nums;
  line-height: 1;
}

.policy-card__head h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.policy-card__lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.policy-card__body {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  transition: max-height 0.35s ease, margin-top 0.35s ease;
}

/* Высота в пикселях, а не в vh: во встроенных просмотрщиках vh резолвится в 0,
   и раскрытая зона получалась пустой. */
.policy-card:hover .policy-card__body,
.policy-card:focus-within .policy-card__body,
.policy-card.is-open .policy-card__body {
  max-height: 520px;
  margin-top: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

@media (max-width: 900px) {
  .policy-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  /* На узком экране наведения нет — раскрываем только по нажатию, и во всю доступную высоту. */
  .policy-card:hover .policy-card__body {
    max-height: 0;
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
  }

  .policy-card:focus-within .policy-card__body,
  .policy-card.is-open .policy-card__body {
    max-height: 600px;
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }
}

.policy-card__body h3 {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 0.95rem;
}

.policy-card__body h3:first-child {
  margin-top: 0;
}

.policy-card__body p,
.policy-card__body ul {
  margin: 0 0 12px;
}

.policy-card__body ul {
  padding-left: 18px;
}

.policy-card__body li {
  margin-bottom: 6px;
}

.policy-card__body .button-row {
  flex-wrap: wrap;
  gap: 10px;
}

/* Таблица cookie шире колонки текста — прокручиваем её саму, а не страницу. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
}

.policy-table {
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.policy-table th,
.policy-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  background: var(--surface-warm);
  color: var(--ink);
}

.account-hero {
  padding-block: 68px 38px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface-warm), var(--canvas));
}

.account-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 48px;
}

.account-hero h1 {
  max-width: 820px;
  margin-bottom: 14px;
}

.account-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 22px;
}

.account-summary h2 {
  margin-bottom: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.account-nav {
  position: sticky;
  z-index: 20;
  top: calc(var(--header-height) + var(--utility-offset));
  border-bottom: 1px solid var(--line);
  background: rgba(252, 251, 246, 0.94);
  backdrop-filter: blur(14px);
}

.account-nav__inner {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.account-nav a {
  flex: 0 0 auto;
  border-bottom: 2px solid transparent;
  padding-block: 17px 14px;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.account-nav a:hover,
.account-nav a[aria-current="page"] {
  border-color: var(--brass);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 52px;
}

.profile-editor {
  position: sticky;
  top: calc(var(--header-height) + var(--utility-offset) + 72px);
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
  padding: 26px;
}

.profile-editor h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.profile-editor .form-field + .form-field {
  margin-top: 16px;
}

.profile-editor .btn {
  width: 100%;
  margin-top: 20px;
}

.journey-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.journey-step {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 16px;
  background: white;
  padding: 18px 20px;
}

.journey-step__number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-warm);
  font-size: 0.78rem;
  font-weight: 800;
}

.journey-step.is-active .journey-step__number {
  background: var(--brass);
}

.journey-step.is-complete .journey-step__number {
  background: var(--success);
  color: white;
}

.journey-step.is-active {
  box-shadow: inset 3px 0 var(--brass);
}

.journey-step h3,
.saved-search-card h3 {
  margin: 0 0 4px;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.journey-step p,
.saved-search-card p {
  margin: 0;
  font-size: 0.82rem;
}

.saved-searches {
  display: grid;
  gap: 12px;
}

.saved-search-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  padding: 20px;
}

.saved-search-card__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.private-note {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.private-note textarea {
  width: 100%;
  min-height: 64px;
  margin-top: 7px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-warm);
  padding: 10px 12px;
  color: var(--ink);
  font: 500 0.82rem/1.45 "Manrope", sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

.private-note textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.private-note small {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.property-card__compromise {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--ink-700);
  font-size: 0.78rem;
}

.shared-copy-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.shared-copy-notice[hidden] {
  display: none;
}

.shared-copy-notice p {
  margin: 4px 0 0;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-warm);
  padding: clamp(28px, 5vw, 58px);
  text-align: center;
}

.empty-state h2,
.empty-state h3 {
  margin-bottom: 10px;
}

.empty-state .btn {
  margin-top: 12px;
}

.compare-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
}

.compare-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare-table caption {
  caption-side: top;
  border-bottom: 1px solid var(--line);
  background: var(--sea-soft);
  padding: 12px 18px;
  color: var(--ink-700);
  font-size: 0.78rem;
  text-align: left;
}

.compare-table th,
.compare-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px;
  text-align: left;
  vertical-align: top;
}

.compare-table th:first-child {
  width: 168px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface-warm);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-table thead th:first-child {
  z-index: 3;
}

.compare-table thead th:not(:first-child) {
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  text-transform: none;
}

.compare-table thead img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
  border-radius: 8px;
  object-fit: cover;
}

.compare-table thead a {
  display: block;
  min-height: 2.8em;
  margin-bottom: 10px;
  text-decoration: none;
}

.compare-table__positive td {
  background: rgba(47, 110, 85, 0.08);
}

.compare-table__caution td {
  background: rgba(198, 157, 68, 0.12);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.privacy-purpose-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.privacy-purpose {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.privacy-purpose > span:first-child {
  display: grid;
  gap: 3px;
}

.privacy-purpose small {
  color: var(--muted);
}

.privacy-purpose > [data-purpose-state] {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.privacy-purpose[aria-pressed="true"] {
  border-color: var(--success);
  background: rgba(47, 110, 85, 0.08);
}

.privacy-purpose[aria-pressed="true"] > [data-purpose-state] {
  color: var(--success);
}

.privacy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 26px;
}

.privacy-card h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.privacy-card ul {
  margin: 18px 0;
  padding-left: 18px;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 1180px) {
  .container {
    width: min(calc(100% - 48px), var(--container));
  }

  /* Колонки, шаг и кегль меню здесь не переопределяем: базовые clamp-значения
     продолжают сжиматься сами и держат восемь пунктов в одну строку вплоть до 980px,
     где меню уступает место бургеру. Фиксированные значения этот диапазон ломали. */
  .brand img {
    max-width: 150px;
  }

  .header-actions .btn {
    display: none;
  }

  .search-panel {
    grid-template-columns: repeat(4, 1fr);
  }

  .search-panel .btn {
    grid-column: 1 / -1;
    min-height: 54px;
  }

  .key-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .filter-panel__header [data-close-filters] {
    display: grid;
  }
  .account-hero__inner,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .profile-editor {
    position: static;
  }

  .privacy-grid {
    grid-template-columns: 1fr 1fr;
  }
  :root {
    --header-height: 71px;
  }

  /* Верхняя строка на мобильных больше не прячется: в ней живёт переключатель
     день/ночь, он нужен всегда. Остаются кнопки и погода, веб-камеры скрыты. */
  .utility-bar__links {
    display: none;
  }

  .section {
    padding-block: 82px;
  }

  .nav-list,
  .header-actions .lang-select {
    display: none;
  }

  .site-header__inner > nav {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .header-actions {
    grid-column: 2;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .mobile-menu {
    position: fixed;
    z-index: 79;
    top: calc(var(--header-height) + var(--utility-offset));
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    background: var(--surface-warm);
    padding: 26px 24px 80px;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .mobile-menu ul {
    display: grid;
    gap: 0;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
  }

  .mobile-menu li {
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu a {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
  }

  /* Верхняя полоса с переключателем разделов на мобильном скрыта,
     поэтому ссылку на аренду выделяем прямо в меню. */
  .mobile-menu__rent > a,
  a.mobile-menu__rent {
    color: var(--brass-dark);
    font-weight: 800;
  }

  a.mobile-menu__rent {
    border-top: 1px solid var(--line);
  }

  .hero {
    min-height: 700px;
  }

  .hero__content {
    padding-block: 96px 30px;
  }

  .hero__copy {
    margin-bottom: 38px;
  }

  .card-grid,
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid > :last-child {
    grid-column: 1 / -1;
  }

  #method .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #method .card-grid > :last-child {
    grid-column: auto;
  }

  .lifestyle-card {
    min-height: 370px;
  }

  .verified-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 24px;
  }

  .timeline__item:nth-child(2)::after,
  .timeline__item:nth-child(4)::after {
    display: none;
  }

  .catalog-layout {
    display: block;
  }

  .filter-panel {
    position: fixed;
    z-index: 110;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(90vw, 420px);
    transform: translateX(110%);
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    box-shadow: var(--shadow);
    transition: transform 220ms ease-out;
  }

  .filter-panel.is-open {
    transform: translateX(0);
  }

  /* В выдвижной панели ограничение по высоте лишнее — она и так во весь экран.
     Карточка контакта на телефоне тоже не липкая: ограничивать её высоту нельзя,
     иначе форма получит вторую полосу прокрутки внутри страницы. */
  .filter-panel,
  .advisor-card {
    max-height: none;
    overflow: visible;
  }

  /* Карта каталога на телефоне.
     Было: 520 px и touch-action: none — карта занимала весь экран и «съедала»
     вертикальный свайп, из-за чего до фильтров и списка под ней было не добраться.
     Стало: невысокая карта (видно, что под ней есть содержимое) и вертикальный
     свайп листает страницу. Кнопка «выше в два раза» разворачивает карту —
     и в развёрнутом виде она снова работает как полноценная карта. */
  .cmap__viewport {
    min-height: 300px;
    touch-action: pan-y;
  }

  /* Селектор повторяет базовый (.map-panel.cmap.is-tall): с меньшей специфичностью
     правило не перебило бы 1040 px из десктопной части. */
  .map-panel.cmap.is-tall .cmap__viewport {
    min-height: 68vh;
    touch-action: none;
  }

  .drawer-backdrop.is-open {
    display: block;
    z-index: 105;
  }

  .mobile-filter-trigger {
    display: inline-flex;
  }

  .property-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .advisor-card {
    position: static;
  }

  .gallery {
    grid-template-rows: repeat(2, minmax(0, 170px));
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: row;
  }
}

@media (max-width: 680px) {
  .account-hero {
    padding-block: 46px 28px;
  }

  .account-hero__inner {
    gap: 28px;
  }

  .account-nav {
    top: calc(var(--header-height) + var(--utility-offset));
  }

  .account-nav__inner {
    gap: 22px;
  }

  .journey-step {
    grid-template-columns: 38px 1fr;
  }

  .journey-step > :last-child {
    grid-column: 2;
  }

  .saved-search-card,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .shared-copy-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .saved-search-card__actions {
    justify-content: space-between;
  }

  .compare-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .compare-table {
    min-width: 720px;
  }

  .compare-table th,
  .compare-table td {
    padding: 14px;
  }

  .privacy-card {
    padding: 22px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .narrow {
    width: min(calc(100% - 32px), 760px);
  }

  .section,
  .section--tight {
    padding-block: 64px;
  }

  h1 {
    font-size: clamp(2.2rem, 9vw, 2.9rem);
  }

  h2 {
    font-size: clamp(1.75rem, 7vw, 2.3rem);
  }

  .site-header__inner {
    min-height: 64px;
  }

  .brand img {
    width: 132px;
  }

  .header-actions {
    gap: 2px;
  }

  /* Узкий экран: фото становится отдельным блоком сверху, текст идёт ПОД ним.
     Тёмной подложки и вуали здесь быть не должно — днём текст тёмный (правило
     .hero выше), и на тёмном фоне он пропадал. Ночью всё это перекрывают
     правила html[data-theme="night"] .hero* в конце файла. */
  .hero {
    min-height: auto;
    display: block;
    padding-top: 0;
  }

  .hero__media {
    position: relative;
    height: 52vh;
    min-height: 380px;
  }

  .hero__media::after {
    background: none;
  }

  .hero__content {
    margin-top: 0;
    padding: 24px 0 20px;
  }

  .hero__copy {
    position: relative;
    margin-bottom: 28px;
  }

  .hero__copy h1 {
    overflow-wrap: break-word;
  }

  .hero__copy .lead {
    font-size: 1rem;
  }

  .hero__proof {
    gap: 8px 13px;
  }

  .search-panel {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius);
  }

  .search-field:nth-child(2n) {
    border-right: 0;
  }

  .search-field {
    border-bottom: 1px solid var(--line);
    padding: 13px 14px 11px;
  }

  .search-panel .btn {
    grid-column: 1 / -1;
    border-radius: 0;
  }

  .conversation-panel {
    padding: 14px;
  }

  .conversation-panel__composer {
    grid-template-columns: minmax(0, 1fr) 46px 48px;
  }

  .conversation-panel__choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .conversation-panel__choices button {
    text-align: left;
  }

  .section-head,
  .catalog-tools,
  .property-page-head,
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
  }

  .card-grid,
  .property-grid,
  .catalog-grid,
  .verified-strip,
  .timeline,
  .footer-grid,
  .form-grid,
  .calculator {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-auto-flow: row;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .card-grid > :last-child,
  .form-grid .span-2 {
    grid-column: auto;
  }

  #method .card-grid {
    grid-template-columns: 1fr;
  }

  .lifestyle-card {
    min-height: 410px;
  }

  .property-card h3 {
    min-height: auto;
  }

  .verified-item {
    min-height: auto;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .split__note {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: -52px 14px 0;
  }

  .timeline__item::after {
    display: none;
  }

  .cta-band {
    display: flex;
    gap: 26px;
  }

  .page-hero {
    padding-block: 52px 38px;
  }

  .page-hero--media {
    min-height: 500px;
  }

  .catalog-tools {
    display: flex;
  }

  .catalog-tools__right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .catalog-tools__right .btn {
    flex: 1 1 calc(50% - 4px);
  }

  .catalog-tools__right select {
    width: 100%;
    flex: 1 1 100%;
  }

  .gallery {
    display: flex;
    aspect-ratio: 4 / 3;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .gallery button {
    min-width: 100%;
    scroll-snap-align: start;
  }

  .gallery button:nth-child(n + 3) {
    display: none;
  }

  .property-page-head {
    display: flex;
    padding-block: 34px 18px;
  }

  .property-page-head__actions {
    width: 100%;
  }

  .property-head-actions {
    justify-content: flex-start;
  }

  .key-facts {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 36px;
  }

  .mobile-cta {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8px;
    border-top: 1px solid var(--line);
    background: rgba(252, 251, 246, 0.98);
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  }

  body.has-mobile-cta {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  body.has-comparison-bar {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  body.has-mobile-cta.has-comparison-bar {
    padding-bottom: calc(164px + env(safe-area-inset-bottom));
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .dialog-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding: 26px 20px calc(30px + env(safe-area-inset-bottom));
  }

  .cookie-banner {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .comparison-bar {
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 8px;
    grid-template-columns: 1fr auto;
  }

  body.has-mobile-cta .comparison-bar {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .comparison-bar .btn--outline {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .search-panel {
    grid-template-columns: 1fr;
  }

  .search-field {
    border-right: 0;
  }

  .conversation-panel__composer {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .conversation-panel__voice {
    grid-column: 2;
    grid-row: 1;
  }

  .conversation-panel__send {
    grid-column: 1 / -1;
    min-height: 44px;
  }

  .hero__proof li:last-child {
    display: inline-flex;
  }

  .key-facts {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* Атрибут hidden обязан скрывать элемент даже при авторском display (карточки фида на property.html) */
[hidden] { display: none !important; }

/* Диапазонные фильтры каталога: поля от/до + двойной слайдер */
.range-inputs { display: flex; align-items: center; gap: 8px; }
.range-inputs input[type="number"] { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid rgba(17, 20, 25, .25); border-radius: 8px; font: inherit; background: #fff; }
.range-inputs span { flex: 0 0 auto; color: rgba(17, 20, 25, .45); }
.range-slider { position: relative; height: 28px; margin-top: 6px; }
.range-slider__track { position: absolute; top: 50%; left: 0; right: 0; height: 4px; transform: translateY(-50%); border-radius: 999px; background: rgba(17, 20, 25, .15); }
.range-slider__fill { position: absolute; top: 50%; height: 4px; transform: translateY(-50%); border-radius: 999px; background: #a8823c; }
.range-slider input[type="range"] { position: absolute; inset: 0; width: 100%; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range-slider input[type="range"]::-webkit-slider-runnable-track { background: none; }
.range-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 18px; height: 18px; margin-top: 5px; border-radius: 50%; background: #fff; border: 2px solid #a8823c; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: pointer; }
.range-slider input[type="range"]::-moz-range-track { background: none; }
.range-slider input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #a8823c; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: pointer; }

/* ——— Районы: описание города раскрывается при наведении ———————————————————
   Панель — абсолютный «флайаут» внутри карточки: сетка не дёргается, а курсор
   может зайти внутрь панели (она дочерняя, значит hover карточки сохраняется).
   На тач-экранах hover не существует — там панель открывает кнопка
   «Описание города» (скрытый чекбокс + label, без JS: CSP запрещает инлайн-скрипты). */
.area-toggle-label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  color: var(--sea);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 0.3em;
}

.area-toggle-label__less,
.area-toggle:checked ~ .property-card__body .area-toggle-label__more {
  display: none;
}

.area-toggle:checked ~ .property-card__body .area-toggle-label__less {
  display: inline;
}

.area-toggle:focus-visible ~ .property-card__body .area-toggle-label {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.area-reveal {
  position: absolute;
  z-index: 20;
  top: -10px;
  right: -14px;
  left: -14px;
  max-height: min(80vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;   /* докрутил описание — страница под ним не едет */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px 24px 24px;
  transition: opacity 170ms ease, transform 170ms ease, visibility 170ms;
}

@media (hover: hover) and (pointer: fine) {
  .area-card:hover .area-reveal {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 110ms;   /* чтобы панель не выскакивала при проезде мышью */
  }
}

.area-toggle:checked ~ .area-reveal,
.area-toggle:focus-visible ~ .area-reveal {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.area-reveal__kicker {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.area-reveal__title {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  line-height: 1.2;
}

.area-reveal p {
  margin: 0 0 10px;
  font-size: 0.84rem;
  line-height: 1.55;
}

.area-reveal__sub {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.area-reveal__list {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.area-reveal__list li {
  border-left: 2px solid var(--brass-soft);
  padding-left: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  /* Тач и узкие экраны: панель встаёт в поток карточки — без перекрытия соседей. */
  .area-reveal {
    position: static;
    display: none;
    max-height: none;
    margin-top: 12px;
    box-shadow: none;
    padding: 18px;
  }

  .area-toggle:checked ~ .area-reveal {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .area-reveal {
    transition: none;
    transform: none;
  }
}


/* --- Блог --- */
/* Сетка списка статей: карточки в стиле каталога, но со своим соотношением фото. */
.blog-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(17, 20, 25, 0.12);
}

.blog-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-warm);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.blog-card__date {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card__body h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.25;
}

.blog-card__body p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.92rem;
  line-height: 1.5;
}

.blog-card__read {
  margin-top: auto;
  padding-top: 6px;
  color: var(--brass-dark, #8a6d2f);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Страница статьи: колонка чтения. */
.blog-article {
  padding-block: 46px 72px;
}

.blog-article__container {
  max-width: 820px;
}

.blog-article h1 {
  margin-bottom: 18px;
}

.blog-article__cover {
  margin: 6px 0 26px;
  overflow: hidden;
  border-radius: var(--radius);
}

.blog-article__cover img {
  display: block;
  width: 100%;
  height: auto;
}

.blog-body {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-700);
}

.blog-body h2 {
  margin: 34px 0 14px;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  color: var(--ink);
}

.blog-body h3 {
  margin: 26px 0 10px;
  color: var(--ink);
}

.blog-body p {
  margin: 0 0 16px;
}

.blog-body ul,
.blog-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.blog-body li {
  margin-bottom: 8px;
}

.blog-body img {
  max-width: 100%;
  height: auto;
  margin: 10px 0 18px;
  border-radius: var(--radius);
}

.blog-body a {
  color: var(--brass-dark, #8a6d2f);
}

.blog-body blockquote {
  margin: 0 0 16px;
  padding: 14px 20px;
  border-left: 3px solid var(--brass);
  background: var(--surface-warm);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.blog-article__back {
  margin: 34px 0 0;
}

.blog-article__cta {
  margin-top: 40px;
}

@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-card:hover {
    transition: none;
    transform: none;
  }
}


/* ============================================================================
   НОЧНОЙ РЕЖИМ (09.08.2026)
   Включается атрибутом html[data-theme="night"] — его ставит assets/js/theme.js
   до первой отрисовки, поэтому «мигания» светлой темы нет. Правило тёмных тем:
   не чёрный, а тёмно-синий графит; поверхности на ступень светлее фона; текст
   не чисто белый; золото светлее дневного. Яркость фотографий объектов гасится
   переменной --photo-dim, её выбирает пользователь (по умолчанию 50 %).
   ============================================================================ */
html[data-theme="night"] {
  --ink: #e9edf3;
  --ink-700: #b6c0ce;
  --muted: #8a94a5;
  --canvas: #0e1520;
  --surface: #17202c;
  --surface-warm: #131b25;
  --line: #27303e;
  --line-strong: #38455a;
  --brass: #e2c368;
  --brass-dark: #e6cd80;
  --brass-soft: #2b2617;
  --sea-soft: #16232a;
  --shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.45);
  --photo-dim: 0.5;
  color-scheme: dark;
}

html[data-theme="night"] body {
  background: var(--canvas);
  color: var(--ink);
}

/* Логотип нарисован сплошным чёрным — на тёмном фоне он исчезал. */
html[data-theme="night"] .brand img,
html[data-theme="night"] .footer-brand img {
  filter: invert(1);
}

html[data-theme="night"] .utility-bar { background: #1b2432; color: rgba(233, 237, 243, 0.9); }
html[data-theme="night"] .site-header { background: rgba(19, 27, 37, 0.96); border-bottom-color: var(--line); }
html[data-theme="night"] .nav-sub { background: var(--surface); border-color: #2c3648; }
html[data-theme="night"] .nav-sub li a:hover { background: rgba(226, 195, 104, 0.12); color: var(--brass); }
html[data-theme="night"] .mobile-menu { background: #111a24; }

/* Первый экран: тёмная вуаль вместо светлой, светлый текст */
html[data-theme="night"] .hero,
html[data-theme="night"] .page-hero--media { background: #0b111a; color: var(--ink); }
html[data-theme="night"] .hero__copy,
html[data-theme="night"] .page-hero--media { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }
html[data-theme="night"] .hero__media::after {
  background:
    linear-gradient(90deg, rgba(7, 11, 18, 0.88) 0%, rgba(7, 11, 18, 0.66) 38%, rgba(7, 11, 18, 0.26) 66%, rgba(7, 11, 18, 0) 86%),
    linear-gradient(0deg, rgba(7, 11, 18, 0.72) 0%, transparent 42%);
}
html[data-theme="night"] .page-hero--media::after {
  background: linear-gradient(90deg, rgba(7, 11, 18, 0.88) 0%, rgba(7, 11, 18, 0.55) 46%, rgba(7, 11, 18, 0.1) 86%);
}
html[data-theme="night"] .hero h1,
html[data-theme="night"] .page-hero--media h1 { color: #f2f5f9; }
html[data-theme="night"] .hero .eyebrow,
html[data-theme="night"] .section--ink .eyebrow,
html[data-theme="night"] .page-hero--media .eyebrow { color: var(--brass); }
html[data-theme="night"] .hero .lead,
html[data-theme="night"] .hero .seo-lead,
html[data-theme="night"] .page-hero--media .lead,
html[data-theme="night"] .page-hero--media .seo-lead { color: #ccd5e1; }

/* Поверхности и карточки */
html[data-theme="night"] .section--white { background: #111a24; }
html[data-theme="night"] .section--ink { background: #0b121b; color: var(--ink); }
html[data-theme="night"] .section--ink .lead,
html[data-theme="night"] .section--ink p,
html[data-theme="night"] .section--ink li { color: var(--ink-700); }
html[data-theme="night"] .contact-panel,
html[data-theme="night"] .cost-box,
html[data-theme="night"] .quote-card,
html[data-theme="night"] .cta-band,
html[data-theme="night"] .verified-item,
html[data-theme="night"] .property-card,
html[data-theme="night"] .area-card,
html[data-theme="night"] .zone-fact,
html[data-theme="night"] .advisor-card,
html[data-theme="night"] .filter-panel,
html[data-theme="night"] .account-summary,
html[data-theme="night"] .privacy-card,
html[data-theme="night"] .journey-step,
html[data-theme="night"] .profile-editor,
html[data-theme="night"] .saved-search-card,
html[data-theme="night"] .section--ink .contact-panel,
html[data-theme="night"] .section--ink .cost-box,
html[data-theme="night"] .section--ink .quote-card { background: var(--surface); border-color: #2c3648; color: var(--ink); }
html[data-theme="night"] .conversation-panel { background: rgba(23, 32, 44, 0.95); border-color: #2f3a4c; color: var(--ink); }
/* Ссылка «К содержанию» (видна только с клавиатуры): днём тёмная плашка с белым
   текстом, а ночью --ink светлеет и текст на ней пропадал. */
html[data-theme="night"] .skip-link { background: #17202c; color: var(--night-white); border: 1px solid rgba(255, 255, 255, 0.24); }

/* Кабинет подборки (selection.html): липкая под-навигация и кружки-номера шагов */
html[data-theme="night"] .account-nav { background: rgba(19, 27, 37, 0.94); }
html[data-theme="night"] .journey-step__number { background: #0b111a; border: 1px solid rgba(255, 255, 255, 0.35); color: var(--night-white); }
html[data-theme="night"] .journey-step.is-active .journey-step__number { background: var(--brass); border: 0; color: #0b111a; }
html[data-theme="night"] .journey-step.is-complete .journey-step__number { background: var(--success); border: 0; color: #fff; }
html[data-theme="night"] .lifestyle-card { background: #0b111a; color: #fff; }
html[data-theme="night"] .site-footer { background: #0b121b; border-top-color: var(--line); }

/* Формы */
html[data-theme="night"] input,
html[data-theme="night"] select,
html[data-theme="night"] textarea,
html[data-theme="night"] .section--ink input,
html[data-theme="night"] .section--ink select,
html[data-theme="night"] .section--ink textarea { background: #0f1720; border-color: #334052; color: var(--ink); }
html[data-theme="night"] ::placeholder { color: #7c8798; }

/* Кнопки и панели */
html[data-theme="night"] .btn { background: #3b4759; color: #fff; }
html[data-theme="night"] .btn:hover { background: #47546a; }
html[data-theme="night"] .btn--brass { background: var(--brass); color: #101828; }
html[data-theme="night"] .btn--outline { border-color: #3c485c; color: var(--ink); }
html[data-theme="night"] .btn--light,
html[data-theme="night"] .section--ink .btn--light { background: rgba(255, 255, 255, 0.1); border-color: #46536a; color: #fff; }
html[data-theme="night"] .comparison-bar { background: rgba(15, 22, 32, 0.97); color: var(--ink); border-color: var(--line); }
html[data-theme="night"] .toast { background: #17202c; color: var(--ink); border: 1px solid var(--line); }

/* Карта: тайлы OSM светлые, приглушаем их и подписи в тон теме */
html[data-theme="night"] .cmap__viewport img { filter: brightness(0.72) saturate(0.85) contrast(1.05); }
html[data-theme="night"] .cmap__marker { background: #17202c; border-color: #3a4759; color: var(--ink); }
html[data-theme="night"] .cmap__tip { background: #17202c; color: var(--ink); }

/* Фотографии объектов: приглушение на выбранное значение (0 — без изменений).
   Ночной снимок Кальпе на первом экране под правило НЕ попадает — он и снят ночью. */
html[data-theme="night"] .property-card__media img,
html[data-theme="night"] .lifestyle-card img,
html[data-theme="night"] .gallery img,
html[data-theme="night"] .gallery__main img,
html[data-theme="night"] .similar-card img,
html[data-theme="night"] .area-card img,
html[data-theme="night"] .blog-card__media img,
html[data-theme="night"] .blog-body img {
  filter: brightness(calc(1 - var(--photo-dim)));
}


/* --- Переключатель режима и диалог приглушения фотографий --- */
.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mode-switch button {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 11px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
}

.mode-switch button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.mode-switch button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.dim-dialog {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 11, 18, 0.62);
  backdrop-filter: blur(3px);
}

.dim-dialog[hidden] {
  display: none;
}

.dim-dialog__card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: 24px 26px 22px;
}

.dim-dialog__card h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.dim-dialog__card p {
  margin-bottom: 16px;
  color: var(--ink-700);
  font-size: 0.92rem;
}

.dim-dialog__row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dim-dialog__row input[type="range"] {
  flex: 1;
  accent-color: var(--brass);
}

.dim-dialog__value {
  min-width: 52px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

.dim-dialog__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.dim-dialog__actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

/* Первый экран ночью: дневной снимок уступает место вечернему Кальпе.
   Он НЕ приглушается правилом --photo-dim: снят вечером и без того тёмный. */
html[data-theme="night"] .hero__media picture { opacity: 0; }

html[data-theme="night"] .hero__media {
  background-image: url("../images/calpe-night-768.webp");
  background-size: cover;
  background-position: center;
}

@media (min-width: 769px) {
  html[data-theme="night"] .hero__media { background-image: url("../images/calpe-night-1280.webp"); }
}

@media (min-width: 1281px) {
  html[data-theme="night"] .hero__media { background-image: url("../images/calpe-night-1920.webp"); }
}


/* ============================================================================
   НОЧЬ: подписи поверх фотографий и на карте — чёрно-белые и вывернутые.
   Днём это светлые плашки с тёмным текстом и цветными значками; ночью наоборот:
   тёмная подложка, светлые буквы и значки, без цвета. Яркость «белого» задаёт
   ползунок в диалоге ночного режима (--white-level, 40…100 %).
   ============================================================================ */
html[data-theme="night"] {
  --white-level: 85;
  /* Белый подмешивается к фону темы: 100 % — чистый белый, ниже — мягкий серый. */
  --night-white: color-mix(in srgb, #ffffff calc(var(--white-level) * 1%), #0e1520);
  --night-plate: rgba(10, 15, 22, 0.88);
  --ink: var(--night-white);
}

/* Плашки и «сердечко» поверх фотографии объекта */
html[data-theme="night"] .badge,
html[data-theme="night"] .badge--verified,
html[data-theme="night"] .badge--sold,
html[data-theme="night"] .badge--reserved,
html[data-theme="night"] .badge--offer,
html[data-theme="night"] .badge--reduced,
html[data-theme="night"] .badge--project,
html[data-theme="night"] .badge--building,
html[data-theme="night"] .favorite-btn {
  background: var(--night-plate);
  color: var(--night-white);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

/* Отзывы Google ночью: тёмные плашки, светлый текст (звёзды остаются золотыми) */
html[data-theme="night"] .case-card,
html[data-theme="night"] .review-card,
html[data-theme="night"] .reviews-tools select,
html[data-theme="night"] .review-dialog__box {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--ink);
}

html[data-theme="night"] .review-card__avatar--letter {
  background: rgba(226, 195, 104, 0.16);
  color: var(--brass);
}

html[data-theme="night"] .review-card__reply strong,
html[data-theme="night"] .stars {
  color: var(--brass);
}

html[data-theme="night"] .reviews-summary {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="night"] .reviews-bar__track {
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme="night"] .reviews-bar__fill {
  background: var(--brass);
}

html[data-theme="night"] .review-dialog {
  background: rgba(6, 10, 16, 0.72);
}
html[data-theme="night"] .favorite-btn svg {
  stroke: var(--night-white);
}

html[data-theme="night"] .favorite-btn[aria-pressed="true"] svg {
  fill: var(--night-white);
  stroke: var(--night-white);
}

/* Маркеры, группы и подсказки карты */
html[data-theme="night"] .cmap__marker,
html[data-theme="night"] .cmap__cluster,
html[data-theme="night"] .cmap__tip,
html[data-theme="night"] .cmap__counter,
html[data-theme="night"] .cmap__legend,
html[data-theme="night"] .cmap__credit,
html[data-theme="night"] .cmap__controls button,
html[data-theme="night"] .cmap__controls a {
  background: var(--night-plate);
  color: var(--night-white);
  border-color: rgba(255, 255, 255, 0.24);
}

html[data-theme="night"] .cmap__controls button,
html[data-theme="night"] .cmap__controls a {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

html[data-theme="night"] .cmap__controls svg {
  fill: var(--night-white);
}

/* Значки типов объектов теряют цвет: ночью карта читается формой, а не палитрой.
   09.08.2026, просьба Алекса: подложки чёрные, символы внутри — белые (не наоборот). */
html[data-theme="night"] .cmap__icon,
html[data-theme="night"] .cmap__marker--villa .cmap__icon,
html[data-theme="night"] .cmap__marker--apartment .cmap__icon,
html[data-theme="night"] .cmap__marker--new .cmap__icon,
html[data-theme="night"] .cmap__marker--plot .cmap__icon,
html[data-theme="night"] .cmap__marker--commercial .cmap__icon,
html[data-theme="night"] .cmap__marker--office .cmap__icon,
html[data-theme="night"] .cmap__legend-ico {
  background: #0b111a;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

html[data-theme="night"] .cmap__icon svg,
html[data-theme="night"] .cmap__marker--office .cmap__icon svg,
html[data-theme="night"] .cmap__legend-ico svg {
  fill: var(--night-white);
}

html[data-theme="night"] .cmap__cluster {
  background: var(--night-plate);
  color: var(--night-white);
  border-color: rgba(255, 255, 255, 0.4);
}

html[data-theme="night"] .cmap__tip-main,
html[data-theme="night"] .cmap__tip-actions a {
  background: transparent;
  color: var(--night-white);
}

/* Поля форм: днём белые, ночью тёмная подложка со светлым текстом
   (диапазоны/чекбоксы/радио не трогаем — у них свой вид). */
html[data-theme="night"] input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
html[data-theme="night"] select,
html[data-theme="night"] textarea {
  background: #17202c;
  color: var(--night-white);
  border-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="night"] input::placeholder,
html[data-theme="night"] textarea::placeholder {
  color: rgba(233, 237, 243, 0.55);
}

/* Строка отзывов: остальные цвета приходят из ночных переменных сами */
html[data-theme="night"] .review-bar__max {
  color: rgba(233, 237, 243, 0.5);
}

@media (max-width: 680px) {
  .review-bar {
    gap: 10px 14px;
  }
}

/* Слот самозаписи на просмотр (property.html) и формы подписки на оповещения */
.visit-slot__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.visit-slot__row input, .visit-slot__row select { min-width: 0; }
.alert-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.alert-form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.alert-form__row { display: flex; gap: 8px; flex-wrap: wrap; }
.alert-form__row input { flex: 1 1 180px; min-width: 0; }
.alert-form .form-success { margin-top: 8px; }
.alert-form--search { margin-top: 10px; }
.valuation-range { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.4rem; line-height: 1.1; margin: 8px 0 12px; }
html[data-theme="night"] .alert-form { border-top-color: #2a3644; }

/* Анкета онлайн-оценки */
.valuation-form .valuation-step { margin: 18px 0 8px; font-size: 1rem; }
.valuation-form .valuation-step:first-of-type { margin-top: 0; }
.valuation-form .checkbox-group { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.valuation-form .checkbox-row { margin: 0; }
.notice-box { background: var(--brass-soft); border-left: 4px solid var(--brass); padding: 12px 14px; border-radius: 8px; font-size: 0.95rem; line-height: 1.5; }
.valuation-factors { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; font-size: 0.92rem; margin: 10px 0 14px; max-width: 440px; }
.valuation-factors span:nth-child(2n) { text-align: right; font-variant-numeric: tabular-nums; }
.valuation-factors .is-up { color: #237a4b; }
.valuation-factors .is-down { color: #a23434; }
html[data-theme="night"] .notice-box { background: rgba(226,195,104,.12); border-left-color: #e2c368; }
/* Галочки анкеты оценки лежат внутри .form-field — снимаем с них правило полей ввода */
.valuation-form .checkbox-group { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: flex-start; padding-top: 4px; }
.valuation-form .checkbox-group .checkbox-row { display: block; position: relative; padding: 4px 0 4px 26px; margin: 0; font-size: 0.9rem; }
.valuation-form .checkbox-group .checkbox-row input[type="checkbox"] { position: absolute; left: 0; top: 0.45em; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; border-radius: 4px; background: none; }

/* Галочка «Показывать проданные» в фильтрах каталога — жирным */
.checkbox-row--strong { font-weight: 700; }
