/* Prime Square — front styles */
:root {
  --bg: #0f1c16;
  --bg-light: #f6f5f0;
  --bg-section: #fafaf7;
  --surface: #ffffff;
  --text: #1a2620;
  --text-muted: #6c7570;
  --accent: #b89456;          /* gold */
  --accent-dark: #927037;
  --primary: #1f4734;         /* dark green */
  --primary-dark: #122b1f;
  --graphite: #2a322e;
  --border: #e3e3dc;
  --danger: #c0392b;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 28, 22, .08);
  --container: 1240px;
  --space: 16px;
  --font: 'Inter','Helvetica Neue',Arial,sans-serif;
  --font-display: 'Oswald','Inter','Helvetica Neue',Arial,sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 500; margin: 0 0 .6em; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 400; letter-spacing: .04em; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 400; letter-spacing: .06em; }
h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; letter-spacing: .04em; }
h4 { font-size: 15px; letter-spacing: .08em; }
ul { margin: 0; padding: 0; list-style: none; }
.hp { position: absolute; left: -9999px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-muted); }
.section { padding: clamp(32px, 4.5vw, 60px) 0; }
.section--tight-b { padding-bottom: 8px; }
.section--tight-t { padding-top: 16px; }
.section--light { background: var(--bg-section); }
.section--accent { background: var(--primary); color: #fff; }
.section--accent h2, .section--accent h3 { color: #fff; }
.section__title { text-align: center; margin-bottom: 40px; position: relative; }
.section__title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--accent); margin: 14px auto 0; }
.section__subtitle { text-align: center; color: var(--text-muted); max-width: 720px; margin: -20px auto 40px; font-size: 15px; line-height: 1.6; }
.section__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 30px; }
.section__head .section__title { text-align: left; margin: 0; }
.section__head .section__title::after { margin-left: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; font: inherit; font-weight: 500; cursor: pointer; border: 1px solid transparent; border-radius: 8px; transition: all .15s; line-height: 1; text-align: center; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--block { width: 100%; }
.section--accent .btn--primary { background: var(--accent); }
.section--accent .btn--primary:hover { background: var(--accent-dark); }

/* Reveal animations (IntersectionObserver-driven) — only active when JS loaded */
.js-anim [data-anim],
.js-anim [data-hero-anim] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.js-anim [data-anim="fade-right"] { transform: translateX(-40px); }
.js-anim [data-anim="fade-left"]  { transform: translateX(40px); }
.js-anim [data-anim="zoom"]       { transform: scale(.94); }
.js-anim [data-anim].is-in,
.js-anim [data-hero-anim].is-in   { opacity: 1; transform: translate(0,0) scale(1); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(227,227,220,.6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; gap: 28px; }

/* Logo */
.logo {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  letter-spacing: .22em; color: var(--primary); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  position: relative; transition: color .2s;
}
.logo::before {
  content: ''; width: 22px; height: 1px; background: var(--accent);
  transition: width .25s ease;
}
.logo:hover { color: var(--accent); }
.logo:hover::before { width: 32px; }
.logo--light { color: #fff; }

/* Logo + text combo */
.logo__text { display: inline-block; }
.logo--with-image { gap: 12px; }
.logo--with-image::before { display: none; }
.logo--with-image img { display: block; width: auto; max-width: 50px; object-fit: contain; transition: opacity .2s; }
.logo--with-image:hover img { opacity: .8; }
.mobile-menu__logo--with-image { display: inline-flex; align-items: center; gap: 12px; padding: 0; }
.mobile-menu__logo--with-image img { display: block; width: auto; max-width: 44px; object-fit: contain; }

/* Nav */
.nav { display: flex; gap: 36px; align-items: center; }
.nav a {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500; color: var(--text); padding: 8px 0;
  position: relative; transition: color .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 0; height: 1px;
  background: var(--accent); transition: width .25s ease, left .25s ease;
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; left: 0; }

/* Right cluster */
/* «Стать агентом» в шапке — вторичная кнопка рядом с «Заявка»: тот же рост,
   но контурная, чтобы не спорить с главным призывом. На узких экранах прячется —
   она есть в мобильном меню. */
/* «Стать агентом» — пункт МЕНЮ, оформленный кнопкой-контуром.
   ⚠️ Именно в меню, а не в правом блоке: рядом с «Заявкой» она выдавливала её
   за край экрана на 1024–1100 px. В меню помещается и уезжает в бургер вместе
   с остальными пунктами на ≤900 px. */
.nav__cta {
  font-family: var(--font-display); font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap; cursor: pointer;
  padding: 7px 14px; border: 1px solid var(--primary); border-radius: 4px;
  background: transparent; color: var(--primary);
  transition: background .2s ease, color .2s ease;
}
.nav__cta:hover { background: var(--primary); color: #fff; }
/* ⚠️ Отдельная кнопка — только там, где шапка её реально держит. Ниже 1200 px
   она выдавливала «Заявку» за край экрана и разгоняла телефон на четыре строки,
   поэтому там вместо неё пункт в выпадашке «О нас» (ширины не занимает). */
@media (max-width: 1199px) { .nav__cta { display: none; } }
.nav__sub-agent { cursor: pointer; }
@media (min-width: 1200px) { .nav__sub-agent { display: none; } }
.site-header__right { display: flex; align-items: center; gap: 22px; }
.site-header__right::before {
  content: ''; display: none; width: 1px; height: 24px; background: var(--border);
}
.phone {
  font-family: var(--font-display); font-size: 17px; font-weight: 400;
  letter-spacing: .06em; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s;
}
.phone::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(184,148,86,.6);
  animation: phonePulse 2.4s ease-out infinite;
}
.phone:hover { color: var(--accent); }
@keyframes phonePulse {
  0%   { box-shadow: 0 0 0 0 rgba(184,148,86,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(184,148,86,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,148,86,0); }
}

/* Compact "Заявка" button in header — refined */
.site-header__right .btn {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; padding: 12px 22px;
  background: transparent; border: 1px solid var(--primary); color: var(--primary);
  border-radius: 2px; transition: all .25s ease;
  position: relative; overflow: hidden;
}
.site-header__right .btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--primary); transform: translateY(101%); transition: transform .3s ease;
  z-index: -1;
}
.site-header__right .btn:hover { color: #fff; border-color: var(--primary); }
.site-header__right .btn:hover::before { transform: translateY(0); }

/* Scrolled state — slight increase in solidity */
.site-header.is-scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 1px 0 rgba(227,227,220,1), 0 8px 28px rgba(15,28,22,.04);
}
.site-header.is-scrolled .site-header__row { padding-top: 14px; padding-bottom: 14px; }
.burger {
  display: none; position: relative; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 0; z-index: 210;
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--primary);
  transition: transform .3s ease, opacity .2s ease, top .3s ease, background-color .2s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span { background: #fff; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 60%, var(--graphite) 100%);
  color: #fff;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.7,0,.3,1);
  overflow-y: auto;
  display: flex;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__close {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 48px; height: 48px; padding: 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu__close:hover, .mobile-menu__close:active { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.mobile-menu__close span {
  position: absolute; left: 14px; right: 14px; height: 2px; background: #fff;
  border-radius: 1px;
}
.mobile-menu__close span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu__close span:nth-child(2) { transform: rotate(-45deg); }
.mobile-menu__inner {
  width: 100%; max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column; padding: 80px 32px 32px;
}
.mobile-menu__logo {
  font-family: var(--font-display); color: #fff; font-size: 22px;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 40px;
  opacity: 0; transform: translateY(-10px); transition: all .4s ease .15s;
}
.mobile-menu.is-open .mobile-menu__logo { opacity: 1; transform: translateY(0); }

.mobile-menu__nav { display: flex; flex-direction: column; margin-bottom: 36px; flex: 1; }
.mobile-menu__nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 18px 0; color: #fff;
  font-family: var(--font-display); font-size: 32px; font-weight: 400;
  letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.08);
  opacity: 0; transform: translateX(20px);
  transition: opacity .35s ease, transform .35s ease, color .15s, padding-left .25s;
}
.mobile-menu__nav a .num {
  font-size: 12px; letter-spacing: .12em; color: var(--accent);
  font-weight: 400; min-width: 26px;
}
.mobile-menu__nav a:hover, .mobile-menu__nav a:active { color: var(--accent); padding-left: 8px; }
.mobile-menu.is-open .mobile-menu__nav a { opacity: 1; transform: translateX(0); }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(1) { transition-delay: .15s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: .22s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: .29s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: .36s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(5) { transition-delay: .43s; }

.mobile-menu__cta {
  margin-bottom: 28px;
  opacity: 0; transform: translateY(10px); transition: all .4s ease .5s;
}
.mobile-menu.is-open .mobile-menu__cta { opacity: 1; transform: translateY(0); }
.mobile-menu__cta .btn--primary { background: var(--accent); border-color: var(--accent); }
.mobile-menu__cta .btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.mobile-menu__contacts {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateY(10px); transition: all .4s ease .55s;
}
.mobile-menu.is-open .mobile-menu__contacts { opacity: 1; transform: translateY(0); }
.mobile-menu__phone {
  font-family: var(--font-display); font-size: 26px; color: #fff;
  letter-spacing: .04em;
}
.mobile-menu__phone:hover { color: var(--accent); }
.mobile-menu__hours { color: rgba(255,255,255,.6); font-size: 13px; }
.mobile-menu__socials { display: flex; gap: 10px; margin-top: 12px; }
.mobile-menu__socials a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  transition: all .15s;
}
.mobile-menu__socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

body.menu-open { overflow: hidden; }
body.filters-open { overflow: hidden; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); background-size: cover; background-position: center; color: #fff; padding: clamp(100px, 14vw, 180px) 0; position: relative; overflow: hidden; }
.hero__inner { text-align: center; max-width: 880px; margin: 0 auto; position: relative; z-index: 2; }
.hero__video-wrap { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
/* Роликов ДВА (см. animations.js: зацикливание перекрытием, а не loop —
   иначе на перемотке в начало картинка замирает). Оба лежат друг на друге,
   поэтому position:absolute; кто сверху — решает z-index из JS. */
.hero__video-wrap video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease;
  pointer-events: none; user-select: none; -webkit-user-select: none;
}
.hero__video-wrap video::-webkit-media-controls,
.hero__video-wrap video::-webkit-media-controls-panel,
.hero__video-wrap video::-webkit-media-controls-play-button,
.hero__video-wrap video::-webkit-media-controls-start-playback-button,
.hero__video-wrap video::-webkit-media-controls-overlay-play-button,
.hero__video-wrap video::-webkit-media-controls-enclosure { display: none !important; -webkit-appearance: none; }
.hero__video-wrap video.is-ready { opacity: 1; }
/* ⚠️ z-index ОБЯЗАН быть выше обоих роликов (у них 1 и 2 из JS). Пока здесь
   стояла 1, активный ролик рисовался ПОВЕРХ затемнения, герой светлел на 35
   единиц яркости и белый текст читался хуже. До зацикливания двумя роликами
   z-index у видео не было вовсе, поэтому 1 хватало. */
.hero__video-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(15,28,22,.55), rgba(15,28,22,.55));
  z-index: 3; pointer-events: none;
}
.hero__eyebrow { display: inline-block; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; padding: 6px 18px; border: 1px solid rgba(184,148,86,.4); border-radius: 40px; }
.hero__title { color: #fff; font-size: clamp(36px, 5.5vw, 64px); margin-bottom: 18px; }
.hero__subtitle { font-size: clamp(15px, 1.6vw, 19px); margin-bottom: 36px; opacity: .9; max-width: 660px; margin-left: auto; margin-right: auto; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* «Заказать звонок» — в том же стиле, что кнопка «Найти» в строке поиска:
   белая заливка, зелёная рамка и буквы (просьба заказчика). Раньше была
   прозрачной с белым контуром. В герое кнопка-призрак только одна. */
.hero .btn--ghost {
  background: #fff; color: var(--primary); border-color: var(--primary);
}
.hero .btn--ghost:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.hero__scroll {
  position: absolute; left: 0; right: 0; bottom: 28px;
  margin-inline: auto; width: max-content;
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
  color: rgba(255,255,255,.6); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  pointer-events: none;
}
.hero__scroll span {
  width: 1px; height: 38px; background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll span::after {
  content: ''; position: absolute; top: -100%; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%   { top: -50%; }
  100% { top: 100%; }
}

/* Header scrolled state */
.site-header { transition: box-shadow .25s, background .25s; }
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.06); }

/* Services — horizontal cards like in the design */
.services { display: flex; flex-direction: column; gap: 20px; }
.service-card {
  display: grid;
  grid-template-columns: 1fr 42%;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 260px; /* fixed — image cannot stretch the card */
  transition: all .2s;
}
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow); color: inherit; transform: translateY(-2px); }
.service-card__body { padding: 32px 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; overflow: hidden; }
.service-card__title { font-family: var(--font-display); font-size: clamp(26px,2.8vw,40px); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 18px; color: var(--text); line-height: 1.05; }
.service-card__text { color: var(--text-muted); font-size: 14px; line-height: 1.55; margin: 0; max-width: 480px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; }
.service-card__more { color: var(--primary); font-weight: 500; font-size: 14px; letter-spacing: .04em; border-bottom: 1px solid var(--primary); padding-bottom: 4px; align-self: flex-start; transition: all .15s; }
.service-card:hover .service-card__more { color: var(--accent); border-color: var(--accent); }
.service-card__media {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--graphite), var(--primary-dark));
  width: 100%; height: 100%;
}
.service-card__media img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: grayscale(.15);
}
.service-card__media .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4);
  background: linear-gradient(135deg, var(--graphite), var(--primary-dark));
}
.service-card__subs { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-card__subs li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.service-card__subs .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* When "Продажа" card has subs attached below — flatten its bottom corners */
.service-card:has(+ .service-subs) { border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; }

/* Mini sub-services cards — attached directly under "Продажа" card */
.service-subs {
  margin: -8px 0 0;
  padding: 24px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  position: relative;
}
.service-subs::before {
  content: ''; position: absolute; left: 28px; right: 28px; top: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.service-subs__title {
  font-family: var(--font-display); font-weight: 400;
  letter-spacing: .14em; font-size: 13px; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px; padding-left: 24px; position: relative;
}
.service-subs__title::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 16px; height: 1px; background: var(--accent);
}
.service-subs__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
/* «Выкуп и комиссия» — 4 карточки симметрично 2×2 */
.service-subs__grid--2col { grid-template-columns: repeat(2, 1fr); }
.service-sub-card {
  background: var(--bg-section); border: 1px solid var(--border); border-radius: 10px;
  padding: 22px 22px; position: relative; transition: all .25s;
  display: flex; flex-direction: column; min-height: 180px;
  color: inherit; overflow: hidden;
}
.service-sub-card h4 { font-size: 17px !important; margin-bottom: 8px !important; }
.service-sub-card p { font-size: 13px !important; margin-bottom: 14px !important; }
.service-sub-card__num { font-size: 12px !important; margin-bottom: 12px !important; }
.service-sub-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.service-sub-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.06); color: inherit;
}
.service-sub-card:hover::before { transform: scaleX(1); }
.service-sub-card__num {
  font-family: var(--font-display); color: var(--accent); font-size: 13px;
  letter-spacing: .2em; margin-bottom: 16px;
}
.service-sub-card h4 {
  color: var(--primary); margin: 0 0 12px;
  font-family: var(--font-display); font-size: 20px; letter-spacing: .04em;
  line-height: 1.2; text-transform: uppercase; font-weight: 500;
}
.service-sub-card p {
  color: var(--text-muted); font-size: 14px; line-height: 1.55;
  margin: 0 0 20px; flex: 1;
}
.service-sub-card__arrow {
  color: var(--accent); font-size: 22px; align-self: flex-start;
  transition: transform .25s ease;
}
.service-sub-card:hover .service-sub-card__arrow { transform: translateX(6px); }

@media (max-width: 960px) {
  .service-subs__grid { grid-template-columns: 1fr; }
}

/* Priced service cards — row under the services grid */
.service-prices {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px;
}
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 28px; position: relative; transition: all .25s;
  display: flex; flex-direction: column; min-height: 200px; overflow: hidden;
}
.price-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.price-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.06); color: inherit;
}
.price-card:hover::before { transform: scaleX(1); }
.price-card__num {
  font-family: var(--font-display); color: var(--accent); font-size: 13px;
  letter-spacing: .2em; margin-bottom: 18px;
}
.price-card__title {
  color: var(--primary); margin: 0 0 auto;
  font-family: var(--font-display); font-size: 20px; letter-spacing: .04em;
  line-height: 1.25; text-transform: uppercase; font-weight: 500;
}
.price-card__price {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
  font-family: var(--font-display); font-size: 24px; letter-spacing: .03em;
  color: var(--accent); font-weight: 500;
}
@media (max-width: 960px) {
  .service-prices { grid-template-columns: 1fr; }
}

.prop-card__type { display: inline-block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; font-weight: 500; }

/* Villages */
.villages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.village-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .25s; color: inherit; }
.village-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.village-card__media { aspect-ratio: 16/9; position: relative; background: #eee; overflow: hidden; }
.village-card__media img { width: 100%; height: 100%; object-fit: cover; }
.village-card__badge { position: absolute; top: 14px; right: 14px; background: var(--accent); color: #fff; padding: 6px 12px; border-radius: 4px; font-size: 12px; letter-spacing: .04em; }
.village-card__body { padding: 22px 24px; }
.village-card__body h3 { color: var(--primary); margin-bottom: 8px; }
.village-card__body p { color: var(--text-muted); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.village-card__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-muted); }
.village-card__active { color: var(--accent); font-weight: 500; }
.village-card__from { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.village-card__from-item {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  color: var(--primary); letter-spacing: .02em;
}
.village-card__from-item b { color: var(--accent-dark); font-weight: 700; }

/* Village property placeholder (no own photos, attached to village) */
.prop-card__placeholder { position: relative; width: 100%; height: 100%; }
.prop-card__placeholder > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prop-card__placeholder-area {
  position: absolute; left: 28%; top: 50%; transform: translate(-50%, -50%);
  text-align: center; color: #f7e7b6;
  font-family: var(--font-display); font-weight: 700;
  text-shadow: 0 3px 14px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.6);
  letter-spacing: .02em;
  pointer-events: none;
}
.prop-card__placeholder-area .num { display: block; font-size: 54px; line-height: 1; }
.prop-card__placeholder-area .unit { display: block; font-size: 16px; letter-spacing: .18em; margin-top: 4px; text-transform: lowercase; }
.prop-card__placeholder-num {
  position: absolute; left: 28%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: 34px; font-weight: 700;
  color: #f7e7b6; text-shadow: 0 3px 14px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.6);
  letter-spacing: .02em;
  pointer-events: none;
}

.village__head { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 50px; }
.village__head > div { min-width: 0; }
.village__head .eyebrow { padding-left: 0; }
.village__head .eyebrow::before { display: none; }
.village__head h1 { overflow-wrap: break-word; }
.village__lead { font-size: 17px; color: var(--text-muted); margin: 14px 0 20px; line-height: 1.6; }
.village__meta { margin: 0 0 28px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.village__meta li { color: var(--text); overflow-wrap: anywhere; }
.village__media { min-width: 0; }
.village__meta b { color: var(--text-muted); font-weight: 500; margin-right: 6px; }
.village__media img, .village__media .placeholder { border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.village__description { margin-top: 30px; }

/* Map + description side by side */
.village__map-desc {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.village__map-box {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eee;
  isolation: isolate;
  contain: paint;
  z-index: 1;
  box-shadow: var(--shadow);
}
.village__map-box #ymap { width: 100%; height: 100%; background: #eee; }
.village__desc-box {
  width: 100%;
  padding: 28px 32px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.village__desc-box .eyebrow { padding-left: 0; margin-bottom: 16px; }
/* Шрифты, выбранные в редакторе описания. Классы проставляет Quill, а очистка
   HTML (View::FONT_CLASSES) пропускает на страницу ТОЛЬКО их — список закрытый.
   Добавляешь шрифт: сюда + в FONT_CLASSES + в whitelist Quill (admin/layout.php). */
.ql-font-oswald { font-family: var(--font-display); letter-spacing: .01em; }
.ql-font-arial  { font-family: Arial,'Helvetica Neue',Helvetica,sans-serif; }

.village__desc-box .prose { width: 100%; }
.village__desc-box .prose p { margin: 0 0 12px; }
.village__desc-box .eyebrow { padding-left: 0; margin-bottom: 12px; }
.village__desc-box .eyebrow::before { display: none; }
.village__desc-box .prose {
  max-width: none; font-size: 15px; line-height: 1.7;
  overflow-wrap: break-word; word-wrap: break-word;
}
.village__desc-box .prose h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  margin-top: 0; margin-bottom: 14px;
  line-height: 1.15;
}
.village__desc-box .prose h3 {
  font-size: clamp(17px, 1.6vw, 20px);
  margin-top: 24px;
}
.village__desc-box .prose ul, .village__desc-box .prose ol { padding-left: 20px; }
.village__desc-box .prose * { max-width: 100%; }

@media (max-width: 900px) {
  .village__map-desc { gap: 20px; }
  .village__map-box { height: 320px; }
  .village__desc-box { padding: 22px 20px; }
}

.village__scheme { margin-top: 50px; }
.village__scheme-wrap { background: #f4f4ed; border-radius: var(--radius); padding: 16px; text-align: center; margin: 20px auto 0; width: fit-content; max-width: 100%; }
.village__scheme-wrap img { display: block; max-width: 100%; height: auto; border-radius: 8px; }

/* ===== Интерактивный генплан посёлка ===== */
.genplan { --gp-line: rgba(230,220,195,.16); --gp-ink:#eef3ec; --gp-mute:#9fb0ab; --gp-sand:#e6dcc3; --gp-meadow:#93c33f; --gp-amber:#e59a2b; --gp-clay:#c4462c; margin-top: 22px; color: var(--gp-ink); }
.genplan__bar { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.genplan__chip { display:inline-flex; align-items:center; gap:7px; border:1px solid #d7dde3; background:#fff; color:#4a5560; font-size:12px; font-weight:700; letter-spacing:.03em; padding:8px 12px; border-radius:8px; cursor:pointer; }
.genplan__chip b { color:#1f2a33; }
.genplan__chip.is-on { background:#122420; color:#fff; border-color:#122420; }
.genplan__chip.is-on b { color:#fff; }
.genplan__dot { width:9px; height:9px; border-radius:50%; display:inline-block; }
.genplan__dot.free { background:var(--gp-meadow); } .genplan__dot.res { background:var(--gp-amber); } .genplan__dot.sold { background:var(--gp-clay); } .genplan__dot.na { background:#8a97a3; }
.genplan__grid { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
@media (min-width:1000px){ .genplan__grid { grid-template-columns:minmax(0,1fr) 360px; align-items:start; } }
.genplan__stage { position:relative; border:1px solid #22343a; border-radius:12px; overflow:hidden; background:#0e2a33; }
/* Пропорции — ЗАПАСНОЕ значение (схема Арнеево). Шаблон проставляет инлайном
   реальные размеры картинки: если они разойдутся, SVG растянется относительно
   картинки и контуры уедут тем сильнее, чем ниже по схеме. */
.genplan__vp { position:relative; overflow:hidden; touch-action:none; cursor:grab; aspect-ratio:1529/859; }
.genplan__vp.drag { cursor:grabbing; }
.genplan__cv { position:absolute; inset:0; transform-origin:0 0; will-change:transform; }
.genplan__cv img { display:block; width:100%; height:auto; user-select:none; -webkit-user-drag:none; }
.genplan__cv svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.gp-plot { cursor:pointer; transition:fill-opacity .18s, stroke-opacity .18s; outline:none; }
.gp-fill { fill-opacity:.52; stroke-width:2; stroke-opacity:.9; vector-effect:non-scaling-stroke; }
.gp-plot:hover .gp-fill, .gp-plot:focus-visible .gp-fill { fill-opacity:.72; stroke-opacity:1; stroke-width:2.5; }
.gp-plot.on .gp-fill { fill-opacity:.84; stroke:#fff; stroke-opacity:1; stroke-width:3; }
.gp-plot.free .gp-fill { fill:#93c33f; stroke:#c3ec72; }
.gp-plot.res .gp-fill { fill:#e59a2b; stroke:#ffc978; }
.gp-plot.sold .gp-fill { fill:#c4462c; stroke:#ff8b6c; }
.gp-plot.na .gp-fill { fill:#8a97a3; stroke:#c4ccd3; }
.gp-plot.hide { opacity:.1; pointer-events:none; }
/* Номер участка виден ВСЕГДА (просьба заказчика), тёмная обводка — чтобы
   читался и на светлой траве, и на тёмной крыше. */
.gp-tag { font-weight:700; font-size:15px; fill:#fff; text-anchor:middle; dominant-baseline:middle; pointer-events:none; paint-order:stroke; stroke:rgba(4,14,18,.85); stroke-width:3px; opacity:.92; }
.gp-plot.on .gp-tag, .gp-plot:hover .gp-tag { opacity:1; }
.gp-plot.hide .gp-tag { opacity:0; }
/* Схема, на которой номера уже напечатаны: свои подписи прячем, чтобы не двоилось. */
.genplan.no-tags .gp-tag { opacity:0; }
.genplan.no-tags .gp-plot.on .gp-tag, .genplan.no-tags .gp-plot:hover .gp-tag { opacity:1; }
#gpCross { opacity:0; transition:opacity .25s; pointer-events:none; }
#gpCross.on { opacity:1; }
#gpCross line { stroke:#fff; stroke-opacity:.5; stroke-dasharray:7 7; stroke-width:1; vector-effect:non-scaling-stroke; }
#gpCross circle { fill:none; stroke:#fff; stroke-opacity:.8; stroke-width:1.5; vector-effect:non-scaling-stroke; }
.genplan__zoom { position:absolute; right:12px; bottom:12px; display:flex; flex-direction:column; gap:6px; z-index:3; }
.genplan__zoom button { width:38px; height:38px; border:1px solid rgba(230,220,195,.25); background:rgba(7,22,27,.8); color:#eef3ec; font-size:17px; border-radius:8px; cursor:pointer; line-height:1; }
.genplan__zoom button:hover { border-color:var(--gp-sand); }
.genplan__hint { position:absolute; left:12px; bottom:12px; z-index:3; font-size:11px; color:#cdd6d2; background:rgba(7,22,27,.7); padding:6px 9px; border-radius:8px; border:1px solid rgba(230,220,195,.16); }
@media (max-width:600px){ .genplan__hint { display:none; } }
/* На узких экранах кнопки масштаба закрывали угол схемы: участок в углу
   (Вельяминово №1) не нажимался — под пальцем оказывалась кнопка. Поэтому на
   мобильных кнопки выносятся ПОД сцену отдельной строкой, а не поверх неё. */
/* Подпись под «Похожими объектами»: по каким фильтрам каталога подобраны */
.similar__note { text-align:center; color:var(--text-muted); font-size:14px; margin:-10px 0 22px; }
@media (max-width:640px){
  .genplan__zoom { position:static; flex-direction:row; justify-content:flex-end; gap:8px; padding:8px 8px 6px; }
  .genplan__zoom button { width:40px; height:36px; }
}
.genplan__tip { position:fixed; z-index:60; pointer-events:none; opacity:0; transition:opacity .12s; background:var(--gp-sand); color:#0a1e24; padding:5px 9px; border-radius:6px; font-size:12px; font-weight:600; white-space:nowrap; }
.genplan__panel { border:1px solid #22343a; border-radius:12px; background:linear-gradient(180deg,#132d34,#08181d); padding:20px 18px 18px; position:relative; min-height:200px; }
/* Панель была position:sticky + top:80px. При малейшей прокрутке она «прилипала»
   на 80px ниже верха карты, и блоки переставали стоять вровень (жалоба клиента).
   Липкость тут ничего не давала: карта — aspect-ratio 1529/859, панель — min-height 480,
   по высоте они почти равны. top:0 обязателен: без него унаследованный от sticky
   отступ сносит блок вниз — ровно та же грабля, что была у .property__side. */
/* overflow:hidden, а не auto: высоту панели выставляет JS не меньше содержимого
   (см. syncPanel), поэтому прокрутке взяться неоткуда — полоса была некрасивой. */
@media (min-width:1000px){ .genplan__panel { position:relative; top:0; min-height:0; overflow:hidden; } }
/* Высоту панели на десктопе выставляет JS по фактической высоте карты (см. syncPanel):
   карта задана aspect-ratio, в CSS на её высоту сослаться нечем. Длинная карточка
   участка прокручивается внутри панели, а не вылезает под генплан. */
.genplan__eyebrow { font-size:11px; letter-spacing:.22em; text-transform:uppercase; color:var(--gp-mute); }
.genplan__num { font-weight:800; font-size:66px; line-height:.85; color:var(--gp-sand); margin:4px 0 8px; }
.genplan__state { display:inline-flex; align-items:center; gap:8px; font-size:12px; letter-spacing:.1em; text-transform:uppercase; font-weight:700; padding:6px 10px; border-radius:8px; border:1px solid; }
.genplan__state.free { color:var(--gp-meadow); border-color:rgba(147,195,63,.5); background:rgba(147,195,63,.1); }
.genplan__state.res { color:var(--gp-amber); border-color:rgba(229,154,43,.5); background:rgba(229,154,43,.1); }
.genplan__state.sold { color:#ef7a5c; border-color:rgba(196,70,44,.55); background:rgba(196,70,44,.12); }
.genplan__state.na { color:#b9c3cb; border-color:rgba(138,151,163,.5); background:rgba(138,151,163,.12); }
.genplan__price { font-size:28px; font-weight:700; color:#fff; margin:14px 0 2px; }
.genplan__per { font-size:12px; color:var(--gp-mute); }
.genplan__rows { margin:14px 0 0; border-top:1px solid var(--gp-line); }
.genplan__row { display:flex; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px solid var(--gp-line); font-size:14px; }
.genplan__row span { color:var(--gp-mute); }
.genplan__row b { font-weight:600; text-align:right; color:#fff; }
/* Пометка «участка нет в нашей продаже» в карточке генплана: данные пришли
   от застройщика, своей страницы у такого участка нет. */
.genplan__note { margin:12px 0 0; padding:8px 10px; border-radius:8px;
  background:rgba(212,160,23,.14); color:#d8b24a; font-size:12.5px; line-height:1.35; }
.genplan__cta { display:flex; flex-direction:column; gap:8px; margin-top:16px; }
.genplan__btn { display:flex; align-items:center; justify-content:space-between; gap:10px; text-decoration:none; padding:12px 15px; border-radius:8px; font-weight:700; font-size:13px; letter-spacing:.05em; text-transform:uppercase; border:1px solid var(--gp-sand); background:var(--gp-sand); color:#08171c; cursor:pointer; }
.genplan__btn:hover { background:#fff; border-color:#fff; }
.genplan__btn.ghost { background:transparent; color:var(--gp-ink); border-color:var(--gp-line); }
.genplan__btn.ghost:hover { border-color:var(--gp-sand); }
.genplan__empty { color:var(--gp-mute); font-size:14px; line-height:1.6; }
.genplan__empty h3 { font-weight:700; font-size:24px; color:var(--gp-ink); margin:10px 0 8px; }
.genplan__legend { margin-top:18px; display:grid; gap:8px; }
.genplan__legend div { display:flex; align-items:center; gap:9px; font-size:13px; color:var(--gp-mute); }
.genplan__close { position:absolute; right:14px; top:14px; background:none; border:1px solid var(--gp-line); color:var(--gp-mute); width:32px; height:32px; border-radius:8px; cursor:pointer; display:none; }
@media (max-width:999px){
  .genplan__panel { position:fixed; left:0; right:0; bottom:0; z-index:120; border-radius:14px 14px 0 0; transform:translateY(110%); transition:transform .3s cubic-bezier(.2,.8,.25,1); max-height:80vh; overflow:auto; box-shadow:0 -18px 50px rgba(0,0,0,.5); }
  .genplan__panel.open { transform:translateY(0); }
  .genplan__close { display:block; }
  .genplan__num { font-size:64px; }
}

/* Price box */
.village__pricebox {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius); padding: 28px 36px;
  margin: 0; display: flex; gap: 30px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.village__pricebox::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(184,148,86,.18), transparent 60%);
  pointer-events: none;
}
.village__pricebox-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px 32px; flex: 1; min-width: 0;
}
.village__pricebox-grid > div { min-width: 0; }
.village__pricebox-label {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 6px;
}
.village__pricebox-value {
  font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px);
  letter-spacing: .04em; line-height: 1.15;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.village__pricebox-num { white-space: nowrap; }
.village__pricebox-dash { opacity: .7; }
.village__pricebox-unit {
  display: inline-block; font-size: 0.55em; color: var(--accent);
  letter-spacing: .08em; white-space: nowrap;
}
.village__pricebox .btn--primary { background: var(--accent); border-color: var(--accent); flex-shrink: 0; }
.village__pricebox .btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* Status filters */
.status-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 24px; justify-content: center;
}
.status-filter {
  background: var(--surface); border: 1px solid var(--border); border-radius: 40px;
  padding: 10px 20px; font: inherit; font-size: 14px; color: var(--text);
  cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px;
}
.status-filter:hover { border-color: var(--primary); }
.status-filter.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.status-filter .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-filter--active .dot { background: #1a7a3b; }
.status-filter--booked .dot { background: var(--accent); }
.status-filter--sold   .dot { background: var(--danger); }
.status-filter__count {
  background: rgba(0,0,0,.06); padding: 2px 8px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
}
.status-filter.is-active .status-filter__count { background: rgba(255,255,255,.18); }

.prop-card-wrap { display: contents; }
.prop-card-wrap[style*="none"] { display: none; }

@media (max-width: 900px) {
  .reviews-track .review { flex-basis: calc(50% - 10px); }
}
@media (max-width: 600px) {
  .reviews-track .review { flex-basis: 100%; margin-right: 0; }
}

@media (max-width: 640px) {
  .village__pricebox { padding: 24px; flex-direction: column; align-items: stretch; }
  .village__pricebox-grid { width: 100%; }
}

@media (max-width: 960px) {
  .villages-grid { grid-template-columns: 1fr; }
  .village__head { grid-template-columns: 1fr; gap: 30px; }
}

/* Village gallery */
.village-gallery__stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #11231a; box-shadow: var(--shadow); aspect-ratio: 16/9;
}
.village-gallery__slide {
  position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .4s ease;
  pointer-events: none;
}
.village-gallery__slide.is-active { opacity: 1; pointer-events: auto; }
.village-gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.village-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--primary); font-size: 26px; line-height: 1;
  cursor: pointer; transition: background .2s, transform .2s; box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.village-gallery__nav:hover { background: #fff; }
.village-gallery__nav--prev { left: 16px; }
.village-gallery__nav--next { right: 16px; }
.village-gallery__counter {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  background: rgba(15,28,22,.7); color: #fff; padding: 5px 12px; border-radius: 20px;
  font-size: 13px; font-family: var(--font-display); letter-spacing: .05em;
}
.village-gallery__thumbs {
  display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px;
}
.village-gallery__thumb {
  flex: 0 0 auto; width: 110px; height: 72px; border: 2px solid transparent;
  border-radius: 8px; overflow: hidden; cursor: pointer; padding: 0; background: none;
  opacity: .6; transition: opacity .2s, border-color .2s;
}
.village-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.village-gallery__thumb.is-active { opacity: 1; border-color: var(--accent); }
.village-gallery__thumb:hover { opacity: 1; }

/* Village video */
.village-video { max-width: 960px; margin: 0 auto; }
.village-video__frame {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: #000;
}
.village-video__frame iframe,
.village-video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Amenities */
.amenities-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px;
}
.amenity-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.amenity-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.07); border-color: var(--accent); }
.amenity-card__icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(184,148,86,.12), rgba(184,148,86,.03));
  color: var(--accent-dark);
}
.amenity-card__icon svg { width: 26px; height: 26px; }
.amenity-card__label { font-family: var(--font-display); font-size: 15px; color: var(--primary); letter-spacing: .02em; min-width: 0; overflow-wrap: break-word; line-height: 1.25; }

/* Special offer */
.special-offer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--graphite) 100%);
  border-radius: var(--radius); padding: 40px; color: #fff; box-shadow: var(--shadow);
}
.special-offer__head { text-align: center; margin-bottom: 28px; }
.special-offer__eyebrow {
  display: block;
  font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; line-height: 1.1; color: var(--accent);
}
.special-offer__title {
  color: rgba(255,255,255,.85); margin: 10px 0 0;
  font-family: var(--font-display); font-weight: 400;
  text-transform: none; letter-spacing: .02em;
  font-size: clamp(15px, 1.6vw, 18px);
}
.special-offer__body {
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 36px; align-items: center;
}
.special-offer__card { position: relative; }
.special-offer__card .prop-card { background: #fff; }
.special-offer__badge {
  position: absolute; top: 14px; left: 14px; z-index: 4;
  background: var(--danger); color: #fff; padding: 6px 14px; border-radius: 6px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: .03em;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.special-offer__terms .prose { color: rgba(255,255,255,.9); }
.special-offer__terms .prose strong { color: var(--accent); }
.special-offer__terms .prose p { margin: 0 0 12px; }
.special-offer__terms .btn { margin-top: 12px; }
@media (max-width: 760px) {
  .special-offer { padding: 28px 22px; }
  .special-offer__body { grid-template-columns: 1fr; gap: 24px; }
  .village-gallery__nav { width: 40px; height: 40px; font-size: 22px; }
}

/* Lightbox (fullscreen gallery viewer) */
body.lightbox-lock { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,16,13,.92); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  width: 90vw; height: 86vh;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  border-radius: 6px; animation: lbIn .25s ease;
}
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.lightbox__close {
  position: absolute; top: 22px; right: 26px; z-index: 3;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1;
  cursor: pointer; transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.25); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 34px; line-height: 1;
  cursor: pointer; transition: background .2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__counter {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  background: rgba(0,0,0,.5); color: #fff; padding: 6px 16px; border-radius: 20px;
  font-family: var(--font-display); font-size: 14px; letter-spacing: .06em;
}
@media (max-width: 600px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 26px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .lightbox__close { top: 14px; right: 14px; }
}

/* Header gallery: fit inside media column (no fixed aspect crop conflicts) */
.village__media .village-gallery__stage { aspect-ratio: 16/10; }
.village__media .village-gallery__thumbs { margin-top: 10px; }
.village__media .village-gallery__thumb { width: 84px; height: 56px; }

/* About + Infrastructure combined section */
.village__about-infra {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start;
}
.village__about-infra--single { grid-template-columns: 1fr; }
.village__about .eyebrow,
.village__infra .eyebrow { padding-left: 0; margin-bottom: 14px; display: inline-block; }
.village__about .eyebrow::before,
.village__infra .eyebrow::before { display: none; }
.village__about .prose { font-size: 15px; line-height: 1.7; }
.amenities-grid--compact { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 12px; }
.amenities-grid--compact .amenity-card { padding: 14px 16px; gap: 12px; }
.amenities-grid--compact .amenity-card__icon { width: 40px; height: 40px; border-radius: 10px; }
.amenities-grid--compact .amenity-card__icon svg { width: 22px; height: 22px; }
.amenities-grid--compact .amenity-card__label { font-size: 14px; }
@media (max-width: 880px) {
  .village__about-infra { grid-template-columns: 1fr; gap: 32px; }
}

/* Standalone map */
.village__map-solo {
  position: relative; width: 100%; height: 440px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  isolation: isolate; contain: paint; background: #eee;
}
.village__map-solo #ymap { width: 100%; height: 100%; }
@media (max-width: 760px) { .village__map-solo { height: 320px; } }

/* Urgent buyout */
.urgent { background: linear-gradient(135deg, var(--primary), var(--graphite)); color: #fff; }
.urgent h2 { color: #fff; }
.urgent__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.urgent__form { display: grid; gap: 12px; background: rgba(255,255,255,.08); padding: 24px; border-radius: var(--radius); }
.urgent__form input { padding: 12px 14px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; border-radius: 8px; }
.urgent__form input::placeholder { color: rgba(255,255,255,.6); }
.urgent__form .btn--primary { background: var(--accent); border-color: var(--accent); }

/* Properties */
.properties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.prop-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .2s; display: block; }
.prop-card { min-width: 0; }
.prop-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.prop-card__media { aspect-ratio: 4/3; background: #eee; overflow: hidden; position: relative; }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; }
.prop-card__body { padding: 18px 20px; }
.prop-card__price { color: var(--primary); font-size: 22px; font-weight: 700; }
.prop-card__title { font-size: 17px; font-family: var(--font); font-weight: 500; margin: 6px 0 10px; }
.prop-card__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-muted); }

.placeholder { background: linear-gradient(135deg, #eaeae0, #cfd0c4); display: flex; align-items: center; justify-content: center; color: rgba(0,0,0,.4); font-size: 12px; min-height: 100%; }
.placeholder--lg { aspect-ratio: 4/3; }

.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; background: rgba(0,0,0,.7); color: #fff; border-radius: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.badge--active { background: #1f8a4c; }
.badge--booked {
  background: #f0682a; color: #fff; font-weight: 700;
  padding: 5px 12px; font-size: 12px;
  box-shadow: 0 2px 8px rgba(240,104,42,.35);
}
.badge--sold {
  background: var(--danger);
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.link-more { color: var(--accent); font-weight: 500; }

/* Why us */
.why-us { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { padding: 24px; border-left: 3px solid var(--accent); }
.why-card__num { color: var(--accent); font-family: var(--font-display); font-size: 28px; font-weight: 700; }

/* About */
.about-section { position: relative; overflow: hidden; }
.about-section::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,148,86,.18), transparent 70%);
  pointer-events: none;
}
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about__media { position: relative; }
.about__media img, .about__media .placeholder { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.about__media-fallback { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; }
.about__media-fallback svg { display: block; width: 100%; height: 100%; }
.about__media-badge {
  position: absolute; bottom: -24px; left: -24px;
  background: var(--accent); color: #fff; padding: 18px 24px; border-radius: 12px;
  display: flex; flex-direction: column; gap: 2px; box-shadow: 0 14px 40px rgba(0,0,0,.3);
  min-width: 160px;
}
.about__media-badge .num { font-family: var(--font-display); font-size: 28px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.about__media-badge .lbl { font-size: 12px; opacity: .85; letter-spacing: .04em; }
.about__content h2 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 14px;
  padding-left: 36px; position: relative;
}
.eyebrow::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 24px; height: 1px; background: var(--accent);
}

.about__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 70px; padding-top: 50px; border-top: 1px solid rgba(255,255,255,.12);
}
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--accent); font-weight: 400; display: inline-flex; align-items: baseline; }
.stat__counter { display: inline-block; min-width: 1ch; }
.stat__suffix { font-size: 0.6em; margin-left: 2px; }
.stat__label { color: #fff; font-weight: 500; margin-top: 8px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.stat__desc  { color: rgba(255,255,255,.55); font-size: 13px; margin-top: 4px; }

.about__values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.value-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 24px; transition: all .2s; }
.value-card:hover { background: rgba(255,255,255,.07); border-color: rgba(184,148,86,.4); transform: translateY(-3px); }
.value-card__icon { color: var(--accent); font-size: 22px; margin-bottom: 12px; }
.value-card h4 { color: #fff; margin-bottom: 8px; font-family: var(--font-display); letter-spacing: .06em; }
.value-card p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.55; margin: 0; }

/* Reviews — slider with pagination */
.reviews-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; gap: 20px; flex-wrap: wrap; }
.reviews-head .section__title { text-align: left; }
.reviews-head .section__title::after { margin-left: 0; }
.reviews-nav { display: flex; gap: 8px; }
.reviews-nav__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font-size: 22px; line-height: 1;
  color: var(--primary); transition: all .2s; padding: 0;
}
.reviews-nav__btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.reviews-slider { overflow: hidden; margin: 0 -10px; padding: 0 10px; }
.reviews-track { display: flex; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.reviews-track .review {
  flex: 0 0 calc(33.333% - 14px); margin-right: 20px;
  background: var(--surface); border: 1px solid var(--border); padding: 24px;
  border-radius: var(--radius);
}
.reviews-track .review:last-child { margin-right: 0; }
.reviews-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.reviews-dot {
  width: 30px; height: 4px; border: 0; padding: 0; cursor: pointer;
  background: var(--border); border-radius: 2px; transition: all .25s;
}
.reviews-dot:hover { background: var(--text-muted); }
.reviews-dot.is-active { background: var(--accent); width: 50px; }

/* Legacy fallback (in case some pages still use grid) */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--surface); border: 1px solid var(--border); padding: 24px; border-radius: var(--radius); }
.review__head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.review__avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review__avatar--initials {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 500;
  font-size: 18px; letter-spacing: .04em;
  border: 2px solid rgba(184,148,86,.4);
}
.review__author { font-weight: 600; }
.review__rating .star { color: #ddd; }
.review__rating .star--on { color: var(--accent); }

/* CTA */
.cta { background: var(--primary); color: #fff; }
.cta__inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta h2 { color: #fff; }
.cta .btn--primary { background: var(--accent); }

/* Footer */
.site-footer { background: var(--graphite); color: #cbd2cc; padding: 60px 0 20px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--accent); }
.site-footer__bottom { padding-top: 20px; text-align: center; }
.footer-text { font-size: 14px; }
.socials li { display: inline-block; margin-right: 12px; }

/* Mobile call button */
.mobile-call { display: none; position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; align-items: center; justify-content: center; font-size: 22px; box-shadow: var(--shadow); z-index: 50; }

/* Catalog */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tabs__item { padding: 14px 24px; font-weight: 500; border-bottom: 3px solid transparent; }
.tabs__item.is-active { border-color: var(--accent); color: var(--primary); }

.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.catalog-content { min-width: 0; }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; align-self: start; position: sticky; top: 80px; }
.filters__close { display: none; }
.filter-block { padding: 12px 0; border-bottom: 1px solid var(--border); }
.filter-block:last-of-type { border-bottom: 0; }
.filter-block h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin: 0 0 10px; font-family: var(--font); font-weight: 600; }
.filter-block select, .filter-block input[type=number], .filter-block input[type=text], .filter-block input[type=search] {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 6px; font: inherit; background: #fff;
}
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* Agents grid (наши сотрудники) */
.agents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.agent-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.agent-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.08); border-color: var(--accent); color: inherit; }
.agent-card__media {
  width: 140px; height: 140px; border-radius: 50%; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}
.agent-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agent-card__placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 56px; font-weight: 600; color: #fff;
}
.agent-card__badge {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.agent-card__name { font-family: var(--font-display); font-size: 17px; margin: 6px 0 0; color: var(--primary); }
.agent-card__star { color: var(--accent); }
.agent-card__pos { font-size: 13px; color: var(--text-muted); }
.agent-card__more {
  font-family: var(--font-display); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-dark); margin-top: auto;
}

/* Agent profile page */
.agent-profile {
  display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start;
}
.agent-profile__media {
  width: 280px; height: 280px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.agent-profile__media img { width: 100%; height: 100%; object-fit: cover; }
.agent-profile__placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 120px; color: #fff;
}
.agent-profile__info h1 { margin: 8px 0 18px; }
.agent-profile__bio { margin-bottom: 24px; }
.agent-profile__contacts {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.agent-profile__contacts li {
  background: var(--bg-section); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 18px;
}
.agent-profile__contact-label {
  display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 4px;
}
.agent-profile__contacts a {
  font-family: var(--font-display); font-size: 18px; color: var(--primary);
  word-break: break-all;
}
@media (max-width: 720px) {
  .agent-profile { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .agent-profile__media { width: 200px; height: 200px; margin: 0 auto; }
  .agent-profile__contacts { text-align: left; }
}

/* Agent profile — card layout (photo 30% / info 70%) */
.agent-card-profile {
  display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: 40px; align-items: stretch;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.agent-card-profile__media {
  position: relative; min-height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}
.agent-card-profile__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.agent-card-profile__placeholder {
  width: 100%; height: 100%; min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 140px; color: #fff;
}
.agent-card-profile__body { padding: 40px 44px 40px 4px; }
.agent-card-profile__body .eyebrow { padding-left: 0; }
.agent-card-profile__body .eyebrow::before { display: none; }
.agent-card-profile__name { margin: 6px 0 20px; font-size: clamp(26px, 3vw, 40px); }

/* Stats plaque */
.agent-stats {
  display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 24px;
}
.agent-stats__item {
  flex: 1 1 180px; min-width: 0;
  background: var(--bg-section); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 10px;
  padding: 16px 20px;
}
.agent-stats__num {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 34px; line-height: 1; color: var(--accent-dark);
}
.agent-stats__label {
  display: block; margin-top: 6px; font-size: 13px; color: var(--text-muted);
  letter-spacing: .01em;
}

.agent-card-profile__bio { margin-bottom: 24px; color: var(--text); line-height: 1.7; }
.agent-card-profile__contacts {
  list-style: none; padding: 0; margin: 0 0 26px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
}
.agent-card-profile__contacts li {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-section); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 18px;
}
.agent-card-profile__contact-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--accent-dark); border: 1px solid var(--border);
}
.agent-card-profile__contact-text { min-width: 0; }
.agent-card-profile__contact-label {
  display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 2px;
}
.agent-card-profile__contacts a {
  font-family: var(--font-display); font-size: 17px; color: var(--primary);
  word-break: break-word;
}
@media (max-width: 760px) {
  .agent-card-profile { grid-template-columns: 1fr; gap: 0; }
  .agent-card-profile__media { aspect-ratio: 4/3; min-height: 0; }
  .agent-card-profile__placeholder { min-height: 260px; }
  .agent-card-profile__body { padding: 28px 24px; }
}

/* Honor board on About page */
.honor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.honor-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
}
.honor-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(184,148,86,.18); border-color: var(--accent); color: inherit; }
.honor-card__media {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  overflow: hidden; position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.honor-card__media img { width: 100%; height: 100%; object-fit: cover; }
.honor-card__placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 60px; color: #fff;
}
.honor-card__medal {
  position: absolute; right: -4px; top: -4px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.honor-card__name { font-family: var(--font-display); font-size: 20px; color: var(--primary); margin: 0 0 4px; letter-spacing: .03em; }
.honor-card__pos { font-size: 14px; color: var(--text-muted); }
@media (max-width: 880px) { .honor-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Nav dropdown (Услуги) */
.nav__has-sub { position: relative; display: inline-flex; align-items: center; }
.nav__has-sub > a { display: inline-flex; align-items: center; gap: 4px; }
.nav__chevron { font-size: 10px; opacity: .6; transition: transform .2s; }
.nav__has-sub:hover .nav__chevron { transform: rotate(180deg); opacity: 1; }
.nav__sub {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  min-width: 220px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 16px 40px rgba(15,28,22,.15);
  padding: 8px; opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .18s, transform .18s; z-index: 100;
}
.nav__has-sub:hover .nav__sub,
.nav__has-sub:focus-within .nav__sub {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav__sub a {
  display: block; padding: 10px 14px; border-radius: 6px;
  color: var(--text); font-size: 14px; transition: background .15s, color .15s;
}
.nav__sub a:hover { background: var(--bg-section); color: var(--accent-dark); }
.nav__sub::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}

/* Back-to-top floating button */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--primary); color: var(--accent); font-size: 16px;
  cursor: pointer; opacity: 0; transform: translateY(20px);
  transition: opacity .25s, transform .25s, background .2s;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); pointer-events: none;
}
.back-to-top.is-show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--accent-dark); color: #fff; }
@media (max-width: 600px) {
  /* Stack above the floating call button (.mobile-call: bottom 20, height 56) */
  .back-to-top { right: 23px; bottom: 86px; width: 50px; height: 50px; }
}

/* Construction page */
.construction-hero { background: linear-gradient(135deg, var(--primary) 0%, #2a4f3a 50%, var(--graphite) 100%); }
.construction-services .container { position: relative; z-index: 2; }
.construction-group { margin-bottom: 56px; }
.construction-group__title {
  font-family: var(--font-display); font-size: 28px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--primary); margin: 0 0 20px;
  padding-bottom: 14px; border-bottom: 2px solid var(--accent);
}
.construction-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.construction-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.construction-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.construction-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,.08);
}
.construction-card:hover::before { transform: scaleX(1); }
.construction-card__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(184,148,86,.10), rgba(184,148,86,.02));
  color: var(--accent-dark);
  margin-bottom: 8px;
  transition: transform .25s, background .25s, color .25s;
}
.construction-card__icon svg { width: 32px; height: 32px; display: block; }
.construction-card:hover .construction-card__icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}
.construction-card__title {
  font-family: var(--font-display); font-size: 18px; color: var(--primary);
  margin: 0; letter-spacing: .02em;
}
.construction-card__text { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: 0; flex: 1; }
.construction-card__price {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  color: var(--accent-dark); margin-top: 6px;
}
.construction-card .btn { align-self: flex-start; margin-top: 4px; }

/* Construction equipment animation band */
.equipment-band {
  position: relative; height: 140px; pointer-events: none; overflow: hidden;
  margin: 24px 0;
  display: flex; align-items: center; justify-content: space-around;
  background: linear-gradient(180deg, transparent 0%, rgba(31,71,52,.04) 100%);
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.equipment {
  width: 90px; height: 90px; color: var(--primary);
  opacity: 0; transform: translateX(-200px);
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1), opacity .8s;
}
.equipment svg { width: 100%; height: 100%; stroke-width: 1.2; }
.equipment[data-equip-anim="right"] { transform: translateX(200px); }
.equipment.is-in { transform: translateX(0); opacity: 1; }
@media (max-width: 640px) {
  .equipment-band { height: 100px; }
  .equipment { width: 64px; height: 64px; }
}

/* Catalog map view */
.catalog-map-section { padding-top: 24px; }
.catalog-map-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.catalog-map { width: 100%; height: calc(100vh - 240px); min-height: 480px; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.map-legend { display: flex; gap: 18px; font-size: 13px; color: var(--text-muted); }
.map-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
/* Зелёный меток светлее основного #1f4734 (просьба заказчика). Легенда красится
   тем же цветом, иначе она разойдётся с картой. */
.map-legend .dot--single { background: #2f8f52; }
/* Метки карты каталога — маленькие точки в стиле Авито (стандартные метки
   Яндекса заказчик счёл слишком крупными). Кружок сам сдвигается на половину
   размера, чтобы его центр попал ровно в координату объекта. */
.mapdot { position: relative; left: -6px; top: -6px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.45); }
.mapdot--green { background: #2f8f52; }
.mapdot--blue  { background: #1e6fd9; }
.mapdot--red   { background: #c0392b; }
/* Золотые объекты (повышенная комиссия) — просьба заказчика 2026-09-09.
   Цвет тёплый и заметно отличается от зелёного/синего/красного. */
.mapdot--gold  { background: #d4a017; box-shadow: 0 0 0 2px rgba(212,160,23,.28); }
.mapclu { position: relative; left: -14px; top: -14px; width: 28px; height: 28px;
  border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4);
  color: #fff; text-align: center; font-weight: 700; font-size: 12px; line-height: 24px; }
.mapclu--green { background: #2f8f52; }
.mapclu--blue  { background: #1e6fd9; }
.mapclu--red   { background: #c0392b; }
.mapclu--gold  { background: #d4a017; }

.map-legend .dot--house { background: #1e6fd9; }
.map-legend .dot--village { background: #c0392b; }
.map-legend .dot--gold { background: #d4a017; }

/* Services catalog */
.services-group { margin-bottom: 48px; }
.services-group__title {
  font-family: var(--font-display); font-size: 26px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--primary); margin: 0 0 18px;
  padding-bottom: 12px; border-bottom: 2px solid var(--accent);
}
.services-list { display: flex; flex-direction: column; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.service-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 22px;
  padding: 20px 24px; align-items: center; border-bottom: 1px solid var(--border);
  transition: background .18s;
}
.service-row:last-child { border-bottom: 0; }
.service-row:hover { background: var(--bg-section); }
.service-row__title { margin: 0 0 4px; font-family: var(--font-display); font-size: 18px; color: var(--primary); font-weight: 500; letter-spacing: .02em; }
.service-row__desc { color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.service-row__desc p { margin: 4px 0; }
.service-row__price {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: var(--accent-dark); white-space: nowrap;
}
.service-row__actions { display: flex; }
@media (max-width: 720px) {
  .service-row { grid-template-columns: 1fr; gap: 10px; }
  .service-row__price { font-size: 18px; }
}

.cta-block {
  background: var(--primary); color: #fff; border-radius: var(--radius);
  padding: 48px 32px; text-align: center;
}
.cta-block h2 { margin: 0 0 8px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.cta-block p { margin: 0 0 22px; color: rgba(255,255,255,.85); }

.scope-toggle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; background: var(--bg-section); border: 1px solid var(--border); border-radius: 8px; }
.scope-toggle__item { position: relative; cursor: pointer; text-align: center; }
.scope-toggle__item input { position: absolute; opacity: 0; pointer-events: none; }
.scope-toggle__item span {
  display: block; padding: 7px 4px; font-size: 12px; letter-spacing: .02em;
  color: var(--text-muted); border-radius: 6px; transition: all .18s;
}
.scope-toggle__item:hover span { color: #16a34a; }
.scope-toggle__item input:checked + span {
  background: #16a34a; color: #fff; font-weight: 600;
  box-shadow: 0 2px 6px rgba(22,163,74,.32);
}
/* Инлайновый вариант переключателя — для панели каталога рядом с сортировкой */
.scope-toggle--inline { display: inline-grid; grid-template-columns: repeat(3, auto); }
.scope-toggle--inline .scope-toggle__item span { padding: 7px 12px; white-space: nowrap; }
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 14px; }
.link-reset { display: inline-block; margin-top: 10px; color: var(--text-muted); font-size: 13px; }
.catalog-toolbar { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.catalog-count__of { color: var(--text-muted); opacity: .7; }
/* ⚠️ В панели теперь ДВА списка — подборка (Все/Рекомендовано/БД/ОЗ/ХИТ) и сортировка.
   `margin-left:auto` должен быть только у ПЕРВОГО, иначе второй тоже упирается вправо
   и между ними появляется дыра. */
.catalog-toolbar select { margin-left: 0; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; }
.catalog-toolbar select:first-of-type { margin-left: auto; }
#openFilters { display: none; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pagination a { padding: 8px 14px; border: 1px solid var(--border); border-radius: 6px; }
.pagination a.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Property detail */
.breadcrumbs { padding: 16px 24px; font-size: 13px; color: var(--text-muted); }
.property__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.property__meta { display: flex; gap: 10px; }
.property__meta .badge { position: static; }
.property__grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
/* Не дают grid-детям расползаться шире колонки (min-width:auto ломал мобильную вёрстку) */
.property__gallery, .property__side { min-width: 0; }
.gallery__main { aspect-ratio: 4/3; background: #eee; border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; position: relative; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
/* Штамп «Забронирован» — широкая полупрозрачная диагональная лента через центр фото */
.gallery__stamp {
  position: absolute; top: 50%; left: 50%; z-index: 6;
  width: 150%; text-align: center;
  transform: translate(-50%, -50%) rotate(-20deg);
  background: rgba(240, 104, 42, .34);
  border-top: 2px solid rgba(255, 255, 255, .55);
  border-bottom: 2px solid rgba(255, 255, 255, .55);
  color: #fff; font-weight: 800;
  font-size: clamp(20px, 4vw, 38px);
  text-transform: uppercase; letter-spacing: .12em;
  padding: 12px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
  pointer-events: none;
  -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
}
/* Главное фото как фон div (без <img> — чтобы не всплывала панель Яндекс.Браузера) */
.gallery__photo { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }

/* Прозрачный слой над фото: прячет панель Яндекс.Браузера и открывает полноэкранный режим */
.gallery__shield { position: absolute; inset: 0; z-index: 3; cursor: zoom-in; background: transparent; }

/* Водяной знак */
.gallery__wm {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 8px;
  background: rgba(15,28,22,.42); backdrop-filter: blur(2px);
  pointer-events: none; opacity: .92;
}
.gallery__wm img { width: auto !important; height: 22px !important; object-fit: contain !important; filter: brightness(0) invert(1); opacity: .95; }
.gallery__wm span {
  font-family: var(--font-display); font-size: 13px; letter-spacing: .1em;
  color: #fff; text-transform: lowercase; text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* Стрелки / зум / счётчик */
.gallery__nav, .gallery__zoom {
  position: absolute; z-index: 4; border: 0; cursor: pointer;
  background: rgba(255,255,255,.88); color: var(--primary);
  border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.22);
  transition: background .18s, transform .18s; line-height: 1;
}
.gallery__nav:hover, .gallery__zoom:hover { background: #fff; transform: scale(1.06); }
.gallery__nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 26px; }
.gallery__nav:hover { transform: translateY(-50%) scale(1.06); }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__zoom { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 17px; }
.gallery__counter {
  position: absolute; left: 14px; bottom: 14px; z-index: 4;
  background: rgba(15,28,22,.7); color: #fff; padding: 5px 12px; border-radius: 20px;
  font-family: var(--font-display); font-size: 13px; letter-spacing: .05em; pointer-events: none;
}

/* Водяной знак в полноэкранном режиме */
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; }
.lightbox__wm {
  position: absolute; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 8px; background: rgba(15,28,22,.45);
  pointer-events: none;
}
.lightbox__wm img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.lightbox__wm span { font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; color: #fff; }

@media (max-width: 600px) {
  .gallery__nav { width: 38px; height: 38px; font-size: 22px; }
  .gallery__nav--prev { left: 8px; }
  .gallery__nav--next { right: 8px; }
  .gallery__zoom { width: 34px; height: 34px; font-size: 15px; top: 10px; right: 10px; }
  .gallery__wm { right: 8px; bottom: 8px; padding: 4px 9px; }
  .gallery__wm img { height: 17px !important; }
  .gallery__wm span { font-size: 11px; }
  /* На телефоне 10 штук были бы по ~30px — показываем 5, остальное свайпом */
  .gallery__thumbs { gap: 6px; }
  .gallery__thumb { flex: 0 0 calc((100% - 24px) / 5); }
}
/* Лента превью: одна строка с горизонтальной прокруткой — блок не разрастается на пол-страницы */
.gallery__thumbs {
  display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden;
  padding-bottom: 6px; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  overscroll-behavior-x: contain;
}
.gallery__thumbs::-webkit-scrollbar { height: 6px; }
.gallery__thumbs::-webkit-scrollbar-track { background: transparent; }
.gallery__thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.gallery__thumbs:hover::-webkit-scrollbar-thumb { background: #c9c9c0; }
/* 10 превью в видимой части (9 промежутков по 8px) */
.gallery__thumb {
  flex: 0 0 calc((100% - 72px) / 10);
  border: 2px solid transparent; padding: 0; cursor: pointer; aspect-ratio: 1;
  overflow: hidden; border-radius: 6px;
  background-size: cover; background-position: center; background-repeat: no-repeat; background-color: #eee;
}
.gallery__thumb.is-active { border-color: var(--accent); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.property__side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 80px; }
.property__price { font-size: 30px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.property__side .btn { margin-bottom: 10px; }
.property__params { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.property__params li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--border); }
.property__params li:last-child { border: 0; }
.property__params span { color: var(--text-muted); flex-shrink: 0; }
.property__params b { text-align: right; }
.property__comms ul { margin-top: 6px; }
.property__comms li { font-size: 14px; padding: 4px 0; color: var(--text); }

/* Плашки «Рассрочка» / «Ипотека» на карточке объекта (видны всем) */
.property__actions-row { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; margin-bottom: 4px; }
.property__finance { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.fin-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; line-height: 1; white-space: nowrap; }
.fin-badge::before { content: '✓'; font-size: 10px; opacity: .8; }
.fin-badge--install { background: #e9f3ec; color: #1f6b3b; border: 1px solid #bcdcc7; }
.fin-badge--mortgage { background: #fdf3e2; color: #9a6a12; border: 1px solid #ecd09a; }
.fin-badge--gold { background: #fbf1d6; color: #8a6410; border: 1px solid #e3c877; }
.fin-badge--gold::before { content: '★'; }

/* Статистика с площадок на карточке объекта (публично) */
.property__stats {
  margin-top: 18px; padding: 14px 16px;
  background: #eef6ff; border: 1px solid #cfe3fb; border-radius: 10px;
}
.property__stats h4 { margin: 0 0 10px; font-size: 14px; color: #1b5fa8; }
.property__stats-row { display: flex; gap: 10px; flex-wrap: wrap; }
.property__stat {
  flex: 1 1 80px; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 8px 6px; background: #fff; border-radius: 8px; border: 1px solid #dcebfb;
}
.property__stat b { font-size: 20px; line-height: 1.1; color: #14335a; }
.property__stat i { font-style: normal; font-size: 11px; color: #6b7f96; margin-top: 3px; }
/* Дата публикации над цифрами: слева прямое объявление, справа первое из
   привязанных. Тот же порядок, что у самих цифр, поэтому подписи не нужны. */
.property__stats-since {
  margin: -4px 0 10px; font-size: 12px; letter-spacing: .02em;
  color: #6b7f96;   /* плашка СВЕТЛАЯ (#eef6ff) — цвет как у подписей .property__stat i */
}
.property__stats-note { margin: 10px 0 0; font-size: 11px; color: #7c93ab; }

/* Особые отметки — внутренний блок для агентов на карточке объекта */
.property__notes {
  margin-top: 18px; padding: 14px 16px;
  background: #fff8e6; border: 1px solid #e7c667; border-left: 4px solid #d9a520;
  border-radius: 10px;
}
.property__notes h4 { margin: 0 0 6px; font-size: 14px; color: #8a6400; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.property__notes h4 span { font-weight: 400; font-size: 11px; color: #b08a2e; background: #fdefc4; padding: 2px 7px; border-radius: 999px; }
.property__notes-body { font-size: 14px; line-height: 1.5; color: #6b5410; white-space: pre-line; }

/* Сквозная кнопка «Для агентов» + пароль */
.agent-reveal { margin-top: 18px; }
.agent-reveal__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; font-size: 13px; font-weight: 600;
  color: #6b5410; background: #fff8e6; border: 1px solid #e7c667;
  border-radius: 10px; cursor: pointer; transition: background .15s;
}
.agent-reveal__btn:hover { background: #fdefc4; }
.agent-reveal__form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.agent-reveal__form input {
  flex: 1 1 160px; min-width: 140px; padding: 9px 12px;
  border: 1px solid #d7c894; border-radius: 10px; font-size: 14px;
}
.agent-reveal__form button {
  padding: 9px 16px; font-size: 13px; font-weight: 600; color: #fff;
  background: #d9a520; border: none; border-radius: 10px; cursor: pointer;
}
.agent-reveal__form button:disabled { opacity: .6; cursor: default; }
.agent-reveal__err { flex-basis: 100%; font-size: 12px; color: #c0392b; }

/* Особые отметки раскрываются вниз в правом столбце, НЕ сдвигая описание.
   На десктопе — абсолютно спозиционированы под характеристиками (вне потока). */
.agent-out {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, opacity .3s ease;
  opacity: 0;
}
.agent-out[style*="max-height"] { opacity: 1; }
@media (min-width: 961px) {
  /* position:relative нужен как контейнер для .agent-out (absolute).
     top:0 сбрасывает унаследованный от sticky top:80px — иначе правую колонку сносит вниз на 80px. */
  .property__side { position: relative; top: 0; }
  .agent-out {
    position: absolute; top: 100%; left: 0; right: 0; margin-top: 12px; z-index: 20;
  }
  .agent-out .property__notes {
    margin-top: 0 !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
  }
}

/* Форма входа для агентов */
.agent-login { max-width: 420px; margin: 20px auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px 26px; }
.agent-login h1 { font-size: 24px; margin: 0 0 6px; }
.agent-login__form { margin-top: 16px; }
.agent-login__form label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.agent-login__form input { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; }
.agent-login__form input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }

/* Флажок «Режим агента» / ссылка входа в подвале */
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.agent-flag { display: inline-flex; align-items: center; gap: 10px; }
.agent-flag__on { color: #e7c667; font-size: 12px; }
.agent-flag__link { background: none; border: 0; color: rgba(255,255,255,.55); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }
.agent-flag__link:hover { color: rgba(255,255,255,.85); }
.property__description, .property__map { margin-top: 40px; }
.prose { line-height: 1.75; font-size: 16px; color: var(--text); }
.prose p { margin: 14px 0; }
.prose h2 { margin-top: 48px; margin-bottom: 16px; }
.prose h3 { margin-top: 32px; margin-bottom: 12px; }
.prose ul, .prose ol { margin: 16px 0; padding-left: 24px; }
.prose ul li, .prose ol li { margin: 8px 0; line-height: 1.65; list-style: revert; }
.prose strong { color: var(--primary); font-weight: 600; }
.prose .lead { font-size: 19px; line-height: 1.6; color: var(--text); margin-bottom: 28px; padding-left: 20px; border-left: 3px solid var(--accent); }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.prose--narrow { max-width: 780px; margin: 0 auto; }

/* Inner pages: hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--graphite) 100%);
  color: #fff; padding: 140px 0 40px;
  min-height: 420px;
  text-align: center; position: relative; overflow: hidden;
}
@media (max-width: 720px) {
  .page-hero { min-height: 320px; padding: 90px 0 30px; }
}
.page-hero::before {
  content: ''; position: absolute; top: -40%; left: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,148,86,.15), transparent 65%);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -50%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,71,52,.4), transparent 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; width: 100%; }
.page-hero h1 { color: #fff; margin: 8px 0 16px; }
.page-hero__lead {
  color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.6;
  max-width: 720px; margin: 0 auto;
}
.page-hero .eyebrow { color: var(--accent); padding-left: 0; }
.page-hero .eyebrow::before { display: none; }

/* «О компании» — фото офиса вместо зелёного фона, затемнено к низу под текст */
.page-hero--about {
  background-image:
    linear-gradient(180deg, rgba(15,28,22,.50) 0%, rgba(15,28,22,.70) 45%, rgba(15,28,22,.90) 100%),
    url('/uploads/site/about-office.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* декоративные зелёные круги поверх фото не нужны */
.page-hero--about::before,
.page-hero--about::after { display: none; }

/* Компактная (низкая) шапка — для страницы посёлков и т.п. */
.page-hero--compact { min-height: 280px; padding: 96px 0 34px; }
@media (max-width: 720px) {
  .page-hero--compact { min-height: 200px; padding: 80px 0 24px; }
}

/* Поиск по кадастру на странице посёлков */
.village-search { display: flex; gap: 10px; max-width: 620px; margin: 0 0 22px; }
.village-search input {
  flex: 1; min-width: 0; padding: 13px 16px; font-size: 15px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
}
.village-search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.village-search .btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .village-search { flex-wrap: wrap; }
  .village-search .btn { width: 100%; }
}

/* Page stats — same vibe as homepage but on light bg */
.page-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 20px 0;
}
.page-stat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; transition: all .25s;
}
.page-stat:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(0,0,0,.06); }
.page-stat__num {
  font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 56px);
  color: var(--primary); line-height: 1; margin-bottom: 12px; font-weight: 400;
  letter-spacing: .02em;
}
.page-stat__num span[data-counter] { color: var(--accent); }
.page-stat__label {
  font-family: var(--font-display); color: var(--text); font-size: 14px;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px;
}
.page-stat__desc { color: var(--text-muted); font-size: 13px; line-height: 1.5; }

/* Principles — new editorial-style vertical list on dark background */
.section--dark-principles {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--graphite) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.section--dark-principles::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,148,86,.12), transparent 65%);
  pointer-events: none;
}
.section--dark-principles .container { position: relative; z-index: 1; }
.principles-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.principles-head h2 { color: #fff; margin-bottom: 16px; }
.principles-lead { color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.6; }
.eyebrow--light { color: var(--accent); padding-left: 0; }
.eyebrow--light::before { display: none; }

.principles-list {
  list-style: none; padding: 0; margin: 0 auto; max-width: 920px;
}
.principle-row {
  display: grid; grid-template-columns: 140px 1fr;
  align-items: center; gap: 40px;
  padding: 32px 0; position: relative;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: padding-left .3s ease;
}
.principle-row:last-child { border-bottom: 0; }
.principle-row:hover { padding-left: 12px; }
.principle-row__num {
  font-family: var(--font-display); font-size: clamp(60px, 8vw, 96px);
  line-height: 1; color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  font-weight: 400; letter-spacing: .04em;
  transition: all .3s ease;
}
.principle-row:hover .principle-row__num {
  color: var(--accent); -webkit-text-stroke: 0;
}
.principle-row__content h3 {
  color: #fff; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: .04em; margin: 0 0 12px; text-transform: uppercase; font-weight: 500;
}
.principle-row__content p {
  color: rgba(255,255,255,.65); font-size: 15px; line-height: 1.65; margin: 0;
  max-width: 580px;
}
.principle-row__line {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.principle-row:hover .principle-row__line { transform: scaleX(1); }

@media (max-width: 700px) {
  .principle-row { grid-template-columns: 70px 1fr; gap: 20px; padding: 22px 0; }
  .principle-row__num { font-size: 52px; }
  .principle-row__content h3 { font-size: 19px; }
}

/* Legacy fallback */
.principles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 980px; margin: 0 auto;
}
.principle {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 30px; position: relative; transition: all .25s;
}
.principle:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.principle__num {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-display); font-size: 44px; color: var(--accent);
  opacity: .25; line-height: 1; font-weight: 400;
}
.principle h3 { color: var(--primary); margin: 0 0 10px; padding-right: 60px; }
.principle p { color: var(--text-muted); margin: 0; font-size: 15px; line-height: 1.6; }

/* Contacts page */
.contacts-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.contacts-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; transition: all .2s; color: inherit;
}
.contact-card:not(.contact-card--static):hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06); color: inherit;
}
.contact-card__icon {
  flex-shrink: 0; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-section); border-radius: 12px;
  font-size: 22px;
}
.contact-card__label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 4px;
}
.contact-card__value {
  font-family: var(--font-display); font-size: 20px; letter-spacing: .04em;
  color: var(--primary); text-transform: uppercase; line-height: 1.2;
}
.contact-card__sub { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.contact-socials a {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 40px;
  font-size: 13px; color: var(--text); transition: all .15s;
}
.contact-socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.contact-card__icon svg { display: block; }
.contact-card__icon { color: var(--primary); transition: all .2s; }
.contact-card:hover:not(.contact-card--static) .contact-card__icon { background: var(--primary); color: #fff; }

.contacts-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 34px; box-shadow: 0 12px 40px rgba(0,0,0,.05);
  position: relative;
}
.contacts-form::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius) var(--radius) 0 0;
}
.contacts-form h2 { color: var(--primary); margin-bottom: 6px; font-size: clamp(24px, 3vw, 30px); }
.contacts-form__lead { margin: 0 0 22px; font-size: 14px; color: var(--text-muted); }
.contacts-form .form__success { margin-top: 12px; padding: 10px 14px; background: #e6f4eb; color: #1a7a3b; border-radius: 6px; }
.contacts-form .form__error   { margin-top: 12px; padding: 10px 14px; background: #fdecea; color: #b41818; border-radius: 6px; }

/* Form field universal block */
.form-field { margin-bottom: 16px; display: block; }
.form-field label {
  display: block; margin-bottom: 6px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
}
.form-field input,
.form-field textarea {
  display: block; width: 100%; padding: 13px 16px;
  border: 1px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 15px; background: #fafaf7;
  transition: all .15s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(31,71,52,.08);
}
.form-field textarea { font-family: inherit; resize: vertical; min-height: 90px; }
.contacts-form .btn--lg { margin-top: 6px; padding: 14px 22px; }

/* About page — split layout */
.about-split { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: start; }
.about-split__head .eyebrow { padding-left: 0; }
.about-split__head .eyebrow::before { display: none; }
.about-split__head h2 { margin-bottom: 16px; }
.about-split__head p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.about-split__body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-split__body--4 { grid-template-columns: 1fr 1fr; gap: 18px; }
.about-split__body--4 .about-card { padding: 26px 24px; }
.about-split__body--4 .about-card h3 { font-size: 18px; }
.about-split__body--4 .about-card p { font-size: 13px; line-height: 1.55; }

.about-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 32px; position: relative; transition: all .25s;
}
.about-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 36px rgba(0,0,0,.06); }
.about-card__num {
  font-family: var(--font-display); color: var(--accent);
  font-size: 14px; letter-spacing: .2em; margin-bottom: 18px;
}
.about-card h3 { color: var(--primary); margin: 0 0 12px; font-size: 22px; }
.about-card p { color: var(--text-muted); margin: 0; font-size: 14px; line-height: 1.65; }

/* Почему доверяют — три большие цифры */
.about-feature {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
  padding: 20px 0;
}
.about-feature__desc { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin-top: 8px; max-width: 220px; margin-left: auto; margin-right: auto; }
.about-feature__item {
  text-align: center; padding: 32px 24px;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  transition: all .25s;
}
.about-feature__item:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.about-feature__num {
  font-family: var(--font-display); font-size: clamp(50px, 6vw, 72px);
  line-height: 1; color: var(--primary); font-weight: 400; letter-spacing: .02em;
}
.about-feature__num span[data-counter] { color: var(--accent); }
.about-feature__label {
  margin-top: 14px; color: var(--text-muted); font-size: 14px;
  line-height: 1.5; max-width: 280px; margin-left: auto; margin-right: auto;
}
.about-quote {
  max-width: 820px; margin: 50px auto 0;
  padding: 32px 40px; background: #fff;
  border-left: 4px solid var(--accent);
  font-family: var(--font-display); font-size: 22px; line-height: 1.5;
  color: var(--text); letter-spacing: .01em;
  position: relative;
}
.about-quote::before {
  content: '"'; position: absolute; top: 0; left: 16px;
  font-family: 'Georgia',serif; font-size: 70px; color: var(--accent);
  line-height: 1; opacity: .5;
}

/* Geography */
.about-geo { text-align: center; max-width: 980px; margin: 0 auto; }
.about-geo .eyebrow { padding-left: 0; }
.about-geo .eyebrow::before { display: none; }
.about-geo h2 { margin-bottom: 12px; }
.about-geo > p { color: var(--text-muted); margin-bottom: 36px; }
.geo-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.geo-list li {
  padding: 10px 22px; background: #fff;
  border: 1px solid var(--border); border-radius: 40px;
  font-size: 14px; color: var(--text); transition: all .2s;
}
.geo-list li:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }

@media (max-width: 960px) {
  .about-split { grid-template-columns: 1fr; gap: 32px; }
  .about-split__body { grid-template-columns: 1fr; }
  .about-feature { grid-template-columns: 1fr; }
  .about-quote { font-size: 18px; padding: 24px 28px; }
}

@media (max-width: 960px) {
  .page-stats { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .page-stats { grid-template-columns: 1fr; }
  .contacts-form { padding: 24px; }
  .contact-card { padding: 18px 20px; gap: 14px; }
  .contact-card__icon { width: 40px; height: 40px; font-size: 18px; }
  .contact-card__value { font-size: 17px; }
}

/* Forms */
.form label { display: block; margin-bottom: 14px; font-size: 14px; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form input[type=password], .form input[type=number], .form select, .form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff; margin-top: 4px;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.form__success { color: #1a7a3b; }
.form__error { color: var(--danger); }
.err { color: var(--danger); font-size: 12px; }

/* Modal */
.modal {
  display: flex; position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s linear 0s; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15,28,22,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: 40px 36px; max-width: 460px; width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  transform: translateY(30px) scale(.96); opacity: 0;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s ease;
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); opacity: 1; }
.modal__dialog::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius) var(--radius) 0 0;
}
.modal__dialog h3 { font-family: var(--font-display); color: var(--primary); margin-bottom: 4px; }
.modal__close {
  position: absolute; right: 14px; top: 12px; width: 36px; height: 36px;
  background: transparent; border: 1px solid var(--border); border-radius: 50%;
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-muted);
  transition: all .2s;
}
.modal__close:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: rotate(90deg); }

/* Urgent buyout form fields */
.urgent__field { display: flex; flex-direction: column; gap: 6px; }
.urgent__field label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.7); font-weight: 500;
}
.urgent__form textarea {
  padding: 12px 14px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; border-radius: 8px;
  font: inherit; resize: vertical; min-height: 56px;
}
.urgent__form textarea::placeholder { color: rgba(255,255,255,.45); }
.urgent__form .btn--primary { background: var(--accent); border-color: var(--accent); padding: 14px 22px; font-weight: 500; letter-spacing: .04em; }
.urgent__form .btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.urgent__small { color: rgba(255,255,255,.55); font-size: 12px; text-align: center; display: block; margin-top: -6px; }

/* Responsive */
@media (max-width: 960px) {
  .properties-grid, .why-us, .reviews { grid-template-columns: repeat(2, 1fr); }
  .about__stats, .about__values { grid-template-columns: repeat(2, 1fr); }
  .about__media-badge { left: 12px; bottom: 12px; padding: 14px 18px; }
  .service-card { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .service-card__media { order: -1; height: 200px; min-height: 0; }
  .service-card__body { padding: 24px; }
  .service-card__text { -webkit-line-clamp: unset; line-clamp: unset; }
  .urgent__inner, .about { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .property__grid { grid-template-columns: 1fr; }
  .property__side { position: static; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 90%; z-index: 150; transform: translateX(-100%); transition: transform .25s; border-radius: 0; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 96px; }
  .filters.is-open { transform: translateX(0); }
  .filters__close { display: block; position: absolute; right: 10px; top: 10px; background: none; border: 0; font-size: 26px; cursor: pointer; }
  #openFilters { display: inline-flex; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 640px) {
  .site-header__right .phone, .site-header__right .btn { display: none; }
  .properties-grid, .why-us, .reviews { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .mobile-call { display: flex; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }

  /* Вкладки каталога — переносим, чтобы «Коммерческие объекты» не уезжали за экран */
  .tabs { flex-wrap: wrap; gap: 4px 8px; }
  .tabs__item { padding: 10px 14px; font-size: 14px; }

  /* Тулбар каталога — в столбик, сортировка на всю ширину */
  .catalog-toolbar { flex-wrap: wrap; gap: 10px 12px; }
  /* Два списка делят строку, а не занимают по строке каждый. */
  .catalog-toolbar select { margin-left: 0; width: auto; max-width: 100%; flex: 1 1 46%; min-width: 0; }
}

/* Discount sticker & old price (property card) */
.prop-card__discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #d23131;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(210,49,49,.35);
  letter-spacing: .02em;
  z-index: 2;
}
.prop-card__price-old {
  display: inline-block;
  color: #b41818;
  font-size: 15px;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-color: #d23131;
  margin-bottom: 2px;
  opacity: .85;
}
.prop-card__price--discounted {
  color: #1a7a3b;
}

/* Discount on property detail page */
.property__price-old {
  display: flex; align-items: center; gap: 10px;
  color: #b41818;
  font-size: 18px;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-color: #d23131;
  margin-bottom: 4px;
  opacity: .85;
}
.property__discount-badge {
  display: inline-block;
  background: #d23131;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: .02em;
  opacity: 1;
}
.property__price--discounted {
  color: #1a7a3b !important;
}

/* ===== Team block "Наши сотрудники" (board of honor) ===== */
.team-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  display: flex; flex-direction: column; color: inherit; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 0; transition: transform .22s, box-shadow .22s, border-color .22s;
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(15,28,22,.14); border-color: var(--accent); color: inherit; }
.team-card__photo {
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 14px; margin: 10px 10px 0; width: auto; background: var(--bg-section);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.team-card:hover .team-card__photo img { transform: scale(1.05); }
.team-card__badge-star {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(15,28,22,.66); color: var(--accent);
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(2px);
}
.team-card__ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 52px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.team-card__body { padding: 14px 16px 18px; text-align: center; }
.team-card__name { font-family: var(--font-display); font-size: 17px; color: var(--primary); margin-bottom: 3px; line-height: 1.2; }
.team-card__pos { font-size: 13px; color: var(--text-muted); line-height: 1.35; }
.team-card__deals {
  display: inline-flex; align-items: baseline; gap: 5px;
  margin-top: 12px; padding: 6px 14px; border-radius: 999px;
  background: var(--bg-section); border: 1px solid var(--accent);
  color: var(--accent); font-size: 12.5px; font-weight: 500;
}
.team-card__deals b { font-family: var(--font-display); font-size: 16px; font-weight: 700; }

/* ===== Mobile quick-nav under hero (Продажа + Выкуп menus) ===== */
.mobile-quicknav { display: none; }
@media (max-width: 900px) {
  .team-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .mobile-quicknav {
    display: block;
    padding: 18px 16px 6px;
    background: var(--bg-section);
  }
  .mqn-group { margin-bottom: 18px; }
  .mqn-title {
    font-family: var(--font-display);
    font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent); font-weight: 600;
    margin: 0 2px 8px;
  }
  .mqn-link {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 11px 13px; margin-bottom: 8px;
    font-size: 14.5px; font-weight: 500; color: var(--text); line-height: 1.25;
  }
  .mqn-ic {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--accent-dark);
    background: linear-gradient(135deg, rgba(184,148,86,.16), rgba(184,148,86,.07));
    border: 1px solid rgba(184,148,86,.22);
  }
  .mqn-ic svg { display: block; }
  .mqn-txt { flex: 1; min-width: 0; }
  .mqn-link i { color: var(--accent); font-style: normal; font-size: 16px; flex-shrink: 0; }
  .mqn-link:active { background: var(--bg-section); }
}
@media (max-width: 420px) {
  .team-row { grid-template-columns: 1fr 1fr; }
}

/* ===== Mobile «Покупателям / Продавцам / О компании» (Азбука-стиль, наши цвета) ===== */
.mobile-azbuka { display: none; }
@media (max-width: 900px) {
  .mobile-azbuka {
    display: block;
    padding: 26px 20px 8px;
    background: var(--bg-section);
  }
  .maz-group { padding: 22px 0; border-bottom: 1px solid var(--border); }
  .maz-group:first-child { padding-top: 4px; }
  .maz-group:last-child { border-bottom: 0; }
  .maz-eyebrow {
    display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-muted); font-weight: 600; margin-bottom: 4px;
  }
  .maz-heading {
    font-family: var(--font-display); font-weight: 700;
    font-size: 34px; line-height: 1.05; text-transform: uppercase;
    color: var(--primary); margin: 0 0 16px;
  }
  .maz-link {
    display: block; width: 100%; text-align: left;
    background: none; border: 0; padding: 9px 0; cursor: pointer;
    font-family: var(--font); font-size: 18px; font-weight: 500; line-height: 1.3;
    color: var(--text); text-decoration: underline;
    text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 2px;
    transition: color .15s;
  }
  .maz-link:active { color: var(--accent-dark); }
  .maz-about { margin: 0 0 16px; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
  .maz-btn {
    display: inline-block; padding: 11px 26px; border-radius: 8px;
    background: var(--primary); color: #fff; font-weight: 600; font-size: 15px;
  }
  .maz-btn:active { background: var(--primary-dark); }
}

/* ===== Property gallery video tile ===== */
.gallery__main video { width: 100%; height: 100%; object-fit: cover; display: block; background:#000; border-radius: var(--radius); }
.gallery__thumb { position: relative; }
.gallery__thumb--video .gallery__play {
  position: absolute; inset: 0; margin: auto;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); color:#fff; border-radius: 50%; font-size: 15px; padding-left: 3px;
  pointer-events: none;
}
.gallery__thumb--video::after {
  content: 'ВИДЕО'; position: absolute; left: 4px; bottom: 4px;
  background: #d23131; color:#fff; font-size: 9px; font-weight: 700; letter-spacing:.05em;
  padding: 1px 5px; border-radius: 3px; pointer-events: none;
}
.gallery__thumb-ph { display:block; width:100%; height:100%; background: linear-gradient(135deg,#2b2b2b,#000); }

/* «Новые поступления / Витрина»: показываем наверху (перед выкупом) на всех экранах.
   Нижний дубль скрыт. */
.fresh-mobile { display: block; }
.fresh-desktop { display: none; }

/* Villages direction filter chips */
/* position/z-index — чтобы выпадающая панель мультивыбора рисовалась ПОВЕРХ сетки посёлков.
   У .village-filter есть data-anim → animations.js вешает transform → stacking context,
   и сетка (позже в DOM) перекрывала панель. z-index поднимает фильтр над сеткой. */
.village-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; position: relative; z-index: 20; }
.village-filter__label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.village-filter__chip {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; color: var(--text); transition: all .15s;
}
.village-filter__chip:hover { border-color: var(--accent); color: var(--primary); }
.village-filter__chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Мультивыбор шоссе (панель с чекбоксами) + плавное AJAX-обновление */
.hw-multi { position: relative; display: inline-block; }
.hw-multi__toggle {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  min-width: 240px; max-width: 100%;
  padding: 11px 16px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 15px; line-height: 1.2; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.hw-multi__toggle:hover { border-color: var(--accent); }
.hw-multi.is-open .hw-multi__toggle { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,71,52,.12); }
.hw-multi__arrow { color: var(--text-muted); font-size: 12px; transition: transform .2s ease; }
.hw-multi.is-open .hw-multi__arrow { transform: rotate(180deg); }
.hw-multi__panel {
  position: absolute; z-index: 40; left: 0; top: calc(100% + 6px);
  min-width: 100%; width: max-content; max-width: 320px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.14); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.hw-multi.is-open .hw-multi__panel { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.hw-multi__opt {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  font-size: 14px; color: var(--text); cursor: pointer; transition: background .12s;
}
.hw-multi__opt:hover { background: rgba(31,71,52,.06); }
.hw-multi__opt input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; flex: none; margin: 0; }
.hw-multi__reset {
  display: block; width: 100%; margin-top: 6px; padding: 10px;
  border: none; border-top: 1px solid var(--border); background: none;
  color: var(--text-muted); font: inherit; font-size: 13px; cursor: pointer; text-align: center;
}
.hw-multi__reset:hover { color: var(--primary); }
#villagesResults { transition: opacity .2s ease; }
#villagesResults.is-loading { opacity: .4; pointer-events: none; }
@media (max-width: 600px) {
  .village-filter { flex-direction: column; align-items: stretch; gap: 10px; }
  .village-filter__label { margin: 0; }
  .hw-multi, .hw-multi__toggle { width: 100%; min-width: 0; }
  .hw-multi__panel { max-width: none; }
}

/* ===== Share widget ===== */
.share { position: relative; display: inline-block; }
.share__btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: 0; border-radius: 10px;
  padding: 11px 20px; font: inherit; font-size: 14px; font-weight: 600;
  letter-spacing: .01em; color: #fff; cursor: pointer;
  box-shadow: 0 4px 14px rgba(184,148,86,.32);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.share__btn span { font-size: 16px; line-height: 1; }
.share__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(184,148,86,.42); filter: brightness(1.05); color: #fff; }
.share__btn:active { transform: translateY(0); }
.share__menu {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0;
  min-width: 230px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 16px 38px rgba(0,0,0,.16); padding: 6px; overflow: hidden;
  animation: shareIn .14s ease;
}
@keyframes shareIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.share__item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  background: none; border: 0; text-align: left;
  padding: 12px 13px; border-radius: 9px;
  font: inherit; font-size: 14.5px; font-weight: 500; color: var(--text); cursor: pointer;
  transition: background .12s, color .12s;
}
.share__item:hover { background: var(--bg-section); color: var(--accent-dark); }
.share__item[data-share-copy]:hover { background: rgba(184,148,86,.12); }
.share__ic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; }
.share__ic svg { display: block; }

/* ---- Быстрый поиск в герое главной ----
   Показывается ВЕЗДЕ (заказчик попросил «на главной с ноута тоже полоску поиска»).
   Различие осталось одно: на мобильных строка ЗАМЕНЯЕТ кнопку «Смотреть каталог»
   (сам поиск туда и ведёт), а на десктопе стоит НАД обеими кнопками. */
.hero-search { position: relative; flex: 0 0 100%; text-align: left; }
.hero-search__form { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.hero-search__input {
  flex: 1; min-width: 0; padding: 14px 16px; font-size: 16px; /* 16px — иначе iOS зумит при фокусе */
  border: 1px solid rgba(255,255,255,.35); border-radius: 10px;
  background: rgba(255,255,255,.95); color: #1e2a22;
}
.hero-search__input::placeholder { color: #7d8a83; }
.hero-search__input:focus { outline: 0; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.hero-search__go {
  padding: 0 22px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--primary); color: #fff; font: inherit; font-weight: 600;
  transition: background .15s;
}
.hero-search__go:hover { background: var(--accent-dark, #16351f); }

/* Список живёт не в герое, а в <body> (его туда переносит JS): у .hero стоит
   overflow:hidden под фоновое видео, а у .hero__cta — transform от анимации;
   и то и другое обрезало бы выпадашку. Позицию считает JS от строки поиска. */
.hero-search__drop {
  position: fixed; z-index: 300;
  background: #fff; border-radius: 12px; overflow-y: auto; max-height: 70vh;
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
}
.hero-search__item { display: flex; gap: 10px; align-items: center; padding: 10px 12px;
  text-decoration: none; color: #1e2a22; border-bottom: 1px solid #eef1ee; }
.hero-search__item:hover, .hero-search__item:active { background: #f2f6f3; }
.hero-search__thumb { width: 46px; height: 46px; flex-shrink: 0; border-radius: 8px;
  object-fit: cover; background: #e7ece8; }
/* min-width:0 обязателен: без него флекс не даёт колонке сжиматься,
   и длинный заголовок ломается в столбик по одному слову */
.hero-search__body { flex: 1; min-width: 0; display: block; }
.hero-search__tt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.hero-search__sub { display: block; font-size: 11.5px; color: #7d8a83; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-search__price { flex-shrink: 0; font-weight: 700; font-size: 13px; white-space: nowrap; }
.hero-search__msg { padding: 14px; font-size: 14px; color: #7d8a83; }
/* Последняя строка — переход в каталог с тем же запросом */
.hero-search__all { display: block; padding: 12px; text-align: center; text-decoration: none;
  font-size: 13px; font-weight: 700; color: var(--primary); background: #f4f8f5;
  border-top: 1px solid #e4eae5; }
.hero-search__all:hover, .hero-search__all:active { background: #e9f0eb; }

/* Десктоп: кнопка «Найти» ВНУТРИ поля — белая, с зелёной рамкой и буквами
   (просьба заказчика, только компьютерная версия). На мобильных она остаётся
   отдельной зелёной кнопкой рядом с полем: там ширины на «кнопку внутри» нет. */
@media (min-width: 641px) {
  .hero-search__form { position: relative; }
  /* Место под кнопку, иначе длинный запрос уезжает под неё */
  .hero-search__input { padding-right: 104px; }
  .hero-search__go {
    position: absolute; right: 6px; top: 6px; bottom: 6px;
    padding: 0 18px; border-radius: 8px;
    background: #fff; color: var(--primary);
    border: 1px solid var(--primary);
  }
  .hero-search__go:hover { background: var(--primary); color: #fff; }
}

@media (max-width: 640px) {
  /* Строка поиска встаёт вместо «Смотреть каталог» — сам поиск и ведёт в каталог */
  .hero__cta .btn--primary { display: none; }
  .hero-search__form { max-width: none; }
  .hero-search__go { padding: 0 18px; }
}

/* Дата над цифрами статистики посёлка. Занимает всю строку, поэтому цифры
   переносятся под неё (у обоих контейнеров flex-wrap). */
.village__stats-since,
.prop-card__since { flex: 0 0 100%; font-size: 12px; color: #7d8a83; }

/* Статистика рекламы на карточке объекта и посёлка (сумма Авито + Циан) */
.prop-card__stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px;
  padding-top: 9px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--text-muted); }
.prop-card__stats b { color: var(--text); font-weight: 700; }

/* Сводная статистика рекламы на странице посёлка — над списком объектов */
.village__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px;
  margin: -22px 0 28px; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg-section); font-size: 14px; color: var(--text-muted); }
.village__stats b { color: var(--text); font-weight: 700; font-size: 18px; }
.village__stats i { font-style: normal; font-size: 12px; opacity: .75; margin-left: auto; }
@media (max-width: 640px) { .village__stats i { margin-left: 0; flex-basis: 100%; } }

/* Комментарии агентов в «Особых отметках» — только добавление, правки нет */
.agent-comments { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed rgba(255,255,255,.18); }
.agent-comments__item + .agent-comments__item { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.12); }
.agent-comments__head { display: flex; gap: 10px; align-items: baseline; font-size: 11.5px; opacity: .75; }
.agent-comments__head time { margin-left: auto; }
.agent-comments__body { font-size: 13.5px; line-height: 1.5; margin-top: 3px; }
.agent-add { margin-top: 12px; }
.agent-add textarea { width: 100%; padding: 9px 11px; font: inherit; font-size: 13.5px; line-height: 1.45;
  border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(255,255,255,.06);
  color: inherit; resize: vertical; }
.agent-add textarea::placeholder { color: currentColor; opacity: .45; }
.agent-add__row { display: flex; align-items: center; gap: 10px; margin-top: 8px; min-height: 1px; }
.agent-add__row button { padding: 8px 16px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--gp-sand, #b89456); color: #0a1e24; font: inherit; font-weight: 700; font-size: 13px; }
.agent-add__row button:disabled { opacity: .6; cursor: default; }
.agent-add__msg { font-size: 12px; opacity: .8; }

/* Переключатель вида участков: рисованная схема ↔ спутник (одни и те же данные) */
.vswitch { display: inline-flex; gap: 4px; margin: 0 0 14px; padding: 4px;
  border: 1px solid var(--border); border-radius: 10px; background: #f4f6f4; }
.vswitch__b { padding: 8px 18px; cursor: pointer; border: 0; border-radius: 7px;
  background: transparent; color: #5a6b64; font: inherit; font-size: 13.5px; font-weight: 600; }
.vswitch__b:hover { color: #1f6f43; }
.vswitch__b.is-on { background: #fff; color: #0a1e24; box-shadow: 0 1px 3px rgba(10,30,36,.14); }
.vpane[hidden] { display: none; }

/* Участки посёлка на Яндекс.Карте — границы из ЕГРН.
   Вид «Спутник» намеренно носит классы генплана (.genplan__bar/__chip/__grid/
   __stage/__panel), чтобы оба вида выглядели одинаково и правились в одном
   месте. Здесь остаётся только то, что специфично для карты. */
.vmap__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Подсказка у карты — сверху по центру: снизу слева и справа Яндекс держит свои
   ссылки, слева зум, справа выбор слоёв. */
.vmap .genplan__hint { left: 50%; right: auto; top: 10px; bottom: auto; transform: translateX(-50%); z-index: 400; }

/* Схема, положенная на карту: картинка и кликабельные участки одним слоем.
   Слой не перехватывает мышь — иначе карту нельзя было бы таскать; кликабельны
   только сами контуры. */
.vover { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; z-index: 500; }
/* max-width:none обязателен: глобальное `img{max-width:100%}` меряет ширину от
   родителя, а у слоя она нулевая (дети позиционированы абсолютно) — картинка
   схлопывалась в несколько пикселей. */
.vover img, .vover svg { position: absolute; left: 0; top: 0; display: block; max-width: none; }
.vover img { opacity: .92; }
.vover__p { pointer-events: auto; cursor: pointer; fill-opacity: .28; stroke-width: 2; stroke-opacity: .95;
  vector-effect: non-scaling-stroke; transition: fill-opacity .15s; }
.vover__p:hover { fill-opacity: .58; }
.vover__p.hide { display: none; }
.vover__p.free { fill: #93c33f; stroke: #eaffc0; }
.vover__p.res  { fill: #e59a2b; stroke: #ffdca8; }
.vover__p.sold { fill: #c4462c; stroke: #ffb9a6; }
.vover__p.na   { fill: #8a97a3; stroke: #d8dee3; }

