/* ТОПДОМ — страница проектов: каталог + страница дома (в духе gwd.ru/projects) */
.ppage .header { transition: transform .6s var(--ease), background .3s; }
.ppage .footer { position: relative; z-index: 2; }

/* ---------- липкая панель ---------- */
.pbar { position: fixed; z-index: 95; top: calc(var(--hdr) + 10px); left: var(--gutter); right: var(--gutter); transition: top .7s var(--ease); pointer-events: none; }
.pbar__panel {
  position: relative; pointer-events: auto; min-height: 60px; padding: 8px 68px 8px 14px; border-radius: 22px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04);
  clip-path: inset(0 0 0 0 round 22px); color: var(--ink);
  transition: clip-path .75s var(--ease), box-shadow .5s, background-color .5s var(--ease), color .5s var(--ease);
}
.pbar.is-min .pbar__panel { clip-path: inset(0 0 calc(100% - 60px) calc(100% - 60px) round 30px); }
.pbar__stack { display: grid; }
.pbar__filters, .pbar__spec { grid-area: 1 / 1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s; }
.pbar__spec { opacity: 0; visibility: hidden; transform: translateY(10px); }
.pbar.is-spec .pbar__filters { opacity: 0; visibility: hidden; transform: translateY(-10px); }
.pbar.is-spec .pbar__spec { opacity: 1; visibility: visible; transform: none; }
.pbar.is-min .pbar__stack { opacity: 0; transition-duration: .25s; }
.pbar__stack { transition: opacity .45s .15s; }

.pbar__eye {
  position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; transition: background .25s, transform .4s var(--ease);
}
.pbar__eye:hover { background: #333; transform: scale(1.06); }
.pbar__eye .eye { width: 22px; height: 22px; grid-area: 1 / 1; transition: opacity .3s, transform .5s var(--ease); }
.pbar__eye .eye--shut { opacity: 0; transform: scale(.6) rotate(-20deg); }
.pbar.is-min .eye--open { opacity: 0; transform: scale(.6) rotate(20deg); }
.pbar.is-min .eye--shut { opacity: 1; transform: none; }

/* критерии */
.pf { display: flex; align-items: center; gap: 10px; }
.pf__l { font-size: 12px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.pills--s { padding: 3px; }
.pills--s .pill { height: 32px; padding: 0 13px; font-size: 13px; }
.pf__sel { height: 38px; border: 0; background: var(--paper); border-radius: 999px; padding: 0 34px 0 14px; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m1 1.500 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.pf--end { margin-left: auto; gap: 14px; }
.pf__count { font-size: 14px; font-weight: 600; white-space: nowrap; }
.pf__reset { font-size: 13px; font-weight: 500; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.pf__reset:hover { color: var(--ink); }

/* спецификация дома */
.ps-back { height: 40px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--paper); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: background .25s; }
.ps-back:hover { background: #e9e9e5; }
.ps-back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.ps-title { display: grid; line-height: 1.1; margin-right: 6px; }
.ps-title b { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.ps-title span { font-size: 12.5px; color: var(--ink-3); }
.ps-cells { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.ps-cell { display: grid; line-height: 1.15; }
.ps-cell b { font-size: 17px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.ps-cell span { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.ps-kits { display: flex; gap: 4px; align-items: center; }
.ps-kit { height: 38px; padding: 0 14px; border-radius: 999px; background: var(--paper); font-size: 12.5px; font-weight: 500; white-space: nowrap; display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.1; text-align: left; transition: background .25s, color .25s; }
.ps-kit small { font-size: 10.5px; color: var(--ink-3); font-weight: 400; transition: color .25s; }
.ps-kit:hover { background: var(--ink); color: #fff; }
.ps-kit:hover small { color: rgba(255, 255, 255, .7); }
.ps-price { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.ps-price div { display: grid; text-align: right; line-height: 1.1; }
.ps-price b { font-size: 20px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.ps-price span { font-size: 11.5px; color: var(--ink-3); }

/* ---------- каталог ---------- */
.catalog { padding-top: calc(var(--hdr) + 10px + 60px + 12px); min-height: 80vh; }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 var(--gutter) 12px; }
.pgrid .pcard { aspect-ratio: 4 / 3.15; cursor: pointer; }
.pgrid .pcard.is-hidden { display: none; }
.pgrid .pcard { opacity: 0; transform: translateY(24px); animation: pIn .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes pIn { to { opacity: 1; transform: none; } }
.pgrid .pcard.shown { animation: none; opacity: 1; transform: none; }
.pempty { padding: 80px var(--gutter); text-align: center; color: var(--ink-2); font-size: 18px; }
.pempty .link-arrow { text-decoration: underline; }

/* ---------- клон-картинка для анимации «на весь экран» ---------- */
.pclone { position: fixed; z-index: 90; left: 0; top: 0; width: 0; height: 0; background-size: cover; background-position: center; border-radius: 24px; pointer-events: none; visibility: hidden; will-change: left, top, width, height; }
.pclone.is-on { visibility: visible; }
.pclone.is-fade { opacity: 0; transition: opacity .75s ease !important; }
.pclone.is-anim { transition: left .85s var(--ease), top .85s var(--ease), width .85s var(--ease), height .85s var(--ease), border-radius .85s var(--ease); }

/* ---------- страница дома ---------- */
.pview[hidden] { display: none; }
.pv-hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #222; color: #fff; isolation: isolate; }
.pv-slides, .pv-scrim { position: absolute; inset: 0; }
.pv-slide { position: absolute; inset: 0; background: #222 var(--img) center / cover no-repeat; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease), transform 1.8s var(--ease); }
.pv-slide.is-on { opacity: 1; transform: scale(1); z-index: 1; }
.pv-scrim { z-index: 2; background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 45%); pointer-events: none; }
.pv-hero__in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding-bottom: clamp(24px, 3.4vw, 52px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; pointer-events: none; }
.pv-title { font-size: clamp(30px, 4.4vw, 76px); font-weight: 300; letter-spacing: -.04em; line-height: 1.04; }
.pv-title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.pv-title .ln > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.pv-title .ln:nth-child(2) > span { transition-delay: .12s; }
.pv-hero.is-ready .pv-title .ln > span { transform: none; transition-delay: calc(.35s + var(--d, 0s)); }
.pv-hero.is-ready .pv-title .ln:nth-child(2) > span { transition-delay: .5s; }
.pv-dots { display: flex; gap: 10px; align-items: center; pointer-events: auto; opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) .7s, transform .8s var(--ease) .7s; padding: 8px 0; }
.pv-hero.is-ready .pv-dots { opacity: 1; transform: none; }
.pv-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .3s, transform .3s var(--ease), width .4s var(--ease); cursor: pointer; }
.pv-dot:hover { background: rgba(255,255,255,.8); }
.pv-dot.is-on { background: #fff; width: 26px; border-radius: 6px; }
.pv-cursor { position: fixed; left: 0; top: 0; z-index: 4; width: 76px; height: 76px; margin: 0; border-radius: 50%; background: rgba(255,255,255,.04); border: 2px solid #fff; color: #fff; display: grid; place-items: center; pointer-events: none; opacity: 0; scale: .4; transition: opacity .3s var(--ease), scale .4s var(--ease); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); will-change: transform; }
.pv-cursor.is-vis { opacity: 1; scale: 1; }
.pv-cursor svg { width: 28px; height: 28px; transition: transform .45s var(--ease); }
.pv-cursor.is-left svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .pv-hero { cursor: none; } .pv-dots, .pv-dot { cursor: pointer; } }
@media (hover: none), (pointer: coarse) { .pv-cursor { display: none; } }
.pv-nav { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.pv-nav .wrap { display: flex; gap: 4px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.pv-nav a { padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: 14px; white-space: nowrap; color: var(--ink-2); transition: background .25s, color .25s; }
.pv-nav a:hover { background: var(--paper); color: var(--ink); }
.pv-sec { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); scroll-margin-top: 60px; }
.pv-sec--paper { background: var(--paper); }
.pv-sec .head { margin-bottom: 28px; }

.plan-tabs { margin-bottom: 16px; }

.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fgrid figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--paper); }
.fgrid figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.fgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.fgrid figure:hover img { transform: scale(1.04); }

.kits { border-top: 1px solid var(--ink); }
.kit { border-bottom: 1px solid var(--line); }
.kit__h { width: 100%; display: grid; grid-template-columns: 56px 1fr auto 40px; align-items: center; gap: 12px; padding: 22px 0; text-align: left; }
.kit__h em { font-style: normal; font-weight: 200; font-size: 40px; line-height: 1; }
.kit__h b { font-size: clamp(22px, 2.2vw, 32px); font-weight: 300; letter-spacing: -.03em; }
.kit__h span { font-size: 15px; color: var(--ink-2); }
.kit__h i { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s, color .3s; }
.kit__h i::before { content: "+"; font-style: normal; font-size: 22px; font-weight: 300; line-height: 1; }
.kit.is-open .kit__h i { transform: rotate(45deg); background: var(--ink); color: #fff; }
.kit__b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.kit.is-open .kit__b { grid-template-rows: 1fr; }
.kit__b > div { overflow: hidden; }
.kit__b ul { padding: 0 0 26px 68px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; font-size: 16px; }
.kit__b li { padding: 10px 0; border-top: 1px solid var(--line); }
.kit__b li.base { color: var(--ink-3); }
.kit__b p { padding: 0 0 26px 68px; color: var(--ink-2); max-width: 720px; }

.acts4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sim { display: block; cursor: pointer; text-align: left; }
.sim__img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
.sim__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sim:hover .sim__img img { transform: scale(1.05); }
.sim__r { display: flex; justify-content: space-between; margin-top: 12px; font-size: 17px; }
.sim__r b { font-weight: 600; }
.sim small { color: var(--ink-3); font-size: 14px; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.9); display: grid; place-items: center; padding: 24px; cursor: zoom-out; animation: lbIn .4s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.lightbox__x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; }
@keyframes lbIn { from { opacity: 0; } }

@media (max-width: 1180px) {
  .pf--sort { order: 5; }
  .pf--end { margin-left: 0; }
  .sim-grid { grid-template-columns: repeat(2, 1fr); }
  .kit__b ul { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pbar__filters, .pbar__spec { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 4px; }
  .pbar__panel { padding-right: 64px; }
  .pf { flex: none; }
  .pgrid { grid-template-columns: 1fr; }
  .acts4 { grid-template-columns: 1fr; }
  .ps-kits, .ps-price, .ps-title { flex: none; }
  .kit__h { grid-template-columns: 40px 1fr 40px; }
  .kit__h span { display: none; }
  .kit__b ul, .kit__b p { padding-left: 0; }
  .fgrid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sim-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pgrid .pcard { animation: none; opacity: 1; transform: none; }
  .pclone.is-anim { transition-duration: .01s; }
}

/* планировка в сером блоке: слева текст, справа чертёж */
.plan-box { border-radius: var(--r-lg); background: var(--paper); padding: clamp(16px, 2.2vw, 34px); display: grid; grid-template-columns: minmax(240px, .6fr) 2fr; gap: clamp(20px, 3.4vw, 56px); align-items: stretch; }
.plan-box__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.plan-box__deco { margin-top: auto; padding-top: 32px; font-size: clamp(26px, 2.6vw, 42px); font-weight: 200; line-height: 1.02; letter-spacing: -.04em; color: #b9b9b3; }
.plan-box__txt .lead { margin: 0 0 8px; }
.plan-box__img { display: grid; place-items: center; }
.plan-box__img img { max-height: 62vh; width: auto; max-width: 100%; mix-blend-mode: multiply; }

/* «О проекте» — блок из трёх колонок как на gwd.ru */
.bento { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.bento__col { display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: var(--paper); min-height: 560px; }
.bento__card { background: var(--paper); padding: clamp(20px, 2vw, 30px); }
.bento__card h3 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 10px; }
.bento__card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.bento__img { flex: 1; min-height: 260px; position: relative; overflow: hidden; }
.bento__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento__col:hover .bento__img img { transform: scale(1.04); }
@media (max-width: 1100px) { .bento { grid-template-columns: 1fr 1fr; } .bento__col--wide { grid-column: 1 / -1; } .bento__col { min-height: 480px; } }
@media (max-width: 700px) { .bento { grid-template-columns: 1fr; } .bento__col { min-height: 0; } .plan-box { grid-template-columns: 1fr; } .plan-box__deco { display: none; } }

/* при прокрутке (шапка вернулась) панель темнеет: тёмно-серая, текст и кнопки белые */
.ps-back, .ps-kit, .ps-kit small, .ps-title span, .ps-cell span, .ps-price span, .pbar__eye, .ps-price .btn, .ps-price .btn__ic { transition: background-color .5s var(--ease), color .5s var(--ease), transform .4s var(--ease); }
.is-project.is-scrolled .pbar__panel { background: rgba(34, 34, 34, .96); color: #fff; box-shadow: 0 10px 36px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .06); }
.is-project.is-scrolled .ps-title span, .is-project.is-scrolled .ps-cell span, .is-project.is-scrolled .ps-price span, .is-project.is-scrolled .ps-kit small { color: rgba(255, 255, 255, .6); }
.is-project.is-scrolled .ps-back, .is-project.is-scrolled .ps-kit { background: rgba(255, 255, 255, .12); color: #fff; }
.is-project.is-scrolled .ps-back:hover { background: rgba(255, 255, 255, .22); }
.is-project.is-scrolled .ps-kit:hover { background: #fff; color: var(--ink); }
.is-project.is-scrolled .ps-kit:hover small { color: var(--ink-3); }
.is-project.is-scrolled .ps-price .btn { background: #fff; color: var(--ink); }
.is-project.is-scrolled .ps-price .btn:hover { background: #e9e9e5; }
.is-project.is-scrolled .ps-price .btn__ic { background: var(--ink); color: #fff; }
.is-project.is-scrolled .pbar__eye { background: #fff; color: var(--ink); }
.is-project.is-scrolled .pbar__eye:hover { background: #e9e9e5; }

/* «С чего начать»: при наведении белый фон карточки сменяется картинкой */
.act--img { position: relative; overflow: hidden; isolation: isolate; }
.act--img .act__bg { position: absolute; inset: 0; z-index: -2; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.act--img .act__bg img { width: 100%; height: 100%; object-fit: cover; }
.act--img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.68)); opacity: 0; transition: opacity .5s var(--ease); }
.act--img:hover .act__bg { opacity: 1; transform: scale(1); }
.act--img:hover::after { opacity: 1; }
.act--img:hover { background: #fff !important; color: #fff; }
.act--img:hover span { color: rgba(255, 255, 255, .82); }

/* кнопка «Каталог» отделяется от панели, когда та свёрнута глазом */
.pback { position: absolute; left: 0; top: 0; height: 60px; padding: 0 24px 0 18px; border-radius: 30px; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14.5px; color: var(--ink); background: rgba(255, 255, 255, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 8px 32px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04); opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-18px) scale(.96); transform-origin: left center; transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s .45s, background-color .5s var(--ease), color .5s var(--ease); }
.pback svg { width: 18px; height: 18px; }
.pback:hover { background: #fff; }
.pbar.is-spec.is-min .pback { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: .25s, .25s, 0s, 0s, 0s; }
.is-project.is-scrolled .pback { background: rgba(34, 34, 34, .96); color: #fff; box-shadow: 0 10px 36px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .06); }
.is-project.is-scrolled .pback:hover { background: #111; }


/* =====================  ТЕЛЕФОН  ===================== */
.pv-specs { display: none; }
@media (max-width: 900px) {
  /* панель-стики: только самое важное — название и площадь */
  .pbar { top: calc(var(--hdr) + 8px); }
  .pbar__panel { padding: 8px 66px 8px 10px; border-radius: 20px; }
  .ps-cells .ps-cell:not(:first-child), .ps-kits, .ps-price, .ps-title span, .ps-cell span { display: none; }
  .pbar__spec { flex-wrap: nowrap; gap: 10px; }
  .ps-back { width: 40px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .ps-back svg { margin: 0; }
  .ps-title b { font-size: 17px; white-space: nowrap; }
  .ps-cell b { font-size: 17px; font-weight: 400; color: var(--ink-2); }
  .is-project.is-scrolled .ps-cell b { color: rgba(255,255,255,.75); }
  .pback { height: 56px; }

  /* фото дома целиком (4:3), не на весь экран; дальше сразу идут блоки */
  .pv-hero { height: auto; min-height: 0; aspect-ratio: 4 / 3; margin-top: 76px; background: #1a1a1a; }
  .pv-slide { background-image: none; background-color: transparent; transform: none; }
  .pv-slide::before { content: ""; position: absolute; inset: -24px; background: var(--img) center / cover no-repeat; filter: blur(22px) brightness(.8); }
  .pv-slide::after { content: ""; position: absolute; inset: 0; background: var(--img) center / contain no-repeat; }
  .pv-scrim, .pv-title { display: none; }
  .pv-hero__in { justify-content: center; padding-bottom: 10px; }
  .pv-dots { opacity: 1; transform: none; }

  /* характеристики под картинкой (не липкие) */
  .pv-specs { display: block; padding: 22px 0 6px; }
  .pv-specs__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
  .pv-specs__top small { display: block; font-size: 13px; color: var(--ink-3); }
  .pv-specs__top b { display: block; font-size: 30px; font-weight: 300; letter-spacing: -.04em; line-height: 1.1; margin-top: 2px; }
  .pv-specs__top span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
  .pv-specs__grid { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 0; border-top: 1px solid var(--line); }
  .pv-specs__grid div { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); }
  .pv-specs__grid div:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--line); }
  .pv-specs__grid div:nth-child(5) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .pv-specs__grid dt { font-size: 12px; color: var(--ink-3); }
  .pv-specs__grid dd { margin: 2px 0 0; font-size: 16px; font-weight: 500; }
  .pv-specs__kits { display: flex; gap: 6px; overflow-x: auto; margin: 14px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .pv-specs__kits .ps-kit { flex: none; height: 46px; background: var(--paper); }
  .pv-specs__kits .ps-kit:hover { background: var(--ink); }

  .pv-nav .wrap { padding-top: 6px; padding-bottom: 6px; }
  .plan-box { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
  .plan-box__deco { display: none; }
  .plan-box__img img { max-height: none; width: 100%; }
  .bento { grid-template-columns: 1fr; }
  .bento__col, .bento__col--wide { min-height: 0; }
  .bento__img { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .sim-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sim__r { font-size: 14px; flex-direction: column; gap: 2px; margin-top: 8px; }
  .acts4 { gap: 8px; }
  /* карточки «с чего начать»: картинка сразу, без наведения */
  .act--img { min-height: 120px; color: #fff; padding: 18px; }
  .act--img .act__bg { opacity: 1; transform: none; }
  .act--img::after { opacity: 1; }
  .act--img span { color: rgba(255, 255, 255, .82); }
  .act--img b { font-size: 19px; }
  .act--img .btn__ic { background: #fff; color: var(--ink); }
  .pv-sec { padding-top: 44px; padding-bottom: 44px; }
}
@media (max-width: 600px) {
  .pgrid { gap: 10px; }
  .pgrid .pcard { aspect-ratio: 4 / 3; }
  .pf__l { font-size: 11px; }
  .pills--s .pill { padding: 0 11px; }
}

.plan-box__img img { cursor: zoom-in; }
@media (max-width: 900px) {
  /* на телефоне шапка в проекте не нужна: экономим место, остаётся компактная панель */
  /* чертёж можно увеличить и двигать пальцем */
  .lightbox--plan { place-items: start center; overflow: auto; padding: 56px 0 24px; }
  .lightbox--plan img { max-width: none; width: 230vw; border-radius: 0; background: #fff; }
  .lightbox__x { position: fixed; }
}


.pview { min-height: 100vh; }
.ps-back, .pback { text-decoration: none; }


/* ---- зелёно-розовая тема: страницы проектов ---- */
html.gp .is-project.is-scrolled .pbar__panel, html.gp .is-project.is-scrolled .pback { background: rgba(9, 61, 43, .96); box-shadow: 0 10px 36px rgba(5, 48, 33, .4), 0 0 0 1px rgba(255,255,255,.06); }
html.gp .is-project.is-scrolled .pback:hover { background: #062b1e; }
html.gp .ps-kit:hover { background: var(--pink-d); }
html.gp .is-project.is-scrolled .ps-kit:hover { background: #fff; color: var(--ink); }
html.gp .is-project.is-scrolled .ps-price .btn { background: #fff; color: var(--ink); }
html.gp .is-project.is-scrolled .ps-price .btn__ic { background: var(--pink); color: #fff; }
html.gp .is-project.is-scrolled .pbar__eye { background: var(--pink); color: #fff; }
html.gp .pbar__eye { background: var(--ink); }
html.gp .pbar__eye:hover { background: var(--pink-d); }
html.gp .ps-back:hover { background: var(--pink-m); }
html.gp .pf__reset:hover { color: var(--pink-d); }
html.gp .plan-box { background: var(--paper); }
html.gp .bento__col { background: var(--paper); }
html.gp .bento__col:nth-child(2) .bento__card { background: var(--pink-l); }
html.gp .bento__col:nth-child(2) { background: var(--pink-l); }
html.gp .bento__card { background: transparent; }
html.gp .pv-nav a:hover { background: var(--pink-l); color: var(--pink-d); }
html.gp .pv-specs__top b { color: var(--ink); }
html.gp .kit__h i, html.gp .pv-specs__kits .ps-kit { background: var(--pink-l); }
html.gp .plan-box__deco { color: var(--pink-m); }
html.gp .pv-dot.is-on { background: #fff; }
html.gp .pv-cursor { border-color: #fff; }
html.gp .sim:hover .sim__r b { color: var(--pink-d); }
html.gp .pgrid .pcard { background: var(--paper); }
@media (max-width: 900px) { html.gp .ppage.is-project .pbar__panel { background: rgba(255, 255, 255, .94); } html.gp .is-project.is-scrolled .pbar__panel { background: rgba(9, 61, 43, .96); } }


/* ---- уровни 2 и 3 ---- */
html.g1 .ps-kit:hover { background: var(--g); color: #fff; }
html.g1 .is-project.is-scrolled .ps-kit:hover { background: #fff; color: var(--ink); }
html.g1 .pv-nav a:hover { background: var(--g-l); color: var(--g-d); }
html.g1 .kit__h i, html.g1 .pv-specs__kits .ps-kit { background: var(--g-l); }
html.g1 .is-project.is-scrolled .ps-price .btn { background: #fff; color: var(--ink); }
html.g1 .is-project.is-scrolled .ps-price .btn__ic { background: var(--g); color: #fff; }
html.g1 .pbar__eye:hover { background: var(--g); }
html.g1 .sim:hover .sim__r b { color: var(--g); }
html.gp.soft .bento__col:nth-child(2) .bento__card, html.gp.soft .bento__col:nth-child(2) { background: var(--paper); }
html.gp.soft .kit__h i, html.gp.soft .pv-specs__kits .ps-kit, html.gp.soft .pv-nav a:hover { background: var(--paper); }
html.gp.soft .pv-nav a:hover { color: var(--ink); }
html.gp.soft .ps-kit:hover { background: var(--ink); }
html.gp.soft .is-project.is-scrolled .ps-kit:hover { background: #fff; color: var(--ink); }
html.gp.soft .is-project.is-scrolled .pbar__eye { background: #fff; color: var(--ink); }
html.gp.soft .sim:hover .sim__r b { color: var(--ink); }
html.gp.soft .plan-box__deco { color: #b8cfc4; }


/* =====================================================================
   Единая страница «каталог ↔ проект»: панель одна на оба состояния,
   шапка сайта видна всегда, переходы — анимацией (js/projects.js)
   ===================================================================== */
.pbar { transition: none; }
.pbar__stack { position: relative; min-height: 44px; display: block; transition: height .55s var(--ease), opacity .45s .15s; }
.pbar__filters, .pbar__spec { position: absolute; left: 0; right: 0; top: 0; grid-area: auto; }
.pbar__row { display: contents; }
.pbar.is-leaving .pbar__filters { opacity: 0; visibility: hidden; transform: translateY(-10px); }
.pbar.is-leaving .pbar__filters { transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
html.route-project .catalog { display: none; }
html.route-project .pbar__filters { opacity: 0; visibility: hidden; }

.catalog { transition: opacity .5s var(--ease); }
.catalog.is-fading { opacity: 0; }
.pview { min-height: 0; }
.pview:not([hidden]) { animation: pvFade .55s var(--ease) both; }
.pview.is-out { opacity: 0; transition: opacity .28s var(--ease); }
@keyframes pvFade { from { opacity: 0; } }
.pclone.is-anim { transition: left .9s var(--ease), top .9s var(--ease), width .9s var(--ease), height .9s var(--ease), border-radius .9s var(--ease); }
.pclone { background-color: #222; }

@media (min-width: 901px) {
  .pv-hero { margin-top: var(--hdr); height: calc(100svh - var(--hdr)); min-height: 520px; }
}
.pv-hero__txt { pointer-events: none; }
.pv-hint { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 15px; font-weight: 500; letter-spacing: .01em; opacity: 0; transition: opacity .9s var(--ease) 1.1s; }
.pv-hero.is-ready .pv-hint { opacity: .92; }
.pv-hint svg { width: 20px; height: 20px; flex: none; transform: rotate(90deg); animation: pvBounce 1.5s ease-in-out infinite; }
@keyframes pvBounce { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(9px); } }
@media (prefers-reduced-motion: reduce) { .pv-hint svg { animation: none; } }
.zoom-hint { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.plan-box__img { align-content: center; }

/* ---------- телефон ---------- */
@media (max-width: 900px) {
  .catalog { padding-top: calc(var(--hdr) + 136px); }
  .pbar { top: calc(var(--hdr) + 8px); }
  .pbar__panel { padding: 8px 10px; border-radius: 20px; clip-path: none; }
  .pbar__eye, .pback { display: none !important; }
  .pbar.is-min .pbar__panel { clip-path: none; }
  .pbar.is-min .pbar__stack { opacity: 1; }
  /* критерии каталога — два ряда, каждый листается в сторону */
  .pbar__filters { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 8px; overflow: visible; padding: 0; }
  .pbar__row { display: flex; align-items: center; gap: 16px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .pbar__row::-webkit-scrollbar { display: none; }
  .pbar__row .pf { flex: none; }
  .pf--end { margin-left: 0; }
  .pf__count { font-size: 13px; color: var(--ink-2); }
  .pbar__spec { flex-wrap: nowrap; overflow: visible; }

  /* страница проекта: фото 4:3 под шапкой и панелью, без размытых полей */
  .pv-hero { margin-top: calc(var(--hdr) + 74px); height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .pv-slide { background: #222 var(--img) center / cover no-repeat; }
  .pv-slide::before, .pv-slide::after { display: none; }
  .pv-nav { display: none; }

  /* под фото: название и тип, крупная цена, две кнопки, пояснение */
  .pv-specs { display: block; padding: 22px 0 4px; }
  .pv-specs__top { display: block; }
  .pv-specs__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .pv-specs__row b { font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
  .pv-specs__row span { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
  .pv-specs__price { font-size: clamp(36px, 10.6vw, 46px); font-weight: 200; letter-spacing: -.045em; line-height: 1.05; margin: 10px 0 16px; white-space: nowrap; }
  .pv-specs__btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
  .pv-specs__btns .btn { width: 100%; justify-content: space-between; padding-left: 18px; font-size: 14px; gap: 8px; }
  .pv-specs__note { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
  .pv-specs__grid { margin-top: 20px; }
}
@media (max-width: 900px) {
  .pbar__filters { align-items: stretch; }
  .pbar__row { width: 100%; min-width: 0; }
}
@media (max-width: 900px) { .pv-hint { display: none; } }
