/* Ироко мебель — новый дизайн. Палитра: чёрный, белый, тёплый «ироко» (цвет дерева). */
/* Шрифт лежит у нас на хостинге: посетитель не обращается к серверам Google (152-ФЗ, трансграничная передача) */
@font-face { font-family: Montserrat; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/montserrat-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/montserrat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ink: #161513;
  --paper: #ffffff;
  --soft: #f4f2ee;
  --line: #e2dfd8;
  --muted: #6f6c66;
  --wood: #9a6a3a;          /* акцент: цвет дерева ироко, только для мелких деталей */
  --wood-dark: #7d5329;
  --wine: #713444;          /* сдержанный бордовый акцент комплектации премиум */
  --radius: 6px;
  --hdr: 68px;
  --wrap: 1240px;
  --font: Montserrat, "Segoe UI", Arial, sans-serif;
  /* движение: сильный ease-out для появлений, мягкий in-out для перемещений */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 15px; }
img { display: block; max-width: 100%; height: auto; }
/* фото не перетаскиваются и не сохраняются долгим нажатием на iPhone */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: #fff; color: #000; padding: 10px 14px; z-index: 200; border-radius: 4px; }
.skip:focus { top: 12px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; border-radius: 999px; font: 600 .75rem/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn:hover { background: #fff; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: 11px 20px; font-size: .6875rem; }

/* Шапка */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--hdr); color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.hdr.is-solid { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hdr .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; width: 104px; flex: none; }
.logo img { width: 100%; filter: brightness(0) invert(1); transition: filter .3s; }   /* чисто белый над фото */
.hdr.is-solid .logo img { filter: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; position: relative; padding: 6px 0; white-space: nowrap; }
/* средние экраны (ноутбук, планшет боком): пункты меню в одну строку — меньше отступы и шрифт */
@media (min-width: 861px) and (max-width: 1180px) {
  .hdr .wrap { gap: 16px; }
  .nav { gap: 18px; }
  .nav a { font-size: .6875rem; letter-spacing: .02em; }
  .nav a.hdr-phone { font-size: .8125rem; }
  .nav a.btn { padding: 11px 16px; }
}
@media (min-width: 861px) and (max-width: 1000px) {
  .nav { gap: 11px; }
  .nav a { font-size: .6875rem; letter-spacing: 0; }
  .nav a.hdr-phone { font-size: .75rem; letter-spacing: 0; }
  .nav a.btn { padding: 10px 12px; }
  .logo { width: 92px; }
}
.nav a.btn { padding: 12px 22px; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .3s; }
.nav a:not(.btn):hover::after { right: 0; }
.hdr .btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.hdr .btn:hover { background: #fff; color: var(--ink); }
.hdr.is-solid .btn { color: #fff; background: var(--ink); border-color: var(--ink); }
.hdr.is-solid .btn:hover { background: #fff; color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; }
.burger span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px auto; transition: transform .3s, opacity .3s; }

/* Hero */
.hero { position: relative; min-height: clamp(400px, 58vh, 540px); display: flex; align-items: flex-end; color: #fff; background: #111; overflow: hidden; }
.hero > picture, .hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero > picture img { object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 38%, rgba(0,0,0,.72) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-block: calc(var(--hdr) + 32px) 44px; }
.eyebrow { display: inline-block; font-size: .8125rem; font-weight: 600; letter-spacing: 0; text-transform: none; margin-bottom: 18px; opacity: .9; }
.hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.75rem); line-height: 1.1; font-weight: 700; text-transform: uppercase; max-width: 22ch; letter-spacing: -.01em; }
.hero p.lead { max-width: 560px; margin-top: 16px; font-size: 1rem; line-height: 1.65; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-note { margin-top: 14px; font-size: .75rem; color: rgba(255,255,255,.75); }

/* Секции */
.section { padding-block: clamp(44px, 6vw, 80px); }
.section.soft { background: var(--soft); }
.section.dark { background: var(--ink); color: #fff; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(22px, 3vw, 36px); }
.label { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--wood); margin-bottom: 14px; }
.section.dark .label { color: #d6a876; }
.h2 { font-size: clamp(1.3rem, 2.3vw, 1.8rem); line-height: 1.15; font-weight: 700; text-transform: uppercase; letter-spacing: -.005em; }
.sec-head p { max-width: 460px; color: var(--muted); }
.more { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; white-space: nowrap; }

/* Цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: clamp(20px, 2.6vw, 30px) clamp(14px, 2vw, 26px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .45em; font-weight: 600; margin-left: .15em; color: var(--wood); letter-spacing: 0; }
.stat span { display: block; margin-top: 8px; font-size: .8125rem; color: var(--muted); max-width: 22ch; }

/* Направления */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3.3; color: #fff; text-decoration: none; background: #222; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.78) 100%); }
.cat:hover img { transform: scale(1.05); }
.cat-body { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; }
.cat h3 { font-size: 1.05rem; font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.cat p { min-height: 2.9em; margin-top: 6px; font-size: .8125rem; color: rgba(255,255,255,.88); }
.cats-note { margin-top: 22px; color: var(--muted); font-size: .9375rem; }
.cats-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* Страницы категорий: разделы по помещениям; раздел без проектов не показываем */
.catsec + .catsec { margin-top: 48px; }
.catsec .h2 { margin-bottom: 8px; }
.catsec-text { color: var(--muted); margin: 0 0 20px; }
.catsec:not(:has(.pgrid)) { display: none; }

/* Проекты */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { display: block; text-decoration: none; }
.card figure { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--soft); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover img { transform: scale(1.05); }
.card h3 { margin-top: 12px; font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.card span { display: block; margin-top: 2px; font-size: .75rem; color: var(--muted); }

/* Производство */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.split figure img { width: 100%; height: auto; }
.split .h2 { margin-bottom: 16px; }
.split p { color: var(--muted); }
.split p + p { margin-top: 14px; }
.timeline { display: flex; align-items: stretch; gap: 0; margin: 30px 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.timeline div { flex: 1; padding: 20px 22px; }
.timeline div + div { border-left: 1px solid var(--line); }
.timeline small { display: block; font-size: .8125rem; letter-spacing: 0; text-transform: none; color: var(--wood); font-weight: 700; }
.timeline b { display: block; margin-top: 4px; font-size: 1.15rem; line-height: 1.15; font-weight: 700; }
.timeline em { display: block; margin-top: 4px; font-style: normal; font-size: .8125rem; color: var(--muted); }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 1px; background: var(--wood); }

/* Этапы */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.step { padding: 22px 24px 24px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.step:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.18); }
.step i { display: block; font-style: normal; font-size: 1.7rem; line-height: 1; font-weight: 300; color: #d6a876; letter-spacing: -.02em; }
.step h3 { margin-top: 10px; font-size: .9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.step p { margin-top: 6px; font-size: .875rem; color: rgba(255,255,255,.72); line-height: 1.6; }

/* Призыв и контакты */
.cta { text-align: center; }
.cta .h2 { max-width: 20ch; margin-inline: auto; }
.cta p { margin: 18px auto 0; max-width: 540px; color: var(--muted); }
.cta .hero-actions { justify-content: center; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.clist { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.clist small { display: block; font-size: .8125rem; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.clist a, .clist span { font-size: 1rem; font-weight: 500; text-decoration: none; }
.clist a:hover { color: var(--wood-dark); }
.msgrs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.map-link { display: grid; place-items: center; min-height: 220px; align-self: stretch; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); text-align: center; padding: 28px; text-decoration: none; }
.map-link b { display: block; font-size: 1.05rem; }
.map-link span { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; }

/* Подвал */
.ftr { background: var(--ink); color: rgba(255,255,255,.72); padding-block: 48px 36px; font-size: .875rem; }
.ftr .wrap { display: grid; grid-template-columns: auto 1fr auto auto; gap: 24px 40px; align-items: start; }
.ftr .logo img { filter: brightness(0) invert(1); }
.nav a.hdr-phone { font-size: .875rem; letter-spacing: .02em; text-transform: none; white-space: nowrap; }

/* Панель быстрой связи внизу экрана на телефоне */
.ftr .mbar { display: none; }
@media (max-width: 860px) {
  .ftr .mbar { display: grid; grid-auto-flow: column; grid-template-columns: 1.25fr; grid-auto-columns: 1fr; gap: 0; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: #161513; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 18px rgba(0,0,0,.18); }
  .ftr .mbar a { display: block; padding: 15px 2px; text-align: center; color: #fff; font-size: .75rem; font-weight: 600; text-decoration: none; letter-spacing: .02em; }
  .mbar a + a { border-left: 1px solid rgba(255,255,255,.14); }
  .mbar a:first-child { background: var(--wood); }
  body { padding-bottom: 52px; }
  body.menu-open .ftr .mbar, body.pf-lock .ftr .mbar { display: none; }
}
/* Плашка о файлах cookie: внизу экрана, на телефоне — над панелью быстрой связи */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 95; max-width: 420px; display: flex; gap: 14px; align-items: center;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.14); font-size: .8125rem; line-height: 1.45; }
.cookie p { margin: 0; }
.cookie a { text-decoration: underline; }
.cookie { flex-direction: column; align-items: stretch; }
.cookie-btns { display: flex; gap: 8px; }
.cookie button { flex: 1; font: inherit; font-weight: 600; color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius); padding: 9px 16px; cursor: pointer; }
.cookie button:hover { background: var(--wood-dark); border-color: var(--wood-dark); }
.cookie button.no { color: var(--ink); background: #fff; border-color: var(--line); }
.cookie button.no:hover { background: var(--soft); }
.ftr .cookie-open { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.consent-ph { border: 1px dashed var(--line); border-radius: 12px; padding: 28px 20px; text-align: center; color: var(--muted); }
.consent-ph p { margin: 0 0 12px; }
@media (max-width: 860px) {
  .cookie { left: 12px; right: 12px; max-width: none; bottom: calc(60px + env(safe-area-inset-bottom)); }
  body.menu-open .cookie, body.pf-lock .cookie { display: none; }
}
/* Страница политики: обычный текст, пункты списком */
.policy h2 { font-size: 1.125rem; margin: 32px 0 10px; }
.policy p, .policy li { color: #3b3935; }
.policy ul { padding-left: 20px; margin: 8px 0; }
.policy table { width: 100%; border-collapse: collapse; margin: 10px 0 4px; font-size: .875rem; }
.policy th, .policy td { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: 8px 10px; }
.policy th { background: var(--soft); font-weight: 600; }
.policy .tbl { overflow-x: auto; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.ftr a { text-decoration: none; }
/* Подвал: соцсети кнопками с иконками */
.ftr .soc { flex-direction: column; gap: 10px; }
.ftr .soc a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; font-weight: 500; transition: border-color .2s, background .2s; }
.ftr .soc a:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.soc-ic { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .02em; flex: none; }
.soc-vk { background: #0077ff; }
.soc-tg { background: #29a9eb; }
@media (max-width: 860px) { .ftr .soc { flex-direction: row; flex-wrap: wrap; } }
.ftr a:hover { color: #fff; }
.ftr .legal-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.ftr .legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: .8125rem; }

/* Появление при прокрутке */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
/* фото в карточке «садится» на место, пока карточка проявляется */
.js .rv figure img, .js .rv.cat > img { scale: 1.06; transition: scale 1.1s var(--ease-out), transform .7s ease; transition-delay: var(--d, 0ms); }
.js .rv.in figure img, .js .rv.in.cat > img { scale: 1; }

/* Первый экран главной: фото медленно отъезжает, текст и кнопки появляются по очереди */
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .hero > picture img { animation: hero-zoom 2.4s var(--ease-out) both; }
.js .hero .lead, .js .hero .hero-actions { animation: rise .8s var(--ease-out) both; }
/* заголовок: слова по очереди выезжают снизу из-под маски (разбивку на слова делает site.js) */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .w > span { display: inline-block; transform: translateY(105%); animation: up .9s var(--ease-out) forwards; animation-delay: calc(.12s + var(--i) * 70ms); }
@keyframes up { to { transform: none; } }
.js .hero .lead { animation-delay: .27s; }
.js .hero .hero-actions { animation-delay: .39s; }

/* Наведение — только там, где есть мышь: на телефоне касание не «залипает» */
@media (hover: none) {
  .cat:hover img, .card:hover img, .pcard:hover img, .ps-item:hover img { transform: none; }
}

/* Планшет */
@media (max-width: 1024px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .step:nth-child(even) { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.18); }
  .nav .nav-extra { display: none; }
}
/* Телефон: меню выпадает карточкой под шапкой (высота по содержимому, не на весь экран) */
@media (max-width: 860px) {
  :root { --hdr: 64px; }
  .burger { display: block; }
  .logo { width: 100px; }
  .nav { position: fixed; top: calc(var(--hdr) + 6px); right: 12px; width: min(300px, calc(100vw - 24px)); max-height: calc(100vh - var(--hdr) - 24px);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 22px 20px; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.35);
    background: var(--ink); color: #fff; opacity: 0; transform: translateY(-10px); visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility 0s .25s; z-index: 120; overflow-y: auto; }
  .nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .25s ease, transform .25s ease; }
  .nav a { width: 100%; padding: 13px 0; font-size: .9375rem; border-bottom: 1px solid rgba(255,255,255,.14); }
  .nav a::after { display: none; }
  .nav .nav-extra { display: block; }
  .nav .btn { margin-top: 18px; width: 100%; padding: 15px 22px; border: 1px solid #fff; color: #fff; background: transparent; }
  .hdr.is-solid .nav .btn, .hdr .nav .btn { color: #fff; background: transparent; border-color: #fff; }
  .burger { position: relative; z-index: 130; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .veil { position: fixed; inset: 0; z-index: 99; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
  body.menu-open .veil { opacity: 1; visibility: visible; transition: opacity .3s; }
  body.menu-open { overflow: hidden; }
  .cats { grid-template-columns: 1fr; gap: 12px; }
  .cat { aspect-ratio: 2 / 1; }
  .cat-body { bottom: 14px; }
  .cat p { min-height: 0; margin-top: 4px; }
  .split, .contacts { grid-template-columns: 1fr; }
  .ftr .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hero { min-height: 0; }
  .hero .wrap { padding-bottom: 32px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-actions .btn { width: 100%; }
  .grid4 { gap: 14px; }
  .card h3 { font-size: .875rem; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(even), .step:not(:nth-child(3n+1)) { padding: 24px 0 26px; border-left: 0; }
  .timeline { flex-direction: column; }
  .timeline div + div { border-left: 0; border-top: 1px solid var(--line); }
  .stat { padding: 24px 14px; }
  .sec-head .more { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .rv figure img, .js .rv.cat > img { scale: 1; transition: none; }
  .js .hero > picture img, .js .hero .lead, .js .hero .hero-actions, .hero h1 .w > span { animation: none; transform: none; }
  .cat img, .card img, .pcard img, .ps-item img { transition: none; }
  .bcard, .bcard-img img { transition: none; }
  .bcard:hover { transform: none; box-shadow: none; }
  .btn:active { transform: none; }
  .pf-lb, .pf-lb-img { transition: opacity .15s ease !important; transform: none !important; }
}

/* Внутренние страницы */
.page-hero { padding: calc(var(--hdr) + 36px) 0 36px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.15; font-weight: 700; text-transform: uppercase; margin-top: 10px; }
.page-hero p { max-width: 640px; margin-top: 12px; color: var(--muted); }
.crumbs { font-size: .75rem; color: var(--muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.crumbs i { font-style: normal; margin: 0 .5em; }
.prose { max-width: 720px; }
.prose p { color: #3b3935; } .prose p + p { margin-top: 14px; }
.prose h2 { font-size: 1.25rem; font-weight: 700; text-transform: uppercase; margin: 40px 0 12px; }
.facts4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); margin: 36px 0; background: #fff; }
.facts4 div { padding: 22px 20px; } .facts4 div + div { border-left: 1px solid var(--line); }
.facts4 b { display: block; font-size: 1.7rem; line-height: 1; font-weight: 700; } .facts4 b small { font-size: .5em; color: var(--wood); margin-left: .15em; }
.facts4 span { display: block; margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.reqs { margin: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .875rem; color: var(--muted); }
.reqs b { color: var(--ink); }
.note-box { margin-top: 20px; padding: 16px 20px; background: var(--soft); border-radius: var(--radius); font-size: .875rem; color: #4a4741; }
.steps-page { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps-page li { display: grid; grid-template-columns: 64px 1fr; gap: 8px 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps-page li:first-child { border-top: 1px solid var(--line); }
.steps-page i { font-style: normal; font-size: 1.7rem; font-weight: 300; color: var(--wood); line-height: 1.1; }
.steps-page h3 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.steps-page p { margin-top: 6px; color: var(--muted); max-width: 640px; }
.more-link { text-align: center; margin-top: 28px; }

/* Работы: счётчик фото и Instagram */
.card figure { position: relative; }
.card .cnt { position: absolute; right: 10px; bottom: 10px; z-index: 1; margin: 0; padding: 4px 9px; background: rgba(22,21,19,.78); color: #fff; border-radius: 999px; font-size: .6875rem; letter-spacing: .04em; }
.grid4.w8 { row-gap: 28px; }
.ig { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
/* Страница проекта: витрина фото под заголовком, ниже описание и справка, затем похожие проекты */
.proj-sec { padding-top: clamp(24px, 3vw, 40px); }
.pshow { display: grid; gap: 8px; height: clamp(320px, 44vw, 580px); margin-bottom: clamp(36px, 5vw, 56px); }
.pshow.n1 { grid-template-columns: 1fr; height: auto; max-width: 900px; }
.pshow.n1 .ps-item { aspect-ratio: 3 / 2; }
.post-video { display: flex; flex-wrap: wrap; gap: 10px; margin: calc(-1 * clamp(20px, 3vw, 36px)) 0 clamp(32px, 4vw, 48px); }
.pshow.n2 { grid-template-columns: 1fr 1fr; }
.pshow.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.pshow.n4 { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); }
.pshow.n5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pshow.n3 .ps-item:first-child, .pshow.n5 .ps-item:first-child { grid-row: 1 / 3; }
.pshow.n4 .ps-item:first-child { grid-row: 1 / 4; }
.ps-item { position: relative; display: block; min-height: 0; overflow: hidden; border-radius: var(--radius); background: var(--soft); cursor: zoom-in; }
.ps-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.ps-item:hover img { transform: scale(1.03); }
.ps-item b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(22,21,19,.55); color: #fff; font-size: 1.6rem; font-weight: 600; }
.ps-item .more-m { display: none; }
@media (max-width: 700px) {
  .pshow { height: auto; grid-template-columns: repeat(3, 1fr) !important; grid-template-rows: none !important; gap: 6px; }
  .pshow.n3 { grid-template-columns: repeat(2, 1fr) !important; }
  .ps-item { aspect-ratio: 1; grid-row: auto !important; }
  .ps-item:first-child, .pshow.n2 .ps-item { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .ps-item:nth-child(5) { display: none; }
  .ps-item .more-m { display: flex; }
}
.post-text { position: relative; }
.post-text.is-clamp { max-height: 14em; overflow: hidden; }
.post-text.is-clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5em; background: linear-gradient(rgba(255,255,255,0), var(--paper)); }
.text-more { margin-top: 12px; padding: 0 0 2px; border: 0; border-bottom: 1px solid currentColor; background: none; font: inherit; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: inherit; cursor: pointer; }
.post-src { margin-top: 24px; }

/* Портфолио: журнальная сетка (в каждой пятёрке две крупные карточки и три обычные) */
.pgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 36px 20px; }
.pgrid.vk-posts { margin-bottom: clamp(56px, 7vw, 88px); }
.pcard { grid-column: span 2; display: block; text-decoration: none; }
.pcard.big { grid-column: span 3; }
.pcard.wide { grid-column: span 6; }
.pcard.wide figure { aspect-ratio: 21 / 9; }
.pcard.wide h3 { font-size: 1.25rem; }
.pcard[hidden] { display: none; }
.pcard figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--soft); }
.pcard.big figure { aspect-ratio: 3 / 2; }
.pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.pcard:hover img { transform: scale(1.04); }
.pcard-body { padding-top: 14px; }
.pcard-cat { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: #8a5c33; }   /* было var(--wood) #9a6a3a — на фоне #f4f2ee давало контраст 4,18:1 при норме 4,5 */
.pcard h3 { margin-top: 6px; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.pcard.big h3 { font-size: 1.25rem; }
.pcard-specs { margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.pcard-price { display: inline-block; margin-top: 10px; font-size: .9375rem; font-weight: 700; }
.pgrid.g3 .pcard { grid-column: span 2; }
/* Главная: компактная витрина из четырёх проектов */
.pgrid.home4 { grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.pgrid.home4 .pcard { grid-column: auto; }
.pgrid.home4 .pcard h3 { font-size: .9375rem; }
.pgrid.home4 .pcard-specs, .pgrid.home4 .pcard-price { display: none; }
.pcard .viz { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 4px 9px; background: rgba(255,255,255,.9); color: var(--ink); border-radius: 999px; font-size: .6875rem; font-weight: 600; }
/* «Одна кухня — три бюджета» на странице «Кухни»: три карточки, на телефоне листаются пальцем */
.budget { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.bcard:nth-child(3) { border-color: rgba(113, 52, 68, .42); }
.bcard:nth-child(3) h3, .bcard:nth-child(3) .bcard-price { color: var(--wine); }
.bcard-img { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--soft); }
.bcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: transform .7s var(--ease-out); }
@media (hover: hover) { .bcard-img:hover img, .bcard-img:focus-visible img { transform: scale(1.035); } }
.bcard { transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .28s ease; }
@media (hover: hover) { .bcard:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(30, 20, 18, .08); } }
.bcard .viz { position: absolute; left: 10px; top: 10px; padding: 4px 9px; background: rgba(255,255,255,.9); color: var(--ink); border-radius: 999px; font-size: .6875rem; font-weight: 600; }
.bcard-body { padding: 18px 20px 22px; }
.bcard h3 { font-size: .9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.bcard-price { display: block; margin: 6px 0 14px; font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.bcard dl { margin: 0; font-size: .8125rem; }
.bcard dt { color: var(--muted); font-size: .75rem; }
.bcard dd { margin: 1px 0 10px; }
.budget-foot { margin-top: 18px; font-size: .8125rem; color: var(--muted); max-width: 820px; }
.budget-intro { max-width: 780px; margin: 0 auto 34px; text-align: center; }
.budget-kicker { color: var(--wood-dark); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.budget-intro .h2 { margin-top: 8px; }
.budget-intro p { max-width: 680px; margin: 12px auto 0; color: var(--muted); }
.budget-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.budget-facts span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; }
.budget-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.budget-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.budget-card.is-featured { border-color: #b89673; box-shadow: 0 12px 34px rgba(55, 39, 22, .08); }
.budget-photo { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #e9e5df; }
.budget-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 2%; transition: transform .6s var(--ease-out); }
.budget-photo:hover img { transform: scale(1.025); }
.budget-photo-label { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: .67rem; font-weight: 600; }
.budget-gallery { position: relative; overflow: hidden; background: #e9e5df; }
.budget-gallery-track { display: flex; overflow-x: auto; aspect-ratio: 1 / 1; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.budget-gallery-track::-webkit-scrollbar { display: none; }
.budget-slide { position: relative; display: block; flex: 0 0 100%; overflow: hidden; scroll-snap-align: start; color: inherit; }
.budget-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.budget-slide[data-view="facade"] img { transform: scale(1.65); transform-origin: 78% 53%; }
.budget-slide[data-view="worktop"] img { transform: scale(1.65); transform-origin: 46% 58%; }
.budget-slide[data-view="drawer"] img { object-fit: contain; padding: 8px; }
.budget-slide-label { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.94); font-size: .67rem; font-weight: 600; }
.budget-scheme-note { position: absolute; right: 12px; top: 12px; padding: 5px 8px; border-radius: 999px; background: rgba(22,21,19,.72); color: #fff; font-size: .58rem; font-weight: 700; letter-spacing: .06em; }
.budget-gallery-nav { position: absolute; inset: 50% 10px auto; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.budget-gallery-nav button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(22,21,19,.57); color: #fff; font: 400 24px/1 var(--font); cursor: pointer; pointer-events: auto; transition: background .2s, opacity .2s; }
.budget-gallery-nav button:hover { background: rgba(22,21,19,.85); }
.budget-gallery-nav button:disabled { opacity: .35; cursor: default; }
.budget-gallery-count { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 999px; background: rgba(22,21,19,.66); color: #fff; font-size: .65rem; font-variant-numeric: tabular-nums; }
.budget-card-body { padding: 20px 22px 22px; }
.budget-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.budget-card-top h3 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.budget-card-top span { color: var(--wood-dark); font-size: .68rem; font-weight: 700; }
.budget-total { margin-top: 8px; font-size: clamp(1.65rem, 2.4vw, 2.1rem); line-height: 1.15; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.budget-delta { margin-top: 4px; color: var(--wood-dark); font-size: .72rem; font-weight: 650; }
.budget-includes { margin-top: 8px; min-height: 42px; color: var(--muted); font-size: .78rem; }
.budget-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.budget-tags span { padding: 5px 8px; border-radius: 4px; background: var(--soft); font-size: .68rem; }
.budget-specs { margin-top: 16px; border-top: 1px solid var(--line); }
.budget-specs details { border-bottom: 1px solid var(--line); }
.budget-specs summary { position: relative; padding: 11px 24px 11px 0; cursor: pointer; list-style: none; font-size: .76rem; font-weight: 650; }
.budget-specs summary::-webkit-details-marker { display: none; }
.budget-specs summary::after { content: "+"; position: absolute; right: 2px; top: 7px; color: var(--wood-dark); font-size: 1.2rem; font-weight: 400; }
.budget-specs details[open] summary::after { content: "−"; }
.budget-specs details p { padding: 0 0 12px; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.budget-note { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 22px; padding: 17px 20px; border-radius: 8px; background: var(--soft); }
.budget-note p { max-width: 780px; color: var(--muted); font-size: .76rem; }
.budget-note b { color: var(--ink); }
.budget-note .btn { flex: none; }
.budget-disclaimer { margin: 12px 2px 0; color: var(--muted); font-size: .68rem; }
@media (max-width: 860px) {
  .budget-cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 14px; }
  .budget-card { display: grid; grid-template-columns: minmax(150px, 42%) 1fr; }
  .budget-gallery-track { min-height: 100%; aspect-ratio: auto; }
  .budget-card-body { padding: 16px 18px; }
  .budget-note { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .budget-intro { margin-bottom: 22px; text-align: left; }
  .budget-intro p { margin-left: 0; }
  .budget-facts { justify-content: flex-start; }
  .budget-card { display: block; }
  .budget-gallery-track { aspect-ratio: .9 / 1; }
  .budget-card-body { padding: 17px 18px 19px; }
  .budget-card.is-featured { box-shadow: none; }
}
@media (max-width: 860px) {
  .budget { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; margin-right: -16px; padding-right: 16px; }
  .budget::-webkit-scrollbar { display: none; }
  .bcard { scroll-snap-align: start; }
}
/* Этапы: срок шага; частые вопросы */
.step-time { display: inline-block; margin: 2px 0 6px; font-size: .75rem; font-weight: 600; color: var(--wood); letter-spacing: .04em; }
.faq { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; font-weight: 400; color: var(--wood); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 18px; color: var(--muted); max-width: 680px; }
.js .faq-item[open] p { animation: rise .35s var(--ease-out); }
.mapbox iframe { display: block; width: 100%; height: 400px; border: 0; }
.pf-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 28px; }
.pf-filter button { font: inherit; font-size: .8125rem; font-weight: 600; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.pf-filter button:hover { border-color: currentColor; }
.pf-filter button.on { background: #161513; border-color: #161513; color: #fff; }
@media (max-width: 860px) { .pgrid { grid-template-columns: repeat(2, 1fr); } .pcard, .pcard.big, .pgrid.g3 .pcard { grid-column: span 1; } .pcard.wide { grid-column: span 2; } .pcard.big figure { aspect-ratio: 4 / 3; } }
@media (max-width: 860px) { .pgrid.home4 { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; } }
@media (max-width: 560px) { .pgrid.home4 .pcard h3 { font-size: .8125rem; } .pgrid.home4 .pcard-cat { font-size: .625rem; } .pgrid.home4 .cnt { display: none; } }
@media (max-width: 560px) { .pgrid:not(.home4) { grid-template-columns: 1fr; gap: 22px; } .pcard.big, .pcard.wide, .pcard, .pgrid.g3 .pcard { grid-column: auto; } }
/* Телефон: карточки портфолио пониже и подписи мельче — меньше листать */
@media (max-width: 560px) {
  .pgrid:not(.home4) .pcard figure { aspect-ratio: 3 / 2; }
  .pgrid:not(.home4) .pcard-body { padding-top: 10px; }
  .pgrid:not(.home4) .pcard-cat { font-size: .625rem; }
  .pgrid:not(.home4) .pcard h3 { margin-top: 4px; font-size: .9375rem; }
  .pgrid:not(.home4) .pcard-specs { margin-top: 4px; font-size: .75rem; }
  .pgrid:not(.home4) .pcard-price { margin-top: 6px; font-size: .875rem; }
  .ps-item:first-child, .pshow.n2 .ps-item { aspect-ratio: 3 / 2; }
}

/* Страница проекта: описание и справка «О проекте» рядом */
.proj { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; margin-bottom: clamp(40px, 5vw, 56px); }
.proj .post-text { margin-bottom: 0; }
.spec { position: sticky; top: 100px; padding: 28px; background: var(--soft); border-radius: var(--radius); }
.spec dl { margin: 0 0 20px; font-size: .875rem; }
.spec dt { color: var(--muted); font-size: .75rem; }
.spec dt:not(:first-child) { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.spec dd { margin: 2px 0 0; font-weight: 500; }
.spec-price { padding: 16px 0; margin-bottom: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-price small { display: block; font-size: .75rem; color: var(--muted); }
.spec-price b { font-size: 1.5rem; }
.spec-price b + small { margin-top: 4px; }
.pcard-price small { font-size: .75rem; font-weight: 400; color: var(--muted); }
.spec .btn { width: 100%; text-align: center; }
@media (max-width: 860px) { .proj { grid-template-columns: 1fr; } .spec { position: static; } }
/* Блок «Мы во ВКонтакте» на странице «Портфолио» */
.vk { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 4vw, 40px); background: var(--soft); border-radius: var(--radius); }
.vk .h2 { margin-bottom: 10px; }
.vk p { color: var(--muted); max-width: 560px; }
.vk .btn { flex-shrink: 0; }
@media (max-width: 700px) { .vk { flex-direction: column; align-items: flex-start; } }
.ig-note { margin-top: 14px; font-size: .75rem; color: var(--muted); }

/* Карта и рейтинг */
.mapbox { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 300px; background: var(--soft); }
.mapbox .map-fallback { display: grid; place-items: center; min-height: 300px; text-align: center; padding: 20px; color: var(--muted); font-size: .875rem; }
.mapbox iframe, .mapbox > div { max-width: 100%; }
.rating { margin-top: 22px; }
.rating iframe { border: 0; display: block; }
.map-open { display: inline-block; margin-top: 12px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
@media (max-width: 860px) { .facts4 { grid-template-columns: repeat(2, 1fr); } .facts4 div:nth-child(3) { border-left: 0; } .facts4 div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .steps-page li { grid-template-columns: 44px 1fr; gap: 4px 12px; } .steps-page i { font-size: 1.35rem; } }

/* Просмотр фото на весь экран */
.pf-lb { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 10, .94); opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility 0s .15s; }
.pf-lb.is-open { opacity: 1; visibility: visible; transition: opacity .25s var(--ease-out); }
.pf-lb-img { max-width: 96vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none;
  transform: scale(.96); transition: opacity .22s var(--ease-out), transform .3s var(--ease-out); }
.pf-lb.is-open .pf-lb-img { transform: none; }
/* смена фото: старое уходит в сторону листания, новое приезжает с другой */
.pf-lb-img.go-next { opacity: 0; transform: translateX(-24px); transition-duration: .12s; }
.pf-lb-img.go-prev { opacity: 0; transform: translateX(24px); transition-duration: .12s; }
.pf-lb-img.from-next { opacity: 0; transform: translateX(24px); transition: none; }
.pf-lb-img.from-prev { opacity: 0; transform: translateX(-24px); transition: none; }
.pf-lb button:active { transform: scale(.94); }
.pf-lb-prev:active, .pf-lb-next:active { transform: translateY(-50%) scale(.94); }
.pf-lb button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease, transform .16s var(--ease-out); }
.pf-lb button:hover, .pf-lb button:focus-visible { background: rgba(255, 255, 255, .3); outline: none; }
.pf-lb-close { top: 16px; right: 16px; }
.pf-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.pf-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.pf-lb-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #ddd; font-size: .8125rem; letter-spacing: .02em; }
body.pf-lock { overflow: hidden; }

@media (max-width: 560px) { .pf-lb button { width: 44px; height: 44px; } .pf-lb-prev { left: 8px; } .pf-lb-next { right: 8px; } .pf-lb-close { top: 10px; right: 10px; } }

.fcontacts { display: grid; gap: 6px; font-size: .875rem; }
.fcontacts a, .fcontacts span { color: rgba(255,255,255,.8); }
.steps3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .steps3 { grid-template-columns: 1fr; } .steps3 .step, .steps3 .step:nth-child(even), .steps3 .step:not(:nth-child(3n+1)) { padding: 22px 0 24px; border-left: 0; } }
@media (max-width: 860px) { .ftr .wrap { grid-template-columns: 1fr; } }

/* Выделение текста в цветах сайта */
::selection { background: var(--wood); color: #fff; }
