/* =============================================================
   ООО УК «Уточняется» — design system
   Style: premium corporate · Apple × Tesla × Stripe × banking
   Palette: graphite #111111 + navy #0D1B2A + white + gold #C9A86A
            on a cool light-gray canvas #F8F9FA, glassmorphism surfaces
   Typography: Fraunces (display, light serif) + Geist (UI / body) + Geist Mono
   ============================================================= */

:root {
  /* surfaces — DARK NAVY theme × blue/teal/amber accents */
  /* ===== Скандинавская ЖКХ-тема: зелёный + песок на светлом ===== */
  --ink:           #1F2A2E;   /* тёмные секции / подвал (тёмно-зелёный графит) */
  --ink-2:         #2C3A3D;
  --ink-3:         #3A4A4D;
  --navy:          #1F2A2E;
  --navy-2:        #283638;
  --cream:         #F5F6F4;   /* фон страницы */
  --cream-2:       #FFFFFF;   /* карточки — белые */
  --cream-3:       #EEF4EA;   /* вторичная зелёная подложка */
  --blue-soft:     #E8F2F8;   /* светло-голубые секции */
  --white:         #FFFFFF;
  --card-hover:    #FFFFFF;

  /* brand accents */
  --brand:         #6B8E5E;   /* основной зелёный */
  --brand-2:       #567049;   /* тёмный зелёный (hover/текст) */
  --teal:          #6B8E5E;
  --teal-2:        #7DA06D;
  --amber:         #F4D47A;   /* песочный акцент */
  --amber-2:       #E6C25E;
  --hero-grad:     linear-gradient(135deg, #6B8E5E 0%, #7DA06D 100%);

  /* glass — мягкое полупрозрачное на светлом */
  --glass-bg:      #FFFFFF;
  --glass-bg-2:    #FFFFFF;
  --glass-border:  #E7EAE6;
  --glass-dark:    rgba(31, 42, 46, 0.6);
  --glass-blur:    blur(0px);

  /* text */
  --text:          #1F2A2E;   /* основной тёмный */
  --text-2:        #5C6B66;   /* вторичный */
  --text-mute:     #8A968F;   /* приглушённый */
  --text-fade:     #B4BEB8;   /* бледный */

  /* текст на тёмных поверхностях (подвал) */
  --on-dark:       #FFFFFF;
  --on-dark-mute:  rgba(255, 255, 255, 0.72);

  /* accent system (репёрпоз «gold» → основной ЗЕЛЁНЫЙ) */
  --gold:          #6B8E5E;
  --gold-2:        #567049;
  --gold-soft:     rgba(107, 142, 94, 0.12);
  --gold-line:     rgba(107, 142, 94, 0.30);

  /* lines — мягкие бордеры */
  --line:          #E7EAE6;
  --line-2:        #DBE0D8;

  /* radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* shadow — мягкие нейтральные */
  --sh-1: 0 1px 2px rgba(0,0,0,0.04), 0 6px 18px -12px rgba(0,0,0,0.14);
  --sh-2: 0 2px 4px rgba(0,0,0,0.05), 0 18px 40px -20px rgba(0,0,0,0.16);
  --sh-3: 0 4px 8px rgba(0,0,0,0.05), 0 32px 64px -28px rgba(0,0,0,0.18);

  /* 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: 116px;
  --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: rgba(31, 42, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 24px -16px rgba(0,0,0,0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  transition: background 0.3s var(--ease), box-shadow 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: var(--hero-grad);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  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: 600;
  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(--amber); }
.nav__link.is-active { color: var(--amber); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-pill);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;     /* ровные цифры одинаковой ширины */
  white-space: nowrap;                    /* номер не переносится */
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.header__cta:hover { border-color: var(--amber); color: var(--amber); background: rgba(255,255,255,0.04); }
.header__cta svg { color: var(--amber); flex-shrink: 0; }

.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: rgba(31, 42, 46, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  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: var(--gold-soft); }
.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(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 10px 24px -12px rgba(107,142,94,0.5);
}
.btn--gold:hover { background: var(--brand-2); border-color: var(--brand-2); transform: translateY(-1px); }
.btn--ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-2); background: var(--gold-soft); }
.btn--icon { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.btn--on-dark { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 10px 24px -12px rgba(0,0,0,0.4); }
.btn--on-dark:hover { background: var(--brand-2); border-color: var(--brand-2); transform: translateY(-1px); }

/* =============================================================
   HERO (home) — video bg
   ============================================================= */
.hero {
  position: relative;
  min-height: 96vh;            /* почти на весь экран — снизу лишь тонкая полоска начала 2-го блока */
  margin-top: calc(0px - var(--header-h));
  padding-top: var(--header-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
/* видео на весь фон hero */
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #1F2A2E; }
.hero__media-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;   /* видео приподнято — виден весь дом, низ обрезан */
  display: block;
  filter: brightness(0.98) saturate(1.04);   /* почти натуральная яркость — двор и площадка хорошо видны */
  opacity: 0;
  transition: opacity 0.9s linear;
  will-change: opacity;
}
.hero__media-video.hmv--a { opacity: 1; }     /* стартовый слой виден */
/* небольшое затемнение СЛЕВА под контент; справа — чистое, яркое видео (виден дом) */
.hero__scrim {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(18,26,28,0.66) 0%,
      rgba(20,28,30,0.42) 26%,
      rgba(18,26,28,0.14) 46%,
      rgba(18,26,28,0) 62%,
      rgba(18,26,28,0) 100%);
}
/* контент слева (между 1/4 и 2/4) */
.hero__panel {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;          /* вертикальное центрирование — ок */
  justify-content: flex-start;  /* горизонтально — слева */
}
.hero__content {
  text-align: left;
  width: clamp(560px, 42vw, 680px);   /* колонка слева */
  max-width: calc(100% - 200px);
  margin: 0;                    /* НЕ auto */
  margin-left: clamp(110px, 8vw, 200px);  /* отступ от левого края */
  margin-right: auto;
  padding: 0;
}
.hero .hero__sub { font-size: clamp(1.12rem, 1.5vw, 1.45rem); line-height: 1.6; max-width: 100%; margin-left: 0; margin-right: 0; }
.hero .hero__eyebrow { font-size: 12px; padding: 9px 18px 9px 14px; }
.hero .hero__stat-num { font-size: 2rem; }
.hero .hero__title,
.hero .hero__sub { text-shadow: 0 1px 16px rgba(10,16,18,0.45); }

/* текст hero — светлый на зелёной панели */
.hero .hero__title {
  color: #fff;
  font-weight: 500;
  font-size: clamp(2.6rem, 4vw, 4.4rem);   /* меньше — название не доминирует */
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero .hero__title small {
  font-size: 13px;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.hero .hero__title-name { color: var(--amber); text-shadow: none; }
.hero .hero__title small { color: rgba(255,255,255,0.78); text-shadow: none; }
.hero .hero__sub { color: rgba(255,255,255,0.9); text-shadow: none; }
.hero .hero__eyebrow {
  background: rgba(18,26,28,0.55);
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero .hero__eyebrow .dot { background: var(--brand); box-shadow: 0 0 0 3px rgba(107,142,94,0.25); }
.hero .hero__stat {
  background: rgba(18,26,28,0.55);
  border-color: rgba(255,255,255,0.12);
  box-shadow: none;
  padding: 20px 36px;
  border-radius: var(--r-md);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero .hero__stat-num { color: #fff; font-size: 2.3rem; }
.hero .hero__stat-lbl { color: rgba(255,255,255,0.7); font-size: 11px; }
.hero__stats { gap: 16px; margin-top: 46px; }
/* крупные кнопки в hero */
.hero .hero__cta { gap: 14px; }
.hero .hero__cta .btn { padding: 17px 32px; font-size: 1.06rem; }
/* кнопки как на фото: первая — белая, вторая — тёмная сплошная */
.hero .btn--on-dark { background: #fff; color: var(--brand-2); border-color: #fff; box-shadow: none; }
.hero .btn--on-dark:hover { background: var(--amber); color: #3A2E00; border-color: var(--amber); }
.hero .btn--ghost { background: rgba(18,26,28,0.62); color: #fff; border-color: rgba(255,255,255,0.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .btn--ghost:hover { background: rgba(18,26,28,0.8); border-color: rgba(255,255,255,0.3); color: #fff; }

/* ===== Переходная секция (Новости): плавный navy-градиент из hero в фон ===== */
.section--transition {
  position: relative;
  padding-top: 140px;
  padding-bottom: 56px;
  background: linear-gradient(180deg, var(--cream-3) 0%, var(--cream) 100%);
}
/* Плавный переход от hero (тёмно-зелёный --ink, как у видео/чипа «Управляющая компания · Копейск»)
   к светлому фону новостей — чтобы не было резкой белой полоски на стыке блоков. */
.section--transition::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    var(--ink) 0%,
    var(--ink) 14%,
    rgba(31,42,46,0.85) 38%,
    rgba(31,42,46,0.46) 62%,
    rgba(31,42,46,0.15) 83%,
    rgba(31,42,46,0) 100%);
}
.section--transition > .container { position: relative; z-index: 1; }
/* блок «О компании» — компактнее, меньше пустоты сверху */
#aboutTeaser { padding-top: 36px; padding-bottom: 80px; }
/* типографика заголовка новостей — тёмная (как было) */
.section--transition .news-slider__head .eyebrow      { color: var(--gold-2); }
.section--transition .news-slider__head .eyebrow::before { background: var(--gold-2); opacity: 0.7; }
.section--transition .news-slider__head .h-1         { color: var(--text); }
.section--transition .news-slider__head .news-slider__counter { color: var(--text-mute); }
.section--transition .news-slider__head .btn--ghost {
  color: var(--text);
  border-color: var(--line-2);
}
.section--transition .news-slider__head .btn--ghost:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-2);
}
.hero__corner {
  /* водяной знак вырезан из самого видеофайла — угловая маска не нужна */
  display: none;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 64% at 50% 48%, rgba(8,12,20,0.42) 0%, rgba(8,12,20,0.14) 60%, transparent 82%),
    linear-gradient(180deg, rgba(8,12,20,0.42) 0%, rgba(8,12,20,0.12) 34%, rgba(8,12,20,0.52) 78%, rgba(8,12,20,0.9) 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: left;
  padding: 0;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 28px;
}
.hero__eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
.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 24px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.4);
}
.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.82);
  margin-bottom: 22px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
}
.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.95;
  text-shadow: 0 1px 14px rgba(0,0,0,0.5);
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
.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: rgba(255,255,255,0.9);
  text-shadow: 0 1px 10px rgba(10,16,18,0.6);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll .line {
  width: 2px; height: 44px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--amber));
  box-shadow: 0 0 8px rgba(244,212,122,0.5);
  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(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-line);
  box-shadow: var(--sh-2);
}

/* =============================================================
   News list
   ============================================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--glass-bg-2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--sh-1);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.news-card:hover {
  transform: translateY(-6px);
  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); }

/* ===== 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: 1fr 1fr;   /* колонки уравновешены */
  gap: 52px;
  align-items: start;               /* выравнивание по верху */
}
/* правая колонка: фото опущено до уровня заголовка «О компании» */
.about-media { display: flex; flex-direction: column; gap: 18px; margin-top: 43px; }
.about-photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  height: clamp(210px, 19vw, 270px);   /* фото меньше — блок компактнее */
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-media .about-numbers__cell { padding: 22px 16px; }
.about-media .about-numbers__num { font-size: clamp(1.8rem, 2.3vw, 2.25rem); margin-bottom: 6px; }
.about-media .about-numbers__lbl { font-size: 11.5px; line-height: 1.4; }
.about-numbers {
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--glass-bg-2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  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: var(--text-mute); }
.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-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 460px;
}
.house-select__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.house-select__wrap { position: relative; }
.house-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 14px 46px 14px 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  background: var(--glass-bg-2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--sh-1);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s var(--ease);
}
.house-select:hover { border-color: var(--gold-line); }
.house-select:focus { outline: none; border-color: var(--gold); }
.house-select option { background: #FFFFFF; color: var(--text); }
.house-select__chev {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-2);
  pointer-events: none;
}

/* ===== Поиск по домам ===== */
/* ===== Поисковый выпадающий выбор дома (страницы «Дома» / «Новости») ===== */
.houses-picker { max-width: 520px; margin-bottom: 26px; }
.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-house-picker { max-width: 460px; margin-bottom: 24px; }
.news-empty { color: var(--text-mute); font-size: 1rem; padding: 30px 0; }

/* ===== Галерея доп. фото в статье (сетка) ===== */
.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); }
}

/* ===== Кнопки «Поделиться» в статье ===== */
.article__share-actions { display: flex; align-items: center; gap: 8px; }
.article__share > .btn { margin-left: auto; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--white); color: var(--text-2);
  cursor: pointer; transition: color .2s ease, border-color .2s ease, transform .2s ease, background .2s ease;
}
.share-btn:hover { color: var(--gold-2); border-color: var(--gold); transform: translateY(-2px); }
.share-btn svg { width: 18px; height: 18px; display: block; }
.share-btn__wm { font-family: var(--font-mono); font-weight: 600; font-size: 11px; letter-spacing: 0.03em; line-height: 1; }
.share-btn--copied { color: var(--gold-2); border-color: var(--gold); }

/* =============================================================
   PREMIUM POLISH — ambient depth, accents, micro-life
   ============================================================= */

/* Декоративные слои фона отключены — чистый белый лист */
body::before, body::after, .main::before { display: none; }

/* Акцент-линия карточек (пока нейтральная) */
.teaser, .news-card, .house-card, .card, .value-card, .bento__cell, .contact-block {
  position: relative;
}
.teaser::after, .news-card::after, .house-card::after,
.card::after, .value-card::after, .bento__cell::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand) 38%, var(--amber) 72%, transparent);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.teaser:hover::after, .news-card:hover::after, .house-card:hover::after,
.card:hover::after, .value-card:hover::after, .bento__cell:hover::after {
  opacity: 1;
  transform: scaleX(1);
}
.teaser:hover, .news-card:hover, .house-card:hover, .value-card:hover {
  box-shadow: var(--sh-2), 0 0 40px -16px rgba(107,142,94,0.35) !important;
}

/* Заголовки — тёмный цвет */
.h-display, .page-head__title.h-display {
  color: var(--text);
}

/* Hero: название компании — песочный акцент на фото */
.hero__title-name {
  color: var(--amber);
  text-shadow: 0 2px 24px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.4);
}

/* Hero: строка ключевых цифр */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 40px;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 26px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero__stat-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .hero__stats { gap: 10px; }
  .hero__stat { padding: 11px 16px; flex: 1 1 28%; }
  .hero__stat-num { font-size: 1.35rem; }
}

/* Рамка-фрейм вокруг документов конкретного дома — золотой контур
   и тёплый фон визуально выделяют «это документы вашего дома». */
.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(8, 16, 25, 0.66);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 24px; line-height: 1;
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  z-index: 2;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.house-modal__close:hover { background: rgba(8, 16, 25, 0.85); border-color: var(--gold); }
.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(--glass-bg-2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex; flex-direction: column;
}
.house-card:hover { transform: translateY(-6px); border-color: var(--gold-line); box-shadow: var(--sh-2); }
.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(--glass-border);
  border-radius: var(--r-md);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--sh-1);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-block:hover { transform: translateY(-3px); border-color: var(--gold-line); box-shadow: var(--sh-2); }
.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(--glass-bg-2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--sh-2);
}
.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(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.doc-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: var(--sh-2);
}
.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: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 0.18s var(--ease);
  flex-shrink: 0;
}
.cookie-banner__btn:hover { background: var(--brand-2); }
@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(13, 27, 42, 0.03);
  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(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: 40px;
  display: flex; flex-direction: column;
  gap: 20px;
  min-height: 280px;
  box-shadow: var(--sh-1);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.teaser:hover { transform: translateY(-6px); border-color: var(--gold-line); box-shadow: var(--sh-3); }
.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-mute);
  padding: 72px 0 28px;
  border-top: 1px solid var(--line);
}
.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 .header__name { color: var(--on-dark); }
.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(--amber);
  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; }
  .about-media { margin-top: 0; }
  .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(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 26px -16px rgba(0, 0, 0, 0.25);
    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::before { display: none; }   /* на мобильном hero — отдельная карточка, стык не нужен */
  .section--transition { padding-top: 56px; }
  /* секция новостей на мобильном — светлая карточка,
     значит заголовок/счётчик должны быть тёмными (а не светлыми, как на ПК) */
  .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__scrim {
    background: linear-gradient(180deg, rgba(20,28,30,0.18) 0%, rgba(20,28,30,0.30) 45%, rgba(20,28,30,0.70) 100%);
  }
  .hero__panel { align-items: center; justify-content: center; }
  .hero__content { padding: 0 22px; width: auto; max-width: 100%; margin: 0 auto; text-align: center; }
  .hero .hero__eyebrow { display: none; }   /* в исходном виде бейджа не было */
  .hero .hero__stats { display: none; }     /* и карточек-цифр не было */
  /* компактная типографика по центру (специфичность .hero .hero__* — чтобы перебить десктоп) */
  .hero .hero__title {
    font-size: clamp(1.7rem, 7.4vw, 2.2rem);
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 14px;
  }
  .hero .hero__title small {
    display: block;
    font-size: 9.5px;
    letter-spacing: 0.14em;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  .hero .hero__title-name { display: block; }   /* название отдельной строкой, ровно по центру */
  .hero .hero__sub { font-size: 0.9rem; line-height: 1.5; margin: 0 auto 20px; max-width: 100%; }
  .hero__cta { flex-direction: column; width: 100%; gap: 10px; 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); }
}
