@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --bg: #ece5d8;
  --ink: #2a2723;
  --muted: #6e6860;
  --beige: #d8cfc2;
  --beige-2: #cbbfae;
  --graphite: #4a4d4a;
  --accent: #b8926a;
  --accent-2: #d4af86;
  --card: #f6f1e8;
  --dark: #23211e;
  --line: #d9cfbf;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236,229,216,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; }
.logo-mark { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { font-size: .95rem; color: var(--muted); position: relative; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.lang-switch {
  border: 1px solid var(--line); border-radius: 20px;
  padding: 4px 12px; cursor: pointer; background: none;
  font-size: .85rem; color: var(--muted); transition: all .2s;
}
.lang-switch:hover { border-color: var(--accent); color: var(--ink); }
.burger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 90px;
  background: linear-gradient(135deg, #2b2926 0%, #1d1b18 100%);
  color: #fff;
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 800; font-size: 3rem; line-height: 1.12; letter-spacing: .3px; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero p { margin: 18px 0 30px; color: #b9b3aa; max-width: 500px; font-size: 1.08rem; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-badges span {
  border: 1px solid rgba(255,255,255,.18); border-radius: 20px;
  padding: 5px 14px; font-size: .82rem; color: #d8d2c8;
  animation: floatIn .8s both;
}
.hero-badges span:nth-child(2) { animation-delay: .15s; }
.hero-badges span:nth-child(3) { animation-delay: .3s; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(184,146,106,.35); }
.btn.outline { background: none; border: 1.5px solid rgba(255,255,255,.4); margin-left: 12px; }
.btn.outline:hover { border-color: var(--accent-2); color: var(--accent-2); box-shadow: none; }
.btn.dark-onlight { background: var(--ink); }
.btn.dark-onlight:hover { background: var(--accent); }

/* ===== Animated cabinet scene ===== */
.scene { position: relative; height: 360px; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
.scene * { position: absolute; }
.wall-lamp {
  top: 0; left: 50%; transform: translateX(-50%);
  width: 240px; height: 16px; border-radius: 8px;
  background: #35322e;
}
.wall-lamp::after {
  content: ""; position: absolute; top: 14px; left: 10%;
  width: 80%; height: 90px;
  background: radial-gradient(ellipse at top, rgba(255,220,160,.28), transparent 70%);
}
.counter-top {
  top: 190px; left: 0; width: 100%; height: 16px;
  background: linear-gradient(180deg, #3c3f42, #26282b);
  border-radius: 4px;
}
.cab {
  top: 206px; height: 130px; width: 30%;
  background: linear-gradient(160deg, #d8cfc2, #c4b8a6);
  border-radius: 0 0 6px 6px;
  perspective: 500px;
}
.cab.c1 { left: 2%; }
.cab.c2 { left: 35%; }
.cab.c3 { left: 68%; }
.door {
  inset: 6px; border-radius: 4px;
  background: linear-gradient(160deg, #e6ddd0, #d2c7b6);
  border: 1px solid rgba(0,0,0,.08);
  transform-origin: left center;
  animation: doorSwing 7s ease-in-out infinite;
}
.cab.c3 .door { animation-delay: 3.5s; }
.door::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 4px; height: 34px; margin-top: -17px;
  background: #2b2926; border-radius: 2px;
}
.drawer-stack { inset: 6px; display: flex; flex-direction: column; gap: 6px; position: absolute; }
.drawer {
  position: relative; flex: 1; border-radius: 4px;
  background: linear-gradient(160deg, #e6ddd0, #d2c7b6);
  border: 1px solid rgba(0,0,0,.08);
  animation: drawerSlide 7s ease-in-out infinite;
}
.drawer:nth-child(2) { animation-delay: .4s; }
.drawer:nth-child(3) { animation-delay: .8s; }
.drawer::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 40px; height: 4px; margin: -2px 0 0 -20px;
  background: #2b2926; border-radius: 2px;
}
.upper {
  top: 40px; height: 110px; width: 30%;
  background: linear-gradient(160deg, #8b8e88, #6f726d);
  border-radius: 6px;
}
.upper.u1 { left: 2%; }
.upper.u2 { left: 35%; }
.upper.u3 { left: 68%; }
.upper .door {
  background: linear-gradient(160deg, #9a9d96, #7c7f79);
  animation-delay: 1.8s;
}
.upper.u2 .door { animation: none; }
.pot {
  top: 160px; left: 41%; width: 60px; height: 30px;
  background: #35322e; border-radius: 4px 4px 8px 8px; z-index: 2;
}
.pot::before {
  content: ""; position: absolute; top: -8px; left: 6px; right: 6px; height: 8px;
  background: #4a4d4a; border-radius: 4px 4px 0 0;
}
.steam {
  top: 118px; left: 46%; width: 8px; height: 36px; z-index: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.5), transparent);
  animation: steamUp 2.6s ease-in-out infinite;
}
.steam.s2 { left: 50%; animation-delay: .9s; }
@keyframes doorSwing {
  0%, 55%, 100% { transform: rotateY(0); }
  65%, 85% { transform: rotateY(-58deg); }
}
@keyframes drawerSlide {
  0%, 20%, 100% { transform: translateX(0); }
  35%, 55% { transform: translateX(14px); }
}
@keyframes steamUp {
  0% { transform: translateY(0) scaleX(1); opacity: 0; }
  30% { opacity: .8; }
  100% { transform: translateY(-30px) scaleX(1.6); opacity: 0; }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Sections ===== */
section { padding: 72px 0; }
h2 { font-family: var(--serif); font-weight: 700; font-size: 2.2rem; margin-bottom: 34px; letter-spacing: .2px; }
h2 span { color: var(--accent); }
.sub { color: var(--muted); margin: -24px 0 34px; max-width: 560px; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { font-size: 2.2rem; color: var(--accent); display: block; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ===== Cards ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border-radius: 14px; padding: 28px;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(74,61,44,.16); }
.card .icon { font-size: 1.9rem; margin-bottom: 12px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .ph {
  aspect-ratio: 3/4; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, var(--beige), var(--graphite));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem; text-align: center; padding: 12px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery .ph:hover img { transform: scale(1.06); }

/* ===== Steps ===== */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding-top: 54px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .9rem; }

/* ===== Calculator ===== */
.calc {
  background: var(--dark); color: #fff; border-radius: 20px;
  padding: 46px 40px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px;
}
.calc h2 { color: #fff; }
.calc label { display: block; font-size: .92rem; color: #c9c4bc; margin: 18px 0 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  border: 1px solid rgba(255,255,255,.2); background: none; color: #d8d2c8;
  border-radius: 10px; padding: 9px 16px; cursor: pointer; font-size: .9rem;
  transition: all .2s;
}
.seg button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg button:hover { border-color: var(--accent-2); }
input[type=range] {
  width: 100%; accent-color: var(--accent); cursor: pointer; height: 32px;
}
.range-val { font-weight: 700; color: var(--accent-2); }
.check { display: flex; align-items: center; gap: 10px; margin-top: 16px; cursor: pointer; color: #d8d2c8; font-size: .95rem; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.calc-result {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 30px; text-align: center;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.calc-result .price { font-size: 2rem; font-weight: 800; color: var(--accent-2); transition: opacity .2s; }
.calc-result .note { font-size: .85rem; color: #9b958c; }
.calc-result .btn { margin-top: 10px; }

/* ===== Forms ===== */
.inp {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07);
  color: inherit; font: inherit; outline: none;
}
.inp:focus { border-color: var(--accent); }
.calc-result .inp { text-align: center; }
.lead-form {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.lead-form h3 { margin-bottom: 4px; }
.lead-form .inp { background: var(--bg); border-color: var(--line); color: var(--ink); }
.lead-form .note, #calcStatus { font-size: .9rem; color: var(--muted); min-height: 1em; }
.calc-result #calcStatus { color: #c9c4bc; }

/* ===== CTA band ===== */
.cta-band { background: var(--dark); color: #fff; text-align: center; border-radius: 20px; padding: 56px 24px; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: #c9c4bc; margin-bottom: 26px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list li { list-style: none; margin-bottom: 16px; color: var(--muted); }
.contact-list b { color: var(--ink); display: block; }
.map-ph {
  border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-height: 280px;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}

/* ===== Catalog ===== */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(74,61,44,.16); }
.cat-card .ph {
  aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(160deg, var(--beige), var(--graphite));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.cat-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover .ph img { transform: scale(1.06); }
.cat-card { cursor: pointer; }
.cat-card .body { padding: 22px; }
.cat-card h3 { margin-bottom: 6px; }
.cat-card p { color: var(--muted); font-size: .95rem; }
.cat-more { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: .92rem; transition: transform .2s; }
.cat-card:hover .cat-more { transform: translateX(4px); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,18,15,.88); backdrop-filter: blur(4px);
  display: none; overflow-y: auto; padding: 70px 20px 40px;
}
.lightbox.open { display: block; }
.lb-title { font-family: var(--serif); color: #fff; text-align: center; font-size: 1.8rem; margin-bottom: 24px; }
.lb-close {
  position: fixed; top: 18px; right: 24px; z-index: 101;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; line-height: 1;
  transition: background .2s;
}
.lb-close:hover { background: var(--accent); }
/* масонри: колонки подстраиваются, фото заполняют пустоты без дыр */
.lb-grid {
  max-width: 1100px; margin: 0 auto;
  columns: 320px; column-gap: 14px;
}
.lb-grid img {
  width: 100%; display: block; margin: 0 0 14px;
  border-radius: 12px; background: #2a2723;
  break-inside: avoid; -webkit-column-break-inside: avoid;
  animation: floatIn .5s both;
  transition: transform .25s, box-shadow .25s;
}
.lb-grid img:hover { transform: scale(1.015); box-shadow: 0 14px 32px rgba(0,0,0,.5); }

/* ===== Page hero / footer ===== */
.page-hero { padding: 56px 0 8px; }
.page-hero h1 { font-family: var(--serif); font-weight: 700; font-size: 2.6rem; }
.page-hero p { color: var(--muted); max-width: 560px; }
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .scene { height: 300px; max-width: 460px; }
  .grid, .gallery, .steps, .cat-grid, .contact-grid, .calc { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2rem; }
  .calc { padding: 32px 22px; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: var(--bg); padding: 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .burger { display: block; }
  .btn.outline { margin-left: 0; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .door, .drawer, .steam, .hero-badges span { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
