/* ============================================================
   PISLEGIN REALTY — MAIN STYLESHEET
   Navy + Gold palette · Trust · Premium · 2025
   ============================================================ */

/* ── Self-hosted Inter font ──────────────────────────────── */
@font-face { font-family:'Inter'; font-style:normal; font-weight:300; font-display:swap;
  src: url('../fonts/inter-300.woff2') format('woff2'); unicode-range:U+0400-04FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:300; font-display:swap;
  src: url('../fonts/inter-300-lat.woff2') format('woff2'); unicode-range:U+0000-00FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap;
  src: url('../fonts/inter-400.woff2') format('woff2'); unicode-range:U+0400-04FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap;
  src: url('../fonts/inter-400-lat.woff2') format('woff2'); unicode-range:U+0000-00FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap;
  src: url('../fonts/inter-500.woff2') format('woff2'); unicode-range:U+0400-04FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap;
  src: url('../fonts/inter-500-lat.woff2') format('woff2'); unicode-range:U+0000-00FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap;
  src: url('../fonts/inter-600.woff2') format('woff2'); unicode-range:U+0400-04FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap;
  src: url('../fonts/inter-600-lat.woff2') format('woff2'); unicode-range:U+0000-00FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap;
  src: url('../fonts/inter-700.woff2') format('woff2'); unicode-range:U+0400-04FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap;
  src: url('../fonts/inter-700-lat.woff2') format('woff2'); unicode-range:U+0000-00FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:800; font-display:swap;
  src: url('../fonts/inter-800.woff2') format('woff2'); unicode-range:U+0400-04FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:800; font-display:swap;
  src: url('../fonts/inter-800-lat.woff2') format('woff2'); unicode-range:U+0000-00FF; }

/* ────────────────────────────────────────────────────────────────────
   DESIGN TOKEN SYSTEM — Complete & Scalable
   ──────────────────────────────────────────────────────────────────── */
:root {
  /* ── Color Palette ─────────────────────────────────────────────── */
  --color-primary:       #1A3A6C;   /* Navy */
  --color-primary-dark:  #0F2547;
  --color-primary-light: #2A5298;
  --color-accent:        #C9921A;   /* Gold */
  --color-accent-hover:  #A87715;
  --color-accent-light:  #F0C040;

  --color-bg:            #F4F6FA;
  --color-surface:       #FFFFFF;
  --color-surface2:      #EEF1F8;
  --color-text:          #1A1A2E;
  --color-text-muted:    #6B7280;
  --color-border:        #DDE3EF;
  --color-success:       #16A34A;
  --color-error:         #DC2626;
  --color-warning:       #F59E0B;

  /* ── Spacing Scale ────────────────────────────────────────────── */
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* ── Radius Scale ─────────────────────────────────────────────── */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius:      12px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* ── Shadows ──────────────────────────────────────────────────── */
  --shadow:    0 4px 24px rgba(26,58,108,.10);
  --shadow-md: 0 8px 40px rgba(26,58,108,.15);
  --shadow-lg: 0 20px 60px rgba(26,58,108,.20);
  --shadow-sm: 0 2px 8px rgba(26,58,108,.06);

  /* ── Easing (Bezier Curves) ────────────────────────────────────── */
  --ease-in:   cubic-bezier(.4, 0, 1, 1);
  --ease-out:  cubic-bezier(0, 0, .2, 1);
  --ease-smooth: cubic-bezier(.4, 0, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);

  /* ── Duration Scale ───────────────────────────────────────────── */
  --dur-fast:  150ms;
  --dur-mid:   250ms;
  --dur-normal: 300ms;
  --dur-slow:  600ms;

  /* ── Typography ────────────────────────────────────────────────── */
  --font:      'Inter', system-ui, sans-serif;
  --font-size-xs:    0.75rem;
  --font-size-sm:    0.875rem;
  --font-size-base:  1rem;
  --font-size-lg:    1.125rem;
  --font-size-xl:    1.3rem;
  --font-size-2xl:   1.6rem;

  /* ── Layout ────────────────────────────────────────────────────── */
  --max-w: 1240px;

  /* ── Z-Index Scale ────────────────────────────────────────────── */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 100;
  --z-overlay: 900;
  --z-modal: 2000;

  /* ── Transition (legacy for backwards compatibility) ────────────── */
  --transition: 250ms var(--ease-smooth);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea, select {
  font-family: var(--font);
  font-size: 1rem;
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-s);
  padding: .75rem 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--color-accent); }

/* ── Animated background orbs ────────────────────────────── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .06;
  pointer-events: none;
  z-index: -1;
  animation: orbFloat 18s ease-in-out infinite;
}
.bg-orb--1 { width: 600px; height: 600px; background: var(--color-primary); top: -100px; left: -200px; animation-delay: 0s; }
.bg-orb--2 { width: 500px; height: 500px; background: var(--color-accent); top: 40%; right: -150px; animation-delay: -6s; }
.bg-orb--3 { width: 400px; height: 400px; background: var(--color-primary-light); bottom: -100px; left: 30%; animation-delay: -12s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(30px,-40px) scale(1.05); }
  66%       { transform: translate(-20px,20px) scale(.97); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,.2), 0 0 0 0 rgba(255,255,255,.5); }
  60%       { box-shadow: 0 4px 16px rgba(0,0,0,.2), 0 0 0 10px rgba(255,255,255,0); }
}

#particleCanvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--color-surface2); }

/* Длинные неразрывные слова («Проконсультируйтесь») на узких экранах
   распирали страницу и давали горизонтальный скролл */
h1, h2, h3, h4, h5, h6, p, li, dd, dt, figcaption { overflow-wrap: break-word; }

/* ── Section headings ────────────────────────────────────── */
.section__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .75rem;
}
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section__title::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--color-accent);
  width: 0;
  border-radius: 2px;
  margin-top: .4rem;
  transition: width 0.55s ease 0.15s;
}
.section__title.visible::after { width: 56px; }
.section__title--center::after { margin-left: auto; margin-right: auto; }
.section__title--center { text-align: center; }
.section__desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.section__desc--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: var(--radius-s);
  font-size: 1rem;
  font-weight: 600;
  transition: background-position var(--dur-slow) var(--ease-out),
              transform var(--dur-fast) var(--ease-bounce),
              box-shadow var(--dur-fast) var(--ease-out),
              border-color var(--dur-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

/* Shimmer-эффект */
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.25), transparent);
  transition: left .45s ease;
  pointer-events: none;
}
.btn:hover::after { left: 150%; }
.btn:active { transform: translateY(1px); }

/* Primary button - золотой градиент */
.btn--primary {
  background: linear-gradient(135deg, #C9921A 0%, #E8A820 50%, #C9921A 100%);
  background-size: 200% auto;
  color: #fff;
  box-shadow: 0 4px 16px rgba(201,146,26,.35);
}
.btn--primary:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(201,146,26,.5);
}

/* Outline button - анимированная граница */
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  position: relative;
  z-index: 0;
}
.btn--outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
  z-index: -1;
}
.btn--outline:hover::before { transform: scaleX(1); }
.btn--outline:hover {
  color: #fff;
  border-color: var(--color-primary);
}

/* Ghost button - для светлого фона */
.btn--ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255,255,255,.22); }

.btn--full { width: 100%; justify-content: center; }
.btn--sm { padding: .6rem 1.25rem; font-size: .9rem; }

/* ── HEADER ──────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out),
              padding var(--dur-normal) var(--ease-out);
}
.header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(26,58,108,.10);
  padding: .65rem 0;
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; }
.header__logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
  flex-shrink: 0;
  letter-spacing: -.02em;
}
.header.scrolled .header__logo { color: var(--color-primary); }
.header__logo span { color: var(--color-accent); }
/* Logo on dark (hero) background */
.header:not(.scrolled) .header__logo { color: #fff; }
.header:not(.scrolled) .nav__link { color: rgba(255,255,255,.85); }
.header:not(.scrolled) .nav__link:hover { background: rgba(255,255,255,.12); color: #fff; }
.header:not(.scrolled) .burger span { background: #fff; }

.nav { flex: 1; }
.nav__list { display: flex; gap: .15rem; align-items: center; flex-wrap: wrap; }
.nav__link {
  padding: .4rem .7rem;
  border-radius: var(--radius-s);
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition);
  white-space: nowrap;
}
.nav__link:hover,
.nav__link.active { background: rgba(26,58,108,.08); color: var(--color-primary); }

.nav__item--dropdown { position: relative; }
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  min-width: 200px;
  padding: .75rem 0 .5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}
.nav__item--dropdown:hover .nav__dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav__dropdown a { display: block; padding: .6rem 1.25rem; font-size: .875rem; color: var(--color-text); transition: var(--transition); }
.nav__dropdown a:hover { background: var(--color-bg); color: var(--color-primary); }

.btn--header {
  background: var(--color-accent);
  color: #fff;
  padding: .55rem 1.25rem;
  border-radius: var(--radius-s);
  font-size: .875rem;
  font-weight: 600;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn--header:hover { background: var(--color-accent-hover); }

.burger { display: none; flex-direction: column; gap: 5px; padding: .5rem; margin-left: auto; }
.burger span { display: block; width: 24px; height: 2px; background: var(--color-primary); border-radius: 2px; transition: var(--transition); }
.header:not(.scrolled) .burger span { background: #fff; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-light) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: var(--color-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero__deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__deco--1 { width: 700px; height: 700px; border: 1px solid rgba(240,192,64,.15); top: -200px; right: -200px; animation: spinSlow 30s linear infinite; }
.hero__deco--2 { width: 400px; height: 400px; border: 1px solid rgba(255,255,255,.1); bottom: 50px; left: -100px; animation: spinSlow 20s linear infinite reverse; }
.hero__deco--3 { width: 300px; height: 300px; background: var(--color-accent); top: 20%; left: 45%; filter: blur(80px); opacity: .1; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  /* Только вертикальные отступы: шорткат padding обнулял боковые,
     которые задаёт .container — на мобильных текст упирался в края экрана */
  padding-top: 3rem;
  padding-bottom: 5rem;
}
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 1.25rem;
  animation: heroFadeUp 0.6s ease 0.1s both;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
  animation: heroFadeUp 0.7s ease 0.25s both;
}
.hero__title span { color: var(--color-accent-light); }
.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  max-width: 500px;
  animation: heroFadeUp 0.6s ease 0.42s both;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; animation: heroFadeUp 0.6s ease 0.58s both; }

.hero__trust {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.25rem;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.2);
}
.hero__trust i { font-size: 1.5rem; color: var(--color-accent-light); }
.hero__trust-text { font-size: .8rem; color: rgba(255,255,255,.85); }
.hero__trust-text strong { display: block; font-size: .9rem; color: #fff; }

.hero__photo { position: relative; animation: heroFadeUp 0.8s ease 0.45s both; }
.hero__photo-frame { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__photo-img { width: 100%; height: 500px; object-fit: cover; object-position: top center; }
.hero__photo-badge {
  position: absolute;
  bottom: 1.5rem;
  left: -1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: .85rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero__photo-badge i { color: var(--color-accent); font-size: 1.4rem; }
.hero__photo-badge strong { display: block; font-size: .9rem; color: var(--color-primary); }
.hero__photo-badge span { font-size: .75rem; color: var(--color-text-muted); }

.hero__scroll {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.4);
  font-size: 1.2rem;
  animation: bounce 2s ease infinite;
  z-index: 1;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ────────────────────────────────────────────────────────────────────
   ANIMATION LIBRARY — 12 Modern Animations
   ──────────────────────────────────────────────────────────────────── */

/* Fade + Slide animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* Glow & Pulse animations */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; }
  50%      { box-shadow: 0 0 0 10px rgba(201,146,26,.2); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* Slide in animations */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Underline reveal */
@keyframes underlineReveal {
  from { width: 0; }
  to   { width: 100%; }
}

/* Shimmer (hover effect) */
@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Hover lift */
@keyframes liftUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

/* Rotation for decorative elements */
@keyframes rotateIn {
  from { opacity: 0; transform: rotate(-180deg) scale(0.8); }
  to   { opacity: 1; transform: rotate(0) scale(1); }
}

/* ── Animation Utilities ─────────────────────────────────── */
[data-animate="fadeInUp"]    { animation: fadeInUp var(--dur-slow) var(--ease-out) both; }
[data-animate="fadeInDown"]  { animation: fadeInDown var(--dur-slow) var(--ease-out) both; }
[data-animate="fadeInScale"] { animation: fadeInScale var(--dur-normal) var(--ease-bounce) both; }
[data-animate="slideInRight"]{ animation: slideInRight var(--dur-slow) var(--ease-out) both; }
[data-animate="slideInLeft"] { animation: slideInLeft var(--dur-slow) var(--ease-out) both; }

[data-stagger] > * { animation: fadeInUp var(--dur-slow) var(--ease-out) backwards; }
[data-stagger] > :nth-child(1) { animation-delay: 0.1s; }
[data-stagger] > :nth-child(2) { animation-delay: 0.2s; }
[data-stagger] > :nth-child(3) { animation-delay: 0.3s; }
[data-stagger] > :nth-child(4) { animation-delay: 0.4s; }
[data-stagger] > :nth-child(5) { animation-delay: 0.5s; }

/* ── TRUST STRIP ─────────────────────────────────────────── */
.trust-strip {
  background: var(--color-primary);
  padding: 1rem 0;
}
.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  font-weight: 500;
}
.trust-strip__item i { color: var(--color-accent-light); }

/* ── STATS ───────────────────────────────────────────────── */
.stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--color-accent);
  transition: transform var(--dur-normal) var(--ease-bounce), box-shadow var(--dur-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(201,146,26,.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease-out);
}
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.stat-card:hover::before { opacity: 1; }
.stat-card__number {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: .75rem;
  word-break: break-word;
}
.stat-card__label {
  font-size: .9rem;
  color: var(--color-text-muted);
}

/* ── PERSONAL APPROACH ───────────────────────────────────── */
.approach__inner {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  align-items: center;
}
.approach__photo-wrap { position: relative; }
.approach__photo-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.approach__sber {
  position: absolute;
  top: 1.5rem;
  right: -1.5rem;
  background: #21A038;
  color: #fff;
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  box-shadow: var(--shadow);
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  max-width: 150px;
  line-height: 1.4;
}
.approach__sber i { display: block; font-size: 1.4rem; margin-bottom: .25rem; }

.approach__text { font-size: 1.05rem; color: var(--color-text-muted); margin-bottom: 1.75rem; line-height: 1.8; }
.approach__list { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 2rem; }
.approach__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .9rem 1.1rem;
  background: var(--color-surface);
  border-radius: var(--radius-s);
  box-shadow: 0 2px 8px rgba(26,58,108,.06);
  font-size: .95rem;
}
.approach__icon { color: var(--color-accent); font-size: 1rem; margin-top: .1rem; flex-shrink: 0; }

/* ── SERVICE TEASERS ─────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.service-teaser {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: transform var(--dur-normal) var(--ease-bounce), box-shadow var(--dur-normal) var(--ease-out), border-color var(--dur-normal);
  border-top: 4px solid transparent;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.service-teaser::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity var(--dur-normal);
}
.service-teaser:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--color-accent);
}
.service-teaser:hover::after { opacity: 1; }
.service-teaser__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-s);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem;
}
.service-teaser__badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 100px;
  background: rgba(201,146,26,.12);
  color: var(--color-accent);
  width: fit-content;
}
.service-teaser__badge--free { background: rgba(22,163,74,.1); color: var(--color-success); }
.service-teaser__title { font-size: 1rem; font-weight: 700; color: var(--color-primary); }
.service-teaser__desc { font-size: .875rem; color: var(--color-text-muted); flex: 1; }
.service-teaser__link {
  display: flex; align-items: center; gap: .4rem;
  font-size: .875rem; font-weight: 600; color: var(--color-primary);
  margin-top: auto;
}

/* ── BENEFITS GRID ───────────────────────────────────────── */
.benefits__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.benefit-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--dur-normal) var(--ease-bounce), box-shadow var(--dur-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  /* Сетка, а не flex: у карточки три прямых потомка (иконка, h4, p) — во flex-строке
     заголовок и текст вставали в один ряд, и текст вылезал за край карточки.
     Здесь иконка занимает колонку слева, заголовок и текст — колонку справа. */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1.25rem;
  row-gap: .35rem;
}
.benefit-card__icon { grid-column: 1; grid-row: 1 / span 2; }
.benefit-card h4 { grid-column: 2; grid-row: 1; align-self: end; }
.benefit-card p  { grid-column: 2; grid-row: 2; align-self: start; }
.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,108,.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--dur-normal);
}
.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.benefit-card:hover::before { opacity: 1; }
.benefit-card__icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-s);
  background: rgba(26,58,108,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); font-size: 1.25rem;
  flex-shrink: 0;
}
.benefit-card h4 { font-size: 1rem; font-weight: 700; color: var(--color-primary); margin: 0; }
.benefit-card p { font-size: .875rem; color: var(--color-text-muted); margin: 0; }

/* ── NEWS GRID ───────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.news-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--dur-normal) var(--ease-bounce), box-shadow var(--dur-normal) var(--ease-out);
  display: flex; flex-direction: column;
  position: relative;
}
.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-normal) var(--ease-out);
  z-index: 10;
}
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.news-card:hover::before { transform: scaleX(1); }
.news-card__img-wrap {
  height: 180px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3); font-size: 2.5rem;
}
.news-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-card__date { font-size: .78rem; color: var(--color-text-muted); margin-bottom: .5rem; }
.news-card__title { font-size: .95rem; font-weight: 700; color: var(--color-primary); line-height: 1.4; margin-bottom: .5rem; }
.news-card__excerpt { font-size: .875rem; color: var(--color-text-muted); flex: 1; margin-bottom: 1rem; }
.news-card__link { font-size: .85rem; font-weight: 600; color: var(--color-accent); margin-top: auto; display: inline-flex; align-items: center; gap: .3rem; }

/* ── REVIEWS CAROUSEL ────────────────────────────────────── */
.reviews__slider { position: relative; }
.reviews__track { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.review-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--dur-normal) var(--ease-bounce), box-shadow var(--dur-normal) var(--ease-out);
  position: relative;
}
.review-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-md);
}
.review-card__stars { color: var(--color-accent); margin-bottom: .75rem; font-size: 1rem; }
.review-card__text { font-size: .9rem; color: var(--color-text-muted); margin-bottom: 1rem; font-style: italic; line-height: 1.7; }
.review-card__author { display: flex; align-items: center; gap: .75rem; }
.review-card__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .85rem; font-weight: 700; flex-shrink: 0;
}
.review-card__name { font-weight: 700; font-size: .875rem; color: var(--color-primary); }
.review-card__service { font-size: .78rem; color: var(--color-text-muted); }

/* ── CTA BLOCK ───────────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  border-radius: 24px;
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(201,146,26,.15) 0%, transparent 60%);
}
.cta__title { font-size: clamp(1.75rem,4vw,2.25rem); font-weight: 800; color: #fff; margin-bottom: .75rem; position: relative; }
.cta__desc { font-size: 1.05rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; position: relative; }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* CTA form: 2-col on desktop */
#quickForm { grid-template-columns: 1fr 1fr; }
#quickForm select,
#quickForm button { grid-column: 1 / -1; }

/* ── FORM ELEMENTS ───────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(22,163,74,.1);
  border: 1px solid rgba(22,163,74,.3);
  border-radius: var(--radius-s);
  color: var(--color-success);
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
}
.form-success.visible { display: block; }

/* ── Consent checkbox ────────────────────────────────────── */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.5;
  grid-column: 1 / -1;
}
.form-consent input[type="checkbox"] {
  margin-top: .15rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.form-consent a { color: var(--color-accent); text-decoration: underline; }

/* ── CONTACT SECTION ─────────────────────────────────────── */
.contact__inner { display: grid; grid-template-columns: 1fr 460px; gap: 4rem; align-items: start; }
.contact__title { font-size: 1.75rem; font-weight: 700; color: var(--color-primary); margin-bottom: 1rem; }
.contact__desc { font-size: 1rem; color: var(--color-text-muted); margin-bottom: 2rem; }
.contact__items { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.contact__item { display: flex; align-items: center; gap: .85rem; font-size: .95rem; }
.contact__item-icon {
  width: 40px; height: 40px; border-radius: var(--radius-s);
  background: rgba(26,58,108,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); font-size: .95rem; flex-shrink: 0;
}
.contact__item a:hover { color: var(--color-accent); }
.contact__map { width: 100%; border-radius: var(--radius); border: none; height: 240px; margin-top: 1.5rem; }
.contact__form {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact__form-title { font-size: 1.1rem; font-weight: 700; color: var(--color-primary); margin-bottom: 1.5rem; }
.contact__policy { font-size: .78rem; color: var(--color-text-muted); margin-top: .75rem; text-align: center; }
.contact__policy a { color: var(--color-accent); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--color-primary-dark); color: rgba(255,255,255,.7); padding: 3rem 0 1.5rem; }
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand-name { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: .25rem; }
.footer__brand-name span { color: var(--color-accent-light); }
.footer__brand-desc { font-size: .875rem; margin-bottom: 1rem; }
.footer__social { display: flex; gap: .75rem; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--transition);
}
.footer__social a:hover { background: var(--color-accent); color: #fff; }
.footer__col h4 { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-light); margin-bottom: 1rem; }
.footer__col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer__col a { font-size: .875rem; transition: var(--transition); }
.footer__col a:hover { color: #fff; }
.footer__col address { font-style: normal; display: flex; flex-direction: column; gap: .6rem; }
.footer__col address a { font-size: .875rem; display: flex; align-items: center; gap: .5rem; transition: var(--transition); }
.footer__col address a:hover { color: #fff; }
.footer__col address i { width: 18px; color: var(--color-accent-light); font-size: .85rem; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; flex-wrap: wrap; gap: .75rem;
}
.footer__bottom a { color: rgba(255,255,255,.4); transition: var(--transition); }
.footer__bottom a:hover { color: rgba(255,255,255,.8); }

/* ── FLOATING ACTION BAR ─────────────────────────────────── */
.float-bar {
  position: fixed;
  left: 1.5rem; bottom: 2rem;
  display: flex; flex-direction: column; gap: .65rem;
  z-index: 900;
}
.float-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: var(--transition);
}
.float-btn:hover { transform: scale(1.12); }
.float-btn--tg  { background: #2AABEE; animation: floatPulse 4s ease-in-out 1s infinite; }
.float-btn--wa  { background: #25D366; animation: floatPulse 4s ease-in-out 3s infinite; }
.float-btn--top { background: var(--color-primary); opacity: 0; pointer-events: none; }
.float-btn--top.visible { opacity: 1; pointer-events: auto; }

/* ── NEWS TICKER ─────────────────────────────────────────── */
.news-ticker {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.25rem;
  max-width: 300px;
  border-left: 4px solid var(--color-accent);
  z-index: 900;
  transform: translateX(-120%);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
  display: flex; gap: .75rem; align-items: flex-start;
}
.news-ticker.show { transform: translateX(0); }
.news-ticker__icon { color: var(--color-accent); font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }
.news-ticker__body { flex: 1; }
.news-ticker__label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--color-accent); margin-bottom: .25rem; }
.news-ticker__title { font-size: .875rem; font-weight: 600; color: var(--color-primary); line-height: 1.4; margin-bottom: .4rem; }
.news-ticker__link { font-size: .78rem; font-weight: 600; color: var(--color-accent); }
.news-ticker__close {
  position: absolute; top: .5rem; right: .5rem;
  color: var(--color-text-muted); font-size: .9rem; padding: .2rem; line-height: 1;
}
.news-ticker__close:hover { color: var(--color-text); }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,37,71,.65);
  backdrop-filter: blur(4px);
  /* Выше кнопки чата (z-index 9999 в chat-widget.js) — иначе она висела
     поверх модалки и на мобильном закрывала результат расчёта ипотеки */
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
  padding: 1rem;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal__title { font-size: 1.15rem; font-weight: 700; color: var(--color-primary); }
.modal__close { color: var(--color-text-muted); font-size: 1.2rem; padding: .25rem; transition: var(--transition); }
.modal__close:hover { color: var(--color-text); }
.modal__selected {
  background: var(--color-bg); border-radius: var(--radius-s);
  padding: .75rem 1rem; margin-bottom: 1.25rem;
  font-size: .85rem; color: var(--color-text-muted); line-height: 1.6;
}
.modal__selected strong { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--color-primary); margin-bottom: .35rem; }

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: 8rem 0 4rem;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px; background: var(--color-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__breadcrumb {
  display: flex; align-items: center; gap: .4rem;
  font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 1rem;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,.55); }
.page-hero__breadcrumb a:hover { color: #fff; }
.page-hero__breadcrumb i { font-size: .65rem; }
.page-hero__title { font-size: clamp(1.75rem,4vw,3rem); font-weight: 800; color: #fff; margin-bottom: .75rem; }
.page-hero__desc { font-size: 1rem; color: rgba(255,255,255,.8); max-width: 540px; }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { display: none; }
  .stats__grid { grid-template-columns: repeat(2,1fr); }
  .approach__inner { grid-template-columns: 1fr; }
  .approach__photo-wrap { display: none; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .benefits__grid { grid-template-columns: repeat(2,1fr); }
  .news-grid { grid-template-columns: repeat(2,1fr); }
  .reviews__track { grid-template-columns: repeat(2,1fr); }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  /* Mobile nav */
  .nav__list { display: none; }
  .nav__list.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    padding: 1rem; gap: .15rem;
    border-top: 1px solid var(--color-border);
  }
  .nav { position: static; }
  .header { position: relative; }
  .burger { display: flex; }
  .btn--header { display: none; }
  .header__inner { position: relative; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; }
  .header:not(.scrolled) .nav__list.open { background: var(--color-primary); }
  .header:not(.scrolled) .nav__list.open .nav__link { color: rgba(255,255,255,.85); }
}
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .benefits__grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .reviews__track { grid-template-columns: 1fr; }
  .cta { padding: 2.5rem 1.5rem; border-radius: var(--radius); }
  .footer__top { grid-template-columns: 1fr; }
  .trust-strip__inner { gap: 1rem; }
  .float-bar { left: 1rem; bottom: 1.5rem; }
  .news-ticker { max-width: 260px; }
  .header { position: relative; }
  /* Forms: stack to single column on mobile */
  #quickForm,
  #contactForm { grid-template-columns: 1fr !important; }
  #quickForm button,
  #contactForm button { grid-column: 1; }
  /* Service info bar */
  .service-info__inner { flex-direction: column; gap: 1rem; }
  .service-info__item  { min-width: auto; }

  /* Hero: 100vh на телефоне давал полэкрана пустоты (и «прыгал» из-за
     адресной строки браузера) — высоту задаёт само содержимое */
  .hero { min-height: auto; padding-top: 1rem; }
  /* Снизу не меньше 5rem: декоративная дуга .hero::after высотой 60px
     иначе накрывает нижний край контента */
  .hero__inner { padding-top: 2rem; padding-bottom: 5rem; }
  .page-hero { padding: 4.5rem 0 3rem; }

  /* Тач-таргеты: минимум 44px по рекомендациям Apple/Google.
     Бургер — главный элемент управления на мобильном, был 40x32 */
  .burger { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
  /* Кнопки каталога — в catalog.css: он грузится позже и перебил бы правила отсюда */
  /* Чекбоксы согласия: 16px попасть пальцем почти невозможно */
  .form-consent input[type="checkbox"],
  .calc__checkbox input[type="checkbox"],
  #lead-agree,
  #booking-agree { width: 22px; height: 22px; flex-shrink: 0; }
  /* У кнопок cookie padding задан инлайном в main.js — перебиваем высотой,
     её в инлайн-стиле нет, поэтому !important не нужен */
  #cookieAccept,
  #cookieDecline { min-height: 44px; }
  .modal__close { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  /* Ползунок первоначального взноса — 16px по высоте тяжело поймать пальцем */
  .calc__field input[type="range"] { height: 34px; }

  /* Счётчик «сегодня в продаже»: подпись занимает свою строку целиком,
     иначе «квартир» отрывалось от числа и висело на следующей строке */
  .hero__live-today { flex-basis: 100%; }
}
@media (max-width: 480px) {
  .stats__grid { grid-template-columns: repeat(2,1fr); }
  .hero__actions { flex-direction: column; }
  .cta__actions { flex-direction: column; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ── PAGE-HERO LABEL (breadcrumb) ────────────────────────── */
.page-hero__label {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
}
.page-hero__label a { color: rgba(255,255,255,.55); }
.page-hero__label a:hover { color: #fff; }

/* ── SERVICE INFO BAR (catalog pages) ───────────────────── */
.service-info { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.service-info__inner {
  display: flex; gap: 2rem; flex-wrap: wrap;
  /* Longhand, чтобы не затирать боковые отступы .container (см. .hero__inner) */
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.service-info__item {
  display: flex; align-items: flex-start; gap: .85rem;
  flex: 1; min-width: 220px;
}
.service-info__item > i { color: var(--color-accent); font-size: 1.3rem; margin-top: .1rem; flex-shrink: 0; }
.service-info__item div { display: flex; flex-direction: column; gap: .2rem; }
.service-info__item strong { font-size: .9rem; color: var(--color-primary); }
.service-info__item span { font-size: .82rem; color: var(--color-text-muted); }

/* ── CATALOG COUNT ───────────────────────────────────────── */
.catalog__count { font-size: .9rem; color: var(--color-text-muted); margin-top: .5rem; }
.catalog__count strong { color: var(--color-primary); }

/* ── REVIEWS GRID (reviews.html) ────────────────────────── */
.reviews-grid { display: flex; flex-direction: column; gap: 1.5rem; max-width: 800px; margin: 0 auto; }

/* ── FLOATING ACTION BUTTON (FAB) ──────────────────────── */
@keyframes fabPulse {
  0%   { box-shadow: 0 4px 20px rgba(99,102,241,.5), 0 0 0 0 rgba(99,102,241,.3); }
  70%  { box-shadow: 0 4px 20px rgba(99,102,241,.5), 0 0 0 12px rgba(99,102,241,0); }
  100% { box-shadow: 0 4px 20px rgba(99,102,241,.5), 0 0 0 0 rgba(99,102,241,0); }
}

.fab-review {
  position: fixed;
  right: 1.25rem;
  bottom: 9.5rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0;
  height: 56px;
  width: 56px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .875rem;
  animation: fabPulse 2.5s ease-out infinite;
  transition: width .35s cubic-bezier(.4,0,.2,1),
              border-radius .35s ease,
              box-shadow .2s;
}

.fab-review__icon {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  font-size: 1.1rem;
}

.fab-review__label {
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width .35s cubic-bezier(.4,0,.2,1),
              opacity .25s ease,
              padding .35s;
  padding-right: 0;
}

/* Hover: разворачивается в пилл */
.fab-review:hover {
  width: auto;
  animation: none;
  box-shadow: 0 8px 32px rgba(99,102,241,.6);
}
.fab-review:hover .fab-review__label {
  max-width: 200px;
  opacity: 1;
  padding-right: 1.25rem;
}

@media (max-width: 768px) {
  .fab-review {
    width: auto;
    animation: none;
    bottom: 9.5rem;
    right: 1.25rem;
  }
  .fab-review__label {
    max-width: 200px;
    opacity: 1;
    padding-right: 1rem;
  }
}

/* ── TIMELINE (about.html) ───────────────────────────────── */
.timeline { max-width: 700px; margin: 0 auto; position: relative; }
.timeline::before {
  content: '';
  position: absolute; left: 90px; top: 0; bottom: 0;
  width: 2px; background: var(--color-border);
}
.timeline__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.timeline__item::before {
  content: '';
  position: absolute; left: 82px; top: .4rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 3px var(--color-accent);
}
.timeline__year {
  font-weight: 800; font-size: .9rem;
  color: var(--color-accent);
  text-align: right;
  padding-top: .1rem;
}
.timeline__content h4 { font-size: 1rem; font-weight: 700; color: var(--color-primary); margin-bottom: .35rem; }
.timeline__content p { font-size: .875rem; color: var(--color-text-muted); }

/* ── STEPS (about.html) ──────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.step {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-accent);
  position: relative;
}
.step__num {
  font-size: 3rem; font-weight: 900;
  color: rgba(201,146,26,.15);
  line-height: 1;
  margin-bottom: .75rem;
}
.step__content h4 { font-size: 1rem; font-weight: 700; color: var(--color-primary); margin-bottom: .5rem; }
.step__content p { font-size: .875rem; color: var(--color-text-muted); }
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
  .timeline::before { left: 70px; }
  .timeline__item { grid-template-columns: 70px 1fr; }
  .timeline__item::before { left: 62px; }
}

/* ── CONTACTS PAGE ───────────────────────────────────────── */
.contacts__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) { .contacts__layout { grid-template-columns: 1fr; } }

.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
@media (max-width: 600px) { .contact-cards { grid-template-columns: 1fr; } }

.contact-card {
  display: flex; align-items: flex-start; gap: .85rem;
  background: var(--color-surface);
  border-radius: var(--radius-s);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--color-border);
  transition: var(--transition);
  text-decoration: none; color: inherit;
}
.contact-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-card__icon {
  width: 42px; height: 42px; border-radius: var(--radius-s); flex-shrink: 0;
  background: rgba(26,58,108,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); font-size: 1.1rem;
}
.contact-card__icon--tg { background: #EBF7FD; color: #2AABEE; }
.contact-card__icon--wa { background: #EBF9F1; color: #25D366; }
.contact-card__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); margin-bottom: .15rem; }
.contact-card__value { font-size: .9rem; font-weight: 700; color: var(--color-primary); }
.contact-card__hint { font-size: .75rem; color: var(--color-text-muted); margin-top: .1rem; }

.contact-hours {
  background: var(--color-surface);
  border-radius: var(--radius-s);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}
.contact-hours h4 { font-size: .9rem; font-weight: 700; color: var(--color-primary); display: flex; align-items: center; gap: .5rem; margin-bottom: .85rem; }
.contact-hours h4 i { color: var(--color-accent); }
.contact-hours table { width: 100%; font-size: .875rem; border-collapse: collapse; }
.contact-hours td { padding: .35rem 0; color: var(--color-text-muted); }
.contact-hours td:last-child { text-align: right; font-weight: 600; color: var(--color-primary); }

.map-wrap { position: relative; }
.map-label {
  position: absolute;
  top: 1.5rem; left: 50%; transform: translateX(-50%);
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 1rem;
  white-space: nowrap;
  max-width: 90%;
}
.map-label i { color: var(--color-accent); font-size: 1.3rem; }
.map-label strong { display: block; font-size: .95rem; color: var(--color-primary); }
.map-label span { font-size: .8rem; color: var(--color-text-muted); }
@media (max-width: 600px) { .map-label { display: none; } }

/* ── SEO CONTENT BLOCKS ───────────────────────────────────── */
.seo-content {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
}
.seo-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); margin-bottom: 1rem; }
.seo-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--color-primary); margin: 1.5rem 0 .6rem; }
.seo-content p  { font-size: .95rem; color: var(--color-text-muted); line-height: 1.7; margin-bottom: .75rem; }
.seo-content ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.seo-content ul li { font-size: .95rem; color: var(--color-text-muted); line-height: 1.7; margin-bottom: .3rem; }
.seo-content table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 1rem; }
.seo-content table th { background: var(--color-surface2); color: var(--color-primary); font-weight: 700; padding: .5rem .75rem; text-align: left; }
.seo-content table td { padding: .5rem .75rem; border-bottom: 1px solid var(--color-border, #e5e7eb); color: var(--color-text-muted); }

/* ── DEVELOPERS GRID ──────────────────────────────────────── */
.developers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.developer-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.developer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.developer-card__name { font-size: 1.1rem; font-weight: 700; color: var(--color-primary); }
.developer-card__meta { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.developer-card__meta span { font-size: .8rem; color: var(--color-text-muted); }
.developer-card__meta span i { margin-right: .3rem; color: var(--color-accent); }
.developer-card__desc { font-size: .875rem; color: var(--color-text-muted); line-height: 1.6; flex: 1; }
.developer-card__link { margin-top: .5rem; font-size: .875rem; font-weight: 600; color: var(--color-accent); text-decoration: none; }
.developer-card__link:hover { text-decoration: underline; }

/* ── FAQ ACCORDION ────────────────────────────────────────── */
.faq-list { margin-top: 1.5rem; }
.faq-item { border-bottom: 1px solid var(--color-border, #e5e7eb); }
.faq-item__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1rem 0; font-size: .95rem; font-weight: 600; color: var(--color-primary);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item__q i { font-size: .75rem; transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-item__q i { transform: rotate(180deg); }
.faq-item__a { display: none; padding: 0 0 1rem; font-size: .9rem; color: var(--color-text-muted); line-height: 1.7; }
.faq-item.open .faq-item__a { display: block; }

/* ── Hero badges row ── */
.hero__badges {
  display: flex;
  animation: heroFadeUp 0.6s ease 0.72s both;
}
.hero__badges .hero__trust {
  flex: 1;
}
.hero__photo-sber {
  position: absolute;
  top: 1.25rem;
  right: -1rem;
  background: #22c55e;
  color: #fff;
  border-radius: 14px;
  padding: .75rem .9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(34,197,94,.4);
  max-width: 100px;
  animation: heroFadeUp 0.7s ease 0.6s both;
}
.hero__photo-sber i {
  font-size: 1.35rem;
  color: #fff;
}
.hero__photo-sber span {
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.3;
}
/* live badge body */
.hero__live-body {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  flex: 1;
}
.hero__live-row {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  flex-wrap: wrap;
}
.hero__live-today {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
  font-weight: 500;
}
.hero__live-row strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-accent-light);
  line-height: 1;
  letter-spacing: -.02em;
}
.hero__live-unit {
  font-size: .9rem;
  color: rgba(255,255,255,.9);
}
.hero__live-slogan {
  font-size: .85rem;
  color: rgba(255,255,255,.9);
  margin: 0;
  line-height: 1.3;
}
.hero__live-icon {
  position: relative;
  font-size: 1.5rem;
  color: var(--color-accent-light);
  flex-shrink: 0;
  line-height: 1;
}
.hero__live-lamp {
  position: absolute;
  top: -3px;
  right: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  animation: livePulse 2s ease infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.7); }
  70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ── Comparison Table (about.html) ── */
.compare-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .92rem; }
.compare-table th, .compare-table td { padding: .75rem 1rem; border: 1px solid var(--color-border, #e5e7eb); text-align: left; }
.compare-table th { background: var(--color-surface); font-weight: 600; }
.compare-table td:last-child { color: var(--color-gold, #c9a84c); font-weight: 600; }

@media (max-width: 768px) {
  .developers__grid { grid-template-columns: 1fr; }
  .seo-content h2 { font-size: 1.25rem; }

  .compare-table { font-size: .82rem; }
  .compare-table th, .compare-table td { padding: .5rem .6rem; }
}

/* ── Mortgage calculator (mortgage.html) ─────────────────── */
.calc {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-top: 2rem;
}
.calc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}
.calc__field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: .4rem;
}
.calc__hint {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-top: .35rem;
}
.calc__field--full { grid-column: 1 / -1; }
/* Специфичность выше, чем у `.calc__field label` (display:block) — иначе
   тот перебивал flex, и подпись прилипала вплотную к чекбоксу */
.calc__field label.calc__checkbox {
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  font-weight: 500;
  font-size: .9rem;
  margin-bottom: 0;
}
.calc__checkbox input { width: auto; cursor: pointer; }
.calc__field input[type="range"] {
  padding: 0;
  accent-color: var(--color-accent);
  border: none;
  background: none;
}

.calc__result {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: var(--color-surface2);
  border-radius: var(--radius);
}
.calc__result-item { text-align: center; }
.calc__result-item span {
  display: block;
  font-size: .78rem;
  color: var(--color-text-muted);
  margin-bottom: .25rem;
}
.calc__result-item strong { font-size: 1.15rem; color: var(--color-primary); }
.calc__result-item--main strong { color: var(--color-accent); font-size: 1.4rem; }

.calc__rent {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}
.calc__rent-result {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(201,146,26,.08);
  border-left: 3px solid var(--color-accent);
  font-size: .92rem;
  line-height: 1.6;
  display: none;
}
.calc__rent-result.show { display: block; }
.calc__rent-result strong { color: var(--color-primary); }

@media (max-width: 640px) {
  .calc { padding: 1.25rem; }
  .calc__grid { grid-template-columns: 1fr; }
  .calc__result { grid-template-columns: 1fr 1fr; }
}

/* ── Mortgage calculator modal (global popup) ────────────── */
.modal--calc { max-width: 720px; padding: 1.75rem; }
.modal--calc .calc__grid { margin-top: 0; }
.calc__hint--warn {
  background: rgba(245,158,11,.1);
  border-left: 3px solid var(--color-warning);
  color: var(--color-text);
  padding: .75rem 1rem;
  border-radius: var(--radius-s);
  font-size: .85rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
  .modal--calc { padding: 1.25rem; }
  /* У .btn стоит white-space:nowrap — длинная надпись «Обсудить расчёт
     с риэлтором» не переносилась и вылезала за края модалки на узких экранах */
  .modal--calc .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
