/* Ироко мебель — новый дизайн. Палитра: чёрный, белый, тёплый «ироко» (цвет дерева). */
:root {
  --ink: #161513;
  --paper: #ffffff;
  --soft: #f4f2ee;
  --line: #e2dfd8;
  --muted: #6f6c66;
  --wood: #9a6a3a;          /* акцент: цвет дерева ироко, только для мелких деталей */
  --wood-dark: #7d5329;
  --radius: 6px;
  --hdr: 76px;
  --wrap: 1240px;
  --font: Montserrat, "Segoe UI", Arial, sans-serif;
}
*, *::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: 16px; }
img { display: block; max-width: 100%; height: auto; }
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: 15px 30px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; border-radius: 999px; font: 600 .8125rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.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: 12px 22px; font-size: .75rem; }

/* Шапка */
.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: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.hdr .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; width: 118px; flex: none; }
.logo img { width: 100%; filter: invert(1); transition: filter .3s; }
.hdr.is-solid .logo img { filter: none; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; position: relative; padding: 6px 0; }
.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: min(92vh, 860px); min-height: min(92svh, 860px); 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) + 40px) 64px; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; opacity: .9; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 4.6rem); line-height: 1.05; font-weight: 700; text-transform: uppercase; max-width: 17ch; letter-spacing: -.01em; }
.hero p.lead { max-width: 620px; margin-top: 22px; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.65; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: .8125rem; color: rgba(255,255,255,.75); }

/* Секции */
.section { padding-block: clamp(64px, 9vw, 120px); }
.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(28px, 4vw, 52px); }
.label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--wood); margin-bottom: 14px; }
.section.dark .label { color: #d6a876; }
.h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); 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: .8125rem; font-weight: 700; letter-spacing: .08em; 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(26px, 4vw, 48px) clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.stat b small { font-size: .45em; font-weight: 600; margin-left: .15em; color: var(--wood); letter-spacing: 0; }
.stat span { display: block; margin-top: 12px; font-size: .875rem; 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 / 5; color: #fff; text-decoration: none; background: #222; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.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: 24px; right: 24px; bottom: 24px; }
.cat h3 { font-size: 1.3rem; font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.cat p { min-height: 2.9em; margin-top: 8px; font-size: .875rem; color: rgba(255,255,255,.88); }
.cats-note { margin-top: 22px; color: var(--muted); font-size: .9375rem; }

/* Проекты */
.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: 14px; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.card span { display: block; margin-top: 2px; font-size: .8125rem; 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: 22px; }
.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: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wood); font-weight: 700; }
.timeline b { display: block; margin-top: 6px; font-size: 1.4rem; 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: 30px 28px 34px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.step:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.18); }
.step i { display: block; font-style: normal; font-size: 2.2rem; line-height: 1; font-weight: 300; color: #d6a876; letter-spacing: -.02em; }
.step h3 { margin-top: 16px; font-size: 1.0625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.step p { margin-top: 8px; font-size: .9375rem; 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: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.clist a, .clist span { font-size: 1.125rem; 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; gap: 24px 48px; align-items: start; }
.ftr .logo img { filter: invert(1); }
.ftr nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: #fff; }
.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(22px); transition: opacity .8s ease, transform .8s ease; }
.js .rv.in { opacity: 1; 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: 0; right: 0; bottom: 0; width: min(320px, 86vw); flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 84px 28px 28px; background: var(--ink); color: #fff; transform: translateX(100%); visibility: hidden;
    transition: transform .35s ease, visibility 0s .35s; z-index: 120; overflow-y: auto; }
  .nav.open { transform: none; visibility: visible; transition: transform .35s ease; }
  .nav a { width: 100%; padding: 14px 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 { color: #fff; }
  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; }
  .cat { aspect-ratio: 16 / 11; }
  .split, .contacts { grid-template-columns: 1fr; }
  .ftr .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hero .wrap { padding-bottom: 40px; }
  .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; }
  .cat img, .card img { transition: none; }
}
