/* ==========================================================================
   Miratelier — творча майстерня · дизайн «Couture Éditoriale»
   Темний full-bleed hero, пісочна основа, приглушений бордо, Playfair + Jost.
   Токени (кольори, шрифти, відступи) — assets/design-tokens.css, генерується з
   assets/design-tokens.json; джерело правди — docs/brand-guidelines.md.
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: var(--sans); font-size: clamp(1rem, .97rem + .15vw, 1.0625rem); line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, figure, blockquote, dl, dd { margin: 0; }
address { font-style: normal; }
::selection { background: var(--bordeaux); color: var(--sand); }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }
.hero :focus-visible, .process :focus-visible, .cta :focus-visible, .menu :focus-visible, .lightbox :focus-visible,
.hdr:not(.is-solid) :focus-visible { outline-color: var(--rose); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .8rem 1.2rem; background: var(--noir); color: var(--sand); text-decoration: none; transition: top var(--fast); }
.skip:focus { top: 1rem; }
.ico { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); }
.sec--paper { background: var(--paper); }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; }
.h2 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem); }
.h2 em { color: var(--bordeaux); }
.lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3rem); line-height: 1.6; }
.muted { color: var(--taupe); }

.sec-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-head::after { content: ""; flex: 1; height: 1px; background: var(--line); transform: translateY(-.3em); }
.sec-head__idx { font-family: var(--serif); font-style: italic; color: var(--bordeaux); }
.sec-head__label { font-size: .75rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe); }
.sec-head--light .sec-head__idx { color: var(--rose); }
.sec-head--light .sec-head__label { color: color-mix(in srgb, var(--sand) 82%, var(--bordeaux)); }
.sec-head--light::after { background: color-mix(in srgb, var(--sand) 28%, transparent); }

/* ---------- Buttons & links ---------- */
.btn {
  --bg: transparent; --fg: currentColor; --bd: currentColor; --hbg: var(--noir); --hfg: var(--sand);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 3.25rem; padding: 0 2rem;
  border: 1px solid var(--bd); border-radius: 0;
  background: linear-gradient(var(--hbg), var(--hbg)) no-repeat 0 0 / 0 100%, var(--bg);
  color: var(--fg);
  font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-size var(--base) var(--ease), color var(--base) var(--ease), border-color var(--base) var(--ease);
}
.btn:hover { background-size: 100% 100%, auto; color: var(--hfg); border-color: var(--hbg); }
.btn:active { transform: translateY(1px); }
.btn--solid { --bg: var(--bordeaux); --fg: var(--sand); --bd: var(--bordeaux); --hbg: var(--noir); }
.btn--light { --bg: var(--sand); --fg: var(--noir); --bd: var(--sand); --hbg: var(--rose); --hfg: var(--noir); }
.btn--line { --bg: transparent; --bd: currentColor; }
.btn--sm { min-height: 2.75rem; padding: 0 1.3rem; }
.btn--block { width: 100%; }

.ulink {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 calc(50% + .85em); background-size: 100% 1px;
  transition: background-size var(--base) var(--ease), color var(--fast);
}
.ulink:hover { background-size: 0 1px; background-position: 100% calc(50% + .85em); }
.ulink .ico { width: 1rem; height: 1rem; transition: transform var(--fast) var(--ease); }
.ulink:hover .ico { transform: translateX(3px); }
.ulink--light { color: var(--sand); }

.round-btn {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; flex: none;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer;
  transition: background-color var(--fast), color var(--fast), border-color var(--fast);
}
.round-btn:hover { background: var(--noir); border-color: var(--noir); color: var(--sand); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); color: var(--sand);
  transition: background-color var(--base) var(--ease), color var(--base) var(--ease), box-shadow var(--base) var(--ease), height var(--base) var(--ease);
}
.hdr.is-solid { height: 4.25rem; background: color-mix(in srgb, var(--sand) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.menu-open .hdr { background: transparent; color: var(--sand); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--serif); font-style: italic; font-size: 1.65rem; }
.brand__rule { width: 1px; height: 1.35rem; background: currentColor; opacity: .45; }
.brand__tag { font-size: .6875rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
/* У шапці підпис «Творча майстерня» показуємо лише там, де є місце поруч із меню */
.hdr .brand__rule, .hdr .brand__tag { display: none; }
@media (min-width: 1280px) { .hdr .brand__rule, .hdr .brand__tag { display: block; } }

.nav { display: none; }
.nav__list { display: flex; gap: clamp(1.5rem, 2.8vw, 3rem); }
.nav__link { position: relative; display: inline-block; padding-block: .6rem; font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: .25rem; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--base) var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.hdr__actions { display: flex; align-items: center; gap: 1.25rem; }
.hdr__cta { display: none; }
.hdr.is-solid .hdr__cta { --bd: var(--bordeaux); --bg: var(--bordeaux); --fg: var(--sand); }

.menu-toggle { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; }
.menu-toggle__label { font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.menu-toggle__lines { position: relative; width: 1.75rem; height: .6rem; }
.menu-toggle__lines span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform var(--base) var(--ease), top var(--base) var(--ease); }
.menu-toggle__lines span:first-child { top: 0; }
.menu-toggle__lines span:last-child { top: 100%; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:first-child { top: 50%; transform: rotate(35deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:last-child { top: 50%; transform: rotate(-35deg); }

@media (min-width: 640px) { .hdr__cta { display: inline-flex; } }
@media (min-width: 1024px) { .nav { display: block; } .menu-toggle { display: none; } }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 45; overflow-y: auto;
  padding-block: calc(var(--hdr) + 2.5rem) calc(2rem + env(safe-area-inset-bottom));
  background: var(--noir); color: var(--sand);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s linear .6s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease); }
.menu > nav { min-height: 100%; display: flex; flex-direction: column; }
.menu__list a {
  display: flex; align-items: baseline; gap: 1rem; padding-block: .9rem;
  border-bottom: 1px solid var(--noir-line);
  font-family: var(--serif); font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1.1; text-decoration: none;
  opacity: 0; transform: translateY(16px); transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), color var(--fast);
}
.menu__list a i { font-size: 1rem; color: var(--rose); min-width: 2rem; }
.menu__list a:hover { color: var(--rose); }
.menu.is-open .menu__list a { opacity: 1; transform: none; }
.menu.is-open .menu__list li:nth-child(1) a { transition-delay: .15s; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .2s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .25s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .3s; }
.menu__foot { margin-top: auto; padding-top: 2.5rem; display: grid; gap: 1.25rem; }
.menu__contacts { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; color: var(--mist); }
.menu__contacts a { min-height: 2.75rem; display: inline-flex; align-items: center; text-decoration: none; }
@media (min-width: 1024px) { .menu { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(40rem, 100svh); display: flex; align-items: flex-end; overflow: hidden; background: var(--noir); color: var(--sand); }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 32% 50%; animation: hero-zoom 2.6s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.08); opacity: .4; } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(30 27 25 / .94) 0%, rgb(30 27 25 / .72) 42%, rgb(30 27 25 / .18) 78%, rgb(30 27 25 / .35) 100%); }
.hero__inner { position: relative; z-index: 1; display: grid; gap: 3rem; padding-top: calc(var(--hdr) + 4rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero__label { display: inline-flex; align-items: center; gap: .9rem; font-size: .75rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--rose); }
.hero__label::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; }
.hero__title { margin-top: 1.5rem; font-size: clamp(3rem, 1.6rem + 5.8vw, 6.75rem); line-height: .98; }
.hero__title em { display: block; color: var(--rose); }
.hero__sub { margin-top: 2rem; max-width: 32rem; font-size: clamp(1.125rem, 1.02rem + .4vw, 1.3rem); line-height: 1.55; }
.hero__text { margin-top: 1rem; max-width: 30rem; color: var(--mist); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.5rem; }

.hero__perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-top: 1.25rem; border-top: 1px solid rgb(237 230 220 / .22); font-size: .8125rem; line-height: 1.35; }
.hero__perks li { display: flex; align-items: baseline; gap: .6rem; }
.hero__perks i { font-family: var(--serif); color: var(--rose); }

.hero__scroll { display: none; }

@media (min-width: 960px) {
  .hero__shade { background: linear-gradient(90deg, rgb(30 27 25 / .05) 0%, rgb(30 27 25 / .3) 38%, rgb(30 27 25 / .86) 66%, rgb(30 27 25 / .94) 100%), linear-gradient(to top, rgb(30 27 25 / .6), transparent 35%); }
  .hero__content { justify-self: end; width: min(40rem, 52%); }
  .hero__perks { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
  .hero__scroll {
    position: absolute; left: var(--gutter); bottom: 2.5rem; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1rem;
    font-size: .6875rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--mist);
  }
  .hero__scroll span { writing-mode: vertical-rl; }
  .hero__scroll::after { content: ""; width: 1px; height: 4rem; background: linear-gradient(var(--rose), var(--rose)) no-repeat 0 0 / 100% 40%, rgb(237 230 220 / .25); animation: scroll-line 2.4s var(--ease) infinite; }
  .hero__perks { padding-left: 4rem; }
}
@keyframes scroll-line { 0% { background-position: 0 -40%; } 100% { background-position: 0 180%; } }

/* ---------- About ---------- */
.about__grid { display: grid; gap: clamp(3rem, 6vw, 7rem); align-items: center; }
.about__figure { position: relative; }
.about__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__figure::before { content: ""; position: absolute; top: 1.25rem; left: 1.25rem; right: -1.25rem; aspect-ratio: 4 / 5; border: 1px solid var(--bordeaux); z-index: -1; }
.about__figure figcaption { margin-top: 2rem; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); }
.about__text { display: grid; gap: 1.75rem; max-width: 38rem; }
.dropcap::first-letter { float: left; margin: .08em .12em 0 0; font-family: var(--serif); font-size: 4.1em; line-height: .8; color: var(--bordeaux); }
.signature { display: flex; align-items: baseline; gap: 1rem; font-size: .8125rem; color: var(--taupe); }
.signature span { font-family: var(--serif); font-style: italic; font-size: 1.75rem; color: var(--ink); }

@media (min-width: 1024px) {
  .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* ---------- Services & prices ---------- */
.services__top { display: grid; gap: 1.5rem 4rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.services__top > div { display: grid; gap: 1.25rem; align-content: end; }
.services__lead { max-width: 34rem; }
.services__note { max-width: 36rem; padding-left: 1.25rem; border-left: 1px solid var(--bordeaux); font-size: .9375rem; color: var(--taupe); }
.services__aside .btn { justify-self: start; }
@media (min-width: 1024px) { .services__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }

.tabs__list { display: flex; gap: 2rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.tabs__list::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .tabs__list { margin-inline: 0; padding-inline: 0; } }
.tab {
  flex: none; position: relative; min-height: 3.25rem; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe);
  transition: color var(--fast);
}
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--bordeaux); transform: scaleX(0); transition: transform var(--base) var(--ease); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__panel { padding-top: 2rem; animation: fade-in var(--base) var(--ease); }
.tabs__panel:focus-visible { outline-offset: 6px; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } }

.price-groups { columns: 1; }
@media (min-width: 900px) { .price-groups { columns: 2; column-gap: clamp(2.5rem, 5vw, 5rem); } }
.pgroup { break-inside: avoid; margin-bottom: 2rem; }
.pgroup > summary { display: flex; align-items: baseline; gap: .75rem; min-height: 3rem; padding: .75rem; margin-inline: -.75rem; border-bottom: 1px solid var(--ink); cursor: pointer; list-style: none; }
.pgroup > summary::-webkit-details-marker { display: none; }
.pgroup__title { font-family: var(--serif); font-size: clamp(1.35rem, 1.2rem + .5vw, 1.625rem); line-height: 1.2; }
.pgroup__count { flex: none; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); }
.pgroup__chev { flex: none; margin-left: auto; align-self: center; transition: transform var(--base) var(--ease); }
.pgroup[open] .pgroup__chev { transform: rotate(180deg); }

.prices li { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: .8rem .75rem; margin-inline: -.75rem; border-bottom: 1px solid var(--line); transition: background-color var(--fast); }
.prices li:hover { background: var(--stone); }
.prices__name { font-size: 1rem; line-height: 1.45; }
.prices__val { flex: none; white-space: nowrap; font-family: var(--serif); font-size: 1.375rem; line-height: 1; color: var(--bordeaux); }
.prices__val small { font-family: var(--sans); font-size: .75rem; letter-spacing: .06em; color: var(--taupe); }
.prices__tag { flex: none; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); }
.prices li.prices__parent { padding-bottom: .15rem; border-bottom: 0; }
.prices li.prices__parent:hover { background: none; }
.prices li.prices__sub { padding-block: .45rem; padding-left: 2rem; }
.prices__sub .prices__name { font-size: .9375rem; color: var(--taupe); }
.prices__sub .prices__name::before { content: "— "; color: var(--decor); }

.repairs { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.repairs__head { display: grid; gap: .75rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.repairs__head .muted { max-width: 34rem; }
.repairs__title { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
.repairs__grid { display: grid; gap: 1.75rem 1.5rem; }
@media (min-width: 900px) { .repairs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.repairs__item button { display: block; width: 100%; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--stone); }
.repairs__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.repairs__item button:hover img { transform: scale(1.025); }
.repairs__item figcaption { display: flex; align-items: baseline; gap: .75rem; margin-top: .7rem; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); }
.repairs__item figcaption i { font-family: var(--serif); font-size: .9375rem; letter-spacing: 0; color: var(--bordeaux); }

.sizes { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.sizes__head { display: grid; gap: .75rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.sizes__head .muted { max-width: 34rem; }
.sizes__title { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
.sizes__grid { display: grid; gap: 1.75rem 1.5rem; }
@media (min-width: 700px) { .sizes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 60rem; } }
.sizes__item button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); overflow: hidden; cursor: zoom-in; background: #fff; }
.sizes__item img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform 1.2s var(--ease); }
.sizes__item button:hover img { transform: scale(1.025); }
.sizes__item figcaption { display: flex; align-items: baseline; gap: .75rem; margin-top: .7rem; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); }
.sizes__item figcaption i { font-family: var(--serif); font-size: .9375rem; letter-spacing: 0; color: var(--bordeaux); }
.drawer__sizes { color: var(--bordeaux); text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Catalog ---------- */
.catalog__top { display: grid; gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.catalog__top > div:first-child { display: grid; gap: 1rem; }
@media (min-width: 1024px) { .catalog__top { grid-template-columns: auto 1fr; align-items: end; } }

.filters { display: flex; gap: 1.75rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .filters { flex-wrap: wrap; justify-content: flex-end; gap: .5rem 2rem; margin: 0; padding: 0; overflow: visible; } }
.filter {
  flex: none; position: relative; min-height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); transition: color var(--fast);
}
.filter sup { margin-left: .2rem; font-size: .625rem; letter-spacing: 0; }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: .45rem; height: 1px; background: var(--bordeaux); transform: scaleX(0); transform-origin: left; transition: transform var(--base) var(--ease); }
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--bordeaux); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 1rem; align-items: start; }
.products > :nth-child(even) { margin-top: 2.5rem; }
@media (min-width: 1024px) {
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4rem 1.75rem; }
  .products > :nth-child(even) { margin-top: 5rem; }
}

.product.is-entering { animation: fade-in .7s var(--ease) both; animation-delay: var(--i, 0ms); }
.product__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; padding: 0; border: 0; cursor: pointer; background: var(--stone); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.product__media:hover img { transform: scale(1.05); }
.product__hover {
  position: absolute; inset: 0; display: none; place-items: center;
  background: rgb(30 27 25 / .38); color: var(--sand);
  font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  opacity: 0; transition: opacity var(--base) var(--ease);
}
@media (hover: hover) { .product__hover { display: grid; } .product__media:hover .product__hover, .product__media:focus-visible .product__hover { opacity: 1; } }
.product__tag { position: absolute; top: 0; left: 0; padding: .45rem .8rem; background: var(--noir); color: var(--sand); font-size: .625rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.product__meta { display: grid; gap: .3rem; padding-top: 1.1rem; }
.product__cat { font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); }
.product__name { font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); line-height: 1.2; }
.product__desc { font-size: .875rem; line-height: 1.5; color: var(--taupe); }
.product__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.product__price { font-weight: 500; white-space: nowrap; }
.product__order { color: var(--bordeaux); }

/* ---------- Drawer (product details) ---------- */
.drawer {
  width: min(100%, 36rem); height: 100%; max-width: none; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0;
  background: var(--paper); color: var(--ink);
}
.drawer::backdrop { background: rgb(30 27 25 / .55); }
.drawer[open] { animation: drawer-in .55s var(--ease); }
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer__inner { height: 100%; overflow-y: auto; }
.drawer__close { position: absolute; top: 1rem; right: 1rem; z-index: 2; background: var(--paper); border-color: transparent; }
.drawer__media { aspect-ratio: 4 / 5; max-height: 62vh; width: 100%; background: var(--stone); }
.drawer__media img { width: 100%; height: 100%; object-fit: cover; }
.drawer__body { display: grid; gap: 1.25rem; padding: clamp(1.75rem, 4vw, 2.75rem); }
.drawer__cat { font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); }
.drawer__title { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.drawer__price { font-family: var(--serif); font-size: 1.75rem; color: var(--bordeaux); line-height: 1; }
.drawer__text { color: var(--taupe); }
.specs { border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .8rem; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.specs dt { color: var(--taupe); }
.specs dd { text-align: right; }
.drawer__hint { font-size: .8125rem; color: var(--taupe); }

/* ---------- Process (bordeaux) ---------- */
.process { background: var(--bordeaux); color: var(--sand); }
.process__title { margin-bottom: clamp(3rem, 6vw, 5rem); }
.process__title em { color: var(--rose); }
.timeline { position: relative; display: grid; gap: 2.75rem; padding-left: 4.75rem; }
.timeline::before { content: ""; position: absolute; left: 1.625rem; top: 1.625rem; bottom: 1.625rem; width: 1px; background: rgb(237 230 220 / .3); }
.tl-step { position: relative; }
.tl-step__num {
  position: absolute; left: -4.75rem; top: 0; display: grid; place-items: center; width: 3.25rem; height: 3.25rem;
  border: 1px solid rgb(237 230 220 / .55); border-radius: 50%; background: var(--bordeaux);
  font-family: var(--serif); font-style: italic; font-size: 1.125rem;
  transition: background-color .8s var(--ease) .3s, color .8s var(--ease) .3s;
}
.tl-step.is-in .tl-step__num { background: var(--sand); color: var(--bordeaux); }
.tl-step h3 { padding-top: .55rem; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.tl-step p { margin-top: .6rem; max-width: 22rem; color: color-mix(in srgb, var(--sand) 82%, var(--bordeaux)); }
@media (min-width: 960px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; padding-left: 0; }
  .timeline::before { left: 1.625rem; right: 0; top: 1.625rem; bottom: auto; width: auto; height: 1px; }
  .tl-step { padding-top: 5.25rem; }
  .tl-step__num { left: 0; }
  .tl-step h3 { padding-top: 0; }
}
.process__cta { margin-top: clamp(3.5rem, 6vw, 5rem); }

/* ---------- Gallery (masonry) ---------- */
.works__title, .contacts__title { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.masonry { columns: 2; column-gap: .75rem; }
@media (min-width: 900px) { .masonry { columns: 3; column-gap: 1.5rem; } }
.masonry__item { break-inside: avoid; margin-bottom: 1.75rem; }
.masonry__item button { display: block; width: 100%; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--stone); }
.masonry__item img { width: 100%; transition: transform 1.2s var(--ease), filter var(--base); filter: saturate(.9); }
.masonry__item button:hover img { transform: scale(1.035); filter: saturate(1); }
.masonry__item figcaption { display: flex; align-items: baseline; gap: .75rem; margin-top: .7rem; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); }
.masonry__item figcaption i { font-family: var(--serif); font-size: .9375rem; letter-spacing: 0; color: var(--bordeaux); }

/* Lightbox */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(20 18 17 / .97); color: var(--sand); }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade-in var(--base) var(--ease); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--gutter); font-family: var(--serif); font-style: italic; color: var(--mist); }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); touch-action: pan-y; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 10rem); width: auto; height: auto; object-fit: contain; user-select: none; }
.lightbox__caption { padding: 1rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom)); text-align: center; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); }
.lightbox .round-btn { border-color: rgb(237 230 220 / .3); color: var(--sand); }
.lightbox .round-btn:hover { background: var(--sand); color: var(--noir); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgb(20 18 17 / .5); }
.lightbox__nav--prev { left: .5rem; }
.lightbox__nav--next { right: .5rem; }
@media (min-width: 768px) { .lightbox__stage { padding: 0 6rem; } .lightbox__nav--prev { left: 1.5rem; } .lightbox__nav--next { right: 1.5rem; } }

/* ---------- CTA (noir) + form ---------- */
.cta { background: var(--noir); color: var(--sand); }
.cta__grid { display: grid; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.cta__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--noir-line); }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__label { font-size: .75rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--rose); }
.cta__title { margin-top: 1.25rem; font-size: clamp(2.5rem, 1.5rem + 4vw, 4.75rem); line-height: 1.02; }
.cta__title em { color: var(--rose); }
.cta__text { margin-top: 1.5rem; max-width: 30rem; color: var(--mist); font-size: 1.125rem; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin-top: 2.25rem; }
.cta__or { font-family: var(--serif); font-style: italic; color: var(--mist); }
@media (min-width: 1024px) {
  .cta__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .cta__media { aspect-ratio: 4 / 5; position: sticky; top: 7rem; }
}

.form-card { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--noir-line); }
.form-grid { display: grid; gap: 0 1.75rem; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 560px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: .3rem; margin-bottom: 1.6rem; }
.field label { font-size: .6875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.field label span[aria-hidden] { color: var(--rose); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem 0; font: inherit; font-size: 1.0625rem; color: var(--sand);
  background: transparent; border: 0; border-bottom: 1px solid rgb(237 230 220 / .32); border-radius: 0;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.field input::placeholder, .field textarea::placeholder { color: rgb(185 174 163 / .75); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--sand); box-shadow: 0 1px 0 0 var(--sand); }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2rem; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23EDE6DC' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right .25rem center;
}
.field select option { color: var(--ink); background: var(--paper); }
.field textarea { min-height: 6rem; resize: vertical; line-height: 1.55; }
.field__error { display: none; font-size: .8125rem; color: var(--rose); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: var(--rose); box-shadow: 0 1px 0 0 var(--rose); }
.field.has-error .field__error { display: block; }
.form-error { margin-top: 1rem; font-size: .875rem; color: var(--rose); }
.form-note { margin-top: 1rem; font-size: .8125rem; color: var(--mist); }
.btn.is-loading { pointer-events: none; opacity: .7; }
.form-success { display: grid; justify-items: start; gap: 1rem; }
.form-success h3 { font-size: 2rem; }
.form-success p { color: var(--mist); }
.form-success__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 1px solid var(--rose); border-radius: 50%; color: var(--rose); }

/* ---------- Contacts ---------- */
.contacts__cols { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .contacts__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.cblock { display: grid; align-content: start; gap: .9rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.cblock__label { font-size: .6875rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe); }
.cblock__value { font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + .7vw, 1.75rem); line-height: 1.3; }
.cblock__value a { text-decoration: none; }
.cblock__value a:hover { color: var(--bordeaux); }
.cblock .ulink { justify-self: start; color: var(--bordeaux); }
.hours { display: grid; gap: .2rem; font-size: 1.0625rem; }
.hours li { display: flex; justify-content: space-between; gap: 1.5rem; max-width: 19rem; padding: .15rem .5rem; margin-inline: -.5rem; }
.hours li.is-today { background: var(--stone); font-weight: 500; }
.open-status { display: inline-flex; align-items: center; gap: .55rem; font-size: .8125rem; font-weight: 500; }
.open-status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--decor); }
.open-status.is-open { color: var(--success); }
.open-status.is-open::before { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent); }
.quick { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 3rem; }
.map { position: relative; height: clamp(20rem, 38vw, 30rem); margin-top: clamp(3rem, 6vw, 4.5rem); overflow: hidden; background: var(--stone); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.22) contrast(.95); }

/* ---------- Footer ---------- */
.ftr { background: var(--stone); color: var(--ink); padding-block: clamp(3rem, 6vw, 5rem) 2rem; overflow: hidden; }
.ftr__word { font-family: var(--serif); font-style: italic; font-size: clamp(3.25rem, 17.5vw, 16rem); line-height: .95; letter-spacing: -.03em; white-space: nowrap; color: var(--bordeaux); user-select: none; }
.ftr__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2.5rem; border-top: 1px solid var(--line); }
.ftr__brand { grid-column: 1 / -1; display: grid; gap: 1rem; max-width: 22rem; }
.ftr__brand p { font-size: .9375rem; color: var(--taupe); }
.ftr__title { margin-bottom: .9rem; font-family: var(--sans); font-size: .6875rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe); }
.ftr__links a { display: inline-flex; align-items: center; min-height: 2.5rem; font-size: .9375rem; text-decoration: none; transition: color var(--fast); }
.ftr__links a:hover { color: var(--bordeaux); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--taupe); }
.ftr__bottom a { text-decoration: none; }
.ftr__bottom a:hover { color: var(--ink); }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); } .ftr__brand { grid-column: auto; } }

/* ---------- Floating contact (mobile) ---------- */
.cfab { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; pointer-events: none; }
.cfab__toggle {
  pointer-events: auto; display: inline-flex; align-items: center; gap: .6rem; min-height: 3.25rem; padding: 0 1.35rem;
  border: 0; background: var(--bordeaux); color: var(--sand); cursor: pointer; box-shadow: 0 12px 30px -10px rgb(30 27 25 / .55);
  font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  opacity: 0; transform: translateY(1.5rem); transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), background-color var(--fast);
}
.cfab.is-visible .cfab__toggle { opacity: 1; transform: none; }
.cfab__toggle:hover { background: var(--bordeaux-dk); }
.cfab__toggle .ico--close { display: none; }
.cfab__toggle[aria-expanded="true"] .ico--open { display: none; }
.cfab__toggle[aria-expanded="true"] .ico--close { display: block; }
.cfab__menu { display: grid; justify-items: end; gap: .4rem; }
.cfab__menu a {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 2.9rem; padding: 0 1.2rem;
  background: var(--paper); color: var(--ink); box-shadow: 0 8px 24px -10px rgb(30 27 25 / .4); text-decoration: none; font-size: .9375rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility 0s linear var(--fast);
}
.cfab__menu a .ico { color: var(--bordeaux); }
.cfab.is-open .cfab__menu a { pointer-events: auto; opacity: 1; visibility: visible; transform: none; transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease); }
.cfab.is-open .cfab__menu li:nth-last-child(2) a { transition-delay: 40ms; }
.cfab.is-open .cfab__menu li:nth-last-child(3) a { transition-delay: 80ms; }
@media (min-width: 1024px) { .cfab { display: none; } }
.is-locked .cfab { visibility: hidden; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="img"] { opacity: 1; transform: none; }
.js [data-reveal="img"] img { opacity: 0; transform: scale(1.12); transition: opacity 1.1s var(--ease), transform 1.8s var(--ease); }
.js [data-reveal="img"].is-in img { opacity: 1; transform: none; }

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