/* ============================================================
   КРОНВЕРК — сайт недвижимости Саратова
   Общие стили. Семантические классы, готово к ручной правке.
   Палитра, типографика и компоненты — в одном файле.
   ============================================================ */

/* ---------- Шрифты ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500;1,600&family=Onest:wght@300;400;500;600;700;800&display=swap');

/* Плавный скролл к якорным ссылкам; отступ учитывает высоту sticky-шапки */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Токены дизайна ---------- */
:root {
  /* Цвета */
  --cream:        #F4EFE6;  /* основной фон */
  --cream-soft:   #FBF8F2;  /* фон полей */
  --ink:          #1A1611;  /* основной текст / тёмные блоки */
  --ink-dark:     #141009;  /* топбар, футер */
  --ink-cta:      #211B12;  /* блок CTA */
  --gold:         #B08D57;  /* акцент */
  --gold-light:   #E3C892;  /* акцент на тёмном фоне */
  --green:        #2C6E49;  /* «сдан», успех */
  --white:        #ffffff;

  /* Текст */
  --text:         #1A1611;
  --text-2:       #3a342c;
  --muted:        #6E655A;
  --muted-2:      #8A8273;
  --muted-3:      #A89D8C;

  /* На тёмном фоне */
  --on-dark:      #F4EFE6;
  --on-dark-mut:  #cdbfa6;
  --on-dark-mut2: #a99c86;
  --on-dark-mut3: #897c66;

  /* Границы */
  --line:         #EBE3D5;
  --line-2:       #E4DBC9;
  --line-3:       #EFE7D8;

  /* Радиусы */
  --r-sm: 9px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Тени */
  --shadow-card: 0 34px 56px -34px rgba(0,0,0,.4);
  --shadow-pop:  0 24px 50px -34px rgba(0,0,0,.4);

  /* Раскладка */
  --wrap:   1795px;
  --wrap-narrow: 1280px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Шрифтовые семейства */
  --font: 'Onest', system-ui, -apple-system, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: #fff; }
input, select, button, textarea { font-family: inherit; }
select { appearance: none; -webkit-appearance: none; }
input[type=range] { accent-color: var(--gold); }
h1, h2, h3, p { margin: 0; }

/* ---------- Раскладка ---------- */
.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(64px, 8vw, 108px) 0; }
.section--tight { padding: clamp(28px, 3vw, 40px) 0; }
.section--flush-top { padding-top: clamp(28px, 4vw, 46px); }

/* заголовок секции */
.eyebrow {
  font: italic 600 22px/1 var(--serif);
  color: var(--gold);
}
.eyebrow--light { color: var(--gold-light); }
.section-title {
  font: 700 clamp(30px, 4vw, 46px)/1.06 var(--font);
  letter-spacing: -.02em;
  margin-top: 12px;
}
.section-text {
  font: 400 16px/1.6 var(--font);
  color: var(--muted);
  margin-top: 14px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.section-head__text { max-width: 600px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--r-pill);
  font: 600 15px/1 var(--font);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, gap .2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary { background: var(--ink); color: var(--cream); padding: 16px 26px; }
.btn--primary:hover { background: var(--gold); }
.btn--gold { background: var(--gold-light); color: var(--ink); padding: 16px; }
.btn--gold:hover { background: #fff; }
.btn--outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); padding: 14px 22px;
}
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--soft {
  background: #fff; border: 1px solid var(--line-2);
  color: var(--ink); padding: 12px 18px; border-radius: var(--r-md);
  font-weight: 600; font-size: 14px;
}
.btn--soft:hover { border-color: var(--gold); color: var(--gold); }
.btn--block { width: 100%; }
.btn--lg { padding: 17px; font-size: 16px; border-radius: var(--r-md); }

/* «Подробнее →» текстовая ссылка */
.link-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font: 600 14px/1 var(--font);
  transition: gap .2s, color .2s;
}
.link-more:hover { gap: 13px; color: var(--gold); }

/* ---------- Топбар ---------- */
.topbar {
  background: var(--ink-dark);
  color: var(--on-dark-mut);
  font: 500 13px/1 var(--font);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding-top: 11px;
  padding-bottom: 11px;
}
.topbar__info { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.topbar__item { display: flex; align-items: center; gap: 8px; }
.topbar__item svg { stroke: var(--gold); }
.topbar__socials { display: flex; gap: 16px; align-items: center; }
.topbar__socials-label { color: var(--on-dark-mut3); }
.social-inline { color: var(--on-dark-mut); display: flex; transition: color .2s; }
.social-inline:hover { color: var(--gold-light); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 22, 17, .08);
}
.site-header__inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo__mark {
  height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo__mark img { display: block; height: 100%; width: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font: 800 19px/1 var(--font); letter-spacing: .06em; }
.logo__sub { font: 500 10px/1 var(--font); letter-spacing: .34em; color: var(--gold); margin-top: 4px; }

.main-nav { display: flex; gap: 30px; align-items: center; font: 600 15px/1 var(--font); }
.main-nav__link { color: var(--ink); padding-bottom: 3px; border-bottom: 2px solid transparent; }
.main-nav__link:hover { color: var(--gold); }
.main-nav__link--active { border-bottom-color: var(--gold); }

.site-header__actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font: 700 16px/1 var(--font); color: var(--ink); white-space: nowrap; }
.btn--call { padding: 13px 22px; font-size: 14px; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font: 500 14px/1 var(--font);
  color: var(--muted-2);
  margin-bottom: 18px;
}
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs__sep { color: #C9BCA6; }
.breadcrumbs__current { color: var(--ink); }

/* ---------- Заголовок страницы ---------- */
.page-title { font: 800 clamp(30px, 4vw, 48px)/1.05 var(--font); letter-spacing: -.025em; }
.page-lead { font: 400 17px/1.5 var(--font); color: var(--muted); margin-top: 12px; }

/* ============================================================
   ГЛАВНАЯ — Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  padding: clamp(48px, 7vw, 86px) 0 clamp(40px, 6vw, 72px);
}
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,9,.55) 0%, rgba(20,16,9,.2) 35%, rgba(20,16,9,.82) 100%);
}
.hero__inner { position: relative; width: 100%; }
.hero__lead { max-width: 740px; color: var(--cream); margin-bottom: 38px; }
.hero__eyebrow { font: italic 600 24px/1 var(--serif); color: var(--gold-light); }
.hero__title { font: 800 clamp(38px, 6vw, 68px)/1.04 var(--font); letter-spacing: -.025em; margin-top: 16px; }
.hero__title-accent { font: italic 500 clamp(40px, 6.2vw, 70px)/1 var(--serif); color: var(--gold-light); }
.hero__text { font: 400 18px/1.6 var(--font); color: rgba(244,239,230,.86); max-width: 560px; margin-top: 20px; }

.hero-stats { display: flex; gap: 42px; margin-top: 32px; flex-wrap: wrap; }
.stat__num { font: 800 42px/1 var(--font); color: #fff; }
.stat__label { font: 500 14px/1.3 var(--font); color: rgba(244,239,230,.72); margin-top: 6px; }
.stat-divider { width: 1px; background: rgba(244,239,230,.26); }

/* Поисковая карточка */
.search-card {
  background: #fff;
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 36px 80px -34px rgba(0,0,0,.6);
}
.search-tabs {
  display: flex;
  gap: 7px;
  background: var(--cream);
  border-radius: var(--r-pill);
  padding: 6px;
  width: max-content;
  margin-bottom: 20px;
}
.search-tab {
  padding: 10px 20px;
  font: 600 14px/1 var(--font);
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all .2s;
  background: transparent;
  color: var(--muted);
}
.search-tab--active { background: var(--ink); color: var(--cream); }

.search-fields { display: flex; flex-wrap: wrap; align-items: stretch; }
.search-field {
  flex: 1 1 175px;
  min-width: 155px;
  padding: 10px 26px;
  border-right: 1px solid var(--line-3);
  position: relative;
}
.search-field:last-of-type { border-right: 0; }
.search-field__label {
  font: 600 13px/1 var(--font);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  white-space: nowrap;
}
.search-field__select {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font: 500 18px/1.2 var(--font);
  color: var(--ink);
  cursor: pointer;
  padding-right: 18px;
}
.search-field__caret {
  position: absolute; right: 18px; bottom: 12px;
  pointer-events: none; color: var(--gold); font-size: 15px;
}
.search-field--submit { flex: 1 1 220px; min-width: 200px; padding: 8px; display: flex; align-items: stretch; }
.search-submit {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 11px;
  background: var(--ink); color: var(--cream);
  border-radius: 16px; padding: 18px;
  font: 600 18px/1 var(--font);
  transition: background .2s;
}
.search-submit:hover { background: var(--gold); }

/* ============================================================
   Карточки квартир
   ============================================================ */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.prop-grid--auto { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 28px; }

.prop-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.prop-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.badge {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 13px; border-radius: var(--r-pill);
  font: 600 12px/1 var(--font); color: #fff;
}
.badge--ready { background: var(--green); }
.badge--discount { background: var(--gold); }
.badge--static { position: static; }
.badge--outline { background: var(--cream-soft); border: 1px solid var(--line-2); color: var(--muted); }

.fav-btn {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .18s, transform .12s;
}
.fav-btn:hover { background: #fff; transform: scale(1.06); }
.fav-btn--active { background: var(--gold); }
.fav-btn--active svg { stroke: #fff; fill: #fff; }

/* Крупная кнопка на детальной странице — тот же класс-флаг .fav-btn--active */
.fav-btn-inline.fav-btn--active {
  background: var(--gold); color: #fff; border-color: transparent;
}
.fav-btn-inline.fav-btn--active svg { stroke: #fff; fill: #fff; }
.fav-btn-inline.fav-btn--active .fav-btn-inline__label::after { content: '\A0✓'; }

/* Модалка «Сохранить квартиру» ---------------------------------- */
.fav-modal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.fav-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 16, 9, .62);
  backdrop-filter: blur(3px);
  animation: favFade .18s ease-out;
}
.fav-modal__box {
  position: relative; z-index: 1;
  background: #fff; border-radius: 20px;
  padding: 32px 32px 26px; max-width: 440px; width: 100%;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.35);
  animation: favPop .22s ease-out;
}
.fav-modal__x {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border: 0; background: transparent;
  color: var(--muted-3); font-size: 22px; line-height: 1; cursor: pointer;
  border-radius: 50%; transition: background .15s, color .15s;
}
.fav-modal__x:hover { background: var(--cream); color: var(--ink); }
.fav-modal__title {
  font: 700 22px/1.2 var(--font); color: var(--ink); margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.fav-modal__text {
  font: 400 15px/1.55 var(--font); color: var(--muted-2); margin: 0 0 22px;
}
.fav-modal__actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.fav-btn-lg {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 12px;
  font: 600 15px/1.2 var(--font); text-align: left;
  text-decoration: none; cursor: pointer; border: 1px solid var(--line);
  background: #fff; color: var(--ink); width: 100%;
  transition: background .15s, border-color .15s, color .15s;
}
.fav-btn-lg:hover { background: var(--cream); border-color: var(--gold); }
.fav-btn-lg--tg { background: #229ED9; color: #fff; border-color: #229ED9; }
.fav-btn-lg--tg:hover { background: #1c8bc0; border-color: #1c8bc0; color: #fff; }
.fav-btn-lg__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.fav-btn-lg__note { font: 400 12px/1.35 var(--font); opacity: .75; }
.fav-btn-lg--tg .fav-btn-lg__note { color: rgba(255,255,255,.85); }
.fav-modal__hint {
  font: 400 13px/1.5 var(--font); color: var(--muted-3); margin: 0; text-align: center;
}
.fav-modal__hint kbd {
  font: 500 12px/1 ui-monospace, Menlo, Consolas, monospace;
  background: var(--cream); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 4px; color: var(--ink);
}
@keyframes favFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes favPop  { from { opacity: 0; transform: translateY(8px) scale(.98) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) {
  .fav-modal__backdrop, .fav-modal__box { animation: none; }
}
@media (max-width: 480px) {
  .fav-modal__box { padding: 26px 22px 20px; border-radius: 18px; }
  .fav-modal__title { font-size: 20px; }
}
.prop-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prop-card__jk {
  font: 600 12px/1 var(--font);
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}
.prop-card__pricerow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.prop-card__price { font: 700 24px/1 var(--font); color: var(--ink); }
.prop-card__old { font: 500 15px/1 var(--font); color: var(--muted-3); text-decoration: line-through; }
.prop-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font: 500 14px/1 var(--font); }
.prop-meta__item { display: flex; align-items: center; gap: 7px; }
.prop-card__addr {
  display: flex; align-items: flex-start; gap: 7px;
  color: var(--muted-2); font: 400 14px/1.4 var(--font);
}
.prop-card__addr svg { flex-shrink: 0; margin-top: 2px; }
.prop-card .link-more { margin-top: auto; }

.center-cta { display: flex; justify-content: center; margin-top: 42px; }

/* ============================================================
   Способы покупки (тёмная секция)
   ============================================================ */
.buy { background: var(--ink); color: var(--cream); }
.buy__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.buy__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.method {
  border: 1px solid rgba(244,239,230,.14);
  border-radius: 20px;
  padding: 34px 30px;
  display: flex; flex-direction: column;
  transition: background .25s;
}
.method:hover { background: rgba(244,239,230,.04); }
.method__num { font: italic 600 40px/1 var(--serif); color: var(--gold-light); }
.method__title { font: 700 24px/1.1 var(--font); margin-top: 18px; }
.method__text { font: 400 15px/1.6 var(--font); color: rgba(244,239,230,.66); margin: 12px 0 22px; }
.method__link { margin-top: auto; color: var(--gold-light); font: 600 15px/1 var(--font); display: inline-flex; gap: 8px; align-items: center; }
.buy__note {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center;
  margin-top: 34px; color: rgba(244,239,230,.7); font: 500 15px/1.4 var(--font);
}
.buy__note a { color: var(--gold-light); font-weight: 600; }

.banks {
  margin-top: 48px; padding-top: 40px;
  border-top: 1px solid rgba(244,239,230,.12);
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.banks__title {
  font: 500 13px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(244,239,230,.55);
}
.banks__list {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 28px;
}
.bank-tile {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; min-width: 130px; padding: 10px 18px;
  background: rgba(244,239,230,.06);
  border: 1px solid rgba(244,239,230,.1);
  border-radius: 14px;
  transition: background .2s, border-color .2s;
}
.bank-tile:hover { background: rgba(244,239,230,.09); border-color: rgba(244,239,230,.22); }
.bank-tile img {
  max-height: 32px; max-width: 130px; width: auto; height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85; transition: opacity .2s;
}
.bank-tile:hover img { opacity: 1; }
@media (max-width: 640px) {
  .banks__list { gap: 10px 18px; }
  .bank-tile { height: 48px; min-width: 108px; padding: 8px 14px; }
  .bank-tile img { max-height: 26px; max-width: 108px; }
}

/* Кнопка «Наверх» ----------------------------------------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--gold-light);
  border: 1px solid rgba(176,141,87,.45);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s, transform .2s, background .2s, border-color .2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: #1a140a; border-color: var(--gold-light); }
@media (max-width: 640px) {
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* ============================================================
   Новости / блог
   ============================================================ */
.news-nav { display: flex; gap: 12px; }
.round-btn {
  width: 54px; height: 54px; border-radius: var(--r-pill);
  border: 1px solid rgba(26,22,17,.16); background: transparent; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .2s;
}
.round-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.news-card { display: flex; flex-direction: column; }
.news-card__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 11; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.date-badge {
  position: absolute; top: 16px; left: 16px;
  background: #fff; border-radius: var(--r-md); padding: 13px 17px;
  text-align: center; line-height: 1;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.3);
}
.date-badge__day { font: 800 24px/1 var(--font); color: var(--ink); }
.date-badge__month { font: 500 13px/1 var(--font); color: var(--muted-2); margin-top: 5px; }
.news-card__meta {
  display: flex; gap: 22px; align-items: center; margin-top: 20px;
  color: var(--muted-2); font: 500 14px/1 var(--font);
}
.news-card__meta-item { display: flex; align-items: center; gap: 7px; }
.news-card__meta-item--cat { color: var(--gold); font-weight: 600; }
.news-card__title { font: 700 22px/1.32 var(--font); letter-spacing: -.01em; margin: 14px 0 20px; }
.news-card__title a { color: var(--ink); transition: color .2s; }
.news-card__title a:hover { color: var(--gold); }
.news-card__rule { margin-top: auto; height: 1px; background: #E0D6C5; }

/* ============================================================
   CTA-блок с формой
   ============================================================ */
.cta__box { background: var(--ink-cta); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-wrap: wrap; }
.cta__media { flex: 1 1 360px; min-height: 340px; background-size: cover; background-position: center; }
.cta__body { flex: 1 1 440px; padding: clamp(36px, 5vw, 60px); color: var(--cream); }
.cta__eyebrow { font: italic 600 22px/1 var(--serif); color: var(--gold-light); }
.cta__title { font: 700 clamp(28px, 3.4vw, 42px)/1.08 var(--font); letter-spacing: -.02em; margin-top: 12px; }
.cta__text { font: 400 16px/1.6 var(--font); color: rgba(244,239,230,.72); margin: 14px 0 26px; }

.form { display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
.field {
  background: rgba(244,239,230,.06);
  border: 1px solid rgba(244,239,230,.18);
  color: var(--cream);
  border-radius: 12px; padding: 15px 18px;
  font: 500 15px/1 var(--font); outline: none;
}
.field::placeholder { color: rgba(244,239,230,.5); }
.field--error { border-color: #E33636; box-shadow: 0 0 0 3px rgba(227,54,54,.15); }
.form-note { font: 400 12px/1.5 var(--font); color: rgba(244,239,230,.45); }

.form-success {
  display: flex; flex-direction: column; justify-content: center;
  height: 100%; min-height: 240px;
}
.form-success__icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.form-success__title { font: 700 30px/1.1 var(--font); }
.form-success__text { font: 400 16px/1.6 var(--font); color: rgba(244,239,230,.72); margin-top: 14px; }

/* Утилита для показа/скрытия состояний */
.is-hidden { display: none !important; }

/* ============================================================
   Футер
   ============================================================ */
.site-footer { background: var(--ink-dark); color: var(--on-dark-mut2); padding: clamp(54px, 7vw, 84px) 0 32px; }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(244,239,230,.1);
}
.footer__brand { max-width: 300px; }
.footer__logo { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.footer__logo-mark {
  height: 42px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer__logo-mark img { display: block; height: 100%; width: auto; }
.footer__logo-name { font: 800 18px/1 var(--font); letter-spacing: .06em; color: var(--cream); }
.footer__about { font: 400 14px/1.6 var(--font); color: var(--on-dark-mut3); margin-bottom: 18px; }
.footer__socials { display: flex; gap: 10px; }
.footer-social {
  width: 38px; height: 38px;
  border: 1px solid rgba(244,239,230,.18); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-dark-mut2); transition: all .2s;
}
.footer-social:hover { border-color: var(--gold); color: var(--gold-light); }
.footer__col-title {
  font: 700 14px/1 var(--font); color: var(--cream);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px;
}
.footer__links { display: flex; flex-direction: column; gap: 12px; font: 400 15px/1 var(--font); }
.footer__links a { color: var(--on-dark-mut2); }
.footer__links a:hover { color: var(--gold-light); }
.footer__contacts { display: flex; flex-direction: column; gap: 12px; font: 400 15px/1.5 var(--font); }
.footer__phone { color: var(--cream); font: 700 20px/1 var(--font); }
.footer__hours { color: var(--on-dark-mut3); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  padding-top: 26px; font: 400 13px/1.5 var(--font); color: #776a55;
}
.footer__bottom a:hover { color: var(--gold-light); }

/* ============================================================
   Каталог
   ============================================================ */
.catalog { display: flex; gap: 36px; align-items: flex-start; flex-wrap: wrap; }
.filter {
  flex: 1 1 300px; max-width: 340px;
  position: sticky; top: 96px;
  max-height: calc(100vh - 120px); overflow-y: auto; overflow-x: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
}
.filter__group { margin-bottom: 16px; }
.filter__rule { margin-bottom: 16px; }
.filter .field--light { padding: 11px 13px; font-size: 14px; }
.filter__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.filter__title { font: 700 18px/1 var(--font); }
.filter__reset { background: transparent; border: 0; color: var(--gold); font: 600 14px/1 var(--font); cursor: pointer; padding: 0; }
.filter__group { margin-bottom: 22px; }
.filter__label {
  font: 600 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 11px;
}
.filter__rule { height: 1px; background: var(--line-3); margin-bottom: 22px; }
.filter__row-between { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.filter__value { font: 600 14px/1 var(--font); color: var(--ink); }
.range { width: 100%; cursor: pointer; }
.range-legend { display: flex; justify-content: space-between; font: 500 12px/1 var(--font); color: var(--muted-3); margin-top: 8px; }

.select-wrap { position: relative; }
.select {
  width: 100%; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--cream-soft); outline: none;
  font: 500 15px/1 var(--font); color: var(--ink); cursor: pointer; padding: 13px 16px;
}
.select-wrap .select-caret { position: absolute; right: 15px; top: 14px; pointer-events: none; color: var(--gold); }

/* чипы */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px; border-radius: var(--r-pill);
  font: 600 14px/1 var(--font); cursor: pointer; transition: all .2s;
  border: 1px solid rgba(26,22,17,.16); background: transparent; color: var(--text-2);
}
.chip--active { border-color: var(--ink); background: var(--ink); color: var(--cream); }

/* сегмент-переключатель */
.segment {
  display: flex; gap: 6px; background: var(--cream);
  border-radius: var(--r-pill); padding: 5px; margin-bottom: 24px;
}
.segment__btn {
  flex: 1; text-align: center; padding: 10px 8px;
  font: 600 14px/1 var(--font); border: 0; border-radius: var(--r-pill);
  cursor: pointer; transition: all .2s; background: transparent; color: var(--muted);
}
.segment__btn--active { background: var(--ink); color: var(--cream); }

/* чекбоксы */
.check-row { display: flex; align-items: center; gap: 11px; cursor: pointer; padding: 8px 0; }
.check-box {
  width: 20px; height: 20px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all .15s; border: 1.5px solid #D6CCBB; background: transparent;
}
.check-row--active .check-box { border-color: var(--gold); background: var(--gold); }
.check-box svg { display: none; }
.check-row--active .check-box svg { display: block; }
.check-label { font: 500 15px/1.2 var(--font); color: var(--text-2); }
.check-count { margin-left: auto; font: 500 13px/1 var(--font); color: #B6AB97; }

/* результаты */
.results { flex: 1 1 600px; min-width: 0; }
.results__bar {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  justify-content: space-between; margin-bottom: 22px;
}
.results__count { font: 500 16px/1.4 var(--font); color: var(--muted); }
.results__count strong { color: var(--ink); font-weight: 700; }
.sort-wrap { position: relative; }
.sort-select {
  border: 1px solid var(--line-2); border-radius: 12px; background: #fff; outline: none;
  font: 500 15px/1 var(--font); color: var(--ink); cursor: pointer; padding: 12px 40px 12px 16px;
}
.sort-wrap .select-caret { position: absolute; right: 15px; top: 13px; pointer-events: none; color: var(--gold); }

.active-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.active-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  padding: 9px 14px; font: 500 14px/1 var(--font); color: var(--ink);
  cursor: pointer; transition: all .2s;
}
.active-chip:hover { border-color: var(--gold); color: var(--gold); }

/* пагинация */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.page-btn {
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  cursor: pointer; font: 600 15px/1 var(--font);
  display: flex; align-items: center; justify-content: center;
}
.page-btn--active { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.page-btn--nav { color: var(--muted-2); }

/* пусто */
.empty {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 70px 30px; text-align: center;
}
.empty__icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--cream);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 22px;
}
.empty__title { font: 700 24px/1.2 var(--font); }
.empty__text { font: 400 16px/1.6 var(--font); color: var(--muted); margin: 12px auto 24px; max-width: 380px; }

/* ============================================================
   Страница квартиры
   ============================================================ */
.detail-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; }
.detail-badges { display: flex; gap: 10px; margin-bottom: 14px; }
.detail-title { font: 800 clamp(28px, 3.6vw, 44px)/1.06 var(--font); letter-spacing: -.025em; }
.detail-sub { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 14px; font: 500 16px/1 var(--font); color: var(--muted); }
.detail-sub__jk { display: flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; }
.detail-sub__addr { display: flex; align-items: center; gap: 7px; }
.detail-actions { display: flex; gap: 10px; }

.detail-layout { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.detail-main { flex: 1 1 620px; min-width: 0; display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }

/* галерея */
.gallery { display: flex; gap: 14px; height: clamp(340px, 40vw, 540px); }
.gallery__thumbs { display: flex; flex-direction: column; gap: 12px; width: 104px; flex-shrink: 0; }
.gallery__thumb {
  flex: 1; min-height: 0; border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  transition: all .2s; border: 3px solid transparent; opacity: .82;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb--active { border-color: var(--gold); opacity: 1; }
.gallery__main {
  flex: 1; border-radius: 24px;
  background-color: #E9E1D2; background-size: cover; background-position: center;
}

/* быстрые характеристики */
.quick-specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line-2); border: 1px solid var(--line-2);
  border-radius: 20px; overflow: hidden;
}

/* Блок «О жилом комплексе» на странице квартиры */
.about-complex {
  background: #fff; border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden;
  display: flex; flex-wrap: wrap;
}
.about-complex__photo {
  flex: 1 1 220px; min-height: 190px;
  background-size: cover; background-position: center;
}
.about-complex__body {
  flex: 2 1 380px; padding: clamp(18px, 2.2vw, 24px);
  display: flex; flex-direction: column;
}
.about-complex__eyebrow {
  font: 600 11px/1 var(--font); letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
.about-complex__name { font: 700 22px/1.1 var(--font); color: var(--ink); margin: 6px 0 0; }
.about-complex__lead { font: 400 14px/1.5 var(--font); color: var(--muted); margin: 10px 0 16px; }
.about-complex__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 12px 18px; margin-bottom: 16px;
}
.about-complex__key { font: 500 12px/1 var(--font); color: var(--muted-2); margin-bottom: 5px; }
.about-complex__val { font: 700 14px/1.2 var(--font); color: var(--ink); }
.quick-spec { background: #fff; padding: 20px 22px; }
.quick-spec__label { font: 500 13px/1 var(--font); color: var(--muted-2); margin-bottom: 9px; }
.quick-spec__value { font: 700 19px/1.1 var(--font); color: var(--ink); }

.block-title { font: 700 clamp(24px, 2.6vw, 32px)/1.1 var(--font); letter-spacing: -.02em; margin-bottom: 18px; }
.prose p { font: 400 17px/1.7 var(--font); color: #5A5346; margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }

.spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 48px; }
.spec-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line-2);
}
.spec-item__label { font: 400 16px/1.3 var(--font); color: var(--muted-2); }
.spec-item__value { font: 600 16px/1.3 var(--font); color: var(--ink); text-align: right; }

.amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.amenity { display: flex; align-items: center; gap: 12px; font: 500 16px/1.3 var(--font); color: var(--text-2); }
.amenity__icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.plan-card { padding: clamp(20px, 3vw, 40px); }
.plan-card img { width: 100%; max-width: 760px; display: block; margin: 0 auto; }
.plan-legend {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: center;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-3);
  font: 500 15px/1 var(--font); color: var(--muted);
}
.plan-legend strong { color: var(--ink); }

.map-panel { overflow: hidden; }
.map-panel__media { position: relative; }
.map-panel__media img { width: 100%; display: block; aspect-ratio: 24 / 10; object-fit: cover; }
.map-panel__link {
  position: absolute; right: 18px; bottom: 18px;
  background: #fff; border-radius: 12px; padding: 12px 18px;
  font: 600 14px/1 var(--font); color: var(--ink);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.4);
}
.map-panel__link:hover { color: var(--gold); }
.map-panel__body { padding: 24px clamp(20px, 3vw, 32px); }
.map-panel__addr { display: flex; align-items: center; gap: 9px; font: 500 16px/1.4 var(--font); color: var(--ink); margin-bottom: 18px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { background: var(--cream); border-radius: var(--r-pill); padding: 9px 15px; font: 500 14px/1 var(--font); color: #5A5346; }

/* правая колонка (sticky) */
.detail-side { flex: 1 1 330px; max-width: 390px; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.buy-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.buy-card__pricerow { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.buy-card__price { font: 800 32px/1 var(--font); color: var(--ink); }
.buy-card__old { font: 500 17px/1 var(--font); color: var(--muted-3); text-decoration: line-through; }
.buy-card__perm { font: 500 14px/1.4 var(--font); color: var(--muted-2); margin-top: 8px; }

.calc { background: var(--cream); border-radius: 16px; padding: 18px; margin: 22px 0; }
.calc__label { font: 600 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; font: 500 14px/1 var(--font); color: var(--muted); margin-bottom: 8px; }
.calc__row strong { font-weight: 700; color: var(--ink); }
.calc__slider { width: 100%; cursor: pointer; margin-bottom: 16px; }
.calc__result {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2);
}
.calc__result-label { font: 500 14px/1.3 var(--font); color: var(--muted); }
.calc__result-label small { font-size: 12px; color: var(--muted-3); }
.calc__result-value { font: 800 24px/1 var(--font); color: var(--ink); }

.buy-card__hint { font: 400 13px/1.5 var(--font); color: var(--muted-3); text-align: center; margin-top: 14px; }

.manager-card { background: var(--ink); color: var(--cream); border-radius: var(--r-lg); padding: 26px; }
.manager-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font: 700 20px/1 var(--font); color: var(--ink); flex-shrink: 0;
}
.manager-card__name { font: 700 17px/1.2 var(--font); }
.manager-card__role { font: 500 13px/1.2 var(--font); color: var(--on-dark-mut); margin-top: 4px; }
.manager-card__text { font: 400 14px/1.6 var(--font); color: rgba(244,239,230,.66); margin-bottom: 18px; }
.contact-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 12px; padding: 14px; font: 700 16px/1 var(--font);
}
.contact-btn--gold { background: var(--gold-light); color: var(--ink); margin-bottom: 10px; }
.contact-btn--gold:hover { background: #fff; }
.contact-btn--tg {
  background: transparent; color: var(--gold-light);
  border: 1px solid rgba(227,200,146,.4); font: 600 15px/1 var(--font);
}
.contact-btn--tg:hover { background: rgba(227,200,146,.1); }

/* модалка */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,16,9,.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--cream); border-radius: 24px; max-width: 460px; width: 100%;
  padding: clamp(28px, 4vw, 40px); position: relative;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
}
.modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: #E7DECF; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.modal__close:hover { background: var(--ink); color: var(--cream); }
.modal__eyebrow { font: italic 600 20px/1 var(--serif); color: var(--gold); }
.modal__title { font: 700 26px/1.15 var(--font); letter-spacing: -.02em; margin: 10px 0 6px; }
.modal__sub { font: 400 15px/1.55 var(--font); color: var(--muted); margin-bottom: 22px; }
.modal__product {
  background: #fff; border: 1px solid #E7DECF; border-radius: var(--r-md);
  padding: 13px 15px; display: flex; align-items: center; gap: 13px; margin-bottom: 20px;
}
.modal__product-thumb {
  width: 48px; height: 48px; border-radius: 11px;
  background-size: cover; background-position: center; flex-shrink: 0;
}
.modal__product-title { font: 700 14px/1.3 var(--font); color: var(--ink); }
.modal__product-price { font: 700 15px/1.2 var(--font); color: var(--gold); margin-top: 5px; }
.form--light .field {
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
}
.form--light .field::placeholder { color: var(--muted-3); }
.form--light .form-note { color: var(--muted-3); text-align: center; }

/* ============================================================
   Блог (список) и статья
   ============================================================ */
.blog-layout { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.blog-main { flex: 1 1 600px; min-width: 0; }
.blog-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  justify-content: space-between; margin-bottom: 26px;
}
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 30px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.post-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
  display: flex; gap: 18px; align-items: center; color: var(--muted-2);
  font: 500 13px/1 var(--font); margin-bottom: 13px;
}
.post-card__meta-item { display: flex; align-items: center; gap: 6px; }
.post-card__meta-item--cat { color: var(--gold); font-weight: 600; }
.post-card__title { font: 700 20px/1.32 var(--font); letter-spacing: -.01em; margin-bottom: 12px; }
.post-card__title a { color: var(--ink); transition: color .2s; }
.post-card__title a:hover { color: var(--gold); }
.post-card__excerpt { font: 400 15px/1.6 var(--font); color: var(--muted); margin-bottom: 18px; }
.post-card .link-more { margin-top: auto; }

.sidebar { flex: 1 1 300px; max-width: 360px; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.widget--dark { background: var(--ink); color: var(--cream); padding: 26px; }
.widget__title { font: 700 16px/1 var(--font); margin-bottom: 14px; }
.search-input { position: relative; }
.search-input input {
  width: 100%; border: 1px solid var(--line-2); background: var(--cream-soft);
  border-radius: 12px; padding: 13px 44px 13px 16px;
  font: 500 15px/1 var(--font); outline: none; color: var(--ink);
}
.search-input__icon { position: absolute; right: 14px; top: 12px; color: var(--gold); }

.cat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; cursor: pointer; font: 500 15px/1 var(--font);
  border-bottom: 1px solid var(--line-3); color: var(--text-2);
}
.cat-row:last-child { border-bottom: 0; }
.cat-row__count { font-weight: 600; color: var(--gold); }
.cat-row--active { color: var(--gold); font-weight: 700; }

.widget--dark .widget__eyebrow { font: italic 600 20px/1 var(--serif); color: var(--gold-light); }
.widget--dark .widget__heading { font: 700 20px/1.2 var(--font); margin: 10px 0 8px; }
.widget--dark .widget__text { font: 400 14px/1.55 var(--font); color: rgba(244,239,230,.66); margin-bottom: 18px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-link {
  background: var(--cream); border-radius: var(--r-pill); padding: 8px 14px;
  font: 500 14px/1 var(--font); color: #5A5346; transition: all .2s;
}
.tag-link:hover { background: var(--ink); color: var(--cream); }

/* статья */
.article { flex: 1 1 600px; min-width: 0; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  margin-bottom: 18px; font: 500 14px/1 var(--font); color: var(--muted-2);
}
.article-meta__cat { background: var(--ink); color: var(--cream); border-radius: var(--r-pill); padding: 7px 15px; font: 600 13px/1 var(--font); }
.article-meta__item { display: flex; align-items: center; gap: 7px; }
.article-meta__item svg { stroke: var(--gold); }
.article-title { font: 800 clamp(28px, 3.6vw, 46px)/1.1 var(--font); letter-spacing: -.025em; margin-bottom: 26px; }
.article-cover { border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 30px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-lead { font: 500 20px/1.65 var(--font); color: var(--text-2); margin-bottom: 22px; }
.article p { font: 400 17px/1.75 var(--font); color: #5A5346; margin-bottom: 20px; }
.article h2 { font: 700 clamp(23px, 2.6vw, 30px)/1.15 var(--font); letter-spacing: -.02em; margin: 38px 0 16px; }
.article-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0; }
.article-figures figure, .article-figure { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; margin: 0; }
.article-figures img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pullquote { border-left: 3px solid var(--gold); padding: 6px 0 6px 26px; margin: 32px 0; }
.pullquote p { font: italic 500 24px/1.5 var(--serif); color: var(--ink); margin: 0; }
.check-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.check-list__item { display: flex; align-items: center; gap: 13px; font: 500 17px/1.4 var(--font); color: var(--text-2); }
.check-list__box {
  width: 24px; height: 24px; border-radius: 7px; background: var(--cream);
  border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 10px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step__num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font: 700 15px/1 var(--font); flex-shrink: 0;
}
.step p { font: 400 17px/1.6 var(--font); color: #5A5346; margin: 4px 0 0; }

.article-foot {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  margin: 38px 0; padding: 24px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.article-tags { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.article-tags__label { font: 600 14px/1 var(--font); color: var(--muted-2); margin-right: 4px; }
.pill-tag { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 8px 14px; font: 500 14px/1 var(--font); }
.share { display: flex; gap: 10px; align-items: center; }
.share__label { font: 600 14px/1 var(--font); color: var(--muted-2); }
.share-btn {
  width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--ink); transition: all .2s;
}
.share-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.author {
  display: flex; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-bottom: 48px;
}
.author__avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center; font: 700 22px/1 var(--font); color: var(--ink); flex-shrink: 0;
}
.author__name { font: 700 18px/1.2 var(--font); }
.author__role { font: 500 14px/1.3 var(--font); color: var(--gold); margin: 5px 0 8px; }
.author__bio { font: 400 15px/1.55 var(--font); color: var(--muted); }

.comments-title { font: 700 clamp(22px, 2.4vw, 28px)/1.15 var(--font); letter-spacing: -.02em; margin-bottom: 24px; }
.comments { display: flex; flex-direction: column; gap: 22px; margin-bottom: 36px; }
.comment { display: flex; gap: 16px; }
.comment__avatar {
  width: 48px; height: 48px; border-radius: 50%; background: #E0D6C2;
  display: flex; align-items: center; justify-content: center; font: 700 16px/1 var(--font); color: var(--ink); flex-shrink: 0;
}
.comment__body { flex: 1; }
.comment__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.comment__name { font: 700 16px/1 var(--font); }
.comment__date { font: 500 13px/1 var(--font); color: var(--muted-3); }
.comment__text { font: 400 15px/1.6 var(--font); color: #5A5346; }

.comment-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px); }
.comment-form__title { font: 700 22px/1.15 var(--font); margin-bottom: 6px; }
.comment-form__sub { font: 400 15px/1.5 var(--font); color: var(--muted); margin-bottom: 22px; }
.field--light {
  border: 1px solid var(--line-2); background: var(--cream-soft); color: var(--ink);
  border-radius: 12px; padding: 14px 16px; font: 500 15px/1 var(--font); outline: none;
}
.field--light::placeholder { color: var(--muted-3); }
/* Убираем спиннеры type="number" в сайдбаре фильтров — некрасиво и не нужно */
.filter input[type="number"]::-webkit-outer-spin-button,
.filter input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.filter input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
/* Фикс overflow: без box-sizing padding вылазит за grid-cell */
.filter input, .filter select { box-sizing: border-box; width: 100%; min-width: 0; }
textarea.field--light { line-height: 1.5; resize: vertical; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row .field--light { flex: 1 1 180px; }

.recent-post { display: flex; gap: 13px; align-items: center; }
.recent-post:hover { opacity: .8; }
.recent-post__thumb { width: 72px; height: 60px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.recent-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-post__title { font: 600 14px/1.35 var(--font); color: var(--ink); }
.recent-post__date { font: 500 12px/1 var(--font); color: var(--muted-3); margin-top: 6px; }
.recent-list { display: flex; flex-direction: column; gap: 16px; }

/* «Читайте также» */
.readmore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.readmore-card { display: flex; flex-direction: column; }
.readmore-card__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 11; }
.readmore-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.readmore-card__meta { display: flex; gap: 18px; align-items: center; margin-top: 18px; color: var(--muted-2); font: 500 14px/1 var(--font); }
.readmore-card__meta-cat { color: var(--gold); font-weight: 600; }
.readmore-card__title { font: 700 21px/1.32 var(--font); letter-spacing: -.01em; margin-top: 12px; }
.readmore-card__title a { color: var(--ink); transition: color .2s; }
.readmore-card__title a:hover { color: var(--gold); }

/* ============================================================
   Контакты
   ============================================================ */
.about { display: flex; gap: clamp(32px, 5vw, 72px); align-items: center; flex-wrap: wrap; }
.about__text { flex: 1 1 440px; }
.about__text p { font: 400 17px/1.7 var(--font); color: #5A5346; margin: 20px 0 16px; }
.about__text p + p { margin: 0 0 30px; }
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
}
.stat-cell { background: var(--cream-soft); padding: 22px; }
.stat-cell__num { font: 800 34px/1 var(--font); color: var(--ink); }
.stat-cell__label { font: 500 14px/1.3 var(--font); color: var(--muted-2); margin-top: 7px; }
.about__media { flex: 1 1 440px; position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; min-height: 320px; }
.about__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 24px 20px;
  background: linear-gradient(0deg, rgba(20,16,9,.78), transparent); color: var(--cream);
}
.about__caption-eyebrow { font: 600 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.about__caption-title { font: 700 20px/1.2 var(--font); margin-top: 7px; }

.contact-cols { display: flex; gap: 28px; align-items: stretch; flex-wrap: wrap; }
.manager-tall {
  flex: 1 1 300px; max-width: 380px; background: var(--ink); color: var(--cream);
  border-radius: 24px; overflow: hidden; display: flex; flex-direction: column;
}
.manager-tall__photo {
  position: relative; aspect-ratio: 3 / 4;
  background-size: cover; background-position: center 12%;
}
.manager-tall__overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px;
  background: linear-gradient(0deg, rgba(20,16,9,.92), rgba(20,16,9,.4) 60%, transparent);
}
.manager-tall__tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(227,200,146,.2); color: var(--gold-light);
  border-radius: var(--r-pill); padding: 6px 12px;
  font: 600 11px/1 var(--font); letter-spacing: .04em; margin-bottom: 12px;
}
.manager-tall__name { font: 700 26px/1.12 var(--font); }
.manager-tall__role { font: 500 14px/1.35 var(--font); color: var(--on-dark-mut); margin-top: 6px; }
.manager-tall__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.manager-tall__quote { font: italic 500 17px/1.5 var(--serif); color: var(--gold-light); margin-bottom: 4px; }

.contact-details { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; display: flex; gap: 16px; align-items: flex-start;
}
.contact-item__icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.contact-item__label { font: 500 13px/1 var(--font); color: var(--muted-2); margin-bottom: 7px; }
.contact-item__value { font: 700 19px/1.2 var(--font); color: var(--ink); }
.contact-item__value--sm { font-size: 18px; }
.contact-item__value--addr { font-size: 17px; line-height: 1.3; }
.contact-item__note { font: 400 13px/1.4 var(--font); color: var(--muted-3); margin-top: 5px; }
.socials-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; padding-top: 4px; }
.socials-row__label { font: 600 14px/1 var(--font); color: var(--muted); margin-right: 2px; }
.social-square {
  width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: var(--ink); transition: all .2s;
}
.social-square:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.contact-form {
  flex: 1 1 320px; max-width: 420px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(26px, 3vw, 36px); align-self: flex-start;
}
.contact-form__title { font: 700 24px/1.15 var(--font); letter-spacing: -.02em; margin-bottom: 8px; }
.contact-form__sub { font: 400 15px/1.55 var(--font); color: var(--muted); margin-bottom: 22px; }

/* карта офиса */
.map-block { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); }
.map-block img { width: 100%; display: block; aspect-ratio: 24 / 9; object-fit: cover; }
.map-card {
  position: absolute; top: 24px; left: 24px; background: #fff; border-radius: 18px;
  padding: 24px; max-width: 330px; box-shadow: 0 24px 50px -28px rgba(0,0,0,.5);
}
.map-card__eyebrow { font: 600 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.map-card__addr { font: 700 19px/1.35 var(--font); color: var(--ink); }
.map-card__hours { font: 500 14px/1.5 var(--font); color: var(--muted-2); margin: 12px 0 18px; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1080px) {
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
}
@media (max-width: 720px) {
  .prop-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .article-figures { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .filter, .detail-side, .sidebar { position: static; max-width: none; }
  .search-field { border-right: 0; }
  .header-phone { display: none; }
  .topbar__socials-label { display: none; }
}
