:root {
  --c-bg: #0F0E0C;
  --c-bg-soft: #16140F;
  --c-bg-warm: #1D1A14;
  --c-surface: #19160F;
  --c-text: #F2ECDE;
  --c-text-muted: #978E82;
  --c-line: #2A2620;
  --c-line-soft: #221E18;
  --c-ink: #050504;
  --c-accent: #C9A478;

  --c-btn: #F2ECDE;
  --c-btn-text: #0F0E0C;

  --wrap-max: 1320px;
  --pad-x: 40px;

  --f-display: "Prata", "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;

  --t-fast: 180ms ease-out;
  --t-mid: 320ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 800ms cubic-bezier(0.2, 0.8, 0.2, 1);

  --section-y: clamp(96px, 12vw, 180px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--c-bg); }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity var(--t-fast); }
a:hover { opacity: 0.72; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.04;
  color: var(--c-text);
  margin: 0 0 0.4em;
  letter-spacing: -0.015em;
}

h3 { font-size: 1.5rem; }
h4 { font-size: 1rem; font-family: var(--f-body); font-weight: 500; letter-spacing: -0.003em; }

.mega {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw + 1rem, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
}

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-kicker {
  font-family: var(--f-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin: 0 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
  opacity: 0.5;
}
.section-kicker.light { color: rgba(242, 236, 222, 0.68); }

.muted { color: var(--c-text-muted); }

.section-head { max-width: 960px; margin-bottom: clamp(56px, 7vw, 96px); }
.section-lead {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.2vw + 1rem, 1.6rem);
  line-height: 1.35;
  color: var(--c-text-muted);
  margin: 32px 0 0;
  max-width: 52ch;
  letter-spacing: -0.005em;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 900ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
  background: transparent;
}
.scroll-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--c-accent);
  transition: width 120ms linear;
}

/* Line reveal for mega headings */
.mega { display: block; }
.mega .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.mega .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.reveal.is-visible .mega .line > span,
.mega.reveal.is-visible .line > span { transform: translateY(0); }
.reveal.is-visible .mega .line:nth-child(1) > span,
.mega.reveal.is-visible .line:nth-child(1) > span { transition-delay: 80ms; }
.reveal.is-visible .mega .line:nth-child(2) > span,
.mega.reveal.is-visible .line:nth-child(2) > span { transition-delay: 220ms; }
.reveal.is-visible .mega .line:nth-child(3) > span,
.mega.reveal.is-visible .line:nth-child(3) > span { transition-delay: 360ms; }
@media (prefers-reduced-motion: reduce) {
  .mega .line > span { transform: none; transition: none; }
}

/* Kicker line grow-in */
.reveal .section-kicker::before,
.section-kicker.reveal::before {
  width: 0;
  transition: width 700ms cubic-bezier(0.65, 0, 0.35, 1) 200ms;
}
.reveal.is-visible .section-kicker::before,
.section-kicker.reveal.is-visible::before { width: 28px; }
@media (prefers-reduced-motion: reduce) {
  .reveal .section-kicker::before { width: 28px; transition: none; }
}

/* Principle image clip-path reveal */
.principle .principle-media {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1200ms cubic-bezier(0.65, 0, 0.35, 1);
}
.principle.is-visible .principle-media { clip-path: inset(0); }
@media (prefers-reduced-motion: reduce) {
  .principle .principle-media { clip-path: none; transition: none; }
}

/* Principle copy children stagger */
.principle .principle-copy > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 800ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.principle.is-visible .principle-copy > * { opacity: 1; transform: translateY(0); }
.principle.is-visible .principle-copy > *:nth-child(1) { transition-delay: 280ms; }
.principle.is-visible .principle-copy > *:nth-child(2) { transition-delay: 400ms; }
.principle.is-visible .principle-copy > *:nth-child(3) { transition-delay: 520ms; }
@media (prefers-reduced-motion: reduce) {
  .principle .principle-copy > * { opacity: 1; transform: none; transition: none; }
}

/* Product cards staggered reveal */
.cat .grid .card {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cat.is-visible .grid .card { opacity: 1; transform: translateY(0); }
.cat.is-visible .grid .card:nth-child(1) { transition-delay: 120ms; }
.cat.is-visible .grid .card:nth-child(2) { transition-delay: 200ms; }
.cat.is-visible .grid .card:nth-child(3) { transition-delay: 280ms; }
.cat.is-visible .grid .card:nth-child(4) { transition-delay: 360ms; }
.cat.is-visible .grid .card:nth-child(5) { transition-delay: 440ms; }
.cat.is-visible .grid .card:nth-child(6) { transition-delay: 520ms; }
.cat.is-visible .grid .card:nth-child(7) { transition-delay: 600ms; }
@media (prefers-reduced-motion: reduce) {
  .cat .grid .card { opacity: 1; transform: none; transition: none; }
}

/* Category title underline draw-in */
.cat-title {
  position: relative;
  border-bottom-color: transparent;
}
.cat-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0%; height: 1px;
  background: var(--c-line);
  transition: width 1100ms cubic-bezier(0.65, 0, 0.35, 1) 200ms;
}
.cat.is-visible .cat-title::after { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .cat-title::after { width: 100%; transition: none; }
  .cat-title { border-bottom-color: var(--c-line); }
  .cat-title::after { display: none; }
}

/* Addr-list item — accent line slides in on hover */
.addr-list li { transition: background var(--t-fast), padding-left var(--t-mid); }
.addr-list li:hover { padding-left: 10px; }

/* Where-col title underline draw-in */
.where-col-title {
  position: relative;
  border-bottom-color: transparent;
}
.where-col-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0%; height: 1px;
  background: var(--c-line);
  transition: width 1100ms cubic-bezier(0.65, 0, 0.35, 1) 160ms;
}
.where-columns.is-visible .where-col-title::after { width: 100%; }
.where-columns.is-visible .where-col:nth-child(2) .where-col-title::after { transition-delay: 280ms; }
.where-columns.is-visible .where-col:nth-child(3) .where-col-title::after { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
  .where-col-title::after { width: 100%; transition: none; }
}

/* Marquee span hover accent */
.marquee span:hover { color: var(--c-accent); }

/* Contact line — arrow that slides in */
.contact-line-big {
  position: relative;
}
.contact-line-big::after {
  content: "→";
  position: absolute;
  right: 0; top: 50%;
  transform: translate(-24px, -50%);
  opacity: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--c-accent);
  transition: opacity var(--t-mid), transform var(--t-mid);
  pointer-events: none;
}
.contact-line-big:hover::after { opacity: 1; transform: translate(0, -50%); }
@media (prefers-reduced-motion: reduce) {
  .contact-line-big::after { transition: none; }
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: var(--c-text);
  transition: background var(--t-mid), box-shadow var(--t-mid);
}
.site-header.is-scrolled {
  background: rgba(15, 14, 12, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}
.topstrip { font-size: 0.78rem; letter-spacing: 0.06em; }
.topstrip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px var(--pad-x);
  min-height: 36px;
}
.topstrip-status { display: inline-flex; align-items: center; gap: 8px; color: inherit; opacity: 0.78; }
.topstrip-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7FC96B;
  box-shadow: 0 0 0 3px rgba(127, 201, 107, 0.25);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(127, 201, 107, 0.25); }
  50% { box-shadow: 0 0 0 5px rgba(127, 201, 107, 0.12); }
}
@media (prefers-reduced-motion: reduce) { .topstrip-status .dot { animation: none; } }
.topstrip-right { display: inline-flex; align-items: center; gap: 14px; opacity: 0.88; }
.topstrip-right a { border-bottom: 1px solid transparent; transition: border-color var(--t-fast); }
.topstrip-right a:hover { opacity: 1; border-bottom-color: currentColor; }
.topstrip-sep { opacity: 0.5; }
.muted-hide { opacity: 0.6; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad-x);
}
.brand { display: flex; align-items: center; gap: 14px; line-height: 1.1; }
.brand-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #FFE9A8;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  transition: transform var(--t-mid);
}
.brand:hover .brand-avatar { transform: rotate(-6deg); }
.brand-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: inherit;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.brand-title-main { font-size: 1.2rem; }
.brand-title-sub { font-size: 1.05rem; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: inherit;
  padding: 10px 14px;
  transition: opacity var(--t-fast);
}
.nav-links a span { position: relative; display: inline-block; }
.nav-links a span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 320ms cubic-bezier(0.7, 0, 0.3, 1);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover span::after { transform: scaleX(1); transform-origin: left center; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform var(--t-mid), opacity var(--t-fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px var(--pad-x) 28px;
  gap: 2px;
  background: var(--c-bg);
  color: var(--c-text);
  border-top: 1px solid var(--c-line);
}
.mobile-menu a { padding: 16px 0; font-size: 1.05rem; font-weight: 500; color: var(--c-text); border-bottom: 1px solid var(--c-line); }
.mobile-menu.is-open { display: flex; }

/* ---------- HERO (cinematic) ---------- */
.hero-cine {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--c-text);
}
.hero-bg { position: absolute; inset: -8% 0 0; z-index: -2; will-change: transform; }
.hero-bg img { width: 100%; height: 108%; object-fit: cover; transform: scale(1.06); }
.hero-cine::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 8, 6, 0.9) 0%, rgba(10, 8, 6, 0.55) 45%, rgba(10, 8, 6, 0.15) 100%),
    linear-gradient(180deg, rgba(10, 8, 6, 0.4) 0%, rgba(10, 8, 6, 0.05) 30%, rgba(15, 14, 12, 0.95) 100%);
}
.hero-cine-wrap {
  position: relative;
  padding: 180px var(--pad-x) 160px;
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
}
.hero-card { max-width: 580px; }
.hero-card > * {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-card > *:nth-child(1) { animation-delay: 140ms; }
.hero-card > *:nth-child(2) { animation-delay: 260ms; }
.hero-card > *:nth-child(3) { animation-delay: 380ms; }
@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card > * { opacity: 1; transform: none; animation: none; }
}

.hero-facts-inner > div {
  opacity: 0;
  transform: translateY(12px);
  animation: hero-rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-facts-inner > div:nth-child(1) { animation-delay: 560ms; }
.hero-facts-inner > div:nth-child(2) { animation-delay: 640ms; }
.hero-facts-inner > div:nth-child(3) { animation-delay: 720ms; }
.hero-facts-inner > div:nth-child(4) { animation-delay: 800ms; }
@media (prefers-reduced-motion: reduce) {
  .hero-facts-inner > div { opacity: 1; transform: none; animation: none; }
}

.hero-bg { will-change: transform; }

.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 5vw + 1rem, 6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--c-text);
  margin: 0 0 32px;
}
.hero-lead {
  max-width: 50ch;
  font-size: 1.12rem;
  line-height: 1.55;
  color: rgba(242, 236, 222, 0.82);
  margin: 0 0 44px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero {
  display: inline-flex;
  align-items: center;
  padding: 16px 30px;
  background: var(--c-btn);
  color: var(--c-btn-text);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  min-height: 54px;
}
.btn-hero:hover { background: #FFF7E6; opacity: 1; transform: translateY(-1px); }
.btn-hero-ghost { background: transparent; color: var(--c-text); border: 1px solid rgba(242, 236, 222, 0.5); }
.btn-hero-ghost:hover { background: rgba(242, 236, 222, 0.08); color: var(--c-text); }

.hero-facts {
  position: relative;
  background: rgba(5, 5, 4, 0.82);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-top: 1px solid rgba(242, 236, 222, 0.1);
}
.hero-facts-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 26px var(--pad-x);
  max-width: var(--wrap-max);
  margin: 0 auto;
}
.hero-facts-inner > div { display: flex; flex-direction: column; gap: 4px; color: var(--c-text); }
.hero-facts-inner span { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(242, 236, 222, 0.52); }
.hero-facts-inner strong { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }


/* ---------- PRINCIPLES ---------- */
.principles {
  padding: var(--section-y) 0 calc(var(--section-y) - 40px);
  background: var(--c-bg);
}
.principles-head { max-width: 1100px; margin-bottom: clamp(80px, 10vw, 160px); }

.principle { padding: clamp(48px, 7vw, 100px) 0; }
.principle-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.principle-flip .principle-media { order: 2; }
.principle-flip .principle-copy { order: 1; }

.principle-media {
  position: relative;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.principle-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 1400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.principle:hover .principle-media img { transform: scale(1.03); }

.principle-copy { max-width: 500px; padding: 0 clamp(0px, 2vw, 40px); }
.principle-num {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1rem;
  color: var(--c-accent);
  letter-spacing: 0.2em;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
  min-width: 120px;
}
.principle-copy h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 2.8vw + 1rem, 3.2rem);
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.principle-copy p {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(242, 236, 222, 0.8);
  margin: 0;
  max-width: 46ch;
}

/* ---------- PRODUCTS ---------- */
.products {
  padding: var(--section-y) 0;
  background: var(--c-bg-soft);
}

.cat { padding: clamp(48px, 7vw, 96px) 0 0; }
.cat:first-of-type { padding-top: 0; }
.cat-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(40px, 4vw, 56px) clamp(16px, 2vw, 28px);
}
.card-link { display: block; color: inherit; transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.card-link:hover { opacity: 1; transform: translateY(-6px); }
.card-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--c-bg-warm);
  margin-bottom: 16px;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card-link:hover .card-media img { transform: scale(1.05); }
.card-foot { display: block; }
.card-foot h4 { margin: 0; font-size: 1rem; font-weight: 500; color: var(--c-text); line-height: 1.3; }

.products-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--c-line);
}
.products-note {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 0.92rem;
  text-align: center;
}

/* ---------- QUOTE ---------- */
.quote {
  padding: clamp(120px, 16vw, 220px) 0;
  background: var(--c-ink);
  color: var(--c-text);
  position: relative;
  overflow: hidden;
}
.quote-wrap { position: relative; max-width: 1040px; }
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw + 1rem, 4rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 56px;
  color: var(--c-text);
}
.q-foot { display: flex; align-items: center; gap: 20px; }
.q-line { display: block; width: 48px; height: 1px; background: rgba(242, 236, 222, 0.4); }
.quote cite {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 236, 222, 0.6);
  font-family: var(--f-body);
  font-weight: 500;
}

/* ---------- PARTNERS ---------- */
.partners {
  padding: var(--section-y) 0;
  background: var(--c-bg);
  overflow: hidden;
}
.partners-head { max-width: 1000px; margin-bottom: clamp(64px, 8vw, 120px); }
.marquee { overflow: hidden; }
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee-scroll 70s linear infinite;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw + 1rem, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-text);
  white-space: nowrap;
  padding: 16px 0;
}
.marquee em { font-style: normal; color: var(--c-accent); flex-shrink: 0; font-size: 0.6em; opacity: 0.7; }
.marquee span { flex-shrink: 0; transition: color var(--t-fast); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; font-size: 1.6rem; }
}

/* ---------- WHERE ---------- */
.where {
  padding: var(--section-y) 0;
  background: var(--c-bg-soft);
}
.where .mega {
  font-size: clamp(2.4rem, 5vw + 0.6rem, 6rem);
  line-height: 1.05;
}
.where-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  padding-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--c-line);
}
.where-col-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.6vw + 1rem, 2.2rem);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text);
}

.addr-list { list-style: none; counter-reset: addr 0; padding: 0; margin: 0; }
.addr-list[start="8"] { counter-reset: addr 7; }
.addr-list[start="16"] { counter-reset: addr 15; }
.addr-list li {
  counter-increment: addr;
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-line);
  align-items: baseline;
  transition: background var(--t-fast);
}
.addr-list li:hover { background: var(--c-bg-warm); }
.addr-list li::before {
  content: counter(addr, decimal-leading-zero);
  grid-row: 1 / span 2;
  grid-column: 1;
  font-family: var(--f-display);
  font-size: 1rem;
  color: var(--c-accent);
  align-self: start;
  padding-top: 4px;
}
.addr-list li strong { font-weight: 500; font-size: 1.02rem; grid-column: 2; color: var(--c-text); }
.addr-list li span { font-size: 0.92rem; color: var(--c-text-muted); grid-column: 2; }

.points-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(56px, 7vw, 88px);
}
.points-gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-bg);
  aspect-ratio: 4 / 3;
}
.points-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.points-gallery-item:hover img { transform: scale(1.04); }

.production {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: clamp(80px, 10vw, 128px);
  border: 1px solid var(--c-line);
  background: var(--c-bg);
}
.production-card {
  padding: clamp(32px, 4vw, 64px);
  border-right: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  background: var(--c-bg-warm);
}
.production-card .section-kicker { margin-bottom: 20px; }
.production-card h3 {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 3vw + 1rem, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  line-height: 1;
  color: var(--c-text);
}
.production-addr { font-size: 1.08rem; line-height: 1.55; margin: 0 0 20px; color: var(--c-text); }
.production-card .muted { margin-bottom: auto; max-width: 44ch; font-size: 0.98rem; line-height: 1.55; }
.production-contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}
.place-phone {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 1.3rem;
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--c-text);
  padding-bottom: 2px;
  align-self: flex-start;
  color: var(--c-text);
}
.place-phone:hover { border-bottom-color: transparent; }
.map-holder { min-height: 520px; background: var(--c-bg-soft); }
.map-holder iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  display: block;
  filter: invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(0.92) saturate(0.65);
}

/* ---------- CONTACTS (cinematic) ---------- */
.contacts-cine {
  position: relative;
  padding: var(--section-y) 0;
  color: var(--c-text);
  overflow: hidden;
  isolation: isolate;
}
.contacts-bg { position: absolute; inset: 0; z-index: -2; }
.contacts-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); }
.contacts-cine::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.92) 0%, rgba(5, 5, 4, 0.7) 60%, rgba(5, 5, 4, 0.45) 100%);
}
.contacts-cine-wrap { max-width: 1100px; }
.contacts-title { color: var(--c-text); margin-bottom: 32px; }
.contacts-lead {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.2vw + 1rem, 1.7rem);
  line-height: 1.35;
  color: rgba(242, 236, 222, 0.82);
  max-width: 56ch;
  margin: 0 0 72px;
  letter-spacing: -0.005em;
}
.contacts-lines {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(242, 236, 222, 0.2);
  margin-bottom: 64px;
}
.contact-line-big {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: baseline;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(242, 236, 222, 0.2);
  color: var(--c-text);
  transition: padding var(--t-mid), color var(--t-fast);
}
.contact-line-big:hover { padding-left: 16px; opacity: 1; color: var(--c-text); }
.ccl-label {
  font-family: var(--f-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 236, 222, 0.55);
}
.ccl-value {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.8rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--c-text);
}

.social-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.social-label {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 236, 222, 0.55);
}
.contacts-cine .social-row a {
  font-family: var(--f-display);
  font-size: 1.3rem;
  letter-spacing: -0.005em;
  color: var(--c-text);
  border-bottom: 1px solid rgba(242, 236, 222, 0.45);
  padding-bottom: 2px;
  transition: border-color var(--t-fast);
}
.contacts-cine .social-row a:hover { border-bottom-color: var(--c-text); opacity: 1; }

/* ---------- CATALOG PAGE ---------- */
.catalog-hero {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--c-line);
}
.catalog-hero .mega {
  margin: 12px 0 32px;
  max-width: 1100px;
}
.catalog-lead {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.2vw + 1rem, 1.7rem);
  line-height: 1.35;
  color: var(--c-text-muted);
  max-width: 64ch;
  margin: 0 0 56px;
  letter-spacing: -0.005em;
}
.catalog-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
}
.catalog-toc a {
  padding: 12px 20px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-text);
  transition: all var(--t-fast);
}
.catalog-toc a:hover {
  opacity: 1;
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.catalog-cat { padding: clamp(80px, 10vw, 140px) 0; border-bottom: 1px solid var(--c-line); }
.catalog-cat-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(20px, 2vw, 36px);
  row-gap: 28px;
  align-items: baseline;
  margin-bottom: clamp(56px, 7vw, 96px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-line);
}
.cat-num {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1vw + 0.8rem, 1.6rem);
  color: var(--c-accent);
  letter-spacing: 0.14em;
}
.catalog-cat-head .mega { grid-column: 2; grid-row: 1; margin: 0; }

.cat-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--c-line);
}
.cat-item:last-child { border-bottom: none; }
.cat-item:nth-child(even) .cat-item-media { order: 2; }
.cat-item:nth-child(even) .cat-item-copy { order: 1; }

.cat-item-media {
  overflow: hidden;
  background: var(--c-bg-soft);
}
.cat-item-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cat-item:hover .cat-item-media img { transform: scale(1.04); }

.cat-item-copy { max-width: 560px; }
.cat-item-copy h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.4vw + 0.5rem, 2.6rem);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
  color: var(--c-text);
}
.cat-item-tag {
  font-family: var(--f-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 24px;
}
.cat-item-copy p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(242, 236, 222, 0.82);
  margin: 0 0 14px;
}
.cat-item-compo {
  font-size: 0.9rem !important;
  color: var(--c-text-muted) !important;
  line-height: 1.55 !important;
  margin: 16px 0 0 !important;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}
.cat-item-compo strong {
  font-weight: 600;
  color: var(--c-text);
  display: inline-block;
  margin-right: 6px;
}

.catalog-outro {
  padding: clamp(96px, 12vw, 160px) 0;
  background: var(--c-bg-soft);
  text-align: left;
}
.catalog-outro .mega { margin: 12px 0 32px; }
.catalog-outro .catalog-lead { margin-bottom: 48px; }
.catalog-outro-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.nav-links a.is-active { opacity: 1; color: var(--c-accent); }
.nav-links a.is-active span::after { transform: scaleX(1); background: currentColor; }

@media (max-width: 960px) {
  .catalog-hero { padding: 120px 0 64px; }
  .cat-item { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .cat-item:nth-child(even) .cat-item-media { order: unset; }
  .cat-item:nth-child(even) .cat-item-copy { order: unset; }
  .catalog-cat-head { gap: 16px; margin-bottom: 48px; }
}

@media (max-width: 720px) {
  .catalog-hero { padding: 96px 0 48px; }
  .catalog-hero .mega { margin-bottom: 24px; }
  .catalog-lead { margin-bottom: 32px; font-size: 1.05rem; }
  .catalog-toc { gap: 8px; padding-top: 24px; }
  .catalog-toc a { padding: 10px 16px; font-size: 0.88rem; }
  .cat-item-copy h3 { font-size: 1.6rem; }
  .cat-item-copy p { font-size: 0.98rem; }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--c-ink);
  color: var(--c-text);
  padding: 88px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 64px 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(242, 236, 222, 0.12);
}
.footer-col h4 {
  font-family: var(--f-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 236, 222, 0.5);
  margin: 0 0 28px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-col li { color: rgba(242, 236, 222, 0.78); font-size: 0.98rem; line-height: 1.45; }
.footer-col li a { color: inherit; border-bottom: 1px solid transparent; transition: border-color var(--t-fast); }
.footer-col li a:hover { border-bottom-color: rgba(242, 236, 222, 0.55); opacity: 1; }
.address-line { color: rgba(242, 236, 222, 0.55) !important; font-size: 0.92rem !important; }

.footer-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(242, 236, 222, 0.14); }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand strong { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; letter-spacing: -0.01em; }
.footer-brand span { font-size: 0.76rem; color: rgba(242, 236, 222, 0.5); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px; }
.footer-tagline { color: rgba(242, 236, 222, 0.68); font-size: 0.96rem; line-height: 1.55; max-width: 44ch; margin: 0; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  flex-wrap: wrap;
}
.copy { margin: 0; font-size: 0.84rem; color: rgba(242, 236, 222, 0.38); }
.footer-social { display: flex; align-items: center; gap: 14px; font-size: 0.92rem; }
.footer-social a { color: rgba(242, 236, 222, 0.72); border-bottom: 1px solid transparent; transition: border-color var(--t-fast); }
.footer-social a:hover { border-bottom-color: rgba(242, 236, 222, 0.55); opacity: 1; }
.footer-social span { color: rgba(242, 236, 222, 0.25); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --pad-x: 28px; }
  .hero-cine { min-height: 80vh; }
  .hero-cine-wrap { padding: 130px var(--pad-x) 100px; }
  .hero-cine::before {
    background:
      linear-gradient(180deg, rgba(10, 8, 6, 0.35) 0%, rgba(10, 8, 6, 0.55) 40%, rgba(15, 14, 12, 0.95) 100%);
  }
  .hero-facts-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 20px var(--pad-x); }
  .principle-inner, .principle-flip .principle-inner { grid-template-columns: 1fr; gap: 32px; }
  .principle-flip .principle-media { order: unset; }
  .principle-flip .principle-copy { order: unset; }
  .principle-copy { padding: 0; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
  .where-columns { grid-template-columns: 1fr; gap: 48px; }
  .points-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .production { grid-template-columns: 1fr; }
  .production-card { border-right: none; border-bottom: 1px solid var(--c-line); }
  .contact-line-big { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .contact-line-big:hover { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root {
    --pad-x: 20px;
    --section-y: 64px;
  }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .topstrip { display: none; }
  .muted-hide { display: none; }
  .brand-sub { display: none; }
  .brand-avatar { width: 40px; height: 40px; }

  .hero-cine { min-height: 100vh; justify-content: flex-start; }
  .hero-cine-wrap {
    padding: 100px var(--pad-x) 48px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-cine .hero-facts { margin-top: auto; }
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); line-height: 1.02; margin-bottom: 22px; }
  .hero-lead { font-size: 1rem; line-height: 1.5; margin-bottom: 28px; }
  .hero-actions { gap: 10px; }
  .btn-hero { min-height: 50px; padding: 14px 22px; font-size: 0.92rem; }
  .hero-facts-inner { grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: 18px var(--pad-x); }
  .hero-facts-inner strong { font-size: 1.3rem; }
  .hero-facts-inner span { font-size: 0.66rem; }

  .principles { padding: 64px 0 32px; }
  .principles-head { margin-bottom: 48px; }
  .principle { padding: 48px 0; }
  .principle-inner { gap: 24px; }
  .principle-num { margin-bottom: 20px; padding-bottom: 12px; }
  .principle-copy h3 { font-size: clamp(1.7rem, 6vw, 2.2rem); margin-bottom: 18px; }
  .principle-copy p { font-size: 1rem; }

  .products { padding: 64px 0; }
  .cat { padding: 48px 0 0; }
  .cat-title { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 28px; padding-bottom: 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .card-foot h4 { font-size: 0.94rem; }

  .quote { padding: 88px 0; }
  .quote p { margin-bottom: 40px; }

  .partners { padding: 64px 0; }
  .partners-head { margin-bottom: 48px; }

  .where { padding: 64px 0; }
  .where-columns { gap: 40px; padding-top: 32px; }
  .where-col-title { font-size: clamp(1.4rem, 5.5vw, 1.8rem); padding-bottom: 16px; margin-bottom: 18px; }
  .production { margin-top: 56px; }
  .production-card h3 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .map-holder { min-height: 360px; }
  .map-holder iframe { min-height: 360px; }

  .contacts-cine { padding: 64px 0; }
  .contacts-lead { margin-bottom: 48px; }
  .contacts-lines { margin-bottom: 48px; }
  .ccl-value { font-size: clamp(1.3rem, 6vw, 2rem); }
  .contacts-cine .social-row a { font-size: 1.1rem; }

  .site-footer { padding: 56px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-facts-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Catalog v2 — clickable cards, "No photo" placeholder, modal
   ============================================================ */

.cat-blurb {
  grid-column: 1 / -1;
  grid-row: 2;
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 0.6vw + 1rem, 1.3rem);
  line-height: 1.4;
  color: var(--c-text-muted);
  margin: 0;
  max-width: 64ch;
  letter-spacing: -0.005em;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(20px, 2vw, 32px);
  margin-top: clamp(48px, 5vw, 80px);
}

.cat-card {
  position: relative;
  display: flex;
}

.cat-card-btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-align: left;
  padding: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
  font: inherit;
  color: inherit;
}
.cat-card-btn:hover {
  transform: translateY(-3px);
  border-color: var(--c-line);
  box-shadow: 0 24px 60px -36px rgba(0,0,0,0.6);
}
.cat-card-btn:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

.cat-card-media {
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--c-bg-warm);
  position: relative;
}
.cat-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cat-card-btn:hover .cat-card-media img { transform: scale(1.05); }

.card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(201,164,120,0.05) 0 12px, transparent 12px 24px),
    var(--c-bg-warm);
  color: var(--c-text-muted);
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.card-noimg span {
  border: 1px solid var(--c-line);
  padding: 8px 16px;
  border-radius: 2px;
}

.cat-card-body {
  flex: 1 1 auto;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cat-card-title {
  font-family: var(--f-display);
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--c-text);
}
.cat-card-tag {
  font-family: var(--f-body);
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin: 0;
  line-height: 1.4;
  min-height: 2.3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}
.card-price {
  display: inline-flex;
  align-items: center;
  background: var(--c-accent);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  border-radius: 2px;
  white-space: nowrap;
}
.card-weight {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--c-text-muted);
  border: 1px solid var(--c-line);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 7px 12px;
  border-radius: 2px;
  white-space: nowrap;
}

/* Catalog TOC — make it scrollable on small screens */
.catalog-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 40px;
}
.catalog-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--c-line);
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.catalog-toc a:hover {
  background: var(--c-bg-warm);
  border-color: var(--c-accent);
  color: var(--c-accent);
  opacity: 1;
}
.catalog-toc a.is-current {
  background: var(--c-bg-warm);
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* ============================================================
   Product modal
   ============================================================ */

body.modal-locked { overflow: hidden; }

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.product-modal.is-open { display: block; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 4, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFadeIn 280ms ease-out;
}

.modal-shell {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 60px);
  pointer-events: none;
}

.modal-shell > * { pointer-events: auto; }

.modal-close {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 14, 12, 0.7);
  border: 1px solid var(--c-line);
  color: var(--c-text);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.modal-close:hover {
  background: var(--c-bg-warm);
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.modal-grid {
  position: relative;
  width: 100%;
  max-width: 1180px;
  max-height: calc(100vh - 80px);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  animation: modalRise 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-media {
  background: var(--c-bg-warm);
  position: relative;
  min-height: 360px;
  max-height: calc(100vh - 80px);
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-noimg { aspect-ratio: auto; height: 100%; }

.modal-body {
  padding: clamp(28px, 4vw, 56px);
  overflow-y: auto;
  max-height: calc(100vh - 80px);
}
.modal-tag {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin: 0 0 18px;
}
.modal-title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  color: var(--c-text);
}
.modal-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.price-plate {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 14px 22px 12px;
  background: transparent;
  color: var(--c-text-muted);
  border: 1px solid var(--c-line);
  border-radius: 3px;
  font: inherit;
  cursor: pointer;
  transition: background var(--t-mid), color var(--t-mid), border-color var(--t-mid), transform var(--t-fast);
  min-width: 132px;
  position: relative;
}
.price-plate .pp-price {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: inherit;
  font-variant-numeric: tabular-nums;
}
.price-plate .pp-weight {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.6;
  margin-top: 6px;
}
.price-plate.is-active {
  background: var(--c-accent);
  color: var(--c-ink);
  border-color: var(--c-accent);
  box-shadow: 0 12px 30px -18px rgba(201, 164, 120, 0.45);
}
.price-plate.is-active .pp-weight { opacity: 0.7; }
.price-plate:hover:not(.is-active) {
  border-color: var(--c-accent);
  color: var(--c-text);
  transform: translateY(-1px);
}
.price-plate:active:not(.is-active) { transform: translateY(0); }
.price-plate:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}
.modal-price-row.is-single .price-plate {
  cursor: default;
  pointer-events: none;
}
.modal-price-row.is-single .price-plate:hover:not(.is-active) {
  border-color: var(--c-line);
  color: var(--c-text-muted);
  transform: none;
}

.modal-desc {
  font-family: var(--f-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--c-text);
  margin: 0 0 24px;
}
.modal-compo {
  font-family: var(--f-body);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-line-soft);
  padding-top: 20px;
}
.modal-compo strong {
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: 0.01em;
}

@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-grid { animation: none; }
}

@media (max-width: 880px) {
  .modal-grid {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 32px);
  }
  .modal-media {
    min-height: 240px;
    max-height: 40vh;
    aspect-ratio: 16/10;
  }
  .modal-body { max-height: none; }
}

@media (max-width: 600px) {
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .cat-card-body { padding: 18px 18px 16px; min-height: 0; }
  .cat-card-title { font-size: 1.18rem; }
  .modal-title { margin-bottom: 20px; }
  .price-plate { min-width: 0; flex: 1 1 calc(50% - 6px); padding: 10px 14px; }
  .price-plate .pp-price { font-size: 1.05rem; }
}

@media (max-width: 420px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Product badges (dietary / craft attributes)
   ============================================================ */

.cat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cat-badges:empty { display: none; }

.cat-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--c-line);
  border-radius: 2px;
  background: transparent;
  color: var(--c-text-muted);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.cat-card-btn:hover .cat-badge {
  border-color: var(--c-line);
  color: var(--c-text);
}

.cat-badge.is-highlight {
  background: rgba(201, 164, 120, 0.10);
  border-color: rgba(201, 164, 120, 0.42);
  color: var(--c-accent);
}
.cat-card-btn:hover .cat-badge.is-highlight {
  background: rgba(201, 164, 120, 0.18);
  border-color: rgba(201, 164, 120, 0.62);
  color: var(--c-accent);
}

.cat-badge.is-more {
  border-style: dashed;
  border-color: var(--c-line);
  color: var(--c-text-muted);
  cursor: help;
}

/* Card-level badges row sits between tag and footer */
.cat-card .cat-badges {
  margin-top: 2px;
  margin-bottom: 2px;
}

/* Modal-level badges row sits between price plates and description */
.modal-badges {
  margin: 0 0 28px;
}
.modal-badges .cat-badge {
  height: 28px;
  padding: 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

@media (max-width: 600px) {
  .cat-badge { height: 22px; padding: 0 8px; font-size: 0.64rem; letter-spacing: 0.08em; }
  .modal-badges { margin-bottom: 22px; }
  .modal-badges .cat-badge { height: 26px; padding: 0 10px; font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cat-badge { transition: none; }
}

/* ============================================================
   Attribute icons (auto-inferred dietary/craft attributes)
   ============================================================ */

.attr-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--c-text-muted);
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}
.attr-icon svg { width: 100%; height: 100%; display: block; }

.attr-icon.is-active {
  color: var(--c-accent);
  background: rgba(201, 164, 120, 0.08);
  border-color: rgba(201, 164, 120, 0.42);
}
.attr-icon.is-inactive {
  opacity: 0.32;
}

/* Card overlay — top-right corner, stacked vertically */
.attrs-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
  pointer-events: none;
}
.attrs-overlay .attr-icon {
  width: 32px;
  height: 32px;
  background: rgba(15, 14, 12, 0.78);
  border-color: rgba(201, 164, 120, 0.20);
  color: rgba(242, 236, 222, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.attrs-overlay .attr-icon.is-active {
  background: rgba(15, 14, 12, 0.85);
  border-color: rgba(201, 164, 120, 0.65);
  color: var(--c-accent);
}
.attrs-overlay .attr-icon.is-inactive {
  opacity: 0.42;
}
.cat-card-btn:hover .attrs-overlay .attr-icon.is-active {
  border-color: rgba(201, 164, 120, 0.9);
  background: rgba(15, 14, 12, 0.92);
}

/* Modal — bigger icons with text labels in a row */
.modal-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.modal-attrs:empty { display: none; }
.modal-attr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 78px;
}
.modal-attr .attr-icon {
  width: 56px;
  height: 56px;
}
.modal-attr-label {
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  text-align: center;
  line-height: 1.25;
}

@media (max-width: 600px) {
  .attrs-overlay { top: 8px; right: 8px; gap: 5px; }
  .attrs-overlay .attr-icon { width: 28px; height: 28px; }
  .modal-attrs { gap: 12px 14px; margin-bottom: 22px; }
  .modal-attr { width: 68px; gap: 6px; }
  .modal-attr .attr-icon { width: 48px; height: 48px; }
  .modal-attr-label { font-size: 0.58rem; letter-spacing: 0.08em; }
}

