:root {
  --paper: #ece6dc;
  --ivory: #f7f3ec;
  --ink: #141210;
  --muted: #5c564e;
  --line: rgba(20, 18, 16, 0.14);
  --dark: #101311;
  --dark-2: #1a211c;
  --cream: #f3ecdf;
  --copper: #c6a27a;
  --sans: "Segoe UI", "Liberation Sans", "Nimbus Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}
img, video { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: white;
  color: black;
  padding: 0.4rem 0.7rem;
  z-index: 50;
}
.skip:focus { top: 0.6rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 19, 17, 0.94);
  color: var(--cream);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}
.brand {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: white;
}
.nav-toggle {
  display: inline-flex;
  margin-right: 0.6rem;
  background: transparent;
  color: white;
  border: 0;
  min-height: 2.6rem;
  padding: 0 0.2rem;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.primary-nav { display: flex; gap: 0.2rem; margin-left: auto; align-items: center; }
.primary-nav > a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.45rem 0.55rem;
}
.primary-nav > a[aria-current="page"] { box-shadow: inset 0 -1px 0 #fff; }
.hero {
  position: relative;
  min-height: 100svh;
  color: white;
  background: #0c0e0d;
  overflow: hidden;
}
.hero video, .hero .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,10,9,0.25) 0%, rgba(8,10,9,0.15) 35%, rgba(8,10,9,0.78) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: min(1080px, calc(100% - 10vw));
  margin: 0;
  padding: 0 0 7.5rem 6vw;
}
.kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--copper);
  margin: 0 0 0.8rem;
}
h1, h2, h3 { font-family: var(--sans); font-weight: 400; letter-spacing: -0.045em; line-height: 0.98; }
.hero h1 { font-size: clamp(3.2rem, 7.2vw, 6.4rem); margin: 0; max-width: 8.2em; font-weight: 300; }
.lede { font-size: 1.15rem; max-width: 38rem; color: rgba(247,243,236,0.86); }
.hero .lede { color: rgba(247,243,236,0.88); }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.55rem 1.05rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  background: #fff;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
}
.button.line {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.75);
}
.hero-tools {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.5rem;
}
.hero-tools button, .pause-btn {
  background: rgba(12,14,13,0.45);
  color: white;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 999px;
  min-height: 2.6rem;
  padding: 0 0.85rem;
  font: inherit;
}
.hero-note {
  margin: 1.4rem 0 0;
  max-width: 36rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  line-height: 1.45;
}

.sheet { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 4.5rem 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: start; }
.card {
  display: block;
  min-height: 16rem;
  padding: 1.2rem;
  text-decoration: none;
  color: white;
  background: #1b2420 center/cover no-repeat;
  position: relative;
}
.card span { position: relative; z-index: 1; display: block; font-family: var(--sans); font-size: 1.8rem; }
.card small { position: relative; z-index: 1; display: block; margin-top: 0.4rem; color: rgba(255,255,255,0.8); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.62)); }

.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center; padding: 3rem 0; }
.frame { margin: 0; background: #111; }
.frame img { width: 100%; max-height: 72vh; object-fit: cover; display: block; }
.frame figcaption, .note { color: var(--muted); font-size: 0.86rem; padding-top: 0.45rem; }
.dark-band { background: var(--dark); color: var(--cream); }
.dark-band a { color: var(--copper); }

.filters, .choices { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.filters button, .choices label {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  min-height: 2.5rem;
  padding: 0.3rem 0.8rem;
  font: inherit;
  cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: white; }
fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
legend { font-family: var(--sans); font-size: 1.4rem; margin-bottom: 0.5rem; }

.result { border-top: 1px solid var(--line); padding: 0.8rem 0; }
.result[hidden] { display: none; }
.tag { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper); }

form.inquiry { display: grid; gap: 0.75rem; max-width: 40rem; }
label.field { display: grid; gap: 0.25rem; font-weight: 650; }
input, select, textarea {
  font: inherit;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 0.35rem;
  min-height: 2.8rem;
  padding: 0.45rem 0.65rem;
}
textarea { min-height: 8rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.errors { color: #7a2e1e; }
.site-footer { background: var(--dark); color: #e7e0d4; padding: 2.5rem 0 3rem; }
.site-footer a { color: white; }
.search-hit { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.search-hit strong { font-family: var(--sans); font-size: 1.6rem; }

@media (max-width: 900px) {
  .primary-nav { display: none; }
  html:not(.js) .primary-nav { display: flex; flex-wrap: wrap; }
  .grid-3, .grid-2, .split { grid-template-columns: 1fr; }
  .hero-tools { bottom: 1rem; }
  .chapter { min-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .chapter-media, html.js .chapter.is-in .chapter-media { opacity: 1 !important; transform: none !important; }
}
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ===== Header + category navigation (primary route) ===== */
.site-header { position: sticky; top: 0; background: rgba(16, 19, 17, 0.97); backdrop-filter: none; }
.header-inner { min-height: 3.9rem; gap: 0.8rem; }
.brand { white-space: nowrap; }
.nav-toggle { display: none; align-items: center; gap: 0.5rem; cursor: pointer; margin-right: 0; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .25s ease, background .25s ease; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.primary-nav > a:hover { color: #fff; }
.primary-nav > a.primary-cta { border: 1px solid rgba(243,236,223,0.55); border-radius: 999px; padding: 0.4rem 1rem; margin-left: 0.4rem; }
.primary-nav > a.primary-cta:hover { background: var(--cream); color: var(--ink); }
.header-ask { display: none; }

.cat-nav { border-top: 1px solid rgba(243,236,223,0.1); background: #161b18; }
.cat-nav-inner { width: min(1280px, calc(100% - 2rem)); margin: 0 auto; display: flex; align-items: center; gap: 0.35rem; min-height: 3.1rem; }
.cat-nav-label { display: inline-flex; color: var(--copper); margin-right: 0.35rem; }
.cat-nav-label svg { fill: currentColor; }
.cat-main, .cat-minor { display: flex; align-items: center; gap: 0.25rem; }
.cat-link { text-decoration: none; white-space: nowrap; border-radius: 999px; transition: background .2s ease, color .2s ease; }
.cat-link.main { color: #fff; font-size: 0.98rem; font-weight: 600; padding: 0.42rem 0.85rem; letter-spacing: -0.01em; }
.cat-link.main:hover { background: rgba(243,236,223,0.12); }
.cat-link.main[aria-current="page"] { background: var(--cream); color: var(--ink); }
.cat-sep { width: 1px; height: 1.3rem; background: rgba(243,236,223,0.22); margin: 0 0.55rem; flex: none; }
.cat-link.minor { color: rgba(243,236,223,0.62); font-size: 0.86rem; padding: 0.4rem 0.55rem; }
.cat-link.minor:hover { color: #fff; }

/* mobile full list (secondary) */
.mnav[hidden] { display: none; }
.mnav { position: fixed; left: 0; right: 0; top: 3.5rem; bottom: 0; z-index: 60; overflow-y: auto; background: var(--ivory); color: var(--ink); padding: 0.4rem 1.25rem 2rem; animation: fade-in .2s ease; }
.mnav-title { margin: 1.3rem 0 0.3rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8a8176; }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; text-decoration: none; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.mnav-main a { font-size: 1.45rem; letter-spacing: -0.03em; }
.mnav a small { color: var(--muted); font-size: 0.8rem; }
.mnav a.sub { font-size: 1rem; color: #3d3833; }
.mnav a[aria-current="page"] { color: #9c4a2e; }
body.menu-open { overflow: hidden; }

/* ===== Home ===== */
body.home .hero, body.home .hero-copy { min-height: min(70svh, 700px); }
body.home .hero-copy { padding-bottom: 4.5rem; }
:target, section[id], article[id] { scroll-margin-top: 7.6rem; }
.cats { background: var(--ivory); }
.cats-sheet { padding-top: 3.2rem; }
.cats-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 1.6rem; }
.cats-head h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0; font-weight: 300; }
.cats-lede { max-width: 26rem; color: var(--muted); margin: 0; font-size: 0.95rem; }
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.cat-tile { position: relative; display: block; min-height: 25rem; color: #fff; text-decoration: none; overflow: hidden; background: #1a1d1b; }
.cat-tile-media, .cat-tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat-tile-media img { object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .6s ease; }
.cat-tile .t-alt { opacity: 0; }
.cat-tile:hover .t-main, .cat-tile:focus-visible .t-main { opacity: 0; transform: scale(1.06); }
.cat-tile:hover .t-alt, .cat-tile:focus-visible .t-alt { opacity: 1; transform: scale(1.06); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.85) 100%); }
.cat-tile-kicker { text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.cat-tile-copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 1.3rem 1.3rem 1.4rem; display: grid; gap: 0.25rem; }
.cat-tile-kicker { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper); }
.cat-tile-name { font-size: clamp(1.6rem, 2.2vw, 2.1rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.02; }
.cat-tile-tag { font-size: 0.9rem; color: rgba(255,255,255,0.82); }
.cat-tile-go { margin-top: 0.55rem; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.04em; }
.cat-tile-go span { display: inline-block; transition: transform .3s ease; }
.cat-tile:hover .cat-tile-go span, .cat-tile:focus-visible .cat-tile-go span { transform: translateX(5px); }
.cat-tile:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

.families { background: var(--paper); }
.families .sheet { padding: 3.6rem 0 4rem; }
.families .cats-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.fam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.fam { background: var(--ivory); display: grid; grid-template-columns: 38% 1fr; min-height: 11rem; }
.fam-media { position: relative; overflow: hidden; background: #ddd5c8; }
.fam-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.fam:hover .fam-media img { transform: scale(1.05); }
.fam-media.no-photo { display: flex; align-items: flex-end; padding: 0.8rem; background: linear-gradient(160deg, #e7dfd2, #d6ccbc); }
.fam-media.no-photo span { font-size: 1.05rem; line-height: 1.1; color: #3d3833; }
.fam-copy { padding: 1rem 1.1rem; }
.fam-copy .kicker { color: #9c4a2e; margin-bottom: 0.3rem; font-size: 0.68rem; }
.fam-copy h3 { margin: 0 0 0.4rem; font-size: 1.3rem; letter-spacing: -0.03em; }
.fam-copy p { margin: 0 0 0.5rem; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.fam-copy .fam-note { font-size: 0.76rem; }
.fam-asks { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; align-items: baseline; }
.fam-asks a { color: var(--ink); font-weight: 650; font-size: 0.86rem; text-decoration-color: rgba(20,18,16,0.3); text-underline-offset: 3px; }
.fam-asks a:hover { color: #9c4a2e; }

/* ===== Category pages ===== */
.cat-hero { position: relative; min-height: min(64svh, 620px); color: #fff; overflow: hidden; display: flex; align-items: flex-end; background: #111; }
.cat-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hero-in 1.4s ease both; }
.cat-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,10,9,0.78) 0%, rgba(8,10,9,0.35) 55%, rgba(8,10,9,0.1) 100%), linear-gradient(180deg, rgba(8,10,9,0) 50%, rgba(8,10,9,0.55) 100%); }
.cat-hero-copy { position: relative; z-index: 1; width: min(1280px, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0 3.2rem; }
.cat-hero h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); font-weight: 300; margin: 0 0 0.6rem; max-width: 12em; }
.cat-hero-tag { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 300; margin: 0 0 0.8rem; }
.cat-hero-intro { max-width: 40rem; color: rgba(247,243,236,0.86); margin: 0; }
.crumbs { font-size: 0.82rem; color: rgba(247,243,236,0.75); margin: 0 0 1.2rem; }
.crumbs a { color: #fff; }
@keyframes hero-in { from { transform: scale(1.06); opacity: 0.6; } to { transform: none; opacity: 1; } }

.subnav { position: sticky; top: 7rem; z-index: 30; background: rgba(247,243,236,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav-inner { width: min(1280px, calc(100% - 2rem)); margin: 0 auto; display: flex; align-items: center; gap: 1rem; min-height: 3.6rem; }
.subnav-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8a8176; white-space: nowrap; }
.chips { display: flex; gap: 0.45rem; overflow-x: auto; scrollbar-width: none; padding: 0.4rem 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; text-decoration: none; border: 1px solid rgba(20,18,16,0.22); border-radius: 999px; padding: 0.42rem 0.95rem; font-size: 0.92rem; background: #fff; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.chip small { color: #8a8176; margin-left: 0.15rem; }
.chip:hover { border-color: var(--ink); }
.chip[aria-current="page"], .chip[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-current] small { color: rgba(255,255,255,0.7); }

.models { background: var(--ivory); }
.models + .models { border-top: 1px solid var(--line); }
.models .sheet { width: min(1280px, calc(100% - 2rem)); padding: 3.4rem 0 3.6rem; }
.sub-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 1.6rem; }
.sub-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 300; margin: 0; }
.sub-tag { margin: 0.4rem 0 0; color: #9c4a2e; }
.sub-intro { max-width: 30rem; color: var(--muted); margin: 0; font-size: 0.95rem; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.mcard-link { display: flex; flex-direction: column; height: 100%; background: #fff; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: box-shadow .35s ease, transform .35s ease; }
.mcard-link:hover, .mcard-link:focus-visible, .mcard.is-armed .mcard-link { box-shadow: 0 18px 36px rgba(20,18,16,0.12); transform: translateY(-3px); }
.mcard:target .mcard-link { outline: 2px solid var(--copper); outline-offset: 3px; }
.mcard-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #efe8dc; }
.mcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .55s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.mcard-media .m-alt { opacity: 0; }
.mcard-link:hover .m-alt, .mcard-link:focus-visible .m-alt, .mcard.is-armed .m-alt { opacity: 1; transform: scale(1.04); }
.mcard-link:hover .m-main, .mcard-link:focus-visible .m-main, .mcard.is-armed .m-main { transform: scale(1.04); }
.mcard-media.no-photo { display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem; background: linear-gradient(160deg, #f4efe6 0%, #e2d8c8 100%); }
.mcard-media.no-photo span { font-size: 2.6rem; font-weight: 300; letter-spacing: -0.05em; line-height: 1; }
.mcard-media.no-photo small { color: #8a8176; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.4rem; }
.mcard-copy { display: grid; gap: 0.15rem; padding: 1rem 1.1rem 1.15rem; }
.mcard-no { font-size: 0.7rem; letter-spacing: 0.16em; color: #8a8176; }
.mcard-name { font-size: 1.55rem; letter-spacing: -0.03em; line-height: 1.1; }
.mcard-tag { color: var(--muted); font-size: 0.92rem; }
.mcard-more { margin-top: 0.45rem; font-size: 0.8rem; font-weight: 650; color: #9c4a2e; letter-spacing: 0.03em; }

.cat-cta { background: var(--dark); color: var(--cream); }
.cat-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 3.2rem 0; }
.cat-cta h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 300; margin: 0 0 0.4rem; }
.cat-cta p { margin: 0; color: rgba(243,236,223,0.78); }

/* model dialog */
.mdialog[hidden] { display: none; }
.mdialog { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.mdialog-backdrop { position: absolute; inset: 0; background: rgba(10,12,11,0.62); animation: fade-in .25s ease; }
.mdialog-panel { position: relative; width: min(1040px, 100%); max-height: calc(100svh - 2.4rem); overflow-y: auto; background: var(--ivory); display: grid; grid-template-columns: 1.15fr 0.85fr; animation: panel-in .35s cubic-bezier(.2,.7,.2,1); }
.mdialog-close { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 0; background: rgba(255,255,255,0.92); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.mdialog-media { background: #e9e2d6; display: flex; flex-direction: column; }
.mdialog-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.mdialog-media img.is-off, .md-empty.is-off { display: none; }
.md-empty { margin: 0; aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 1.5rem; font-size: 3rem; font-weight: 300; letter-spacing: -0.05em; background: linear-gradient(160deg, #f4efe6 0%, #e2d8c8 100%); }
.md-thumbs { display: flex; gap: 0.5rem; padding: 0.6rem; }
.md-thumbs:empty { display: none; }
.md-thumbs button { width: 5.2rem; height: 3.5rem; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; }
.md-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.md-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: auto; }
.mdialog-copy { padding: 2.2rem 1.8rem 1.8rem; display: flex; flex-direction: column; gap: 0.2rem; }
.md-path { margin: 0; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #9c4a2e; }
.mdialog-copy h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 300; margin: 0.2rem 0; }
.mdialog-copy h2:focus { outline: none; }
.md-tag { font-weight: 650; margin: 0 0 0.5rem; }
.md-desc { color: #3d3833; margin: 0 0 0.6rem; }
.md-note { font-size: 0.86rem; color: var(--muted); margin: 0 0 0.6rem; }
.md-note a { color: #9c4a2e; }
.button.dark { background: var(--ink); color: #fff; align-self: flex-start; margin-top: auto; }
.button.dark:hover { background: #9c4a2e; }
body.dialog-open { overflow: hidden; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } }

.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; padding: 3rem 0 1.5rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand { font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.3rem; }
.footer-h { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper); margin: 0 0 0.6rem; }
.footer-note { padding: 0 0 1rem; font-size: 0.8rem; color: rgba(231,224,212,0.6); }
.site-footer { padding: 0 0 1.5rem; }

@media (max-width: 1100px) {
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .cat-tile { min-height: 20rem; }
  .fam-grid { grid-template-columns: repeat(2, 1fr); }
  .mgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { min-height: 3.5rem; }
  .brand { font-size: 1rem; }
  .header-ask { display: inline-flex; margin-left: auto; color: var(--ink); background: var(--cream); text-decoration: none; border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.85rem; font-weight: 650; }
  .cat-nav-inner { width: 100%; overflow-x: auto; scrollbar-width: none; padding: 0 1rem; gap: 0.4rem; min-height: 3.2rem; }
  .cat-nav-inner::-webkit-scrollbar { display: none; }
  .cat-nav-label { display: none; }
  .cat-link.main { border: 1px solid rgba(243,236,223,0.35); font-size: 0.9rem; padding: 0.38rem 0.8rem; }
  .cat-link.minor { border: 1px solid rgba(243,236,223,0.14); font-size: 0.82rem; padding: 0.36rem 0.7rem; }
  .cat-sep { margin: 0 0.2rem; }
  .cat-minor { padding-right: 1rem; }
  .cats-head, .sub-head, .cat-cta-inner { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .subnav { top: 6.7rem; }
  .subnav-label { display: none; }
  .mdialog { padding: 0; align-items: stretch; }
  .mdialog-panel { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; max-height: 100svh; height: 100%; }
  .mdialog-copy { padding: 1.3rem 1.2rem 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  :target, section[id], article[id] { scroll-margin-top: 7rem; }
}
@media (max-width: 600px) {
  .cat-tiles { grid-template-columns: 1fr; }
  .cat-tile { min-height: 15rem; }
  .fam-grid { grid-template-columns: 1fr; }
  .mgrid { grid-template-columns: 1fr; }
  .cat-hero { min-height: 70svh; }
  body.home .hero, body.home .hero-copy { min-height: 72svh; }
  body.home .hero-copy { padding: 0 1.2rem 2.6rem; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-tile:hover .t-main, .cat-tile:focus-visible .t-main, .cat-tile:hover .t-alt, .mcard-link:hover .m-alt, .mcard-link:hover .m-main { transform: none !important; }
}

/* ===== Category pages: image tiles only (scoped: does not touch the homepage) ===== */
body.cat .mtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
body.cat .mtile { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; background: #1a1d1b; }
body.cat .mtile:target { outline: 3px solid var(--copper); outline-offset: 3px; }
body.cat .mtile-link { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
body.cat .mtile-link:focus-visible { outline: 3px solid var(--copper); outline-offset: -3px; }
body.cat .mtile-media, body.cat .mtile-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
body.cat .mtile-media img { object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .6s ease; }
body.cat .mtile .mt-alt { opacity: 0; }
body.cat .mtile-link:hover .mt-main, body.cat .mtile-link:focus-visible .mt-main, body.cat .mtile.is-armed .mt-main { transform: scale(1.06); }
body.cat .mtile-link:hover .mt-main:not(:only-child), body.cat .mtile-link:focus-visible .mt-main:not(:only-child), body.cat .mtile.is-armed .mt-main:not(:only-child) { opacity: 0; }
body.cat .mtile-link:hover .mt-alt, body.cat .mtile-link:focus-visible .mt-alt, body.cat .mtile.is-armed .mt-alt { opacity: 1; transform: scale(1.06); }
body.cat .mtile-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 32%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.84) 100%); }
body.cat .mt-neutral { background: radial-gradient(120% 90% at 80% 0%, #4a4a42 0%, #2b2d28 50%, #1d1f1c 100%); }
body.cat .mt-neutral::before { content: ""; position: absolute; inset: 0; opacity: 0.2; background-image: repeating-linear-gradient(90deg, rgba(243,236,223,0.55) 0 2px, transparent 2px 34px); transition: transform .9s ease; }
body.cat .mtile-link:hover .mt-neutral::before, body.cat .mtile-link:focus-visible .mt-neutral::before, body.cat .mtile.is-armed .mt-neutral::before { transform: scale(1.06); }
body.cat .mtile-copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 1.2rem 1.3rem 1.3rem; display: grid; gap: 0.2rem; }
body.cat .mtile-no { font-size: 0.72rem; letter-spacing: 0.16em; color: var(--copper); }
body.cat .mtile-name { font-size: clamp(1.7rem, 2.4vw, 2.3rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.02; }
body.cat .mtile-tag { font-size: 0.9rem; color: rgba(255,255,255,0.84); }
body.cat .mtile-go { margin-top: 0.45rem; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.03em; }
body.cat .mtile-go span { display: inline-block; transition: transform .3s ease; }
body.cat .mtile-link:hover .mtile-go span, body.cat .mtile-link:focus-visible .mtile-go span { transform: translateX(5px); }

body.cat .ctabs-nav { background: rgba(247,243,236,0.97); }
body.cat .ctabs-nav .subnav-inner { min-height: 0; }
body.cat .ctabs { display: flex; gap: 1.6rem; overflow-x: auto; scrollbar-width: none; }
body.cat .ctabs::-webkit-scrollbar { display: none; }
body.cat .ctab { white-space: nowrap; text-decoration: none; padding: 0.85rem 0 0.75rem; font-size: 0.95rem; color: var(--muted); border-bottom: 2px solid transparent; }
body.cat .ctab:hover { color: var(--ink); }
body.cat .ctab[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }

/* ===== Model pages ===== */
body.model { background: var(--ivory); }
body.model .mp-wrap { width: min(1280px, calc(100% - 2rem)); margin: 0 auto; }
body.model .mp-top { border-bottom: 1px solid var(--line); }
body.model .mp-crumbs { margin: 0; padding: 0.9rem 0; font-size: 0.85rem; color: var(--muted); }
body.model .mp-crumbs a { color: var(--ink); }
body.model .mp-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 2.4rem; padding: 2.2rem 0 3.6rem; align-items: start; }
body.model .mgallery { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
body.model .mgallery figure { margin: 0; overflow: hidden; background: #e9e2d6; }
body.model .mgallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
body.model .mgallery figure:hover img { transform: scale(1.03); }
body.model .mg-neutral { aspect-ratio: 3 / 2; position: relative; display: flex; align-items: flex-end; padding: 1.6rem; background: radial-gradient(120% 90% at 80% 0%, #4a4a42 0%, #2b2d28 50%, #1d1f1c 100%); color: #f3ecdf; }
body.model .mg-neutral::before { content: ""; position: absolute; inset: 0; opacity: 0.2; background-image: repeating-linear-gradient(90deg, rgba(243,236,223,0.55) 0 2px, transparent 2px 34px); }
body.model .mg-neutral span { position: relative; font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 300; letter-spacing: -0.05em; }
body.model .mp-copy { position: sticky; top: 8.2rem; }
body.model .mp-copy .kicker { color: #9c4a2e; }
body.model .mp-copy h1 { font-size: clamp(2.8rem, 5vw, 4.6rem); font-weight: 300; margin: 0 0 0.5rem; }
body.model .mp-tag { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.8rem; letter-spacing: -0.01em; }
body.model .mp-desc { color: #3d3833; margin: 0 0 1rem; max-width: 34rem; }
body.model .mp-cross { margin: 0 0 1rem; font-size: 0.9rem; }
body.model .mp-cross a { color: #9c4a2e; }
body.model .mp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.4rem; }
body.model .button.dark { background: var(--ink); color: #fff; }
body.model .button.dark:hover { background: #9c4a2e; }
body.model .mp-back { color: var(--ink); font-size: 0.92rem; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
body.model .mp-back:hover { border-bottom-color: var(--ink); }
body.model .specs[hidden] { display: none; }
body.model .specs { padding: 0 0 4rem; }
body.model .specs h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 300; margin: 0 0 1rem; }
body.model .specs-table { width: 100%; border-collapse: collapse; }
body.model .specs-table th, body.model .specs-table td { text-align: left; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
body.model .specs-table th { width: 38%; font-weight: 600; }

@media (max-width: 1100px) {
  body.cat .mtiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  body.model .mp-grid { grid-template-columns: 1fr; gap: 1.4rem; padding-top: 1.2rem; }
  body.model .mp-copy { position: static; }
}
@media (max-width: 600px) {
  body.cat .mtiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  body.cat .mtile-link:hover .mt-main, body.cat .mtile-link:hover .mt-alt, body.cat .mtile-link:focus-visible .mt-alt, body.cat .mtile.is-armed .mt-alt, body.cat .mtile.is-armed .mt-main, body.model .mgallery figure:hover img { transform: none !important; }
}

/* ===== v5: header without top-right links, 3-item central menu with dropdowns ===== */
.header-inner { justify-content: center; min-height: 3.6rem; }
.brand { color: var(--cream); text-decoration: none; }
.footer-brand a { color: inherit; text-decoration: none; }
.cat-nav-inner { justify-content: center; gap: 0.5rem; position: relative; min-height: 3.2rem; }
.cat-item { position: relative; display: flex; align-items: center; }
.cat-pill { display: inline-flex; align-items: center; border-radius: 999px; transition: background .2s ease; }
.cat-pill:hover { background: rgba(243,236,223,0.12); }
.cat-pill .cat-link.main { padding-right: 0.3rem; }
.cat-pill .cat-link.main:hover { background: none; }
.cat-item.is-current > .cat-link.main, .cat-item.is-current .cat-pill { background: var(--cream); color: var(--ink); }
.cat-item.is-current .cat-pill .cat-link.main, .cat-item.is-current .dd-btn { color: var(--ink); }
.dd-btn { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 2rem; margin-right: 0.2rem; padding: 0; border: 0; border-radius: 999px; background: none; color: rgba(243,236,223,0.85); cursor: pointer; }
.dd-btn svg { transition: transform .2s ease; }
.cat-item.is-open .dd-btn svg { transform: rotate(180deg); }
.cat-dd { position: absolute; z-index: 70; top: calc(100% + 0.5rem); left: 50%; transform: translate(-50%, -4px); min-width: 17.5rem; padding: 0.45rem; background: var(--ivory); color: var(--ink); box-shadow: 0 22px 48px rgba(0,0,0,0.28); opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.cat-dd::before { content: ""; position: absolute; left: 0; right: 0; top: -0.6rem; height: 0.6rem; }
.cat-item.is-open .cat-dd, html:not(.js) .cat-item:hover .cat-dd, html:not(.js) .cat-item:focus-within .cat-dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s ease, transform .18s ease; }
.dd-link, .dd-all { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.7rem 0.8rem; text-decoration: none; color: var(--ink); font-size: 0.98rem; }
.dd-link + .dd-link { border-top: 1px solid var(--line); }
.dd-link small { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.dd-link:hover, .dd-link:focus-visible, .dd-all:hover, .dd-all:focus-visible { background: #ebe4d8; }
.dd-link[aria-current="page"] span { color: #9c4a2e; font-weight: 650; }
.dd-all { margin-top: 0.3rem; background: var(--ink); color: #fff; font-size: 0.86rem; font-weight: 650; }
.dd-all:hover, .dd-all:focus-visible { background: #9c4a2e; }

/* ===== v5: big category blocks (homepage + Перголи landing) ===== */
.bigcats { background: var(--dark); display: grid; gap: 0.6rem; padding: 0.6rem; }
.bigcats.two { grid-template-columns: 1fr 1fr; }
.bigcat { position: relative; display: block; overflow: hidden; min-height: clamp(26rem, 76vh, 46rem); background: #1a1d1b; color: #fff; text-decoration: none; }
.bigcats.two .bigcat { min-height: clamp(26rem, 82vh, 50rem); }
.bigcat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .7s ease; }
.bigcat .bc-alt { opacity: 0; }
.bigcat:hover .bc-main, .bigcat:focus-visible .bc-main { opacity: 0; transform: scale(1.06); }
.bigcat:hover .bc-alt, .bigcat:focus-visible .bc-alt { opacity: 1; transform: scale(1.06); }
.bigcat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.25) 48%, rgba(0,0,0,0) 75%), linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%); }
.bigcat:focus-visible { outline: 3px solid var(--copper); outline-offset: -3px; }
.bc-copy { position: absolute; z-index: 1; left: clamp(1.3rem, 5vw, 4.5rem); right: 1.3rem; bottom: clamp(1.6rem, 7vh, 4.5rem); display: grid; justify-items: start; gap: 0.45rem; max-width: 44rem; }
.bc-kicker { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper); }
.bc-title { font-size: clamp(2.7rem, 6.6vw, 6.4rem); font-weight: 300; letter-spacing: -0.05em; line-height: 0.95; }
.bigcats.two .bc-title { font-size: clamp(2.5rem, 4.6vw, 4.6rem); }
.bc-line { font-size: clamp(1.02rem, 1.5vw, 1.3rem); color: rgba(255,255,255,0.9); }
.bc-btn { margin-top: 0.7rem; display: inline-flex; gap: 0.5rem; align-items: center; background: var(--cream); color: var(--ink); border-radius: 999px; padding: 0.7rem 1.35rem; font-weight: 650; font-size: 0.95rem; transition: background .25s ease, color .25s ease; }
.bigcat:hover .bc-btn, .bigcat:focus-visible .bc-btn { background: #fff; }
.bc-btn span { transition: transform .3s ease; display: inline-block; }
.bigcat:hover .bc-btn span, .bigcat:focus-visible .bc-btn span { transform: translateX(4px); }
.landing-head { background: var(--ivory); padding: 2.6rem 0 2.4rem; }
.landing-head .crumbs { margin: 0 0 1.2rem; font-size: 0.85rem; color: var(--muted); }
.landing-head .crumbs a { color: var(--ink); }
.landing-head h1 { font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 300; margin: 0.2rem 0 0.6rem; }
.landing-tag { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.6rem; }
.landing-intro { max-width: 46rem; color: #3d3833; margin: 0; }

@media (max-width: 900px) {
  .header-inner { min-height: 3.2rem; justify-content: center; }
  .cat-nav-inner { overflow: visible; justify-content: center; gap: 0.3rem; padding: 0 0.4rem; min-height: 3.1rem; }
  .cat-item { position: static; }
  .cat-link.main { font-size: 0.84rem; padding: 0.36rem 0.7rem; }
  .cat-pill { border: 1px solid rgba(243,236,223,0.35); }
  .cat-pill .cat-link.main { border: 0; padding-right: 0.1rem; }
  .dd-btn { width: 1.6rem; height: 1.9rem; margin-right: 0.1rem; }
  .cat-dd { left: 0.6rem; right: 0.6rem; top: 100%; min-width: 0; transform: translateY(-4px); }
  .cat-item.is-open .cat-dd, html:not(.js) .cat-item:focus-within .cat-dd { transform: none; }
  .dd-link, .dd-all { padding: 0.85rem 0.8rem; font-size: 1rem; }
  .bigcats.two { grid-template-columns: 1fr; }
  .bigcat, .bigcats.two .bigcat { min-height: clamp(22rem, 68vh, 34rem); }
  .bigcat::after { background: linear-gradient(180deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.72) 100%); }
}
@media (max-width: 380px) {
  .cat-link.main { font-size: 0.78rem; padding: 0.34rem 0.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bigcat:hover img, .bigcat:focus-visible img { transform: none !important; }
}
.landing-head .sheet { padding-top: 0; padding-bottom: 0; }
@media (max-width: 900px) {
  .cat-nav-inner { gap: 0.25rem; padding: 0 0.5rem; }
  .cat-link.main { font-size: 0.8rem; padding: 0.34rem 0.6rem; }
  .cat-pill .cat-link.main { padding-right: 0; }
  .dd-btn { width: 1.45rem; }
  .landing-head { padding: 1.6rem 0 1.8rem; }
}
@media (max-width: 380px) {
  .cat-link.main { font-size: 0.74rem; padding: 0.32rem 0.5rem; }
}

/* ===== v6: official logo next to the text wordmark ===== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-header { background: rgba(247,243,236,0.98); }
.header-inner { min-height: 4.4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; height: 48px; width: auto; }
.brand:hover .brand-text { color: #9c4a2e; }
body.cat .subnav { top: 7.6rem; }
@media (max-width: 900px) {
  .header-inner { min-height: 3.6rem; }
  .brand { gap: 0.55rem; }
  .brand-logo { height: 36px; }
  body.cat .subnav { top: 6.7rem; }
}

/* ===== v7: dark header again, white logo on the left; full-screen homepage categories ===== */
:root { --hdr: calc(4.4rem + 3.2rem + 1px); }
.site-header { background: rgba(16, 19, 17, 0.97); }
.header-inner { justify-content: flex-start; height: 4.4rem; min-height: 0; }
.brand { color: var(--cream); }
.brand:hover .brand-text { color: #fff; }
.cat-nav-inner { height: 3.2rem; min-height: 0; }
.bigcats.home-cats { padding: 0; gap: 2px; }
.home-cats .bigcat { min-height: 0; height: calc(100vh - var(--hdr)); height: calc(100svh - var(--hdr)); }
@media (max-width: 900px) {
  :root { --hdr: calc(3.6rem + 3.1rem + 1px); }
  .header-inner { height: 3.6rem; justify-content: flex-start; }
  .cat-nav-inner { height: 3.1rem; }
  .home-cats .bigcat { min-height: 0; }
}
@media (max-width: 420px) {
  .bc-title { font-size: clamp(2.1rem, 10.5vw, 2.7rem); }
}
@media (max-height: 520px) {
  .home-cats .bigcat { height: auto; min-height: 26rem; }
}

/* Hide-on-scroll header (11:15): slides up while scrolling down, returns on scroll up / at top. */
.site-header { transition: transform .3s ease; will-change: transform; }
.site-header.header--hidden { transform: translateY(-100%); }
.subnav, body.model .mp-copy { transition: top .3s ease; }
html.hdr-hidden .subnav, html.hdr-hidden body.cat .subnav { top: 0; }
html.hdr-hidden body.model .mp-copy { top: 1.5rem; }
@media (prefers-reduced-motion: reduce) {
  .site-header, .subnav, body.model .mp-copy { transition: none !important; }
}

/* Model pages: descriptive sections, gallery and lightbox (12:10). */
body.model .mp-rich { padding: 0.4rem 0 1.6rem; }
body.model .mp-rich-2 { padding-top: 2.4rem; }
body.model .mr-block { margin: 0 0 2.6rem; }
body.model .mr-block h2, body.model .mp-gal h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 300; line-height: 1.15; margin: 0 0 0.9rem; }
body.model .mr-intro { max-width: 46rem; }
body.model .mr-intro p, body.model .mr-note { font-size: 1.05rem; line-height: 1.7; color: #3d3a35; margin: 0 0 0.8rem; max-width: 46rem; }
body.model .mr-cards { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
body.model .mr-cards li { background: #fff; border: 1px solid var(--line, #e3dccf); padding: 1.2rem 1.25rem 1.3rem; }
body.model .mr-cards h3 { font-size: 1.02rem; font-weight: 600; margin: 0 0 0.45rem; color: #1d1f1c; }
body.model .mr-cards p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: #4a463f; }
body.model .mr-why li, body.model .mr-tech li { background: transparent; border-width: 1px 0 0; padding: 1rem 0 0.4rem; }
body.model .mr-quote { margin: 0 0 2.6rem; padding: 0.4rem 0 0.4rem 1.4rem; border-left: 2px solid #9c4a2e; max-width: 46rem; }
body.model .mr-quote p { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 300; line-height: 1.5; color: #2a2925; }
body.model .mp-gal { background: #efe9df; padding: 2.6rem 0 2.8rem; }
body.model .gal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
body.model .gal-item { display: block; overflow: hidden; background: #e2dacd; aspect-ratio: 4 / 3; cursor: zoom-in; }
body.model .gal-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
body.model .gal-item:hover img, body.model .gal-item:focus-visible img { transform: scale(1.04); }
body.model .gal-item:focus-visible { outline: 2px solid #9c4a2e; outline-offset: 2px; }
@media (max-width: 1024px) { body.model .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } body.model .mr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { body.model .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; } body.model .mr-cards { grid-template-columns: 1fr; } body.model .mp-gal { padding: 2rem 0; } }

.lb { position: fixed; inset: 0; z-index: 90; background: rgba(12, 13, 12, 0.94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; max-width: calc(100vw - 7rem); max-height: calc(100vh - 6rem); display: flex; flex-direction: column; align-items: center; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; display: block; }
.lb-cap { color: #d9d2c5; font-size: 0.85rem; margin-top: 0.7rem; letter-spacing: 0.04em; }
.lb button { position: absolute; background: rgba(255,255,255,0.08); color: #f4efe6; border: 0; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb button:hover, .lb button:focus-visible { background: rgba(255,255,255,0.2); outline: none; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
html.lb-open, html.lb-open body { overflow: hidden; }
@media (max-width: 640px) { .lb-fig { max-width: 100vw; } .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } .lb-prev { left: 1rem; } .lb-next { right: 1rem; } .lb-fig img { max-height: calc(100vh - 10rem); } }

/* Model pages: English content blocks, tabs and accordion (12:40). */
body.model .en-sec { padding: 2.4rem 0 0.6rem; }
body.model .en-sec h2, body.model .en-slider-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 300; line-height: 1.15; margin: 0 0 0.9rem; }
body.model .en-sec > .mp-wrap > p, body.model .en-sec .en-lead, body.model .en-slider-head p, body.model .en-install p { font-size: 1.05rem; line-height: 1.7; color: #3d3a35; margin: 0 0 0.8rem; max-width: 46rem; }
body.model .en-slider { margin-top: 2.2rem; }
body.model .en-slider-head { margin-bottom: 1.3rem; }
body.model .mr-list4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.model .en-chips { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
body.model .en-chips li { border: 1px solid var(--line, #d9d1c3); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.9rem; color: #3d3a35; }
body.model .en-media h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); max-width: 40rem; }
body.model .en-cta { margin-top: 2.4rem; background: #1d1f1c; color: #f4efe6; }
body.model .en-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-top: 1.6rem; padding-bottom: 1.6rem; }
body.model .en-cta p { margin: 0; font-size: 1.15rem; font-weight: 300; }
body.model .en-cta .button.dark { background: #f4efe6; color: #1d1f1c; border-color: #f4efe6; }
body.model .en-install-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: start; }
body.model .en-qa { background: #fff; border: 1px solid var(--line, #e3dccf); padding: 1.3rem 1.4rem; }
body.model .en-qa h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.5rem; }
body.model .en-qa p { font-size: 0.97rem !important; margin: 0 0 0.8rem !important; }

body.model .en-pat { padding-bottom: 2.4rem; }
body.model .en-pat-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 2rem 4rem; align-items: start; }
body.model .en-tabs { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; margin-bottom: 1.6rem; }
body.model .en-tab { background: none; border: 0; padding: 0.1rem 0; font: inherit; font-size: clamp(1.7rem, 2.8vw, 2.5rem); font-weight: 300; line-height: 1.2; color: #b9b2a6; cursor: pointer; text-align: left; }
body.model .en-tab[aria-selected="true"] { color: #1d1f1c; }
body.model .en-tab:hover { color: #6d675d; }
body.model .en-tab:focus-visible, body.model .acc-btn:focus-visible { outline: 2px solid #9c4a2e; outline-offset: 3px; }
body.model .en-pat-note { font-size: 0.95rem; line-height: 1.6; color: #4a463f; max-width: 22rem; margin: 0; }
body.model .en-tp-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) body.model .en-tabs { display: none; }
html:not(.js) body.model .en-tp-h { position: static; width: auto; height: auto; clip: auto; font-size: 1.4rem; margin: 0 0 0.6rem; }
html:not(.js) body.model .en-tp + .en-tp { margin-top: 2rem; }
body.model .en-tp[hidden] { display: none; }

body.model .acc { border-top: 1px solid #cfc7b9; }
body.model .acc-item { border-bottom: 1px solid #cfc7b9; }
body.model .acc-h { margin: 0; font: inherit; }
body.model .acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: none; border: 0; padding: 1.15rem 0.1rem; font: inherit; font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 400; color: #1d1f1c; text-align: left; cursor: pointer; }
body.model .acc-btn:hover .acc-t { color: #9c4a2e; }
body.model .acc-ico { position: relative; flex: none; width: 0.9rem; height: 0.9rem; }
body.model .acc-ico::before, body.model .acc-ico::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform .35s ease; }
body.model .acc-ico::after { transform: rotate(90deg); }
body.model .acc-item.open .acc-ico::before { transform: rotate(45deg); }
body.model .acc-item.open .acc-ico::after { transform: rotate(135deg); }
body.model .acc-panel { display: grid; grid-template-rows: 1fr; }
html.js body.model .acc-panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .38s ease, visibility 0s linear .38s; }
html.js body.model .acc-item.open .acc-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .38s ease, visibility 0s; }
body.model .acc-inner { overflow: hidden; min-height: 0; }
body.model .acc-inner p { margin: 0 0 1.2rem; padding-right: 2rem; font-size: 0.98rem; line-height: 1.65; color: #4a463f; max-width: 42rem; }
@media (prefers-reduced-motion: reduce) { html.js body.model .acc-panel, html.js body.model .acc-item.open .acc-panel, body.model .acc-ico::before, body.model .acc-ico::after { transition: none; } }
@media (max-width: 1024px) { body.model .mr-list4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.model .en-pat-grid { grid-template-columns: 1fr; gap: 1rem; } body.model .en-tabs { flex-direction: row; gap: 1.4rem; margin-bottom: 0.8rem; } body.model .en-pat-note { max-width: 46rem; } }
@media (max-width: 640px) { body.model .mr-list4 { grid-template-columns: 1fr; } body.model .en-install-grid { grid-template-columns: 1fr; } body.model .en-sec { padding-top: 2rem; } body.model .en-cta-inner { flex-direction: column; align-items: flex-start; } body.model .acc-inner p { padding-right: 0; } }

/* ===== Model pages: block layout (ly-) ===== */
body.model .ly-wrap { width: min(1280px, calc(100% - 3rem)); margin: 0 auto; }
body.model .lay h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 1rem; }
body.model .lay h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 300; line-height: 1.2; margin: 0 0 0.8rem; }
body.model .lay p { color: #3d3a35; line-height: 1.7; }
body.model .lay figure { margin: 0; }
body.model .lay figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.model .ly-big { font-size: clamp(1.2rem, 1.9vw, 1.65rem); line-height: 1.45 !important; font-weight: 300; color: #4a463f !important; margin: 0; }
body.model .ly-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 5rem; align-items: start; }
body.model .ly-2col > p { margin: 0.4rem 0 0; max-width: 34rem; }

/* hero: copy left, large photo right */
body.model .ly-hero { background: var(--paper); padding: clamp(2rem, 5vw, 4.5rem) 0; }
body.model .ly-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; gap: 0 clamp(2rem, 5vw, 5rem); align-items: end; }
body.model .ly-hero-head { grid-column: 1; grid-row: 1; }
body.model .ly-hero-head .kicker { color: #9c4a2e; }
body.model .ly-hero h1 { font-size: clamp(2.8rem, 5.4vw, 5rem); font-weight: 300; line-height: 1; margin: 0.2rem 0 1rem; }
body.model .ly-hero-tag { font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: 1.2; font-weight: 300; color: var(--ink) !important; margin: 0 0 1.2rem; }
body.model .ly-hero-text { grid-column: 1; grid-row: 2; align-self: start; }
body.model .ly-hero-text > p { margin: 0; max-width: 30rem; }
body.model .ly-hero-media { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: 5 / 4; overflow: hidden; }
body.model .ly-hero-plain { padding: clamp(3rem, 7vw, 6.5rem) 0; }
body.model .ly-hero-plain .ly-2col { align-items: end; }
body.model .ly-hero-plain .ly-hero-text .ly-big { max-width: 36rem; }

body.model .ly-simple { padding: clamp(3.5rem, 8vw, 7rem) 0; background: var(--ivory); }

/* features: scrolling rows left, sticky heading right */
body.model .ly-feat { background: var(--paper); padding: clamp(3rem, 7vw, 6rem) 0; }
body.model .ly-feat-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem clamp(2rem, 6vw, 6rem); }
body.model .ly-feat-side { grid-column: 2; grid-row: 1; }
body.model .ly-sticky { position: sticky; top: 7rem; }
body.model .ly-sticky p { display: flex; gap: 0.9rem; align-items: flex-start; margin: 0; font-size: 0.98rem; }
body.model .ly-sticky .ly-ico { flex: 0 0 2rem; margin-top: 0.15rem; }
body.model .ly-feat-main { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: clamp(4rem, 9vw, 8rem); }
body.model .ly-fade { aspect-ratio: 990 / 790; overflow: hidden; }
body.model .ly-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1.4rem 2.5rem; align-items: start; }
body.model .ly-row > p { margin: 0; font-size: 0.98rem; }
body.model .ly-row > .ly-m { grid-column: 1 / -1; aspect-ratio: 990 / 518; overflow: hidden; }
body.model .ly-row-double { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); }
body.model .ly-row-double > h3 { grid-column: 1; grid-row: 1; }
body.model .ly-row-double > .ly-m-a { grid-column: 2; grid-row: 1; aspect-ratio: 475 / 518; }
body.model .ly-row-double > .ly-m-b { grid-column: 3; grid-row: 1 / span 2; aspect-ratio: 475 / 518; margin-top: 5rem; }
body.model .ly-row-double > p { grid-column: 2; grid-row: 2; }
body.model .ly-row-text { padding: 1.4rem 0; border-top: 1px solid var(--line); }

/* photo slider */
body.model .ly-slider { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); background: var(--ivory); }
body.model .ly-slider .ly-2col { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
body.model .ly-track { list-style: none; margin: 0; padding: 0 max(1.5rem, calc((100% - 1280px) / 2)); display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(1.5rem, calc((100% - 1280px) / 2)); scrollbar-width: none; }
body.model .ly-track::-webkit-scrollbar { display: none; }
body.model .ly-slide { flex: 0 0 auto; height: clamp(260px, 37.5vw, 540px); scroll-snap-align: start; }
body.model .ly-slide a, body.model .ly-slide img { display: block; height: 100%; width: auto; }
body.model .ly-slide img { object-fit: cover; transition: transform .5s ease; }
body.model .ly-slide a { overflow: hidden; }
body.model .ly-slide a:hover img { transform: scale(1.03); }
body.model .ly-sl-nav { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.2rem; }
body.model .ly-sl-btn { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
body.model .ly-sl-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
body.model .ly-sl-btn:disabled { opacity: 0.3; cursor: default; }
html:not(.js) body.model .ly-sl-nav { display: none; }

/* enquiry band (form position) */
body.model .ly-form { background: var(--paper); padding: clamp(3.5rem, 8vw, 6.5rem) 0; text-align: center; }
body.model .ly-form-inner { display: flex; flex-direction: column; align-items: center; }
body.model .ly-form p { margin: 0 0 1.6rem; }

/* seasons / timeline */
body.model .ly-time { padding: clamp(3.5rem, 8vw, 6.5rem) 0; background: var(--ivory); }
body.model .ly-time-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: center; }
body.model .ly-time-grid p { max-width: 28rem; }
body.model .ly-pins { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; }
body.model .ly-pins li { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: #4a463f; min-width: 3.4rem; text-align: center; }
body.model .ly-pin { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid #9c8f7d; }
body.model .ly-time-media { aspect-ratio: 1170 / 945; overflow: hidden; }

/* why choose: icon grid */
body.model .ly-why { padding: clamp(3.5rem, 8vw, 7rem) 0; background: #fff; text-align: center; }
body.model .ly-why h2 { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
body.model .ly-why-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 3rem; }
body.model .ly-why-grid li { display: flex; flex-direction: column; align-items: center; }
body.model .ly-why-grid h3 { font-size: 1.05rem; font-weight: 500; margin: 1rem 0 0.4rem; }
body.model .ly-why-grid p { font-size: 0.93rem; margin: 0; max-width: 17rem; }
body.model .ly-ico { width: 2rem; height: 2rem; fill: none; stroke: #9c4a2e; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
body.model .ly-why-grid .ly-ico { width: 4.4rem; height: 4.4rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 50%; }

/* energy listing grid */
body.model .ly-list { padding: clamp(3.5rem, 8vw, 6.5rem) 0; background: #fff; }
body.model .ly-list-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.4rem; }
body.model .ly-list-grid figure { aspect-ratio: 780 / 500; overflow: hidden; margin-bottom: 1rem; }
body.model .ly-list-grid h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
body.model .ly-list-grid p { font-size: 0.93rem; margin: 0; }

/* you control it */
body.model .ly-control { background: var(--paper); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
body.model .ly-control-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: center; }
body.model .ly-control-text p { max-width: 28rem; }
body.model .ly-control-media { aspect-ratio: 1170 / 945; overflow: hidden; }
body.model .ly-links { grid-column: 1 / -1; list-style: none; margin: 0; padding: 1.6rem 0 0; border-top: 1px solid var(--line); display: flex; gap: 2.6rem; flex-wrap: wrap; font-size: 0.95rem; }

/* energy media block */
body.model .ly-media { padding: clamp(3.5rem, 8vw, 6.5rem) 0; background: var(--ivory); text-align: center; }
body.model .ly-media h2 { max-width: 40rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
body.model .ly-media-fig { aspect-ratio: 16 / 9; overflow: hidden; }

/* installation */
body.model .ly-install { padding: clamp(3.5rem, 8vw, 6.5rem) 0; background: var(--paper); }
body.model .ly-install-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: center; }
body.model .ly-card { background: #fff; padding: clamp(2rem, 4vw, 3.5rem); text-align: center; display: flex; flex-direction: column; align-items: center; }
body.model .ly-card .button.dark { align-self: center; margin-top: 0.6rem; }
body.model .lay .en-pat { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
body.model .lay .mp-gal { padding: clamp(3rem, 6vw, 5rem) 0; }

@media (max-width: 1024px) {
  body.model .ly-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.model .ly-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.model .ly-feat-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
@media (max-width: 760px) {
  body.model .ly-wrap { width: calc(100% - 2.5rem); }
  body.model .ly-2col, body.model .ly-time-grid, body.model .ly-control-grid, body.model .ly-install-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  body.model .ly-hero { padding: 1.8rem 0 2.5rem; }
  body.model .ly-hero-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 1.4rem; }
  body.model .ly-hero-head, body.model .ly-hero-media, body.model .ly-hero-text { grid-column: 1; grid-row: auto; }
  body.model .ly-hero-tag { margin-bottom: 0; }
  body.model .ly-feat-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  body.model .ly-feat-side { grid-column: 1; grid-row: auto; }
  body.model .ly-sticky { position: static; }
  body.model .ly-feat-main { grid-column: 1; grid-row: auto; gap: 3.5rem; }
  body.model .ly-row, body.model .ly-row-double { grid-template-columns: 1fr; gap: 1rem; }
  body.model .ly-row > h3, body.model .ly-row > p, body.model .ly-row > .ly-m, body.model .ly-row-double > .ly-m-a, body.model .ly-row-double > .ly-m-b, body.model .ly-row-double > p { grid-column: 1; grid-row: auto; margin-top: 0; }
  body.model .ly-row > .ly-m { order: 1; } body.model .ly-row > p { order: 2; }
  body.model .ly-row-double { grid-template-columns: 1fr 1fr; }
  body.model .ly-row-double > h3, body.model .ly-row-double > p { grid-column: 1 / -1; }
  body.model .ly-row-double > .ly-m-a { grid-column: 1; } body.model .ly-row-double > .ly-m-b { grid-column: 2; }
  body.model .ly-why-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  body.model .ly-list-grid { grid-template-columns: 1fr; }
  body.model .ly-time-media, body.model .ly-control-media { order: -1; }
  body.model .ly-links { gap: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { body.model .ly-slide img { transition: none; } body.model .ly-track { scroll-behavior: auto; } }
body.model .lay .ly-hero-tag { line-height: 1.22; }
body.model .ly-form .button.dark { align-self: center; margin-top: 0; }
body.model .ly-hero-grid { align-items: center; }
body.model .ly-hero-head { align-self: end; }
body.model .en-tabs-one .en-tab { color: #1d1f1c; cursor: default; margin: 0; }
/* model-page videos (own markup) */
body.model .lay figure video.ly-vid { display: block; width: 100%; height: 100%; object-fit: cover; background: #1d1d1b; }
body.model .lay figure.has-vid { position: relative; }

/* ===== Щори (2026-11-10): 4th category – 3-up landing blocks, 4-item central menu ===== */
.bigcats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bigcats.three .bigcat { min-height: clamp(24rem, 72vh, 44rem); }
.bigcats.three .bc-title { font-size: clamp(2.1rem, 3.4vw, 3.6rem); }
.bigcats.three .bc-copy { left: clamp(1.2rem, 3vw, 2.6rem); }
@media (max-width: 900px) {
  .bigcats.three { grid-template-columns: 1fr; }
  .bigcats.three .bigcat { min-height: clamp(20rem, 60vh, 30rem); }
}
/* 4 menu items must fit a 360–420px phone without sideways scrolling: the first (longest) label wraps to two lines. */
@media (max-width: 520px) {
  .cat-nav-inner { gap: 0.2rem; padding: 0 0.35rem; }
  .cat-nav-inner > .cat-item:first-child .cat-link.main { white-space: normal; line-height: 1.05; text-align: center; max-width: 7.4rem; padding-top: 0.2rem; padding-bottom: 0.2rem; }
  .cat-link.main { font-size: 0.78rem; padding-left: 0.55rem; padding-right: 0.55rem; }
  .cat-pill .cat-link.main { padding-right: 0; }
  .dd-btn { width: 1.35rem; }
}
@media (max-width: 370px) {
  .cat-link.main { font-size: 0.74rem; padding-left: 0.45rem; padding-right: 0.45rem; }
  .dd-btn { width: 1.2rem; }
}
/* 5 menu items (10.11.2026, Стъклени системи added): on phones the first and the last (longest) labels wrap to two lines. */
@media (max-width: 640px) {
  .cat-nav-inner { gap: 0.12rem; padding: 0 0.2rem; }
  .cat-nav-inner > .cat-item:first-child .cat-link.main,
  .cat-nav-inner > .cat-item:last-child .cat-link.main { white-space: normal; line-height: 1.05; text-align: center; padding-top: 0.2rem; padding-bottom: 0.2rem; }
  .cat-nav-inner > .cat-item:first-child .cat-link.main { max-width: 6.2rem; }
  .cat-nav-inner > .cat-item:last-child .cat-link.main { max-width: 5.2rem; }
  .cat-link.main { font-size: 0.74rem; padding-left: 0.4rem; padding-right: 0.4rem; }
  .cat-pill .cat-link.main { padding-right: 0; }
  .dd-btn { width: 1.1rem; margin-right: 0.05rem; }
}
@media (max-width: 400px) {
  .cat-nav-inner { gap: 0.08rem; padding: 0 0.15rem; }
  .cat-link.main { font-size: 0.69rem; padding-left: 0.3rem; padding-right: 0.3rem; }
  .cat-nav-inner > .cat-item:first-child .cat-link.main { max-width: 5.6rem; }
  .dd-btn { width: 0.8rem; }
  .dd-btn svg { width: 8px; height: 8px; }
}
@media (max-width: 350px) {
  .cat-nav-inner { gap: 0.04rem; padding: 0 0.08rem; }
  .cat-link.main { font-size: 0.64rem; padding-left: 0.24rem; padding-right: 0.24rem; }
  .dd-btn { width: 0.72rem; }
  .cat-nav-inner > .cat-item:first-child .cat-link.main { max-width: 5.1rem; }
  .cat-nav-inner > .cat-item:last-child .cat-link.main { max-width: 4.6rem; }
}

/* Glass systems: nested dropdown (category -> subcategories) and five-tile landing (10.11.2026) */
.dd-wide .cat-dd { left: auto; right: 0; transform: translate(0, -4px); width: min(60rem, calc(100vw - 2rem)); }
.cat-item.dd-wide.is-open .cat-dd, html:not(.js) .cat-item.dd-wide:hover .cat-dd, html:not(.js) .cat-item.dd-wide:focus-within .cat-dd { transform: translate(0, 0); }
.dd-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.2rem 0.6rem; }
.dd-group { display: flex; flex-direction: column; padding: 0.2rem 0 0.4rem; }
.dd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; padding: 0.6rem 0.8rem 0.5rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.98rem; border-bottom: 2px solid var(--ink); }
.dd-head small { color: var(--muted); font-size: 0.76rem; font-weight: 500; white-space: nowrap; }
.dd-head:hover, .dd-head:focus-visible { background: #ebe4d8; }
.dd-head[aria-current="page"] span { color: #9c4a2e; }
.dd-link.dd-sub { padding: 0.5rem 0.8rem 0.5rem 1.3rem; font-size: 0.9rem; }
.dd-group .dd-link + .dd-link { border-top: 1px solid var(--line); }
.bigcats.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bigcats.five .bigcat { grid-column: span 2; min-height: clamp(22rem, 60vh, 38rem); }
.bigcats.five .bigcat:nth-child(n+4) { grid-column: span 3; }
.bigcats.five .bc-title { font-size: clamp(1.9rem, 3vw, 3.2rem); }
@media (max-width: 900px) {
  .dd-wide .cat-dd { left: 0.6rem; right: 0.6rem; width: auto; transform: translateY(-4px); max-height: calc(100vh - 7.5rem); max-height: calc(100dvh - 7.5rem); overflow-y: auto; overscroll-behavior: contain; }
  .cat-item.dd-wide.is-open .cat-dd, html:not(.js) .cat-item.dd-wide:focus-within .cat-dd { transform: none; }
  .dd-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dd-head { padding: 0.75rem 0.8rem 0.6rem; }
  .dd-link.dd-sub { padding: 0.65rem 0.8rem 0.65rem 1.2rem; font-size: 0.95rem; }
  .bigcats.five { grid-template-columns: 1fr; }
  .bigcats.five .bigcat, .bigcats.five .bigcat:nth-child(n+4) { grid-column: auto; min-height: clamp(20rem, 60vh, 30rem); }
}
@media (max-width: 600px) {
  .dd-cols { grid-template-columns: 1fr; }
}
.ly-control-media:empty { display: none; }

/* ===== v8 (11.11.2026): six categories – on tablets and phones the central menu wraps onto two rows ===== */
@media (max-width: 900px) {
  :root { --hdr: calc(3.6rem + 5.4rem + 1px); }
  .cat-nav-inner { flex-wrap: wrap; align-content: center; row-gap: 0.4rem; height: 5.4rem; padding: 0.35rem 0.5rem; box-sizing: border-box; }
  body.cat .subnav, .subnav { top: 9rem; }
  .dd-wide .cat-dd { max-height: calc(100vh - 9.9rem); max-height: calc(100dvh - 9.9rem); }
  :target, section[id], article[id] { scroll-margin-top: 9.4rem; }
}

/* ===== v9 (11.11.2026): reference-style header — hamburger + logo on the left, categories in one row,
   transparent over the hero image, solid (blurred) once the hero has been passed; the hero always fills the screen ===== */
:root { --hdr: 4.75rem; }
.site-header { display: flex; align-items: center; height: var(--hdr); padding: 0 clamp(1rem, 2.4vw, 2.4rem); gap: 1rem; box-sizing: border-box;
  background: rgba(16, 19, 17, 0.97); transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease; }
.site-header .header-inner { flex: 0 0 auto; display: flex; align-items: center; gap: 0.9rem; height: 100%; width: auto; margin: 0; padding: 0; min-height: 0; }
.site-header .brand { gap: 0.65rem; }
.site-header .brand-logo { height: 42px; }
.site-header .cat-nav { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: none; display: flex; justify-content: center; }
.site-header .cat-nav-inner { width: auto; margin: 0; height: 100%; min-height: 0; padding: 0; flex-wrap: nowrap; gap: 0.25rem; justify-content: center; overflow: visible; }
.site-header .cat-item { height: 100%; }
.site-header .cat-dd, .site-header .dd-wide .cat-dd { top: calc(100% - 0.35rem); }
.subnav, body.cat .subnav { top: var(--hdr); }
html.hdr-hidden .subnav, html.hdr-hidden body.cat .subnav { top: 0; }
:target, section[id], article[id] { scroll-margin-top: calc(var(--hdr) + 0.6rem); }
.dd-wide .cat-dd { max-height: calc(100vh - var(--hdr) - 1rem); max-height: calc(100dvh - var(--hdr) - 1rem); }

/* hamburger (three lines) */
.hamburger { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-left: -0.55rem; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--cream); cursor: pointer; }
.hamburger:hover { background: rgba(243,236,223,0.12); }
.hamburger:focus-visible, .md-close:focus-visible, .md-tog:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.burger-lines { position: relative; display: block; width: 1.65rem; height: 0.95rem; }
.burger-lines span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 1px; }
.burger-lines span:nth-child(1) { top: 0; } .burger-lines span:nth-child(2) { top: calc(50% - 0.75px); } .burger-lines span:nth-child(3) { bottom: 0; }

/* pages with a hero image: header overlaid (fixed, takes no space), transparent with a soft top gradient for contrast */
body.hero-page .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: transparent; }
body.hero-page .site-header::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(var(--hdr) * 2.1); pointer-events: none;
  background: linear-gradient(180deg, rgba(8,10,9,0.62) 0%, rgba(8,10,9,0.34) 45%, rgba(8,10,9,0) 100%); transition: opacity .3s ease; }
body.hero-page .site-header .brand, body.hero-page .site-header .cat-link.main, body.hero-page .site-header .dd-btn, body.hero-page .site-header .hamburger { text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
body.hero-page .site-header .brand-logo, body.hero-page .site-header .burger-lines { filter: drop-shadow(0 1px 4px rgba(0,0,0,0.35)); }
body.hero-page .site-header:not(.is-solid) .cat-item:not(.is-current) .cat-pill, body.hero-page .site-header:not(.is-solid) .cat-item:not(.is-current) > .cat-link.main { background: none; }
body.hero-page .site-header:not(.is-solid) .cat-item:not(.is-current) .cat-pill:hover,
body.hero-page .site-header:not(.is-solid) .cat-item:not(.is-current) > .cat-link.main:hover { background: rgba(255,255,255,0.14); }
/* after the hero: solid, slightly blurred bar (switches to a solid bar) */
body.hero-page .site-header.is-solid { background: rgba(16, 19, 17, 0.88); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 1px 0 rgba(243,236,223,0.08); }
body.hero-page .site-header.is-solid::before { opacity: 0; }
body.hero-page .site-header.is-solid .brand, body.hero-page .site-header.is-solid .cat-link.main, body.hero-page .site-header.is-solid .dd-btn { text-shadow: none; }

/* the hero always fills the whole screen; it starts at the very top under the overlaid header (no gap, nothing resizes on scroll) */
body.home .home-cats .bigcat { height: 100vh; height: 100svh; min-height: 0; }
body.hero-page .cat-hero { min-height: 100vh; min-height: 100svh; }
body.hero-page .cat-hero-copy { padding-top: calc(var(--hdr) + 2rem); }

/* full menu (hamburger): left panel, page dimmed behind it */
.menu-drawer { position: fixed; inset: 0; z-index: 200; }
.menu-drawer[hidden] { display: none; }
.md-scrim { position: absolute; inset: 0; background: rgba(8,10,9,0.5); opacity: 0; transition: opacity .25s ease; }
.md-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(27rem, 100%); background: var(--ivory, #f7f3ec); color: var(--ink, #151816); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-100%); transition: transform .3s ease; box-shadow: 18px 0 48px rgba(0,0,0,0.25); display: flex; flex-direction: column; }
.menu-drawer.is-open .md-scrim { opacity: 1; }
.menu-drawer.is-open .md-panel { transform: none; }
.md-head { display: flex; align-items: center; gap: 0.9rem; height: var(--hdr); flex: 0 0 auto; padding: 0 clamp(1rem, 2.4vw, 2.4rem); background: #101311; }
.md-head .brand-logo { height: 42px; }
.md-head .brand { color: var(--cream); }
.md-close { position: relative; width: 2.75rem; height: 2.75rem; margin-left: -0.55rem; border: 0; border-radius: 999px; background: none; color: var(--cream); cursor: pointer; }
.md-close span::before, .md-close span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.6rem; height: 1.5px; background: currentColor; }
.md-close span::before { transform: translate(-50%, -50%) rotate(45deg); } .md-close span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.md-close:hover { background: rgba(243,236,223,0.12); }
.md-nav { padding: 1.4rem clamp(1rem, 2.4vw, 2.4rem) 2.4rem; }
.md-list, .md-sub { list-style: none; margin: 0; padding: 0; }
.md-item { border-bottom: 1px solid rgba(21,24,22,0.1); }
.md-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.md-link { flex: 1; display: block; padding: 0.72rem 0; font-size: 1.45rem; font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; color: inherit; text-decoration: none; }
.md-link:hover, .md-sublink:hover { color: #9c4a2e; }
.md-link[aria-current="page"], .md-sublink[aria-current="page"] { color: #9c4a2e; }
.md-tog { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 999px; background: none; color: #9c4a2e; cursor: pointer; }
.md-tog svg { width: 14px; height: 14px; transition: transform .2s ease; }
.md-tog[aria-expanded="true"] svg { transform: rotate(180deg); }
.md-tog:hover { background: rgba(21,24,22,0.06); }
.md-sub { padding: 0 0 0.9rem 0.1rem; }
.md-sublink { display: block; padding: 0.42rem 0; font-size: 1rem; color: rgba(21,24,22,0.78); text-decoration: none; }
.md-sublink.md-l2 { padding-left: 1rem; font-size: 0.94rem; color: rgba(21,24,22,0.62); }
.md-sublink.md-all { font-weight: 600; color: var(--ink, #151816); }
html.menu-open { overflow: hidden; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) { .md-panel, .md-scrim, .site-header, .site-header::before { transition: none !important; } }

/* tablets and phones: only hamburger + logo; all categories live in the hamburger menu */
@media (max-width: 1320px) {
  .site-header .header-inner .brand-text { display: none; }
}
@media (max-width: 1180px) {
  .site-header .cat-nav { display: none; }
  .site-header .header-inner .brand-text { display: inline; }
}
@media (max-width: 900px) {
  :root { --hdr: 4rem; }
  .site-header .cat-nav-inner { height: 100%; flex-wrap: nowrap; padding: 0; }
  .site-header .brand-logo, .md-head .brand-logo { height: 36px; }
  body.cat .subnav, .subnav { top: var(--hdr); }
  :target, section[id], article[id] { scroll-margin-top: calc(var(--hdr) + 0.6rem); }
  .md-panel { width: 100%; }
  .md-link { font-size: 1.35rem; }
}
@media (max-height: 520px) {
  body.home .home-cats .bigcat { height: auto; min-height: 100vh; min-height: max(100svh, 26rem); }
}
/* v9: the inquiry form never gets wider than the phone screen (long option names in the select) */
form.inquiry { grid-template-columns: minmax(0, 1fr); }
form.inquiry label.field { min-width: 0; grid-template-columns: minmax(0, 1fr); }
form.inquiry input, form.inquiry select, form.inquiry textarea { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
/* v9: the first (hero) photo of the homepage does not slide in — it sits at the very top from the first frame (no gap under the header) */
html.js body.home .home-cats .bigcat:first-child { transform: none; }

/* ===== v10 (11.11.2026, t118u): desktop category row sized for 7–9 categories =====
   labels may break onto two short lines, font and spacing scale with the window, the last dropdowns open to the left */
@media (min-width: 1181px) {
  .site-header { gap: clamp(0.5rem, 1vw, 1rem); }
  .site-header .cat-nav-inner { gap: clamp(0.05rem, 0.25vw, 0.3rem); }
  .site-header .cat-link.main { white-space: normal; text-wrap: balance; line-height: 1.08; text-align: center; max-width: 8.6rem;
    font-size: clamp(0.74rem, 0.3rem + 0.55vw, 0.94rem); padding: 0.32rem clamp(0.3rem, 0.65vw, 0.75rem); letter-spacing: -0.01em; }
  .site-header .cat-pill .cat-link.main { padding-right: 0; }
  .site-header .cat-nav-inner > .cat-item:nth-last-child(-n+2) .cat-dd { left: auto; right: 0; transform: translate(0, -4px); }
  .site-header .cat-nav-inner > .cat-item:nth-last-child(-n+2).is-open .cat-dd,
  html:not(.js) .site-header .cat-nav-inner > .cat-item:nth-last-child(-n+2):hover .cat-dd { transform: translate(0, 0); }
  .site-header .cat-nav-inner > .cat-item:nth-child(-n+2) .cat-dd { left: 0; transform: translate(0, -4px); }
  .site-header .cat-nav-inner > .cat-item:nth-child(-n+2).is-open .cat-dd,
  html:not(.js) .site-header .cat-nav-inner > .cat-item:nth-child(-n+2):hover .cat-dd { transform: translate(0, 0); }
}

/* ===== Element shading (11.11.2026): category pillars, pattern grid, colours, movement diagrams ===== */
.el-pillars { background: var(--cream, #f3ecdf); }
.el-pillars h2, .el-colors h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 300; margin: 0 0 1.6rem; }
.el-pill-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.el-pill-grid li { border-top: 1px solid var(--line, rgba(0,0,0,.15)); padding-top: 1rem; }
.el-pill-no { display: block; font-size: .85rem; letter-spacing: .08em; opacity: .6; margin-bottom: .4rem; }
.el-pill-grid h3 { font-size: 1.35rem; font-weight: 400; margin: 0 0 .5rem; }
.el-pill-grid p { margin: 0; line-height: 1.6; }
.el-patterns { background: var(--ivory, #faf7f1); }
.el-patterns .sheet { width: min(1280px, calc(100% - 2rem)); padding: 3.4rem 0 3.6rem; }
.el-pat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.el-pat-item { display: block; background: #fff; text-decoration: none; color: inherit; border: 1px solid var(--line, rgba(0,0,0,.12)); transition: border-color .2s; }
.el-pat-item:hover, .el-pat-item:focus-visible { border-color: currentColor; }
.el-pat-item img { display: block; width: 100%; height: auto; aspect-ratio: 538 / 1000; object-fit: contain; }
.el-pat-name { display: block; padding: .45rem .6rem .55rem; font-size: .85rem; letter-spacing: .04em; }
.el-colors-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.el-colors-grid p { line-height: 1.6; margin: 0; }
body.model .el-scheme { padding: 3rem 0; }
body.model .el-scheme-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; align-items: center; }
body.model .el-scheme-fig { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0; background: #fff; padding: 1.5rem; }
body.model .el-scheme-fig img { width: 100%; height: auto; max-height: 340px; object-fit: contain; }
@media (max-width: 900px) {
  .el-pill-grid { grid-template-columns: 1fr; }
  .el-colors-grid { grid-template-columns: 1fr; }
  body.model .el-scheme-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .el-pat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== i18n (11.11.2026): language switcher BG · EN · EL + homepage contact section ===== */
.lang-switch { display: flex; align-items: center; gap: 0.1rem; flex: 0 0 auto; margin-left: auto; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.06em; line-height: 1; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; min-height: 2.2rem; padding: 0 0.35rem; border-radius: 999px; color: var(--cream); text-decoration: none; opacity: 0.7; }
.lang-switch a:hover { opacity: 1; background: rgba(243,236,223,0.12); }
.lang-switch a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1.5px; }
.lang-switch a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
body.hero-page .site-header:not(.is-solid) .lang-switch a { text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
.md-head .lang-switch { margin-left: auto; }
@media (max-width: 900px) { .site-header .lang-switch { font-size: 0.76rem; } .lang-switch a { min-width: 2rem; padding: 0 0.25rem; } }
@media (max-width: 370px) { .site-header .lang-switch a { min-width: 1.8rem; padding: 0 0.15rem; } }
.contact-sec { background: var(--dark); color: var(--cream); padding: clamp(2.6rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3rem); border-top: 2px solid rgba(243,236,223,0.08); }
.contact-inner { max-width: 72rem; margin: 0 auto; }
.contact-sec h2 { margin: 0 0 0.5rem; font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -0.01em; }
.contact-lead { margin: 0 0 1.8rem; opacity: 0.8; max-width: 40rem; }
.contact-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem 2rem; margin: 0; }
.contact-item { min-width: 0; border-top: 1px solid rgba(243,236,223,0.22); padding-top: 0.9rem; }
.contact-list dt { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-bottom: 0.4rem; }
.contact-list dd { margin: 0; font-size: 1.05rem; line-height: 1.45; overflow-wrap: anywhere; }
.contact-list a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(243,236,223,0.4); text-underline-offset: 3px; }
.contact-list a:hover { text-decoration-color: currentColor; }
@media (max-width: 1000px) { .contact-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .contact-list { grid-template-columns: 1fr; } }

/* Instagram (11.11.2026): contact section + footer */
.ig-icon { display: inline-block; vertical-align: -0.2em; margin-right: 0.4em; flex: none; }
.contact-ig, .footer-ig { display: inline-flex; align-items: center; }
.footer-ig-p { margin-top: 0.4rem; }
