/*
 * index.css — специфика главной страницы
 * Подключается после showroom.css: <link rel="stylesheet" href="/assets/index.css">
 */

/* ── HERO ── */
.hero{
  position:relative;height:100svh;min-height:600px;
  display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;
}
.hero-bg{position:absolute;inset:0;background:#18160f}
.hero-bg img{width:100%;height:100%;object-fit:cover;opacity:.72}
.hero-bg video{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;opacity:0;transition:opacity 1s ease 1.3s;
}
.hero-bg video.rdy{opacity:.68}
.hero-grad{
  position:absolute;inset:0;
  background:linear-gradient(to bottom,
    rgba(15,13,10,.06) 0%,rgba(15,13,10,0) 28%,
    rgba(15,13,10,.45) 65%,rgba(15,13,10,.96) 100%);
}
.hc{position:relative;z-index:2;padding:0 var(--px) 52px}
.h-tag{
  display:inline-flex;align-items:center;gap:10px;
  font-size:.6rem;letter-spacing:.22em;text-transform:uppercase;
  color:rgba(255,255,255,.45);margin-bottom:18px;
  opacity:0;animation:fup .7s ease .2s forwards;
}
.h-tag::before{content:'';width:18px;height:1px;background:rgba(255,255,255,.55);display:block}
.h1{
  font-family:var(--serif);
  font-size:clamp(3.2rem,13vw,7.8rem);
  font-weight:300;line-height:.92;letter-spacing:-.02em;
  color:var(--cream);margin-bottom:22px;
  opacity:0;animation:fup .9s ease .38s forwards;
}
.h1 em{font-style:italic;color:rgba(242,237,230,.44);display:block}
.h-sub{
  font-size:clamp(.9rem,2.8vw,1.08rem);
  color:rgba(255,255,255,.72);line-height:1.55;
  max-width:400px;margin-bottom:34px;font-weight:300;
  opacity:0;animation:fup .8s ease .6s forwards;
}
.h-btns{display:flex;gap:10px;flex-wrap:wrap;opacity:0;animation:fup .8s ease .8s forwards}
.h-scroll{
  position:absolute;bottom:36px;right:var(--px);z-index:2;
  display:flex;flex-direction:column;align-items:center;gap:7px;
  opacity:0;animation:fi 1s ease 1.6s forwards;
}
.h-scroll-line{width:1px;height:36px;background:rgba(255,255,255,.2);animation:pulse 2.4s ease-in-out 2s infinite}
.h-scroll-txt{font-size:.56rem;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.2);writing-mode:vertical-rl}
@media(min-width:768px){.hc{padding:0 var(--px-md) 68px}}
@media(min-width:1200px){.hc{padding:0 var(--px-lg) 80px}}

/* ── STATS ── */
.stats{display:grid;grid-template-columns:1fr 1fr;background:var(--slate)}
.st{
  padding:24px var(--px);
  border-right:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.st:nth-child(2n){border-right:none}
.st:nth-child(3),.st:nth-child(4){border-bottom:none}
.st-n{
  font-family:var(--serif);font-size:clamp(2.2rem,7vw,3.4rem);
  font-weight:300;line-height:1;color:var(--cream);margin-bottom:5px;
}
.st-l{font-size:.95rem;color:rgba(255,255,255,.72);letter-spacing:.02em;line-height:1.45}
.st-a{
  display:inline-block;margin-top:8px;
  font-size:.6rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--mauve);text-decoration:underline;text-underline-offset:3px;
}
@media(min-width:768px){
  .stats{grid-template-columns:repeat(4,1fr)}
  .st{border-bottom:none;padding:32px 28px}
  .st:nth-child(2n){border-right:1px solid rgba(255,255,255,.08)}
  .st:nth-child(4){border-right:none}
}
@media(min-width:1200px){.st{padding:36px 44px}.st-n{font-size:3.6rem}}

/* ── DETAIL STRIP ── */
.detail{background:var(--slate);padding-bottom:3px}
.detail-head{
  padding:44px var(--px) 24px;
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
}
.d-label{
  font-size:.6rem;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(255,255,255,.55);margin-bottom:8px;
  display:flex;align-items:center;gap:8px;
}
.d-label::before{content:'';width:14px;height:1px;background:rgba(255,255,255,.55);display:block}
.d-h{font-family:var(--serif);font-size:clamp(2rem,7vw,3.2rem);font-weight:300;color:var(--cream);line-height:1}
.dscr{
  display:flex;gap:3px;overflow-x:auto;
  padding:0 var(--px) 3px;cursor:grab;user-select:none;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.dscr::-webkit-scrollbar{display:none}
.dscr.dragging{cursor:grabbing}
.dc{
  flex:0 0 76vw;max-width:310px;aspect-ratio:1;
  overflow:hidden;position:relative;background:#2a2520;flex-shrink:0;
}
.dc img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.dc:hover img{transform:scale(1.05)}
.dc-cap{
  position:absolute;bottom:0;left:0;right:0;padding:10px 14px;
  background:linear-gradient(to top,rgba(0,0,0,.6) 0%,transparent 100%);
  font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.8);
}
.d-hint{
  display:flex;align-items:center;gap:10px;
  padding:12px var(--px) 18px;
  font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.28);
}
.d-hint-line{flex:1;height:1px;background:rgba(255,255,255,.08)}
@media(min-width:768px){
  .detail-head{padding:56px var(--px-md) 28px}
  .dscr{padding:0 var(--px-md) 3px}
  .dc{flex:0 0 280px}
  .d-hint{padding:12px var(--px-md) 20px}
}
@media(min-width:1200px){
  .detail-head{padding:72px var(--px-lg) 32px}
  .dscr{padding:0 var(--px-lg) 3px}
  .dc{flex:0 0 340px}
  .d-hint{padding:14px var(--px-lg) 24px}
}

/* ── HOW ── */
.how{padding:60px var(--px);background:var(--cream)}
.how-sub{font-size:1rem;color:var(--taupe);margin-bottom:40px;max-width:460px;line-height:1.6}
.how-grid{display:grid;grid-template-columns:1fr;gap:3px}
.how-step{
  background:var(--sand);padding:28px 24px;
  display:flex;gap:20px;align-items:flex-start;transition:background .2s;
}
.how-n{
  font-family:var(--serif);font-size:2rem;font-weight:300;
  color:var(--mauve);line-height:1;flex-shrink:0;width:36px;margin-top:0;
}
.how-body h3{font-size:1.05rem;font-weight:500;margin-bottom:6px;color:var(--ink)}
.how-body p{font-size:.95rem;color:var(--ink);line-height:1.6}
.how-cta{
  display:inline-flex;align-items:center;gap:8px;
  margin-top:32px;padding:14px 28px;
  background:var(--slate);color:var(--cream);
  font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;transition:opacity .2s;
}
.how-cta:hover{opacity:.82}
@media(min-width:768px){.how{padding:80px var(--px-md)}.how-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1000px){.how-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1200px){.how{padding:96px var(--px-lg)}}

/* ── POSITIONING ── */
.pos{display:grid;grid-template-columns:1fr;background:var(--cream)}
.pos-text{padding:56px var(--px);display:flex;flex-direction:column;gap:18px}
.pos-h{font-family:var(--serif);font-size:clamp(1.9rem,6vw,3rem);font-weight:300;line-height:1.1}
.pos-body{font-size:1rem;color:var(--ink);line-height:1.85;max-width:440px}
.pos-body strong{color:var(--ink);font-weight:400}
.pos-photo{aspect-ratio:4/3;overflow:hidden;background:#2a2520;position:relative}
.pos-photo img{width:100%;height:100%;object-fit:cover}
@media(min-width:768px){
  .pos{grid-template-columns:1fr 1fr}
  .pos-text{padding:72px var(--px-md);justify-content:center}
  .pos-photo{aspect-ratio:auto}
}
@media(min-width:1200px){.pos-text{padding:80px var(--px-lg)}}

/* ── DESIGNERS ── */
.des{background:var(--cream)}
.des-wrap{display:grid;grid-template-columns:1fr}
.des-left{
  background:var(--slate);color:var(--cream);
  padding:56px var(--px);display:flex;flex-direction:column;gap:20px;
}
.des-dl{
  font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(255,255,255,.6);display:flex;align-items:center;gap:10px;
}
.des-dl::before{content:'';width:16px;height:1px;background:rgba(255,255,255,.6);display:block}
.des-h{font-family:var(--serif);font-size:clamp(1.6rem,5vw,2.4rem);font-weight:300;line-height:1.12;color:var(--cream);max-width:320px}
.des-accent{background:rgba(255,255,255,.07);padding:16px 18px;border-left:3px solid var(--mauve)}
.des-accent p{font-family:var(--serif);font-size:1.15rem;font-style:italic;color:rgba(255,255,255,.9);line-height:1.5}
.des-list{display:flex;flex-direction:column}
.des-item{
  display:flex;align-items:flex-start;gap:14px;
  padding:12px 0;border-bottom:1px solid rgba(255,255,255,.1);
  font-size:1rem;color:rgba(255,255,255,.88);line-height:1.6;
}
.des-item:last-child{border-bottom:none}
.des-item::before{content:'';width:14px;height:1px;background:var(--mauve);flex-shrink:0;margin-top:10px}
.des-btn{
  align-self:flex-start;margin-top:8px;
  padding:13px 24px;background:var(--cream);color:var(--ink);
  font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;font-weight:500;transition:opacity .2s;
}
.des-btn:hover{opacity:.85}
.des-right{display:grid;grid-template-columns:1fr 1fr;gap:3px;background:var(--ink15)}
.des-cell{background:#2a2520;overflow:hidden;position:relative;aspect-ratio:1}
.des-cell img{width:100%;height:100%;object-fit:cover}
.des-quote{
  background:var(--mauve);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:32px 28px;min-height:200px;text-align:center;
}
.des-quote p{
  font-family:var(--serif);font-size:clamp(1.4rem,3vw,1.9rem);
  font-style:italic;font-weight:300;color:var(--cream);line-height:1.35;
}
.des-quote-src{font-size:.6rem;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.55);margin-top:14px}
@media(min-width:768px){
  .des-wrap{grid-template-columns:1fr 1fr}
  .des-left{padding:64px var(--px-md);justify-content:center}
  .des-cell{aspect-ratio:auto;min-height:200px}
}
@media(min-width:1200px){
  .des-wrap{grid-template-columns:5fr 7fr}
  .des-left{padding:80px var(--px-lg)}
}

/* ── PRICE ── */
.price{padding:56px var(--px);background:var(--sand)}
.price-inner{max-width:680px}
.p-sub{font-size:1rem;color:var(--taupe);margin-bottom:28px;line-height:1.6;max-width:520px}
.ptable{width:100%;border-collapse:collapse}
.ptable th{
  font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--taupe);font-weight:500;
  padding:10px 0;border-bottom:1px solid var(--ink15);text-align:left;
}
.ptable th:last-child,.ptable th:nth-child(2){text-align:center;width:96px}
.ptable td{
  padding:14px 0;border-bottom:1px solid var(--ink15);
  font-size:.95rem;color:var(--ink);line-height:1.4;vertical-align:middle;
}
.ptable td:last-child,.ptable td:nth-child(2){text-align:center}
.ck{display:inline-flex;width:22px;height:22px;border-radius:50%;align-items:center;justify-content:center;font-size:.72rem}
.ck-y{background:var(--slate);color:var(--cream)}
.ck-n{background:rgba(30,28,26,.08);color:var(--taupe)}
.p-note{
  margin-top:18px;padding:16px 20px;
  background:var(--cream);border-left:2px solid var(--mauve);
  font-size:1rem;color:var(--ink);line-height:1.65;
}
.p-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
@media(min-width:768px){.price{padding:72px var(--px-md)}}
@media(min-width:1200px){.price{padding:80px var(--px-lg)}}

/* ── FOUNDER ── */
.founder{display:grid;grid-template-columns:1fr;background:var(--cream)}
.f-photo{aspect-ratio:4/3;overflow:hidden;background:#2a2520}
.f-photo img{width:100%;height:100%;object-fit:cover;object-position:center top}
.f-text{
  padding:56px var(--px);background:var(--slate);color:var(--cream);
  display:flex;flex-direction:column;gap:18px;
}
.f-lbl{
  font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(255,255,255,.55);display:flex;align-items:center;gap:10px;
}
.f-lbl::before{content:'';width:16px;height:1px;background:rgba(255,255,255,.55);display:block}
.f-quote{font-family:var(--serif);font-size:clamp(1.2rem,4vw,1.65rem);font-style:italic;font-weight:300;color:var(--cream);line-height:1.45}
.f-body{font-size:1rem;color:rgba(255,255,255,.78);line-height:1.85}
.f-sig{padding-top:16px;border-top:1px solid rgba(255,255,255,.2)}
.f-name{font-size:1rem;font-weight:400;color:var(--cream);margin-bottom:4px}
.f-role{font-size:.9rem;color:rgba(255,255,255,.5);letter-spacing:.03em}
@media(min-width:768px){
  .founder{grid-template-columns:1fr 1fr}
  .f-photo{aspect-ratio:auto}
  .f-text{padding:64px var(--px-md);justify-content:center}
}
@media(min-width:1200px){.f-text{padding:80px var(--px-lg)}}

/* ── PERFORMANCE: content-visibility для секций ниже fold ── */
/* Браузер пропускает рендеринг невидимых секций — экономия ~40% CPU */
.how,
.pos,
.projects,
.des,
.price,
.founder{
  content-visibility:auto;
  contain-intrinsic-size:0 600px; /* резервируем место под секцию */
}

/* ── PERFORMANCE: GPU compositing для анимированных элементов ── */
.dc img,
.pc img,
.des-cell img,
.fw-trigger{
  will-change:transform;
}

/* ── hero facts row ────────────────────────────────────────────────── */
.h-facts{
  display:flex;gap:24px;flex-wrap:wrap;
  margin:24px 0 32px;
}
.h-fact{
  display:flex;flex-direction:column;gap:2px;
}
.h-fact-n{
  font-family:var(--serif);
  font-size:1.5rem;font-weight:300;
  color:#fff;line-height:1;
}
.h-fact-l{
  font-family:var(--ui);
  font-size:.72rem;font-weight:400;
  color:rgba(255,255,255,.65);
  letter-spacing:.04em;
  text-transform:uppercase;
}
.h-fact+.h-fact{
  padding-left:24px;
  border-left:1px solid rgba(255,255,255,.2);
}
@media(max-width:480px){
  .h-facts{gap:16px}
  .h-fact+.h-fact{padding-left:16px}
  .h-fact-n{font-size:1.25rem}
}
