/* ============================================================
   proplivem.ru — главная страница (airbnb-clean)
   белый фон, чёрный текст, морской акцент
   анимации + hover: make-interfaces-feel-better
   ============================================================ */

/* ---------- 1. Reset & Tokens ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #FFFFFF;
  --bg-soft:      #F7F7F7;
  --bg-line:      #EBEBEB;
  --line:         #DDDDDD;

  --ink:          #222222;
  --ink-2:        #717171;
  --ink-3:        #B0B0B0;

  --accent:       #0E7490;
  --accent-d:     #0A5A73;
  --accent-soft:  #E0F2F8;

  --font-disp:    'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --r-sm:         8px;
  --r:            12px;
  --r-lg:         16px;
  --r-pill:       100px;

  /* shadows: shadow-as-border (3-layer ring) */
  --shadow-sm:    0 0 0 1px rgba(0,0,0,0.06), 0 1px 2px -1px rgba(0,0,0,0.06), 0 2px 4px 0 rgba(0,0,0,0.04);
  --shadow:       0 0 0 1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.08), 0 6px 14px 0 rgba(0,0,0,0.06);
  --shadow-lg:    0 0 0 1px rgba(0,0,0,0.06), 0 8px 16px -4px rgba(0,0,0,0.10), 0 20px 40px -8px rgba(0,0,0,0.10);

  --t-fast:       180ms;
  --t-mid:        280ms;
  --ease:         cubic-bezier(0.2, 0, 0, 1);   /* sharp, interruptible */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01';
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; }
em { font-style: italic; }
strong { font-weight: 600; }

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- 2. Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 72px;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--bg-line);
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.logo--foot { color: #fff; }
.nav {
  display: flex; gap: 24px;
  margin-left: auto;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--t-mid) var(--ease-out);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.hdr-right {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}

/* ---------- 3. Buttons ---------- */
.btn-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn-pill:active { transform: scale(0.96); }
.btn-pill--ghost {
  background: var(--ink);
  color: #fff;
}
.btn-pill--ghost:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-pill--ghost:active { transform: scale(0.96); }
.btn-pill--light {
  background: #fff;
  color: var(--ink);
}
.btn-pill--light:hover {
  background: var(--bg-soft);
  transform: translateY(-1px);
}
.btn-pill--light:active { transform: scale(0.96); }

/* ---------- 4. Kicker ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.kicker--light { color: rgba(255,255,255,0.7); }

/* ---------- 5. Hero ---------- */
.hero {
  padding: clamp(60px, 9vw, 96px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--bg-line);
}
.kicker {
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 880px;
}
.hero-title .muted {
  color: var(--ink-3);
  font-weight: 600;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--ink-2);
  max-width: 600px;
  line-height: 1.55;
  margin-bottom: 36px;
}

/* Hero enter: stagger fade-up + blur clear (Motion recipe → CSS) */
.hero .kicker,
.hero .hero-title,
.hero .hero-sub,
.hero .search,
.hero .hero-meta {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  animation: fadeUp 520ms var(--ease-out) forwards;
}
.hero .kicker       { animation-delay: 0ms; }
.hero .hero-title   { animation-delay: 80ms; }
.hero .hero-sub     { animation-delay: 160ms; }
.hero .search       { animation-delay: 240ms; }
.hero .hero-meta    { animation-delay: 320ms; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ---------- 6. Search form ---------- */
.search {
  display: grid;
  grid-template-columns: 200px 200px 1fr auto;
  align-items: center;
  background: #fff;
  border: 1px solid var(--bg-line);
  border-radius: var(--r-pill);
  padding: 8px 8px 8px 8px;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin-bottom: 24px;
  transition: box-shadow var(--t-fast) var(--ease);
}
.search:hover { box-shadow: var(--shadow-lg); }
.field {
  display: flex; flex-direction: column;
  padding: 8px 18px;
  border-right: 1px solid var(--bg-line);
  min-width: 0;
}
.field:last-of-type { border-right: 0; }
.field--grow { min-width: 0; }
.field-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.field-input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0;
  width: 100%;
  appearance: none;
  cursor: pointer;
}
.field-input::placeholder { color: var(--ink-3); font-weight: 400; }
select.field-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23717171' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 18px;
}
.btn-search {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition:
    background var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
  box-shadow: 0 0 0 0 transparent;
}
.btn-search:hover {
  background: var(--accent-d);
  transform: scale(1.06);
  box-shadow: 0 8px 20px -4px rgba(14, 116, 144, 0.45);
}
.btn-search:active { transform: scale(0.94); }

/* ---------- 7. Hero meta ---------- */
.hero-meta {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.hero-meta a { color: var(--ink); }
.hero-meta a:hover { color: var(--accent); }
.hero-meta .dot { color: var(--ink-3); }
.hero-meta strong { font-weight: 600; }

/* ---------- 8. Section heads ---------- */
.sec-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
  flex-wrap: wrap;
}
.sec-head--center {
  flex-direction: column; align-items: center; text-align: center;
}
.sec-title {
  font-family: var(--font-disp);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.sec-title .muted {
  color: var(--ink-3);
  font-weight: 600;
}
.sec-title--light { color: #fff; }
.sec-title--light .muted-light { color: rgba(255,255,255,0.55); }
.sec-sub {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 540px;
  line-height: 1.55;
  margin-top: 8px;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition:
    color var(--t-fast) var(--ease),
    border-bottom-color var(--t-fast) var(--ease);
}
.link-arrow:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.link-arrow span {
  display: inline-block;
  transition: transform var(--t-mid) var(--ease-out);
}
.link-arrow:hover span {
  transform: translateX(6px);
}

/* ---------- 9. Catalog — Cards ---------- */
.catalog {
  padding: clamp(64px, 8vw, 96px) 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px 24px;
}
.card {
  display: block;
  border-radius: var(--r);
  transition: transform var(--t-mid) var(--ease-out);
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  animation: fadeUp 560ms var(--ease-out) forwards;
}
.card:nth-child(1)  { animation-delay: 60ms; }
.card:nth-child(2)  { animation-delay: 120ms; }
.card:nth-child(3)  { animation-delay: 180ms; }
.card:nth-child(4)  { animation-delay: 240ms; }
.card:nth-child(5)  { animation-delay: 300ms; }
.card:nth-child(6)  { animation-delay: 360ms; }
.card:nth-child(7)  { animation-delay: 420ms; }
.card:nth-child(8)  { animation-delay: 480ms; }
.card:nth-child(9)  { animation-delay: 540ms; }
.card:nth-child(10) { animation-delay: 600ms; }
.card:nth-child(11) { animation-delay: 660ms; }
.card:nth-child(12) { animation-delay: 720ms; }
.card:hover {
  transform: translateY(-6px);
}
.card:active { transform: translateY(-3px) scale(0.99); }

.card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  transition:
    box-shadow var(--t-mid) var(--ease-out),
    background var(--t-fast) var(--ease);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}
.card:hover .card-img {
  box-shadow: 0 0 0 1px rgba(0,0,0,0.10), 0 16px 32px -8px rgba(0,0,0,0.18);
}
.mono {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform var(--t-mid) var(--ease-out);
}
.card:hover .mono { transform: scale(1.04); }
.mono span {
  font-size: 0.55em;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: flex-start;
  margin-top: 4px;
}
.card-img--all {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-disp);
  font-size: 3rem;
  font-weight: 300;
  transition: background var(--t-mid) var(--ease-out);
}
.card--all .card-name { font-weight: 700; }
.card--all:hover .card-img { background: var(--accent); }
.card--all:hover .mono { color: #fff; }
.card--all:hover .mono span { color: rgba(255,255,255,0.7); }

.card-body {
  padding: 0 2px;
}
.card-name {
  font-family: var(--font-disp);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}
.card-meta {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.card-meta .dot-loc {
  font-weight: 600;
  color: var(--ink);
}
.card-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--bg-line);
}
.card-price {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.card-price em {
  font-style: normal;
  color: var(--ink-2);
  font-weight: 500;
}

/* ---------- 10. Districts ---------- */
.districts {
  padding: clamp(56px, 7vw, 80px) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--bg-line);
  border-bottom: 1px solid var(--bg-line);
}
.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.d-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--bg-line);
  border-radius: var(--r);
  transition:
    transform var(--t-mid) var(--ease-out),
    box-shadow var(--t-mid) var(--ease-out),
    border-color var(--t-fast) var(--ease);
}
.d-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.d-card:active { transform: translateY(-1px) scale(0.99); }
.d-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: transform var(--t-fast) var(--ease);
}
.d-card:hover .d-name { transform: translateX(2px); }
.d-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 28px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  transition:
    background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}
.d-card:hover .d-count {
  background: var(--accent);
  color: #fff;
  transform: scale(1.08);
}

/* ---------- 11. How ---------- */
.how {
  padding: clamp(72px, 9vw, 112px) 0;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.how-card {
  padding: 32px 28px;
  border: 1px solid var(--bg-line);
  border-radius: var(--r);
  background: #fff;
  transition:
    transform var(--t-mid) var(--ease-out),
    box-shadow var(--t-mid) var(--ease-out),
    border-color var(--t-fast) var(--ease);
}
.how-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.how-num {
  display: inline-block;
  font-family: var(--font-disp);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  transition: transform var(--t-mid) var(--ease-out);
}
.how-card:hover .how-num { transform: translateX(4px); }
.how-card h3 {
  font-family: var(--font-disp);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}
.how-card p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ---------- 12. B2B ---------- */
.b2b {
  background: var(--ink);
  color: #fff;
  padding: clamp(64px, 8vw, 96px) 0;
}
.b2b-inner {
  max-width: 720px;
}
.b2b-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  margin: 16px 0 32px;
  max-width: 540px;
}

/* ---------- 13. Footer ---------- */
.ftr {
  padding: 56px 0 28px;
  background: #fff;
  border-top: 1px solid var(--bg-line);
}
.ftr-in {
  display: flex; justify-content: space-between; align-items: start;
  gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--bg-line);
}
.ftr-tag {
  font-size: 0.85rem;
  color: var(--ink-2);
  max-width: 320px;
  margin-top: 12px;
  line-height: 1.55;
}
.ftr-nav {
  display: flex; gap: 28px; flex-wrap: wrap;
}
.ftr-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease);
}
.ftr-nav a:hover { color: var(--accent); }
.ftr-bot {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem;
  color: var(--ink-2);
  flex-wrap: wrap; gap: 8px;
}

/* ---------- 14. Mobile ---------- */
@media (max-width: 880px) {
  .nav { display: none; }
  .hdr-right .btn-pill { display: none; }
}
@media (max-width: 760px) {
  .search {
    grid-template-columns: 1fr;
    border-radius: var(--r-lg);
    padding: 12px;
    gap: 6px;
  }
  .field { border-right: 0; border-bottom: 1px solid var(--bg-line); padding: 8px 12px; }
  .field:last-of-type { border-bottom: 0; }
  .btn-search { width: 100%; border-radius: var(--r); padding: 14px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .hero { padding: 48px 0 32px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   15. Каталог — фильтры, бар, sticky
   ============================================================ */
.cat-head {
  padding: clamp(40px, 6vw, 64px) 0 clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--bg-line);
}
.cat-head h1 {
  font-family: var(--font-disp);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 8px;
}
.cat-head p {
  color: var(--ink-2);
  font-size: 1rem;
}
.cat-toolbar {
  position: sticky;
  top: 72px;
  z-index: 30;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 0;
  border-bottom: 1px solid var(--bg-line);
}
.toolbar-in {
  display: flex; gap: 12px; align-items: center;
  flex-wrap: wrap;
}
.search-mini {
  display: flex; align-items: center;
  background: var(--bg-soft);
  border-radius: var(--r-pill);
  padding: 8px 14px 8px 18px;
  flex: 1; min-width: 240px;
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.search-mini:focus-within {
  background: #fff;
  box-shadow: var(--shadow);
}
.search-mini svg { color: var(--ink-2); flex-shrink: 0; }
.search-mini input {
  border: 0; outline: 0; background: transparent;
  font-family: var(--font); font-size: 0.92rem;
  color: var(--ink);
  width: 100%; padding: 0 0 0 8px;
  min-width: 0;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--bg-line);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition:
    background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--ink);
}
.chip:active { transform: scale(0.96); }
.chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.chip .count {
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 600;
}
.chip.is-active .count { color: rgba(255,255,255,0.55); }

.chips-row {
  display: flex; gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 0;
  border-top: 1px solid var(--bg-line);
  margin-top: 12px;
}
.chip-mini {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.chip-mini:hover {
  background: #fff;
  border-color: var(--bg-line);
  color: var(--ink);
}
.chip-mini.is-active {
  background: var(--accent);
  color: #fff;
}

.cat-results {
  padding: 32px 0 80px;
}
.cat-meta {
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.cat-empty {
  padding: 80px 20px;
  text-align: center;
  color: var(--ink-2);
}
.cat-empty h3 {
  font-family: var(--font-disp);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ============================================================
   16. Карточка центра (детальная страница)
   ============================================================ */
.detail-hero {
  padding: clamp(40px, 6vw, 64px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--bg-line);
}
.breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--ink-2); transition: color var(--t-fast) var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--ink-3); }

.detail-title {
  font-family: var(--font-disp);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 14px;
  max-width: 800px;
}
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.tag {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 500;
}
.tag-age { background: var(--accent-soft); color: var(--accent-d); }
.tag-type { background: var(--bg-soft); color: var(--ink-2); }
.tag-metro { background: #fff; border: 1px solid var(--bg-line); color: var(--ink-2); }

.detail-info {
  display: flex; flex-wrap: wrap; gap: 24px 36px;
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--bg-soft);
  border-radius: var(--r);
}
.detail-info > div { min-width: 0; }
.detail-info .label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.detail-info .val {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
}
.detail-info .val a { color: var(--accent); }
.detail-info .val a:hover { text-decoration: underline; }

.detail-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.detail-body {
  padding: clamp(40px, 6vw, 64px) 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}
.detail-main { min-width: 0; }
.detail-aside { position: sticky; top: 96px; }

@media (max-width: 880px) {
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-aside { position: static; }
}

.detail-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--bg-line);
}
.detail-section:last-child { border-bottom: 0; }
.detail-section h2 {
  font-family: var(--font-disp);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
}
.detail-section p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.7;
}
.detail-section p + p { margin-top: 12px; }

/* aside: карточка действия */
.action-card {
  padding: 28px;
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow);
}
.action-card .price {
  font-family: var(--font-disp);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.action-card .price-sub {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.action-card .btn-row {
  display: flex; flex-direction: column; gap: 8px;
}
.action-card .btn-row .btn-pill {
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  font-size: 0.95rem;
}

/* similar centers */
.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ============================================================
   17. Сравнение, избранное, ЛК, B2B
   ============================================================ */
.page-hero {
  padding: clamp(48px, 7vw, 80px) 0 clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--bg-line);
}
.page-hero h1 {
  font-family: var(--font-disp);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
  color: var(--ink);
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 600px;
  line-height: 1.55;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.compare-table th, .compare-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bg-line);
}
.compare-table th {
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
}
.compare-table td { color: var(--ink-2); }
.compare-table tr:hover td { background: var(--bg-soft); }

.empty-state {
  text-align: center;
  padding: 80px 24px;
}
.empty-state .icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}
.empty-state h2 {
  font-family: var(--font-disp);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--ink-2);
  margin-bottom: 24px;
}

/* B2B форма */
.b2b-form {
  max-width: 560px;
  padding: 32px;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.form-row {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.form-row label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--bg-line);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-row textarea { min-height: 100px; resize: vertical; }

/* Карта */
.map-page {
  padding: clamp(32px, 4vw, 48px) 0;
}
.map-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: stretch;
  min-height: 540px;
}
@media (max-width: 880px) {
  .map-wrap { grid-template-columns: 1fr; }
}
.map-list {
  background: #fff;
  border-radius: var(--r);
  border: 1px solid var(--bg-line);
  padding: 16px;
  max-height: 600px;
  overflow-y: auto;
}
.map-list .mini-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast) var(--ease);
}
.map-list .mini-card:hover { background: var(--bg-soft); }
.map-list .mini-card .mini-name {
  font-size: 0.92rem; font-weight: 600; color: var(--ink);
}
.map-list .mini-card .mini-meta {
  font-size: 0.78rem; color: var(--ink-2);
}
.map-canvas {
  background: linear-gradient(135deg, #E0F2F8 0%, #C7E5EE 100%);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-d);
  font-weight: 600;
  text-align: center;
  padding: 40px;
  min-height: 540px;
}

/* Блог */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 40px 0 80px;
}
.blog-card {
  display: flex; flex-direction: column;
  padding: 24px;
  border-radius: var(--r);
  border: 1px solid var(--bg-line);
  background: #fff;
  transition:
    transform var(--t-mid) var(--ease-out),
    box-shadow var(--t-mid) var(--ease-out),
    border-color var(--t-fast) var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
}
.blog-card .tag {
  align-self: flex-start;
  margin-bottom: 14px;
  background: var(--accent-soft);
  color: var(--accent-d);
}
.blog-card h2 {
  font-family: var(--font-disp);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
}
.blog-card p {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 16px;
}
.blog-card .meta {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* Блог-пост (страница статьи) */
.blog-post-body {
  padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 8vw, 96px);
}
.blog-article {
  max-width: 720px;
  margin: 0 auto;
}
.blog-content-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--bg-line);
}
.blog-content-section:last-of-type { border-bottom: 0; }
.blog-content-section h2 {
  font-family: var(--font-disp);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 14px;
}
.blog-content-section p {
  font-size: 1.02rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 14px;
}
.blog-content-section p:last-child { margin-bottom: 0; }
.blog-content-section ul {
  list-style: disc;
  padding-left: 22px;
  margin: 14px 0;
}
.blog-content-section li {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 8px;
}
.blog-content-section p:has(> "[→"),
.blog-content-section li:has(> "[→") {
  /* визуально помечаем плейсхолдеры для копирайтера */
  color: var(--ink-3);
  font-style: italic;
}

/* CTA в конце статьи */
.blog-cta {
  margin-top: 40px;
  padding: 36px 32px;
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  text-align: center;
  border: 1px solid var(--bg-line);
}
.blog-cta h2 {
  font-family: var(--font-disp);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 10px;
}
.blog-cta p {
  font-size: 1rem;
  color: var(--ink-2);
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* Breadcrumb для инфо-страниц */
.b2b-bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px 0;
}
.b2b-bullet {
  padding: 24px;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--bg-line);
}
.b2b-bullet .num {
  font-family: var(--font-disp);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}
.b2b-bullet h3 {
  font-family: var(--font-disp);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.b2b-bullet p {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.55;
}
