/* =========================================================
   AS COMPANY — design system
   ========================================================= */

/* ---------- Fonts (self-hosted: Google Fonts is unreliable in RU) ---------- */
@font-face { font-family: "Manrope"; font-weight: 300; font-display: swap; src: url(../fonts/manrope-cyrillic-300-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 300; font-display: swap; src: url(../fonts/manrope-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF, U+2212; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(../fonts/manrope-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(../fonts/manrope-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF, U+2212; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url(../fonts/manrope-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url(../fonts/manrope-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF, U+2212; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(../fonts/manrope-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(../fonts/manrope-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF, U+2212; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-400-italic.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-500-italic.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

/* ---------- Tokens ---------- */
:root {
  /* palette from the client's reference (references/content.png): warm near-black + champagne */
  --ink: #0d0c0b;          /* darkest background */
  --ink-2: #151311;
  --ink-line: rgba(234, 211, 195, .12);
  --on-ink: #f4efea;       /* text on dark */
  --on-ink-muted: rgba(244, 239, 234, .62);

  --paper: #12100e;        /* section background A */
  --cream: #1b1815;        /* section background B */
  --card: #211d1a;         /* cards, form */
  --text: #f4efea;
  --muted: #a39a92;
  --line: rgba(234, 211, 195, .13);

  --bronze: #cbb096;       /* champagne accent (buttons) */
  --bronze-light: #ead3c3; /* italic accent words */
  --bronze-dark: #cbb096;
  --r-btn: 10px;           /* buttons: soft rectangles like in the reference */

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --container: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .21, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--bronze); letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--bronze-light); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bronze); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--on-ink-muted);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--dark { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 28px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: 15px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn--sm { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn__arrow { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }
/* fill sweep on hover */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }

.btn--bronze { background: linear-gradient(135deg, var(--bronze-light), var(--bronze)); color: #1b140d; box-shadow: 0 10px 30px -12px rgba(180, 136, 92, .7); }
.btn--bronze::before { background: var(--on-ink); }
.btn--line { border: 1px solid rgba(239, 230, 218, .35); color: var(--on-ink); }
.btn--line::before { background: var(--on-ink); }
.btn--line:hover { color: var(--ink); border-color: var(--on-ink); }
.btn--ghost { border: 1px solid rgba(239, 230, 218, .3); color: var(--on-ink); }
.btn--ghost::before { background: var(--bronze); }
.btn--ghost:hover { border-color: var(--bronze); color: #1b140d; }
.btn--dark { background: var(--text); color: var(--paper); }
.btn--dark::before { background: var(--bronze); }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(239, 230, 218, .22); color: var(--on-ink); transition: border-color .3s, background .3s;
}
.icon-btn:hover { border-color: var(--bronze); background: rgba(180, 136, 92, .12); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.icon-btn svg .fill { fill: currentColor; stroke: none; }

.round-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(239, 230, 218, .3);
  color: var(--on-ink); font-size: 16px; transition: background .3s, border-color .3s, color .3s;
}
.round-btn:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--on-ink); transition: background .45s var(--ease), height .45s var(--ease), border-color .45s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  --header-h: 68px;
  background: rgba(20, 17, 14, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--ink-line);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 16px; color: var(--on-ink); }
.logo__name { font-size: 21px; font-weight: 300; letter-spacing: .14em; }
.logo__sub {
  font-size: 9px; line-height: 1.35; letter-spacing: .2em; text-transform: uppercase; color: var(--on-ink-muted);
  padding-left: 16px; border-left: 1px solid var(--ink-line);
}
.nav { display: flex; gap: 36px; margin-left: auto; }
.nav__link { position: relative; font-size: 14px; color: var(--on-ink-muted); transition: color .3s; padding: 6px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bronze);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--on-ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link--mobile { display: none; }
.header__actions { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(239, 230, 218, .25); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--on-ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(720px, 100svh); padding: calc(var(--header-h) + 40px) 0 72px;
  display: flex; align-items: center; overflow: hidden; color: var(--on-ink);
  background:
    radial-gradient(120% 80% at 75% 0%, #2a221a 0%, transparent 60%),
    linear-gradient(180deg, #17130f 0%, var(--ink) 100%);
}
/* film grain */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__glow {
  position: absolute; width: 900px; height: 900px; right: -120px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 180, 141, .22) 0%, rgba(215, 180, 141, 0) 62%);
  filter: blur(10px); animation: glow 9s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes glow { to { transform: translate(-60px, 40px) scale(1.08); opacity: .8; } }

.hero__sketch {
  position: absolute; right: max(-60px, calc((100vw - var(--container)) / 2 - 140px)); bottom: 70px; width: min(980px, 66vw); height: auto; pointer-events: none;
  stroke: rgba(215, 180, 141, .3); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}
.hero__sketch path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s var(--ease) forwards; }
.hero__sketch path:nth-child(2) { animation-delay: .25s; }
.hero__sketch path:nth-child(3), .hero__sketch path:nth-child(4) { animation-delay: .7s; }
.hero__sketch path:nth-child(5), .hero__sketch path:nth-child(6) { animation-delay: 1s; }
.hero__sketch path:nth-child(7) { animation-delay: 1.4s; }
.hero__sketch .hero__floor { stroke: rgba(215, 180, 141, .12); animation-duration: 4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title {
  margin: 24px 0 24px; font-weight: 300; font-size: clamp(42px, 5.3vw, 80px); line-height: 1.02; letter-spacing: -.025em;
}
.hero__title em { font-size: 1.08em; color: var(--bronze-light); padding-right: .06em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease-out) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }
.hero__lead { max-width: 470px; font-size: 17px; line-height: 1.65; color: var(--on-ink-muted); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__facts {
  list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 0;
  border-top: 1px solid var(--ink-line); padding-top: 26px; max-width: 600px;
}
.hero__facts li {
  flex: 1; display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.4; color: var(--on-ink-muted);
  padding: 0 18px; border-left: 1px solid var(--ink-line);
}
.hero__facts li:first-child { padding-left: 0; border-left: 0; }
.hero__facts svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--bronze-light); stroke-width: 1.2; stroke-linejoin: round; }

/* showcase arch with product photos */
.hero__showcase { position: relative; justify-self: end; width: min(100%, 520px); }
.arch {
  position: relative; aspect-ratio: 4 / 4.6; border-radius: 999px 999px 22px 22px; overflow: hidden;
  background: #fff; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(215, 180, 141, .25);
}
.arch::after { /* inner warm frame */
  content: ""; position: absolute; inset: 10px; border-radius: inherit; border: 1px solid rgba(180, 136, 92, .35); pointer-events: none;
}
.arch__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease);
}
.arch__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.arch__slide.is-active { opacity: 1; }
.arch__slide.is-active img { transform: scale(1); }
.showcase__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.showcase__caption { display: grid; gap: 2px; min-width: 0; }
.showcase__name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase__price { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--bronze-light); }
.showcase__nav { display: flex; align-items: center; gap: 10px; flex: none; }
.showcase__count { font-size: 13px; color: var(--on-ink-muted); margin-right: 6px; letter-spacing: .08em; }
.showcase__count b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; color: var(--on-ink); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; width: 24px; height: 40px; margin-left: -12px; z-index: 2;
  border: 1px solid rgba(239, 230, 218, .3); border-radius: 14px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; border-radius: 2px; background: var(--bronze-light); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section__head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__title { font-weight: 300; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.06; letter-spacing: -.02em; max-width: 900px; }
.section__title em { color: var(--bronze-dark); font-size: 1.08em; }
.placeholder { color: var(--muted); }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat-card { grid-column: span 2; }
.cat-card:nth-child(1), .cat-card:nth-child(2) { grid-column: span 3; }
.cat-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: box-shadow .6s var(--ease), transform .6s var(--ease), border-color .6s;
}
.cat-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #fff; }
.cat-card:nth-child(1) .cat-card__media, .cat-card:nth-child(2) .cat-card__media { aspect-ratio: 16 / 9.5; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.cat-card__body {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 22px;
  border-top: 1px solid var(--line);
}
.cat-card__name { font-size: clamp(21px, 1.9vw, 28px); font-weight: 300; letter-spacing: -.01em; line-height: 1.1; }
.cat-card__meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.cat-card__meta b { white-space: nowrap; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 19px; color: var(--bronze-dark); }
.cat-card__go {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: background .4s var(--ease), color .4s, border-color .4s, transform .5s var(--ease);
}
.cat-card:hover { box-shadow: 0 30px 60px -34px rgba(60, 40, 20, .45); transform: translateY(-4px); border-color: rgba(180, 136, 92, .4); }
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card:hover .cat-card__go { background: var(--text); color: var(--paper); border-color: var(--text); transform: rotate(-45deg); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-ink); padding: 56px 0; border-top: 1px solid var(--ink-line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; }
.footer__note, .footer__copy { color: var(--on-ink-muted); font-size: 14px; margin-top: 12px; }
.footer__links { display: grid; gap: 10px; font-size: 15px; }
.footer__links a { color: var(--on-ink-muted); transition: color .3s; }
.footer__links a:hover { color: var(--bronze-light); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .header__cta { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0; padding: calc(var(--header-h) + 30px) var(--pad) 40px;
    flex-direction: column; gap: 6px; background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  /* backdrop-filter would make the fixed menu a child of the header box — drop it while open */
  .header.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
  .nav__link { font-size: 30px; font-weight: 300; color: var(--on-ink); padding: 10px 0; border-bottom: 1px solid var(--ink-line); transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease-out), opacity .6s; }
  .nav.is-open .nav__link { transform: none; opacity: 1; }
  .nav.is-open .nav__link:nth-child(2) { transition-delay: .05s; }
  .nav.is-open .nav__link:nth-child(3) { transition-delay: .1s; }
  .nav.is-open .nav__link:nth-child(4) { transition-delay: .15s; }
  .nav.is-open .nav__link:nth-child(5) { transition-delay: .2s; }
  .nav__link::after { display: none; }
  .nav__link--mobile { display: block; font-size: 16px; color: var(--bronze-light); border: 0; margin-top: 18px; }
  .header__actions { margin-left: auto; }

  .hero { padding-top: calc(var(--header-h) + 28px); min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__showcase { justify-self: center; width: min(100%, 440px); }
  .hero__sketch { display: none; }
  .hero__scroll { display: none; }

  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-card, .cat-card:nth-child(1), .cat-card:nth-child(2) { grid-column: span 1; }
  .cat-card:nth-child(2) .cat-card__media { aspect-ratio: 4 / 3; }
  .cat-card:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 560px) {
  .logo__sub { display: none; }
  .hero__lead { font-size: 16px; }
  .hero__buttons .btn { width: 100%; }
  .hero__facts { flex-direction: column; gap: 14px; margin-top: 40px; }
  .hero__facts li { padding: 0; border: 0; }
  .hero__facts br { display: none; }
  .cat-card__body { padding: 14px 14px 16px; }
  .cat-card__name { font-size: 18px; }
  .cat-card__go { display: none; }
  .cat-card__meta b { font-size: 16px; }
}

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

/* =========================================================
   Catalog
   ========================================================= */
.catalog__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font-size: 14px; color: var(--text); transition: background .35s var(--ease), color .35s, border-color .35s;
}
.chip sup { font-size: 10px; color: var(--muted); margin-left: 2px; transition: color .35s; }
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--text); color: var(--paper); border-color: var(--text); }
.chip.is-active sup { color: var(--bronze-light); }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sort select {
  appearance: none; -webkit-appearance: none; height: 42px; padding: 0 38px 0 16px; border-radius: 999px; border: 1px solid var(--line);
  font: inherit; font-size: 14px; color: var(--text); cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231f1a15' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 16px center;
}

.products {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 20px;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.products.is-switching { opacity: 0; transform: translateY(10px); }

.pcard { display: flex; flex-direction: column; min-width: 0; }
.pcard__media {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3.3; border-radius: var(--radius); overflow: hidden;
  background: #fff; cursor: zoom-in;
}
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.2s var(--ease-out); }
.pcard__alt { opacity: 0; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard:hover .pcard__alt { opacity: 1; }
.pcard__count {
  position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; font-size: 11px; letter-spacing: .04em;
  background: rgba(251, 249, 246, .88); color: var(--text); backdrop-filter: blur(6px);
}
.pcard__body { padding: 16px 4px 0; display: flex; flex-direction: column; flex: 1; }
.pcard__cat { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pcard__title { font-size: 19px; font-weight: 400; line-height: 1.3; margin-top: 6px; letter-spacing: -.005em; }
.pcard__title button { text-align: left; }
.pcard__title button:hover { color: var(--bronze-dark); }
.pcard__dims { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; }
.pcard__price { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 25px; color: var(--text); white-space: nowrap; }
.pcard__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; transition: background .35s var(--ease), color .35s, border-color .35s;
}
.pcard__btn span { transition: transform .35s var(--ease); }
.pcard__btn:hover { background: var(--text); color: var(--paper); border-color: var(--text); }
.pcard__btn:hover span { transform: translateX(3px); }
.catalog__note { margin-top: 48px; text-align: center; color: var(--muted); }
.catalog__note a { color: var(--bronze-dark); border-bottom: 1px solid currentColor; }

/* =========================================================
   Product dialog
   ========================================================= */
html.is-locked { overflow: hidden; }
.pm {
  width: min(1180px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 24px;
  background: var(--paper); color: var(--text); overflow: hidden; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .5);
}
.pm::backdrop { background: rgba(14, 11, 9, .62); backdrop-filter: blur(6px); }
.pm[open] { animation: pm-in .5s var(--ease-out); }
.pm[open]::backdrop { animation: fade-in .4s var(--ease); }
.pm.is-closing { animation: pm-out .26s var(--ease) forwards; }
.pm.is-closing::backdrop { animation: fade-out .26s var(--ease) forwards; }
@keyframes pm-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes pm-out { to { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.pm__close {
  position: absolute; right: 16px; top: 16px; z-index: 5; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(251, 249, 246, .92); font-size: 26px; line-height: 1; border: 1px solid var(--line);
  transition: transform .4s var(--ease), background .3s;
}
.pm__close:hover { transform: rotate(90deg); background: #fff; }
.pm__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: 100%; height: min(820px, calc(100dvh - 40px)); }

.pm__gallery { display: flex; flex-direction: column; gap: 12px; padding: 20px; min-height: 0; background: var(--card); }
.pm__stage { position: relative; overflow: hidden; border-radius: 16px; background: #fff; flex: 1; min-height: 360px; touch-action: pan-y; user-select: none; }
.pm__track { display: flex; height: 100%; transition: transform .6s var(--ease-out); }
.pm__slide { flex: 0 0 100%; margin: 0; height: 100%; }
.pm__slide img { width: 100%; height: 100%; object-fit: contain; }
.pm__arrow {
  position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%;
  background: rgba(251, 249, 246, .92); border: 1px solid var(--line); font-size: 16px; transition: background .3s, transform .3s var(--ease);
}
.pm__arrow:hover { background: var(--text); color: var(--paper); }
.pm__arrow--prev { left: 14px; }
.pm__arrow--next { right: 14px; }
.pm__counter { position: absolute; right: 14px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(31, 26, 21, .72); color: #fff; font-size: 12px; letter-spacing: .06em; }
.pm__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pm__thumbs::-webkit-scrollbar { display: none; }
.pm__thumb { flex: 0 0 76px; height: 60px; border-radius: 10px; overflow: hidden; background: #fff; opacity: .55; outline: 1px solid transparent; outline-offset: -1px; transition: opacity .3s, outline-color .3s; }
.pm__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pm__thumb:hover { opacity: .85; }
.pm__thumb.is-active { opacity: 1; outline: 2px solid var(--bronze); }

.pm__info { padding: 44px 40px 36px; overflow-y: auto; overscroll-behavior: contain; }
.pm__cat { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pm__title { font-weight: 300; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.015em; margin: 10px 50px 0 0; }
.pm__price { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 34px; color: var(--bronze-dark); margin-top: 12px; }
.pm__dims { font-size: 14px; color: var(--muted); margin-top: 2px; }
.pm__dims:empty { display: none; }

.opt { border: 0; padding: 0; margin: 26px 0 0; }
.opt__label { padding: 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; margin-bottom: 12px; }
.opt__label span { font-weight: 400; color: var(--muted); }
.opt__hint { font-size: 12px; color: var(--muted); margin-top: 10px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; background: var(--c); position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .3s var(--ease);
}
.swatch--photo { background: var(--img) center / cover; }
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid transparent; transition: border-color .3s; }
.swatch:hover { transform: scale(1.08); }
.swatch.is-active::after { border-color: var(--text); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--cream); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 9px 18px; border-radius: 999px; font-size: 14px; transition: background .3s, color .3s, box-shadow .3s; }
.seg input:checked + span { background: var(--card); box-shadow: 0 2px 8px rgba(31, 26, 21, .1); }
.seg input:focus-visible + span { outline: 2px solid var(--bronze); }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.sizes[hidden] { display: none; }
.sizes label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.sizes input {
  height: 46px; width: 100%; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  font: inherit; font-size: 15px; color: var(--text); transition: border-color .3s;
}
.sizes input:focus { border-color: var(--bronze); outline: none; }

.pm__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.pm__actions .btn { flex: 1 1 220px; }
.pm__avito { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; }
.pm__avito:hover { color: var(--text); border-color: var(--text); }

.pm__more { margin-top: 26px; border-top: 1px solid var(--line); }
.pm__more summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; font-size: 14px; font-weight: 600;
}
.pm__more summary::-webkit-details-marker { display: none; }
.pm__more summary::after { content: "+"; font-weight: 300; font-size: 22px; transition: transform .35s var(--ease); }
.pm__more[open] summary::after { transform: rotate(45deg); }
.pm__more + .pm__more { margin-top: 0; }
.specs { margin: 0 0 8px; display: grid; gap: 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; }
.pm__descr { font-size: 14px; line-height: 1.7; color: #4a4038; padding-bottom: 8px; }
.pm__descr p + p { margin-top: 10px; }

@media (max-width: 900px) {
  .pm { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .pm__grid { display: block; height: 100dvh; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
  .pm__gallery { min-width: 0; }
  .pm__info { display: flex; flex-direction: column; padding-bottom: 0; }
  .pm__actions {
    order: 99; position: sticky; bottom: 0; z-index: 3; margin: 24px -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(247, 243, 237, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); gap: 14px;
  }
  .pm__actions .btn { flex: 1 1 auto; --h: 50px; }
  .pm__info { overflow: visible; padding: 22px 20px 0; }
  .pm__gallery { padding: 0 0 12px; }
  .pm__stage { border-radius: 0; flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .pm__thumbs { padding: 0 20px; }
  .pm__arrow { display: none; }
  .pm[open] { animation-name: pm-in-up; }
  @keyframes pm-in-up { from { transform: translateY(40px); opacity: 0; } }
  .catalog__bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .catalog__bar > * { min-width: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .sort { justify-content: space-between; }
}
@media (max-width: 640px) {
  .products { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .pcard__media { border-radius: 14px; }
  .pcard__count { left: 8px; bottom: 8px; font-size: 10px; padding: 3px 8px; }
  .pcard__body { padding-top: 10px; }
  .pcard__cat { display: none; }
  .pcard__title { font-size: 15px; margin-top: 0; }
  .pcard__dims { font-size: 11px; }
  .pcard__foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; margin-top: 10px; }
  .pcard__price { font-size: 21px; }
  .pcard__btn { justify-content: center; height: 36px; }
  .sizes { grid-template-columns: 1fr 1fr 1fr; }
  .seg { display: flex; }
  .seg label { flex: 1; text-align: center; }
  .seg span { padding: 9px 8px; }
}
.pm:focus { outline: none; }

/* =========================================================
   Dark sections (custom, order)
   ========================================================= */
.custom, .order { background: var(--ink); color: var(--on-ink); overflow: hidden; }
.order { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.custom .section__title em, .order .section__title em { color: var(--bronze-light); }

/* ---------- Custom ---------- */
.custom::before {
  content: ""; position: absolute; width: 760px; height: 760px; left: -280px; bottom: -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 136, 92, .16), transparent 65%); pointer-events: none;
}
.custom__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.custom__text .section__title { margin: 20px 0 22px; }
.custom__lead { color: var(--on-ink-muted); font-size: 17px; max-width: 520px; }
.custom__list { list-style: none; padding: 0; margin: 40px 0 44px; display: grid; gap: 0; }
.custom__list li { display: flex; gap: 22px; padding: 20px 0; border-top: 1px solid var(--ink-line); }
.custom__list li:last-child { border-bottom: 1px solid var(--ink-line); }
.custom__num { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1; color: var(--bronze-light); min-width: 34px; }
.custom__list h3 { font-size: 18px; font-weight: 500; }
.custom__list p { color: var(--on-ink-muted); font-size: 15px; margin-top: 4px; }

.blueprint {
  position: relative; margin: 0; padding: 28px; border-radius: 28px;
  border: 1px solid var(--ink-line); background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
}
.blueprint svg { width: 100%; height: auto; display: block; }
.bp-grid path { stroke: rgba(239, 230, 218, .06); stroke-width: 1; }
.bp-sofa path { stroke: var(--on-ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.bp-dim path { stroke: var(--bronze-light); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.bp-label { fill: var(--bronze-light); font-family: var(--serif); font-style: italic; font-size: 17px; opacity: 0; transition: opacity 1s var(--ease) 2.2s; }
.blueprint.is-in .bp-sofa path { animation: draw 2.4s var(--ease) forwards; }
.blueprint.is-in .bp-sofa path:nth-child(n+3) { animation-delay: .5s; }
.blueprint.is-in .bp-dim path { animation: draw 1.4s var(--ease) 1.5s forwards; }
.blueprint.is-in .bp-label { opacity: 1; }
.blueprint__swatches { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.blueprint__swatches span {
  width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
  transform: scale(0); transition: transform .6s var(--ease-out);
}
.blueprint.is-in .blueprint__swatches span { transform: scale(1); }
.blueprint__swatches span:nth-child(1) { transition-delay: 2.4s; }
.blueprint__swatches span:nth-child(2) { transition-delay: 2.48s; }
.blueprint__swatches span:nth-child(3) { transition-delay: 2.56s; }
.blueprint__swatches span:nth-child(4) { transition-delay: 2.64s; }
.blueprint__swatches span:nth-child(5) { transition-delay: 2.72s; }
.blueprint__swatches span:nth-child(6) { transition-delay: 2.8s; }
.blueprint__swatches span:nth-child(7) { transition-delay: 2.88s; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 30px 26px 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(60, 40, 20, .4); }
.step__n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 26px;
  font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--bronze-dark); border: 1px solid rgba(180, 136, 92, .45);
}
.step h3 { font-size: 19px; font-weight: 500; }
.step p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 53px; right: -21px; width: 22px; height: 1px; background: rgba(180, 136, 92, .5);
}

/* ---------- Order ---------- */
.order__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.order__intro .section__title { margin: 20px 0 20px; }
.order__lead { color: var(--on-ink-muted); font-size: 17px; max-width: 440px; }
.insta {
  display: flex; align-items: center; gap: 16px; margin-top: 44px; padding: 16px 20px; max-width: 420px;
  border-radius: 18px; border: 1px solid var(--ink-line); transition: border-color .4s, background .4s;
}
.insta:hover { border-color: rgba(215, 180, 141, .5); background: rgba(255, 255, 255, .03); }
.insta__icon {
  flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f1c27d, #c2556c 55%, #6b4bc8);
}
.insta__icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.6; }
.insta__icon svg .fill { fill: #fff; stroke: none; }
.insta small { display: block; font-size: 12px; color: var(--on-ink-muted); }
.insta > span:nth-child(2) { font-size: 17px; }
.insta__go { margin-left: auto; color: var(--bronze-light); transition: transform .4s var(--ease); }
.insta:hover .insta__go { transform: translate(3px, -3px); }

.form {
  display: grid; gap: 18px; padding: clamp(24px, 3.4vw, 44px); border-radius: 26px;
  background: var(--paper); color: var(--text); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .7);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 13px; font-weight: 500; padding: 0; margin-bottom: 0; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  font: inherit; font-size: 16px; color: var(--text); transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field input { height: 52px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(180, 136, 92, .14); }
.field.is-error input { border-color: #b4483a; box-shadow: 0 0 0 4px rgba(180, 72, 58, .1); }
.field--choice legend { margin-bottom: 9px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
.pills input:checked + span { background: var(--text); color: var(--paper); border-color: var(--text); }
.pills input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--text); }
.check.is-error span { color: #b4483a; }
.form__submit { width: 100%; }
.form__submit:disabled { opacity: .6; pointer-events: none; }
.form__status { font-size: 14px; min-height: 1px; }
.form__status:empty { display: none; }
.form__status[data-type="ok"] { color: #2f6a4f; }
.form__status[data-type="error"] { color: #b4483a; }
.form__status[data-type="warn"] { color: var(--bronze-dark); padding: 12px 14px; border-radius: 12px; background: rgba(180, 136, 92, .12); }

.form__product {
  display: flex; align-items: center; gap: 14px; padding: 10px; padding-right: 14px; border-radius: 16px; background: var(--cream);
  animation: pm-in .5s var(--ease-out);
}
.form__product[hidden] { display: none; }
.form__product img { width: 72px; height: 58px; border-radius: 10px; object-fit: cover; background: #fff; flex: none; }
.form__product > div { min-width: 0; flex: 1; }
.form__product-title { font-weight: 500; font-size: 15px; }
.form__product-meta { font-size: 13px; color: var(--muted); }
.form__product-x { flex: none; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; color: var(--muted); transition: background .3s, color .3s; }
.form__product-x:hover { background: var(--paper); color: var(--text); }

@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
}
@media (max-width: 900px) {
  .custom__inner, .order__inner { grid-template-columns: 1fr; }
  .blueprint { padding: 16px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 22px 20px; display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; }
  .step__n { margin: 0; grid-row: span 2; }
  .step p { margin-top: 2px; }
  .form__row { grid-template-columns: 1fr; }
  .pills { flex-wrap: nowrap; gap: 6px; }
  .pills label { flex: 1; }
  .pills span { padding: 10px 6px; text-align: center; font-size: 13px; }
  .custom__lead, .order__lead { font-size: 16px; }
}
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field > span small { font-weight: 400; color: var(--muted); }
.field.is-hidden { display: none; }

/* =========================================================
   Reference theme (client feedback 2026-11-19):
   colours + button style from references/content.png,
   hero background = photos of the company's own works
   ========================================================= */

/* ---------- Buttons: soft rectangles, champagne fill / thin outline ---------- */
.btn { border-radius: var(--r-btn); }
.btn--bronze, .btn--dark {
  background: linear-gradient(180deg, #d8bca1 0%, #c7a98c 100%); color: #1a120c;
  box-shadow: 0 12px 30px -16px rgba(203, 176, 150, .55);
}
.btn--bronze::before, .btn--dark::before { background: #f1e5da; }
.btn--line, .btn--ghost { border: 1px solid rgba(234, 211, 195, .42); color: var(--on-ink); background: transparent; }
.btn--line::before, .btn--ghost::before { background: var(--on-ink); }
.btn--line:hover, .btn--ghost:hover { color: var(--ink); border-color: var(--on-ink); }

/* secondary hero action: round icon + two-line label (as in the reference) */
.hero__more { display: inline-flex; align-items: center; gap: 14px; color: var(--on-ink); font-size: 14px; line-height: 1.3; }
.hero__more-icon {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid rgba(234, 211, 195, .42); transition: background .4s var(--ease), border-color .4s, color .4s;
}
.hero__more-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.hero__more:hover .hero__more-icon { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.hero__buttons { align-items: center; gap: 28px; }

.chip, .sort select, .pcard__btn, .pills span { border-radius: var(--r-btn); }
.chip.is-active { background: var(--bronze); color: #1a120c; border-color: var(--bronze); }
.chip.is-active sup { color: rgba(26, 18, 12, .6); }
.chip:hover { border-color: var(--bronze); }
.sort select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f4efea' stroke-width='1.3'/%3E%3C/svg%3E"); }
.sort select option { background: var(--card); color: var(--text); }
.pcard__btn:hover, .cat-card:hover .cat-card__go { background: var(--bronze); color: #1a120c; border-color: var(--bronze); }
.pills input:checked + span { background: var(--bronze); color: #1a120c; border-color: var(--bronze); }
.seg { border-radius: calc(var(--r-btn) + 4px); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.seg span { border-radius: var(--r-btn); }
.seg input:checked + span { background: var(--bronze); color: #1a120c; box-shadow: none; }

/* ---------- Header ---------- */
.header.is-scrolled { background: rgba(13, 12, 11, .84); }

/* ---------- Hero: photos of their works instead of a flat colour ---------- */
.hero { background: var(--ink); }
.hero__sketch { display: none; }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg-slide {
  position: absolute; inset: -2%; background: center / cover no-repeat; opacity: 0;
  transform: scale(1.06); transition: opacity 2s var(--ease), transform 9s linear;
}
.hero__bg-slide.is-active { opacity: 1; transform: scale(1); }
.hero__bg::after { /* darken for legibility: strong on the left (text), lighter on the right */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 12, 11, .94) 0%, rgba(13, 12, 11, .8) 38%, rgba(13, 12, 11, .55) 70%, rgba(13, 12, 11, .62) 100%),
    linear-gradient(180deg, rgba(13, 12, 11, .55) 0%, rgba(13, 12, 11, 0) 25%, rgba(13, 12, 11, 0) 70%, var(--ink) 100%);
}
.hero__glow { background: radial-gradient(circle, rgba(234, 211, 195, .1) 0%, rgba(234, 211, 195, 0) 62%); z-index: 1; }
.hero::after { z-index: 1; }
.arch { box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(234, 211, 195, .22); }
.arch::after { border-color: rgba(203, 176, 150, .35); }

/* ---------- Sections: subtle warm light instead of flat fills ---------- */
.section--paper { background: radial-gradient(70% 50% at 90% 0%, rgba(203, 176, 150, .07), transparent 70%), var(--paper); }
.section--cream { background: radial-gradient(60% 45% at 5% 100%, rgba(203, 176, 150, .06), transparent 70%), var(--cream); }
.section__title em, .custom .section__title em, .order .section__title em { color: var(--bronze-light); }
.custom::before { background: radial-gradient(circle, rgba(203, 176, 150, .1), transparent 65%); }

/* order section: a dimmed photo of their work in the background */
.order { isolation: isolate; }
.order::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22;
  background: center / cover no-repeat; /* photo is set by .bg-in (lazy, see app.js) */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 75%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 75%);
}

/* ---------- Cards / dialog on dark ---------- */
.cat-card:hover, .step:hover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); border-color: rgba(203, 176, 150, .35); }
.pcard__count { background: rgba(13, 12, 11, .7); color: var(--on-ink); }
.pm { background: var(--paper); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9), 0 0 0 1px var(--line); }
.pm::backdrop { background: rgba(5, 5, 4, .74); }
.pm__close, .pm__arrow { background: rgba(21, 19, 17, .82); color: var(--text); border-color: var(--line); }
.pm__close:hover { background: var(--card); }
.pm__arrow:hover { background: var(--bronze); color: #1a120c; }
.pm__descr { color: rgba(244, 239, 234, .74); }
.pm__actions { background: transparent; }
.step__n { color: var(--bronze-light); border-color: rgba(203, 176, 150, .4); }
.step:not(:last-child)::after { background: rgba(203, 176, 150, .45); }

/* ---------- Form on dark ---------- */
.form { background: rgba(33, 29, 26, .92); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.field input, .field textarea { background: rgba(255, 255, 255, .03); }
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 239, 234, .35); }
.field input:focus, .field textarea:focus { border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(203, 176, 150, .16); }
.field.is-error input { border-color: #e0806f; box-shadow: 0 0 0 4px rgba(224, 128, 111, .14); }
.check input { accent-color: var(--bronze); }
.check.is-error span, .form__status[data-type="error"] { color: #e8907f; }
.form__status[data-type="ok"] { color: #9fd4b3; }
.form__status[data-type="warn"] { color: var(--bronze-light); background: rgba(203, 176, 150, .1); }
.form__product { background: rgba(255, 255, 255, .05); }
.skip { color: #1a120c; }
@media (max-width: 900px) {
  .pm__actions { background: rgba(18, 16, 14, .94); }
}
@media (max-width: 560px) {
  .hero__buttons { gap: 18px; }
  .hero__more { width: 100%; justify-content: center; }
}
:root { color-scheme: dark; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 900px) {
  .hero__bg::after { background: linear-gradient(180deg, rgba(13, 12, 11, .78) 0%, rgba(13, 12, 11, .72) 55%, var(--ink) 100%); }
  .order::before { -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 60%); mask-image: linear-gradient(180deg, #000 0%, transparent 60%); }
}

/* ---------- Hero showcase v2: dark glass passe-partout, 4:3 like the photos (no awkward crop) ---------- */
.hero__showcase { width: min(100%, 600px); }
.arch {
  aspect-ratio: 4 / 3; border-radius: 26px; padding: 0; background: rgba(21, 19, 17, .55);
  border: 1px solid rgba(234, 211, 195, .2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9);
}
.arch::after { /* thin champagne line around the photo */
  inset: 11px; border-radius: 17px; border: 1px solid rgba(234, 211, 195, .28);
}
.arch__slide { inset: 12px; border-radius: 16px; overflow: hidden; }
.arch__slide img { transform: scale(1.04); }
.arch__slide::after { /* soft vignette so the photo melts into the dark page */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(13, 12, 11, .38) 100%);
}
.showcase__bar { margin-top: 20px; padding: 0 6px; }
@media (max-width: 900px) {
  .hero__showcase { width: 100%; }
  .arch { border-radius: 20px; }
  .arch::after { inset: 8px; border-radius: 13px; }
  .arch__slide { inset: 9px; border-radius: 12px; }
}
.arch__slide { margin: 0; } /* <figure> has default UA margins */

/* ---------- Middle of the page (categories + catalog): lighter warm gradient, not a flat brown ---------- */
#categories {
  background:
    radial-gradient(55% 45% at 100% 30%, rgba(234, 211, 195, .14), transparent 70%),
    radial-gradient(50% 40% at 0% 85%, rgba(203, 176, 150, .09), transparent 70%),
    linear-gradient(180deg, #12100e 0%, #1f1a17 35%, #2a2420 100%);
}
#catalog {
  background:
    radial-gradient(45% 30% at 0% 12%, rgba(234, 211, 195, .16), transparent 70%),
    radial-gradient(50% 30% at 100% 45%, rgba(203, 176, 150, .17), transparent 70%),
    radial-gradient(45% 30% at 0% 80%, rgba(234, 211, 195, .13), transparent 70%),
    linear-gradient(180deg, #2a2420 0%, #362e28 30%, #322b25 65%, #1d1a17 92%, #0d0c0b 100%);
}
@media (max-width: 640px) { .pcard__btn { height: 42px; } } /* comfortable touch target */

/* ---------- very narrow phones (320–360 px): keep logo, eyebrow and size switch on one line ---------- */
.logo__name { white-space: nowrap; }
@media (max-width: 360px) {
  .logo__name { font-size: 17px; letter-spacing: .1em; }
  .header__actions { gap: 8px; }
  .icon-btn, .burger { width: 42px; height: 42px; }
  .burger span { left: 12px; right: 12px; }
  .burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
  .burger[aria-expanded="true"] span:first-child, .burger[aria-expanded="true"] span:last-child { top: 20px; }
  .eyebrow { letter-spacing: .14em; gap: 10px; font-size: 10px; }
  .eyebrow::before { width: 22px; }
  .hero .eyebrow { white-space: nowrap; }
  .seg span { font-size: 13px; padding: 9px 4px; white-space: nowrap; }
}

.order.bg-in::before { background-image: url("../img/products/8267288220/2.jpg"); }
/* iOS Safari zooms into inputs with font-size < 16px — keep them at 16px on phones */
@media (max-width: 900px) { .sort select, .sizes input { font-size: 16px; } }
