/* =====================================================================
   ADRIS — styles built on the ADRIS Brand Identity guide (2026)
   Palette: Yellow / Light Blue / Brown only (balance ≈ 40 / 35 / 25).
   Type: Cormorant Garamond (accent, uppercase) + humanist sans for text.
   ===================================================================== */
:root {
  --yellow: #ffeab1;   /* Pantone 7499 C */
  --blue: #b3c9ce;     /* Pantone 5445 C */
  --brown: #352219;    /* Pantone 476 C  */

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  /* Brand text face is Gill Sans (licensed). Alegreya Sans is the closest free
     humanist face with Cyrillic; put "Gill Sans Nova" first if you have a web licence. */
  --sans: "Alegreya Sans", "Gill Sans", "Gill Sans MT", Calibri, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(16px, 4.5vw, 64px);
  --max: 1360px;
  --header: 84px;
  --tile: 220px;
  --tile-ratio: .548555;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 795.43 436.34' width='795.43' height='436.34'%3E%3Cdefs%3E%3Cg id='u'%3E%3Cpath d='M 345.07 218.08 L 349.28 221.70 C 346.70 85.17 247.47 -33.02 101.81 8.40 C 59.26 20.51 34.35 49.53 51.19 94.17 C 83.66 180.07 276.02 162.28 345.08 218.08 L 345.07 218.08 Z'/%3E%3Cpath d='M 231.28 224.76 C 150.96 198.26 61.04 206.67 1.34 134.72 C -9.47 242.17 45.28 374.78 162.54 392.84 C 302.57 414.45 400.50 280.53 231.29 224.76 L 231.28 224.76 Z'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23u' x='0.00' y='0.00'/%3E%3Cuse href='%23u' x='0.00' y='436.34'/%3E%3Cuse href='%23u' x='795.43' y='0.00'/%3E%3Cuse href='%23u' x='795.43' y='436.34'/%3E%3Cuse href='%23u' x='397.71' y='-218.17'/%3E%3Cuse href='%23u' x='397.71' y='218.17'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--yellow);
  color: var(--brown);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: inherit; }
::selection { background: var(--brown); color: var(--yellow); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wordmark, .mark, .sign { display: block; fill: currentColor; }
.wordmark { aspect-ratio: 886.13 / 224.14; }
.mark { aspect-ratio: 339.1 / 319.14; }
.sign { aspect-ratio: 349.28 / 395.18; }
.ic { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.bg-yellow { background: var(--yellow); color: var(--brown); }
.bg-blue { background: var(--blue); color: var(--brown); }
.bg-brown { background: var(--brown); color: var(--yellow); }

/* ---------- Brand pattern (negative space of the sign, pp.16–17) ---------- */
.pat { position: relative; overflow: hidden; isolation: isolate; }
.pat::before {
  content: ""; position: absolute; z-index: -1;
  left: 0; right: 0; bottom: 0; top: calc(var(--tile) * var(--tile-ratio) * -1);
  background: var(--pat-fg);
  -webkit-mask: var(--pattern) 0 0 / var(--tile) auto repeat;
  mask: var(--pattern) 0 0 / var(--tile) auto repeat;
  animation: drip 16s linear infinite;
  will-change: transform;
}
@keyframes drip { to { transform: translateY(calc(var(--tile) * var(--tile-ratio))); } }
.pat--yellow-brown { background: var(--yellow); --pat-fg: var(--brown); }
.pat--blue-yellow { background: var(--blue); --pat-fg: var(--yellow); }
.pat--blue-brown { background: var(--blue); --pat-fg: var(--brown); }
.pat--brown-yellow { background: var(--brown); --pat-fg: var(--yellow); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; justify-items: center; gap: 24px;
  background: var(--brown);
  transition: transform .9s var(--ease);
}
.preloader.is-done { transform: translateY(-100%); pointer-events: none; }
.preloader__mark { width: 76px; color: var(--yellow); animation: plMark .9s var(--ease) both; }
.preloader__word { width: 200px; color: var(--blue); clip-path: inset(0 100% 0 0); animation: plWord .9s var(--ease) .2s forwards; }
@keyframes plMark { from { opacity: 0; transform: scale(.55) rotate(-50deg); } to { opacity: 1; transform: none; } }
@keyframes plWord { to { clip-path: inset(0 0 0 0); } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  background: var(--brown); color: var(--yellow);
  transition: transform .6s var(--ease);
}
.header.is-hidden { transform: translateY(-100%); }
.header__bar {
  height: var(--header); display: flex; align-items: center; gap: 32px;
  padding: 0 var(--pad); transition: height .5s var(--ease);
}
.header.is-compact .header__bar { height: 64px; }
.header__logo { flex: none; color: var(--blue); transition: color .4s; }
.header__logo:hover { color: var(--yellow); }
.header__logo .wordmark { height: 30px; width: auto; transition: height .5s var(--ease); }
.header.is-compact .header__logo .wordmark { height: 24px; }

.nav { display: flex; gap: clamp(20px, 2.8vw, 46px); margin-left: auto; }
.nav a { position: relative; padding: 8px 0; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 16px; margin-left: clamp(8px, 2.5vw, 40px); }
.lang { display: flex; align-items: center; }
.lang__btn { padding: 8px 6px; font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--blue); opacity: .7; transition: opacity .3s, color .3s; }
.lang__btn:hover { opacity: 1; }
.lang__btn.is-active { color: var(--yellow); opacity: 1; }
.lang__btn + .lang__btn { border-left: 1px solid rgba(179, 201, 206, .4); padding-left: 10px; margin-left: 4px; }

.cart-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 16px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 234, 177, .35);
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  transition: background .4s, color .4s, box-shadow .4s;
}
.cart-btn:hover { background: var(--yellow); color: var(--brown); box-shadow: none; }
.cart-btn__count {
  display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  background: var(--blue); color: var(--brown); font-size: 13px; font-weight: 700; letter-spacing: 0;
}
.cart-btn.is-bump .cart-btn__count { animation: bump .7s var(--ease); }
@keyframes bump { 30% { transform: scale(1.5); } }

.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 234, 177, .35); }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--yellow); transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger.is-open span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger.is-open span:last-child { top: 21.5px; transform: rotate(-45deg); }

.progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; }

/* mobile menu */
.mnav {
  position: fixed; inset: 0; z-index: 55; display: none;
  flex-direction: column; justify-content: center; gap: 6px; padding: 90px var(--pad) 40px;
  background: var(--brown); color: var(--yellow);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); visibility: hidden;
}
.mnav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mnav a {
  font-family: var(--serif); font-weight: 500; text-transform: uppercase; font-size: clamp(34px, 9vw, 54px); line-height: 1.15;
  opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
.mnav a:hover { color: var(--blue); }
.mnav.is-open a { opacity: 1; transform: none; }
.mnav.is-open a:nth-child(2) { transition-delay: .05s; }
.mnav.is-open a:nth-child(3) { transition-delay: .1s; }
.mnav.is-open a:nth-child(4) { transition-delay: .15s; }
.mnav.is-open a:nth-child(5) { transition-delay: .2s; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 30px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2;
  transition: color .45s var(--ease), box-shadow .45s var(--ease), transform .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--btn-fill);
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .ic { transition: transform .45s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--dark { background: var(--brown); color: var(--yellow); --btn-fill: var(--blue); }
.btn--dark:hover { color: var(--brown); }
.btn--line { color: var(--brown); box-shadow: inset 0 0 0 1px var(--brown); --btn-fill: var(--brown); }
.btn--line:hover { color: var(--yellow); }
.btn--light { background: var(--yellow); color: var(--brown); --btn-fill: var(--blue); }
.btn--ghost-light { color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(255, 234, 177, .6); --btn-fill: var(--yellow); }
.btn--ghost-light:hover { color: var(--brown); }
.link-btn { justify-self: center; padding: 8px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; opacity: .7; transition: opacity .3s; }
.link-btn:hover { opacity: 1; }

.round-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex: none;
  color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(255, 234, 177, .5);
  transition: background .3s, color .3s, box-shadow .3s;
}
.round-btn:hover { background: var(--yellow); color: var(--brown); box-shadow: none; }
.round-btn--dark { width: 44px; height: 44px; color: var(--brown); box-shadow: inset 0 0 0 1px rgba(53, 34, 25, .35); }
.round-btn--dark:hover { background: var(--brown); color: var(--yellow); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.eyebrow .mark { width: 17px; flex: none; }
.eyebrow--blue { color: var(--blue); }
.h2 {
  max-width: 15ch;
  font-family: var(--serif); font-weight: 500; text-transform: uppercase;
  font-size: clamp(40px, 5.6vw, 84px); line-height: .95; letter-spacing: -.005em;
}
.lead { max-width: 430px; font-size: 19px; font-weight: 300; line-height: 1.5; }

.section { padding: clamp(80px, 10vw, 150px) var(--pad); }
.head {
  max-width: var(--max); margin: 0 auto clamp(40px, 5vw, 72px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 60px;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.rise { clip-path: inset(0 0 100% 0); transform: translateY(36px); transition: clip-path 1.3s var(--ease), transform 1.3s var(--ease); }
.rise.is-in { clip-path: inset(-10% -5% -25% -5%); transform: none; }

/* ---------- Hero ---------- */
main { padding-top: var(--header); }
.hero {
  display: grid; grid-template-columns: 1.12fr .95fr .74fr; grid-template-rows: 1fr 1fr;
  height: calc(100svh - var(--header)); min-height: 600px; max-height: 980px;
  background: var(--brown);
}
.tile { position: relative; overflow: hidden; }
.hero .tile { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease); }
.is-loaded .hero .tile { clip-path: inset(0); }
.is-loaded .hero .tile:nth-child(2) { transition-delay: .1s; }
.is-loaded .hero .tile:nth-child(3) { transition-delay: .2s; }
.is-loaded .hero .tile:nth-child(4) { transition-delay: .3s; }

.hero__intro {
  grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(32px, 4vw, 72px) var(--pad); background: var(--yellow);
}
.hero__title {
  margin: 4px 0 30px;
  font-family: var(--serif); font-weight: 500; text-transform: uppercase;
  font-size: clamp(50px, 5.8vw, 104px); line-height: .9; letter-spacing: -.01em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero__title .line > span { display: block; transform: translateY(110%); transition: transform 1.3s var(--ease) .35s; }
.hero__title .line:nth-child(2) > span { transition-delay: .45s; }
.hero__title .line:nth-child(3) > span { transition-delay: .55s; }
.is-loaded .hero__title .line > span { transform: none; }
.hero__lead { max-width: 430px; margin-bottom: 34px; font-size: 19px; font-weight: 300; line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__slides { grid-column: 2; grid-row: 1 / 3; background: var(--blue); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.slide.is-active { opacity: 1; }
.slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.slides__dots {
  position: absolute; left: 18px; bottom: 18px; z-index: 2; display: flex; gap: 6px;
  padding: 11px 12px; border-radius: 999px; background: rgba(53, 34, 25, .6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dot { position: relative; width: 28px; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255, 234, 177, .3); }
.dot::before { content: ""; position: absolute; inset: -8px 0; }
.dot::after { content: ""; position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.dot.is-active::after { animation: dotfill var(--dur, 6s) linear forwards; }
@keyframes dotfill { to { transform: scaleX(1); } }

.hero__brand { grid-column: 3; grid-row: 1; display: flex; align-items: flex-start; justify-content: center; padding-top: clamp(24px, 3.2vw, 44px); background: var(--blue); color: var(--brown); }
.hero__brand .wordmark { position: relative; z-index: 1; width: 50%; height: auto; }
.hero__sign { position: absolute; width: 122%; left: -40%; top: 47%; }
.hero__pattern { grid-column: 3; grid-row: 2; --tile: 150px; }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; padding: 22px 0; background: var(--brown); color: var(--yellow); border-top: 1px solid rgba(255, 234, 177, .1); }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: flex; align-items: center; gap: 34px; padding-right: 34px; white-space: nowrap;
  font-family: var(--serif); font-weight: 500; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 36px); letter-spacing: .02em;
}
.ticker__item .mark { width: 28px; color: var(--blue); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Collections ---------- */
.cats { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.cat {
  --c-bg: var(--brown); --c-fg: var(--yellow);
  position: relative; display: flex; flex-direction: column; overflow: hidden; text-align: left;
  background: var(--c-bg); color: var(--c-fg);
}
.cat:nth-child(even) { --c-bg: var(--yellow); --c-fg: var(--brown); }
.cat__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cat:hover .cat__media img { transform: scale(1.08); }
.cat__wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 26%; fill: var(--c-bg); }
.cat__wave path { transition: d .9s var(--ease); }
.cat:hover .cat__wave path { d: path("M0 100 V18 C 30 66, 62 4, 100 44 V100 Z"); }
.cat__body { display: grid; gap: 6px; padding: 0 20px 20px; }
.cat__num { font-size: 12px; font-weight: 500; letter-spacing: .22em; opacity: .7; }
.cat__title { font-family: var(--serif); font-weight: 500; text-transform: uppercase; font-size: clamp(22px, 1.8vw, 30px); line-height: 1; min-height: 2em; }
.cat__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 14px; letter-spacing: .06em; }
.cat__go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; transition: background .4s, color .4s, transform .6s var(--ease); }
.cat:hover .cat__go { background: var(--c-fg); color: var(--c-bg); transform: rotate(-45deg); }

/* ---------- Catalogue ---------- */
.filters-wrap {
  position: sticky; top: 76px; z-index: 20;
  display: flex; justify-content: center; max-width: var(--max); margin: 0 auto 34px;
  pointer-events: none; transition: top .6s var(--ease);
}
body.header-hidden .filters-wrap { top: 12px; }
.filters {
  position: relative; display: flex; gap: 2px; max-width: 100%; padding: 5px; border-radius: 999px;
  overflow-x: auto; scrollbar-width: none; pointer-events: auto;
  background: rgba(255, 234, 177, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(53, 34, 25, .22);
}
.filters::-webkit-scrollbar { display: none; }
.filter { position: relative; z-index: 1; flex: none; padding: 11px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: color .4s; }
.filter sup { margin-left: 4px; font-size: 10px; letter-spacing: 0; opacity: .6; }
.filter.is-active { color: var(--yellow); }
.filter__pill { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: var(--brown); transition: transform .55s var(--ease), width .55s var(--ease); }

.grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 34px 20px; transition: opacity .3s; }
.card {
  position: relative;
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s);
}
.card.is-in { opacity: 1; transform: none; }
.card__open { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--blue); cursor: zoom-in; }
.card__img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: transform 1.2s var(--ease), opacity .6s; }
.card__img.is-loaded { opacity: 1; }
.card:hover .card__img { transform: scale(1.05); }
.card__alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.card:hover .card__alt.is-ready { opacity: 1; transform: scale(1.05); }
.card__count {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(53, 34, 25, .72); color: var(--yellow);
  font-size: 12px; font-weight: 500; letter-spacing: .06em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card__count .ic { width: 15px; height: 15px; }
.card__badges, .lightbox__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.card__badges { position: absolute; top: 12px; left: 12px; right: 64px; z-index: 1; }
.badge { padding: 5px 10px; border-radius: 999px; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; }
.badge--new { background: var(--blue); color: var(--brown); }
.badge--sale, .badge--sold { background: var(--brown); color: var(--yellow); }
.badge--order { background: var(--yellow); color: var(--brown); }
.card.is-sold .card__img.is-loaded { opacity: .5; }
.card__add {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--yellow); color: var(--brown); box-shadow: 0 8px 20px -10px rgba(53, 34, 25, .7);
  opacity: 0; transform: scale(.7); transition: opacity .4s, transform .5s var(--ease), background .3s, color .3s;
}
.card:hover .card__add, .card__add:focus-visible, .card__add.is-in-cart { opacity: 1; transform: none; }
.card__add:hover, .card__add.is-in-cart { background: var(--brown); color: var(--yellow); }
.card__cap { display: grid; gap: 4px; padding: 12px 2px 0; }
.card__cat { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; opacity: .65; }
.card__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.card__price { font-size: 17px; }
.card__price b { font-weight: 700; }
.card__price s { margin-left: 4px; font-size: 14px; opacity: .55; }
.card__name { font-family: var(--serif); font-weight: 700; text-transform: uppercase; font-size: 16px; line-height: 1.15; letter-spacing: .02em; }
.card__sku { margin-left: auto; font-size: 12px; letter-spacing: .1em; opacity: .7; white-space: nowrap; }
@media (hover: none) { .card__add { opacity: 1; transform: none; } }

.more { display: flex; justify-content: center; margin-top: 20px; }
.more[hidden] { display: none; }
.more__count { opacity: .6; }

.ghost { position: fixed; z-index: 300; object-fit: cover; pointer-events: none; }

/* ---------- About ---------- */
.about { padding: clamp(90px, 11vw, 160px) var(--pad); overflow: hidden; }
.about__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__media { position: relative; aspect-ratio: 4 / 5; max-height: 720px; }
.about__sign { position: absolute; width: 86%; right: -16%; top: -10%; color: var(--blue); }
.about__photo { position: absolute; left: 0; top: 4%; width: 66%; height: 86%; overflow: hidden; border-radius: 999px 999px 0 0; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--sm { left: auto; right: 2%; top: auto; bottom: 0; width: 42%; height: 44%; border-radius: 0; box-shadow: 0 0 0 10px var(--brown); }
.about__text .h2 { margin-bottom: 30px; }
.about__text > p:not(.eyebrow) { max-width: 530px; margin-bottom: 18px; font-size: 19px; font-weight: 300; color: rgba(255, 234, 177, .88); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; padding-top: 32px; border-top: 1px solid rgba(179, 201, 206, .35); }
.stat { display: flex; flex-wrap: wrap; align-items: baseline; }
.stat__num { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 4.8vw, 70px); line-height: 1; }
.stat__suf { color: var(--blue); }
.stat__label { flex-basis: 100%; margin-top: 8px; font-size: 14px; letter-spacing: .03em; color: rgba(255, 234, 177, .75); }

/* ---------- Why ---------- */
.features { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(53, 34, 25, .3); }
.feature { padding: 36px clamp(16px, 2vw, 34px) 6px; border-left: 1px solid rgba(53, 34, 25, .2); }
.feature:first-child { padding-left: 0; border-left: 0; }
.feature__n { display: block; margin-bottom: 28px; font-family: var(--serif); font-weight: 500; font-size: 58px; line-height: 1; }
.feature h3 { margin-bottom: 12px; font-family: var(--serif); font-weight: 500; text-transform: uppercase; font-size: 26px; line-height: 1.02; }
.feature p { font-size: 17px; font-weight: 300; }

/* ---------- Steps ---------- */
.steps { max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.step { position: relative; display: flex; flex-direction: column; min-height: 340px; padding: clamp(28px, 3vw, 44px); overflow: hidden; background: var(--blue); color: var(--brown); }
.step--dark { background: var(--brown); color: var(--yellow); }
.step__n { margin-bottom: auto; font-family: var(--serif); font-weight: 500; font-size: clamp(70px, 6.4vw, 104px); line-height: .8; }
.step h3 { margin: 44px 0 12px; font-family: var(--serif); font-weight: 500; text-transform: uppercase; font-size: 30px; line-height: 1.02; }
.step p { font-size: 17px; font-weight: 300; }

/* ---------- CTA / contacts ---------- */
.cta { display: grid; place-items: center; padding: clamp(100px, 13vw, 190px) var(--pad); --tile: 260px; }
.cta__card { width: 100%; max-width: 780px; padding: clamp(40px, 6vw, 84px) clamp(24px, 5vw, 76px); background: var(--brown); color: var(--yellow); text-align: center; }
.cta__mark { width: 66px; margin: 0 auto 28px; color: var(--blue); }
.cta .h2 { max-width: none; font-size: clamp(34px, 4.6vw, 64px); }
.cta__card > p { max-width: 470px; margin: 22px auto 36px; font-size: 19px; font-weight: 300; color: rgba(255, 234, 177, .88); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.footer { padding: clamp(56px, 7vw, 96px) var(--pad) 26px; overflow: hidden; }
.footer__top { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: clamp(40px, 6vw, 84px); }
.footer__tag { max-width: 17ch; font-family: var(--serif); font-weight: 500; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; }
.footer__label { margin-bottom: 14px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); }
.footer__links a { display: flex; align-items: center; gap: 10px; width: fit-content; padding: 5px 0; color: rgba(255, 234, 177, .85); transition: color .3s; }
.footer__links a:hover { color: var(--blue); }
.footer__word { width: 100%; max-width: var(--max); margin: 0 auto; color: var(--yellow); clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease); }
.footer__word.is-in { clip-path: inset(0); }
.footer__bottom { max-width: var(--max); margin: 24px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; letter-spacing: .06em; color: rgba(255, 234, 177, .6); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 24px;
  background: rgba(53, 34, 25, .94); color: var(--yellow);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  justify-self: center; display: grid; grid-template-columns: min(56vw, 760px) 390px;
  height: min(calc(100svh - 48px), 920px); overflow: hidden;
  background: var(--yellow); color: var(--brown);
  transform: translateY(24px) scale(.98); transition: transform .7s var(--ease);
}
.lightbox.is-open .lightbox__stage { transform: none; }
.pv { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--blue); }
.lightbox__figure { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; background: var(--blue); }
.lightbox__figure img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .3s, transform .6s var(--ease); }
.pv.is-single .pv__thumbs, .pv.is-single .pv__arrow { display: none; }
.pv__thumbs { display: flex; gap: 8px; height: 96px; padding: 12px; overflow-x: auto; scrollbar-width: none; background: rgba(53, 34, 25, .07); }
.pv__thumbs::-webkit-scrollbar { display: none; }
.pv__thumb { flex: none; width: 60px; height: 72px; overflow: hidden; opacity: .5; transition: opacity .3s, box-shadow .3s; }
.pv__thumb:hover { opacity: .85; }
.pv__thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--brown); }
.pv__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pv__arrow {
  position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px;
  border-radius: 50%; background: rgba(255, 234, 177, .9); color: var(--brown); opacity: 0; transition: opacity .3s, background .3s, color .3s;
}
.pv__arrow--prev { left: 14px; }
.pv__arrow--next { right: 14px; }
.lightbox__figure:hover .pv__arrow, .pv__arrow:focus-visible { opacity: 1; }
.pv__arrow:hover { background: var(--brown); color: var(--yellow); }
.pv__count { position: absolute; left: 14px; bottom: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(53, 34, 25, .7); color: var(--yellow); font-size: 12px; letter-spacing: .12em; }
.pv__count:empty { display: none; }
@media (hover: none) { .pv__arrow { opacity: 1; } }
.lightbox__figure img.is-swapping { opacity: 0; transform: scale(.98); }
.lightbox__info { display: flex; flex-direction: column; padding: 44px 36px 30px; overflow-y: auto; }
.lightbox__info .eyebrow { margin-bottom: 12px; }
.lightbox__title { margin-bottom: 16px; font-family: var(--serif); font-weight: 500; text-transform: uppercase; font-size: 40px; line-height: 1; }
.lightbox__price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 16px; font-family: var(--serif); font-size: 32px; line-height: 1; }
.lightbox__price b { font-weight: 600; }
.lightbox__price s { font-size: 21px; opacity: .5; }
.lightbox__price:empty { display: none; }
.lightbox__ask { font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.lightbox__sku { margin-bottom: 18px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.lightbox__desc { margin-bottom: 20px; font-size: 17px; font-weight: 300; }
.lightbox__note { margin-bottom: 24px; padding: 14px 16px; background: var(--blue); font-size: 15px; }
.lightbox__actions { display: grid; gap: 10px; }
.lightbox__actions .btn { width: 100%; }
.lightbox__pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 24px; }
.lightbox__pager .round-btn { display: none; }
.lightbox__counter { font-size: 13px; letter-spacing: .14em; opacity: .7; }
.lightbox__close { position: absolute; top: 20px; right: 20px; z-index: 2; }

/* ---------- Cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 210; visibility: hidden; transition: visibility .7s; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(53, 34, 25, .55); opacity: 0; transition: opacity .5s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; display: flex; flex-direction: column;
  width: min(460px, 100%); height: 100%; background: var(--yellow); color: var(--brown);
  transform: translateX(100%); transition: transform .7s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid rgba(53, 34, 25, .15); }
.drawer__head h3 { font-family: var(--serif); font-weight: 500; text-transform: uppercase; font-size: 30px; line-height: 1; }
.drawer__body { flex: 1; overflow-y: auto; padding: 6px 24px; }
.drawer__foot { display: grid; gap: 10px; padding: 20px 24px 26px; border-top: 1px solid rgba(53, 34, 25, .15); }
.drawer__foot[hidden] { display: none; }
.drawer__note { margin-bottom: 6px; font-size: 15px; opacity: .85; }
.drawer__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; }
.drawer__total span { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.drawer__total-note { margin-top: -4px; font-size: 13px; opacity: .7; }
.ci__sku b { font-weight: 700; letter-spacing: .02em; }
.drawer__empty { display: grid; justify-items: center; gap: 14px; padding: 70px 10px; text-align: center; }
.drawer__empty .mark { width: 58px; }
.drawer__empty-title { font-family: var(--serif); font-weight: 500; text-transform: uppercase; font-size: 28px; }
.drawer__empty p:not(.drawer__empty-title) { max-width: 300px; font-weight: 300; }
.ci { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(53, 34, 25, .12); animation: ciIn .5s var(--ease); }
.ci__img { display: block; width: 64px; height: 80px; }
.ci img { width: 64px; height: 80px; object-fit: cover; background: var(--blue); }
.ci__name { font-family: var(--serif); font-weight: 700; text-transform: uppercase; font-size: 16px; line-height: 1.15; }
.ci__sku { font-size: 13px; letter-spacing: .1em; opacity: .7; }
.ci__rm { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; transition: background .3s; }
.ci__rm:hover { background: var(--blue); }
@keyframes ciIn { from { opacity: 0; transform: translateX(20px); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 400; max-width: calc(100vw - 32px);
  padding: 14px 24px; border-radius: 999px; background: var(--brown); color: var(--yellow);
  font-size: 14px; font-weight: 500; letter-spacing: .06em; text-align: center;
  box-shadow: 0 18px 40px -18px rgba(53, 34, 25, .8);
  opacity: 0; transform: translate(-50%, 140%); transition: transform .5s var(--ease), opacity .5s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* =================== Responsive =================== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .mnav { display: flex; }
  .header__actions { margin-left: auto; }
  .cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 clamp(220px, 34vw, 300px); scroll-snap-align: start; }
}
@media (max-width: 900px) {
  :root { --header: 68px; }
  .header__logo .wordmark { height: 24px; }
  .header.is-compact .header__bar { height: 60px; }
  .cart-btn__label { display: none; }
  .cart-btn { padding: 0 8px 0 12px; }
  .hero { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto 46vw 46vw; height: auto; min-height: 0; max-height: none; }
  .hero__intro { grid-column: 1 / 3; grid-row: 1; padding: 48px var(--pad) 52px; }
  .hero__slides { grid-column: 1; grid-row: 2 / 4; }
  .hero__brand { grid-column: 2; grid-row: 2; }
  .hero__pattern { grid-column: 2; grid-row: 3; --tile: 110px; }
  .about__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; width: 100%; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3) { padding-left: 0; border-left: 0; }
  .feature:nth-child(n + 3) { border-top: 1px solid rgba(53, 34, 25, .2); margin-top: 26px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step h3 { margin-top: 28px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__tag { grid-column: 1 / 3; }
  .lightbox { grid-template-columns: 1fr; padding: 0; }
  .lightbox__stage { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: start; height: 100svh; max-height: 100svh; overflow-y: auto; }
  .pv { min-height: auto; }
  .lightbox__figure { height: 60svh; flex: none; }
  .pv__thumbs { height: 84px; padding: 10px; }
  .pv__thumb { width: 52px; height: 64px; }
  .lightbox__info { padding: 26px 20px 34px; overflow: visible; }
  .lightbox__title { font-size: 34px; }
  .lightbox__nav { display: none; }
  .lightbox__pager .round-btn { display: grid; }
  .lightbox__close { top: 10px; right: 10px; background: rgba(53, 34, 25, .55); }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .lang__btn { padding: 8px 4px; }
  .lang__btn + .lang__btn { padding-left: 7px; margin-left: 2px; }
  .header__actions { gap: 10px; }
  .hero { grid-template-rows: auto 58vw 58vw; }
  .hero__title { font-size: clamp(50px, 15vw, 72px); }
  .hero__lead, .lead { font-size: 18px; }
  .btn { min-height: 50px; padding: 0 22px; }
  .cat { flex-basis: 72vw; }
  .filters-wrap { top: 70px; }
  .filter { padding: 10px 14px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 22px 10px; }
  .card__add { width: 38px; height: 38px; top: 6px; right: 6px; }
  .card__badges { top: 6px; left: 6px; right: 48px; gap: 4px; }
  .badge { padding: 4px 8px; font-size: 10px; letter-spacing: .1em; }
  .card__cap { gap: 2px; padding-top: 8px; }
  .card__cat { font-size: 10px; letter-spacing: .12em; }
  .card__price { font-size: 15px; }
  .card__name { font-size: 14px; }
  .card__sku { font-size: 11px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(3) { padding: 28px 0 4px; border-left: 0; }
  .feature + .feature { border-top: 1px solid rgba(53, 34, 25, .2); margin-top: 24px; }
  .feature__n { margin-bottom: 16px; font-size: 48px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__tag { grid-column: auto; }
  .cta { --tile: 170px; }
}

/* fallback when scripts fail: show everything statically */
.fallback .preloader { display: none; }
.fallback .reveal, .fallback .rise, .fallback .card, .fallback .hero .tile,
.fallback .hero__title .line > span, .fallback .footer__word { opacity: 1; transform: none; clip-path: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
