:root {
  --ink: #10100f;
  --ink-soft: #171715;
  --panel: #1d1d1a;
  --line: rgba(238, 232, 220, 0.16);
  --paper: #eee9df;
  --muted: #a9a398;
  --metal: #b8a17e;
  --metal-light: #d8c6a8;
  --max-width: 1320px;
  --side: clamp(20px, 4vw, 64px);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.container { width: calc(100% - (2 * var(--side))); max-width: var(--max-width); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -4rem; background: var(--paper); color: var(--ink); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 86px;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, height .35s ease;
}
.site-header.scrolled { height: 70px; background: rgba(16,16,15,.88); border-color: var(--line); backdrop-filter: blur(18px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 13px; letter-spacing: .16em; font-size: 13px; font-weight: 500; }
.brand-name b { color: var(--metal-light); font-weight: 600; }
.brand-mark { width: 30px; height: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; transform: rotate(45deg); }
.brand-mark i { border: 1px solid var(--metal-light); }
.brand-mark i:first-child { background: var(--metal-light); }
.main-nav { display: flex; align-items: center; gap: clamp(24px, 2.8vw, 44px); font-size: 14px; }
.main-nav > a:not(.nav-catalog) { color: #d8d3c9; transition: color .2s ease; }
.main-nav > a:not(.nav-catalog):hover { color: #fff; }
.nav-catalog { height: 44px; padding: 0 20px; border: 1px solid rgba(216,198,168,.65); display: inline-flex; align-items: center; gap: 18px; color: var(--metal-light); transition: background .2s, color .2s; }
.nav-catalog:hover { background: var(--metal-light); color: var(--ink); }
.nav-catalog svg { width: 16px; height: 16px; }
.menu-toggle { display: none; border: 0; background: none; width: 44px; height: 44px; padding: 12px 8px; }
.menu-toggle span { display: block; height: 1px; background: var(--paper); margin: 6px 0; transition: transform .25s ease; }

.hero { position: relative; height: min(920px, 100svh); min-height: 720px; overflow: hidden; background: #1d1a17; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; animation: hero-in 1.5s cubic-bezier(.2,.7,.2,1) both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,9,.92) 0%, rgba(10,10,9,.7) 39%, rgba(10,10,9,.14) 72%, rgba(10,10,9,.2) 100%), linear-gradient(0deg, rgba(10,10,9,.54) 0%, transparent 42%); }
.hero-content { position: relative; z-index: 2; height: 100%; padding-top: 160px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-kicker, .eyebrow { margin: 0 0 22px; color: var(--metal-light); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
h1, h2 { margin: 0; font-weight: 400; letter-spacing: -.045em; line-height: .96; }
h1 { max-width: 900px; font-size: clamp(52px, 6.4vw, 98px); }
h1 em, h2 em { color: var(--metal-light); font-family: var(--serif); font-weight: 400; }
.hero-copy { max-width: 570px; margin: 30px 0 0; color: #cdc8bf; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; margin-top: 42px; }
.button { min-height: 56px; padding: 0 26px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 24px; font-size: 14px; font-weight: 600; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 20px; height: 20px; }
.button-primary { background: var(--metal-light); color: var(--ink); }
.button-primary:hover { background: #eee0c8; }
.button-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.button-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero-footer { position: absolute; z-index: 2; bottom: 34px; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: auto 120px auto; align-items: center; gap: 16px; color: rgba(255,255,255,.6); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.hero-line { height: 1px; background: rgba(255,255,255,.45); }

.section { padding: clamp(96px, 11vw, 160px) 0; }
.section:not(.hero) { content-visibility: auto; contain-intrinsic-size: 900px; }
.section-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; margin-bottom: 68px; }
.section-head h2, .cooperation h2, .catalog-content h2 { font-size: clamp(48px, 6vw, 86px); }
.section-intro { max-width: 510px; margin: 0 0 3px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.section-intro p { margin: 0 0 14px; }
.works { background: var(--ink); }
.works-grid { display: grid; grid-template-columns: 1.2fr .8fr; grid-auto-rows: 250px; gap: 16px; }
.work-card { position: relative; overflow: hidden; border: 0; padding: 0; background: #24231f; text-align: left; cursor: zoom-in; }
.work-card-wide { grid-row: span 2; }
.work-card-tall { grid-row: span 2; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.work-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,8,7,.88), transparent 52%); opacity: .76; transition: opacity .35s; }
.work-card:hover img { transform: scale(1.035); filter: saturate(.85); }
.work-card:hover::after { opacity: 1; }
.work-meta { position: absolute; z-index: 2; inset: auto 26px 23px; display: flex; justify-content: space-between; align-items: end; gap: 18px; pointer-events: none; }
.work-meta > span { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); }
.work-meta small { max-width: 180px; color: #b7b0a4; font-size: 10px; line-height: 1.45; letter-spacing: .1em; text-align: right; text-transform: uppercase; }

.furniture { background: #151513; border-top: 1px solid var(--line); }
.furniture h2 em, .faq h2 em { color: var(--metal-light); font-family: var(--serif); font-weight: 400; }
.furniture-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.furniture-card { min-height: 360px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.furniture-number { color: var(--metal); font-family: var(--serif); font-size: 13px; }
.furniture-card h3 { margin: 72px 0 18px; font-family: var(--serif); font-size: clamp(23px, 2vw, 30px); font-weight: 400; line-height: 1.1; }
.furniture-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.furniture-card a { margin-top: auto; padding-top: 30px; display: flex; justify-content: space-between; align-items: center; color: #d8d1c5; font-size: 13px; }
.furniture-card a span { color: var(--metal-light); font-size: 18px; transition: transform .2s; }
.furniture-card a:hover span { transform: translateX(4px); }
.local-copy { margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.local-copy h3 { margin: 0; max-width: 480px; font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); font-weight: 400; line-height: 1.15; }
.local-copy p { margin: 0; max-width: 600px; color: var(--muted); font-size: 15px; line-height: 1.8; }

.cooperation { background: #e8e1d5; color: #181815; }
.cooperation-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(60px, 8vw, 130px); align-items: start; }
.cooperation .eyebrow { color: #78684f; }
.cooperation h2 em { color: #756047; }
.cooperation-copy > p:not(.eyebrow) { max-width: 540px; margin: 38px 0 0; color: #5f5a53; font-size: 17px; line-height: 1.8; }
.text-link { margin-top: 40px; display: inline-flex; align-items: center; gap: 28px; padding-bottom: 8px; border-bottom: 1px solid #8e7c61; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.text-link span { font-size: 18px; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.benefits { border-top: 1px solid rgba(24,24,21,.2); }
.benefit-card { display: grid; grid-template-columns: 54px 1fr 1.25fr; gap: 18px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid rgba(24,24,21,.2); }
.benefit-card > span { color: #8a7a63; font-family: var(--serif); font-size: 14px; }
.benefit-card h3 { margin: 0; font-size: 16px; font-weight: 600; }
.benefit-card p { margin: 0; color: #69635a; font-size: 14px; line-height: 1.65; }

.catalog-band { position: relative; min-height: 650px; display: flex; align-items: stretch; overflow: hidden; }
.catalog-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; filter: saturate(.68); }
.catalog-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,12,11,.94), rgba(12,12,11,.75) 45%, rgba(12,12,11,.18)); }
.catalog-content { position: relative; z-index: 1; padding-block: 100px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.catalog-content { width: calc(100% - (2 * var(--side))); max-width: var(--max-width); }
.catalog-content h2 { max-width: 750px; }
.catalog-content p:not(.eyebrow) { max-width: 500px; margin: 30px 0 38px; color: #c6c0b6; font-size: 17px; line-height: 1.7; }
.button-light { background: #f3eee4; color: #171715; }
.button-light:hover { background: #fff; }

.faq { background: #e8e1d5; color: #181815; }
.faq .eyebrow { color: #78684f; }
.faq h2 { font-size: clamp(48px, 6vw, 86px); }
.faq h2 em { color: #756047; }
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(60px, 9vw, 140px); }
.faq-list { border-top: 1px solid rgba(24,24,21,.2); }
.faq-item { border-bottom: 1px solid rgba(24,24,21,.2); }
.faq-item summary { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { color: #79684f; font-family: var(--serif); font-size: 28px; font-weight: 400; transition: transform .25s; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { margin: -2px 52px 28px 0; color: #655f57; font-size: 15px; line-height: 1.75; }

.contacts { background: var(--ink-soft); }
.contacts-head { margin-bottom: 52px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.contact-card { min-height: 340px; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; transition: background .3s, transform .3s; }
.contact-card:hover { background: #22221f; transform: translateY(-4px); }
.contact-icon { width: 52px; height: 52px; margin-bottom: 55px; display: grid; place-items: center; }
.contact-icon svg { width: 100%; height: 100%; }
.contact-icon img { width: 100%; height: 100%; object-fit: contain; }
.phone-icon { border: 1px solid #615b52; border-radius: 50%; }
.phone-icon svg { width: 23px; height: 23px; }
.phone-icon svg, .telegram-icon svg { fill: none; stroke: currentColor; }
.telegram-icon svg { fill: #31a8e0; stroke: none; }
.max-icon svg { stroke: none; }
.contact-type { margin-bottom: 10px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.contact-card strong { font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); font-weight: 400; }
.contact-action { margin-top: auto; padding-top: 34px; display: flex; justify-content: space-between; width: 100%; color: #d1cabf; font-size: 13px; }
.contact-action b { color: var(--metal-light); font-size: 18px; font-weight: 400; }

.site-footer { padding: 70px 0 24px; background: #0b0b0a; border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.5fr .7fr .8fr 1fr; gap: 50px; align-items: start; }
.footer-brand { margin-bottom: 24px; }
.footer-main > div:first-child > p { margin: 0; color: #77736c; font-size: 13px; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 11px; font-size: 13px; }
.footer-links span { margin-bottom: 8px; color: #716c64; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.footer-links a { color: #bbb5ab; }
.footer-links a:hover { color: #fff; }
.footer-catalog { min-height: 76px; padding: 0 22px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.footer-catalog:hover { border-color: var(--metal); }
.footer-catalog span { color: var(--metal-light); font-size: 20px; }
.footer-bottom { margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #5e5a54; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.lightbox { width: min(94vw, 1380px); max-width: none; height: min(92vh, 1000px); padding: 0; border: 0; background: #0b0b0a; color: var(--paper); }
.lightbox::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(5px); }
.lightbox figure { width: 100%; height: 100%; margin: 0; display: grid; grid-template-rows: 1fr auto; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lightbox figcaption { padding: 15px 20px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 18px; }
.lightbox-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(10,10,9,.6); font-size: 26px; line-height: 1; cursor: pointer; }

.reveal { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal { opacity: 1; transform: none; }
@keyframes hero-in { from { transform: scale(1.06); opacity: .4; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 1020px) {
  .section-head { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cooperation-grid { grid-template-columns: 1fr; }
  .furniture-grid { grid-template-columns: repeat(2, 1fr); }
  .cooperation-copy { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .cooperation-copy .eyebrow, .cooperation-copy h2 { grid-column: 1; }
  .cooperation-copy > p:not(.eyebrow), .cooperation-copy .text-link { grid-column: 2; }
  .cooperation-copy > p:not(.eyebrow) { grid-row: 2 / span 1; margin-top: 0; }
  .cooperation-copy .text-link { justify-self: start; }
  .footer-main { grid-template-columns: 1.2fr .7fr .7fr; }
  .footer-catalog { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-header, .site-header.scrolled { height: 68px; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 0; padding: 110px 20px 32px; background: #11110f; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .main-nav.open { transform: none; }
  .main-nav > a { padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 28px; }
  .nav-catalog { height: auto; margin-top: 24px; padding: 18px 20px !important; justify-content: space-between; font-family: var(--sans) !important; font-size: 14px !important; }
}

@media (max-width: 760px) {
  :root { --side: 20px; }
  .site-header, .site-header.scrolled { height: 68px; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 0; padding: 110px 20px 32px; background: #11110f; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .main-nav.open { transform: none; }
  .main-nav > a { padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 28px; }
  .nav-catalog { height: auto; margin-top: 24px; padding: 18px 20px !important; justify-content: space-between; font-family: var(--sans) !important; font-size: 14px !important; }
  .hero { min-height: 720px; height: 100svh; }
  .hero-image { object-position: 60% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(10,10,9,.94) 0%, rgba(10,10,9,.68) 58%, rgba(10,10,9,.3) 100%); }
  .hero-content { padding-top: 110px; justify-content: flex-end; padding-bottom: 98px; }
  h1 { font-size: clamp(44px, 13.5vw, 67px); }
  h1 em { display: block; font-size: .82em; }
  .hero-kicker { max-width: 310px; font-size: 10px; line-height: 1.6; }
  .hero-copy { margin-top: 24px; font-size: 15px; }
  .hero-actions { width: 100%; flex-direction: column; margin-top: 30px; }
  .button { width: 100%; }
  .hero-footer { display: none; }
  .section { padding: 90px 0; }
  .section-head { grid-template-columns: 1fr; gap: 22px; margin-bottom: 38px; }
  .section-head h2, .cooperation h2, .catalog-content h2 { font-size: clamp(44px, 13vw, 62px); }
  .section-intro { font-size: 15px; }
  .works-grid { display: flex; gap: 12px; margin-right: calc(var(--side) * -1); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .works-grid::-webkit-scrollbar { display: none; }
  .work-card, .work-card-wide, .work-card-tall { flex: 0 0 84vw; height: 480px; scroll-snap-align: start; }
  .work-meta { inset: auto 18px 18px; display: block; }
  .work-meta small { display: block; margin-top: 6px; text-align: left; }
  .furniture-grid { grid-template-columns: 1fr; }
  .furniture-card { min-height: 300px; }
  .furniture-card h3 { margin-top: 48px; }
  .local-copy { grid-template-columns: 1fr; gap: 22px; margin-top: 48px; }
  .cooperation-copy { display: block; }
  .cooperation-copy > p:not(.eyebrow) { margin-top: 30px; font-size: 15px; }
  .benefit-card { grid-template-columns: 36px 1fr; padding: 24px 0; }
  .benefit-card p { grid-column: 2; }
  .catalog-band { min-height: 680px; }
  .catalog-band > img { object-position: 62% center; }
  .catalog-overlay { background: linear-gradient(0deg, rgba(12,12,11,.95), rgba(12,12,11,.58) 70%, rgba(12,12,11,.35)); }
  .catalog-content { justify-content: flex-end; padding-bottom: 70px; }
  .catalog-content p:not(.eyebrow) { font-size: 15px; }
  .faq-grid { grid-template-columns: 1fr; gap: 42px; }
  .faq h2 { font-size: clamp(44px, 13vw, 62px); }
  .faq-item summary { min-height: 78px; font-size: 15px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 260px; padding: 26px; }
  .contact-icon { margin-bottom: 32px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 42px 26px; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .footer-catalog { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 48px; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Mobile readability */
.cooperation .eyebrow,.faq .eyebrow,.benefit-card>span{color:#66563e}
.site-footer .footer-main>div:first-child>p,.site-footer .footer-links span,.site-footer .footer-bottom{color:#a9a398}

picture[data-performance]{display:contents}
