/* =============================================================
   ООО «Управляющая компания Жилые Кварталы» — design system
   Palette: deep charcoal #0F1115 with cool slate-blue cards #1B1F27
   Accent: very subtle muted gold (active nav / focus rings only)
   Typography: Fraunces (display, light serif) + Geist (UI / body)
   ============================================================= */

:root {
  /* surfaces — Soft Luxury × Dark Header */
  --ink:           #111111;   /* header */
  --ink-2:         #1A1A1A;   /* header borders */
  --ink-3:         #2A2A2A;   /* header dividers */
  --cream:         #F6F3EE;   /* dominant page bg — молочный */
  --cream-2:       #FBF9F5;   /* card / panel bg */
  --cream-3:       #EFEAE1;   /* subtle section */
  --white:         #FFFFFF;
  --card-hover:    #FFFFFF;   /* card on hover */

  /* text */
  --text:          #1C1C1C;   /* primary */
  --text-2:        #444444;   /* secondary on cream */
  --text-mute:     #7A7A7A;   /* muted */
  --text-fade:     #A3A09A;   /* faded */

  /* text on dark header */
  --on-dark:       #F0EBE2;
  --on-dark-mute:  #8E8A82;

  /* accent — muted gold, used in hover / active states */
  --gold:          #C6A96E;
  --gold-2:        #B89A5C;
  --gold-soft:     rgba(198, 169, 110, 0.10);
  --gold-line:     rgba(198, 169, 110, 0.30);

  /* lines */
  --line:          rgba(28, 28, 28, 0.08);
  --line-2:        rgba(28, 28, 28, 0.14);

  /* radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* shadow — soft, tinted */
  --sh-1: 0 1px 0 rgba(255,255,255,0.5) inset, 0 12px 24px -16px rgba(28,28,28,0.18);
  --sh-2: 0 1px 0 rgba(255,255,255,0.6) inset, 0 30px 60px -30px rgba(28,28,28,0.25);
  --sh-3: 0 24px 60px -28px rgba(28,28,28,0.28);

  /* fonts */
  --font-display: "Fraunces", "Cormorant Garamond", "Georgia", serif;
  --font-sans:    "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace;

  /* layout */
  --header-h:    72px;
  --container:   1280px;
  --section-pad: 96px;
  --gutter:      48px;

  /* timing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   Reset
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html, body { background: var(--cream); min-height: 100vh; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold-soft); color: var(--text); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: rgba(28,28,28,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(28,28,28,0.25); }

/* =============================================================
   Typography helpers
   ============================================================= */
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--text);
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  margin: 0;
}
.h-1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--text);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin: 0;
}
.h-2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: var(--text);
  font-size: 1.4rem;
  margin: 0;
}
.h-3 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--text);
  font-size: 1.1rem;
  margin: 0;
}
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
}
.lead {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 62ch;
  line-height: 1.65;
}
.muted { color: var(--text-mute); }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* =============================================================
   Layout shell
   ============================================================= */
.page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.main { flex: 1; padding-top: var(--header-h); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: var(--section-pad) 0;
}
.section--cream2 { background: var(--cream-2); }
.section--cream3 { background: var(--cream-3); }
.section--ink   { background: var(--ink); color: var(--on-dark); }
.section--ink .h-1, .section--ink .h-display, .section--ink .h-2, .section--ink .h-3 { color: var(--on-dark); }
.section--ink .lead, .section--ink .muted { color: var(--on-dark-mute); }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  margin-bottom: 48px;
}
.section-head .left { max-width: 680px; }
.section-head .h-1 { margin-bottom: 14px; }

/* =============================================================
   HEADER — sticky dark, always-visible across pages
   ============================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--ink);
  border-bottom: 1px solid var(--ink-3);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  transition: background 0.3s var(--ease);
}
.header__inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}
.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-dark);
}
.header__mark {
  width: auto;
  min-width: 80px;
  height: 40px;
  flex-shrink: 0;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(180deg, #1F1F1F 0%, #121212 100%);
  border: 1px solid var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  padding: 0 16px;
  box-sizing: border-box;
  text-align: center;
  overflow: visible;
}
.header__name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  color: var(--on-dark);
}
.header__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav__link {
  position: relative;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.93rem;
  color: var(--on-dark);
  border-radius: 8px;
  white-space: nowrap;            /* «О компании» не должно переноситься на 2 строки */
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover { color: var(--gold); }
.nav__link.is-active { color: var(--gold); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--ink-3);
  border-radius: var(--r-pill);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.header__cta:hover { border-color: var(--gold); color: var(--gold); }
.header__cta svg { color: var(--gold); }

.header__burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--ink-3);
  align-items: center; justify-content: center;
  color: var(--on-dark);
}

/* mobile nav drawer */
.nav__drawer {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-3);
  padding: 16px var(--gutter) 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
body.nav-open .nav__drawer { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav__drawer .nav__link { padding: 12px 14px; font-size: 1rem; border-radius: 10px; }
.nav__drawer .nav__link.is-active { background: rgba(198,169,110,0.10); }
.nav__drawer .nav__link.is-active::after { display: none; }

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}
.btn--gold:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); background: var(--gold-soft); }
.btn--icon { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.btn--on-dark { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--on-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* =============================================================
   HERO (home) — video bg
   ============================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  margin-top: calc(0px - var(--header-h));
  padding-top: var(--header-h);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.hero__video-wrap { position: absolute; inset: 0; overflow: hidden; z-index: 0; background: var(--ink); }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;                    /* заполняет экран целиком, без чёрных полей */
  object-position: center bottom;       /* минимальная обрезка — только сверху (небо) */
  filter: saturate(1.08) brightness(0.92) contrast(1.1);  /* ярко и контрастно */
  will-change: opacity;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.6, 1);
}
.hero__video--a { opacity: 1; }
.hero__video--b { opacity: 0; }

/* ===== Переходная секция (Новости): САМ блок плавно из тёмного в белый =====
   Градиент растянут по ВСЕЙ высоте секции — это весь второй блок.
   Низ — чистый #FFFFFF (отличается от молочного #F6F3EE следующего блока,
   чтобы 2-й и 3-й блок визуально не сливались). */
.section--transition {
  position: relative;
  margin-top: -2px;                   /* убираем под-пиксельный шов с hero */
  padding-top: 140px;                 /* воздух в тёмной зоне над заголовком */
  padding-bottom: 110px;
  background: linear-gradient(180deg,
    var(--ink)                  0%,
    rgba(17, 17, 17, 0.97)     12%,
    rgba(64, 52, 38, 0.82)     28%,
    rgba(160, 140, 108, 0.55)  44%,
    rgba(225, 215, 195, 0.78)  60%,
    rgba(250, 247, 240, 0.95)  80%,
    #FFFFFF                    100%
  );
}
/* в верхней (тёмной) части секции — светлая типографика */
.section--transition .news-slider__head .eyebrow      { color: var(--gold); }
.section--transition .news-slider__head .eyebrow::before { background: var(--gold); opacity: 0.7; }
.section--transition .news-slider__head .h-1         { color: var(--on-dark); }
.section--transition .news-slider__head .news-slider__counter { color: var(--on-dark-mute); }
.section--transition .news-slider__head .btn--ghost {
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.18);
}
.section--transition .news-slider__head .btn--ghost:hover {
  background: rgba(198, 169, 110, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}
.hero__corner {
  /* водяной знак вырезан из самого видеофайла — угловая маска не нужна */
  display: none;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 82% 66% at 50% 50%, rgba(8,8,10,0.52) 0%, rgba(8,8,10,0.12) 62%, transparent 84%),
    linear-gradient(180deg, rgba(17,17,17,0.36) 0%, rgba(17,17,17,0.10) 38%, rgba(17,17,17,0.50) 78%, rgba(17,17,17,0.92) 100%);
  z-index: 2;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  z-index: 2;
}
.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 960px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-pill);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 28px;
}
.hero__eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(198,169,110,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(198,169,110,0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(198,169,110,0); }
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.0;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  color: #ffffff;
  margin: 0 0 22px;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.45);
}
.hero__title small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.32em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 22px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.hero__sub {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: #ffffff;
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.55;
  opacity: 0.94;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.hero__cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll .line {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.35); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);    transform-origin: top; opacity: 1; }
}

/* =============================================================
   Page header (for non-hero pages)
   ============================================================= */
.page-head {
  padding: 72px 0 36px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-head .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.page-head__crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.page-head__crumbs a:hover { color: var(--gold-2); }
.page-head__title { margin-bottom: 14px; }
.page-head__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

/* =============================================================
   Cards
   ============================================================= */
.card {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: var(--sh-1);
}

/* =============================================================
   News list
   ============================================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: var(--sh-2);
}
.news-card__media {
  aspect-ratio: 4/3;
  background: var(--cream-3);
  overflow: hidden;
  position: relative;
}
.news-card__img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;     /* кадрируем по верху фото, а не по центру */
  transition: transform 0.6s var(--ease);
}
.news-card:hover .news-card__img { transform: scale(1.05); }
.news-card__body {
  padding: 22px 24px 26px;
  display: flex; flex-direction: column;
  gap: 12px; flex: 1;
}
.news-card__meta {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.news-card__tag {
  padding: 4px 9px;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  color: var(--gold-2);
  background: var(--gold-soft);
}
.news-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
  font-size: 1.2rem;
  color: var(--text);
  margin: 0;
}
.news-card__excerpt {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.news-card__more {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.news-card__more svg { transition: transform 0.3s var(--ease); }
.news-card:hover .news-card__more svg { transform: translateX(4px); }

/* slider on home */
.news-slider__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  margin-bottom: 36px;
}
.news-slider__controls { display: flex; gap: 10px; align-items: center; }
.news-slider__counter {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-right: 14px;
}
.news-slider__viewport { overflow: hidden; position: relative; }
.news-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(33.333% - 16px);
  gap: 24px;
  transition: transform 0.55s var(--ease);
}

/* filter chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: var(--cream);
  transition: all 0.18s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--gold-line); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--gold); }

/* =============================================================
   Article (single news)
   ============================================================= */
.article {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px var(--gutter) 96px;
}
.article__hero {
  margin: 0 auto 56px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream-3);
}
/* --- Вариант «full»: фото показывается целиком, без обрезки --- */
.article__hero--full img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
/* --- Вариант «cover»: красиво укомплектованное соотношение 16:9 с обрезкой --- */
.article__hero--cover { aspect-ratio: 16/9; }
.article__hero--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Фото снизу статьи (image_position=bottom) — небольшой отступ от текста */
.article__hero--bottom { margin-top: 24px; }
/* Кликабельное фото — курсор zoom-in + лёгкий hover-эффект */
.article__hero--clickable { cursor: zoom-in; }
.article__hero--clickable img { transition: transform 0.5s var(--ease); }
.article__hero--clickable:hover img { transform: scale(1.02); }

/* ===== Галерея доп. фото в статье (сетка, не «друг под другом») ===== */
.article__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 30px 0;
}
.article__gallery[data-count="1"] { grid-template-columns: 1fr; }
.article__gallery-item {
  margin: 0;
  padding: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--cream-3);
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.article__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.article__gallery-item:hover { box-shadow: var(--sh-1); transform: translateY(-2px); }
.article__gallery-item:hover img { transform: scale(1.05); }
@media (min-width: 721px) {
  .article__gallery { grid-template-columns: repeat(3, 1fr); }
  .article__gallery[data-count="1"] { grid-template-columns: minmax(0, 520px); justify-content: center; }
  .article__gallery[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
  .article__gallery[data-count="4"] { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Lightbox (полноэкранный просмотр фото при клике) ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 8, 8, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(100%, 1600px);
  max-height: 100%;
  object-fit: contain;
  cursor: default;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 0.32s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.45); }
@media (max-width: 720px) {
  .lightbox { padding: 16px; }
  .lightbox__close { width: 40px; height: 40px; font-size: 24px; top: max(14px, env(safe-area-inset-top)); right: 14px; }
}
.article__head { margin-bottom: 36px; }
.article__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 20px;
}
.article__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.1;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text);
  margin: 0 0 18px;
}
.article__lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--text-2);
  line-height: 1.5;
}
.article__body { font-size: 1.05rem; color: var(--text); line-height: 1.75; }
.article__body p { margin: 0 0 22px; }
.article__body h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 36px 0 14px; color: var(--text); }
.article__body ul { padding-left: 20px; margin: 0 0 24px; }
.article__body li { margin-bottom: 10px; color: var(--text-2); }
.article__back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 28px;
  transition: color 0.2s var(--ease);
}
.article__back:hover { color: var(--gold-2); }
.article__share {
  display: flex; gap: 10px; padding-top: 32px; margin-top: 40px;
  border-top: 1px solid var(--line);
}
.article__share-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); margin-right: auto; align-self: center; }

/* =============================================================
   About page
   ============================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-numbers {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--white);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: var(--sh-3);
}
.about-numbers__cell {
  padding: 36px;
  border-right: 1px solid var(--line);
}
.about-numbers__cell:last-child { border-right: 0; }
.about-numbers__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 14px;
}
.about-numbers__num span { color: inherit; }
.about-numbers__lbl {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--text-mute);
  line-height: 1.4;
}
.about-body p { color: var(--text-2); margin: 0 0 18px; font-size: 1.05rem; }
.about-body .h-1 { margin-bottom: 22px; }
.about-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--text);
  border-left: 2px solid var(--gold);
  padding-left: 22px;
  margin-top: 32px;
  line-height: 1.4;
}

/* values cards */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 56px;
}
.value-card {
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.value-card__ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  display: grid; place-items: center;
  color: var(--gold-2);
}
.value-card .h-3 { color: var(--text); }
.value-card p { margin: 0; color: var(--text-2); font-size: 0.95rem; line-height: 1.55; }

/* services / what we do — bento */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 18px;
}
.bento__cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.bento__cell:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: var(--sh-1);
}
.bento__cell--wide { grid-column: span 2; }
.bento__cell--tall { grid-row: span 2; }
.bento__cell--full { grid-column: 1 / -1; }
/* feature-карточка раньше отличалась цветом — выровняли со всеми (только размер заголовка остаётся крупнее) */
.bento__num {
  position: absolute;
  top: 22px; right: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-fade);
}
.bento__ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  display: grid; place-items: center;
  color: var(--gold-2);
}
.bento__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}
.bento__cell--feature .bento__title { font-size: 1.7rem; }
.bento__text { color: var(--text-2); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* =============================================================
   Houses page
   ============================================================= */
.houses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}
/* Один дом — центрируем карточку, не растягиваем на всю ширину */
.houses-grid--single {
  display: flex;
  justify-content: center;
}
.houses-grid--single .house-card {
  width: 100%;
  max-width: 460px;
  flex: 0 0 auto;
}
/* Подпись "под управлением с …" в карточке дома */
.house-card__since {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  padding: 6px 10px;
  align-self: flex-start;
}

/* Карточка дома как ссылка + строка «Подробнее о доме →» */
a.house-card { text-decoration: none; color: inherit; }
.house-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding-top: 8px;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.house-card:hover .house-card__more { gap: 12px; color: var(--gold-2); }
.house-card__more svg { transition: transform 0.2s var(--ease); }
.house-card:hover .house-card__more svg { transform: translateX(3px); }
/* Большая шапка-фото на детальной странице дома */
.house-card__head--big { height: 340px; }

/* ===== Детальная страница дома (house.html) ===== */
.house-detail { max-width: 880px; margin: 0 auto; padding: 8px 0 0; }
.house-detail__head { margin: 18px 0 24px; }
.house-detail__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
  margin: 8px 0 10px;
}
.house-detail__hero {
  height: 440px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 28px;
  transition: transform 0.5s var(--ease);
}
.house-detail__hero:hover { transform: scale(1.01); }
.house-detail__body { margin-bottom: 32px; }
.house-detail__desc {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0 0 22px;
}
.house-detail__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 8px;
}

/* ===== Выбор дома — выпадающий список в разделе «Документы по домам» ===== */
.house-select-wrap {
  max-width: 460px;
  margin-bottom: 28px;
}
.house-select__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.house-select__box { position: relative; }
.house-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 14px 46px 14px 18px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.house-select:hover { border-color: var(--gold-line); }
.house-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.house-select__chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-mute);
}

/* ===== Поисковый выбор дома (новости / дома) ===== */
.news-house-picker { max-width: 460px; margin-bottom: 24px; }
.house-filter__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.house-filter { position: relative; }
.house-filter__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.house-filter__btn:hover { border-color: var(--gold-line); }
.house-filter.is-open .house-filter__btn {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.house-filter__current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.house-filter__chevron { flex-shrink: 0; color: var(--text-mute); transition: transform 0.2s var(--ease); }
.house-filter.is-open .house-filter__chevron { transform: rotate(180deg); }
.house-filter__panel {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--sh-2);
  padding: 10px;
  max-height: 340px;
  display: flex;
  flex-direction: column;
}
/* display:flex выше перебивает атрибут [hidden] — возвращаем скрытие по умолчанию */
.house-filter__panel[hidden] { display: none; }
.house-filter__search {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
}
.house-filter__search:focus { border-color: var(--gold); }
.house-filter__list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.house-filter__opt {
  text-align: left;
  padding: 11px 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.house-filter__opt:hover { background: var(--cream-3); color: var(--text); }
.house-filter__opt.is-active { background: var(--gold-soft); color: var(--gold-2); font-weight: 500; }
.house-filter__empty { padding: 12px; color: var(--text-mute); font-size: 0.9rem; text-align: center; }
.news-empty { color: var(--text-mute); font-size: 1rem; padding: 30px 0; }

/* Рамка-фрейм вокруг документов конкретного дома — золотой контур
   и тёплый фон визуально выделяют «это документы вашего дома». */
.house-docs__frame {
  background: var(--gold-soft);
  border: 1.5px solid var(--gold-line);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--sh-2);
}
.house-docs__frame .docs-group:last-child { margin-bottom: 0; }
/* Заголовок-шапка фрейма с адресом дома */
.house-docs__name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--text);
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--gold-line);
}
.house-docs__name svg { color: var(--gold-2); flex-shrink: 0; }

/* ===== Модалка дома (карточка поверх страницы) ===== */
.house-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(8, 8, 8, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}
.house-modal.is-open { opacity: 1; visibility: visible; }
.house-modal__card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s var(--ease);
  -webkit-overflow-scrolling: touch;
}
.house-modal.is-open .house-modal__card { transform: translateY(0) scale(1); }
.house-modal__hero {
  height: 240px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.house-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  font-size: 24px; line-height: 1;
  color: var(--text);
  cursor: pointer;
  display: grid; place-items: center;
  z-index: 2;
  transition: background 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.house-modal__close:hover { background: #fff; }
.house-modal__body { padding: 28px 30px 30px; }
.house-modal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--text);
  margin: 6px 0 4px;
  letter-spacing: -0.01em;
  line-height: 1.12;
}
.house-modal__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 0 20px;
}
.house-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 720px) {
  /* На мобильном модалка — нижний «лист» (bottom-sheet) */
  .house-modal { padding: 0; align-items: flex-end; }
  .house-modal__card {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .house-modal.is-open .house-modal__card { transform: translateY(0); }
  .house-modal__hero { height: 200px; border-radius: 24px 24px 0 0; }
  .house-modal__body { padding: 22px 20px 28px; }
  .house-docs__frame { padding: 18px 14px; }
}

@media (max-width: 720px) {
  .house-detail__hero { height: 240px; border-radius: 18px; }
  .house-detail__actions { flex-direction: column; }
  .house-detail__actions .btn { width: 100%; }
  .house-card__head--big { height: 220px; }
  .house-docs__name { font-size: 1.1rem; }
}
.house-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.house-card:hover { transform: translateY(-3px); border-color: var(--gold-line); box-shadow: var(--sh-1); }
.house-card__head {
  height: 160px;
  background:
    linear-gradient(180deg, rgba(17,17,17,0) 50%, rgba(17,17,17,0.7)),
    repeating-linear-gradient(0deg, var(--cream-3) 0 18px, var(--cream-2) 18px 36px),
    var(--cream-2);
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 18px 22px;
}
/* Карточка дома с реальным фото в шапке */
.house-card__head--photo {
  height: 220px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.house-card__head--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17,17,17,0) 45%, rgba(17,17,17,0.55) 100%);
  pointer-events: none;
}
.house-card__head--photo .badge,
.house-card__head--photo .num { z-index: 1; }
.house-card__head--photo .num { color: rgba(255,255,255,0.92); }
.house-card__head .num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 5vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
  position: absolute;
  right: 22px; bottom: 14px;
  color: var(--text-fade);
}
.house-card__head .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: var(--white);
  border: 1px solid var(--gold-line);
  padding: 5px 10px;
  border-radius: 6px;
  position: relative;
  z-index: 1;
}
.house-card__body {
  padding: 22px 24px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.house-card__addr {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.house-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.house-card__stat {
  display: flex; flex-direction: column; gap: 4px;
}
.house-card__stat strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.house-card__stat small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* =============================================================
   Contacts page
   ============================================================= */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-block {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
}
.contact-block__ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  display: grid; place-items: center; color: var(--gold-2);
}
.contact-block__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.contact-block__value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.contact-block__value a:hover { color: var(--gold-2); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--sh-1);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.input, .textarea {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-fade); }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.form-note { color: var(--text-mute); font-size: 0.82rem; max-width: 38ch; margin: 0; }
.form-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-2);
  min-height: 1.2em;
}

/* requisites table */
.reqs {
  margin-top: 56px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.reqs__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.reqs__row:last-child { border-bottom: 0; }
.reqs__row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0;
}
.reqs__row dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

/* =============================================================
   Documents page
   ============================================================= */
.docs-group { margin-bottom: 64px; }
.docs-group:last-child { margin-bottom: 0; }
.docs-group__head {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.docs-group__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 10px;
}
.docs-group__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  color: var(--text);
  margin: 0;
}
.docs-list { display: flex; flex-direction: column; gap: 12px; }
.doc-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.doc-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-line);
  box-shadow: var(--sh-1);
}
.doc-card__icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  display: grid;
  place-items: center;
  color: var(--gold-2);
  position: relative;
}
.doc-card__ext {
  position: absolute;
  bottom: -7px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 2px 5px;
  border-radius: 4px;
}
.doc-card__body { flex: 1; min-width: 0; }
.doc-card__name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.4;
  margin: 0 0 6px;
}
.doc-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.doc-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-fade); }
.doc-card__action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.doc-card:hover .doc-card__action { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.doc-card__action svg { transition: transform 0.25s var(--ease); }
.doc-card:hover .doc-card__action svg { transform: translateY(2px); }

/* Бейджи внутри названия документа (актуальный / архивный) */
.doc-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
  font-weight: 500;
}
.doc-card__badge--gold {
  color: var(--gold-2);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
}
.doc-card__badge--muted {
  color: var(--text-mute);
  background: rgba(28, 28, 28, 0.04);
  border: 1px solid var(--line);
}
/* Архивная карточка — приглушена, но кликабельна */
.doc-card--archived { opacity: 0.65; }
.doc-card--archived:hover { opacity: 1; }

/* ===== Чекбокс согласия на обработку ПД в форме контактов ===== */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 8px 0 4px;
  user-select: none;
}
.form-consent input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.form-consent__box {
  width: 20px; height: 20px;
  border: 1.5px solid var(--line-2);
  border-radius: 5px;
  background: var(--white);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.form-consent__box svg { opacity: 0; transition: opacity 0.18s var(--ease); color: var(--on-dark); }
.form-consent input:checked ~ .form-consent__box {
  background: var(--ink);
  border-color: var(--ink);
}
.form-consent input:checked ~ .form-consent__box svg { opacity: 1; }
.form-consent input:focus-visible ~ .form-consent__box {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.form-consent__text {
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.5;
}
.form-consent__text a {
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.form-consent__text a:hover { color: var(--gold-2); border-color: var(--gold-line); }

/* ===== Cookie-баннер ===== */
.cookie-banner {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 9000;
  display: none;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 16px;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.35);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.cookie-banner.is-visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner__text { flex: 1; min-width: 0; }
.cookie-banner__text a { color: var(--gold); border-bottom: 1px solid var(--gold-line); }
.cookie-banner__text a:hover { color: #fff; }
.cookie-banner__btn {
  padding: 9px 18px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 0.18s var(--ease);
  flex-shrink: 0;
}
.cookie-banner__btn:hover { background: #fff; }
@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 68px);  /* над tabbar'ом */
    font-size: 0.84rem;
    gap: 10px;
  }
  .cookie-banner__btn { width: 100%; padding: 11px 18px; }
}

/* ===== Текстовые информационные блоки в раскрытии информации ===== */
.docs-info {
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.65;
}
.docs-info p { margin: 0 0 12px; }
.docs-info p:last-child { margin-bottom: 0; }
.docs-info strong { color: var(--text); font-weight: 500; }
.docs-info a { color: var(--gold-2); border-bottom: 1px solid var(--gold-line); transition: color 0.18s var(--ease); }
.docs-info a:hover { color: var(--gold); }
.docs-info__list { padding-left: 22px; margin: 12px 0; }
.docs-info__list li { margin-bottom: 6px; }
.docs-info__table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.92rem;
}
.docs-info__table th,
.docs-info__table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.docs-info__table th {
  background: var(--cream-3);
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
  width: 38%;
}
.docs-info__table thead th { background: var(--ink); color: var(--on-dark); }
.docs-info__pending {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-mute);
  font-style: italic;
}
.docs-info .muted {
  display: block;
  font-size: 0.84rem;
  color: var(--text-mute);
  margin-top: 4px;
  font-weight: 400;
  font-style: italic;
}

/* ===== Карточка-заглушка для документа в процессе подготовки ===== */
.docs-placeholder {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 26px;
  background: rgba(28, 28, 28, 0.02);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.docs-placeholder + .docs-placeholder { margin-top: 12px; }
.docs-placeholder:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.docs-placeholder__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.docs-placeholder__body { flex: 1; min-width: 0; }
.docs-placeholder__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.35;
}
.docs-placeholder__hint {
  font-size: 0.88rem;
  color: var(--text-mute);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .docs-info { padding: 18px 16px; font-size: 0.92rem; }
  /* На мобильном таблицы «ключ-значение» превращаются в стек карточек —
     никаких узких колонок, никаких обрезаний, никакого скоса. */
  .docs-info__table,
  .docs-info__table tbody,
  .docs-info__table tr,
  .docs-info__table th,
  .docs-info__table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .docs-info__table { margin: 12px 0; }
  /* thead с заголовками колонок («Действие / Норматив», «Орган / Контакты»)
     на мобильном теряет смысл — у нас уже не строки, а карточки. Скрываем. */
  .docs-info__table thead { display: none; }
  .docs-info__table tr {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
  }
  .docs-info__table tr:last-child { margin-bottom: 0; }
  /* Сбрасываем тяжёлые стили десктоп-таблицы и убираем рамки между строками */
  .docs-info__table th,
  .docs-info__table td {
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
  }
  /* th в первой ячейке строки = метка (label) — мелким моноширным капсом */
  .docs-info__table th {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    line-height: 1.4;
  }
  /* для таблиц где нет th в строке (есть только td) — первая td играет роль label */
  .docs-info__table tr > td:first-child:not(:only-child) {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    line-height: 1.4;
  }
  /* td = значение — обычный текст основного цвета */
  .docs-info__table td {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.5;
  }
  .docs-info__table tr > td:first-child:not(:only-child) ~ td {
    font-size: 0.92rem;
    color: var(--text);
  }
  .docs-info__pending { font-size: 0.84rem; }

  .docs-placeholder { padding: 16px 18px; gap: 14px; }
  .docs-placeholder__icon { width: 36px; height: 36px; font-size: 18px; }
  .docs-placeholder__title { font-size: 0.94rem; }
  .docs-placeholder__hint { font-size: 0.82rem; }
}

@media (max-width: 720px) {
  .doc-card { flex-wrap: wrap; gap: 14px; padding: 18px 20px; }
  .doc-card__body { flex-basis: calc(100% - 68px); }
  .doc-card__action { width: 100%; justify-content: center; }
  .docs-group { margin-bottom: 48px; }
}

/* =============================================================
   Section teasers (home)
   ============================================================= */
.teasers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.teaser {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
  display: flex; flex-direction: column;
  gap: 20px;
  min-height: 280px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.teaser:hover { transform: translateY(-3px); border-color: var(--gold-line); box-shadow: var(--sh-2); }
.teaser__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.teaser__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-fade);
}
.teaser__arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.teaser:hover .teaser__arrow { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.teaser__title { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--text); margin: 0; letter-spacing: -0.015em; line-height: 1.1; }
.teaser__text { color: var(--text-2); margin: 0; max-width: 38ch; }
.teaser__foot {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
}

/* =============================================================
   Footer
   ============================================================= */
.footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: 64px 0 28px;
  border-top: 1px solid var(--ink-3);
}
.footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer__lead { color: var(--on-dark-mute); font-size: 0.92rem; max-width: 36ch; line-height: 1.6; }
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer__list { display: flex; flex-direction: column; gap: 8px; }
.footer__list a { color: var(--on-dark); font-size: 0.93rem; transition: color 0.2s var(--ease); }
.footer__list a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid var(--ink-3);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--on-dark-mute);
  font-size: 0.82rem;
}

/* =============================================================
   Reveal
   ============================================================= */
/* ===== Reveal-on-scroll: плавное появление снизу при попадании в viewport ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
/* Уважаем системную настройку пользователя «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================================
   Responsive
   ============================================================= */

/* ---------- TABLET LARGE (1024-1100) ---------- */
@media (max-width: 1100px) {
  :root { --section-pad: 76px; --gutter: 32px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer__col--hide-md { display: none; }
}

/* ---------- TABLET SMALL (≤920) ---------- */
@media (max-width: 920px) {
  .about-grid, .contacts-grid, .page-head .container { grid-template-columns: 1fr; }
  .teasers { grid-template-columns: 1fr; }
  .news-slider__track { grid-auto-columns: calc(50% - 12px); }
  .about-numbers { grid-template-columns: 1fr; }
  .about-numbers__cell { border-right: 0; padding: 28px; }
  .about-numbers__cell:nth-child(n) { border-bottom: 1px solid var(--line); }
  .about-numbers__cell:last-child { border-bottom: 0; }
  .page-head .container .page-head__meta {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 6px;
  }
}

/* =============================================================
   Houses CTA-блок (страница «Дома»)
   ============================================================= */
.houses-cta-box {
  margin-top: 96px;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.houses-cta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

/* =============================================================
   Мобильная нижняя панель-вкладки (база — скрыта на десктопе)
   ============================================================= */
.tabbar { display: none; }

/* ---------- MOBILE (≤720) — app-like редизайн ---------- */
@media (max-width: 720px) {
  :root {
    --gutter: 14px;
    --header-h: 54px;
  }

  /* ===== нижняя панель-вкладки ===== */
  .tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    display: flex;
    background: rgba(15, 15, 15, 0.94);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 -10px 30px -14px rgba(0, 0, 0, 0.55);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 2px 8px;
    color: #8c8c8c;
    position: relative;
    transition: color 0.18s var(--ease), transform 0.12s var(--ease);
  }
  .tabbar__item.is-active { color: var(--gold); }
  .tabbar__item.is-active::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 2.5px;
    background: var(--gold);
    border-radius: 0 0 3px 3px;
  }
  .tabbar__item:active { transform: scale(0.92); }
  .tabbar__ico { display: grid; place-items: center; }
  .tabbar__ico svg { width: 21px; height: 21px; }
  .tabbar__lbl {
    font-family: var(--font-sans);
    font-size: 9.5px;
    font-weight: 500;
    white-space: nowrap;
  }

  /* ===== каркас ===== */
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
  .main { padding-top: var(--header-h); }

  /* ===== верхняя шапка — узкая, только лого + телефон ===== */
  .header {
    height: var(--header-h);
    padding: 0 14px;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .header__inner { grid-template-columns: 1fr auto; gap: 10px; }
  .header__name-wrap .header__sub { display: none; }
  .header__name { font-size: 0.82rem; }
  .header__mark { min-width: 44px; height: 28px; padding: 0 8px; font-size: 9px; letter-spacing: 0.04em; }
  .nav, .header__burger { display: none; }
  .nav__drawer { display: none !important; }
  .header__cta {
    width: 38px; height: 38px;
    padding: 0;
    font-size: 0;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    gap: 0;                  /* убираем gap «иконка↔текст» из десктоп-стиля — иначе svg смещена влево */
  }
  .header__cta svg { width: 16px; height: 16px; flex-shrink: 0; }

  /* ===== секции = карточки-блоки ===== */
  .section {
    margin: 12px;
    padding: 24px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--sh-1);
    overflow: hidden;
  }
  .section .container { padding: 0; max-width: none; }
  .section--transition,
  .section--cream2,
  .section--cream3 { background: var(--white); }
  /* секция новостей на мобильном — светлая карточка,
     значит заголовок/счётчик должны быть тёмными (а не светлыми, как на ПК) */
  .section--transition .news-slider__head .h-1 { color: var(--text); }
  .section--transition .news-slider__head .news-slider__counter { color: var(--text-mute); }

  .section-head { grid-template-columns: 1fr; margin-bottom: 18px; gap: 6px; }
  .eyebrow { font-size: 10px; margin-bottom: 10px; }
  .eyebrow::before { width: 20px; }
  .h-1 { font-size: clamp(1.5rem, 6.4vw, 1.95rem); }
  .lead { font-size: 0.94rem; line-height: 1.6; }

  /* ===== HERO — компактная карточка со скруглением ===== */
  .hero {
    margin: 12px;
    min-height: 0;
    height: 74vh;
    max-height: 580px;
    padding-top: 0;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--sh-2);
  }
  /* в мобильной карточке видео заполняет блок (как было со старым видео) */
  .hero__video { object-fit: cover; object-position: center; }
  .hero__content { padding: 0 24px; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.7rem); line-height: 1.06; margin-bottom: 14px; }
  .hero__title small { font-size: 10px; letter-spacing: 0.12em; margin-bottom: 10px; }
  .hero__sub { font-size: 0.92rem; margin: 0 auto 22px; max-width: 100%; }
  .hero__cta { flex-direction: column; width: 100%; gap: 9px; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; padding: 13px 20px; }
  .hero__scroll { display: none; }

  /* ===== карусели (свайп вбок) ===== */
  .news-slider__head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
  .news-slider__controls { display: none; }
  .news-slider__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -18px;
    padding: 2px 18px 12px;
  }
  .news-slider__viewport::-webkit-scrollbar { display: none; }
  .news-slider__track {
    display: flex !important;
    grid-auto-columns: unset;
    gap: 12px;
    transform: none !important;
    transition: none;
  }
  .news-slider__track .news-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
    min-height: auto;
  }
  .news-slider__track .news-card__body { padding: 16px 18px 20px; gap: 9px; }
  .news-slider__track .news-card__title { font-size: 1.05rem; }
  .news-slider__track .news-card__excerpt { font-size: 0.88rem; }

  /* услуги (bento) — карусель */
  .bento {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin: 0 -18px;
    padding: 2px 18px 12px;
  }
  .bento::-webkit-scrollbar { display: none; }
  .bento__cell,
  .bento__cell--wide,
  .bento__cell--tall,
  .bento__cell--full {
    flex: 0 0 76%;
    grid-column: auto;
    grid-row: auto;
    scroll-snap-align: start;
    padding: 22px;
  }
  .bento__cell--feature .bento__title { font-size: 1.4rem; }

  /* дома — карусель */
  .houses-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin: 0 -18px;
    padding: 2px 18px 12px;
  }
  .houses-grid::-webkit-scrollbar { display: none; }
  .house-card { flex: 0 0 80%; scroll-snap-align: start; }

  /* ===== about — числа: вертикальный стек на мобильном ===== */
  .about-grid { grid-template-columns: 1fr; gap: 22px; }
  .about-numbers { border-radius: 20px; }
  .about-numbers__cell {
    padding: 18px 16px;
    border-right: 0;
  }
  /* Цифры — по центру, подпись остаётся слева */
  .about-numbers__num {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
    margin-bottom: 8px;
    text-align: center;
  }
  .about-numbers__lbl { font-size: 0.76rem; }
  .about-body p { font-size: 0.95rem; }
  .about-quote { font-size: 1.08rem; padding-left: 16px; margin-top: 22px; }

  /* ценности — 2 колонки */
  .values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 26px;
  }
  .value-card {
    box-sizing: border-box;
    width: 100%;
    height: 280px;                  /* ФИКСИРОВАННАЯ высота — все 4 карточки 100% одного размера */
    margin: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .value-card__ico { width: 36px; height: 36px; flex-shrink: 0; }
  .value-card .h-3 { font-size: 1rem; line-height: 1.3; margin: 0; }
  .value-card p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 8;          /* максимум 8 строк, не вылезет за карточку */
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
  }

  /* тизеры (home «Куда дальше») */
  .teasers { grid-template-columns: 1fr; gap: 12px; }
  .teaser { padding: 24px; min-height: 0; border-radius: 22px; }
  .teaser__title { font-size: 1.5rem; }

  /* houses CTA */
  .houses-cta-box { margin-top: 28px; padding: 24px; border-radius: 22px; }
  .houses-cta { grid-template-columns: 1fr; gap: 18px; }

  /* ===== page-head — карточка ===== */
  .page-head {
    margin: 12px;
    padding: 22px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 26px;
  }
  .page-head .container { grid-template-columns: 1fr; gap: 14px; padding: 0; max-width: none; }
  .page-head__title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .page-head__crumbs { font-size: 10px; }
  .page-head .container .page-head__meta {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 2px;
  }

  /* ===== news.html — просторные мини-карточки ===== */
  .news-grid { grid-template-columns: 1fr; gap: 12px; }
  .news-grid .news-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 0;
    padding: 10px;
    gap: 14px;
  }
  .news-grid .news-card__media {
    flex: 0 0 104px;
    width: 104px;
    aspect-ratio: auto;
    border-radius: 16px;
    overflow: hidden;
  }
  .news-grid .news-card__body {
    padding: 6px 6px 6px 0;
    gap: 9px;
    justify-content: center;
  }
  .news-grid .news-card__meta { font-size: 10px; gap: 8px; }
  .news-grid .news-card__title { font-size: 1rem; line-height: 1.32; }
  .news-grid .news-card__excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-grid .news-card__more { display: none; }

  /* chips — горизонтальный скролл */
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -18px 16px;
    padding: 0 18px 4px;
    gap: 7px;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; padding: 8px 13px; font-size: 10px; }

  /* ===== contacts ===== */
  .contacts-grid { grid-template-columns: 1fr; gap: 14px; }
  .contact-block { padding: 16px; gap: 12px; }
  .contact-block__value { font-size: 0.96rem; }
  .contact-form { padding: 20px; border-radius: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form-foot { grid-template-columns: 1fr; gap: 12px; }
  .form-foot .btn { width: 100%; justify-content: center; }
  .reqs { border-radius: 16px; }
  .reqs__row { grid-template-columns: 1fr; gap: 3px; padding: 14px 16px; }

  /* ===== documents ===== */
  .docs-group { margin-bottom: 28px; }
  .doc-card { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .doc-card__body { flex-basis: calc(100% - 60px); }
  .doc-card__action { width: 100%; justify-content: center; }

  /* ===== article (news-article.html) — карточка ===== */
  .article {
    margin: 12px;
    padding: 22px 18px 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 26px;
    max-width: none;
  }
  .article__hero { border-radius: 18px; margin-bottom: 22px; }
  .article__hero--full img { max-height: 70vh; }
  .article__hero--cover { aspect-ratio: 4/3; }
  .article__title { font-size: clamp(1.6rem, 7.4vw, 2.1rem); }
  .article__lead { font-size: 1rem; }
  .article__body { font-size: 0.96rem; line-height: 1.7; }
  .article__body h2 { font-size: 1.22rem; margin: 24px 0 10px; }
  .article__share { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 22px; }
  .article__share-label { margin-right: 0; }
  .article__share .btn { width: 100%; justify-content: center; }

  /* ===== footer — тёмная карточка ===== */
  .footer {
    margin: 12px;
    padding: 28px 20px 24px;
    border: 1px solid var(--ink-3);
    border-radius: 26px;
  }
  .footer .container { padding: 0; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 24px; }
  .footer__lead { font-size: 0.85rem; }
  .footer__bottom { font-size: 0.76rem; flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- ULTRA-MOBILE (≤380) ---------- */
@media (max-width: 380px) {
  .tabbar__lbl { font-size: 8.5px; }
  .tabbar__ico svg { width: 20px; height: 20px; }
  .hero__title { font-size: clamp(1.75rem, 8.5vw, 2.2rem); }
  .footer__cols { grid-template-columns: 1fr; gap: 18px; }
  .values-grid { grid-template-columns: 1fr; }
  .news-slider__track .news-card { flex-basis: 86%; }
  .bento__cell, .bento__cell--wide, .bento__cell--tall, .bento__cell--full { flex-basis: 84%; }
  .house-card { flex-basis: 86%; }
  .news-grid .news-card__media { flex-basis: 88px; width: 88px; }
}

/* ---------- Touch-friendly tweaks (любые тач-устройства) ---------- */
@media (hover: none) {
  .news-card:hover { transform: none; }
  .bento__cell:hover { transform: none; }
  .house-card:hover { transform: none; }
  .teaser:hover { transform: none; }
  .card:hover { transform: none; }
  .news-card:hover .news-card__img { transform: none; }
  .teaser:hover .teaser__arrow { background: transparent; color: var(--text); border-color: var(--line-2); }
}
