/* mebledim — storefront stylesheet, design 1b «Світлий редакційний» (2026-12-02).
   Tokens below are the public API for shop.css and supplier styles: keep the names stable. */
:root {
  /* 1b design tokens */
  --bg: #F3EFE9;        /* page background */
  --ink: #1C1B1A;       /* text, primary buttons */
  --mute: #5E574F;      /* secondary text */
  --acc: #A94F31;       /* terracotta accent */
  --acc-dark: #8F4128;  /* accent hover */
  --line: #CFC7BB;      /* thin dividers, field borders */
  --rule: #1C1B1A;      /* main 1px section rules */
  --stripe: repeating-linear-gradient(135deg, #E5DED4 0 14px, #EBE5DC 14px 28px); /* photo placeholder */
  --display: "Forum", Georgia, "Times New Roman", serif;               /* headings, names, accent prices */
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; /* text, menu, buttons */
  --paper: #FBF9F5;     /* fields and raised panels */
  --tint: #E9E3DA;      /* quiet fill (footer, hovers) */
  --soft: #6E665E;      /* tertiary text, AA on --bg */
  --ok: #3F6B4A;  --ok-bg: #E4ECE1;
  --err: #A33232; --err-bg: #F6E3DF;
  --container: 1280px;  /* incl. side gutters */
  --gutter: 56px;
  --header-h: 76px;

  /* Legacy aliases: older templates and supplier CSS still read these. */
  --bg-alt: var(--tint);
  --surface: var(--paper);
  --ink-2: var(--mute);
  --ink-3: var(--soft);
  --sand: #E5DED4;
  --accent: var(--acc);
  --accent-dark: var(--acc-dark);
  --accent-light: #F1E3DB;
  --success: var(--ok);
  --success-bg: var(--ok-bg);
  --danger: var(--err);
  --danger-bg: var(--err-bg);
  --radius: 0px;
  --radius-sm: 0px;
  --shadow: 0 18px 40px rgba(28, 27, 26, .10);
  --shadow-sm: 0 2px 10px rgba(28, 27, 26, .06);
  --font: var(--body);
  --font-head: var(--display);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--acc); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--acc); color: #fff; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 1000; font-weight: 700; }
.skip-link:focus { left: 8px; color: var(--bg); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main, main div, main aside, main form, fieldset { min-width: 0; }
h1, h2, h3, p, dd, td, .footer__list, .breadcrumbs { overflow-wrap: break-word; }
input, select, textarea { max-width: 100%; min-width: 0; }
input::placeholder, textarea::placeholder { color: var(--soft); opacity: 1; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
[id] { scroll-margin-top: 120px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(880px + 2 * var(--gutter)); }
.container--text { max-width: calc(760px + 2 * var(--gutter)); }
.main { min-height: 60vh; }
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section--flush { padding-top: 48px; }
.section--alt { background: var(--tint); }
.section--catalog { padding-top: 32px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section__head--mt { margin-top: 72px; }
.section__title { font-family: var(--display); font-weight: 400; font-size: 56px; line-height: 1; letter-spacing: -.005em; margin: 0; }
.section__title--sm { font-size: 36px; }
.page-head { padding: 36px 0 44px; border-bottom: 1px solid var(--rule); }
.page-head__inner { display: grid; grid-template-columns: 5fr 7fr; gap: 0 48px; align-items: end; }
.page-head .page-title { margin-bottom: 0; }
.page-head .page-lead { margin: 0; }
.page-title { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 5.2vw, 72px); line-height: .98; letter-spacing: -.01em; margin: 14px 0 24px; }
.page-lead { color: var(--mute); font-size: 18px; line-height: 1.6; max-width: 620px; }
.eyebrow { display: inline-block; font-family: var(--body); font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin-bottom: 14px; }
.eyebrow--light { color: #E7B59F; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.breadcrumbs a { color: var(--mute); }
.breadcrumbs a:hover { color: var(--acc); }
.breadcrumbs > span:last-child { color: var(--ink); }
.grid { display: grid; gap: 44px 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 5fr 7fr; }
.split__aside { padding-right: 48px; }
.split__aside .section__title { margin-bottom: 18px; }
.split__text { color: var(--mute); font-size: 17px; max-width: 420px; margin: 0 0 28px; }
.messages { padding-top: 20px; }
.alert { padding: 14px 18px; margin-bottom: 10px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--ink); }
.alert--success { background: var(--ok-bg); border-color: #B9CDB6; border-left-color: var(--ok); color: var(--ok); }
.alert--error { background: var(--err-bg); border-color: #E6BDB4; border-left-color: var(--err); color: var(--err); }
.empty { text-align: center; padding: 64px 20px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.empty h2, .empty h3 { font-size: 36px; }
.empty p { color: var(--mute); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 24px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--body); font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; white-space: normal;
  transition: background .16s, color .16s, border-color .16s;
}
.btn--primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn--accent { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.btn--lg { min-height: 58px; padding: 17px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--mute); padding: 6px 10px; }
.icon-btn:hover { color: var(--err); background: var(--err-bg); }
.link-arrow { font-size: 15px; font-weight: 600; color: var(--acc); white-space: nowrap; }
.link-arrow:hover { color: var(--ink); }
.link-arrow::after { content: " →"; }
.link-arrow--back::after { content: ""; }
.link-arrow--back::before { content: "← "; }
.link-line {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; cursor: pointer;
}
.link-line:hover { color: var(--acc); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--rule); }
.header__inner { display: flex; align-items: center; gap: 28px; max-width: var(--container); min-height: var(--header-h); margin: 0 auto; padding: 0 var(--gutter); }
.header__spacer { flex: 1; }
.header__meta { flex: none; font-size: 14px; color: var(--mute); white-space: nowrap; }
.header__phone { flex: none; font-size: 15px; font-weight: 700; white-space: nowrap; }
.nav { display: flex; align-items: center; }
.nav__head, .nav__mobile-extra { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: block; padding: 10px 0; color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav__link:hover { color: var(--acc); }
.nav__caret { position: relative; width: 22px; height: 40px; margin-left: 1px; padding: 0; border: 0; background: none; color: var(--ink); }
.nav__caret::after { content: ""; position: absolute; left: 7px; top: 15px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s, top .15s; }
.nav__item--dropdown.is-open .nav__caret::after { transform: rotate(-135deg); top: 19px; }
.nav__caret:hover { color: var(--acc); }

.dropdown {
  list-style: none; margin: 0; padding: 10px 0; position: absolute; top: calc(100% + 18px); left: -24px; min-width: 300px;
  background: var(--bg); border: 1px solid var(--rule); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.nav__item--dropdown.is-open .dropdown,
html:not(.js) .nav__item--dropdown:hover .dropdown,
html:not(.js) .nav__item--dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown__link { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 6px 20px; color: var(--ink); font-size: 15px; font-weight: 500; }
.dropdown__link:hover { color: var(--acc); background: var(--tint); }
.dropdown__link img { width: 40px; height: 40px; object-fit: cover; flex: none; background: var(--stripe); }
.dropdown__all .dropdown__link { font-weight: 700; }
.dropdown__all { border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 6px; }
.catalog-branch { position: relative; }
.catalog-branch__row { display: flex; align-items: center; }
.catalog-branch__row > a { flex: 1; min-width: 0; }
.catalog-branch__toggle { flex: none; width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--mute); font-size: 22px; line-height: 1; transition: transform .15s; }
.catalog-branch__toggle:hover { color: var(--acc); background: var(--tint); }
.catalog-submenu { display: none; list-style: none; margin: 0; padding: 10px 0; background: var(--bg); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.catalog-branch.is-submenu-open > .catalog-submenu { display: block; }

.search-toggle { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 -10px; border: 0; background: none; color: var(--ink); }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { color: var(--acc); }
.cart-link { flex: none; position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.cart-link:hover { color: var(--acc); }
.cart-link__icon { display: none; }
.search-panel { border-top: 1px solid var(--line); background: var(--bg); }
.js .search-panel:not(.is-open) { display: none; }
.search { display: flex; align-items: stretch; max-width: var(--container); margin: 0 auto; padding: 16px var(--gutter) 18px; }
.search__input { flex: 1; min-width: 0; min-height: 54px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; font-family: var(--display); font-size: 26px; -webkit-appearance: none; appearance: none; }
.search__input:focus { outline: none; border-bottom-color: var(--acc); }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__btn { flex: none; margin-left: 16px; padding: 0 28px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; }
.search__btn:hover { background: var(--acc); border-color: var(--acc); color: #fff; }
.search--inline { padding: 0; margin: 0 0 32px; max-width: 520px; }
.search--inline .search__input { font-size: 22px; }

.burger { display: none; flex: none; width: 44px; height: 44px; margin-left: -10px; padding: 11px 10px; border: 0; background: none; flex-direction: column; justify-content: center; gap: 6px; }
.burger span { display: block; height: 1.5px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Home: hero ---------- */
.hero { border-bottom: 1px solid var(--rule); }
.hero__inner { display: grid; grid-template-columns: 5fr 7fr; min-height: 640px; }
.hero__text { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 56px 48px 56px var(--gutter); border-right: 1px solid var(--rule); }
.hero__title { font-family: var(--display); font-weight: 400; font-size: 104px; line-height: .92; letter-spacing: -.02em; margin: 0 0 24px; hyphens: manual; }
.hero__lead { font-size: 18px; line-height: 1.6; color: var(--mute); max-width: 400px; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__media { position: relative; min-height: 320px; background: var(--stripe); overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1320px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) calc(var(--container) * 5 / 12) calc(var(--container) * 7 / 12) minmax(0, 1fr); }
  .hero__text { grid-column: 2; }
  .hero__media { grid-column: 3 / 5; }
}

/* ---------- Numbered index list (categories) ---------- */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.index-list--2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.index-list__item { display: flex; align-items: baseline; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); color: var(--ink); transition: color .15s, border-color .15s; }
.index-list__item:hover { color: var(--acc); border-bottom-color: var(--acc); }
.index-list__num { flex: none; width: 22px; font-size: 13px; font-weight: 600; color: var(--mute); }
.index-list__name { flex: 1; min-width: 0; font-family: var(--display); font-size: 28px; line-height: 1.1; }
.index-list__arrow { font-size: 18px; transition: transform .15s; }
.index-list__item:hover .index-list__arrow { transform: translateX(4px); }

/* ---------- Home: hits ---------- */
.hits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hit { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hit__media { display: block; aspect-ratio: 11 / 12; margin-bottom: 4px; background: #fff; overflow: hidden; }
.hit__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hit:hover .hit__media img { transform: scale(1.03); }
.hit__cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.hit__title { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; min-height: 2.3em; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hit__title a { color: var(--ink); }
.hit__title a:hover { color: var(--acc); }
.hit__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.hit__price { font-size: 18px; font-weight: 700; white-space: nowrap; }
.hit__buy { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--acc); font-family: var(--body); font-size: 14px; font-weight: 700; white-space: nowrap; }
.hit__buy:hover { color: var(--ink); }
.hit__buy[disabled] { opacity: .6; }

/* ---------- Home: custom furniture ---------- */
.promo { display: grid; gap: 32px; }
.promo__media { aspect-ratio: 16 / 9; background: var(--stripe); overflow: hidden; }
.promo__media img { width: 100%; height: 100%; object-fit: cover; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--rule); }
.perks li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 0; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.perks__num { grid-row: 1 / 3; padding-top: 7px; font-size: 13px; font-weight: 600; color: var(--mute); }
.perks strong { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; }
.perks li > span:last-child { font-size: 15px; color: var(--mute); }

/* ---------- Home: testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.quote { margin: 0; padding: 28px 32px 4px 0; display: flex; flex-direction: column; gap: 16px; }
.quote + .quote { padding-left: 32px; border-left: 1px solid var(--line); }
.quote__text { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1.4; }
.quote__author { margin-top: auto; font-size: 14px; color: var(--mute); }
.quote__author strong { color: var(--ink); font-weight: 700; }
.stars { color: var(--line); font-size: 14px; letter-spacing: 3px; line-height: 1; }
.stars .on { color: var(--acc); }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 24px; }
.post-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.post-card__media { display: block; aspect-ratio: 10 / 7; margin-bottom: 6px; background: var(--stripe); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__date { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.post-card__title { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 0; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--acc); }
.post-card__excerpt { margin: 0; font-size: 15px; color: var(--mute); }
.post-lead { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--rule); }
.post-lead__media { display: block; aspect-ratio: 3 / 2; background: var(--stripe); overflow: hidden; }
.post-lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-lead:hover .post-lead__media img { transform: scale(1.02); }
.post-lead__title { font-family: var(--display); font-weight: 400; font-size: 48px; line-height: 1.02; margin: 0 0 18px; }
.post-lead__title a { color: var(--ink); }
.post-lead__title a:hover { color: var(--acc); }
.post-lead__excerpt { font-size: 17px; color: var(--mute); margin: 0; }
.post-lead__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.post-lead__foot .link-arrow { display: inline-flex; align-items: center; min-height: 44px; }

.article__head { padding: 36px 0 44px; }
.article__head .breadcrumbs { margin-bottom: 28px; }
.article__title { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -.01em; margin: 0 0 24px; }
.article__lead { font-size: 20px; line-height: 1.55; color: var(--mute); margin: 0; }
.article__cover { margin-bottom: 56px; }
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--stripe); }
.article__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 56px 0 72px; padding-top: 16px; border-top: 1px solid var(--rule); }
.article + .section { border-top: 1px solid var(--rule); }

/* ---------- Prose (CMS HTML: pages, posts, product descriptions) ---------- */
.prose { font-size: 18px; line-height: 1.75; color: var(--ink); max-width: 720px; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.1; margin: 1.6em 0 .55em; }
.prose h3 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 1.5em 0 .5em; }
.prose h4 { font-family: var(--body); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin: 1.6em 0 .6em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { list-style: none; padding: 0; }
.prose ul > li { position: relative; padding-left: 28px; margin-bottom: .45em; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: .87em; width: 13px; height: 1px; background: var(--acc); }
.prose ol { counter-reset: prose-ol; }
.prose ol > li { position: relative; padding-left: 44px; margin-bottom: .6em; counter-increment: prose-ol; }
.prose ol > li::before { content: counter(prose-ol, decimal-leading-zero); position: absolute; left: 0; top: .3em; font-size: 13px; font-weight: 700; line-height: 1.6; letter-spacing: .04em; color: var(--acc); }
.prose li > ul, .prose li > ol { margin: .45em 0 0; }
.prose a { color: var(--acc); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose strong, .prose b { font-weight: 700; }
.prose blockquote { margin: 1.8em 0; padding: 2px 0 2px 28px; border-left: 2px solid var(--acc); font-family: var(--display); font-size: 26px; line-height: 1.4; }
.prose blockquote p { margin-bottom: .5em; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite, .prose blockquote footer { display: block; margin-top: 10px; font-family: var(--body); font-size: 14px; font-style: normal; color: var(--mute); }
.prose img { display: block; max-width: 100%; height: auto; margin: 1.6em 0; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; margin: 0; }
.prose figcaption { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--mute); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 15px; line-height: 1.5; }
.prose th { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: bottom; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.prose td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.prose code { font-size: .9em; background: var(--tint); padding: 1px 5px; }

/* ---------- Info pages ---------- */
.split--page .split__aside { padding-right: 64px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.side-nav a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 22px; line-height: 1.2; }
.side-nav a::after { content: "→"; font-family: var(--body); font-size: 16px; }
.side-nav a[aria-current="page"] { color: var(--acc); border-bottom-color: var(--acc); }
.side-help { margin-top: 32px; font-size: 15px; color: var(--mute); }
.side-help p { margin: 0 0 4px; max-width: 300px; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 5fr 7fr; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.contacts__info { padding: 56px 48px 72px 0; border-right: 1px solid var(--rule); }
.contacts__form { padding: 56px 0 72px 56px; }
.contacts__phone { display: block; font-family: var(--display); font-size: 54px; line-height: 1; color: var(--ink); white-space: nowrap; }
.contacts__phone--sm { margin-top: 10px; font-size: 32px; }
.contacts__list { margin: 36px 0 32px; border-top: 1px solid var(--rule); }
.contacts__list > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contacts__list dt { padding-top: 3px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.contacts__list dd { margin: 0; font-size: 17px; }
.contacts__socials { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.contacts__socials a, .contacts__list dd a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contacts__note { color: var(--mute); max-width: 520px; margin: 16px 0 28px; }
.map { border-top: 1px solid var(--rule); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.35); }

/* ---------- Forms ---------- */
.form__row { margin-bottom: 18px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form__label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.input, .form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="number"], .form input[type="search"], .form textarea, .form select {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); transition: border-color .15s;
}
.input:hover, .form input:hover, .form textarea:hover, .form select:hover { border-color: var(--mute); }
.input:focus, .form input:focus, .form textarea:focus, .form select:focus { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: 0; }
.input--sm { min-height: 40px; padding: 8px 10px; }
.form textarea, textarea.input { resize: vertical; min-height: 110px; }
.form [aria-invalid="true"] { border-color: var(--err); }
.form__error { margin-top: 6px; font-size: 13px; color: var(--err); }
.form__error:empty { display: none; }
.form__hint { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--mute); }
.form__success { margin-top: 16px; padding: 16px 18px; border: 1px solid #B9CDB6; border-left: 3px solid var(--ok); background: var(--ok-bg); color: var(--ok); }
.form__success:focus { outline: 2px solid var(--ok); outline-offset: 4px; }
.form.is-sent > :not(.form__success):not([type="hidden"]) { display: none; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.form__submit .form__hint { margin: 0; max-width: 300px; }
.form--inline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; align-items: start; }
.form--inline .form__error, .form--inline .form__success, .form--inline > button, .form--inline > .form__hint { grid-column: 1 / -1; }
.form--inline .form__row { margin-bottom: 0; }
.fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.fieldset__title { padding: 0; margin-bottom: 14px; font-family: var(--display); font-size: 28px; font-weight: 400; }
.options { display: grid; gap: 10px; margin-bottom: 16px; }
.option { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s; }
.option:hover { border-color: var(--mute); }
.option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--acc); }
.option__title { font-weight: 700; }
.option__body small { display: block; margin-top: 6px; font-size: 13px; color: var(--mute); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 0; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--acc); }
.select { min-height: 44px; padding: 9px 38px 9px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231C1B1A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; }
.select:focus { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--rule); }
.footer__contact { display: grid; grid-template-columns: 5fr 3.5fr 3.5fr; max-width: var(--container); margin: 0 auto; }
.footer__contact-phone { padding: 48px 40px 48px var(--gutter); border-right: 1px solid var(--rule); }
.footer__contact-phone .eyebrow { display: block; margin-bottom: 12px; }
.footer__big-phone { display: block; font-family: var(--display); font-size: 54px; line-height: 1; white-space: nowrap; color: var(--ink); }
.footer__contact-meta { padding: 48px 40px; border-right: 1px solid var(--rule); font-size: 17px; line-height: 1.7; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.footer__contact-meta a { color: var(--mute); }
.footer__contact-action { display: flex; align-items: center; padding: 48px var(--gutter) 48px 40px; }
.footer__main { background: var(--tint); border-top: 1px solid var(--rule); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 56px; padding-bottom: 44px; }
.footer__text { max-width: 340px; margin: 18px 0; font-size: 15px; color: var(--mute); }
.footer__title { margin: 0 0 16px; font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer__list a { color: var(--ink); }
.footer__list a:hover { color: var(--acc); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ink); color: var(--ink); }
.socials a:hover { background: var(--ink); color: var(--bg); }

/* ---------- Modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(28, 27, 26, .5); }
.modal__dialog { position: relative; z-index: 1; width: calc(100% - 32px); max-width: 480px; max-height: 88vh; margin: 8vh auto 0; padding: 40px 36px 30px; overflow-y: auto; background: var(--bg); border: 1px solid var(--rule); box-shadow: var(--shadow); animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
.modal__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); }
.modal__close:hover { color: var(--acc); }
.modal__title { margin: 0 0 10px; font-size: 40px; line-height: 1; }
.modal__subtitle { margin-bottom: 24px; font-size: 15px; color: var(--mute); }
.modal .eyebrow { margin-bottom: 12px; }
body.modal-open { overflow: hidden; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; max-width: calc(100% - 32px); padding: 14px 22px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600; text-align: center; opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: var(--err); color: #fff; }

/* ---------- Error pages ---------- */
.error-page { display: grid; grid-template-columns: 7fr 5fr; align-items: center; gap: 48px; max-width: var(--container); min-height: 60vh; margin: 0 auto; padding: 48px var(--gutter) 88px; }
.error-page .breadcrumbs { margin-bottom: 32px; }
.error-page .page-title { margin-bottom: 18px; }
.error-page__code { font-family: var(--display); font-size: clamp(120px, 22vw, 300px); line-height: .8; letter-spacing: -.03em; color: var(--acc); text-align: right; }
.standalone-error { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.standalone-error__box { max-width: 560px; }
.standalone-error .logo { margin-bottom: 40px; }
.standalone-error .error-page__code { display: block; text-align: left; font-size: 160px; margin-bottom: 24px; }

/* ======================================================================
   Shop components (catalog, product, cart, checkout). Templates are W2's;
   shop.css may refine these. Square corners, 1b colours.
   ====================================================================== */

/* Product card */
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; background: none; border: 0; }
.card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.badge { display: inline-block; padding: 5px 9px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; }
.badge--new { background: var(--ok); color: #fff; }
.badge--hit { background: var(--acc); color: #fff; }
.badge--sale { background: var(--err); color: #fff; }
.card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding-top: 4px; }
.card__cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.card__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.15; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--acc); }
.card__colors { display: flex; flex-wrap: wrap; gap: 5px; }
.dot { display: inline-block; width: 14px; height: 14px; border: 1px solid rgba(28, 27, 26, .18); }
.dot--lg { width: 22px; height: 22px; }
.card__variant-count { margin: 0; font-size: 12px; color: var(--mute); }
.card__footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.card__footer .price { flex-direction: column; gap: 0; }
.card__footer .btn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--acc); font-size: 14px; white-space: nowrap; }
.card__footer .btn:hover { background: none; color: var(--ink); }
.card__note { font-size: 12px; color: var(--mute); }
.card--chair .card__media img { object-fit: contain; padding: 10px; }
.card--sofa .card__media img { object-fit: contain; padding: 8px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.price__current { font-size: 18px; font-weight: 700; white-space: nowrap; }
.price__old { font-size: 14px; color: var(--mute); text-decoration: line-through; }
.price--lg .price__current { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; }
.price--lg .price__old { font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 24px; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.active-filters:empty { display: none; }
.active-filters .chip { background: var(--paper); }

/* Catalog layout and filters */
.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.catalog--without-filters { grid-template-columns: minmax(0, 1fr); }
.catalog--without-filters .grid--3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog__main { min-width: 0; }
.catalog__filter-toggle { display: none; }
.filters { padding: 18px 0 0; border-top: 1px solid var(--rule); background: none; }
.filters__heading { margin: 0 0 18px; font-size: 26px; line-height: 1.15; }
.filters__group { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.filters__group:last-of-type { border-bottom: 0; }
.filters__title { margin-bottom: 10px; font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.filters__range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 7px; }
.filters__range .input { width: 100%; min-width: 0; padding: 9px; }
.filters__actions { display: flex; flex-direction: column; gap: 8px; }
.filters__actions .btn { min-height: 44px; padding: 9px 12px; font-size: 13px; }
.filters__section summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; margin: 0; list-style: none; cursor: pointer; }
.filters__section summary::-webkit-details-marker { display: none; }
.filters__section summary::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--mute); }
.filters__section[open] summary { margin-bottom: 10px; }
.filters__section[open] summary::after { content: "\2212"; }
.filters__options { max-height: 220px; padding-right: 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.filters .check { align-items: flex-start; gap: 9px; min-height: 0; padding: 6px 0; font-size: 13px; line-height: 1.45; }
.filters .check input { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; }
.filters .check span { overflow-wrap: anywhere; }
.swatches { display: flex; flex-direction: column; gap: 4px; }
.swatch { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 0; font-size: 15px; cursor: pointer; }
.swatch input { position: absolute; width: 0; height: 0; opacity: 0; }
.swatch__dot { flex: none; width: 22px; height: 22px; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line); }
.swatch input:checked + .swatch__dot { box-shadow: 0 0 0 2px var(--ink); }
.swatch input:focus-visible + .swatch__dot { outline: 2px solid var(--acc); outline-offset: 2px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.toolbar__count { color: var(--mute); }
.toolbar__sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 48px; }
.pagination__link { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.pagination__link:hover { border-color: var(--ink); color: var(--ink); }
.pagination__link.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Wardrobe (kupe) and chair filters */
.kupe-filters fieldset { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.kupe-filters legend { margin-bottom: 12px; }
.kupe-filter-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.kupe-filter-tile { position: relative; cursor: pointer; }
.kupe-filter-tile input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kupe-filter-tile span { display: block; padding: 8px 3px; border: 1px solid var(--line); text-align: center; font-size: 13px; }
.kupe-filter-tile input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.kupe-filter-tile input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.kupe-filter-checks { display: grid; gap: 8px; max-height: 240px; overflow-y: auto; }
.kupe-filter-checks .check { margin: 0; font-size: 13px; }
.kupe-filter-checks--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kupe-selection { display: grid; gap: 9px; margin-bottom: 24px; padding: 12px; border: 1px solid var(--line); background: var(--paper); font-size: 12px; }
.kupe-selection a { color: var(--ink); }
.kupe-selection .kupe-reset { color: var(--acc); }
.kupe-price-slider { position: relative; height: 34px; margin-top: 14px; }
.kupe-price-slider input { position: absolute; top: 9px; left: 0; width: 100%; height: 3px; pointer-events: none; -webkit-appearance: none; appearance: none; background: var(--line); }
.kupe-price-slider input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 16px; height: 16px; background: var(--ink); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--ink); cursor: pointer; }
.kupe-price-slider input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; background: var(--ink); border: 2px solid var(--bg); border-radius: 0; }
.kupe-price-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--mute); }
.chair-filters__sort { width: 100%; max-width: 100%; margin-bottom: 24px; font-size: 13px; }
.chair-range { min-width: 0; margin: 0 0 26px; padding: 0; border: 0; }
.chair-range legend { margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.chair-range__numbers { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 36px; align-items: center; gap: 6px; }
.chair-range__numbers .input { width: 100%; min-width: 0; padding: 9px 5px; font-size: 12px; text-align: center; }
.chair-range__apply { align-self: stretch; border: 0; background: var(--ink); color: var(--bg); font-size: 11px; cursor: pointer; }
.chair-range__apply:hover { background: var(--acc); color: #fff; }
.chair-range__sliders { position: relative; height: 3px; margin: 20px 7px 9px; background: var(--line); }
.chair-range__sliders input { position: absolute; left: -7px; top: -8px; width: calc(100% + 14px); height: 20px; margin: 0; background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; }
.chair-range__sliders input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 14px; height: 14px; background: var(--ink); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--ink); cursor: pointer; }
.chair-range__sliders input::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; background: var(--ink); border: 2px solid var(--bg); border-radius: 0; cursor: pointer; }
.chair-range__sliders input:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; }
.chair-facet { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.chair-facet summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; line-height: 1.4; }
.chair-facet summary::-webkit-details-marker { display: none; }
.chair-facet summary::after { content: "+"; font-size: 18px; color: var(--mute); }
.chair-facet[open] summary::after { content: "\2212"; }
.chair-facet__search { width: 100%; min-width: 0; margin-bottom: 10px; }
.chair-facet__options { max-height: 238px; overflow: auto; scrollbar-width: thin; }
.chair-facet__option[hidden], .chair-facet__more[hidden] { display: none; }
.chair-facet__option span { flex: 1; }
.chair-facet__option small { padding-right: 4px; font-size: 11px; color: var(--soft); }
.chair-facet__more { padding: 9px 0 0; border: 0; background: transparent; color: var(--acc); font-size: 12px; font-weight: 600; cursor: pointer; }
.chair-filters .filters__actions { margin-top: 22px; }
.chair-selection { display: grid; gap: 7px; margin-bottom: 20px; padding: 12px; background: var(--tint); font-size: 12px; }
.chair-selection a { color: var(--acc); }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px 56px; align-items: start; margin-top: 24px; }
.gallery__main { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-bottom: 4px; }
.gallery__thumb { flex: none; width: 84px; height: 72px; padding: 0; border: 1px solid var(--line); background: #fff; overflow: hidden; opacity: .75; transition: opacity .15s, border-color .15s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb:hover, .gallery__thumb.is-active { opacity: 1; border-color: var(--ink); }
.gallery__arrow { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.gallery__arrow:hover { background: var(--ink); color: var(--bg); }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
.product__info { grid-column: 2; grid-row: 1 / 3; position: sticky; top: calc(var(--header-h) + 24px); padding: 0 0 8px; }
.product__title { margin-bottom: 10px; font-size: 44px; line-height: 1.02; }
.product__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; font-size: 14px; color: var(--mute); }
.product__meta .is-stock { color: var(--ok); font-weight: 700; }
.product__meta .is-order { color: var(--acc); font-weight: 700; }
.product__price { margin-bottom: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.product__lead { font-size: 17px; color: var(--mute); }
.product__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0; }
.product__perks { display: grid; gap: 6px; margin: 0; padding: 16px 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.product__perks li::before { content: "— "; color: var(--acc); font-weight: 700; }
.product__extra-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.props { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 8px 20px; margin: 20px 0; font-size: 15px; }
.props dt { color: var(--mute); }
.props dd { margin: 0; font-weight: 600; }
.props__colors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.props__color-name { margin-right: 10px; font-weight: 500; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink); background: var(--paper); }
.qty__btn { width: 44px; height: 48px; border: 0; background: none; color: var(--ink); font-size: 20px; }
.qty__btn:hover { background: var(--tint); }
.qty__input { width: 52px; height: 48px; border: 0; background: transparent; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tabs { grid-column: 1; min-width: 0; margin-top: 0; }
.tabs__nav { display: flex; flex-wrap: wrap; gap: 4px 24px; border-bottom: 1px solid var(--rule); }
.tabs__btn { margin-bottom: -1px; padding: 12px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--mute); font-size: 14px; font-weight: 700; white-space: nowrap; }
.tabs__btn:hover { color: var(--ink); }
.tabs__btn.is-active { color: var(--ink); border-bottom-color: var(--acc); }
.tabs__panel { display: none; max-width: 100%; padding: 28px 0 8px; }
.tabs__panel.is-active { display: block; }
.tabs__accordion { display: none; }
.specs { width: 100%; max-width: 720px; border-collapse: collapse; }
.specs th, .specs td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
.specs th { width: 45%; color: var(--mute); font-weight: 500; }
.specs__total th, .specs__total td { border-bottom: 0; font-size: 17px; font-weight: 800; }
.color-variants { display: flex; flex-wrap: wrap; gap: 8px; max-height: 280px; margin: 12px 0 24px; overflow-y: auto; }
.color-variant { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; padding: 5px; border: 1px solid var(--line); color: var(--ink); font-size: 10px; text-align: center; }
.color-variant img { width: 64px; height: 64px; object-fit: contain; }
.color-variant.is-active, .color-variant:hover { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.color-variants--text { display: flex; flex-wrap: wrap; gap: 7px; max-height: 240px; overflow: auto; }
.color-variants--text .color-variant { width: auto; min-width: 0; max-width: 100%; padding: 8px 10px; }
.color-variants--text .color-variant span { font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.color-variants--text .color-variant.is-active { background: var(--paper); }
.configuration-options { margin: 20px 0; }
.configuration-option { margin: 18px 0; }
.configuration-option p { margin-bottom: 8px; }
.configuration-option__values { display: flex; flex-wrap: wrap; gap: 6px; }
.configuration-choice { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.configuration-choice:hover, .configuration-choice.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.configuration-choice.is-unavailable { opacity: .45; }
.review-form { display: grid; gap: 16px; max-width: 600px; margin-top: 32px; }
.review-form label { display: grid; gap: 8px; }
.review-form .input { width: 100%; }
.product-review { padding: 20px 0; border-bottom: 1px solid var(--line); }
.product-review > span, .product-review > time { margin-left: 12px; font-size: 14px; color: var(--mute); }
.product--sofa .product__info { grid-row: 1; position: static; }
.product--sofa .tabs { grid-column: 1 / -1; }
.sofa-price-note { margin: 12px 0 18px; font-size: 13px; line-height: 1.6; color: var(--mute); }
.sofa-quote { margin-bottom: 28px; }
.sofa-keyfacts { display: grid; gap: 20px; margin: 0 0 20px; }
.sofa-keyfacts dt { margin-bottom: 4px; font-size: 15px; font-weight: 700; color: var(--ink); }
.sofa-keyfacts dd { margin: 0; font-size: 15px; line-height: 1.75; color: var(--mute); }
.sofa-infographic { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); align-items: center; gap: 36px; margin: 28px 0; }
.sofa-infographic figure { min-width: 0; margin: 0; }
.sofa-infographic img { display: block; width: 100%; max-height: 620px; object-fit: contain; background: #fff; }
.sofa-animation { max-width: 900px; margin: 26px auto; }
.sofa-animation img { display: block; max-width: 100%; height: auto; }

/* Cart, checkout, success */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule); }
.cart-table th { padding: 14px 10px; border-bottom: 1px solid var(--rule); text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.cart-table td { padding: 16px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table__product { display: flex; align-items: center; gap: 14px; }
.cart-table__product > div { min-width: 0; }
.cart-table__img { flex: none; width: 72px; height: 72px; background: #fff; overflow: hidden; }
.cart-table__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-table__name { font-family: var(--display); font-size: 20px; line-height: 1.2; color: var(--ink); }
.cart-table__name:hover { color: var(--acc); }
.cart-table__cat { font-size: 13px; color: var(--mute); }
.cart .link-arrow { display: inline-block; margin-top: 18px; }
.cart .qty__input { width: 38px; }
.cart .qty__btn { width: 40px; }
.cart [aria-busy="true"] { opacity: .65; }
.summary { position: sticky; top: calc(var(--header-h) + 24px); padding: 26px; border: 1px solid var(--rule); background: var(--paper); }
.summary__title { margin-bottom: 14px; font-size: 30px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--mute); }
.summary__row > :last-child { text-align: right; }
.summary__row--total { padding: 16px 0 20px; border-bottom: 0; color: var(--ink); font-size: 20px; font-weight: 800; }
.summary__items { display: grid; gap: 12px; margin: 0 0 8px; padding: 0; list-style: none; }
.summary__item { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px; font-size: 14px; }
.summary__item img { width: 56px; height: 48px; object-fit: cover; background: #fff; }
.summary__item small { color: var(--mute); }
.summary__item-price { grid-column: 2; font-weight: 700; white-space: nowrap; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.checkout__form { padding: 32px; border: 1px solid var(--line); background: var(--paper); }
.success { text-align: center; }
.success__icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border: 1px solid var(--ok); background: var(--ok-bg); color: var(--ok); font-size: 32px; }
.success .specs, .success .props { margin-left: auto; margin-right: auto; text-align: left; }
.success .props { display: inline-grid; }
.success .hero__actions { justify-content: center; margin-top: 20px; }

/* ======================================================================
   Responsive
   ====================================================================== */
@media (min-width: 901px) {
  #catalog-menu { max-height: none; overflow: visible; }
  .catalog-submenu { position: absolute; left: 100%; top: -11px; z-index: 5; min-width: 240px; }
}
@media (max-width: 1240px) {
  .header__meta { display: none; }
}
@media (max-width: 1180px) {
  .header__phone { display: none; }
  .hero__title { font-size: 88px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .catalog .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart { grid-template-columns: minmax(0, 1fr); }
  .cart .summary { position: static; }
  .product { gap: 28px; }
}
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .grid--4, .catalog--without-filters .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section__title { font-size: 48px; }
  .hero__title { font-size: 76px; }
  .footer__big-phone, .contacts__phone { font-size: 42px; }
  .footer__contact { grid-template-columns: 5fr 3fr 4fr; }
  .footer__contact-phone, .footer__contact-meta, .footer__contact-action { padding-top: 40px; padding-bottom: 40px; }
  .footer__contact-meta { padding-left: 28px; padding-right: 28px; }
  .footer__contact-action { padding-left: 28px; }
  .post-lead__title { font-size: 40px; }
  .quote { padding-right: 24px; }
  .quote + .quote { padding-left: 24px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  [id] { scroll-margin-top: 84px; }
  .header__inner { gap: 10px; }
  .burger { display: flex; }
  .header__meta, .header__phone { display: none; }
  .search-toggle { margin: 0; }
  .cart-link { justify-content: center; width: 44px; margin-right: -8px; }
  .cart-link__icon { display: block; }
  .cart-link__label, .cart-link__sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cart-link__count { position: absolute; top: 3px; right: 0; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; background: var(--acc); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
  .nav { position: fixed; top: 0; left: 0; bottom: 0; z-index: 150; width: min(440px, 100%); flex-direction: column; align-items: stretch; padding: 0 20px 32px; background: var(--bg); border-right: 1px solid var(--rule); overflow-y: auto; transform: translateX(-102%); transition: transform .25s; }
  .nav.is-open { transform: none; }
  .js .nav:not(.is-open) { visibility: hidden; }
  .nav__head { display: flex; align-items: center; justify-content: space-between; min-height: 64px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); }
  .nav__head-title { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
  .nav__close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--ink); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__link { flex: 1; padding: 12px 0; font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 1.15; }
  .nav__caret { width: 44px; height: 44px; margin: 0 -10px 0 0; }
  .nav__caret::after { left: 18px; top: 16px; width: 8px; height: 8px; }
  .nav__item--dropdown.is-open .nav__caret::after { top: 21px; }
  .dropdown { position: static; display: none; width: 100%; min-width: 0; margin: 0; padding: 0 0 12px; background: transparent; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .dropdown::before { display: none; }
  .nav__item--dropdown.is-open .dropdown { display: block; }
  #catalog-menu { overflow: visible; }
  .dropdown__link { padding: 8px 0; font-size: 16px; }
  .dropdown__link:hover { background: none; }
  .dropdown__link img { display: none; }
  .dropdown__all { margin-bottom: 4px; padding-bottom: 4px; }
  .catalog-branch__row > a { overflow-wrap: anywhere; }
  .catalog-branch__toggle { margin-right: -10px; }
  .catalog-branch.is-submenu-open > .catalog-branch__row .catalog-branch__toggle { transform: rotate(90deg); }
  .catalog-submenu { margin: 0 0 8px 2px; padding: 0 0 0 14px; background: transparent; border: 0; border-left: 1px solid var(--line); box-shadow: none; }
  .nav__mobile-extra { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
  .nav__phone { font-family: var(--display); font-size: 32px; line-height: 1.1; color: var(--ink); }
  .nav__meta { margin: 0 0 16px; font-size: 14px; color: var(--mute); }
  .nav-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(28, 27, 26, .45); }
  body.nav-open { overflow: hidden; }
  .search { padding: 12px var(--gutter) 14px; }
  .search__input { font-size: 20px; min-height: 48px; }
  .search__btn { padding: 0 18px; }

  .section { padding: 52px 0; }
  .section__head { margin-bottom: 24px; }
  .section__title { font-size: 42px; }
  .page-head { padding: 24px 0 32px; }
  .page-head__inner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split__aside, .split--page .split__aside { padding-right: 0; }
  .split--page .split__aside { order: 2; padding-top: 28px; border-top: 1px solid var(--rule); }

  .hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__text { gap: 28px; padding: 32px var(--gutter) 40px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .hero__title { font-size: 72px; }
  .hero__lead { max-width: 520px; }
  .hero__media { aspect-ratio: 4 / 3; min-height: 0; }

  .hits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 20px; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .quote, .quote + .quote { padding: 24px 0; border-left: 0; }
  .quote + .quote { border-top: 1px solid var(--line); }
  .post-lead { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 44px; margin-bottom: 44px; }
  .article__cover { margin-bottom: 40px; }

  .contacts { grid-template-columns: minmax(0, 1fr); }
  .contacts__info { padding: 36px 0 40px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .contacts__form { padding: 36px 0 56px; }
  .error-page { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; padding-bottom: 64px; }
  .error-page__code { display: none; }
  .search.search--inline { padding: 0; }

  .footer__contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__contact-phone { grid-column: 1 / -1; padding: 36px var(--gutter) 28px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .footer__contact-meta { padding: 24px 24px 28px var(--gutter); }
  .footer__contact-action { padding: 24px var(--gutter) 28px 24px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-top: 40px; padding-bottom: 32px; }
  .footer__col--brand { grid-column: 1 / -1; }

  .catalog { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .catalog__filter-toggle { display: inline-flex; width: 100%; }
  .js .filters { display: none; position: static; }
  .js .filters.is-open { display: block; }
  .product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .product__info, .product--sofa .product__info { grid-column: auto; grid-row: auto; position: static; }
  .tabs { grid-column: auto; }
  .product__title { font-size: 34px; }
  .tabs__nav { display: none; }
  .tabs__accordion { display: flex; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; font-weight: 700; }
  .tabs__accordion[aria-expanded="true"] span { transform: rotate(45deg); }
  .tabs__panel { padding: 20px 0; }
  .cart, .checkout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .sofa-infographic { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sofa-keyfacts { gap: 16px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .search { flex-direction: column; gap: 10px; }
  .search__btn { margin-left: 0; min-height: 48px; }
  .search--inline { flex-direction: row; }
  .search--inline .search__btn { margin-left: 10px; }

  .section { padding: 44px 0; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section__title { font-size: 38px; }
  .page-title { font-size: 44px; }
  .page-lead { font-size: 17px; }
  .hero__title { font-size: 58px; line-height: .95; }
  .hero__lead { font-size: 17px; margin-bottom: 24px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .index-list--2col { grid-template-columns: minmax(0, 1fr); }
  .index-list__item { gap: 14px; padding: 14px 0; }
  .index-list__name { font-size: 25px; }
  .hits { gap: 32px 14px; }
  .hit__title { font-size: 19px; min-height: 0; }
  .hit__price { font-size: 16px; }
  .hit__foot { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 8px; }
  .hit__buy { min-height: 40px; }
  .perks { grid-template-columns: minmax(0, 1fr); }
  .posts { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .post-lead__title { font-size: 34px; }
  .post-card__title { font-size: 24px; }
  .quote__text { font-size: 20px; }
  .article__head { padding: 24px 0 32px; }
  .article__lead { font-size: 18px; }
  .prose { font-size: 17px; line-height: 1.7; }
  .prose h2 { font-size: 30px; }
  .prose h3 { font-size: 24px; }
  .prose blockquote { font-size: 22px; padding-left: 20px; }
  .prose table { font-size: 14px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .side-nav a { font-size: 20px; }

  .contacts__phone, .footer__big-phone { font-size: 36px; white-space: normal; }
  .contacts__list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer__contact { grid-template-columns: minmax(0, 1fr); }
  .footer__contact-meta { padding: 22px var(--gutter); border-right: 0; border-bottom: 1px solid var(--rule); }
  .footer__contact-action { padding: 22px var(--gutter) 32px; }
  .footer__contact-action .btn { width: 100%; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  .modal__dialog { margin-top: 4vh; padding: 32px 20px 22px; }
  .modal__title { font-size: 34px; }
  .form__grid, .form--inline { grid-template-columns: minmax(0, 1fr); }
  .form__submit .btn { width: 100%; }

  .grid, .grid--3, .grid--4, .catalog--without-filters .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .card__title { font-size: 19px; }
  .card__footer { flex-direction: column; align-items: stretch; gap: 0; }
  .card__footer .btn { justify-content: flex-start; }
  .toolbar { gap: 12px; }
  .toolbar__sort { flex-wrap: wrap; width: 100%; }
  .toolbar__sort select { flex: 1; }
  .product__buy .btn { width: 100%; }
  .product__info { padding: 0; }
  .props { gap: 10px 12px; font-size: 14px; }
  .checkout__form, .summary { padding: 20px; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody { display: block; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { padding: 0; border: 0; }
  .cart-table__product { grid-column: 1 / -1; }
  .cart-table td[data-label]::before { content: attr(data-label) ": "; display: block; font-size: 12px; color: var(--mute); }
  .cart-table td:last-child { grid-column: 2; grid-row: 3; justify-self: end; }
  .summary__row { flex-wrap: wrap; }
}

@media (max-width: 400px) {
  .hero__title { font-size: 52px; }
  .grid, .grid--3, .grid--4, .catalog--without-filters .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { column-gap: 16px; }
  .footer__col:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Keep content available when JavaScript is disabled. */
html:not(.js) .tabs__nav, html:not(.js) .tabs__accordion { display: none; }
html:not(.js) .tabs__panel { display: block; }
@media (max-width: 900px) {
  html:not(.js) .header__inner { flex-wrap: wrap; }
  html:not(.js) .nav { position: static; order: 9; width: 100%; padding: 0 0 12px; border: 0; transform: none; }
  html:not(.js) .nav__head, html:not(.js) .burger, html:not(.js) .search-toggle { display: none; }
}
