/* ==========================================================================
   Риэлтком — агентство недвижимости, Благовещенск
   Дизайн-система «Четыре квадрата»: знак 2×2 → модульная сетка страницы.
   Палитра: графит + песочное золото + тёплая «бумага», красный — микро-акцент.
   Радиусы 0, тени 0, глубина — плоскостями и линиями 1px.
   ========================================================================== */

:root {
  color-scheme: light only;
  --graphite-900: #1B1B1D;
  --graphite-800: #232326;
  --graphite-700: #3D3D41;
  --graphite-500: #6E6E74;
  --gold-500: #D4A76A;
  --gold-600: #B98A4C;
  --gold-700: #8F6A36;
  --gold-100: #F3E6D0;
  --sand-50: #FAF7F1;
  --white: #FFFFFF;
  --red-500: #C4302B;
  --line: #E4DDD1;
  --line-dark: #2E2E32;
  --on-dark: #F5F1EA;
  --on-dark-soft: rgba(245, 241, 234, .68);

  --font-display: 'Unbounded', Arial, Helvetica, sans-serif;
  --gold-text: #B98A4C;
  --font-body: 'Golos Text', 'Segoe UI', Roboto, Arial, sans-serif;

  --container: 1280px;
  --gutter: 24px;
  --header-h: 80px;
  --header-h-compact: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 150ms;
  --t-base: 400ms;
}

@media (min-width: 1024px) { :root { --gutter: 40px; } }
@media (max-width: 480px) { :root { --gutter: 18px; } }

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite-900);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html.menu-open, html.menu-open body { overflow: hidden; }
[id] { scroll-margin-top: calc(var(--header-h-compact) + 8px); }
@media (max-width: 899px) { [id] { scroll-margin-top: calc(var(--header-h) + 8px); } }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 3px; }
::selection { background: var(--gold-500); color: var(--graphite-900); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.display, h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(26px, 2.2vw + 20px, 46px); font-weight: 700; line-height: 1.05; }
h2 { font-size: clamp(24px, 1.6vw + 18px, 40px); }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.005em; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--graphite-700); max-width: 44ch; text-wrap: pretty; }
.muted { color: var(--graphite-500); }
.small { font-size: 14px; line-height: 1.5; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--graphite-500);
}
.num {
  font-variant-numeric: tabular-nums;
}
p { text-wrap: pretty; }
.text-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--t-fast);
}
.text-link:hover { text-decoration-color: currentColor; }

/* Стрелочная ссылка */
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--graphite-900);
}
.arrow-link .ico { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.arrow-link:hover .ico { transform: translateX(4px); }
.arrow-link--gold { color: var(--gold-600); }
.on-dark .arrow-link { color: var(--on-dark); }

/* Знак 2×2 как маркер */
.mark {
  --mark-size: 10px;
  display: inline-grid; grid-template-columns: 1fr 1fr; gap: 9%;
  width: var(--mark-size); height: var(--mark-size); flex: none;
}
.mark i { display: block; background: var(--gold-500); }
.mark--dark i { background: var(--graphite-900); }
.mark--head { --mark-size: 14px; }

/* Квадрат с номером */
.sq {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none;
  background: var(--gold-500); color: var(--graphite-900);
  font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0;
}
.sq--dark { background: var(--graphite-900); color: var(--gold-500); }
.sq--lg { width: 56px; height: 56px; font-size: 18px; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--white { background: var(--white); }
.section--dark { background: var(--graphite-900); color: var(--on-dark); }
.section > .container { position: relative; }

/* Шапка секции: линия + номер + заголовок + лид */
.sec-head {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.section--dark .sec-head { border-top-color: var(--line-dark); }
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head h2 { max-width: 20ch; }
.sec-head .lead { justify-self: start; }
.section--dark .lead { color: var(--on-dark-soft); }
.section--dark .eyebrow { color: var(--on-dark-soft); }
@media (max-width: 899px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
  text-align: center; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--graphite-900); color: var(--white); border-color: var(--graphite-900); }
.btn--primary:hover { background: var(--gold-500); color: var(--graphite-900); border-color: var(--gold-500); }
.btn--gold { background: var(--gold-500); color: var(--graphite-900); border-color: var(--gold-500); }
.btn--gold:hover { background: var(--white); color: var(--graphite-900); border-color: var(--white); }
.btn--secondary { background: transparent; color: var(--graphite-900); border-color: var(--graphite-900); }
.btn--secondary:hover { background: var(--graphite-900); color: var(--white); }
.on-dark .btn--secondary, .section--dark .btn--secondary { color: var(--on-dark); border-color: rgba(245,241,234,.6); }
.on-dark .btn--secondary:hover, .section--dark .btn--secondary:hover { background: var(--on-dark); color: var(--graphite-900); border-color: var(--on-dark); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 12px; }
.btn--block { width: 100%; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: .4; }
.btn__loader { display: none; }
.btn.is-loading .btn__loader { display: inline-grid; }
.loader { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 1.3px; width: 14px; height: 14px; }
.loader i { background: currentColor; animation: quad 1.2s infinite; }
.loader i:nth-child(2) { animation-delay: .15s; }
.loader i:nth-child(3) { animation-delay: .45s; }
.loader i:nth-child(4) { animation-delay: .3s; }
@keyframes quad { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* Иконочная кнопка */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none; color: var(--graphite-900);
  border: 1px solid var(--line); background: transparent;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.icon-btn .ico { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--graphite-900); color: var(--white); border-color: var(--graphite-900); }

.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 14px; color: var(--graphite-700); }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.logo__word {
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .1em; line-height: 1;
  color: var(--graphite-700);
}
.logo__word b { font-weight: inherit; color: var(--gold-text); }
.logo__tag { font-size: 8px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--graphite-500); }
.logo--light .logo__word, .logo--light { color: var(--on-dark); }
.logo--light .logo__word b { color: var(--gold-500); }
.logo--light .logo__tag { color: rgba(245,241,234,.6); }
.logo--lg .logo__mark { width: 48px; height: 48px; }
.logo--lg .logo__word { font-size: 24px; }
.logo--lg .logo__tag { font-size: 10px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(250, 247, 241, 0);
  border-bottom: 1px solid transparent;
  transition: height 200ms var(--ease), background-color 200ms, border-color 200ms, backdrop-filter 200ms;
}
.header.is-scrolled {
  height: var(--header-h-compact);
  background: rgba(250, 247, 241, .94);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.header__logo { margin-right: auto; }
.header.is-scrolled .logo__tag { display: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--graphite-700);
  padding: 6px 0; white-space: nowrap; transition: color var(--t-fast);
}
.nav a::before {
  content: ''; position: absolute; left: 50%; bottom: -4px; margin-left: -3px; width: 6px; height: 6px; background: var(--red-500);
  opacity: 0; transform: scale(.5); transition: opacity var(--t-fast), transform var(--t-fast);
}
.nav a:hover { color: var(--graphite-900); }
.nav a.is-active { color: var(--graphite-900); }
.nav a.is-active::before { opacity: 1; transform: none; }
.header__sep { width: 1px; height: 24px; background: var(--line); }
.header__contacts { display: flex; align-items: center; gap: 10px; }
.header__msgs { display: none; }
@media (min-width: 1480px) { .header__msgs { display: flex; } }
.header__phone { font-weight: 600; font-size: 16px; white-space: nowrap; }
.header__phone:hover { color: var(--gold-600); }
.header__msgs { gap: 4px; }
.header__msgs a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--graphite-700); transition: color var(--t-fast); }
.header__msgs a:hover { color: var(--gold-600); }
.header__cta { min-height: 48px; }
.header__cta .cta-short { display: none; }
.header__mobile { display: none; gap: 8px; }
.burger { position: relative; }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative;
  transition: transform 200ms var(--ease), opacity 200ms;
}
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.header__mobile-phone span { display: none; white-space: nowrap; }
@media (min-width: 600px) and (max-width: 899px) {
  .header__mobile-phone { width: auto; padding: 0 14px; gap: 10px; }
  .header__mobile-phone span { display: inline; font-weight: 600; font-size: 15px; }
}

/* Мобильное меню */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--graphite-900); color: var(--on-dark);
  padding: calc(var(--header-h-compact) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 32px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s 260ms;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu__close { position: absolute; top: 10px; right: var(--gutter); color: var(--on-dark); border-color: var(--line-dark); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2;
}
.menu__nav a small { font-family: var(--font-body); font-size: 12px; letter-spacing: .1em; color: var(--gold-500); font-weight: 500; }
.menu__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu__quick a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 104px; padding: 16px; border: 1px solid var(--line-dark);
  font-size: 14px; font-weight: 600; transition: background-color var(--t-fast), color var(--t-fast);
}
.menu__quick a:hover { background: var(--gold-500); color: var(--graphite-900); }
.menu__quick .ico { width: 22px; height: 22px; }
.menu__meta { font-size: 14px; color: var(--on-dark-soft); display: flex; flex-direction: column; gap: 6px; }
.menu__meta strong { color: var(--on-dark); font-weight: 600; }
.menu__cta { margin-top: auto; }

@media (max-width: 1199px) {
  .header .container { gap: 16px; }
  .nav { gap: 14px; }
  .nav a { font-size: 11px; letter-spacing: .04em; }
  .logo__tag { display: none; }
  .header__phone { font-size: 15px; }
  .header__cta { padding: 0 16px; }
  .header__cta .cta-full { display: none; }
  .header__cta .cta-short { display: inline; }
}
@media (max-width: 1099px) {
  .header__phone, .header__sep { display: none; }
}
@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .header { background: rgba(250,247,241,.94); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .header .container { gap: 12px; }
  .nav, .header__sep, .header__contacts { display: none; }
  .header__mobile { display: flex; }
  .logo__tag { display: none; }
  .logo__mark { width: 32px; height: 32px; }
  .logo__word { font-size: 17px; }
  .header.menu-open { background: var(--graphite-900); border-bottom-color: var(--line-dark); }
  .header.menu-open .logo { color: var(--on-dark); }
  .header.menu-open .logo__word { color: var(--on-dark); }
  .header.menu-open .icon-btn { color: var(--on-dark); border-color: var(--line-dark); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 96px);
  min-height: min(calc(100svh - var(--header-h)), 860px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(228,221,209,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228,221,209,.55) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1), rgba(0,0,0,.35) 70%, transparent);
  mask-image: linear-gradient(180deg, rgba(0,0,0,1), rgba(0,0,0,.35) 70%, transparent);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero__body { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__body .eyebrow { color: var(--graphite-700); }
.hero__title { max-width: 18ch; }
.hero__lead { max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__contact { display: flex; align-items: center; gap: 14px; padding-top: 4px; }
.hero__contact .sq { width: 44px; height: 44px; }
.hero__contact .ico { width: 20px; height: 20px; }
.hero__contact a { font-weight: 600; font-size: 20px; line-height: 1.1; display: block; }
.hero__contact a:hover { color: var(--gold-600); }
.hero__contact small { display: block; font-size: 13px; color: var(--graphite-500); margin-top: 4px; }
.hero__trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding-top: 20px; margin-top: 4px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--graphite-500); width: 100%;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 14px; }
.hero__trust li::before { content: ''; width: 4px; height: 4px; background: var(--gold-500); flex: none; }
.hero__trust strong { color: var(--graphite-900); font-weight: 600; }

.mosaic {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px;
  width: 100%; max-width: 560px; margin-left: auto;
}
.mosaic__cell { position: relative; aspect-ratio: 1; overflow: hidden; }
.mosaic__cell img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__cell--gold { background: var(--gold-500); color: var(--graphite-900); }
.mosaic__cell--dark { background: var(--graphite-900); color: var(--on-dark); }
.mosaic__fact {
  position: absolute; inset: 0; padding: clamp(16px, 2vw, 28px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.mosaic__fact .mark { --mark-size: 12px; }
.mosaic__cell--gold .mark i { background: var(--graphite-900); }
.mosaic__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.mosaic__label { font-size: 13px; line-height: 1.4; margin-top: 8px; max-width: 18ch; }
.mosaic__cell--gold .mosaic__label { color: var(--graphite-800); }
.mosaic__cell--dark .mosaic__label { color: var(--on-dark-soft); }
.mosaic__link { position: absolute; inset: 0; }

@media (max-width: 1023px) {
  .hero .container { gap: 32px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 100%; }
  .mosaic__value { font-size: clamp(28px, 4vw, 36px); }
}
@media (max-width: 899px) {
  .hero { min-height: 0; padding-top: 32px; }
  .hero .container { grid-template-columns: minmax(0, 1fr); }
  .mosaic { max-width: 100%; margin-left: 0; }
  .hero__title { max-width: 16ch; }
}
@media (max-width: 599px) {
  .hero__title { max-width: none; }
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__body { gap: 20px; }
}

/* --------------------------------------------------------------------------
   Модульная сетка (общий приём: ячейки с общими линиями)
   -------------------------------------------------------------------------- */
.cells {
  display: grid; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.cells--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cell {
  position: relative; background: var(--white); padding: clamp(22px, 2.4vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
  transition: background-color var(--t-fast);
}
.cell::after {
  content: ''; position: absolute; right: 14px; bottom: 14px; width: 8px; height: 8px;
  background:
    linear-gradient(var(--gold-500), var(--gold-500)) 0 0 / 3px 3px no-repeat,
    linear-gradient(var(--gold-500), var(--gold-500)) 100% 0 / 3px 3px no-repeat,
    linear-gradient(var(--gold-500), var(--gold-500)) 0 100% / 3px 3px no-repeat,
    linear-gradient(var(--gold-500), var(--gold-500)) 100% 100% / 3px 3px no-repeat;
  opacity: 0; transition: opacity var(--t-fast);
}
.cell:hover { background: var(--gold-100); }
.cell:hover::after { opacity: 1; }
.cell .sq { transition: transform var(--t-fast) var(--ease); }
.cell:hover .sq { transform: scale(1.08); }
.cell__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cell p { font-size: 15px; line-height: 1.55; color: var(--graphite-700); }
.cell .arrow-link { margin-top: auto; padding-top: 6px; font-size: 14px; min-height: 44px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 8px; border: 1px solid var(--gold-500); color: var(--gold-700); white-space: nowrap;
}
.badge--red { border-color: var(--red-500); color: var(--red-500); }
.badge--dark { border-color: var(--graphite-900); color: var(--graphite-900); }
@media (max-width: 1023px) { .cells--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .cells--4, .cells--2 { grid-template-columns: minmax(0, 1fr); }
  .cell { padding: 20px 18px 22px; gap: 10px; }
  .cell p { font-size: 14.5px; }
  .why .cell, .trust .cell { min-height: 0; }
}

/* --------------------------------------------------------------------------
   01 Услуги
   -------------------------------------------------------------------------- */
.services__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 28px; font-size: 15px; color: var(--graphite-700);
}
.services__foot a.phone { font-weight: 600; color: var(--graphite-900); }
.services__foot a.phone:hover { color: var(--gold-600); }

/* --------------------------------------------------------------------------
   02 Почему Риэлтком
   -------------------------------------------------------------------------- */
.why .cell { padding: clamp(24px, 3vw, 40px); gap: 16px; min-height: 300px; }
.why .cell:hover { background: var(--white); }
.why .cell::after { display: none; }
.why__q { font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--graphite-900); display: flex; gap: 14px; align-items: flex-start; }
.why__q .sq { margin-top: -2px; }
.why .cell p { font-size: 16px; color: var(--graphite-700); max-width: 56ch; }
.why__list { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--graphite-700); }
.why__list li { display: flex; gap: 10px; align-items: baseline; }
.why__list .mark { --mark-size: 8px; position: relative; top: 1px; }
.why__list-title { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite-500); font-weight: 500; }
.cell--dark { background: var(--graphite-900); color: var(--on-dark); }
.why .cell--dark:hover { background: var(--graphite-900); }
.cell--dark .why__q { color: var(--on-dark); }
.cell--dark p, .why .cell--dark p { color: var(--on-dark-soft); }
.cell--dark .why__list { color: var(--on-dark-soft); }
.cell--dark .why__list-title { color: var(--gold-500); }
.cell--dark .sq { background: var(--gold-500); }
.why__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: auto; padding-top: 8px; }

/* --------------------------------------------------------------------------
   03 Недвижимость
   -------------------------------------------------------------------------- */
.estate__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.estate-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.estate-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--gold-100); }
.estate-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.estate-card:hover .estate-card__media img { transform: scale(1.04); }
.estate-card__media .sq { position: absolute; top: 0; right: 0; width: 48px; height: 48px; font-size: 14px; }
.estate-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.estate-card__body p { font-size: 15px; color: var(--graphite-700); }
.estate-card__body .arrow-link { margin-top: auto; padding-top: 10px; font-size: 14px; min-height: 44px; }
.estate__note {
  margin-top: 24px; background: var(--gold-100); border: 1px solid var(--line);
  padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
}
.estate__note .mark { --mark-size: 14px; }
.estate__note p { flex: 1 1 380px; font-size: 15px; color: var(--graphite-800); }
.estate__note p strong { font-weight: 600; }
.estate__note .btn { margin-left: auto; }
@media (max-width: 1023px) { .estate__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .estate-card__media { aspect-ratio: 4 / 3; } }
@media (max-width: 599px) {
  .estate__grid { grid-template-columns: minmax(0, 1fr); }
  .estate-card__media { aspect-ratio: 16 / 10; }
  .estate__note .btn { margin-left: 0; width: 100%; }
}

/* --------------------------------------------------------------------------
   04 Процесс
   -------------------------------------------------------------------------- */
.process__steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.process__steps::before {
  content: ''; position: absolute; left: 0; right: 0; top: 32px; height: 1px; background: var(--line);
  transform-origin: left; transform: scaleX(0); transition: transform 900ms var(--ease);
}
.process__steps.is-visible::before { transform: scaleX(1); }
.step { position: relative; padding-top: 0; display: flex; flex-direction: column; gap: 14px; }
.step .sq { width: 64px; height: 64px; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--graphite-700); }
.step__meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite-500); font-weight: 500; margin-top: auto; padding-top: 6px; }
.process__cta { margin-top: 48px; display: flex; justify-content: center; }
@media (max-width: 899px) {
  .process__steps { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-left: 0; }
  .process__steps::before { left: 24px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform-origin: top; transform: scaleY(0); }
  .process__steps.is-visible::before { transform: scaleY(1); }
  .step { padding-left: 76px; }
  .step .sq { position: absolute; left: 0; top: 0; width: 48px; height: 48px; font-size: 18px; }
  .process__cta .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   05 О компании
   -------------------------------------------------------------------------- */
.about { overflow-x: clip; }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: stretch; }
.about__text { display: flex; flex-direction: column; gap: 20px; }
.about__text p { color: var(--graphite-700); max-width: 52ch; }
.about__facts { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid var(--line); }
.about__facts li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.about__facts .mark { --mark-size: 10px; position: relative; top: 1px; }
.about__media {
  position: relative; min-height: 420px;
  margin-right: calc(-1 * max(0px, (100vw - var(--container)) / 2));
}
.about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__media .about__tile {
  position: absolute; left: 0; bottom: 0; width: 200px; height: 200px;
  background: var(--gold-500); color: var(--graphite-900);
  padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
}
.about__tile .mosaic__value { font-size: 44px; }
.about__tile .mark i { background: var(--graphite-900); }
.about__tile .mosaic__label { color: var(--graphite-800); }
@media (max-width: 899px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about__media { margin-right: 0; min-height: 0; aspect-ratio: 16 / 11; }
  .about__media .about__tile { width: 150px; height: 150px; padding: 14px; }
  .about__tile .mosaic__value { font-size: 34px; }
}

/* --------------------------------------------------------------------------
   06 Доверие
   -------------------------------------------------------------------------- */
.trust .cell { min-height: 260px; gap: 12px; }
.trust__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.05; letter-spacing: -0.02em; }
.trust__value--sm { font-size: clamp(16px, 1.4vw, 18px); font-weight: 600; letter-spacing: 0; line-height: 1.3; word-break: break-word; }
.trust .cell p { font-size: 14px; }
.trust .cell .arrow-link { margin-top: auto; }
.trust__foot { margin-top: 20px; font-size: 13px; color: var(--graphite-500); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* --------------------------------------------------------------------------
   07 Заявка
   -------------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(46,46,50,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,46,50,.55) 1px, transparent 1px);
  background-size: 80px 80px;
}
.cta__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 64px; align-items: start; }
.cta__text { display: flex; flex-direction: column; gap: 24px; }
.cta__text h2 { max-width: 16ch; }
.cta__list { display: flex; flex-direction: column; gap: 10px; color: var(--on-dark-soft); }
.cta__list li { display: flex; gap: 12px; align-items: baseline; }
.cta__list .mark { --mark-size: 9px; position: relative; top: 1px; }
.cta__alt { border-top: 1px solid var(--line-dark); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.cta__alt .label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); font-weight: 500; }
.cta__phone { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.01em; }
.cta__phone:hover { color: var(--gold-500); }
.cta__alt .small { color: var(--on-dark-soft); }
.cta__msgs { display: flex; flex-wrap: wrap; gap: 10px; }

.form {
  position: relative; z-index: 1;
  background: var(--white); color: var(--graphite-900); border: 1px solid var(--gold-500);
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px;
}
.form__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite-500); display: inline-flex; align-items: center; gap: 8px; }
.field__label .req { width: 6px; height: 6px; background: var(--gold-500); display: inline-block; }
.field__input {
  width: 100%; min-height: 56px; padding: 0 16px; background: var(--white); border: 1px solid var(--line);
  color: var(--graphite-900); font-size: 16px; border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.field__input::placeholder { color: #8E8C86; }
.field__input:focus { outline: none; border-color: var(--gold-600); }
.field__input:focus + .field__error, .field:focus-within .field__label { color: var(--gold-700); }
textarea.field__input { min-height: 88px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field--select { position: relative; }
.field--select .field__input { padding-right: 44px; cursor: pointer; }
.field--select::after {
  content: ''; position: absolute; right: 18px; bottom: 24px; width: 8px; height: 8px;
  border-right: 1.5px solid var(--graphite-900); border-bottom: 1.5px solid var(--graphite-900); transform: rotate(45deg); pointer-events: none;
}
.field__error { font-size: 13px; color: var(--red-500); display: block; min-height: 0; }
.field.has-error .field__input { border-color: var(--red-500); }
.form__more { align-self: flex-start; font-size: 14px; color: var(--graphite-700); display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.form__hint { font-size: 13.5px; line-height: 1.5; color: var(--graphite-700); background: var(--gold-100); padding: 10px 14px; margin: 0; }
.form__hint[hidden] { display: none; }
.form__more .ico { width: 14px; height: 14px; }
.form__more[aria-expanded="true"] .ico { transform: rotate(45deg); }
.form__extra[hidden] { display: none; }
.form__consent { font-size: 12.5px; line-height: 1.5; color: var(--graphite-500); }
.form__consent a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-500); }
.form__status { display: none; padding: 16px; background: var(--gold-100); font-size: 14px; line-height: 1.5; }
.form__status.is-shown { display: block; }
.form__status.is-error { background: #FBE9E7; color: #7A1F1B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 899px) {
  .cta__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cta__grid .form { order: -1; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   08 Контакты
   -------------------------------------------------------------------------- */
.contacts__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px; align-items: stretch; }
.contacts .cells--2 { align-content: start; }
.contacts .cell { gap: 12px; }
.contacts .cell:hover { background: var(--white); }
.contacts .cell::after { display: none; }
.contacts .cell h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite-500); font-weight: 500; }
.contact-list { display: flex; flex-direction: column; gap: 8px; }
.contact-list li { display: flex; flex-direction: column; gap: 1px; padding: 3px 0; }
.contact-list a { font-weight: 600; font-size: 16px; display: inline-block; padding: 4px 0; }
.contact-list a:hover { color: var(--gold-600); }
.contact-list small { font-size: 12.5px; color: var(--graphite-500); }
.contacts__addr { font-size: 16px; line-height: 1.5; }
.contacts__addr strong { font-weight: 600; }
.contacts .cell .arrow-link { margin-top: auto; padding-top: 6px; }
.contacts__hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 15px; }
.contacts__hours dt { color: var(--graphite-500); white-space: nowrap; }
.contacts__hours dd { margin: 0; font-weight: 500; }
.msg-list { display: flex; flex-direction: column; gap: 8px; }
.msg-list a {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line); font-weight: 600; font-size: 14px;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.msg-list a small { font-weight: 400; color: var(--graphite-500); margin-left: auto; font-size: 12.5px; white-space: nowrap; }
.msg-list a:hover { background: var(--graphite-900); color: var(--white); border-color: var(--graphite-900); }
.msg-list a:hover small { color: rgba(255,255,255,.7); }
.map { position: relative; background: var(--gold-100); border: 1px solid var(--line); min-height: 420px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 400ms; }
.map.is-loaded iframe { opacity: 1; }
.map__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  text-align: center; padding: 24px;
  background-image:
    linear-gradient(rgba(228,221,209,.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228,221,209,.8) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map.is-loaded .map__placeholder { display: none; }
.map__placeholder .mark { --mark-size: 28px; }
.map__placeholder p { font-size: 15px; color: var(--graphite-700); max-width: 30ch; }
.map__tile {
  position: absolute; left: 0; top: 0; z-index: 2; width: 156px; height: 132px; padding: 14px;
  background: var(--gold-500); color: var(--graphite-900); display: flex; flex-direction: column; justify-content: space-between;
  font-size: 13px; line-height: 1.35; font-weight: 500;
}
.map__tile .mark i { background: var(--graphite-900); }
.map__tile strong { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; }
@media (max-width: 899px) {
  .contacts__grid { grid-template-columns: minmax(0, 1fr); }
  .map { min-height: 0; aspect-ratio: 4 / 3; }
  .map:not(.is-loaded) .map__tile { display: none; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--graphite-900); color: var(--on-dark); border-top: 1px solid var(--gold-500); padding-block: 56px 0; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); font-weight: 500; margin-bottom: 4px; }
.footer__col p, .footer__col li { color: var(--on-dark-soft); line-height: 1.55; }
.footer__col a:hover { color: var(--gold-500); }
.footer__col ul { display: flex; flex-direction: column; gap: 4px; }
.footer__col li a { display: inline-block; padding: 4px 0; }
.footer__col strong { color: var(--on-dark); font-weight: 600; }
.footer__about { max-width: 34ch; }
.footer__req summary { display: none; }
.footer__bottom {
  border-top: 1px solid var(--line-dark); padding-block: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  font-size: 12.5px; color: rgba(245,241,234,.55);
}
.footer__bottom p { max-width: 70ch; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--gold-500); }
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 44px; height: 44px; background: var(--graphite-900); color: var(--gold-500); border: 1px solid var(--line-dark);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s var(--t-fast);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--gold-500); color: var(--graphite-900); }
@media (max-width: 1023px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 899px) { .to-top { display: none; } }
@media (max-width: 599px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer__req summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; color: var(--on-dark); font-weight: 600; padding: 12px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
  .footer__req summary::-webkit-details-marker { display: none; }
  .footer__req summary::after { content: '+'; font-family: var(--font-display); color: var(--gold-500); }
  .footer__req[open] summary::after { content: '–'; }
  .footer__req h4 { display: none; }
  .footer__req ul { padding-top: 12px; }
  .to-top { display: none; }
}

/* --------------------------------------------------------------------------
   Липкая мобильная панель
   -------------------------------------------------------------------------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: none; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1px;
  background: var(--line-dark); border-top: 1px solid var(--gold-500);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(100%); transition: transform 260ms var(--ease);
}
.sticky-bar.is-shown { transform: none; }
.sticky-bar a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 58px; padding: 0 6px; min-width: 0; background: var(--graphite-900); color: var(--on-dark);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.sticky-bar a .ico { width: 18px; height: 18px; }
.sticky-bar a.is-primary { background: var(--gold-500); color: var(--graphite-900); }
@media (max-width: 899px) {
  .sticky-bar { display: grid; }
  body.has-bar { padding-bottom: 58px; }
}
@media (max-width: 360px) {
  h1 { font-size: 24px; }
  h2 { font-size: 21px; }
  .mosaic__fact { padding: 12px; }
  .mosaic__label { font-size: 12px; }
  .sticky-bar a { font-size: 11px; letter-spacing: .03em; gap: 6px; }
  .sticky-bar a .ico { width: 16px; height: 16px; }
}

/* --------------------------------------------------------------------------
   Появление при скролле
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 480ms var(--ease), transform 480ms var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal][data-stagger] { opacity: 1; transform: none; transition: none; }
.js [data-reveal][data-stagger] > * { opacity: 0; transform: translateY(14px); transition: opacity 440ms var(--ease), transform 440ms var(--ease); }
.js [data-reveal][data-stagger].is-visible > * { opacity: 1; transform: none; }
.js .hero [data-hero] { opacity: 0; transform: translateY(14px); animation: rise 520ms var(--ease) forwards; }
.js .hero [data-hero="1"] { animation-delay: 60ms; }
.js .hero [data-hero="2"] { animation-delay: 140ms; }
.js .hero [data-hero="3"] { animation-delay: 220ms; }
.js .hero [data-hero="4"] { animation-delay: 300ms; }
.js .hero [data-hero="5"] { animation-delay: 380ms; }
.js .hero [data-hero="6"] { animation-delay: 460ms; }
.js .mosaic__cell { opacity: 0; transform: scale(.96); animation: pop 560ms var(--ease) forwards; }
.js .mosaic__cell:nth-child(1) { animation-delay: 200ms; }
.js .mosaic__cell:nth-child(2) { animation-delay: 320ms; }
.js .mosaic__cell:nth-child(3) { animation-delay: 440ms; }
.js .mosaic__cell:nth-child(4) { animation-delay: 560ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pop { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-reveal][data-stagger] > *, .js .hero [data-hero], .js .mosaic__cell { opacity: 1; transform: none; }
  .process__steps::before { transform: none !important; }
}
