/* ============================================================
   ЗАЗЕМЛИСЬ — визуальная система
   Направление: «атлас землевладения».
   Графит, бумага, Cormorant, латунь.
   ============================================================ */

/* ---------- 1. Токены ---------- */
:root {
  --ink:      #0D0F0D;
  --ink-2:    #141714;
  --ink-3:    #1C201C;
  --ink-4:    #2A2F2A;
  --paper:    #F4F2EC;
  --paper-2:  #E9E6DD;
  --bone:     #EFEDE5;
  --muted:    #8C9088;
  --muted-2:  #6A6F66;
  --muted-3:  #4B504A;

  --brass:    #A8855A;
  --brass-l:  #C9A97C;

  --line-d:   rgba(239, 237, 229, .16);
  --line-d2:  rgba(239, 237, 229, .28);
  --line-l:   rgba(13, 15, 13, .14);
  --line-l2:  rgba(13, 15, 13, .26);

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:  'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;

  --fs-display: clamp(48px, 6.4vw, 96px);
  --fs-h1:      clamp(42px, 5.4vw, 88px);
  --fs-h2:      clamp(32px, 3.4vw, 52px);
  --fs-h3:      clamp(21px, 1.8vw, 27px);
  --fs-lead:    17px;
  --fs-body:    15px;
  --fs-sm:      13px;
  --fs-xs:      11.5px;
  --fs-label:   10.5px;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --pad: clamp(20px, 5vw, 72px);
  --max: 1440px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brass); color: var(--ink); }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

.serif { font-family: var(--serif); font-weight: 300; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.label {
  font-size: var(--fs-label);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}
.label--brass { color: var(--brass); }
.label--light { color: rgba(239, 237, 229, .5); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--muted-2);
  max-width: 46ch;
}

/* ---------- 3. Шапка ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  transition: background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 132px;
  background: linear-gradient(180deg, rgba(13, 15, 13, .82) 0%, rgba(13, 15, 13, .5) 55%, rgba(13, 15, 13, 0) 100%);
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.hdr.is-scrolled::before, .hdr--solid::before { opacity: 0; }
.hdr .wrap { position: relative; display: flex; align-items: center; gap: var(--s6); }

.hdr--solid,
.hdr.is-scrolled {
  background: rgba(13, 15, 13, .94);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-d);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--bone);
  font-size: 12px;
  letter-spacing: .30em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 0;
}
.logo em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--brass);
}

.nav {
  display: flex;
  gap: var(--s5);
  margin-left: auto;
}
.nav a {
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(239, 237, 229, .62);
  padding: 8px 0;
  position: relative;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--bone); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--bone); }

.hdr-right { display: flex; align-items: center; gap: var(--s5); margin-left: var(--s6); }
.hdr-tel {
  padding: 8px 0;
  font-size: var(--fs-sm);
  color: var(--bone);
  letter-spacing: .01em;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 26px; height: 16px;
  position: relative;
}
/* увеличиваем зону нажатия, не меняя вид */
.burger::after {
  content: '';
  position: absolute;
  inset: -14px -12px;
}
.burger span {
  position: absolute; left: 0; right: 0; height: 1px;
  background: var(--bone);
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 7px; }
.burger span:nth-child(3) { top: 14px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mmenu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--ink);
  padding: 100px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
body.menu-open .mmenu { opacity: 1; pointer-events: auto; }
.mmenu a {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--bone);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line-d);
}
.mmenu .m-tel { margin-top: var(--s6); font-family: var(--sans); font-size: 16px; color: var(--brass); }

/* ---------- 4. Кнопки и ссылки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 32px;
  font-size: var(--fs-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn--solid { background: var(--bone); color: var(--ink); }
.btn--solid:hover { background: var(--brass); color: var(--ink); }
.btn--ghost { border-color: var(--line-d2); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); background: rgba(239, 237, 229, .06); }
.btn--dark { background: var(--ink); color: var(--bone); }
.btn--dark:hover { background: var(--ink-4); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-d2);
  transition: gap .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.arrow-link:hover { gap: 20px; border-color: var(--brass); color: var(--brass-l); }
.arrow-link svg { width: 22px; height: 8px; }

/* ---------- 5. Герой ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  min-height: min(100vh, 940px);
  background: var(--ink);
  color: var(--bone);
}
.hero__text {
  padding: 128px var(--pad) var(--s8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 860px;
  margin-left: auto;
  width: 100%;
}
.hero__eyebrow { margin-bottom: var(--s6); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-display);
  line-height: .94;
  letter-spacing: -.02em;
  margin: 0 0 var(--s6);
}
.hero h1 em {
  font-style: italic;
  color: var(--brass-l);
}
.hero__lead {
  color: rgba(239, 237, 229, .68);
  font-size: var(--fs-lead);
  line-height: 1.66;
  max-width: 40ch;
  margin-bottom: var(--s7);
}
.hero__actions { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.hero__media {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.02) brightness(.94);
  transform: scale(1.02);
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,15,13,.30) 0%, rgba(13,15,13,0) 40%, rgba(13,15,13,.55) 100%);
}
.hero__caption {
  position: absolute;
  left: var(--s6); bottom: var(--s6);
  z-index: 2;
  color: rgba(239, 237, 229, .8);
  font-size: var(--fs-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__caption::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--brass);
}

.hero__stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-d);
  background: var(--ink);
}
.hero__stats div {
  min-width: 0;
  padding: var(--s5) var(--pad);
  border-right: 1px solid var(--line-d);
}
.hero__stats div:last-child { border-right: 0; }
.hero__stats b {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  color: var(--bone);
  margin-bottom: 6px;
}
.hero__stats span {
  font-size: var(--fs-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 6. Секции ---------- */
.section { padding: var(--s10) 0; }
.section--paper { background: var(--paper); }
.section--bone { background: var(--bone); }
.section--ink { background: var(--ink); color: var(--bone); }

.sec-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s6);
  align-items: end;
  margin-bottom: var(--s8);
}
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -.015em;
  max-width: 22ch;
}
.sec-head--light h2 { color: var(--bone); }
.sec-head .label { padding-bottom: 14px; }

/* ---------- 7. Локации ---------- */
.loclist { border-top: 1px solid var(--line-l2); }
.locrow {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 32px;
  align-items: center;
  gap: var(--s5);
  padding: 32px 12px 32px 0;
  border-bottom: 1px solid var(--line-l);
  position: relative;
  transition: color .3s var(--ease), padding .35s var(--ease);
}
.locrow {
  isolation: isolate;
}
.locrow::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.locrow:hover { color: var(--bone); padding-left: 20px; }
.locrow:hover::before { transform: scaleY(1); }
.locrow > * { position: relative; z-index: 1; }
/* плавная смена цвета строки-локации при наведении */
.locrow__name, .locrow__num, .locrow__count, .locrow__price {
  transition: color .3s var(--ease);
}
.locrow:hover .locrow__name { color: var(--bone); }
.locrow:hover .locrow__num,
.locrow:hover .locrow__count,
.locrow:hover .locrow__price { color: rgba(239, 237, 229, .66); }
.locrow__num {
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  color: var(--muted-2);
}
.locrow__name {
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.locrow__count,
.locrow__price { font-size: var(--fs-sm); color: var(--muted-2); }
.locrow:hover .locrow__count,
.locrow:hover .locrow__price,
.locrow:hover .locrow__num { color: rgba(239, 237, 229, .6); }
.locrow__arrow { justify-self: end; color: var(--brass); opacity: 0; transform: translateX(-8px); transition: all .35s var(--ease); }
.locrow:hover .locrow__arrow { opacity: 1; transform: none; }

/* ---------- 8. Избранные объекты ---------- */
.feat {
  display: grid;
  grid-template-columns: 1.24fr 1fr;
  gap: var(--s6);
}
.feat__col { display: grid; gap: var(--s6); align-content: start; }

.card {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.card__media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.035); }
.card--lg .card__media { aspect-ratio: 4 / 3; }
.card--sm .card__media { aspect-ratio: 16 / 9; }
.card__badge {
  position: absolute;
  left: 0; top: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 8px 12px;
  font-size: var(--fs-label);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.card__body { display: flex; align-items: baseline; gap: var(--s4); }
.card__name {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  line-height: 1.12;
  flex: 1;
}
.card__price {
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.card__meta {
  font-size: var(--fs-sm);
  color: var(--muted-2);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.card__meta span { position: relative; }
.card__meta span + span::before {
  content: '·';
  position: absolute;
  left: -7px;
  color: var(--muted);
}

/* ---------- 9. О компании ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: var(--s9);
  align-items: start;
}
.about__q {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.14;
  letter-spacing: -.015em;
  max-width: 18ch;
}
.about__q em { font-style: italic; color: var(--brass-l); }
.about__text p { color: rgba(239, 237, 229, .66); max-width: 44ch; }
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--line-d);
}
.about__stats b {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  color: var(--bone);
}
.about__stats span {
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 10. Принципы ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s6);
}
.principle {
  border-top: 1px solid var(--line-l2);
  padding-top: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.principle__num {
  font-size: var(--fs-label);
  letter-spacing: .16em;
  color: var(--brass);
}
.principle h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  line-height: 1.16;
  margin-bottom: 2px;
}
.principle p { font-size: var(--fs-sm); color: var(--muted-2); line-height: 1.6; }

/* ---------- 11. Заявка ---------- */
.cta {
  display: grid;
  grid-template-columns: 1fr .88fr;
  gap: var(--s9);
  align-items: center;
}
.cta h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.03;
  letter-spacing: -.015em;
  margin-bottom: var(--s5);
}
.cta__note { color: rgba(239, 237, 229, .6); max-width: 34ch; font-size: var(--fs-sm); }

.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: 6px; }
.field label {
  font-size: var(--fs-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(239, 237, 229, .62);
}
.field input,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-d2);
  color: var(--bone);
  padding: 10px 0 12px;
  font-size: 15px;
  border-radius: 0;
  outline: none;
  transition: border-color .25s var(--ease);
  width: 100%;
}
.field input::placeholder { color: rgba(239, 237, 229, .3); }
.field input:focus, .field select:focus { border-color: var(--brass); }
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--ink-2); color: var(--bone); }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-xs);
  color: rgba(239, 237, 229, .6);
  line-height: 1.5;
  margin-top: var(--s2);
}
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brass); flex: 0 0 18px; }
.check a { color: rgba(239, 237, 229, .72); border-bottom: 1px solid var(--line-d2); }

.form .btn { justify-self: start; margin-top: var(--s3); }

/* ---------- 12. Подвал ---------- */
.ftr {
  background: var(--ink);
  color: var(--bone);
  border-top: 1px solid var(--line-d);
  padding: var(--s9) 0 var(--s6);
}
.ftr__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: var(--s7);
  padding-bottom: var(--s8);
}
.ftr .logo { margin-bottom: var(--s5); }
.ftr__about {
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 30ch;
  line-height: 1.6;
}
.ftr h4 {
  font-size: var(--fs-label);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s4);
}
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr ul a, .ftr ul li {
  font-size: var(--fs-sm);
  color: rgba(239, 237, 229, .78);
  transition: color .2s;
  display: inline-block;
  padding: 3px 0;
}
.ftr ul a:hover { color: var(--brass-l); }
.ftr__tel {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  display: block;
  margin-bottom: 6px;
}
.ftr__legal {
  border-top: 1px solid var(--line-d);
  padding-top: var(--s5);
  display: flex;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: rgba(239, 237, 229, .38);
  line-height: 1.7;
  max-width: 88ch;
}

/* ---------- 13. Каталог ---------- */
.page-head {
  background: var(--ink);
  color: var(--bone);
  padding: 140px 0 var(--s7);
}
.page-head__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s6);
  flex-wrap: wrap;
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h1);
  line-height: .94;
  letter-spacing: -.02em;
  margin: var(--s4) 0 0;
}
.page-head__side {
  text-align: right;
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: .04em;
  line-height: 1.8;
}

.filters {
  border-top: 1px solid var(--line-d);
  margin-top: var(--s7);
  padding-top: var(--s4);
  display: flex;
  gap: var(--s6);
  align-items: baseline;
  flex-wrap: wrap;
}
.chip {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(239, 237, 229, .52);
  padding: 8px 0;
  position: relative;
  transition: color .25s var(--ease);
}
.chip:hover { color: var(--bone); }
.chip.is-active { color: var(--bone); }
.chip.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
}
.chip sup {
  font-size: 9px;
  color: var(--brass);
  letter-spacing: .04em;
  margin-left: 5px;
  top: -.5em;
}
.filters .sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.filters select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-d2);
  color: var(--bone);
  padding: 6px 18px 8px 0;
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  appearance: none;
  cursor: pointer;
}
.filters select option { background: var(--ink-2); }

.catalog {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: var(--s8);
  align-items: start;
  padding: var(--s7) 0 var(--s9);
}
.results__count {
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: var(--s5);
  display: flex;
  justify-content: space-between;
}
.rows { border-top: 1px solid var(--line-l2); }
.row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: var(--s5);
  align-items: center;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line-l);
  transition: background .3s var(--ease), padding .3s var(--ease);
}
.row:hover { padding-left: 10px; }
.row__idx {
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.row__thumb {
  width: 108px; height: 80px;
  background: var(--paper-2);
  overflow: hidden;
  position: relative;
}
.row__thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.row__thumb--empty::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(13,15,13,.05) 0 1px, transparent 1px 8px);
}
.row__name {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 3px;
}
.row__meta {
  font-size: var(--fs-sm);
  color: var(--muted-2);
  line-height: 1.5;
}
.row__meta span { display: inline; }
.row__meta span:not(:last-child)::after {
  content: ' · ';
  color: var(--muted);
}
.row__price {
  text-align: right;
  font-size: var(--fs-sm);
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--ink);
}
.row__price small {
  display: block;
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.row__price--ask {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted-2);
  letter-spacing: 0;
}

.mapbox { position: sticky; top: 100px; }
.map {
  position: relative;
  aspect-ratio: 683 / 670;
  background: url('../img/map-europe.png') center / cover no-repeat, var(--paper-2);
  border: 1px solid var(--line-l);
  overflow: hidden;
}
.map__pin {
  position: absolute;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px rgba(244, 242, 236, .9);
  transition: transform .25s var(--ease), background .25s;
  z-index: 2;
}
.map__pin:hover { background: var(--brass); transform: scale(1.6); }
.map__pin::after {
  content: attr(data-name);
  position: absolute;
  left: 14px; top: -6px;
  font-size: 10px;
  letter-spacing: .06em;
  white-space: nowrap;
  background: var(--ink);
  color: var(--bone);
  padding: 4px 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.map__pin:hover::after { opacity: 1; }

.map__region {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  font-size: 11px;
  letter-spacing: .04em;
  box-shadow: 0 0 0 1px rgba(244, 242, 236, .55);
  transition: background .25s var(--ease), transform .25s var(--ease);
  cursor: pointer;
}
.map__region:hover { background: var(--brass); color: var(--ink); transform: translate(-50%, -50%) scale(1.08); }
.map__region:hover span { opacity: 1; }
.map__region span {
  position: absolute;
  top: 40px;
  opacity: 0;
  transition: opacity .2s var(--ease);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-3);
  white-space: nowrap;
}
.map__legend {
  position: absolute;
  left: 14px; bottom: 12px;
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--muted-3);
  background: rgba(244, 242, 236, .82);
  padding: 5px 8px;
}
.map__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  margin-top: var(--s4);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.map__foot a {
  border-bottom: 1px solid var(--line-l2);
  padding-bottom: 2px;
  transition: border-color .25s, color .25s;
}
.map__foot a:hover { border-color: var(--brass); color: var(--ink); }

.empty {
  border: 1px solid var(--line-l);
  padding: var(--s8) var(--s6);
  text-align: center;
  color: var(--muted-2);
}
.empty h3 { font-family: var(--serif); font-size: 26px; margin-bottom: var(--s3); color: var(--ink); }

/* ---------- 14. Адаптив ---------- */
@media (max-width: 1180px) {
  .catalog { grid-template-columns: 1fr 420px; gap: var(--s6); }
  .about { gap: var(--s7); }
  .principles { grid-template-columns: repeat(2, 1fr); gap: var(--s7) var(--s6); }
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: var(--s6); }
}

@media (max-width: 960px) {
  .nav, .hdr-tel { display: none; }
  .burger { display: block; }
  .hdr-right { margin-left: auto; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__text { padding: 118px var(--pad) var(--s7); max-width: none; }
  .hero__media { aspect-ratio: 4 / 3; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stats div:nth-child(2) { border-right: 0; }
  .hero__stats div { border-bottom: 1px solid var(--line-d); }

  .section { padding: var(--s9) 0; }
  .sec-head { grid-template-columns: 1fr; gap: var(--s4); margin-bottom: var(--s6); }
  .sec-head h2 { max-width: none; }

  .locrow { grid-template-columns: 40px 1fr auto; gap: var(--s4); padding: 22px 0; }
  .locrow__count { display: none; }
  .locrow__price { grid-column: 2 / 3; grid-row: 2; font-size: var(--fs-xs); }
  .locrow__arrow { display: none; }
  .locrow:hover { padding-left: 0; }

  .feat { grid-template-columns: 1fr; }
  .card--lg .card__media, .card--sm .card__media { aspect-ratio: 4 / 3; }

  .about { grid-template-columns: 1fr; gap: var(--s6); }
  .about__q { max-width: none; }
  .cta { grid-template-columns: 1fr; gap: var(--s6); }

  .page-head { padding-top: 116px; }
  .catalog { grid-template-columns: 1fr; padding-top: var(--s5); }
  .mapbox { position: static; order: -1; margin-bottom: var(--s5); }
  .map { aspect-ratio: 4 / 3; }
  .filters { gap: var(--s4); overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .sort { display: none; }
}

@media (max-width: 620px) {
  .hdr-right .btn { display: none; }
  .logo em { display: none; }
  :root { --fs-display: 46px; --fs-h1: 44px; --fs-h2: 30px; }
  .hero__text { padding-top: 106px; }
  .hero__actions { gap: var(--s4); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__stats b { font-size: 26px; }
  .row { grid-template-columns: 76px 1fr; gap: var(--s3); }
  .row__thumb { width: 76px; height: 60px; }
  .row__price { grid-column: 2; text-align: left; margin-top: 2px; }
  .row__name { font-size: 20px; }
  .principles { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .about__stats { gap: var(--s4); }
  .about__stats b { font-size: 32px; }
  .ftr__legal { flex-direction: column; gap: var(--s3); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}



/* ============================================================
   Движение: 3D-подъём карточек, параллакс, появление секций.
   Всё на transform/opacity — без пересчёта layout в кадре.
   ============================================================ */

.cards, .feat { perspective: 1200px; }

.card, .pcard, .loccard {
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 0);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.card:hover {
  transform: translate3d(0, -10px, 34px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 26px 50px -30px rgba(13, 15, 13, .45);
}
.pcard:hover {
  transform: translate3d(0, -8px, 22px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.loccard:hover { transform: translate3d(0, -6px, 16px); }

.card__media, .pcard__media, .hero__media { transform: translateZ(0); }
.card__media img, .pcard__media img { backface-visibility: hidden; }

.hero__media img { will-change: transform; }

/* появление при скролле */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .card:hover, .pcard:hover, .loccard:hover { transform: none; }
}