/* =========================================================
   ARKENON CITY — V2 «Светлая редакция»
   ========================================================= */

@font-face{
  font-family:'Optima';
  src:url('../assets/fonts/optima.ttf') format('truetype');
  font-weight:400 700; font-display:swap;
}

:root{
  --bg:      #F4EEE4;
  --bg-2:    #ECE3D6;
  --surface: #FFFFFF;
  --line:    rgba(46,32,30,.13);
  --line-2:  rgba(46,32,30,.22);
  --gold:    #6E2E38;   /* бордовый акцент — цвет стены лобби на рендере */
  --gold-d:  #57232C;
  --white:   #2A211E;   /* основной тёмный текст на светлом фоне */
  --light:   #F6F0E8;   /* светлый текст на рендер-фонах: hero, двор, панорама */
  --muted:   #6E635A;
  --dim:     #9A9089;

  --serif: 'Optima', Georgia, serif;
  --sans:  'Optima', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --pad:   clamp(20px, 5vw, 72px);
  --gap:   clamp(28px, 4vw, 68px);
  --sec-y: clamp(58px, 6.6vw, 104px);
  --ease:  cubic-bezier(.22,.61,.36,1);
  --hdr-h: 80px;
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; scroll-padding-top:var(--hdr-h); -webkit-text-size-adjust:100%; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  font-family:var(--sans); font-weight:400; font-size:16px; line-height:1.7;
  color:var(--white); background:var(--bg);
  overflow-x:hidden; -webkit-font-smoothing:antialiased;
}
body.is-locked{ overflow:hidden; }

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
a, button, input, select, textarea{ touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }
::selection{ background:var(--gold); color:var(--bg); }

.container{ width:100%; max-width:1400px; margin-inline:auto; padding-inline:var(--pad); }
.center{ text-align:center; }

.skip{
  position:absolute; left:-9999px; top:0; z-index:1002;
  padding:14px 22px; background:var(--gold); color:var(--light);
  font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
}
.skip:focus{ left:var(--pad); top:12px; }

/* ---------- Служебные слои ---------- */
.progress{
  position:fixed; top:0; left:0; height:2px; width:0; z-index:1000;
  background:linear-gradient(90deg, var(--gold-d), var(--gold));
}
.grain{
  position:fixed; inset:-100px; z-index:5; pointer-events:none; opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain 9s steps(10) infinite;
}
@keyframes grain{
  0%,100%{ transform:translate(0,0); } 10%{ transform:translate(-4%,-6%); }
  30%{ transform:translate(4%,3%); } 50%{ transform:translate(-3%,6%); }
  70%{ transform:translate(6%,-4%); } 90%{ transform:translate(-5%,2%); }
}
@media (prefers-reduced-motion: reduce){ .grain{ animation:none; } }

/* ---------- Типографика ---------- */
.h2{
  font-family:var(--serif); font-weight:400;
  font-size:clamp(30px, 4vw, 54px);
  line-height:1.14; letter-spacing:-.01em; color:var(--white);
}
.h2 em{ font-style:normal; color:var(--gold); }

.eyebrow{
  display:flex; align-items:baseline; gap:14px;
  font-size:11px; letter-spacing:.3em; text-transform:uppercase; font-weight:600;
  color:var(--muted); margin-bottom:22px;
}
.eyebrow.center{ justify-content:center; }
.eyebrow__num{
  font-family:var(--serif); font-style:normal; font-size:15px; letter-spacing:.06em;
  color:var(--gold);
}
.eyebrow__num::after{ content:''; display:inline-block; width:32px; height:1px; background:var(--gold); margin-left:14px; vertical-align:middle; opacity:.6; }

.h2 + .rich, .h2 + .sec__lead{ margin-top:clamp(22px,2.4vw,32px); }
.rich p{ font-size:clamp(15.5px,1.4vw,17.5px); color:var(--muted); margin-top:1.1em; max-width:60ch; }
.rich p:first-child{ margin-top:0; }
.rich b{ color:var(--white); font-weight:600; }

.sec{ padding-block:var(--sec-y); position:relative; }
.sec__head{ margin-bottom:clamp(28px,3.4vw,48px); }
.sec__head.center{ max-width:800px; margin-inline:auto; text-align:center; }
.sec__lead{ margin-top:20px; font-size:clamp(15.5px,1.4vw,17.5px); color:var(--muted); }

/* ---------- Reveal ---------- */
.reveal{ opacity:0; transform:translateY(30px); filter:blur(6px);
  transition:opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.is-in{ opacity:1; transform:none; filter:none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; filter:none; transition:none; } }

/* ---------- Кнопки ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:18px 34px;
  font-size:12.5px; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  border-radius:0; border:1px solid transparent;
  transition:background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  will-change:transform;
}
.btn--gold{ background:var(--gold); color:var(--light); }
.btn--gold:hover{ background:var(--white); }
.btn--ghost{ border-color:var(--line-2); color:var(--white); }
.btn--ghost:hover{ border-color:var(--gold); color:var(--gold); }
.btn--sm{ padding:12px 22px; font-size:11px; min-height:44px; }
.btn--full{ width:100%; margin-top:8px; }


/* =========================================================
   ЭФФЕКТЫ
   ========================================================= */

/* №1 — заголовок появляется по словам из-под маски */
.js-words .w{ display:inline-block; overflow:hidden; vertical-align:bottom; }
.js-words .w > i{
  display:inline-block; font-style:inherit;
  transform:translateY(105%);
  transition:transform .85s var(--ease);
  transition-delay:var(--d,0ms);
}
.js-words.is-in .w > i{ transform:none; }
@media (prefers-reduced-motion: reduce){
  .js-words .w > i{ transform:none; transition:none; }
}

/* №3 — золотой росчерк под ключевым словом */
u.ink{
  text-decoration:none; position:relative; color:inherit;
  background-image:linear-gradient(var(--gold), var(--gold));
  background-repeat:no-repeat;
  background-position:0 100%;
  background-size:0% 1px;
  transition:background-size 1.1s var(--ease) .25s;
  padding-bottom:2px;
}
.is-in u.ink, .reveal.is-in u.ink{ background-size:100% 1px; }
@media (prefers-reduced-motion: reduce){ u.ink{ background-size:100% 1px; transition:none; } }

/* №9 — фокус на карточке: соседние гаснут */
.adv__grid:hover .adv{ opacity:.42; transition:opacity .45s var(--ease), background .45s var(--ease); }
.adv__grid:hover .adv:hover{ opacity:1; }
@media (hover:none), (pointer:coarse){
  .adv__grid:hover .adv{ opacity:1; }
}

/* №18 — отклик строк характеристик */
.speclist__row{ position:relative; transition:padding-left .4s var(--ease), background .4s var(--ease); }
.speclist__row::before{
  content:''; position:absolute; left:0; top:50%; width:0; height:1px;
  background:var(--gold); transform:translateY(-50%);
  transition:width .4s var(--ease);
}
.speclist__row:hover{ padding-left:26px; background:rgba(110,46,56,.03); }
.speclist__row:hover::before{ width:16px; }
.speclist__row dt{ transition:color .35s var(--ease); }
.speclist__row:hover dt{ color:var(--white); }

/* №19 — плавающая полоса CTA */
.stickybar{
  position:fixed; left:0; right:0; bottom:0; z-index:400;
  background:rgba(246,240,232,.94); backdrop-filter:blur(16px) saturate(1.1);
  border-top:1px solid var(--line-2);
  transform:translateY(100%);
  transition:transform .5s var(--ease);
}
.stickybar.is-in{ transform:none; }
.stickybar__inner{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding-block:14px;
}
.stickybar__text{
  display:flex; align-items:center; gap:12px;
  font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted);
}
.stickybar__phone{ color:var(--white); }
.stickybar__text b{ color:var(--gold); font-weight:600; }
.stickybar__dot{ width:3px; height:3px; border-radius:50%; background:var(--dim); flex-shrink:0; }
.stickybar__act{ display:flex; align-items:center; gap:18px; }
.stickybar__phone{
  display:inline-flex; align-items:center; gap:8px; min-height:44px;
  font-size:15px; font-weight:700; color:var(--white);
  transition:color .3s var(--ease);
}
.stickybar__phone .ico-phone{ color:var(--gold); }
.stickybar__phone:hover{ color:var(--gold); }

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader{
  position:fixed; inset:0; z-index:9999; background:var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:34px;
  transition:opacity .8s var(--ease), visibility .8s;
}
.preloader.is-done{ opacity:0; visibility:hidden; }
.preloader__logo{ width:min(300px,60vw); height:auto; }
.preloader__count{
  font-family:var(--serif); font-size:clamp(40px,6vw,64px); line-height:1;
  color:var(--gold); font-variant-numeric:tabular-nums;
}

/* =========================================================
   HEADER
   ========================================================= */
.hdr{
  position:fixed; top:0; left:0; right:0; z-index:500;
  transition:background .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease);
}
.hdr__inner{
  max-width:1400px; margin-inline:auto; padding-inline:var(--pad);
  height:var(--hdr-h);
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.hdr.is-solid{ background:rgba(246,240,232,.92); backdrop-filter:blur(16px) saturate(1.1); box-shadow:0 1px 0 var(--line); }
.hdr.is-hidden{ transform:translateY(-100%); }

.hdr__logo{ display:flex; align-items:center; flex-shrink:0; min-height:44px; }
.hdr__logo img{ height:26px; width:auto; }

.nav{ display:flex; gap:clamp(10px,1.4vw,22px); }
.nav a{
  white-space:nowrap; min-height:44px; display:inline-flex; align-items:center;
  font-size:11.5px; font-weight:500; letter-spacing:.1em; text-transform:uppercase;
  color:var(--muted); position:relative; padding-block:6px;
  transition:color .3s var(--ease);
}
.nav a::after{
  content:''; position:absolute; left:0; bottom:0; height:1px; width:0; background:var(--gold);
  transition:width .35s var(--ease);
}
.nav a:hover{ color:var(--white); }
.nav a:hover::after, .nav a.is-active::after{ width:100%; }
.nav a.is-active{ color:var(--white); }

.hdr__right{ display:flex; align-items:center; gap:clamp(10px,1.6vw,22px); }
.lang{ display:flex; align-items:center; gap:2px; font-size:11.5px; font-weight:600; letter-spacing:.08em; }
.lang__btn{ color:var(--dim); transition:color .3s; min-height:44px; min-width:44px; justify-content:center; padding:0 6px; display:inline-flex; align-items:center; }
.lang__btn.is-active{ color:var(--gold); }
.lang__btn:hover{ color:var(--white); }
.lang__sep{ color:var(--dim); }
.hdr__phone{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; min-width:44px; padding-inline:4px;
  font-size:14.5px; font-weight:700; letter-spacing:.02em; color:var(--white); white-space:nowrap;
  transition:color .3s var(--ease);
}
.hdr__phone:hover{ color:var(--gold); }
.ico-phone{ width:16px; height:16px; flex-shrink:0; }
.hdr__phone .ico-phone{ color:var(--gold); }

.burger{ display:none; width:44px; height:44px; position:relative; margin-right:-10px; }
.burger span{
  position:absolute; left:9px; right:9px; height:1.5px; background:var(--white);
  transition:transform .4s var(--ease), opacity .3s;
}
.burger span:nth-child(1){ top:13px; }
.burger span:nth-child(2){ top:21px; }
.burger span:nth-child(3){ top:29px; }
.burger.is-open span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity:0; }
.burger.is-open span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero{ position:relative; z-index:6; min-height:100svh; display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden; }
.hero__media{ position:absolute; inset:-8% 0; will-change:transform; transform:translate3d(0,0,0); backface-visibility:hidden; }
.hero__media img{ width:100%; height:100%; object-fit:cover; object-position:center 55%; }
.hero__vid{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center 55%;
  opacity:0; transition:opacity 1.4s var(--ease);
  backface-visibility:hidden; transform:translateZ(0);
}
.hero__vid.is-active{ opacity:1; }
.hero__scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(100deg, rgba(24,14,16,.66) 0%, rgba(24,14,16,.32) 48%, rgba(24,14,16,0) 82%),
    linear-gradient(180deg, rgba(24,14,16,.34) 0%, rgba(24,14,16,0) 32%, rgba(24,14,16,.32) 74%, var(--bg) 100%);
}

.hero__content{ position:relative; z-index:2; padding-bottom:clamp(44px,6vw,80px); padding-top:calc(var(--hdr-h) + 40px); }
.hero__title{
  font-family:var(--serif); font-weight:400;
  font-size:clamp(34px, 4.6vw, 72px);
  line-height:1.1; letter-spacing:-.015em; color:var(--white);
  max-width:26ch; text-wrap:balance;
}
.hero__title em{ font-style:normal; color:var(--gold); }
.hero__title em{ font-style:normal; color:var(--gold); }
.hero__lead{
  margin-top:26px; max-width:52ch;
  font-size:clamp(15px,1.5vw,18px); line-height:1.7; color:rgba(244,241,234,.78);
}
.hero__specs{
  list-style:none; margin-top:22px;
  display:flex; flex-wrap:wrap; align-items:center; gap:10px 0;
  font-size:12px; letter-spacing:.16em; text-transform:uppercase; font-weight:600;
  color:rgba(244,241,234,.72);
}
.hero__specs li + li{ margin-left:16px; padding-left:16px; border-left:1px solid rgba(244,241,234,.24); }
.hero__specs .is-accent{ color:var(--light); font-weight:600; }

.hero__actions{ margin-top:36px; display:flex; flex-wrap:wrap; gap:14px; }

.hero__countdown{
  position:relative; z-index:2;
  border-top:1px solid var(--line);
  background:rgba(24,14,16,.5); backdrop-filter:blur(14px);
}
.cd{ display:grid; grid-template-columns:auto auto 1fr; align-items:center; gap:clamp(22px,4vw,64px); padding-block:24px; }
.cd__label{ display:flex; flex-direction:column; gap:4px; }
.cd__kicker{ font-size:10.5px; letter-spacing:.28em; text-transform:uppercase; color:var(--gold); font-weight:600; }
.cd__date{ font-family:var(--serif); font-size:clamp(20px,2.4vw,29px); color:var(--white); }
.cd__timer{ display:flex; align-items:center; gap:clamp(12px,1.8vw,26px); }
.cd__cell{ display:flex; flex-direction:column; align-items:center; min-width:52px; }
.cd__cell b{
  font-family:var(--serif); font-weight:400; font-size:clamp(30px,3.4vw,46px); line-height:1;
  color:var(--white); font-variant-numeric:tabular-nums;
}
.cd__cell span{ font-size:9.5px; letter-spacing:.2em; text-transform:uppercase; color:var(--dim); margin-top:8px; }
.cd__sep{ width:1px; height:34px; background:var(--line); }
.cd__note{ font-size:13px; line-height:1.65; color:var(--muted); max-width:42ch; justify-self:end; text-align:right; }

/* =========================================================
   SPLIT + РАМКИ
   ========================================================= */
.split{ display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr); gap:var(--gap); align-items:center; }
.split__media figcaption{ margin-top:16px; font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--dim); }
.split__text .rich p{ max-width:46ch; }
.split__text .h2{ font-size:clamp(28px,3.2vw,46px); }

.frame{ position:relative; }
.frame picture{ display:block; overflow:hidden; }
.frame img{ width:100%; aspect-ratio:16/10; object-fit:cover; transition:transform 1.4s var(--ease); }
.frame:hover img{ transform:scale(1.04); }
.frame::after{
  content:''; position:absolute; inset:0; transform:translate(16px,16px);
  border:1px solid rgba(110,46,56,.35); pointer-events:none; z-index:-1;
}
.frame--wide::after{ transform:translate(0,16px); inset:0 16px; }

/* «Квартал»: рендер на всю высоту секции, правая половина, с растворением левого края в фон */
@media (min-width:1025px){
  #about{ overflow:hidden; }
  #about .split{ display:block; min-height:clamp(520px,60vh,720px); }
  #about .split__text{ max-width:46%; }
  #about .split__media{
    position:absolute; top:0; right:0; bottom:0; width:52%; margin:0;
  }
  #about .split__media .frame,
  #about .split__media picture{ height:100%; }
  #about .split__media .frame::after{ display:none; }
  #about .split__media img{
    width:100%; height:100%; aspect-ratio:auto; object-fit:cover;
    -webkit-mask-image:linear-gradient(to right, transparent 0, #000 26%);
            mask-image:linear-gradient(to right, transparent 0, #000 26%);
  }
  #about .split__media figcaption{
    position:absolute; left:clamp(40px,6%,80px); bottom:22px; margin:0; z-index:2;
    text-shadow:0 1px 8px rgba(24,14,16,.8);
  }
}

.stage{ margin-block:clamp(32px,4.4vw,60px); overflow:hidden; }
.stage img{ width:100%; aspect-ratio:16/9; max-height:80vh; object-fit:cover; }

.ticks{ list-style:none; margin-top:28px; display:grid; gap:14px; }
.ticks--2col{ display:grid; grid-template-columns:1fr 1fr; column-gap:clamp(20px,3vw,44px); }
@media (max-width:640px){ .ticks--2col{ grid-template-columns:1fr; } }
.ticks li{ position:relative; padding-left:28px; font-size:15px; color:var(--muted); }
.ticks li::before{ content:''; position:absolute; left:0; top:.65em; width:12px; height:1px; background:var(--gold); }
.ticks--row{
  display:flex; flex-wrap:wrap; gap:clamp(14px,2vw,30px);
  margin-top:clamp(24px,2.6vw,36px); padding-top:20px; border-top:1px solid var(--line);
}
.ticks--row li{ padding-left:0; }
.ticks--row li::before{ display:none; }
.ticks--row li + li{ padding-left:clamp(14px,2vw,30px); border-left:1px solid var(--line); }


/* =========================================================
   ADVANTAGES — карточки с раскрытием визуала при наведении
   ========================================================= */
.adv__grid{
  display:grid; grid-template-columns:repeat(12,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line);
}
.adv:nth-child(1){ grid-column:span 7; }
.adv:nth-child(2){ grid-column:span 5; }
.adv:nth-child(3){ grid-column:span 5; }
.adv:nth-child(4){ grid-column:span 7; }
.adv:nth-child(5){ grid-column:span 6; }
.adv:nth-child(6){ grid-column:span 6; }
.adv{
  background:var(--bg); display:flex; flex-direction:column;
  transition:background .45s var(--ease);
}
.adv:hover{ background:var(--bg-2); }

/* визуал скрыт и раскрывается по наведению */
.adv__media{
  max-height:0; opacity:0; overflow:hidden;
  transition:max-height .6s var(--ease), opacity .4s var(--ease);
}
.adv__media img{
  width:100%; height:clamp(190px,19vw,270px); object-fit:cover; object-position:center;
  display:block;
}
.adv__media > svg{
  width:100%; height:auto; display:block;
  padding:clamp(16px,1.8vw,26px) clamp(16px,1.8vw,26px) 0;
}
.adv:hover .adv__media, .adv:focus-within .adv__media{ max-height:300px; opacity:1; }

.adv__body{ padding:clamp(26px,2.8vw,40px); display:flex; flex-direction:column; flex:1; }
.adv__num{ font-family:var(--serif); font-size:14px; letter-spacing:.2em; color:var(--gold); display:block; margin-bottom:18px; }
.adv h3{ font-family:var(--serif); font-weight:400; font-size:clamp(21px,2.2vw,29px); line-height:1.18; color:var(--white); margin-bottom:12px; }
.adv p{ font-size:14.5px; line-height:1.72; color:var(--muted); }

/* на тач-устройствах визуал показан всегда — наведения там нет */
@media (hover:none), (pointer:coarse){
  .adv__media{ max-height:300px; opacity:1; }
}
@media (prefers-reduced-motion: reduce){
  .adv__media{ transition:none; }
}

/* =========================================================
   SPECLIST (архитектура)
   ========================================================= */
.speclist{ border-top:1px solid var(--line); }
.speclist__row{
  display:grid; grid-template-columns:220px 1fr; gap:clamp(20px,4vw,72px);
  padding-block:clamp(20px,2.4vw,30px);
  border-bottom:1px solid var(--line);
}
.speclist__row dt{
  font-family:var(--serif); font-size:clamp(19px,2vw,26px); color:var(--gold); font-weight:400;
}
.speclist__row dd{ font-size:15.5px; line-height:1.7; color:var(--muted); max-width:72ch; }

/* =========================================================
   COURTYARD
   ========================================================= */
.sec--yard{ padding-block:clamp(62px,7vw,108px); }
.yard__bg{ position:absolute; inset:0; }
.yard__bg img{ width:100%; height:100%; object-fit:cover; }
.yard__scrim{ position:absolute; inset:0; background:linear-gradient(90deg, rgba(24,14,16,.95) 0%, rgba(24,14,16,.9) 50%, rgba(24,14,16,.58) 72%, rgba(24,14,16,.24) 100%); }
.yard__inner{ position:relative; z-index:2; }
.yard__card{ max-width:640px; }
.yard__card .rich{ margin-top:24px; font-size:clamp(15.5px,1.4vw,17.5px); color:rgba(244,241,234,.75); line-height:1.75; }
.yard__stats{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px 34px; margin-top:34px; }
.yard__stats div{ border-top:1px solid var(--line-2); padding-top:16px; }
.yard__stats b{ display:block; font-family:var(--serif); font-weight:400; font-size:clamp(28px,3.2vw,44px); color:var(--gold); line-height:1; }
.yard__stats span{ display:block; margin-top:9px; font-size:12.5px; color:var(--muted); line-height:1.5; }

/* =========================================================
   CAROUSEL
   ========================================================= */
.carousel{ position:relative; margin-block:clamp(26px,3vw,44px); }
.carousel__viewport{ overflow:hidden; }
.carousel__track{ display:flex; transition:transform .8s var(--ease); will-change:transform; }
.carousel__slide{ flex:0 0 100%; position:relative; }
.carousel__slide img{ width:100%; aspect-ratio:16/9; max-height:80vh; object-fit:cover; display:block; }
.carousel__slide figcaption{
  position:absolute; left:0; right:0; bottom:0;
  padding:clamp(30px,4vw,54px) var(--pad) clamp(18px,2.6vw,30px);
  background:linear-gradient(0deg, rgba(20,12,14,.82) 0%, rgba(20,12,14,.5) 45%, rgba(20,12,14,0) 100%);
  color:var(--light);
  text-shadow:0 1px 18px rgba(0,0,0,.5);
  font-family:var(--serif); font-size:clamp(17px,2vw,26px); font-weight:400; letter-spacing:.01em;
}
.carousel__ui{
  position:absolute; right:var(--pad); bottom:clamp(18px,2.6vw,32px); z-index:3;
  display:flex; align-items:center; gap:20px;
}
.carousel__count{
  font-family:var(--serif); font-size:17px; letter-spacing:.14em; color:rgba(244,241,234,.85);
  font-variant-numeric:tabular-nums;
}
.carousel__nav{ display:flex; gap:1px; }
.carousel__btn{
  width:52px; height:52px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(20,12,14,.55); color:var(--light);
  border:1px solid rgba(246,240,232,.32); backdrop-filter:blur(6px);
  transition:background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.carousel__btn svg{ width:20px; height:20px; }
.carousel__btn:hover{ background:var(--gold); color:var(--light); border-color:var(--gold); }
.carousel__dots{ display:flex; justify-content:center; gap:2px; margin-top:12px; }
.carousel__dot{
  width:44px; height:44px; padding:0; background:none; position:relative;
  transition:width .3s var(--ease);
}
.carousel__dot::after{
  content:''; position:absolute; left:9px; right:9px; top:50%; height:2px;
  background:var(--line-2); transition:background .3s var(--ease);
}
.carousel__dot.is-active::after{ left:2px; right:2px; }
.carousel__dot.is-active::after{ background:var(--gold); }

/* =========================================================
   PAYMENT
   ========================================================= */
.pay__grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.pay-card{ background:var(--bg); padding:clamp(30px,3.6vw,54px); transition:background .4s var(--ease); }
.pay-card:hover{ background:var(--bg-2); }
.pay-card__num{ font-family:var(--serif); font-size:15px; letter-spacing:.2em; color:var(--gold); display:block; margin-bottom:22px; }
.pay-card h3{ font-family:var(--serif); font-weight:400; font-size:clamp(24px,2.6vw,36px); line-height:1.15; color:var(--white); margin-bottom:16px; }
.pay-card p{ font-size:15px; line-height:1.75; color:var(--muted); max-width:44ch; }
.pay__foot{
  margin-top:clamp(22px,2.6vw,34px);
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  padding-top:clamp(22px,2.6vw,32px); border-top:1px solid var(--line);
}
.pay__foot p{ font-size:15px; color:var(--muted); max-width:52ch; }


/* =========================================================
   MANIFEST
   ========================================================= */
.sec--manifest{ padding-block:clamp(64px,7.5vw,118px); border-bottom:1px solid var(--line); }
.manifest{
  font-family:var(--serif); font-weight:400;
  font-size:clamp(28px,4.2vw,58px); line-height:1.22; letter-spacing:.005em;
  text-align:center; max-width:26ch; margin-inline:auto; color:var(--white);
}
.manifest em{ font-style:italic; color:var(--gold); }

/* =========================================================
   ДИАГРАММЫ
   ========================================================= */
.diagram{ border:1px solid var(--line); padding:clamp(18px,2.4vw,34px); background:rgba(255,255,255,.015); }
.diagram svg{ width:100%; height:auto; display:block; }
.dg-wall{ stroke:#3A4C63; stroke-width:2; }
.dg-floor{ stroke:#4E617A; stroke-width:3; }
.dg-gap{ stroke:var(--bg); stroke-width:4; }
.dg-door{ stroke:var(--gold); stroke-width:1.4; stroke-dasharray:3 4; }
.dg-dash{ stroke:#3A4C63; stroke-width:1.2; stroke-dasharray:6 6; }
.dg-man{ stroke:#7A8798; stroke-width:2; stroke-linecap:round; }
.dg-car rect, .dg-car circle{ stroke:#7A8798; stroke-width:1.8; }
.dg-dim{ stroke:#7A8798; stroke-width:1.2; }
.dg-dim--gold{ stroke:var(--gold); }
.dg-t{
  font-family:var(--sans); font-size:11px; font-weight:600;
  letter-spacing:.14em; text-transform:uppercase; fill:var(--muted);
}
.dg-t--gold{ fill:var(--gold); }

/* двор: детская и разрез стилобата */
.yard__kid{ margin-top:28px; border-top:1px solid var(--line-2); padding-top:20px; }
.yard__kid b{ display:block; font-family:var(--serif); font-weight:400; font-size:clamp(20px,2.2vw,28px); color:var(--gold); margin-bottom:8px; }
.yard__kid p{ font-size:14.5px; line-height:1.7; color:rgba(244,241,234,.75); max-width:52ch; }


/* =========================================================
   PLANS
   ========================================================= */
.filters{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:clamp(32px,4vw,52px); }
.filter{
  padding:12px 24px; font-size:11.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase;
  border:1px solid var(--line-2); color:var(--muted);
  transition:all .3s var(--ease);
}
.filter:hover{ border-color:var(--gold); color:var(--gold); }
.filter.is-active{ background:var(--gold); border-color:var(--gold); color:var(--light); }

.plans__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(16px,2vw,26px); align-items:stretch; }
.pcard{
  background:var(--surface); border:1px solid var(--line);
  display:flex; flex-direction:column; overflow:hidden;
  transition:border-color .4s var(--ease), transform .4s var(--ease);
}
.pcard:hover{ border-color:rgba(110,46,56,.5); transform:translateY(-4px); }
.pcard.is-hidden{ display:none; }
.pcard--hero{ border-color:rgba(110,46,56,.4); }

.pcard__plan{ position:relative; background:#F4F2ED; border-bottom:1px solid var(--line); }
.pcard__plan img{ width:100%; display:block; aspect-ratio:4/3; object-fit:cover; }

/* реальные планы квартир — на белом фоне, целиком */
.pcard__plan--real{ background:#fff; }
.pcard__plan--real img{ width:100%; height:auto; aspect-ratio:auto; max-height:340px; object-fit:contain; padding:clamp(14px,1.6vw,22px); }
.pcard:hover .pcard__plan--real img{ transform:none; }

.pcard__plan-note{
  position:absolute; left:0; right:0; bottom:0; padding:9px 14px;
  background:rgba(24,14,16,.55); backdrop-filter:blur(3px);
  font-size:10px; letter-spacing:.16em; text-transform:uppercase; font-weight:600; color:rgba(244,241,234,.85); text-align:center;
}
.pcard--hero .pcard__plan{ background:var(--bg-2); }

.pcard__body{ padding:clamp(22px,2.3vw,32px); display:flex; flex-direction:column; flex:1; }
.pcard__tag{
  display:inline-block; align-self:flex-start; margin-bottom:16px; padding:6px 12px;
  border:1px solid var(--line-2);
  font-size:10px; letter-spacing:.16em; text-transform:uppercase; font-weight:600; color:var(--muted);
}
.pcard__tag--gold{ border-color:var(--gold); color:var(--gold); }
.pcard__title{ font-family:var(--serif); font-weight:400; font-size:clamp(20px,2vw,27px); color:var(--white); }
.pcard__title span{ font-size:.6em; font-family:var(--sans); font-weight:500; letter-spacing:.02em; color:var(--muted); }
.pcard__total{ margin-top:14px; }
.pcard__total-k{ display:block; font-size:10px; letter-spacing:.2em; text-transform:uppercase; font-weight:600; color:var(--dim); margin-bottom:4px; }
.pcard__area{ display:block; font-family:var(--serif); font-weight:400; font-size:clamp(34px,3.6vw,48px); line-height:1; color:var(--gold); }
.pcard__area i{ font-style:normal; font-size:.42em; color:var(--muted); letter-spacing:.02em; }

.pcard__meta{ margin-top:22px; display:grid; }
.pcard__meta div{ display:flex; justify-content:space-between; gap:14px; padding-block:11px; border-top:1px solid var(--line); }
.pcard__meta dt{ font-size:12.5px; color:var(--dim); }
.pcard__meta dd{ font-size:13.5px; font-weight:600; color:var(--white); font-variant-numeric:tabular-nums; }
.pcard__note{ margin-top:16px; font-size:13.5px; line-height:1.65; color:var(--muted); }

.pcard__btn{
  margin-top:auto; margin-top:24px;
  padding:14px 18px; border:1px solid var(--line-2);
  font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--white);
  transition:all .3s var(--ease);
}
.pcard__btn:hover{ background:var(--gold); border-color:var(--gold); color:var(--light); }

.reqs{ margin-top:clamp(34px,4vw,58px); }
.reqs__title{ font-family:var(--serif); font-weight:400; font-size:clamp(24px,2.6vw,36px); color:var(--white); margin-bottom:clamp(20px,2.4vw,30px); }
.reqs__grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:0 clamp(28px,4vw,72px); }
.req{ padding:clamp(18px,2vw,26px) 0; border-top:1px solid var(--line); }
.req b{ display:block; font-family:var(--serif); font-weight:400; font-size:clamp(18px,1.8vw,23px); color:var(--gold); margin-bottom:10px; }
.req p{ font-size:14px; line-height:1.7; color:var(--muted); }

.plans__cta{
  margin-top:clamp(30px,3.4vw,46px);
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
  padding:clamp(26px,3.4vw,46px); background:var(--bg-2); border:1px solid var(--line);
}
.plans__cta p{ max-width:58ch; font-size:15.5px; color:var(--muted); }


/* строка-анонс панорамы внутри «Вида сверху» */
.tourline{
  margin-top:clamp(24px,2.6vw,36px);
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  padding-top:clamp(22px,2.6vw,32px); border-top:1px solid var(--line);
}
.tourline p{ font-size:11.5px; letter-spacing:.2em; text-transform:uppercase; font-weight:600; color:var(--muted); }

/* =========================================================
   TOUR
   ========================================================= */
.tour{ position:relative; overflow:hidden; border:1px solid var(--line); }
.tour__frame{ display:block; width:100%; aspect-ratio:16/9; border:0; }
.tour.is-stub{
  aspect-ratio:16/8;
  background:
    linear-gradient(rgba(24,14,16,.68), rgba(24,14,16,.82)),
    image-set(url('../../assets/img/topview.webp') type('image/webp'), url('../../assets/img/topview.jpg') type('image/jpeg')) center 42%/cover;
  display:flex; align-items:center; justify-content:center;
}
.tour__stub{ display:flex; flex-direction:column; align-items:center; gap:24px; text-align:center; padding:24px; }
.tour__ico{ width:72px; height:45px; color:var(--gold); }
.tour__label{ font-size:11.5px; letter-spacing:.2em; text-transform:uppercase; font-weight:600; color:rgba(244,241,234,.85); max-width:36ch; line-height:1.9; }

/* =========================================================
   DEVELOPER / CONTACTS
   ========================================================= */

.sec--contacts{ background:var(--bg-2); border-top:1px solid var(--line); }
.contacts{ display:grid; grid-template-columns:1fr 470px; gap:var(--gap); align-items:start; }
.contacts__info{ display:grid; margin-top:32px; }
.ci{ display:flex; flex-direction:column; gap:6px; padding-block:18px; border-top:1px solid var(--line); transition:padding-left .3s var(--ease); }
a.ci:hover{ padding-left:8px; }
.ci > span{ font-size:10.5px; letter-spacing:.22em; text-transform:uppercase; color:var(--dim); font-weight:600; }
.ci b{ font-family:var(--serif); font-weight:400; font-size:clamp(19px,2vw,26px); color:var(--white); }
.ci--phone b{
  display:inline-flex; align-items:center; gap:12px;
  font-family:var(--sans); font-weight:700;
  font-size:clamp(26px,3vw,38px); letter-spacing:.02em;
  font-variant-numeric:lining-nums tabular-nums; font-feature-settings:'lnum' 1;
  color:var(--white);
}
.ci--phone b span{ font-size:inherit; letter-spacing:inherit; text-transform:none; color:inherit; font-weight:inherit; }
.ci--phone .ico-phone{ width:24px; height:24px; color:var(--gold); }
a.ci--phone:hover b{ color:var(--gold); }
.socials{ display:flex; flex-wrap:wrap; gap:4px 18px; margin-top:22px; }
.socials a{ font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; font-weight:600; color:var(--muted); min-height:44px; display:inline-flex; align-items:center; }
.socials a:hover{ color:var(--gold); }

/* ---------- Форма: подчёркнутые поля ---------- */
.form{ background:var(--surface); border:1px solid var(--line); padding:clamp(28px,3.2vw,44px); display:grid; gap:22px; }
.form__title{ font-family:var(--serif); font-weight:400; font-size:clamp(24px,2.4vw,32px); color:var(--white); margin-bottom:4px; }
.field{ display:grid; gap:8px; }
.field > span{ font-size:10.5px; letter-spacing:.2em; text-transform:uppercase; font-weight:600; color:var(--dim); }
.field input{
  width:100%; padding:12px 2px;
  font-family:inherit; font-size:16px; color:var(--white);
  background:transparent; border:0; border-bottom:1px solid var(--line-2); border-radius:0;
  transition:border-color .3s var(--ease);
}
.field input::placeholder{ color:var(--dim); }
.field input:focus{ outline:none; border-bottom-color:var(--gold); }
.field input.is-error{ border-bottom-color:#E08B82; }
.field__err{ font-size:12px; color:#E08B82; min-height:0; }
.field__err:empty{ display:none; }

.check{ display:flex; align-items:center; gap:12px; min-height:44px; font-size:12.5px; color:var(--muted); line-height:1.55; cursor:pointer; }
.check input{ accent-color:var(--gold); width:22px; height:22px; flex-shrink:0; }
.form__hint{ font-size:12px; color:var(--dim); text-align:center; }
.form__status{ font-size:13px; text-align:center; }
.form__status.is-ok{ color:#7FBF9E; padding-top:6px; }
.form__status.is-err{ color:#D98078; padding-top:6px; }

/* =========================================================
   FOOTER
   ========================================================= */
.ftr{ border-top:1px solid var(--line); padding-block:clamp(38px,4vw,58px) 32px; }
body{ padding-bottom:76px; }
.ftr__inner{ display:grid; grid-template-columns:1.1fr .7fr 1.4fr; gap:var(--gap); }
.ftr__brand img{ height:24px; width:auto; margin-bottom:20px; }
.ftr__brand p{ font-size:13.5px; color:var(--dim); max-width:34ch; }
.ftr__nav{ display:grid; gap:2px; align-content:start; }
.ftr__nav a{ font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); min-height:44px; display:inline-flex; align-items:center; }
.ftr__nav a:hover{ color:var(--gold); }
.ftr__legal p{ font-size:11.5px; line-height:1.7; color:var(--dim); }
.ftr__copy{ margin-top:16px; }


/* =========================================================
   MODAL / LIGHTBOX
   ========================================================= */
.modal{ position:fixed; inset:0; z-index:900; display:flex; align-items:center; justify-content:center; padding:20px; opacity:0; visibility:hidden; transition:opacity .4s var(--ease), visibility .4s; }
.modal.is-open{ opacity:1; visibility:visible; }
.modal__scrim{ position:absolute; inset:0; background:rgba(4,8,15,.85); backdrop-filter:blur(8px); }
.modal__box{
  position:relative; z-index:2; width:min(520px,100%); max-height:92vh; overflow-y:auto;
  background:var(--bg-2); border:1px solid var(--line-2); padding:clamp(28px,3.2vw,46px);
  transform:translateY(22px); transition:transform .45s var(--ease);
}
.modal.is-open .modal__box{ transform:none; }
.modal__x{ position:absolute; top:6px; right:10px; width:44px; height:44px; display:flex; align-items:center; justify-content:center; color:var(--muted); transition:color .3s var(--ease); }
.modal__x svg{ width:22px; height:22px; }
.modal__x:hover{ color:var(--white); }
.modal__head{ margin-bottom:24px; }
.modal__head h3{ font-family:var(--serif); font-weight:400; font-size:clamp(26px,2.8vw,36px); line-height:1.12; color:var(--white); }
.modal__head .eyebrow{ margin-bottom:14px; }
.modal__lead{ margin-top:12px; font-size:14.5px; line-height:1.7; color:var(--muted); }
.form--modal{ padding:0; background:transparent; border:0; }

.lightbox{ position:fixed; inset:0; z-index:950; background:rgba(4,8,15,.96); display:flex; align-items:center; justify-content:center; padding:clamp(16px,4vw,56px); opacity:0; visibility:hidden; transition:opacity .4s var(--ease), visibility .4s; }
.lightbox.is-open{ opacity:1; visibility:visible; }
.lightbox__fig{ max-width:100%; max-height:100%; display:flex; flex-direction:column; gap:16px; }
.lightbox__fig img{ max-width:100%; max-height:82vh; object-fit:contain; background:var(--white); }
.lightbox__fig figcaption{ text-align:center; font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); }
.lightbox__x{ position:absolute; top:14px; right:18px; width:48px; height:48px; display:flex; align-items:center; justify-content:center; color:var(--muted); transition:color .3s var(--ease); }
.lightbox__x svg{ width:26px; height:26px; }
.lightbox__x:hover{ color:var(--white); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1180px){
  .plans__grid{ grid-template-columns:repeat(2,1fr); }
  .adv{ grid-column:span 6 !important; }
  .reqs__grid{ grid-template-columns:repeat(2,1fr); }
  .contacts{ grid-template-columns:1fr; }
  .contacts__right{ max-width:520px; }
  .ftr__inner{ grid-template-columns:1fr 1fr; }
  .ftr__legal{ grid-column:1/-1; }
}

@media (max-width:1024px){
  .nav{
    position:fixed; inset:0; z-index:-1; background:var(--bg);
    flex-direction:column; justify-content:center; align-items:center; gap:24px;
    opacity:0; visibility:hidden; transition:opacity .45s var(--ease), visibility .45s;
  }
  .nav.is-open{ opacity:1; visibility:visible; z-index:10; }
  .nav a{ font-size:19px; font-family:var(--serif); text-transform:none; letter-spacing:.03em; color:var(--white); }
  .burger{ display:block; }
  .hdr__phone span{ display:none; }
  .hdr__phone{ padding:8px; margin-right:-4px; }
  .hdr__phone .ico-phone{ width:21px; height:21px; }
  .hdr:not(.is-solid){ background:linear-gradient(180deg, rgba(24,14,16,.72), transparent); }

  .split{ grid-template-columns:1fr; }
  .cd{ grid-template-columns:1fr; gap:20px; }
  .cd__note{ justify-self:start; text-align:left; max-width:none; }
  .speclist__row{ grid-template-columns:1fr; gap:8px; }
  .yard__card{ max-width:none; }
  .yard__scrim{ background:linear-gradient(180deg, rgba(24,14,16,.92), rgba(24,14,16,.86)); }
}

@media (max-width:720px){
  :root{ --hdr-h:64px; }
  .stickybar__text{ display:none; }
  .stickybar__inner{ justify-content:space-between; gap:12px; }
  .stickybar__act{ width:100%; justify-content:space-between; }
  .stickybar .btn--sm{ display:inline-flex; }
  .plans__grid, .reqs__grid, .pay__grid{ grid-template-columns:1fr; }
  .adv{ grid-column:span 12 !important; }
  .ticks--row li + li{ padding-left:0; border-left:0; }
  .yard__stats{ grid-template-columns:1fr; gap:18px; }
  .hero__actions .btn{ width:100%; }
  .hero__specs{ font-size:11px; }
  .hero__specs li + li{ margin-left:12px; padding-left:12px; }
  .plans__cta{ flex-direction:column; align-items:stretch; }
  .plans__cta .btn{ width:100%; }
  .pay__foot, .tourline{ flex-direction:column; align-items:stretch; text-align:center; }
  .ftr__inner{ grid-template-columns:1fr; }
  .btn--sm{ display:none; }
  .cd__sep{ display:none; }
  .stage img, .carousel__slide img{ max-height:56vh; }
  .carousel__ui{ right:16px; bottom:14px; gap:12px; }
  .carousel__btn{ width:44px; height:44px; }
  .frame::after{ display:none; }
}

/* =========================================================
   СВЕТЛАЯ РЕДАКЦИЯ — переопределения контраста
   Секции на рендер-/видео-фонах держат светлый текст,
   контентные секции — тёмный текст на светлом фоне.
   ========================================================= */

/* --- Логотип: белый над hero, бордовый на светлой шапке --- */
.hdr__logo{ position:relative; }
.hdr__logo-dark{ position:absolute; inset:0; opacity:0; transition:opacity .45s var(--ease); }
.hdr__logo-light{ transition:opacity .45s var(--ease); }
.hdr.is-solid .hdr__logo-light{ opacity:0; }
.hdr.is-solid .hdr__logo-dark{ opacity:1; }

/* --- Навигация над hero: светлая; на светлой шапке: тёмная --- */
.nav a{ color:rgba(246,240,232,.72); }
.nav a:hover, .nav a.is-active{ color:var(--light); }
.hdr__phone{ color:var(--light); }
.hdr__phone .ico-phone{ color:var(--light); }
.lang__btn{ color:rgba(246,240,232,.6); }
.lang__btn:hover, .lang__btn.is-active{ color:var(--light); }
.burger span{ background:var(--light); }
.hdr.is-solid .nav a{ color:var(--muted); }
.hdr.is-solid .nav a:hover, .hdr.is-solid .nav a.is-active{ color:var(--white); }
.hdr.is-solid .hdr__phone{ color:var(--white); }
.hdr.is-solid .hdr__phone .ico-phone{ color:var(--gold); }
.hdr.is-solid .lang__btn{ color:var(--dim); }
.hdr.is-solid .lang__btn:hover, .hdr.is-solid .lang__btn.is-active{ color:var(--white); }
.hdr.is-solid .burger span{ background:var(--white); }

/* --- HERO (видео-фон) --- */
.hero__title{ color:var(--light); }
.hero__title em{ color:var(--light); }
.cd__kicker{ color:rgba(246,240,232,.8); }
.cd__date{ color:var(--light); }
.cd__cell b{ color:var(--light); }
.cd__note{ color:rgba(246,240,232,.7); }
.hero u.ink{ background-image:linear-gradient(var(--light),var(--light)); }

/* --- ДВОР (рендер-фон, тёмный scrim) --- */
.yard__card .h2{ color:var(--light); }
.yard__card .h2 em{ color:var(--light); }
.yard__card .eyebrow{ color:rgba(246,240,232,.85); }
.yard__card .eyebrow__num{ color:var(--light); }
.yard__card .eyebrow__num::after{ background:var(--light); }
.yard__stats b{ color:var(--light); }
.yard__stats span{ color:rgba(246,240,232,.78); }
.yard__card .rich p{ color:rgba(246,240,232,.88); }
.yard__card .rich b{ color:var(--light); }
.yard__card .ticks li{ color:rgba(246,240,232,.9); }
.yard__card .ticks li::before{ background:var(--gold); opacity:1; }
.yard__card u.ink{ background-image:linear-gradient(var(--light),var(--light)); }
.yard__card{ text-shadow:0 1px 22px rgba(20,10,12,.55); }
.yard__card .h2, .yard__stats b{ text-shadow:0 2px 30px rgba(20,10,12,.6); }

/* --- ПАНОРАМА / тур (рендер-фон) --- */
.tour__label{ color:rgba(246,240,232,.85); }
