/* =========================================================
   РСК · Региональная Строительная Компания
   Landing styles — editorial / warm / coastal
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Warm coastal palette */
  --bg: #f4efe6;
  --bg-elev: #faf6ee;
  --paper: #ece4d2;
  --paper-deep: #ddd2bb;

  --ink: #18222e;
  --ink-soft: #3b4855;
  --ink-mute: #6f6960;
  --ink-faint: #a39c8e;

  --brick: #b85c3a;
  --brick-deep: #8d3f23;
  --gold: #c19a5b;
  --sea: #1e3a4a;
  --sea-deep: #0e2129;

  --line: rgba(24, 34, 46, 0.12);
  --line-strong: rgba(24, 34, 46, 0.22);

  /* Typography */
  --font-display: "IBM Plex Serif", "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-soft: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container: 1240px;
  --gutter: 24px;
  --radius: 14px;
  --radius-lg: 22px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Use lining + tabular figures where exact numeric reading matters */
.phone__num,
.hero__card-value,
.hero__card-value strong,
.project__price strong,
.project__price--sm strong,
.flat__price strong,
.flat__mort strong,
.calc__value,
.calc__value strong,
.calc__row output,
.calc__meta strong,
.mortgage__num,
.field input[type="tel"],
.location__pt {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum";
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
button {
  font-family: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  z-index: 1000;
  border-radius: 8px;
}

/* ---------- Grain texture ---------- */
.bg-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0 0.04 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
.display,
.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0;
  color: var(--ink);
}

.display {
  font-size: clamp(48px, 9.2vw, 132px);
  font-weight: 340;
}

.display__italic,
.h-display__italic {
  font-style: italic;
  color: var(--brick);
  font-weight: 500;
}

.display__accent {
  display: block;
  font-size: 0.55em;
  font-style: italic;
  color: var(--ink-mute);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0;
  margin-top: 0.18em;
  letter-spacing: -0.015em;
}

.h-display {
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 500;
  line-height: 1;
}

.h-display--light {
  color: var(--bg);
}
.h-display--light .h-display__italic {
  color: var(--gold);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.eyebrow--light {
  color: rgba(244, 239, 230, 0.62);
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brick);
  display: inline-block;
}
.eyebrow--light .eyebrow__dot {
  background: var(--gold);
}

.lede {
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 24px 0 0;
  max-width: 540px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  --btn-bg: var(--ink);
  --btn-color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--btn-bg);
  color: var(--btn-color);
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: -0.005em;
  font-size: 15px;
  position: relative;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 150ms var(--ease-hover);
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 220ms var(--ease-out-soft);
}
.btn:hover svg {
  transform: translateX(4px);
}
.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  --btn-bg: var(--ink);
  --btn-color: var(--bg);
}
.btn--primary:hover {
  --btn-bg: var(--sea);
}
.btn--accent {
  --btn-bg: var(--brick);
  --btn-color: #fdf7ed;
}
.btn--accent:hover {
  --btn-bg: var(--brick-deep);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-color: var(--bg);
}
.btn--dark {
  --btn-bg: var(--ink);
  --btn-color: var(--bg);
}
.btn--light {
  --btn-bg: var(--bg);
  --btn-color: var(--ink);
}
.btn--light:hover {
  --btn-bg: #fff;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 14px;
}
.btn--lg {
  padding: 18px 28px;
  font-size: 16px;
}
.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: gap 200ms var(--ease-out-soft);
}
.link-arrow svg {
  width: 16px;
  height: 16px;
}
.link-arrow:hover {
  gap: 14px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 200ms ease,
    background-color 200ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 239, 230, 0.92);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand__logo {
  display: block;
  height: 68px;
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
}
.site-footer__brand .brand__logo {
  height: 76px;
  max-width: min(260px, 80vw);
}

@media (max-width: 959px) {
  .brand__logo {
    height: 48px;
    max-width: min(160px, 52vw);
  }
}

.nav {
  display: none;
  gap: 28px;
  font-size: 15px;
  justify-self: center;
}
.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color 150ms ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out-quart);
}
.nav a:hover {
  color: var(--ink);
}
.nav a:hover::after {
  transform: scaleX(1);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.phone {
  display: none;
  flex-direction: column;
  text-align: right;
  line-height: 1.15;
}
.phone__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.phone__num {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  margin-top: 2px;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 220ms var(--ease-out-soft);
}
.burger.is-open span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  padding: 24px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 240ms var(--ease-out-soft),
    opacity 200ms ease;
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.phone--m {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 20px;
  margin-top: 4px;
}

/* =========================================================
   HERO  ·  editorial coastal magazine spread
   ========================================================= */
.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  --stamp-size: 124px;
  --photo-radius: 0px;
  --hero-easing: var(--ease-out-quart);
  /* Точная привязка к гриду контейнера .container (max 1240, gutter 40) */
  --hero-pad-x: max(24px, calc((100vw - 1240px) / 2 + 40px));
}

/* ---- Сцена hero (mobile-first stacked) ---- */
.hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 0 32px;
  border-top: 1px solid var(--line);
}

/* ---- Контент-колонка (текст) ---- */
.hero__content {
  position: relative;
  z-index: 3;
  order: 2;
  padding: 36px var(--gutter) 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brick);
  box-shadow: 0 0 0 4px rgba(184, 92, 58, 0.14);
  flex-shrink: 0;
}

/* ---- Главная типографика ---- */
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 340;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0;
  letter-spacing: -0.028em;
  line-height: 0.92;
  color: var(--ink);
  font-size: clamp(64px, 17vw, 132px);
}
.hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--brick);
  font-weight: 360;
}

.hero__line {
  display: block;
  padding: 0.02em 0 0.04em;
}
.hero__line-inner {
  display: inline-block;
  will-change: transform, opacity;
}

.hero__lede {
  margin: 28px 0 0;
  max-width: 520px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero__lede strong {
  color: var(--ink);
  font-weight: 500;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__cta-main {
  box-shadow: 0 14px 28px -14px rgba(24, 34, 46, 0.5);
}

/* ---- Фото-композиция ---- */
.hero__art {
  position: relative;
  order: 1;
  margin: 0;
  isolation: isolate;
}
.hero__art-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--photo-radius);
  background: var(--paper-deep);
  clip-path: inset(0 0 0 100%);
  animation: heroPhotoReveal 1000ms var(--hero-easing) 260ms both;
}
@media (min-width: 560px) and (max-width: 959.98px) {
  .hero__art-frame {
    aspect-ratio: 16 / 10;
  }
}
.hero__art-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation:
    heroPhotoZoom 1900ms var(--hero-easing) 260ms both,
    heroPhotoDrift 28s ease-in-out 2200ms infinite alternate;
  will-change: transform;
}
.hero__art-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(14, 33, 41, 0.55));
  pointer-events: none;
  opacity: 0;
  animation: heroFadeIn 600ms ease-out 900ms forwards;
}

@keyframes heroPhotoReveal {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes heroPhotoZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
@keyframes heroPhotoDrift {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.04) translate3d(-1.4%, -0.8%, 0); }
}
@keyframes heroFadeIn {
  to { opacity: 1; }
}

/* ---- Вертикальный лейбл-каптон рядом с фото ---- */
.hero__vlabel {
  position: absolute;
  top: 24px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.86);
  z-index: 2;
  opacity: 0;
  animation: heroFadeIn 500ms ease-out 1100ms forwards;
}
.hero__vlabel-line {
  width: 1px;
  height: 32px;
  background: rgba(244, 239, 230, 0.45);
}
.hero__vlabel-text em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold);
}

/* ---- Магазинный «kicker» поверх фото ---- */
.hero__kicker {
  position: absolute;
  left: 16px;
  bottom: 22px;
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: clamp(34px, 9vw, 58px);
  letter-spacing: -0.02em;
  color: var(--bg);
  line-height: 0.9;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(14px);
  animation: heroKicker 700ms var(--ease-out-soft) 1200ms forwards;
}
.hero__kicker em {
  font-style: italic;
  color: var(--gold);
}
@keyframes heroKicker {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Круглый штамп с орбитальным текстом ---- */
.hero__stamp {
  position: absolute;
  z-index: 4;
  width: var(--stamp-size);
  height: var(--stamp-size);
  bottom: calc(var(--stamp-size) * -0.42);
  right: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--bg);
  opacity: 0;
  transform: scale(0.55) rotate(-12deg);
  animation: heroStampIn 540ms cubic-bezier(0.34, 1.56, 0.64, 1) 1400ms forwards;
  transition: transform 300ms var(--ease-hover);
  text-decoration: none;
}
.hero__stamp:hover {
  transform: scale(1.04) rotate(2deg);
}
.hero__stamp:active {
  transform: scale(0.98) rotate(0deg);
}
.hero__stamp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #ce7150, var(--brick) 60%, var(--brick-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 220, 0.35),
    0 22px 42px -20px rgba(141, 63, 35, 0.7),
    0 2px 0 rgba(0, 0, 0, 0.04);
}
.hero__stamp::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(253, 247, 237, 0.4);
  pointer-events: none;
}

.hero__stamp-orbit {
  position: absolute;
  inset: 0;
  display: block;
  animation: heroStampSpin 32s linear infinite;
}
.hero__stamp-orbit svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero__stamp-text {
  font-family: var(--font-body);
  font-size: 11.6px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--bg);
}

.hero__stamp-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1;
}
.hero__stamp-pct {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 360;
  font-size: calc(var(--stamp-size) * 0.42);
  letter-spacing: -0.05em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: #fdf6e6;
}
.hero__stamp-pct small {
  font-size: 0.45em;
  font-style: italic;
  opacity: 0.85;
}
.hero__stamp-cap {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(253, 246, 230, 0.78);
  margin-top: 2px;
}

@keyframes heroStampSpin {
  to { transform: rotate(360deg); }
}
@keyframes heroStampIn {
  to { opacity: 1; transform: scale(1) rotate(-6deg); }
}

/* ---- Тихая карточка-расчёт ---- */
.hero__note {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 80px;
  max-width: 230px;
  padding: 16px 18px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    0 22px 40px -22px rgba(24, 34, 46, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  display: none;
  transform: rotate(-1.6deg);
  opacity: 0;
  animation: heroNoteIn 520ms var(--ease-out-soft) 1300ms forwards;
}
.hero__note-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brick);
  font-weight: 500;
  margin-bottom: 8px;
}
.hero__note-tag i {
  width: 5px;
  height: 5px;
  background: var(--brick);
  border-radius: 50%;
}
.hero__note-row {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  line-height: 1;
}
.hero__note-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  text-transform: uppercase;
  font-weight: 500;
}
.hero__note-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 420;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.hero__note-value strong {
  font-weight: 460;
}
.hero__note-value small {
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 400;
  margin-left: 2px;
}
.hero__note-meta {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}
@keyframes heroNoteIn {
  to { opacity: 1; transform: rotate(-1.6deg) translateY(0); }
}

/* ---- Нижняя «лента» с чипами ---- */
.hero__ribbon {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero__ribbon-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.hero__chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 18px;
  color: var(--ink);
  transition:
    background-color 220ms var(--ease-hover),
    color 220ms var(--ease-hover);
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero__chip:nth-child(2n) { border-right: none; }
.hero__chip:nth-last-child(-n+2) { border-bottom: none; }

.hero__chip::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brick);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out-quart);
}
.hero__chip:hover { background: var(--bg-elev); }
.hero__chip:hover::before { transform: scaleX(1); }

.hero__chip-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 60;
  font-weight: 360;
  font-size: clamp(28px, 5.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.hero__chip-num small {
  font-size: 0.42em;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0;
  margin-left: 2px;
  text-transform: lowercase;
}
.hero__chip-num sup {
  font-size: 0.5em;
  vertical-align: super;
  margin-left: 1px;
  font-style: italic;
  color: var(--brick);
}
.hero__chip-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-mute);
}
.hero__chip-meta span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.hero__chip-arrow {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition:
    opacity 220ms ease,
    transform 240ms var(--ease-out-soft),
    color 220ms ease;
}
.hero__chip:hover .hero__chip-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--brick);
}

.hero__chip--accent {
  background: var(--ink);
  color: var(--bg);
}
.hero__chip--accent .hero__chip-num { color: var(--bg); }
.hero__chip--accent .hero__chip-num small { color: rgba(244, 239, 230, 0.6); }
.hero__chip--accent .hero__chip-meta { color: rgba(244, 239, 230, 0.62); }
.hero__chip--accent .hero__chip-meta span { color: var(--gold); }
.hero__chip--accent .hero__chip-arrow { color: var(--gold); opacity: 0.7; }
.hero__chip--accent:hover { background: var(--sea-deep); }
.hero__chip--accent:hover .hero__chip-arrow { color: var(--gold); opacity: 1; }
.hero__chip--accent::before { background: var(--gold); }

/* ---- Entrance: каскадное появление контентной части ---- */
.hero__eyebrow,
.hero__lede,
.hero__cta,
.hero__chip {
  opacity: 0;
  transform: translateY(14px);
  animation: heroRise 620ms var(--ease-out-soft) forwards;
}
.hero__eyebrow { animation-delay: 80ms; }
.hero__line:nth-of-type(1) .hero__line-inner { animation: heroLineRise 760ms var(--ease-out-quart) 160ms both; }
.hero__line:nth-of-type(2) .hero__line-inner { animation: heroLineRise 760ms var(--ease-out-quart) 240ms both; }
.hero__line:nth-of-type(3) .hero__line-inner { animation: heroLineRise 760ms var(--ease-out-quart) 320ms both; }
.hero__lede { animation-delay: 540ms; }
.hero__cta  { animation-delay: 660ms; }
.hero__chip:nth-child(1) { animation-delay: 900ms; }
.hero__chip:nth-child(2) { animation-delay: 960ms; }
.hero__chip:nth-child(3) { animation-delay: 1020ms; }
.hero__chip:nth-child(4) { animation-delay: 1080ms; }

@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroLineRise {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head {
  max-width: 820px;
  margin: 0 0 56px;
}
.section-head--row {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: end;
}
.section-head__lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   ADVANTAGES
   ========================================================= */
.advantages {
  padding: 100px 0 60px;
}

.adv-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  counter-reset: adv;
}

.adv-card {
  position: relative;
  padding: 32px 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition:
    transform 320ms var(--ease-out-soft),
    box-shadow 320ms var(--ease-out-soft),
    background-color 320ms ease;
}
.adv-card:hover {
  transform: translateY(-4px);
  background: var(--paper);
  box-shadow: 0 30px 60px -40px rgba(24, 34, 46, 0.3);
}

.adv-card__num {
  font-family: var(--font-display);
  font-weight: 360;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: 48px;
  line-height: 1;
  color: var(--brick);
  margin-bottom: 20px;
  display: block;
}
.adv-card h3 {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.adv-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.adv-card__arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 250ms var(--ease-out-soft);
}
.adv-card__arrow svg {
  width: 22px;
  height: 22px;
}
.adv-card--wide:hover .adv-card__arrow {
  background: var(--ink);
  color: var(--bg);
  transform: rotate(-45deg);
}

/* =========================================================
   PROJECTS
   ========================================================= */
.projects {
  padding: 60px 0 100px;
}

.project--lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  margin-bottom: 32px;
}

.project--lead .project__media {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.project--lead .project__body {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.project__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper);
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 800ms var(--ease-out-quart);
}
.project--lead:hover .project__media img,
.project--sm:hover .project__media img {
  transform: scale(1.07);
}

.project__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--brick);
  color: #fdf7ed;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.1;
  font-variation-settings: "opsz" 96;
  letter-spacing: 0.02em;
}

.project__body {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project__loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.project__loc svg {
  width: 14px;
  height: 14px;
}

.project__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1;
}
.project__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--sea);
}

.project__desc {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 540px;
}

.project__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
  margin: 8px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.project__specs dt {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 6px;
}
.project__specs dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 460;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.01em;
}

.project__foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}
.project__price {
  display: flex;
  flex-direction: column;
  margin: 0;
  line-height: 1;
}
.project__price span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.project__price strong {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 440;
  letter-spacing: -0.02em;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.project--sm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project__media--sm {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}
.project--sm h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 420;
  margin: 0;
  letter-spacing: -0.01em;
}
.project--sm h3 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--brick);
}
.project__price--sm {
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-mute);
}
.project__price--sm strong {
  font-size: 22px;
  color: var(--ink);
}

/* =========================================================
   LAYOUTS
   ========================================================= */
.layouts {
  background: var(--paper);
  padding: 100px 0;
  position: relative;
}
.layouts::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    1200px 600px at 90% -10%,
    rgba(184, 92, 58, 0.08),
    transparent
  );
  pointer-events: none;
}

.layouts__tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 40px;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
}
.tab {
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--ink-mute);
  font-size: 14px;
  font-weight: 500;
  transition:
    color 180ms ease,
    background-color 240ms var(--ease-out-soft);
}
.tab.is-active {
  background: var(--ink);
  color: var(--bg);
}
.tab:hover:not(.is-active) {
  color: var(--ink);
}

.layouts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.flat {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 320ms var(--ease-out-soft),
    box-shadow 320ms var(--ease-out-soft);
}
.flat:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -40px rgba(24, 34, 46, 0.25);
}

.flat__plan {
  background: #fff;
  padding: 12px 16px;
  display: grid;
  place-items: center;
  min-height: 240px;
  min-width: 0;
}
.flat__plan svg {
  width: 100%;
  height: 100%;
  max-width: 320px;
}
.flat__plan img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.flat__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.flat__tag {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.flat__hit {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--brick);
  color: #fdf7ed;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.flat__title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1;
}
.flat__title span {
  font-size: 20px;
  color: var(--ink-mute);
  font-style: italic;
}
.flat__specs {
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.flat__specs > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.flat__specs > div:last-child {
  border-bottom: 0;
}
.flat__specs dt {
  margin: 0;
  color: var(--ink-mute);
  font-weight: 400;
}
.flat__specs dd {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.flat__feat {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.flat__feat li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.flat__feat li:last-child {
  border-bottom: 0;
}
.flat__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.flat__price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}
.flat__price span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.flat__price strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 460;
  letter-spacing: -0.01em;
}
.flat__mort {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
}
.flat__mort strong {
  color: var(--brick);
  font-weight: 500;
}

.layouts__hint {
  margin: 40px 0 0;
  font-size: 15px;
  color: var(--ink-mute);
}
.layouts__hint a {
  color: var(--brick);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* =========================================================
   MORTGAGE
   ========================================================= */
.mortgage {
  background: var(--sea-deep);
  color: var(--bg);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.mortgage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 0% 100%, rgba(184, 92, 58, 0.22), transparent),
    radial-gradient(900px 500px at 100% 0%, rgba(193, 154, 91, 0.16), transparent);
  pointer-events: none;
}

.mortgage__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  position: relative;
}

.mortgage__lede {
  font-size: 17px;
  color: rgba(244, 239, 230, 0.78);
  max-width: 520px;
  margin: 24px 0 36px;
  line-height: 1.55;
}

.big-pct {
  display: inline-flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-weight: 320;
  font-size: clamp(140px, 22vw, 280px);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 0.85;
  color: var(--gold);
  letter-spacing: -0.05em;
}
.big-pct sup {
  font-size: 0.4em;
  margin-top: 0.15em;
}
.big-pct__cap {
  display: block;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 360;
  letter-spacing: -0.01em;
  color: var(--bg);
  margin-top: 12px;
  line-height: 1;
}

.mortgage__list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}
.mortgage__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(244, 239, 230, 0.78);
  font-size: 14px;
}
.mortgage__num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 440;
  color: var(--bg);
  letter-spacing: -0.01em;
  line-height: 1;
}

.mortgage__legal {
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(244, 239, 230, 0.5);
  max-width: 520px;
  line-height: 1.5;
}

.mortgage__calc {
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.4);
}
.calc__title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.calc__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 64px);
  font-weight: 380;
  letter-spacing: -0.025em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.calc__value strong {
  font-weight: 380;
  transition: color 200ms ease;
}
.calc__value span {
  font-size: 0.5em;
  color: var(--ink-mute);
  font-style: italic;
}

.calc__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.calc__row span {
  display: flex;
  justify-content: space-between;
}
.calc__row output {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 460;
  color: var(--ink);
  align-self: flex-end;
  letter-spacing: -0.01em;
}
.calc__row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: var(--line-strong);
  border-radius: 999px;
  outline: none;
  width: 100%;
}
.calc__row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brick);
  cursor: grab;
  border: 4px solid var(--bg-elev);
  box-shadow: 0 4px 12px rgba(184, 92, 58, 0.4);
  transition: transform 200ms var(--ease-out-soft);
}
.calc__row input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.15);
  cursor: grabbing;
}
.calc__row input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brick);
  cursor: grab;
  border: 4px solid var(--bg-elev);
}

.calc__meta {
  list-style: none;
  padding: 16px 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-mute);
}
.calc__meta li {
  display: flex;
  justify-content: space-between;
}
.calc__meta strong {
  color: var(--ink);
  font-weight: 600;
}

/* =========================================================
   STORY
   ========================================================= */
.story {
  padding: 100px 0;
}

.story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.story__lede {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 24px 0 16px;
}
.story__copy p {
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.story__copy .link-arrow {
  margin-top: 12px;
}

.story__stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}
.story__stats li {
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.story__num {
  font-family: var(--font-display);
  display: block;
  font-size: clamp(46px, 7vw, 84px);
  font-weight: 340;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brick);
  margin-bottom: 12px;
}
.story__stats p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 240px;
}

/* =========================================================
   LOCATION
   ========================================================= */
.location {
  padding: 60px 0 100px;
}
.location__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--paper);
  border: 1px solid var(--line);
}
.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85) contrast(0.96);
}

.location__points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.location__points li {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  transition:
    transform 240ms var(--ease-out-soft),
    background-color 240ms ease;
}
.location__points li:hover {
  transform: translateY(-2px);
  background: var(--paper);
}
.location__pt {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 440;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.location__points p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.35;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  padding: 60px 0 100px;
  background: var(--paper);
  position: relative;
}

.faq__inner {
  max-width: 920px;
}

.faq__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.faq__item {
  border-bottom: 1px solid var(--line-strong);
}
.faq__item details {
  padding: 24px 0;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 280ms var(--ease-out-soft);
}
.faq__icon svg {
  width: 18px;
  height: 18px;
}
.faq__item details[open] .faq__icon {
  transform: rotate(180deg);
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.faq__item details p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  max-width: 700px;
  font-size: 16px;
  animation: faqIn 240ms var(--ease-out-soft);
}

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

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--ink);
  color: var(--bg);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px 500px at 80% 20%,
    rgba(193, 154, 91, 0.14),
    transparent
  );
  pointer-events: none;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
}

.contact__lede {
  font-size: 17px;
  color: rgba(244, 239, 230, 0.72);
  max-width: 480px;
  margin: 24px 0 36px;
  line-height: 1.55;
}

.contact__channels {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.contact__channels li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact__channels span:first-child {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.45);
}
.contact__channels a,
.contact__channels li > span:last-child {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.01em;
  color: var(--bg);
  transition: color 180ms ease;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum";
}
.contact__channels a:hover {
  color: var(--gold);
}

.lead-form {
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
}
.lead-form__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 420;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0 12px;
  font-size: 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 440;
  letter-spacing: -0.005em;
  transition: border-color 200ms ease;
}
.field input::placeholder {
  color: var(--ink-faint);
  font-style: italic;
  font-variation-settings: "opsz" 96;
}
.field input:focus {
  outline: none;
  border-bottom-color: var(--brick);
}
.field.is-error input {
  border-bottom-color: var(--brick);
  animation: shake 320ms ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.lead-form__legal {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.45;
}
.lead-form__legal a {
  color: var(--brick);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--sea-deep);
  color: rgba(244, 239, 230, 0.78);
  padding: 64px 0 28px;
}
.brand--light {
  color: var(--bg);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}
.site-footer__about {
  margin: 16px 0 0;
  font-size: 14px;
  max-width: 360px;
  color: rgba(244, 239, 230, 0.6);
  line-height: 1.5;
}
.site-footer__nav,
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.site-footer__nav p,
.site-footer__col p {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  color: var(--gold);
  font-variation-settings: "opsz" 96, "SOFT" 100;
  letter-spacing: 0.02em;
}
.site-footer__nav a:hover,
.site-footer__col a:hover {
  color: var(--bg);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(244, 239, 230, 0.45);
}
.site-footer__bottom a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================================
   MODAL
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 33, 41, 0.45);
  backdrop-filter: blur(6px);
  animation: fadeIn 220ms ease-out;
}
.modal__panel {
  position: relative;
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  padding: 40px 28px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
  animation: modalIn 280ms var(--ease-out-soft);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}
.modal__close:hover {
  background: var(--ink);
  color: var(--bg);
}
.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  color: var(--brick);
  margin: 0 auto 20px;
}
.modal__title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 14px;
}
.modal__title em {
  font-style: italic;
  color: var(--brick);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.modal__text {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms var(--ease-out-quart),
    transform 700ms var(--ease-out-quart);
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   BREAKPOINTS
   ========================================================= */
@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .adv-card:nth-child(4) {
    grid-column: span 1;
  }
  .adv-card--wide {
    grid-column: span 2;
    min-height: 200px;
  }
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .layouts__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .location__points {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact__channels {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  .story__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__ribbon-inner {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero__chip {
    border-right: 1px solid var(--line);
    border-bottom: none;
  }
  .hero__chip:nth-child(2n) { border-right: 1px solid var(--line); }
  .hero__chip:last-child { border-right: none; }
  .hero__chip:nth-last-child(-n+2) { border-bottom: none; }
}

@media (min-width: 960px) {
  :root {
    --gutter: 40px;
  }
  .nav {
    display: inline-flex;
  }
  .phone {
    display: inline-flex;
  }
  .burger {
    display: none;
  }
  .header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .hero {
    --stamp-size: 156px;
  }
  .hero__stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: stretch;
    gap: 0;
    padding: 0 0 32px;
  }
  .hero__content {
    order: initial;
    grid-column: 1;
    grid-row: 1;
    padding: 40px var(--gutter) 48px var(--hero-pad-x);
    align-self: start;
    min-width: 0;
  }
  .hero__title {
    font-size: clamp(72px, 8.4vw, 132px);
    margin-top: 8px;
  }
  .hero__art {
    order: initial;
    grid-column: 2;
    grid-row: 1;
    position: relative;
    margin-right: calc(40px - var(--hero-pad-x));
    align-self: stretch;
  }
  .hero__art-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
  .hero__vlabel {
    top: 32px;
    right: 28px;
  }
  .hero__kicker {
    left: 36px;
    bottom: 36px;
    font-size: clamp(48px, 4.4vw, 76px);
  }
  /* Штамп — внутри фото, выезжает влево за его край в paper-зону */
  .hero__stamp {
    top: 50%;
    bottom: auto;
    right: auto;
    left: calc(var(--stamp-size) * -0.5);
    transform: translateY(-50%) scale(0.55) rotate(-12deg);
    animation: heroStampInDesktop 540ms cubic-bezier(0.34, 1.56, 0.64, 1) 1400ms forwards;
  }
  .hero__stamp:hover {
    transform: translateY(-50%) scale(1.04) rotate(2deg);
  }
  .hero__stamp:active {
    transform: translateY(-50%) scale(0.98) rotate(0deg);
  }
  @keyframes heroStampInDesktop {
    to { opacity: 1; transform: translateY(-50%) scale(1) rotate(-6deg); }
  }
  .hero__note {
    display: block;
    left: auto;
    right: 28px;
    bottom: 28px;
    max-width: 260px;
  }
}

  .section-head {
    margin-bottom: 80px;
  }
  .section-head--row {
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
  }

  .adv-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .adv-card {
    grid-column: span 2;
  }
  .adv-card:nth-child(4),
  .adv-card--wide {
    grid-column: span 3;
    min-height: 240px;
  }
  .adv-card--wide {
    flex-direction: column;
    padding: 36px 36px 32px;
    background: var(--ink);
    color: var(--bg);
    border-color: transparent;
  }
  .adv-card--wide:hover {
    background: var(--sea);
    transform: translateY(-4px);
  }
  .adv-card--wide .adv-card__num {
    font-size: 56px;
    color: var(--gold);
    margin-bottom: 24px;
  }
  .adv-card--wide h3 {
    color: var(--bg);
    font-size: 26px;
  }
  .adv-card--wide p {
    color: rgba(244, 239, 230, 0.72);
    max-width: 460px;
  }
  .adv-card--wide .adv-card__arrow {
    border-color: rgba(244, 239, 230, 0.28);
    color: var(--bg);
    bottom: 28px;
    right: 28px;
  }
  .adv-card--wide:hover .adv-card__arrow {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
  }

  .project--lead {
    grid-template-columns: 1.2fr 1fr;
  }
  .project--lead .project__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }
  .project--lead .project__body {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }
  .project__body {
    padding: 40px;
    gap: 20px;
  }
  .project__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .project__specs {
    grid-template-columns: repeat(4, 1fr);
  }

  .layouts__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flat {
    flex-direction: row;
    align-items: stretch;
  }
  .flat__plan {
    flex: 0 0 42%;
    max-width: 42%;
    align-self: stretch;
    min-height: 260px;
    padding: 12px 16px;
    border-right: 1px solid var(--line);
  }
  .flat__plan img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }
  .flat__body {
    flex: 1;
    justify-content: center;
    padding: 28px 28px 28px 20px;
    min-width: 0;
  }
  .flat__title {
    font-size: clamp(32px, 3.2vw, 42px);
  }
  .flat__plan--portrait {
    flex: 0 0 36%;
    max-width: 36%;
    padding: 12px 10px;
  }

  .mortgage__inner {
    grid-template-columns: 1.3fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .mortgage__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .story__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .story__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .location__grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: stretch;
  }
  .location__points {
    grid-template-columns: repeat(2, 1fr);
    align-content: start;
  }

  .contact__inner {
    grid-template-columns: 1fr 0.9fr;
    gap: 80px;
    align-items: start;
  }
  .lead-form {
    padding: 36px;
  }

  .mortgage__calc {
    padding: 36px;
  }
}

@media (min-width: 1180px) {
  .hero {
    --stamp-size: 172px;
  }
  .hero__title {
    font-size: clamp(88px, 9.2vw, 152px);
  }
  .hero__stage {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
  .display {
    font-size: clamp(72px, 8.2vw, 128px);
  }
}

/* =========================================================
   ACCESSIBILITY · REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  /* Hero — отключаем оркестровку, оставляем статичную композицию */
  .hero__art-frame,
  .hero__art-frame img,
  .hero__art-shade,
  .hero__vlabel,
  .hero__kicker,
  .hero__stamp,
  .hero__stamp-orbit,
  .hero__note,
  .hero__eyebrow,
  .hero__line-inner,
  .hero__lede,
  .hero__cta,
  .hero__chip {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .hero__stamp { transform: rotate(-6deg) !important; }
}

/* Disable hover-only effects on touch */
@media (hover: none) {
  .adv-card:hover,
  .flat:hover,
  .location__points li:hover {
    transform: none;
  }
}
