/* ==========================================================================
   СОФАМИР — мебели по поръчка · стилове
   ========================================================================== */
:root {
  --ink: #12100e;
  --ink-2: #1c1916;
  --ink-3: #2a2622;
  --cream: #f6f1e9;
  --sand: #ebe2d4;
  --paper: #fffdf9;
  --muted: #6f665c;
  --line: rgba(18, 16, 14, .12);
  --line-light: rgba(255, 255, 255, .14);
  --red: #d7262d;
  --red-dark: #b41c22;
  --green: #23a14b;
  --forest: #22332a;
  --gold: #c2a172;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --gut: clamp(20px, 4vw, 56px);
  --hh: 80px;
  --r: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
em { font-style: italic; color: var(--gold); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--hh) + 24px); }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: #fff; }
.section--forest { background: var(--forest); color: #fff; }

.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .section--forest .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.65; color: var(--muted); }
.section--dark .lead, .section--forest .lead { color: rgba(255, 255, 255, .72); }
.head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .92rem; letter-spacing: .02em; line-height: 1.2; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic--arrow { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sand); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--line { border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.link-arrow:hover .ic { transform: translateX(4px); }
.link-arrow .ic { transition: transform .3s var(--ease); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--hh);
  background: #000; color: #fff; transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.header-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand img { height: 70px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav-drop > button {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: .84rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .8); transition: color .2s;
}
.nav > a::after, .nav-drop > button::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav > a:hover, .nav-drop > button:hover, .nav .is-current { color: #fff; }
.nav > a:hover::after, .nav .is-current::after, .nav-drop:hover > button::after { transform: scaleX(1); }
.nav-drop { position: relative; }
.nav-drop .ic { width: .9em; height: .9em; transition: transform .3s; }
.nav-sub {
  position: absolute; top: 100%; left: 0; min-width: 210px; padding: 10px;
  background: var(--ink-2); border: 1px solid var(--line-light); border-radius: 16px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease);
}
.nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub, .nav-drop.is-open .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-drop:hover .ic, .nav-drop.is-open .ic { transform: rotate(180deg); }
.nav-sub a { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.nav-sub a span { font-size: .75rem; color: var(--gold); }
.nav-sub a:hover { background: rgba(255, 255, 255, .08); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.header-phone:hover { color: var(--gold); }
.header-cta .btn { padding: 12px 22px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-light); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; transition: .3s var(--ease); }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 26px; }
.nav-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* Hero slider ------------------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 85% 20%, rgba(194, 161, 114, .16), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(215, 38, 45, .12), transparent 70%);
}
.hero-slides { display: grid; position: relative; }
.hero-slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center;
  gap: clamp(28px, 5vw, 80px); padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 40px);
  opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s, visibility 0s; z-index: 1; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy > * { opacity: 0; transform: translateY(28px); }
.hero-slide.is-active .hero-copy > * { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-slide.is-active .hero-copy > :nth-child(2) { transition-delay: .1s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { transition-delay: .2s; }
.hero-slide.is-active .hero-copy > :nth-child(4) { transition-delay: .3s; }
.hero-copy h1, .hero-copy h2 { font-size: clamp(2.3rem, 4.9vw, 4.4rem); }
.hero-copy p { max-width: 520px; color: rgba(255, 255, 255, .74); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; }
.hero-frame {
  position: relative; aspect-ratio: 5 / 4; max-height: min(70vh, 680px); width: 100%;
  border-radius: 28px; overflow: hidden; background: var(--ink-3);
  clip-path: inset(8% 8% 8% 8% round 28px); transition: clip-path 1.1s var(--ease);
}
.hero-slide.is-active .hero-frame { clip-path: inset(0 round 28px); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.hero-slide.is-active .hero-frame img { transform: scale(1); transition: transform 7s linear; }
.hero-chip {
  position: absolute; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; background: rgba(18, 16, 14, .62); backdrop-filter: blur(10px);
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
}
.hero-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(35, 161, 75, .28); }
.hero-note {
  position: absolute; right: -14px; bottom: 28px; max-width: 230px; padding: 16px 18px; border-radius: 18px;
  background: var(--cream); color: var(--ink); font-size: .86rem; line-height: 1.45; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(20px);
}
.hero-note strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 2px; }
.hero-slide.is-active .hero-note { opacity: 1; transform: none; transition: .8s var(--ease) .55s; }
.hero-nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 22px; padding-bottom: clamp(28px, 4vw, 48px); }
.hero-tabs { display: flex; gap: 18px; flex: 1; }
.hero-tab { flex: 1; max-width: 240px; text-align: left; display: grid; gap: 10px; color: rgba(255, 255, 255, .5); transition: color .3s; }
.hero-tab.is-active, .hero-tab:hover { color: #fff; }
.hero-tab b { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.hero-tab b span { color: var(--gold); margin-right: 8px; }
.hero-bar { height: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; border-radius: 2px; }
.hero-bar i { display: block; height: 100%; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.hero-tab.is-active .hero-bar i { animation: fill var(--dur, 6.5s) linear forwards; }
.hero.is-paused .hero-tab.is-active .hero-bar i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.arrows { display: flex; gap: 10px; }
.arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center;
  opacity: .75; transition: .25s;
}
.arrow:hover { opacity: 1; background: var(--red); border-color: var(--red); color: #fff; }
.arrow[disabled] { opacity: .25; pointer-events: none; }
.arrow .ic { width: 20px; height: 20px; }

/* Marquee ----------------------------------------------------------------- */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--serif); font-size: 1.2rem; font-style: italic; white-space: nowrap; }
.marquee span::after { content: "✦"; font-style: normal; font-size: .8rem; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Exploded view ----------------------------------------------------------- */
.xv-sec { position: relative; overflow: hidden; }
.xv-sec::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 60% at 22% 45%, rgba(194, 161, 114, .16), transparent 70%); }
.xv-sec .wrap { position: relative; }
.xv-stage { display: grid; gap: 18px; justify-items: center; }
.xv { width: 100%; max-width: 620px; height: auto; overflow: visible; }
.xv .part { transform: translate(calc(var(--t, 0) * var(--dx) * 1px), calc(var(--t, 0) * var(--dy) * 1px)); transition: transform .9s var(--ease), opacity .3s; cursor: pointer; }
.xv.is-drag .part { transition: opacity .3s; }
.xv[data-hl] .part { opacity: .22; }
.xv[data-hl="1"] .part[data-k="1"], .xv[data-hl="2"] .part[data-k="2"], .xv[data-hl="3"] .part[data-k="3"], .xv[data-hl="4"] .part[data-k="4"], .xv[data-hl="5"] .part[data-k="5"] { opacity: 1; }
.xv-list li { padding-block: 13px; }
.xv polygon { stroke: rgba(0, 0, 0, .28); stroke-width: .6; stroke-linejoin: round; }
.xv .badge circle { fill: var(--red); stroke: #fff; stroke-width: 1.5; }
.xv .badge text { fill: #fff; font: 700 11px var(--sans); text-anchor: middle; dominant-baseline: central; }
.xv--photo .badge text { font-size: 26px; }
.xv--photo .badge circle { stroke-width: 3.5; }
.xv--photo .part { filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .35)); }
@media (min-width: 941px) { .split--rev .xv-stage { order: 2; } }
.xv-range { display: flex; align-items: center; gap: 14px; width: min(420px, 100%); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.xv-range input { flex: 1; accent-color: var(--red); cursor: pointer; }
.xv-list { display: grid; margin-top: 28px; }
.xv-list li { display: flex; gap: 20px; padding: 18px 16px; margin-inline: -16px; border-top: 1px solid var(--line-light); border-radius: 14px; cursor: pointer; transition: background .25s; }
.xv-list li > b { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.2; color: var(--gold); }
.xv-list li h3 { font-size: 1.2rem; margin-bottom: 4px; }
.xv-list li p { color: rgba(255, 255, 255, .65); font-size: .95rem; }
.xv-list li:hover, .xv-list li.is-on, .xv-list li:focus-visible { background: rgba(255, 255, 255, .07); }
.xv-list li.is-on > b { color: var(--red); }

/* Intro + stats ----------------------------------------------------------- */
.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro h2 strong { color: var(--red); font-weight: 600; }
.intro-text { display: grid; gap: 22px; justify-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.stat { padding: 30px 24px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; font-weight: 600; }
.stat b sup { font-size: .45em; color: var(--red); margin-left: 2px; }
.stat > span { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* Category cards ---------------------------------------------------------- */
.cats { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }
.cat { position: relative; display: block; border-radius: var(--r); overflow: hidden; min-height: clamp(340px, 44vw, 580px); color: #fff; isolation: isolate; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 16, 14, 0) 35%, rgba(18, 16, 14, .82)); }
.cat:hover img { transform: scale(1.06); }
.cat-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 3vw, 40px); display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.cat-body small { display: block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.cat-body h3 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.cat-go { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; flex: none; transition: .35s var(--ease); }
.cat:hover .cat-go { background: var(--red); color: #fff; transform: rotate(-45deg); }

/* Rail (horizontal carousel) --------------------------------------------- */
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gut); scroll-padding-inline: var(--gut); cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging a { pointer-events: none; }
.rail-item { position: relative; flex: none; width: clamp(240px, 27vw, 380px); aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; scroll-snap-align: start; background: var(--sand); }
.rail-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); -webkit-user-drag: none; user-select: none; }
.rail-item:hover img { transform: scale(1.05); }
.rail-item figcaption, .rail-cap { position: absolute; left: 14px; bottom: 14px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 253, 249, .92); color: var(--ink); font-size: .8rem; font-weight: 700; }

/* Steps ------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 32px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; transition: transform .4s var(--ease), box-shadow .4s; }
.section--paper .step { background: var(--cream); }
.step:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(18, 16, 14, .1); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--red); font-style: italic; }
.step p { color: var(--muted); font-size: .97rem; }

/* Why (split with checklist) --------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r); }
.split-media .badge {
  position: absolute; left: -18px; bottom: 32px; padding: 20px 24px; border-radius: 18px; background: var(--red); color: #fff;
  font-size: .85rem; line-height: 1.35; box-shadow: 0 24px 50px rgba(0, 0, 0, .3);
}
.split-media .badge b { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
.checks { display: grid; gap: 0; margin-top: 28px; }
.checks li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); font-weight: 600; }
.section--forest .checks li, .section--dark .checks li { border-color: var(--line-light); }
.checks li::before {
  content: ""; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* CTA band ---------------------------------------------------------------- */
.cta { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 100% 0%, rgba(215, 38, 45, .28), transparent 70%), radial-gradient(40% 80% at 0% 100%, rgba(35, 161, 75, .18), transparent 70%); }
.cta-in { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.cta-in h2 { margin-block: 16px 18px; }
.cta-phones { display: grid; gap: 14px; }
.cta-phone { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 18px; border: 1px solid var(--line-light); background: rgba(255, 255, 255, .04); transition: .3s; }
.cta-phone:hover { background: #fff; color: var(--ink); transform: translateX(6px); }
.cta-phone .ic { width: 26px; height: 26px; color: var(--gold); }
.cta-phone small { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.cta-phone b { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.2; }

/* Page hero (inner pages) ------------------------------------------------- */
.page-hero { position: relative; background: var(--ink); color: #fff; padding-block: clamp(56px, 8vw, 110px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 90% 10%, rgba(194, 161, 114, .2), transparent 70%); }
.page-hero::after {
  content: attr(data-word); position: absolute; right: -1vw; bottom: -.28em; font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(6rem, 19vw, 18rem); line-height: 1; color: rgba(255, 255, 255, .045); white-space: nowrap; pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; display: grid; gap: 20px; justify-items: start; }
.page-hero p { max-width: 640px; color: rgba(255, 255, 255, .74); font-size: clamp(1.02rem, 1.4vw, 1.2rem); }
.crumbs { display: flex; gap: 10px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); font-weight: 600; }
.crumbs a:hover { color: #fff; }
.crumbs span::before { content: "/"; margin-right: 10px; opacity: .5; }

/* Gallery ----------------------------------------------------------------- */
.gal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.gal-bar p { color: var(--muted); }
.gal-bar b { color: var(--ink); }
.seg { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--sand); }
.seg a { padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: .9rem; transition: .25s; }
.seg a.is-on { background: var(--ink); color: #fff; }
.seg a:not(.is-on):hover { background: rgba(18, 16, 14, .08); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--sand); }
.grid--wide .tile { aspect-ratio: 4 / 3; }
.grid--wide { grid-template-columns: repeat(3, 1fr); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.tile:hover img { transform: scale(1.07); filter: brightness(.78); }
.tile-no { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 253, 249, .92); font-size: .76rem; font-weight: 800; letter-spacing: .04em; }
.tile::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312100e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 20px no-repeat;
  opacity: 0; transform: scale(.6); transition: .35s var(--ease);
}
.tile:hover::after { opacity: 1; transform: none; }
.tile.is-hidden { display: none; }
.tile.is-in { animation: pop .6s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.gal-more { display: grid; justify-items: center; gap: 14px; margin-top: 40px; }
.gal-progress { width: min(260px, 70%); height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gal-progress i { display: block; height: 100%; background: var(--red); transition: width .5s var(--ease); }
.gal-more small { color: var(--muted); }

/* Lightbox ---------------------------------------------------------------- */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; background: rgba(12, 10, 9, .96); color: #fff; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--gut); }
.lb-count { font-weight: 700; letter-spacing: .1em; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; padding-inline: clamp(8px, 6vw, 90px); }
.lb-stage img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 12px; opacity: 0; transform: scale(.97); transition: opacity .35s, transform .35s var(--ease); }
.lb-stage img.is-ready { opacity: 1; transform: none; }
.lb-stage .arrow { position: absolute; top: 50%; margin-top: -26px; background: rgba(18, 16, 14, .6); }
.lb-prev { left: clamp(8px, 2vw, 28px); } .lb-next { right: clamp(8px, 2vw, 28px); }
.lb-cap { font-family: var(--serif); font-size: 1.35rem; }
.lb-bottom .btn { padding: 12px 22px; }

/* Prose / about ----------------------------------------------------------- */
.prose { display: grid; gap: 20px; }
.prose p { color: #3c3630; }
.prose strong { color: var(--ink); }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: clamp(26px, 3vw, 40px); border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; transition: transform .4s var(--ease), box-shadow .4s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(18, 16, 14, .09); }
.card p { color: var(--muted); font-size: .98rem; }
.card-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--ink); color: var(--gold); display: grid; place-items: center; }
.card-ic .ic { width: 24px; height: 24px; }
.card--dark { background: var(--ink-2); border-color: var(--line-light); color: #fff; }
.card--dark p { color: rgba(255, 255, 255, .7); }
.card--dark .card-ic { background: var(--red); color: #fff; }
.card address { font-style: normal; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.card address .ic { color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .92rem; background: var(--paper); }
.section--dark .chip, .section--forest .chip { border-color: var(--line-light); background: rgba(255, 255, 255, .06); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }
.duo img:last-child { margin-top: 48px; }
.ad-slot { margin-top: 48px; padding: 16px; border-radius: 16px; border: 1px dashed var(--line); min-height: 60px; }

/* FAQ --------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { border-radius: 18px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s; }
.faq details[open] { box-shadow: 0 18px 40px rgba(18, 16, 14, .08); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-size: 1.3rem; font-weight: 500; transition: .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq details p { padding: 0 26px 24px; color: var(--muted); max-width: 720px; }

/* Contact ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.info-list { display: grid; gap: 14px; }
.info { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.info .card-ic { flex: none; }
.info small { display: block; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.info b { font-size: 1.08rem; }
.info a:hover { color: var(--red); }
.info div > span { display: block; color: var(--muted); font-size: .93rem; }
.form { padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form h2 { grid-column: 1 / -1; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.form > p { grid-column: 1 / -1; color: var(--muted); margin-top: -8px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%; padding: 15px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream);
  font: inherit; color: inherit; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(18, 16, 14, .07); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--red); }
.field em { display: none; font-size: .82rem; color: var(--red); font-style: normal; font-weight: 600; }
.field.is-bad em { display: block; }
.hp { position: absolute; left: -9999px; }
.model-chip { grid-column: 1 / -1; display: none; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: rgba(35, 161, 75, .12); font-weight: 700; font-size: .95rem; }
.model-chip.is-on { display: flex; }
.model-chip .ic { color: var(--green); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-foot small { color: var(--muted); max-width: 360px; line-height: 1.5; }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.map iframe { display: block; width: 100%; height: clamp(320px, 42vw, 480px); border: 0; filter: grayscale(.25); }
.route { display: flex; gap: 10px; margin-top: 16px; }
.route input { flex: 1; min-width: 0; padding: 15px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font: inherit; }
.route input:focus { outline: 0; border-color: var(--ink); }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: #000; color: rgba(255, 255, 255, .7); padding-top: clamp(56px, 7vw, 96px); font-size: .96rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: clamp(28px, 4vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.foot-grid img { height: 72px; width: auto; margin-bottom: 18px; margin-left: -6px; }
.foot-grid h4 { color: #fff; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.foot-grid li + li { margin-top: 10px; }
.foot-grid a:hover { color: #fff; }
.foot-grid li.with-ic { display: flex; gap: 10px; align-items: flex-start; }
.foot-grid li.with-ic .ic { margin-top: .3em; color: var(--gold); }
.foot-bottom { border-top: 1px solid var(--line-light); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; color: rgba(255, 255, 255, .5); }
.foot-bottom a:hover { color: #fff; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: #fff; border: 1.5px solid var(--line-light); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s var(--ease); }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); border-color: var(--red); }
.call-fab { display: none; }

/* Reveal on scroll (only when JS is active) ------------------------------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .header-phone span { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 940px) {
  :root { --hh: 68px; }
  .brand img { height: 48px; }
  .burger { display: block; }
  .header-cta { margin-left: auto; gap: 10px; }
  .header-cta .btn, .header-phone { display: none; }
  .nav {
    position: fixed; inset: var(--hh) 0 0 0; margin: 0; padding: 24px var(--gut) 40px; background: #000;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .3s var(--ease);
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav > a, .nav-drop > button { width: 100%; justify-content: space-between; padding: 18px 0; font-family: var(--serif); font-size: 1.7rem; letter-spacing: 0; text-transform: none; border-bottom: 1px solid var(--line-light); color: #fff; }
  .nav > a::after, .nav-drop > button::after { display: none; }
  .nav .is-current { color: var(--gold); }
  .nav-sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; padding: 6px 0 6px 16px; display: none; }
  .nav-drop.is-open .nav-sub { display: block; }
  .nav-sub a { font-size: 1.1rem; padding: 12px 0; }
  .nav-mobile-cta { display: grid !important; gap: 12px; margin-top: 28px; }
  .hero-slide { grid-template-columns: 1fr; gap: 26px; padding-top: 22px; }
  .hero-media { order: -1; }
  .hero-frame { aspect-ratio: 4 / 3; border-radius: 20px; }
  .hero-slide.is-active .hero-frame { clip-path: inset(0 round 20px); }
  .hero-note { right: 12px; bottom: 12px; max-width: 200px; padding: 12px 14px; }
  .hero-tab b { font-size: 0; } .hero-tab b span { font-size: .82rem; }
  .intro, .split, .cta-in, .contact-grid, .cats { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .split-media .badge { left: 14px; bottom: 14px; }
  .head--row { grid-template-columns: 1fr; }
  .head--row .arrows { display: none; }
  .call-fab { display: grid; place-items: center; position: fixed; left: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 12px 30px rgba(35, 161, 75, .45); }
  .call-fab .ic { width: 24px; height: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid, .grid--wide { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .steps, .cards-2, .form, .foot-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 22px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .stat { display: flex; align-items: baseline; gap: 18px; }
  .stat > span { margin: 0; }
  .hero-actions .btn { flex: 1; }
  .hero-note { display: none; }
  .hero-nav .arrows { display: none; }
  .route { flex-direction: column; }
  .lb-stage .arrow { display: none; }
  .lb-bottom { flex-direction: column; align-items: stretch; text-align: center; }
  .tile::after { display: none; }
  .duo img:last-child { margin-top: 28px; }
  .cta-phone b { font-size: 1.35rem; }
}
.nav-mobile-cta { display: none; }

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