/* Финальный слой прототипа: типографика и чистка. Типографика — последний слой, подключается после всех остальных стилей.
   Шкала из аудита 16.10.2026: заголовки светлее и меньше, трекинг около нуля,
   основной текст 16–17px, вторичный цвет проходит контраст 4.5:1 на светлом фоне. */
:root{
  --font:'Manrope',Arial,sans-serif;
  --muted:#4f574f;
  --type-ink:#232823;
  --type-body:#454d46;
  --type-quiet:#5c665c;
}
body{font-family:var(--font);color:var(--type-ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}

/* Заголовки */
body main h1,body main #hero-second h2{font-size:clamp(44px,4.4vw,64px)!important;font-weight:400!important;letter-spacing:-.02em!important;line-height:1.04!important;color:var(--type-ink)!important}
body main h2{font-size:clamp(32px,3vw,46px)!important;font-weight:400!important;letter-spacing:-.015em!important;line-height:1.08!important;color:var(--type-ink)!important}
body main h2 em,body main h1 em{font-style:normal;color:var(--type-quiet)!important}
body main h3{font-weight:500!important;letter-spacing:-.01em!important;line-height:1.2!important}

/* Основной текст */
body main p{font-size:17px!important;line-height:1.6!important;color:var(--type-body)!important;letter-spacing:0!important}
body main .hero-desc{font-size:18px!important;max-width:34em;margin-top:24px!important}
body main .section-right p{max-width:340px!important;font-size:16px!important}
body main .consult-free{font-size:14px!important;color:var(--type-quiet)!important}

/* Надзаголовки и подписи: не меньше 12px */
body .eyebrow{font-size:12px!important;font-weight:600!important;letter-spacing:.14em!important;color:var(--type-quiet)!important}
body .consent span{font-size:13px!important;line-height:1.5!important;color:var(--type-quiet)!important}

/* Мелкий вторичный текст: минимум 12px и контраст 4.5:1 */
body main h2 span,body main h1 span{color:var(--type-quiet)!important}
body .space-gallery-hint,body .drawing-footer span,body .portfolio-summary dt,body .factory-features span,body .factory-features b{font-size:12px!important;color:var(--type-quiet)!important}
body .footer-address,body .footer-right a{font-size:13px!important;color:var(--type-quiet)!important}

/* Цена на первом экране: три факта строкой, как характеристики в каталоге */
body main .hero-facts{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;margin:30px 0 0;padding:0}
body main .hero-facts>div{padding:0 clamp(18px,1.8vw,28px);border-left:1px solid #d9dbd4}
body main .hero-facts>div:first-child{padding-left:0;border-left:0}
body main .hero-facts dt{margin:0 0 6px;font-size:13px;line-height:1.3;color:var(--type-quiet);letter-spacing:0}
body main .hero-facts dd{margin:0;font-size:clamp(18px,1.45vw,21px);line-height:1.2;color:var(--type-ink);font-variant-numeric:tabular-nums;letter-spacing:-.01em;white-space:nowrap}

@media(max-width:767px){
  body main .hero-facts{margin-top:22px}
  body main .hero-facts>div{padding:0 12px}
  body main .hero-facts dt{font-size:12px;margin-bottom:4px}
  body main .hero-facts dd{font-size:16px}
  body main h1,body main #hero-second h2{font-size:clamp(34px,9.6vw,40px)!important;line-height:1.06!important}
  body main h2{font-size:clamp(28px,7.6vw,32px)!important;line-height:1.1!important}
  body main p{font-size:16px!important}
  body main .hero-desc{font-size:16px!important}
}

/* Чистка шаблонных приёмов (аудит 16.10.2026):
   без декоративных номеров, чёрточек у надзаголовков и текста поверх фото. */
body .eyebrow:before{display:none!important}
body .eyebrow{padding-left:0!important}
.space-gallery .space-slide:before{display:none!important}
.factory .factory-image-wrap:before{display:none!important}

/* Липкая панель связи на телефоне: звонок и расчёт всегда под рукой */
.mobile-cta{display:none}
@media(max-width:767px){
  .mobile-cta{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:90;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(248,247,243,.94);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid #dcded8}
  .mobile-cta a{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:999px;font:500 15px/1 var(--font);text-decoration:none;color:var(--type-ink);border:1px solid #c9ccc5}
  .mobile-cta a:last-child{background:#232823;color:#fff;border-color:#232823}
  .mobile-cta a:active{transform:scale(.98)}
  body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
}

/* Шапка в одну строку на десктопе: логотип · 6 пунктов · телефон · одна кнопка */
.nav-group{position:relative}
.nav-more{all:unset;cursor:pointer;font:inherit;color:inherit;display:inline-flex;align-items:center;gap:6px}
.nav-more:after{content:"";width:6px;height:6px;border-right:1.2px solid currentColor;border-bottom:1.2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s ease}
.nav-group.open .nav-more:after{transform:translateY(1px) rotate(-135deg)}
.nav-more:focus-visible{outline:2px solid #88a838;outline-offset:4px;border-radius:2px}
@media(min-width:1101px){
  :root{--header-height:76px}
  html{scroll-padding-top:76px}
  .header{height:76px!important;display:grid!important;grid-template-columns:auto 1fr auto auto;align-items:center;column-gap:clamp(24px,2.6vw,44px);border-bottom:1px solid #e4e5e0}
  .header-main{display:contents!important}
  .header .brand{grid-column:1}
  .header-location,.header-contact a[href^="mailto"]{display:none!important}
  .header .nav{grid-column:2;grid-row:1;display:flex!important;justify-content:center;gap:clamp(22px,2.4vw,38px);border:0!important;height:auto!important;padding:0!important;margin:0!important;position:static!important}
  .header .nav a,.header .nav-more{font-size:14px!important;font-weight:400!important;color:#3d453e!important;letter-spacing:0!important}
  .header .nav a:hover,.header .nav-more:hover{color:#111!important}
  .header .nav-home{display:none!important}
  .header-contact{grid-column:3;grid-row:1;margin:0!important}
  .header-contact a{font-size:14px!important;font-weight:500!important;color:#232823!important}
  .header-right{grid-column:4;grid-row:1}
  .nav-sub{position:absolute;top:calc(100% + 18px);left:-20px;min-width:240px;display:grid;padding:10px 0;background:#fdfcf9;border:1px solid #e4e5e0;box-shadow:0 18px 40px -24px rgba(35,40,35,.35);opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .18s ease,transform .18s ease,visibility 0s .18s}
  .nav-sub a{padding:10px 20px}
  .nav-group.open .nav-sub{opacity:1;visibility:visible;transform:none;transition:opacity .18s ease,transform .18s ease}
}
@media(max-width:1100px){
  .nav-more{display:none}
  .nav-group,.nav-sub{display:contents}
}

/* Ритм секций: одна шкала отступов вместо пяти разных */
:root{--section-space:clamp(80px,8.8vw,128px)}
body main #catalog,body main #factory,body main #consult{padding-top:var(--section-space)!important;padding-bottom:var(--section-space)!important}
body main #portfolio{padding-top:var(--section-space)!important;padding-bottom:calc(var(--section-space) * .75)!important}

/* Сравнение «эскиз → визуализация»: при уменьшении движения блок не должен схлопываться */
@media(prefers-reduced-motion:reduce){
  body .drawing-stage{flex:none!important;aspect-ratio:2/1;height:auto!important;min-height:240px!important}
}
/* На телефоне без закрепления: под сравнением не остаётся пустого экрана */
@media(max-width:767px){
  body .drawing-story{height:auto!important}
  body .drawing-sticky{position:relative!important;top:0!important;height:auto!important;padding-top:var(--section-space)!important;padding-bottom:var(--section-space)!important}
  body .drawing-stage{flex:none!important;aspect-ratio:2/1;height:auto!important;min-height:0!important}
}

/* Кнопки и акцент: один чернильный цвет, одна форма, без подпрыгивания.
   Фирменный зелёный #88a838 — только мелкие акценты: фокус и активные состояния. */
:root{--btn-ink:#232823;--brand:#88a838}
body .btn{border-radius:999px!important;background:var(--btn-ink)!important;color:#fff!important;font-size:14px!important;font-weight:500!important;letter-spacing:0!important;box-shadow:none!important;transform:none;transition:background-color .2s ease,transform .16s ease-out!important}
body .btn:hover{background:#0f120f!important;transform:none!important;box-shadow:none!important}
body .btn:active{transform:scale(.98)!important}
body .btn:focus-visible,body a:focus-visible,body button:focus-visible,body input:focus-visible{outline:2px solid var(--brand)!important;outline-offset:3px}
body .header-cta{border-radius:999px!important;font-size:13px!important;font-weight:500!important}
body .header-cta:hover{background:var(--btn-ink)!important;color:#fff!important;border-color:var(--btn-ink)!important}
body input[type=checkbox]{accent-color:var(--btn-ink)}
body main .form-lead{margin:10px 0 22px!important;font-size:15px!important;line-height:1.5!important;color:var(--type-body)!important;max-width:30em}

/* Проекты: реальные фото без затемнения — белая кухня должна оставаться белой.
   Тень только внизу, под подписью. */
body #portfolio .portfolio-tile img{filter:none!important;transition:transform .9s cubic-bezier(.2,.7,.1,1)}
body #portfolio .portfolio-tile-shade{background:linear-gradient(180deg,rgba(21,25,20,0) 62%,rgba(21,25,20,.5) 100%)!important}
@media(hover:hover){body #portfolio .portfolio-tile:hover img{transform:scale(1.03)}}
body #portfolio .portfolio-tile-1 img{object-position:50% 60%}

/* Hero: рендер кухни — часть страницы, а не вставленная картинка.
   Фон секции совпадает с фоном рендера (#faf8f4), края кадра растворены маской. */
body .hero-sticky{background:#faf8f4!important}
body .hero-sticky:before,body .hero-sticky:after{background:none!important}
body #hero-model-slot{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 7%,#000 93%,transparent 100%),linear-gradient(to bottom,transparent 0,#000 8%,#000 90%,transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent 0,#000 7%,#000 93%,transparent 100%),linear-gradient(to bottom,transparent 0,#000 8%,#000 90%,transparent 100%);mask-composite:intersect}

/* Hero на телефоне: текст и кухня в обычном потоке, без наложения.
   Кухня занимает всё место между кнопками и нижней панелью и уменьшается на маленьких экранах. */
@media(max-width:767px){
  body .hero-sticky{display:grid!important;grid-template-columns:100%;grid-template-rows:auto minmax(0,1fr);padding:calc(var(--header-height,70px) + 22px) 0 calc(76px + env(safe-area-inset-bottom))!important;box-sizing:border-box}
  body #hero-first,body #hero-second{position:relative!important;grid-row:1;grid-column:1;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:auto!important;margin:0 var(--pad)!important;align-self:start}
  body .hero-visual{position:relative!important;grid-row:2;grid-column:1;inset:auto!important;width:100%!important;height:auto!important;min-height:0;margin:8px 0 0!important}
  body #hero-model-slot{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;transform:none!important}
  body #hero-model-slot picture,body #hero-model-slot img,body #hero-model-slot canvas{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom;transform:none!important}
  body main .hero-actions{margin-top:24px!important}
}
@media(max-width:767px) and (max-height:720px){
  body #hero-first .hero-desc{display:none}
}

/* Подпись под проектами: две колонки, кнопка по размеру текста и в общем стиле кнопок */
body #portfolio .portfolio-summary{grid-template-columns:minmax(0,1fr) auto!important;align-items:end}
body #portfolio .portfolio-summary>a{grid-column:2!important;grid-row:1!important;width:auto!important;min-width:0!important;gap:16px;padding:8px 8px 8px 24px;min-height:52px;background:var(--btn-ink)!important;font-size:14px!important;font-weight:500;transition:background-color .2s ease,transform .16s ease-out}
body #portfolio .portfolio-summary>a:hover{background:#0f120f!important}
body #portfolio .portfolio-summary>a:active{transform:scale(.98)}
body #portfolio .portfolio-summary>a span{width:36px;height:36px}
body #portfolio .portfolio-summary h3{font-weight:400!important;letter-spacing:-.015em!important}
@media(max-width:767px){
  body #portfolio .portfolio-summary>a{display:inline-flex;margin-top:20px}
}
/* Второстепенная ссылка в hero: тот же кегль, что у кнопки рядом */
body .ghost-link{font-size:14px!important;font-weight:500!important;color:var(--type-ink)!important}

/* ===== Единая система после аудита 17.10.2026 ===== */
/* Один фон на всю страницу — тот же, что у рендера кухни; блоки разделяет воздух, а не оттенки */
:root{--page:#faf8f4}
body,body .header,body .hero-sticky,body #catalog,body #factory,body #process,body #portfolio,body .footer{background-color:var(--page)!important}
body .header{background-color:rgba(250,248,244,.94)!important;backdrop-filter:saturate(1.2) blur(10px);-webkit-backdrop-filter:saturate(1.2) blur(10px)}
body .footer{border-top:1px solid #e4e5e0}

/* Кнопки: одна высота для основных действий */
body .btn,body #portfolio .portfolio-summary>a{min-height:56px!important;height:auto}
body .consult .btn{min-height:56px!important}
body .header-cta{font-size:14px!important;min-height:44px}

/* Стрелки-переключатели: одинаковые во всех блоках */
body .space-gallery-arrow,body .arrow-btn{width:48px!important;height:48px!important;border:1px solid #c9ccc5!important;color:var(--type-ink)!important;font-size:18px!important;background:transparent!important;transition:background-color .2s ease,border-color .2s ease,color .2s ease}
body .space-gallery-arrow:hover,body .arrow-btn:hover{background:var(--btn-ink)!important;border-color:var(--btn-ink)!important;color:#fff!important}
@media(max-width:767px){body .space-gallery-arrow,body .arrow-btn{width:44px!important;height:44px!important}}

/* Заголовки второго уровня, которые были набраны по-своему */
body .brief-contact-title{font-size:clamp(30px,2.6vw,40px)!important;font-weight:400!important;letter-spacing:-.015em!important;line-height:1.08!important;color:var(--type-ink)!important}
body .space-slide>span{font-weight:400!important;letter-spacing:-.01em!important}
body .portfolio-tile-copy strong{font-weight:400!important;letter-spacing:-.01em!important}

/* Мелкий текст: не меньше 12–13px, без жирных цифр */
body .hero-points span{font-size:13px!important;font-weight:500!important;color:var(--type-ink)!important}
body .hero-points b{font-size:12px!important;font-weight:400!important;color:var(--type-quiet)!important;margin-right:6px}
body .space-gallery-count{font-size:13px!important;letter-spacing:.04em!important;color:var(--type-quiet)!important;font-variant-numeric:tabular-nums}
body .space-gallery-eyebrow{font-size:12px!important;font-weight:600!important;letter-spacing:.14em!important;color:var(--type-quiet)!important}
body .space-gallery-eyebrow:before{display:none!important}
body .space-slide-detail{font-size:13px!important;line-height:1.4!important}
body .drawing-label{font-size:12px!important;letter-spacing:.08em!important;color:var(--type-quiet)!important}
body .factory-image-caption span{font-size:12px!important;letter-spacing:.08em!important}

/* Шаблонные приёмы: номера на плитках и подсказка «листайте» */
body .portfolio-tile-number,body .space-gallery-hint{display:none!important}

/* Скругления фото: одно значение для карусели и проектов */
body .space-slide,body #portfolio .portfolio-tile{border-radius:6px!important}
/* Hero на телефоне: вторичная ссылка в одну строку */
@media(max-width:767px){body .hero-actions{flex-wrap:wrap;gap:14px 22px!important}body .ghost-link{white-space:nowrap;gap:14px!important}}
body #portfolio .portfolio-summary p{max-width:none!important}
body #portfolio .portfolio-summary p+p{margin-top:2px!important;color:var(--type-quiet)!important}

/* Keep the opening rotation within one scroll gesture instead of a long hold. */
body #hero.hero-story{height:190svh}
@media(max-width:900px){body #hero.hero-story{height:180svh}}
@media(max-width:767px){body #hero.hero-story{height:175svh}}
@media(prefers-reduced-motion:reduce){body #hero.hero-story{height:100svh}}

/* The project mosaic is static: the introduction has two columns, no pager. */
@media(min-width:901px){body #portfolio .section-title-row{grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr);gap:clamp(24px,4vw,72px)}}
@media(min-width:601px) and (max-width:900px){body #portfolio .section-title-row{grid-template-columns:minmax(0,1fr)}}

/* The video source is still awaiting the client; keep its preview honest. */
body #factory .factory-play:disabled{opacity:1;cursor:default}
body #factory .factory-play-icon{padding-left:3px;color:#52692b}
body #factory .factory-play-icon svg{display:block}
body #factory .factory-image-wrap:hover .factory-play:disabled .factory-play-icon{transform:none}
