/* ============================================================
   FORMA — мебель от производителя. Тёплый скандинавский / japandi
   ============================================================ */
:root {
  --bg: #FAF7F2;
  --white: #FFFFFF;
  --ink: #23211E;
  --ink-soft: #5C574F;
  --ink-faint: #8A8378;
  --wood: #A0765B;
  --wood-dark: #85604A;
  --wood-tint: #F1E7DE;
  --line: rgba(35, 33, 30, 0.14);
  --line-soft: rgba(35, 33, 30, 0.08);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 24px 60px -30px rgba(35, 33, 30, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 4.5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }

.container { max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }

.num { font-family: var(--sans); font-variant-numeric: lining-nums tabular-nums; }

/* ---------- eyebrow / section headers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wood);
  font-weight: 600;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--wood); }

.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  margin-top: 14px;
  letter-spacing: 0.01em;
}
.section-head p.sub { max-width: 560px; color: var(--ink-soft); margin-top: 12px; }

/* ---------- reveal (IntersectionObserver + transition) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ============================================================
   ШАПКА
   ============================================================ */
.topline {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 8px var(--gutter);
}
.topline b { color: #E8CDB8; font-weight: 600; }

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 247, 242, 0.94);
  border-bottom: 1px solid var(--line-soft);
}
.header-in {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  height: 72px;
}
.logo {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.34em;
  margin-right: auto;
  white-space: nowrap;
}
.logo span { color: var(--wood); }

.nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.nav a {
  font-size: 13.5px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav a:hover, .nav a.active { color: var(--ink); border-bottom-color: var(--wood); }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: background 0.25s, border-color 0.25s;
}
.cart-btn:hover { background: var(--wood-tint); border-color: var(--wood); }
.cart-btn svg { width: 17px; height: 17px; }
.cart-count {
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wood);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.cart-count.is-empty { display: none; }

.burger {
  display: none;
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: '';
  position: absolute;
  left: 9px;
  width: 24px;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.burger span { top: 20px; }
.burger span::before { left: 0; top: -7px; }
.burger span::after { left: 0; top: 7px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--bg);
  z-index: 55;
  padding: 40px var(--gutter);
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-menu a {
  font-family: var(--serif);
  font-size: 30px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
body.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 20, 16, 0.72) 0%, rgba(24, 20, 16, 0.25) 45%, rgba(24, 20, 16, 0.1) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(90px, 11vh, 130px);
}
.hero .eyebrow { color: #E8CDB8; }
.hero .eyebrow::before { background: #E8CDB8; }
.hero h1 {
  font-size: clamp(42px, 6.6vw, 92px);
  max-width: 13ch;
  margin: 20px 0 26px;
  font-weight: 500;
}
.hero h1 em { font-style: italic; color: #EAD9C6; }
.hero p.lead { max-width: 480px; font-size: 17px; color: rgba(255, 255, 255, 0.85); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--wood); color: #fff; }
.btn-solid:hover { background: var(--wood-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #3A3630; }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--wood); color: var(--wood-dark); }

/* строка преимуществ */
.hero-strip {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.9);
}
.hero-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 10px;
  font-size: 14px;
  letter-spacing: 0.03em;
}
.strip-item + .strip-item { border-left: 1px solid rgba(255, 255, 255, 0.12); padding-left: 28px; }
.strip-item svg { width: 26px; height: 26px; flex: none; color: #E8CDB8; }
.strip-item small { display: block; color: rgba(255, 255, 255, 0.55); font-size: 12px; letter-spacing: 0.02em; }

/* ============================================================
   СЕКЦИИ ГЛАВНОЙ
   ============================================================ */
section { padding-block: clamp(64px, 9vw, 120px); }
section.tight { padding-block: clamp(48px, 6vw, 80px); }

/* --- категории: вертикальные плитки --- */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.4vw, 20px);
}
.cat-tile {
  position: relative;
  aspect-ratio: 3 / 4.6;
  overflow: hidden;
  border-radius: 4px;
  display: block;
}
.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 20, 16, 0.68), rgba(24, 20, 16, 0) 55%);
  transition: background 0.4s;
}
.cat-tile-label {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: #fff;
}
.cat-tile-label b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.cat-tile-label span {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  transition: gap 0.3s var(--ease);
}
.cat-tile:hover .cat-tile-label span { gap: 14px; }

/* --- производство --- */
.production { background: var(--white); border-block: 1px solid var(--line-soft); }
.prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.prod-photo { position: relative; }
.prod-photo img { border-radius: 4px; width: 100%; height: auto; }
.prod-photo::before {
  content: '';
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--wood);
  border-radius: 4px;
  opacity: 0.4;
  pointer-events: none;
}
.prod-text h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 14px 0 20px; }
.prod-text p { color: var(--ink-soft); max-width: 52ch; }
.prod-text p + p { margin-top: 14px; }
.prod-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(24px, 4vw, 56px);
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.stat b {
  display: block;
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.stat b i { font-style: normal; color: var(--wood); }
.stat span { font-size: 12.5px; letter-spacing: 0.05em; color: var(--ink-faint); display: block; margin-top: 8px; }

/* --- карточка товара (общая) --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 26px);
}
.pcard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s;
}
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--line); }
.pcard-img { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--wood-tint); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pbadge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}
.pbadge.b-hit { background: var(--wood); }
.pcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pcard-cat { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.pcard-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  margin: 6px 0 10px;
  line-height: 1.25;
}
.pcard-name a:hover { color: var(--wood-dark); }
.pcard-price { margin-top: auto; display: flex; align-items: baseline; gap: 10px; }
.pcard-price b { font-size: 18px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.pcard-price s { color: var(--ink-faint); font-size: 13.5px; font-variant-numeric: lining-nums tabular-nums; }
.pcard-add {
  margin-top: 14px;
  width: 100%;
  padding: 11px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.pcard-add:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pcard-add.added { background: var(--wood); border-color: var(--wood); color: #fff; }

/* --- соберите гостиную --- */
.roomset { background: var(--ink); color: var(--bg); }
.roomset .eyebrow { color: #E8CDB8; }
.roomset .eyebrow::before { background: #E8CDB8; }
.roomset h2 { color: #fff; }
.roomset .sub { color: rgba(255, 255, 255, 0.6); }
.roomset-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: stretch;
}
.roomset-photo { position: relative; border-radius: 4px; overflow: hidden; min-height: 420px; }
.roomset-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.roomset-tag {
  position: absolute;
  left: 22px;
  bottom: 20px;
  background: rgba(24, 20, 16, 0.72);
  color: #EAD9C6;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 9px 16px;
  border-radius: 999px;
}
.roomset-list { display: flex; flex-direction: column; gap: 14px; }
.roomset-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 12px;
  transition: background 0.3s, border-color 0.3s;
}
.roomset-item:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.22); }
.roomset-item img { width: 92px; height: 92px; object-fit: cover; border-radius: 3px; }
.roomset-item .ri-name { font-family: var(--serif); font-size: 19px; color: #fff; line-height: 1.25; }
.roomset-item .ri-price { font-size: 13.5px; color: rgba(255, 255, 255, 0.65); margin-top: 4px; font-variant-numeric: lining-nums tabular-nums; }
.roomset-item .ri-add {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  transition: background 0.3s, border-color 0.3s;
}
.roomset-item .ri-add:hover { background: var(--wood); border-color: var(--wood); }
.roomset-total {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.roomset-total b { font-size: 20px; color: #fff; font-variant-numeric: lining-nums tabular-nums; }

/* --- отзывы --- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 26px); }
.review {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: clamp(24px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.review-stars { color: var(--wood); font-size: 15px; letter-spacing: 4px; }
.review p {
  font-family: var(--serif);
  font-size: 19.5px;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
}
.review-author { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.review-ava {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wood-tint);
  color: var(--wood-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  flex: none;
}
.review-author b { font-size: 14px; display: block; }
.review-author span { font-size: 12.5px; color: var(--ink-faint); }

/* --- CTA перед футером --- */
.precta { background: var(--wood-tint); border-block: 1px solid var(--line-soft); text-align: center; }
.precta h2 { font-size: clamp(30px, 4vw, 48px); max-width: 22ch; margin: 14px auto 16px; }
.precta p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 30px; }

/* ============================================================
   ФУТЕР
   ============================================================ */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.65); font-size: 14px; }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(48px, 6vw, 72px);
}
.footer .logo { color: #fff; margin: 0 0 16px; display: inline-block; }
.footer h4 { color: #fff; font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.footer ul li { margin-bottom: 10px; }
.footer a:hover { color: #E8CDB8; }
.footer .f-phone { font-size: 21px; color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.footer .f-note { font-size: 12.5px; color: rgba(255, 255, 255, 0.4); margin-top: 6px; }
.footer-demo {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 22px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}
.footer-demo a { color: #E8CDB8; border-bottom: 1px solid rgba(232, 205, 184, 0.4); }
.footer-demo a:hover { border-bottom-color: #E8CDB8; }

/* ============================================================
   КАТАЛОГ
   ============================================================ */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(20px, 3vw, 36px); }
.page-head h1 { font-size: clamp(36px, 5vw, 64px); margin-top: 14px; }
.crumbs { font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.04em; }
.crumbs a:hover { color: var(--wood-dark); }
.crumbs .sep { margin-inline: 8px; color: var(--line); }

.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: clamp(64px, 9vw, 110px); }

.filters { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 30px; }
.fgroup h3 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin-bottom: 14px; }
.fcat { display: flex; flex-direction: column; gap: 2px; }
.fcat button {
  text-align: left;
  background: none;
  border: none;
  font-size: 15px;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 3px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  transition: background 0.25s, color 0.25s;
  font-size: 17px;
}
.fcat button i { font-style: normal; font-family: var(--sans); font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.fcat button:hover { color: var(--ink); background: var(--wood-tint); }
.fcat button.active { background: var(--ink); color: var(--bg); }
.fcat button.active i { color: rgba(255, 255, 255, 0.55); }

.frange { display: flex; align-items: center; gap: 10px; }
.frange input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.frange input:focus { outline: none; border-color: var(--wood); }
.frange span { color: var(--ink-faint); }
.freset {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
  padding: 0;
}
.freset:hover { color: var(--wood-dark); }

.catalog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.catalog-count { font-size: 13.5px; color: var(--ink-faint); }
.sort-wrap { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.sort-wrap select {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
}
.sort-wrap select:focus { outline: none; border-color: var(--wood); }

.catalog-empty { text-align: center; padding: 80px 20px; color: var(--ink-faint); }
.catalog-empty b { display: block; font-family: var(--serif); font-size: 28px; color: var(--ink); font-weight: 500; margin-bottom: 8px; }

/* ============================================================
   ТОВАР
   ============================================================ */
.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  padding-block: clamp(28px, 4vw, 56px) clamp(64px, 9vw, 110px);
}
.pgallery { display: flex; flex-direction: column; gap: 14px; }
.pgallery-main { position: relative; border-radius: 4px; overflow: hidden; background: var(--wood-tint); aspect-ratio: 4 / 4.4; }
.pgallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pgallery-thumbs { display: flex; gap: 12px; }
.pgallery-thumbs button {
  width: 88px;
  height: 88px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: none;
  opacity: 0.7;
  transition: opacity 0.25s, border-color 0.25s;
}
.pgallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pgallery-thumbs button.active, .pgallery-thumbs button:hover { opacity: 1; border-color: var(--wood); }

.pinfo .pcard-cat { margin-bottom: 4px; }
.pinfo h1 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.1; margin: 8px 0 18px; }
.pinfo-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.pinfo-price b { font-size: 30px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.pinfo-price s { color: var(--ink-faint); font-size: 18px; font-variant-numeric: lining-nums tabular-nums; }
.pinfo-save { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--wood-dark); background: var(--wood-tint); padding: 4px 12px; border-radius: 999px; }
.pinfo-desc { color: var(--ink-soft); max-width: 56ch; margin-block: 18px 26px; }

/* свотчи */
.swatches { border-top: 1px solid var(--line-soft); padding-top: 24px; margin-bottom: 26px; }
.swatches-label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.swatches-label b { color: var(--ink); font-weight: 600; text-transform: none; letter-spacing: 0.02em; font-size: 14px; }
.swatch-row { display: flex; gap: 14px; margin-top: 14px; }
.swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  padding: 0;
  position: relative;
  box-shadow: inset 0 0 0 3px var(--white);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.swatch:hover { transform: scale(1.1); }
.swatch.active { border: 2px solid var(--ink); transform: scale(1.08); }

/* габариты */
.dims { border-top: 1px solid var(--line-soft); padding-top: 24px; margin-bottom: 30px; }
.dims-grid { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); margin-top: 16px; flex-wrap: wrap; }
.dims-scheme { flex: none; position: relative; width: 150px; height: 108px; }
.dims-box {
  position: absolute;
  left: 22px;
  top: 14px;
  width: 106px;
  height: 66px;
  border: 1.5px solid var(--wood);
  border-radius: 3px;
  background: var(--wood-tint);
}
.dims-box::before {
  content: '';
  position: absolute;
  left: 10px;
  top: -10px;
  width: 106px;
  height: 66px;
  border: 1px dashed rgba(160, 118, 91, 0.5);
  border-radius: 3px;
}
.dims-mark { position: absolute; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--wood-dark); font-variant-numeric: tabular-nums; }
.dims-mark.m-w { left: 50%; bottom: -6px; transform: translateX(-50%); }
.dims-mark.m-h { left: -4px; top: 50%; transform: translateY(-50%); }
.dims-mark.m-d { right: -6px; top: 2px; }
.dims-vals { display: flex; gap: clamp(18px, 2.6vw, 36px); }
.dims-vals div b { display: block; font-size: 22px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.dims-vals div span { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }

.pinfo-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.pinfo-actions .btn { flex: 1 1 220px; }

.specs { border-top: 1px solid var(--line-soft); padding-top: 26px; }
.specs h3 { font-size: 24px; margin-bottom: 16px; }
.specs table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.specs td { padding: 11px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.specs td:first-child { color: var(--ink-faint); width: 44%; padding-right: 16px; }

.simsec { padding-top: 0; }

/* ============================================================
   ОФОРМЛЕНИЕ / КОРЗИНА-СТРАНИЦА
   ============================================================ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding-bottom: clamp(64px, 9vw, 110px);
}
.co-block { background: var(--white); border: 1px solid var(--line-soft); border-radius: 4px; padding: clamp(22px, 3vw, 36px); }
.co-block + .co-block { margin-top: 22px; }
.co-block h3 { font-size: 25px; margin-bottom: 20px; display: flex; align-items: baseline; gap: 12px; }
.co-block h3 .step {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--wood);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.fld { margin-bottom: 16px; }
.fld label { display: block; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.fld input, .fld textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s;
}
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--wood); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.radio-card { display: block; cursor: pointer; }
.radio-card + .radio-card { margin-top: 10px; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card .rc-in {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 15px 18px;
  transition: border-color 0.25s, background 0.25s;
}
.radio-card .rc-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  flex: none;
  position: relative;
  transition: border-color 0.25s;
}
.radio-card input:checked + .rc-in { border-color: var(--wood); background: var(--wood-tint); }
.radio-card input:checked + .rc-in .rc-dot { border-color: var(--wood); }
.radio-card input:checked + .rc-in .rc-dot::after {
  content: '';
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: var(--wood);
}
.radio-card b { font-size: 14.5px; font-weight: 600; display: block; }
.radio-card small { font-size: 12.5px; color: var(--ink-faint); }
.radio-card .rc-price { margin-left: auto; font-size: 13.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }

.co-summary { position: sticky; top: 96px; }
.co-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.co-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.co-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; }
.co-item .ci-name { font-size: 14px; font-weight: 500; line-height: 1.35; }
.co-item .ci-qty { font-size: 12.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.co-item .ci-sum { font-size: 14.5px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.co-totals { border-top: 1px solid var(--line-soft); padding-top: 16px; font-size: 14.5px; }
.co-totals .row { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--ink-soft); }
.co-totals .row.grand { color: var(--ink); font-size: 17px; margin-top: 12px; }
.co-totals .row.grand b { font-size: 24px; font-variant-numeric: lining-nums tabular-nums; }
.co-totals .row span:last-child { font-variant-numeric: lining-nums tabular-nums; }
.co-submit { width: 100%; margin-top: 20px; }
.co-legal { font-size: 12px; color: var(--ink-faint); margin-top: 14px; line-height: 1.6; }

.co-empty { text-align: center; padding: 90px 20px; }
.co-empty h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.co-empty p { color: var(--ink-faint); margin-bottom: 28px; }

/* спасибо-экран */
.thanks { text-align: center; padding: clamp(70px, 12vh, 130px) 20px; max-width: 620px; margin-inline: auto; }
.thanks-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--wood-tint);
  color: var(--wood-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thanks-icon svg { width: 38px; height: 38px; }
.thanks h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.thanks p { color: var(--ink-soft); margin-bottom: 12px; }
.thanks .demo-note {
  background: var(--wood-tint);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 16px 22px;
  font-size: 14px;
  color: var(--wood-dark);
  margin: 26px 0 30px;
}

/* ============================================================
   КОРЗИНА-DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 20, 16, 0.45);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100vw);
  background: var(--bg);
  z-index: 95;
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.45s var(--ease);
  box-shadow: -20px 0 60px rgba(35, 33, 30, 0.18);
}
body.cart-open .cart-overlay { opacity: 1; pointer-events: auto; }
body.cart-open .cart-drawer { transform: none; }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-head h3 { font-size: 26px; }
.cart-head h3 .num { font-family: var(--sans); font-size: 13px; color: var(--ink-faint); margin-left: 6px; }
.cart-close { background: none; border: none; font-size: 26px; line-height: 1; color: var(--ink-soft); padding: 6px; }
.cart-close:hover { color: var(--ink); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 26px; display: flex; flex-direction: column; gap: 18px; }
.cart-item { display: grid; grid-template-columns: 78px 1fr; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.cart-item img { width: 78px; height: 78px; object-fit: cover; border-radius: 3px; }
.cart-item .ci-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cart-item .ci-name { font-size: 14px; font-weight: 500; line-height: 1.35; }
.cart-item .ci-name a:hover { color: var(--wood-dark); }
.cart-item .ci-opt { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.cart-item .ci-remove { background: none; border: none; color: var(--ink-faint); font-size: 17px; line-height: 1; padding: 2px; }
.cart-item .ci-remove:hover { color: var(--wood-dark); }
.cart-item .ci-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 30px; height: 30px; background: none; border: none; font-size: 15px; color: var(--ink-soft); }
.qty button:hover { color: var(--wood-dark); }
.qty span { min-width: 26px; text-align: center; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-item .ci-sum { font-size: 15px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.cart-empty-msg { text-align: center; color: var(--ink-faint); padding: 60px 10px; }
.cart-empty-msg b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.cart-foot { border-top: 1px solid var(--line-soft); padding: 20px 26px 26px; background: var(--white); }
.cart-foot .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cart-foot .row span { color: var(--ink-soft); font-size: 14px; }
.cart-foot .row b { font-size: 23px; font-variant-numeric: lining-nums tabular-nums; }
.cart-foot .btn { width: 100%; }
.cart-foot .cart-hint { text-align: center; font-size: 12px; color: var(--ink-faint); margin-top: 12px; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-tile { aspect-ratio: 3 / 4; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
  .mobile-menu { display: flex; }
  .hero-strip .container { grid-template-columns: 1fr; }
  .strip-item { padding-block: 14px; }
  .strip-item + .strip-item { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-left: 10px; }
  .prod-grid { grid-template-columns: 1fr; }
  .prod-photo::before { display: none; }
  .roomset-grid { grid-template-columns: 1fr; }
  .roomset-photo { min-height: 300px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; flex-direction: row; flex-wrap: wrap; gap: 20px 32px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
  .product-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .co-summary { position: static; }
}

@media (max-width: 640px) {
  html { overflow-x: hidden; }
  .topline { font-size: 11px; }
  .header-in { height: 62px; }
  .mobile-menu { inset: 62px 0 0 0; }
  .logo { font-size: 22px; }
  .cart-btn { padding: 8px 13px; }
  .cart-btn .cart-btn-label { display: none; }
  .hero { min-height: 88vh; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .pcard-body { padding: 12px 12px 14px; }
  .pcard-name { font-size: 17px; }
  .pcard-price b { font-size: 15.5px; }
  .pcard-price s { font-size: 12px; }
  .pcard-add { font-size: 10.5px; letter-spacing: 0.08em; padding: 9px 6px; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .roomset-item { grid-template-columns: 70px 1fr auto; gap: 12px; }
  .roomset-item img { width: 70px; height: 70px; }
  .fld-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .pgallery-main { aspect-ratio: 1 / 1; }
  .dims-grid { gap: 18px; }
}
