/* =========================================================
   SED Group — стили сайта
   Цвета и шрифт — по брендбуку: #003e87, #009ee3, #d1d3d4, Montserrat
   ========================================================= */

:root {
  --navy-900: #001a44;
  --navy-800: #002a6b;
  --navy: #003e87;
  --blue: #009ee3;
  --gray: #d1d3d4;

  --bg: #ffffff;
  --bg-soft: #f2f5f9;
  --card: #ffffff;
  --ink: #0c1a2e;
  --muted: #5b6a7f;
  --line: #e2e7ee;
  --primary: var(--navy);
  --primary-ink: #fff;
  --accent: var(--blue);
  --accent-ink: #fff;
  --shade: 0, 26, 68;
  --header-h: 84px;
  --radius: 6px;
  --container: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Тёмная тема проекта (например, ЖК PARIS — чёрный + золото) */
.theme-dark {
  --bg: #111317;
  --bg-soft: #171a1f;
  --card: #1b1e24;
  --ink: #f1ede6;
  --muted: #a39d93;
  --line: rgba(255, 255, 255, .1);
  --primary: var(--accent);
  --primary-ink: #14161a;
  --accent-ink: #14161a;
  --shade: 12, 12, 14;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.header-solid { padding-top: var(--header-h); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 5.6vw, 84px); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 3.3vw, 46px); font-weight: 700; }
h3 { font-size: clamp(19px, 1.6vw, 23px); font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.accent { color: var(--accent); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 880px; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.kicker-light { color: rgba(255, 255, 255, .85); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: var(--radius);
  border: 1px solid transparent; background: var(--primary); color: var(--primary-ink);
  font-size: 14px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0, 30, 80, .45); }
.btn:active { transform: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.theme-dark .btn-outline-light:hover { color: #111; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 13px; }
.btn-lg { height: 58px; padding: 0 34px; font-size: 15px; }
.btn-wide { width: 100%; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; color: var(--accent); }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--ink); background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.header-overlay .site-header { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .14); }
.site-header.scrolled,
.header-overlay .site-header.scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--ink); border-color: var(--line); backdrop-filter: blur(12px); box-shadow: 0 6px 30px -18px rgba(0, 20, 60, .35); }
.header-row { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: block; flex: none; color: var(--navy); }
.logo svg { height: 42px; width: auto; display: block; }
.header-overlay .site-header:not(.scrolled) .logo,
.theme-dark .logo,
.logo-light { color: #fff; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { font-size: 14px; font-weight: 500; position: relative; padding: 6px 0; opacity: .88; transition: opacity .2s; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.header-phone .ico { width: 18px; height: 18px; color: var(--accent); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; color: inherit; }
.burger span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform .3s, opacity .3s; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--navy-900); color: #fff;
  padding: 32px; display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a { font-size: 24px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mobile-phone { font-size: 22px; font-weight: 700; }
.menu-open .site-header { background: var(--navy-900) !important; color: #fff !important; }
.menu-open .site-header .logo { color: #fff; }
.menu-open { overflow: hidden; }

.ico { width: 24px; height: 24px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(var(--shade), .9) 0%, rgba(var(--shade), .6) 42%, rgba(var(--shade), .15) 100%),
  linear-gradient(0deg, rgba(var(--shade), .85) 0%, rgba(var(--shade), 0) 45%); }
.hero-content { position: relative; padding-top: calc(var(--header-h) + 72px); padding-bottom: 48px; }
.hero h1 { max-width: 12ch; margin-bottom: 12px; }
.hero-kz { font-size: clamp(14px, 1.3vw, 18px); font-weight: 300; letter-spacing: .32em; text-transform: uppercase; opacity: .8; margin-bottom: 28px; }
.hero-text { font-size: clamp(16px, 1.4vw, 20px); max-width: 46ch; opacity: .9; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin: 0; padding: 32px 0 48px; border-top: 1px solid rgba(255, 255, 255, .2); }
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: clamp(34px, 3.6vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -.02em; margin-bottom: 10px; color: #fff; }
.hero-stats dd { margin: 0; font-size: 14px; opacity: .78; max-width: 28ch; }

.hero-project { min-height: 92svh; }
.hero-project h1.project-title { font-size: clamp(48px, 9vw, 140px); letter-spacing: .04em; max-width: none; line-height: .95; margin: 8px 0 18px; }
.theme-dark .hero-project h1.project-title { color: var(--accent); font-weight: 700; }
.hero-sub { margin-bottom: 14px; }
.hero-addr { display: inline-flex; gap: 8px; align-items: center; opacity: .85; margin-bottom: 32px; }
.hero-addr .ico { width: 20px; height: 20px; color: var(--accent); }
.project-logo { display: block; height: clamp(64px, 8vw, 104px); width: auto; margin-bottom: 24px; }
.hero-content .badge { position: static; margin-bottom: 18px; display: inline-block; }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: linear-gradient(135deg, var(--navy-900), var(--navy) 120%); color: #fff; overflow: hidden; }
.theme-dark .section-navy { background: #0b0c0f; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin: 0; max-width: 20ch; }

.topo {
  position: absolute; inset: 0; pointer-events: none; color: #fff; opacity: .1;
  background: currentColor;
  -webkit-mask: url('../img/topo.svg') center / 1100px repeat; mask: url('../img/topo.svg') center / 1100px repeat;
}
.page-hero .topo { color: var(--navy); opacity: .07; }
.theme-dark .page-hero .topo { color: var(--accent); }

/* ---------- Карточки проектов ---------- */
.projects-wide { display: grid; gap: clamp(48px, 7vw, 104px); }
.project-wide { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.project-wide.flip .pw-media { order: 2; }
.pw-media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--bg-soft); }
.pw-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pw-media:hover img { transform: scale(1.04); }
.pw-body h3 { font-size: clamp(32px, 4vw, 56px); font-weight: 800; letter-spacing: .02em; margin-bottom: 6px; }
.pw-body h3 a:hover { color: var(--accent); }
.pw-sub { font-size: 18px; font-weight: 500; color: var(--muted); }
.pw-text { color: var(--muted); max-width: 52ch; }
.facts-mini { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 24px 0; }
.facts-mini div { margin: 0; }
.facts-mini dt { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.facts-mini dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; }
.chips { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 12px 6px 9px; border: 1px solid var(--line); border-radius: 40px; }
.chips .ico { width: 16px; height: 16px; color: var(--accent); }
.pw-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.badge { position: absolute; top: 16px; left: 16px; z-index: 2; font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 6px 12px; border-radius: 40px; background: #fff; color: var(--navy); }
.badge-sale { background: var(--accent); color: var(--accent-ink); }
.badge-building { background: #ffb020; color: #2a1d00; }
.badge-soon { background: var(--navy); color: #fff; }
.badge-done { background: rgba(255, 255, 255, .92); color: var(--navy); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.cards-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 84px) / 4)); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.cards-scroll > * { scroll-snap-align: start; }
.project-card { display: block; }
.pc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project-card:hover img { transform: scale(1.05); }
.pc-body { padding: 18px 2px 0; }
.pc-body h3 { margin-bottom: 4px; font-size: 22px; }
.pc-body p { color: var(--muted); font-size: 14px; margin: 0; }
.project-card:hover h3 { color: var(--accent); }

/* ---------- Преимущества ---------- */
.adv-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.adv-card { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 28px; }
.adv-card p:last-child { opacity: .8; font-size: 15px; margin: 0; }
.adv-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--blue); margin-bottom: 22px; }
.theme-dark .adv-ico { color: var(--accent); }
.adv-ico .ico { width: 28px; height: 28px; }
.adv-light .adv-card { border-color: var(--line); }
.adv-light .adv-ico { background: var(--bg-soft); color: var(--accent); }
.adv-light .adv-card p:last-child { color: var(--muted); opacity: 1; }

/* ---------- Способы покупки ---------- */
.methods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.method-card { background: var(--bg-soft); border-radius: var(--radius); padding: 32px 28px; transition: background .3s, transform .3s var(--ease), box-shadow .3s; }
.method-card:hover { background: var(--card); transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(0, 40, 100, .35); }
.method-card p { color: var(--muted); font-size: 15px; margin: 0; }
.mc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mc-ico { color: var(--accent); }
.mc-ico .ico { width: 36px; height: 36px; }
.mc-hl { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 4px 12px; border-radius: 40px; vertical-align: middle; letter-spacing: 0; }

.methods-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.method-row { display: grid; grid-template-columns: 60px 64px 1fr auto; gap: 28px; align-items: start; padding: 40px 0; border-bottom: 1px solid var(--line); }
.mr-num { font-size: 14px; font-weight: 600; color: var(--muted); padding-top: 10px; }
.mr-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; color: var(--accent); }
.mr-body h2 { font-size: clamp(22px, 2.4vw, 32px); margin-bottom: 10px; }
.mr-body p { color: var(--muted); max-width: 62ch; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.ticks .ico { width: 18px; height: 18px; color: var(--accent); }

/* калькулятор */
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.calc { background: var(--card); border-radius: var(--radius); padding: 36px; box-shadow: 0 30px 60px -40px rgba(0, 40, 100, .4); display: grid; gap: 22px; }
.calc label { display: grid; gap: 10px; font-size: 14px; font-weight: 500; color: var(--muted); }
.calc label b { color: var(--ink); }
.calc input[type=text] { height: 56px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; font: 600 20px 'Montserrat', sans-serif; color: var(--ink); background: var(--bg); }
.calc input[type=range] { width: 100%; accent-color: var(--accent); }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.calc-result span { display: block; font-size: 13px; color: var(--muted); }
.calc-result b { font-size: clamp(20px, 2vw, 28px); font-weight: 800; }

/* ---------- О компании ---------- */
.about-teaser { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.at-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.at-media img { width: 100%; height: 100%; object-fit: cover; }
.mission { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-size: 17px; font-weight: 500; }
.mission span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); margin-bottom: 6px; font-weight: 600; }
.mission-big { position: relative; font-size: clamp(22px, 2.8vw, 38px); font-weight: 600; line-height: 1.35; margin: 0; }
.slogan-big { display: flex; flex-direction: column; gap: 4px; font-size: clamp(14px, 1.4vw, 18px); text-transform: uppercase; letter-spacing: .3em; color: var(--accent); font-weight: 600; }
.stats-band { background: var(--bg-soft); padding: 56px 0; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin: 0; }
.stats-row div { margin: 0; }
.stats-row dt { font-size: clamp(40px, 4.5vw, 64px); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stats-row dd { margin: 0; color: var(--muted); max-width: 26ch; }

.rich { font-size: 17px; }
.rich h2 { font-size: 26px; margin-top: 1.4em; }
.rich h3 { margin-top: 1.2em; }
.rich ul, .rich ol { padding-left: 1.3em; }
.rich img { border-radius: var(--radius); margin: 1.5em 0; }
.rich a { color: var(--accent); text-decoration: underline; }
.rich blockquote { border-left: 3px solid var(--accent); margin: 1.5em 0; padding-left: 20px; font-weight: 500; }

/* ---------- Новости ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.section-soft .news-card { background: var(--bg); }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -30px rgba(0, 40, 100, .4); }
.nc-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.nc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.news-card:hover img { transform: scale(1.05); }
.nc-body { padding: 24px 26px 28px; }
.nc-body time { font-size: 13px; color: var(--accent); font-weight: 600; }
.nc-body h3 { margin: 8px 0 10px; font-size: 20px; }
.nc-body p { color: var(--muted); font-size: 15px; margin: 0; }
.article-cover { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; }
.article-body { margin-bottom: 40px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }
.pager a.active { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* ---------- Команда ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px; }
.team-card h3 { font-size: 19px; margin: 18px 0 4px; }
.team-card p { margin: 0 0 6px; font-size: 14px; }
.team-card a { font-weight: 600; color: var(--accent); }
.tc-photo { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--blue)); display: grid; place-items: center; }
.tc-photo img { width: 100%; height: 100%; object-fit: cover; }
.tc-photo span { font-size: 56px; font-weight: 800; color: rgba(255, 255, 255, .9); letter-spacing: .04em; }

/* ---------- Формы ---------- */
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form .field-wide, .lead-form .btn, .lead-form .consent, .lead-form .form-msg { grid-column: 1 / -1; }
.lead-form input, .lead-form textarea {
  width: 100%; height: 56px; padding: 0 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: 500 15px 'Montserrat', sans-serif; transition: border-color .2s, box-shadow .2s;
}
.lead-form textarea { height: auto; padding: 14px 18px; resize: vertical; }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.lead-form input.invalid { border-color: #e5484d; }
.lead-form .btn { height: 56px; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { font-size: 12px; color: var(--muted); margin: 0; }
.consent a { text-decoration: underline; }
.form-msg { margin: 0; font-weight: 600; font-size: 14px; min-height: 1px; }
.form-msg.ok { color: #1f9d55; }
.form-msg.err { color: #e5484d; }
.lead-form.sent .field, .lead-form.sent .btn, .lead-form.sent .consent { display: none; }
.lead-form.sent .form-msg { font-size: 17px; padding: 16px 0; }

.cta-section { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-900), var(--navy)); color: #fff; padding: clamp(64px, 8vw, 112px) 0; }
.theme-dark .cta-section { background: linear-gradient(120deg, #0b0c0f, #1d1a14); }
.cta-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.cta-section h2 { color: #fff; }
.cta-section .lead { color: rgba(255, 255, 255, .78); }
.cta-section .lead-form input { background: rgba(255, 255, 255, .96); border-color: transparent; color: #0c1a2e; }
.cta-section .consent { color: rgba(255, 255, 255, .6); }
.cta-section .form-msg.ok { color: #7ee2a8; }

/* ---------- Подвал ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy-900); color: rgba(255, 255, 255, .78); padding: 80px 0 32px; font-size: 15px; }
.theme-dark .site-footer { background: #0a0b0d; }
.site-footer .topo { opacity: .05; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand .logo svg { height: 52px; }
.slogan { display: flex; flex-direction: column; margin: 20px 0 24px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.theme-dark .slogan { color: var(--accent); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-col p { margin: 0; }
.footer-contacts .big { font-size: 22px; font-weight: 700; color: #fff; }
.site-footer .muted { color: rgba(255, 255, 255, .55); }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; color: #fff; transition: background .2s, border-color .2s; }
.socials a:hover { background: var(--blue); border-color: var(--blue); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { position: relative; padding-top: 28px; font-size: 13px; }
.disclaimer { color: rgba(255, 255, 255, .45); font-size: 12px; max-width: 900px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: rgba(255, 255, 255, .55); }
.footer-legal a:hover { color: #fff; }

/* ---------- Внутренние страницы ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--bg-soft); padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(36px, 5vw, 68px); }
.page-hero-article h1 { font-size: clamp(30px, 4vw, 52px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--accent); }
.crumbs-light { color: rgba(255, 255, 255, .7); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tabs a, .tabs button { height: 42px; padding: 0 18px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 40px; background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 500; transition: all .2s; }
.tabs a:hover, .tabs button:hover { border-color: var(--accent); }
.tabs a.active, .tabs button.active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.tabs sup { font-size: 11px; opacity: .7; }
.tabs-filter { margin: 0 0 32px; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }
.big-404 { font-size: clamp(96px, 16vw, 200px); font-weight: 800; line-height: 1; color: var(--accent); margin: 0; }

/* ---------- Страница проекта ---------- */
.facts-bar { background: var(--card); border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.facts div { padding: 28px 24px 28px 0; margin: 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: clamp(17px, 1.6vw, 22px); font-weight: 700; }

.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amenities li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg-soft); border-radius: var(--radius); font-size: 14px; font-weight: 500; line-height: 1.35; }
.amenities li span { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--accent); }
.amenities .ico { width: 22px; height: 22px; }

.section-features .container { display: grid; gap: clamp(56px, 8vw, 120px); }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature.flip .feature-media { order: 2; }
.feature-media { margin: 0; aspect-ratio: 4 / 3.2; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); cursor: zoom-in; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.03); }
.feature-num { display: block; font-size: clamp(56px, 6vw, 88px); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--accent); opacity: .7; margin-bottom: 18px; }
.feature-body h3 { font-size: clamp(24px, 2.6vw, 36px); margin-bottom: 20px; }
.feature-noimg { grid-template-columns: 1fr; background: var(--bg-soft); padding: clamp(32px, 5vw, 64px); border-radius: var(--radius); }
.feature-noimg .bullets { columns: 2; column-gap: 48px; }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-noimg .bullets { display: block; }
.feature-noimg .bullets li { break-inside: avoid; margin-bottom: 14px; }
.bullets li { position: relative; padding-left: 24px; color: var(--muted); }
.bullets li::before { content: ''; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--accent); }
.bullets b { color: var(--ink); font-weight: 600; }

.layouts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.layout-card { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.layout-card[hidden] { display: none; }
.lc-img { aspect-ratio: 1; background: #fff; padding: 20px; cursor: zoom-in; }
.lc-img img { width: 100%; height: 100%; object-fit: contain; }
.lc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lc-body h3 { margin: 0; font-size: 19px; }
.lc-meta { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; font-size: 13px; }
.lc-meta span { display: block; color: var(--muted); }
.lc-price { font-size: 20px; font-weight: 800; color: var(--accent); margin: auto 0 6px; }
.layouts-empty { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 48px); border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); border-radius: var(--radius); background: var(--card); }
.layouts-empty h3 { font-size: clamp(22px, 2.2vw, 30px); }
.layouts-empty p { color: var(--muted); margin: 0; max-width: 56ch; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; }
.g-item { display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); cursor: zoom-in; }
.gallery .g-item:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery .g-item:nth-child(6n + 4) { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item:hover img { transform: scale(1.05); }

.progress-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.progress-item .g-item { aspect-ratio: 4 / 3; margin-bottom: 16px; }
.progress-item time { font-size: 13px; color: var(--accent); font-weight: 600; }
.progress-item h3 { font-size: 18px; margin: 4px 0 6px; }
.progress-item p { color: var(--muted); font-size: 15px; }

.location { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.map-box { height: 440px; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.map-box iframe, .map-full iframe { width: 100%; height: 100%; border: 0; display: block; }
.theme-dark .map-box iframe { filter: grayscale(.6) brightness(.85); }
.map-full { height: 460px; background: var(--bg-soft); }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; background: var(--bg-soft); border-radius: var(--radius); }
.contact-card > span { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--accent); }
.contact-card .kicker { display: flex; margin-bottom: 4px; }
.contact-card .kicker::before { display: none; }
.contact-card .big { font-size: 19px; font-weight: 700; margin: 0; }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }

/* ---------- Модальное окно, лайтбокс ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 16, 40, .6); backdrop-filter: blur(4px); animation: fade .25s; }
.modal-box { position: relative; width: 100%; max-width: 520px; background: var(--bg); border-radius: 10px; padding: 44px 40px 36px; animation: pop .35s var(--ease); max-height: calc(100svh - 40px); overflow-y: auto; }
.modal-box h3 { font-size: 28px; }
.modal-box .lead-form { grid-template-columns: 1fr; }
.modal-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 30px; line-height: 1; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(5, 10, 20, .94); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .08); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 32px; line-height: 1; }
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: 14px; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Анимация появления ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .header-actions { margin-left: auto; }
  .adv-grid, .methods-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-scroll { grid-auto-columns: minmax(280px, calc((100% - 56px) / 3)); }
}
@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .container { padding: 0 20px; }
  .logo svg { height: 34px; }
  .header-phone span { display: none; }
  .header-phone { width: 42px; height: 42px; justify-content: center; border: 1px solid currentColor; border-radius: 50%; opacity: .9; }
  .header-actions .btn { display: none; }
  .project-wide, .about-teaser, .intro-grid, .feature, .location, .contacts-grid, .cta-grid, .calc-wrap { grid-template-columns: 1fr; }
  .project-wide.flip .pw-media, .feature.flip .feature-media { order: 0; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .method-row { grid-template-columns: 56px 1fr; }
  .mr-num { display: none; }
  .method-row .btn { grid-column: 2; justify-self: start; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery .g-item:nth-child(6n + 4) { grid-column: span 1; }
  .layouts-empty { flex-direction: column; align-items: flex-start; }
  .at-media { aspect-ratio: 4 / 3; }
  .facts div:nth-child(n) { padding: 18px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero-content { padding-top: calc(var(--header-h) + 40px); }
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 32px; }
  .hero-stats dd { font-size: 12px; }
  .adv-grid, .methods-grid, .news-grid, .amenities { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .lead-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pw-actions .btn { flex: 1 1 100%; }
  .feature-noimg .bullets { columns: 1; }
  .modal-box { padding: 40px 22px 26px; }
  .cards-scroll { grid-auto-columns: 82%; }
  .calc { padding: 24px; }
  .calc-result { grid-template-columns: 1fr; }
  .map-box { height: 320px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
