@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600&family=Manrope:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600&display=swap');
:root {
  --bg: #fafafc;
  --paper: #ffffff;
  --paper-2: #f1efec;
  --ink: #1c1d1f;
  --muted: #6b6d70;
  --line: rgba(28, 29, 31, .11);
  --dark: #1c1d1f;
  --white: #fafafc;
  --radius: 16px;
  --radius-sm: 10px;
  --gap: clamp(12px, 1.1vw, 20px);
  --page: min(100% - 24px, 1840px);
  --content: min(100% - 40px, 1540px);
  --font: Inter, Helvetica Neue, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: -0.018em;
  font-weight: 400;
}
body::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button, input, textarea { font: inherit; letter-spacing: inherit; }
button { color: inherit; }

.site-header {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  width: var(--page);
  min-height: 60px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius);
  background: rgba(250,250,252,.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(28, 29, 31, .06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 560; }
.brand__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}
.brand__name { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 520; }
.nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3.4vw, 62px); }
.nav__link, .header-action {
  font-size: clamp(14px, .95vw, 18px);
  font-weight: 560;
  white-space: nowrap;
}
sup {
  display: inline-block;
  margin-left: 3px;
  vertical-align: top;
  font-size: .48em;
  letter-spacing: -0.02em;
}
.header-action { justify-self: end; }

main { overflow: hidden; }
.section-top { padding-top: 82px; }
.section {
  width: var(--content);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 96px) 0 0;
}
.card-round { border-radius: var(--radius); overflow: hidden; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}
.hero-title, .section-title, .catalog-hero h1, .product-info h1, .footer__title {
  margin: 0;
  font-size: clamp(36px, 3.9vw, 72px);
  line-height: .94;
  font-weight: 560;
  letter-spacing: -0.052em;
}
.section-title { font-size: clamp(30px, 3.1vw, 56px); max-width: 780px; font-weight: 560; }
.section-lead, .hero-text, .footer__text {
  margin: 18px 0 0;
  max-width: 680px;
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.22;
  color: var(--muted);
}
.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 10px;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 560;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn--light { background: rgba(255,255,255,.38); color: var(--ink); }
.btn--white { background: var(--white); color: var(--ink); border: 0; }
.btn--wide { width: 100%; margin-top: 20px; }
.plain-link { align-self: end; font-size: 15px; font-weight: 560; border-bottom: 1px solid currentColor; }

.hero-grid {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, .47fr) minmax(0, 1fr);
  gap: var(--gap);
  height: calc(100svh - 20px);
  min-height: 620px;
  max-height: 840px;
}
.hero-side { position: relative; background: var(--paper-2); }
.hero-side__logo {
  position: absolute;
  top: 22px; left: 22px;
  width: 44px; height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 560;
  background: rgba(250,250,252,.6);
}
.hero-main {
  position: relative;
  min-height: 100%;
  background: var(--paper-2);
  padding: clamp(76px, 7vw, 122px) clamp(24px, 3.5vw, 64px) 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.hero-main__content { max-width: 1040px; position: relative; z-index: 2; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.hero-main__image {
  align-self: end;
  justify-self: center;
  width: min(86%, 1020px);
  height: clamp(140px, 18vw, 270px);
  margin-top: 26px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 22px 58px rgba(28,29,31,.09);
}
.hero-main__image img { object-position: center 68%; }
.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.hero-stats div { display: flex; flex-direction: column; gap: 5px; }
.hero-stats strong { font-size: clamp(22px, 2vw, 34px); font-weight: 560; line-height: .95; }
.hero-stats span { color: var(--muted); font-size: 13px; letter-spacing: -0.02em; }

.intro-centered { text-align: center; }
.intro-centered .section-title, .intro-centered .section-lead { margin-left: auto; margin-right: auto; }
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: clamp(30px, 3.6vw, 58px);
}
.feature-card { margin: 0; }
.feature-card img { aspect-ratio: 1 / .82; border-radius: var(--radius-sm); }
.feature-card figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 48px);
}
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .section-title, .section-head--center .section-lead { margin-left: auto; margin-right: auto; }
.image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.image-pair__card { height: clamp(260px, 34vw, 560px); background: #f1efec; }
.image-pair__card--lower { margin-top: clamp(24px, 5vw, 80px); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2vw, 34px) var(--gap);
}
.product-grid--home { grid-template-columns: repeat(4, 1fr); }
.product-card { display: block; min-width: 0; }
.product-card__media {
  position: relative;
  height: clamp(190px, 20vw, 350px);
  background: #ded8cf;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.product-card__media img { transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.035); }
.badge {
  position: absolute;
  z-index: 2;
  right: 16px; top: 16px;
  min-width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid; place-items: center;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 560;
  line-height: 1;
  color: var(--white);
  background: #191919;
}
.product-card__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 14px;
}
.product-card h3 { margin: 0; font-size: clamp(16px, 1vw, 19px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 560; }
.product-card p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.26; letter-spacing: -0.035em; }
.product-card strong { font-size: 16px; font-weight: 560; line-height: 1; }

.quiet-block {
  display: grid;
  grid-template-columns: .78fr 1fr;
  align-items: center;
  gap: var(--gap);
}
.quiet-block__text {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 3vw, 48px);
  border-radius: var(--radius);
  background: var(--paper);
}
.quiet-block__media {
  position: relative;
  height: clamp(340px, 43vw, 640px);
}
.floating-card {
  position: absolute;
  top: 28px; right: 28px;
  width: min(280px, 44%);
  padding: 16px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 20px 80px rgba(0,0,0,.16);
}
.floating-card span { display: block; margin-bottom: 12px; color: var(--muted); }
.floating-card strong { font-size: 19px; font-weight: 560; line-height: .98; }

.categories-block { width: min(100%, 1920px); max-width: none; padding-left: max(12px, calc((100% - 1540px)/2)); padding-right: 0; }
.categories-block .section-head { padding-right: max(24px, calc((100% - 1540px)/2)); }
.slider-arrows { display: flex; gap: 8px; }
.slider-arrows button {
  width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--paper); cursor: pointer; font-size: 22px;
}
.category-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 26vw, 470px);
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.category-track::-webkit-scrollbar { display: none; }
.category-slide img { height: clamp(240px, 28vw, 440px); border-radius: var(--radius-sm); }
.category-slide span { display: block; margin-top: 12px; font-size: 16px; font-weight: 520; }

.full-banner {
  position: relative;
  width: var(--page);
  min-height: clamp(380px, 46vw, 640px);
  padding: 0;
  color: var(--white);
  background: #1d1a16;
}
.full-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.26);
  pointer-events: none;
}
.full-banner__content {
  position: absolute;
  z-index: 2;
  left: clamp(26px, 4vw, 82px);
  bottom: clamp(34px, 5vw, 90px);
  width: min(620px, calc(100% - 52px));
}
.full-banner__content h2 { margin: 0; font-size: clamp(36px, 4.2vw, 72px); font-weight: 560; line-height: .88; }
.full-banner__content p { margin: 16px 0 24px; font-size: clamp(15px, 1vw, 20px); line-height: 1.22; color: rgba(255,250,242,.86); }
.option-boxes {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 3vw, 50px);
  top: clamp(18px, 3vw, 50px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.option-boxes > div {
  width: 96px;
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}
.option-boxes span { font-size: 26px; line-height: 1; }
.option-boxes b { font-size: 13px; font-weight: 520; }
.swatches { display: grid !important; grid-template-columns: 1fr 1fr; gap: 5px; width: 54px; }
.swatches i { display: block; aspect-ratio: 1; border-radius: 4px; background: #b69877; }
.swatches i:nth-child(2) { background: #1b1b1b; }
.swatches i:nth-child(3) { background: #d8d5ce; }
.swatches i:nth-child(4) { background: #775f49; }

.process-grid, .materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.process-card, .materials-grid article {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.32);
}
.process-card span { color: var(--muted); }
.process-card h3, .materials-grid h3 { margin: 34px 0 0; font-size: 21px; font-weight: 560; line-height: .95; }
.process-card p, .materials-grid p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.18; }
.materials-grid article { min-height: 155px; }

.faq-block { display: grid; grid-template-columns: .75fr 1fr; gap: clamp(26px, 4vw, 70px); padding-bottom: clamp(52px, 6vw, 92px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.faq-item b { font-size: clamp(18px, 1.35vw, 26px); font-weight: 560; line-height: .98; }
.faq-item em { font-style: normal; font-size: 24px; transition: transform .2s ease; }
.faq-item p { grid-column: 1 / -1; display: none; margin: 0; max-width: 680px; color: var(--muted); font-size: 15px; line-height: 1.24; }
.faq-item.is-open p { display: block; }
.faq-item.is-open em { transform: rotate(45deg); }

.catalog-hero {
  position: relative;
  width: var(--page);
  margin: 82px auto 0;
  height: clamp(320px, 32vw, 500px);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  background: #2a241d;
}
.catalog-hero::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.catalog-hero > div {
  position: absolute;
  z-index: 2;
  left: clamp(26px, 4vw, 82px);
  bottom: clamp(36px, 5vw, 86px);
}
.catalog-hero p { margin: 0 0 14px; font-size: 14px; color: rgba(255,250,242,.72); }
.catalog-section { width: var(--content); margin: 0 auto; padding: clamp(36px, 4vw, 68px) 0 clamp(58px, 6vw, 96px); }
.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: clamp(30px, 3.6vw, 54px);
}
.catalog-tab {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font-size: clamp(15px, 1.05vw, 20px);
  font-weight: 560;
  color: var(--ink);
  opacity: .56;
}
.catalog-tab.is-active { opacity: 1; }
.product-card[hidden] { display: none; }

.product-page {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, .58fr);
  gap: var(--gap);
  align-items: start;
}
.product-gallery__main { height: clamp(440px, 55vw, 720px); background: #f1efec; }
.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: var(--gap);
}
.product-gallery__thumbs button {
  height: 120px;
  border: 2px solid transparent;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
}
.product-gallery__thumbs button.is-active { border-color: var(--ink); }
.product-info {
  position: sticky;
  top: 82px;
  min-height: 500px;
  padding: clamp(28px, 3vw, 52px);
  border-radius: var(--radius);
  background: var(--paper);
}
.crumb { display: inline-block; margin-bottom: clamp(24px, 3vw, 46px); color: var(--muted); font-size: 14px; }
.product-info h1 { font-size: clamp(34px, 3.1vw, 56px); font-weight: 560; }
.product-info__lead { margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.25; }
.product-price {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 24px 0;
  margin: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-price strong { font-size: 26px; font-weight: 560; }
.product-price span { color: var(--muted); font-size: 14px; }
.specs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 22px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs span { color: var(--muted); }
.specs b { text-align: right; }
.related { padding-bottom: clamp(58px, 6vw, 96px); }

.footer {
  width: var(--page);
  margin: 0 auto 14px;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: clamp(26px, 4vw, 70px);
  padding: clamp(30px, 4.5vw, 70px);
}
.footer__title { font-size: clamp(34px, 3.8vw, 64px); font-weight: 560; }
.footer__text { color: rgba(255,250,242,.68); }
.request-form { display: grid; gap: 12px; }
.request-form input, .request-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: var(--white);
  padding: 16px 16px;
  outline: none;
  font-size: 15px;
}
.request-form input::placeholder, .request-form textarea::placeholder { color: rgba(255,250,242,.46); }
.request-form textarea { min-height: 112px; resize: vertical; }
.request-form button {
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 560;
  cursor: pointer;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(30px, 4.5vw, 70px);
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,250,242,.72);
  font-size: 13px;
}

[data-editable-text], [data-editable-image] { outline-offset: 4px; }
[data-editable-text]:hover, [data-editable-image]:hover { outline: 1px dashed rgba(20,20,20,.35); }
.footer [data-editable-text]:hover { outline-color: rgba(255,255,255,.45); }

@media (max-width: 1180px) {
  :root { --page: min(100% - 20px, 1840px); --content: min(100% - 28px, 1540px); }
  .site-header { grid-template-columns: 1fr auto; padding: 0 18px; }
  .brand__name, .header-action { display: none; }
  .nav { justify-content: flex-end; gap: 24px; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-side { display: none; }
  .hero-main { min-height: 760px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .quiet-block, .faq-block, .product-page, .footer__top { grid-template-columns: 1fr; }
  .product-info { position: static; min-height: auto; }
  .process-grid, .materials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .site-header { top: 8px; min-height: 62px; border-radius: 14px; }
  .brand__mark { width: 40px; height: 40px; }
  .nav { gap: 16px; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav__link { font-size: 15px; }
  .section-top { padding-top: 82px; }
  .section { padding-top: 76px; }
  .hero-main { padding: 96px 20px 20px; min-height: 710px; }
  .hero-title, .section-title, .catalog-hero h1, .product-info h1, .footer__title { letter-spacing: -0.065em; }
  .hero-main__image { width: 100%; height: 260px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .feature-row, .image-pair, .product-grid, .product-grid--home { grid-template-columns: 1fr; }
  .feature-card img { aspect-ratio: 1.16 / 1; }
  .image-pair__card { height: 410px; }
  .image-pair__card--lower { margin-top: 0; }
  .product-card__media { height: 390px; }
  .quiet-block__text { min-height: 420px; padding: 24px; }
  .quiet-block__media, .full-banner { height: 560px; min-height: 560px; }
  .floating-card { width: calc(100% - 40px); right: 20px; top: 20px; }
  .process-grid, .materials-grid { grid-template-columns: 1fr; }
  .process-card, .materials-grid article { min-height: auto; }
  .process-card h3, .materials-grid h3 { margin-top: 38px; }
  .faq-block { padding-bottom: 76px; }
  .catalog-hero { margin-top: 82px; height: 430px; }
  .catalog-tabs { gap: 12px 20px; }
  .catalog-tab { font-size: 17px; }
  .product-page { padding-top: 82px; }
  .product-gallery__main { height: 500px; }
  .product-gallery__thumbs button { height: 110px; }
  .product-info { padding: 26px 20px; }
  .option-boxes { display: none; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .nav__link:nth-child(n+3) { display: none; }
  .hero-main { min-height: 650px; }
  .btn { min-height: 58px; font-size: 16px; }
  .section-title { font-size: 42px; }
  .section-lead, .hero-text { font-size: 18px; }
  .category-track { grid-auto-columns: 78vw; }
  .category-slide img { height: 330px; }
  .product-card__media { height: 330px; }
  .full-banner__content h2 { font-size: 44px; }
  .footer { margin-bottom: 8px; }
}


/* compact pass requested: thinner typography, lower sections, provided colors */
@media (min-width: 1181px) {
  .hero-grid.section-top { padding-top: 82px; }
  .hero-main { overflow: hidden; }
}

@media (max-width: 1180px) {
  .hero-grid { height: auto; min-height: 0; max-height: none; }
  .hero-main { min-height: 620px; }
  .product-card__media { height: 300px; }
}

@media (max-width: 820px) {
  .section-top { padding-top: 74px; }
  .section { padding-top: 54px; }
  .site-header { min-height: 56px; }
  .brand__mark { width: 36px; height: 36px; }
  .nav__link { font-size: 14px; font-weight: 520; }
  .hero-main { padding: 82px 18px 18px; min-height: 590px; }
  .hero-title, .section-title, .catalog-hero h1, .product-info h1, .footer__title { letter-spacing: -0.05em; }
  .hero-main__image { width: 100%; height: 220px; margin-top: 20px; }
  .hero-stats { margin-top: 14px; padding-top: 14px; }
  .image-pair__card { height: 320px; }
  .product-card__media { height: 300px; }
  .quiet-block__text { min-height: 300px; padding: 22px; }
  .quiet-block__media, .full-banner { height: 440px; min-height: 440px; }
  .process-card h3, .materials-grid h3 { margin-top: 28px; }
  .faq-block { padding-bottom: 54px; }
  .catalog-hero { margin-top: 74px; height: 340px; }
  .product-page { padding-top: 74px; }
  .product-gallery__main { height: 420px; }
  .product-gallery__thumbs button { height: 92px; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-main { min-height: 560px; }
  .hero-title { font-size: 34px; }
  .section-title { font-size: 30px; }
  .section-lead, .hero-text { font-size: 15px; }
  .btn { min-height: 50px; font-size: 14px; }
  .category-slide img { height: 260px; }
  .product-card__media { height: 270px; }
  .full-banner__content h2 { font-size: 34px; }
}


/* v4 spacing, hover and combo blocks */
@media (min-width: 821px) {
  .section { padding-top: 70px; }
  .section-head { margin-bottom: 30px; }
  .process-block > .section-title,
  .faq-block > .section-title { margin-bottom: 30px; }
  .materials-list .section-head { margin-bottom: 30px; }
}

@media (min-width: 1181px) {
  .hero-grid {
    height: calc(100svh - 18px);
    min-height: 560px;
    max-height: 760px;
  }
  .hero-main {
    padding-top: clamp(58px, 5vw, 86px);
    padding-bottom: 16px;
  }
  .hero-main__image {
    height: clamp(112px, 13vw, 205px);
    margin-top: 16px;
    width: min(80%, 900px);
  }
  .hero-actions { margin-top: 20px; }
  .hero-stats {
    margin-top: 12px;
    padding-top: 12px;
  }
  .hero-stats strong { font-size: clamp(20px, 1.7vw, 30px); }
  .hero-stats span { font-size: 12px; }
}

[data-editable-text], [data-editable-image] { outline: none !important; }
[data-editable-text]:hover, [data-editable-image]:hover { outline: none !important; }
.footer [data-editable-text]:hover { outline: none !important; }

.nav__link, .header-action {
  position: relative;
  transition: color .24s ease, opacity .24s ease;
}
.nav__link::after, .header-action::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s ease;
}
.nav__link:hover::after, .header-action:hover::after { transform: scaleX(1); }
.nav__link:hover, .header-action:hover { opacity: .72; }

.btn, .request-form button, .slider-arrows button, .catalog-tab {
  transition: background-color .24s ease, color .24s ease, border-color .24s ease, opacity .24s ease, transform .24s ease;
}
.btn--dark:hover {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--paper-2);
}
.btn--light:hover, .btn--white:hover, .request-form button:hover, .slider-arrows button:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn:hover span { transform: translateX(4px); }
.btn span { transition: transform .24s ease; }
.catalog-tab:hover { opacity: 1; }

.combo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}
.combo-product {
  min-height: clamp(420px, 43vw, 650px);
  padding: clamp(26px, 4vw, 58px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: var(--paper);
}
.combo-product h3 {
  max-width: 520px;
  margin: 0 auto 30px;
  font-size: clamp(18px, 1.6vw, 28px);
  line-height: 1.05;
  font-weight: 520;
  letter-spacing: -0.04em;
}
.combo-product__image {
  width: min(420px, 78%);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--paper-2);
}
.combo-product__caption {
  width: min(420px, 78%);
  margin-top: 16px;
  text-align: left;
}
.combo-product__caption p {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.2;
}
.combo-product__caption strong {
  font-size: 15px;
  font-weight: 560;
}
.combo-interior {
  position: relative;
  min-height: clamp(420px, 43vw, 650px);
  background: var(--paper-2);
}
.mini-product-card {
  position: absolute;
  right: clamp(18px, 3.3vw, 52px);
  top: clamp(18px, 3.3vw, 52px);
  z-index: 3;
  width: min(260px, 38%);
  padding: 12px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 18px 70px rgba(28,29,31,.14);
  transition: transform .24s ease, box-shadow .24s ease;
}
.mini-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 86px rgba(28,29,31,.18);
}
.mini-product-card--left {
  left: clamp(18px, 3.3vw, 52px);
  right: auto;
}
.mini-product-card span {
  display: block;
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-2);
}
.mini-product-card b {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.14;
  font-weight: 520;
}
.mini-product-card strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1;
  font-weight: 560;
}

@media (max-width: 1180px) {
  .combo-grid { grid-template-columns: 1fr; }
  .combo-section--mirror .combo-grid .combo-interior { order: 2; }
  .combo-section--mirror .combo-grid .combo-product { order: 1; }
}

@media (max-width: 820px) {
  .section { padding-top: 54px; }
  .section-head,
  .process-block > .section-title,
  .faq-block > .section-title,
  .materials-list .section-head { margin-bottom: 24px; }
  .combo-product, .combo-interior { min-height: 420px; }
  .combo-product { padding: 24px 18px; }
  .mini-product-card { width: min(240px, 62%); }
}

@media (max-width: 480px) {
  .combo-product, .combo-interior { min-height: 360px; }
  .combo-product__image, .combo-product__caption { width: 88%; }
  .mini-product-card { width: calc(100% - 36px); }
}

/* v5: smoother interactions, gallery arrows, thinner headings, 150px desktop rhythm */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

#app {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .54s cubic-bezier(.22, 1, .36, 1), transform .54s cubic-bezier(.22, 1, .36, 1), filter .54s ease;
}
body.is-ready #app {
  opacity: 1;
  transform: translateY(0);
}
body.is-leaving #app {
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(4px);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .42s ease, visibility .42s ease;
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader__card {
  width: min(280px, calc(100% - 40px));
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 0 24px 90px rgba(28,29,31,.07);
}
.preloader__mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1.4px solid var(--ink);
  border-radius: 50%;
  font-weight: 520;
  font-size: 14px;
}
.preloader__name {
  font-size: 12px;
  font-weight: 520;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.preloader__line {
  position: relative;
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: rgba(28,29,31,.12);
}
.preloader__line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 100%;
  background: var(--ink);
  animation: preloaderLine 1.05s cubic-bezier(.76, 0, .24, 1) infinite;
}
@keyframes preloaderLine {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(280%); }
}

.hero-title,
.section-title,
.catalog-hero h1,
.product-info h1,
.footer__title,
.full-banner__content h2 {
  font-weight: 460;
  letter-spacing: -0.058em;
}
.section-title { font-weight: 460; }
.product-card h3,
.process-card h3,
.materials-grid h3,
.faq-item b,
.product-price strong,
.specs b,
.combo-product h3,
.floating-card strong {
  font-weight: 500;
}

@media (min-width: 821px) {
  .section { padding-top: 150px; }
  .section-head,
  .process-block > .section-title,
  .faq-block > .section-title,
  .materials-list .section-head { margin-bottom: 30px; }
  .related { padding-bottom: 150px; }
  .footer { margin-top: 0; }
}

.btn,
.request-form button,
.slider-arrows button,
.catalog-tab,
.gallery-nav {
  will-change: transform, box-shadow, background-color, color;
}
.btn,
.request-form button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform .34s cubic-bezier(.22, 1, .36, 1),
    box-shadow .34s cubic-bezier(.22, 1, .36, 1),
    color .28s ease,
    background-color .28s ease,
    border-color .28s ease;
}
.btn span { transition: transform .34s cubic-bezier(.22, 1, .36, 1); }
.btn:hover,
.request-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(28,29,31,.12);
}
.btn:active,
.request-form button:active {
  transform: translateY(-1px) scale(.99);
}
.btn--dark {
  box-shadow: inset 0 0 0 0 var(--paper-2), 0 0 0 rgba(28,29,31,0);
}
.btn--dark:hover {
  background: var(--dark);
  color: var(--ink);
  border-color: var(--paper-2);
  box-shadow: inset 0 -62px 0 0 var(--paper-2), 0 18px 46px rgba(28,29,31,.12);
}
.btn--dark:hover span { transform: translateX(8px); }
.btn--light,
.btn--white,
.request-form button {
  box-shadow: inset 0 0 0 0 var(--dark), 0 0 0 rgba(28,29,31,0);
}
.btn--light:hover,
.btn--white:hover,
.request-form button:hover {
  background: var(--paper);
  color: var(--white);
  border-color: var(--dark);
  box-shadow: inset 0 -62px 0 0 var(--dark), 0 18px 46px rgba(28,29,31,.12);
}
.slider-arrows button,
.gallery-nav {
  transition:
    transform .34s cubic-bezier(.22, 1, .36, 1),
    box-shadow .34s cubic-bezier(.22, 1, .36, 1),
    background-color .28s ease,
    color .28s ease;
}
.slider-arrows button:hover,
.gallery-nav:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(28,29,31,.12);
}
.slider-arrows button:active,
.gallery-nav:active { transform: translateY(-1px) scale(.98); }
.catalog-tab { position: relative; }
.catalog-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.catalog-tab:hover::after,
.catalog-tab.is-active::after { transform: scaleX(1); }

.product-gallery__main {
  position: relative;
  overflow: hidden;
}
.product-gallery__main img {
  transition: opacity .24s ease, transform .42s cubic-bezier(.22, 1, .36, 1);
}
.product-gallery__main img.is-switching {
  opacity: .38;
  transform: scale(1.012);
}
.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  background: rgba(250,250,252,.78);
  backdrop-filter: blur(12px);
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.gallery-nav--prev { left: 22px; }
.gallery-nav--next { right: 22px; }
.product-gallery__thumbs button {
  transition: border-color .22s ease, transform .3s cubic-bezier(.22, 1, .36, 1), opacity .22s ease;
}
.product-gallery__thumbs button:hover {
  transform: translateY(-3px);
  opacity: .88;
}

@media (max-width: 820px) {
  .section { padding-top: 82px; }
  .gallery-nav {
    width: 46px;
    height: 46px;
  }
  .gallery-nav--prev { left: 14px; }
  .gallery-nav--next { right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* v6: category carousel 3-per-row, smaller following banner, exact 150px rhythm */
@media (min-width: 821px) {
  .categories-block {
    width: var(--content);
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
  }

  .categories-block .section-head {
    padding-right: 0;
  }

  .category-track {
    grid-auto-columns: calc((100% - (var(--gap) * 2)) / 3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    padding-bottom: 0;
  }

  .category-slide {
    scroll-snap-align: start;
  }

  .category-slide img {
    height: clamp(260px, 28vw, 420px);
  }

  .section.full-banner {
    margin-top: 150px;
    padding-top: 0 !important;
    height: clamp(340px, 34vw, 500px);
    min-height: clamp(340px, 34vw, 500px);
    overflow: hidden;
  }

  .section.full-banner + .section {
    padding-top: 150px;
  }

  .full-banner > img {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .full-banner__content {
    bottom: clamp(28px, 3.8vw, 58px);
  }

  .full-banner__content h2 {
    font-size: clamp(32px, 3.5vw, 58px);
  }

  .full-banner__content p {
    max-width: 520px;
    font-size: clamp(14px, .92vw, 17px);
  }
}

@media (max-width: 820px) {
  .category-track {
    grid-auto-columns: 78vw;
  }

  .section.full-banner {
    padding-top: 0 !important;
    margin-top: 82px;
    height: 430px;
    min-height: 430px;
    overflow: hidden;
  }

  .full-banner > img {
    position: absolute;
    inset: 0;
    height: 100%;
  }
}

/* v7: fixed menu while scrolling */
#app {
  transform: none !important;
  filter: none !important;
}
body.is-ready #app,
body.is-leaving #app {
  transform: none !important;
  filter: none !important;
}
.site-header {
  position: fixed !important;
  top: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 990 !important;
}


/* v8: Bench Brothers brand, separate about page and proper footer */
.contact-cta {
  width: var(--page);
  margin: 150px auto 14px;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}
.contact-cta__content {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 520px);
  gap: clamp(28px, 5vw, 92px);
  padding: clamp(34px, 5vw, 82px);
}
.contact-cta .footer__title { max-width: 820px; color: var(--white); }
.contact-cta .footer__text { color: rgba(250,250,252,.68); }
.contact-cta .request-form input,
.contact-cta .request-form textarea {
  background: rgba(250,250,252,.06);
  border-color: rgba(250,250,252,.18);
}

.footer {
  width: var(--page);
  margin: 0 auto 14px;
  padding: clamp(36px, 5vw, 72px) clamp(28px, 4.6vw, 72px) clamp(24px, 3vw, 38px);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(300px, 1fr) minmax(220px, .6fr);
  gap: clamp(34px, 6vw, 120px);
  align-items: start;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 520;
}
.footer-brand .brand__mark {
  border-color: var(--white);
  color: var(--white);
}
.footer__newsletter p {
  max-width: 360px;
  margin: 0 0 22px;
  color: rgba(250,250,252,.72);
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.18;
}
.footer-subscribe {
  display: grid;
  grid-template-columns: 1fr 58px;
  gap: 8px;
  max-width: 460px;
}
.footer-subscribe input {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid rgba(250,250,252,.12);
  border-radius: 10px;
  background: rgba(250,250,252,.12);
  color: var(--white);
  outline: none;
}
.footer-subscribe input::placeholder { color: rgba(250,250,252,.46); }
.footer-subscribe button {
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  transition: transform .34s cubic-bezier(.22, 1, .36, 1), background-color .28s ease, color .28s ease;
}
.footer-subscribe button:hover {
  transform: translateY(-3px);
  background: var(--paper-2);
}
.footer__nav {
  display: grid;
  gap: 20px;
}
.footer__nav a {
  width: fit-content;
  font-size: clamp(34px, 4vw, 72px);
  line-height: .92;
  letter-spacing: -0.06em;
  font-weight: 430;
  position: relative;
}
.footer__nav a::after,
.footer__contacts a::after,
.footer__legal a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s ease;
}
.footer__nav a:hover::after,
.footer__contacts a:hover::after,
.footer__legal a:hover::after { transform: scaleX(1); }
.footer__contacts {
  display: grid;
  justify-items: end;
  gap: 16px;
  color: rgba(250,250,252,.72);
  text-align: right;
  font-size: clamp(15px, 1vw, 18px);
}
.footer__contacts a { position: relative; width: fit-content; color: var(--white); }
.footer-socials {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}
.footer-socials a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: transform .34s cubic-bezier(.22, 1, .36, 1), background-color .28s ease, color .28s ease;
}
.footer-socials a::after { display: none; }
.footer-socials a:hover {
  transform: translateY(-3px);
  background: var(--paper-2);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin-top: clamp(48px, 7vw, 110px);
  padding-top: 22px;
  border-top: 1px solid rgba(250,250,252,.12);
  color: rgba(250,250,252,.52);
  font-size: 13px;
}
.footer__legal a { position: relative; }

.about-hero {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: var(--gap);
  min-height: min(720px, calc(100svh - 104px));
  align-items: stretch;
}
.about-hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 80px);
  border-radius: var(--radius);
  background: var(--paper);
}
.about-hero__image { min-height: 480px; background: var(--paper-2); }
.about-value {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(26px, 5vw, 84px);
  align-items: center;
}
.about-value__copy .section-lead {
  max-width: 560px;
  color: var(--ink);
}
.about-value__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.about-value__images > div {
  height: clamp(340px, 37vw, 600px);
  background: var(--paper-2);
}
.about-value__image-lower { margin-top: 56px; }
.about-principles {
  display: grid;
  gap: 0;
}
.about-principle {
  display: grid;
  grid-template-columns: 120px 160px 1fr;
  gap: clamp(22px, 4vw, 70px);
  align-items: center;
  padding: clamp(28px, 4vw, 62px) 0;
  border-top: 1px solid var(--line);
}
.about-principle:last-child { border-bottom: 1px solid var(--line); }
.about-principle > span {
  color: var(--muted);
  font-size: 18px;
}
.about-principle__image {
  width: 160px;
  height: 126px;
  background: var(--paper-2);
}
.about-principle h2 {
  margin: 0 0 12px;
  max-width: 760px;
  font-size: clamp(26px, 2.6vw, 48px);
  line-height: .96;
  letter-spacing: -0.055em;
  font-weight: 460;
}
.about-principle p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.24;
}
.about-production__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.about-production__grid > div {
  height: clamp(260px, 26vw, 420px);
  background: var(--paper-2);
}
.about-dark {
  width: var(--page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(34px, 5vw, 76px);
  background: var(--dark);
  color: var(--white);
}
.about-dark .section-title { color: var(--white); }
.about-dark .section-lead { color: rgba(250,250,252,.68); }
.about-dark .btn { flex: 0 0 auto; }

@media (max-width: 1180px) {
  .contact-cta__content,
  .footer__grid,
  .about-hero,
  .about-value { grid-template-columns: 1fr; }
  .footer__contacts { justify-items: start; text-align: left; }
  .about-hero__image { min-height: 420px; }
  .about-production__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .contact-cta { margin-top: 82px; }
  .contact-cta__content { padding: 26px 18px; }
  .footer { padding: 30px 18px 24px; }
  .footer__nav a { font-size: 38px; }
  .footer-subscribe { grid-template-columns: 1fr 54px; }
  .about-hero { min-height: 0; }
  .about-hero__text { padding: 28px 20px; }
  .about-hero__image { min-height: 330px; }
  .about-value__images { grid-template-columns: 1fr; }
  .about-value__images > div { height: 320px; }
  .about-value__image-lower { margin-top: 0; }
  .about-principle { grid-template-columns: 1fr; gap: 18px; }
  .about-principle__image { width: 100%; height: 220px; }
  .about-production__grid { grid-template-columns: 1fr; }
  .about-production__grid > div { height: 300px; }
  .about-dark { flex-direction: column; align-items: flex-start; }
}

/* v9: fullscreen mobile menu, svg socials, about gallery carousel */
.burger,
.mobile-menu,
.mobile-menu__close {
  display: none;
}

.footer-socials a svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}
.footer-socials a {
  font-size: 0;
}

.about-production .section-head {
  align-items: end;
  margin-bottom: 30px;
}
.about-production__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--gap) * 2)) / 3);
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0;
}
.about-production__track::-webkit-scrollbar { display: none; }
.about-production__slide {
  height: clamp(260px, 26vw, 420px);
  scroll-snap-align: start;
  background: var(--paper-2);
}
.about-production + .about-dark {
  margin-top: 150px;
}

@media (max-width: 820px) {
  body.menu-open {
    overflow: hidden;
  }
  .site-header {
    grid-template-columns: 1fr auto !important;
  }
  .site-header .nav,
  .site-header .header-action {
    display: none !important;
  }
  .brand__name {
    display: inline !important;
  }
  .burger {
    position: relative;
    z-index: 1202;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: var(--paper-2);
    color: var(--ink);
    cursor: pointer;
  }
  .burger span {
    position: absolute;
    width: 18px;
    height: 1.5px;
    border-radius: 99px;
    background: currentColor;
    transition: transform .34s cubic-bezier(.22, 1, .36, 1), opacity .24s ease;
  }
  .burger span:first-child { transform: translateY(-4px); }
  .burger span:last-child { transform: translateY(4px); }
  body.menu-open .burger span:first-child { transform: rotate(45deg); }
  body.menu-open .burger span:last-child { transform: rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 28px;
    padding: 18px 18px 28px;
    background: var(--bg);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .34s cubic-bezier(.22, 1, .36, 1), visibility .34s ease, transform .34s cubic-bezier(.22, 1, .36, 1);
  }
  body.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .mobile-menu__head {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.72);
  }
  .mobile-menu__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 520;
  }
  .mobile-menu__close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: var(--paper-2);
    color: var(--ink);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
  }
  .mobile-menu__nav {
    display: grid;
    align-content: center;
    gap: 16px;
    padding: 12px 4px;
  }
  .mobile-menu__link {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(38px, 12vw, 70px);
    line-height: .92;
    letter-spacing: -0.07em;
    font-weight: 430;
  }
  .mobile-menu__link--muted {
    color: var(--muted);
  }
  .mobile-menu__contacts {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--dark);
    color: var(--white);
    font-size: 16px;
  }
  .mobile-menu__contacts span {
    color: rgba(250,250,252,.6);
  }
  .about-production .section-head {
    align-items: flex-start;
  }
  .about-production__track {
    grid-auto-columns: 78vw;
  }
  .about-production__slide {
    height: 300px;
  }
  .about-production + .about-dark {
    margin-top: 82px;
  }
}

@media (max-width: 480px) {
  .brand__name {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 10px;
    letter-spacing: .06em;
  }
  .mobile-menu__link {
    font-size: 42px;
  }
}

/* Inline edit mode */
.bb-edit-mode [data-editable-text],
.bb-edit-mode [data-editable-image] {
  cursor: pointer;
}
.bb-edit-mode [data-editable-text]:hover {
  background: rgba(241, 239, 236, .8);
  box-shadow: 0 0 0 6px rgba(241, 239, 236, .8);
  border-radius: 4px;
}
.bb-edit-mode [data-editable-image]:hover {
  filter: saturate(.82) brightness(.96);
}
.bb-edit-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10000;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  font-size: 14px;
  font-weight: 520;
  box-shadow: 0 16px 48px rgba(28, 29, 31, .18);
  transition: opacity .22s ease, transform .22s ease;
}
.bb-edit-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.bb-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 29, 31, .28);
  backdrop-filter: blur(10px);
}
.bb-edit-modal__box {
  width: min(620px, 100%);
  padding: 18px;
  border-radius: 18px;
  background: #fafafc;
  box-shadow: 0 24px 80px rgba(28, 29, 31, .22);
}
.bb-edit-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.bb-edit-modal__head b {
  font-size: 18px;
  font-weight: 520;
}
.bb-edit-modal__head button,
.bb-edit-modal__actions button {
  border: 0;
  cursor: pointer;
  border-radius: 10px;
}
.bb-edit-modal__head button {
  width: 38px;
  height: 38px;
  background: #f1efec;
  font-size: 24px;
  line-height: 1;
}
.bb-edit-modal textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 1px solid rgba(28, 29, 31, .14);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  color: #1c1d1f;
  font-size: 16px;
  line-height: 1.28;
  outline: none;
}
.bb-edit-modal textarea:focus {
  border-color: rgba(28, 29, 31, .42);
}
.bb-edit-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.bb-edit-modal__actions button {
  min-height: 46px;
  padding: 0 18px;
  font-weight: 520;
}
.bb-edit-modal__primary {
  background: #1c1d1f;
  color: #fafafc;
}
.bb-edit-modal__secondary {
  background: #f1efec;
  color: #1c1d1f;
}

/* v13: faster back navigation, richer transition/preloader, fixed fullscreen mobile menu, single-open FAQ */
body.is-ready #app {
  opacity: 1;
}
body.is-leaving #app {
  opacity: .18;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
  overflow: hidden;
  color: var(--white);
}
.page-transition__panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--dark);
  transform: scaleY(0);
  transition: transform .28s cubic-bezier(.76, 0, .24, 1);
}
.page-transition__panel--top {
  top: 0;
  transform-origin: top;
}
.page-transition__panel--bottom {
  bottom: 0;
  transform-origin: bottom;
}
.page-transition__label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  opacity: 0;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 520;
  transition: opacity .16s ease .08s;
}
.page-transition.is-active .page-transition__panel {
  transform: scaleY(1);
}
.page-transition.is-active .page-transition__label {
  opacity: 1;
}

.preloader {
  background: var(--bg);
  isolation: isolate;
}
.preloader__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .36;
  background:
    linear-gradient(110deg, transparent 0 44%, rgba(241,239,236,.95) 44% 56%, transparent 56% 100%),
    repeating-linear-gradient(90deg, rgba(28,29,31,.035) 0 1px, transparent 1px 18px);
  transform: translateX(-24%);
  animation: preloaderGrain .9s cubic-bezier(.76, 0, .24, 1) both;
}
.preloader__card {
  position: relative;
  width: min(340px, calc(100% - 40px));
  min-height: 184px;
  gap: 10px;
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(16px);
  overflow: hidden;
}
.preloader__card::before,
.preloader__card::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(28,29,31,.12);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}
.preloader__card::after {
  inset: 26px;
  border-style: dashed;
  opacity: .32;
}
.preloader__mark {
  position: relative;
  z-index: 1;
  animation: preloaderMark .9s cubic-bezier(.22, 1, .36, 1) infinite alternate;
}
.preloader__caption {
  position: relative;
  z-index: 1;
  margin-top: -4px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.preloader__line {
  width: min(180px, 100%);
  margin-top: 8px;
  background: rgba(28,29,31,.1);
}
.preloader__line i {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--ink);
  animation: preloaderLine 1.05s cubic-bezier(.76, 0, .24, 1) infinite;
}
.preloader__line::after { display: none; }
.preloader--internal .preloader__card {
  min-height: 148px;
}
@keyframes preloaderGrain {
  from { transform: translateX(-34%); opacity: 0; }
  to { transform: translateX(0); opacity: .36; }
}
@keyframes preloaderMark {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-2px) scale(.96); }
}

.faq-item {
  align-items: start;
}
.faq-item p {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .34s cubic-bezier(.22, 1, .36, 1), opacity .24s ease, transform .34s cubic-bezier(.22, 1, .36, 1), margin .24s ease;
}
.faq-item.is-open p {
  max-height: 160px;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .site-header {
    width: calc(100% - 20px) !important;
    min-height: 56px !important;
    padding: 0 10px !important;
    grid-template-columns: 1fr 44px !important;
    border-radius: 18px !important;
  }
  body.menu-open .burger {
    opacity: 0;
    pointer-events: none;
  }
  .mobile-menu {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1200 !important;
    display: grid !important;
    grid-template-rows: auto 1fr auto;
    gap: 24px;
    width: 100vw;
    height: 100dvh;
    padding: 12px;
    background: var(--bg);
    color: var(--ink);
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-104%);
    transition: transform .46s cubic-bezier(.76, 0, .24, 1), visibility .46s ease;
  }
  body.menu-open .mobile-menu {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .mobile-menu__head {
    min-height: 70px;
    padding: 0 12px;
    border: 1px solid rgba(28,29,31,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.84);
    box-shadow: 0 18px 50px rgba(28,29,31,.08);
  }
  .mobile-menu__brand .brand__mark {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }
  .mobile-menu__close {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--paper-2);
    font-size: 30px;
  }
  .mobile-menu__nav {
    align-content: center;
    gap: 6px;
    padding: 4vh 10px 2vh;
  }
  .mobile-menu__link {
    padding: 12px 0;
    font-size: clamp(34px, 11vw, 56px);
    line-height: .94;
    letter-spacing: -0.065em;
  }
  .mobile-menu__link sup {
    margin-top: 4px;
    font-size: 14px;
    letter-spacing: -0.02em;
  }
  .mobile-menu__contacts {
    margin: 0;
    padding: 18px;
    border-radius: 18px;
    font-size: 18px;
    line-height: 1.18;
  }
}

@media (max-width: 480px) {
  .mobile-menu__nav {
    align-content: start;
    padding-top: 9vh;
  }
  .mobile-menu__link {
    font-size: clamp(38px, 13vw, 52px);
  }
}

/* v14: smooth curtain page transitions without internal preloader flicker */
body.is-leaving #app {
  opacity: 1;
}

.page-transition {
  background: transparent;
}
.page-transition__panel {
  background: #1c1d1f;
  will-change: transform;
  transition: transform .68s cubic-bezier(.77, 0, .175, 1);
}
.page-transition__panel--top {
  transform-origin: top;
}
.page-transition__panel--bottom {
  transform-origin: bottom;
}
.page-transition__label {
  color: #fafafc;
  font-size: 13px;
  letter-spacing: .18em;
  transition: opacity .28s ease .18s, transform .48s cubic-bezier(.22, 1, .36, 1);
  transform: translate(-50%, -50%) translateY(8px);
}
.page-transition.is-active .page-transition__label {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}
.page-transition.is-opening .page-transition__label {
  opacity: 0;
  transition-delay: 0s;
  transform: translate(-50%, -50%) translateY(-8px);
}
.page-transition.is-opening .page-transition__panel {
  transition-duration: .76s;
}
.page-transition.is-opening .page-transition__panel--top {
  transform-origin: top;
}
.page-transition.is-opening .page-transition__panel--bottom {
  transform-origin: bottom;
}

@media (prefers-reduced-motion: reduce) {
  .page-transition__panel,
  .page-transition__label {
    transition-duration: .01ms !important;
  }
}

/* v17: real Bench Brothers logo, expanded menu and audio catalog dropdown */
.site-header {
  grid-template-columns: 150px 1fr 150px;
  overflow: visible;
}
.brand--image {
  min-width: 0;
  gap: 0;
}
.brand__logo {
  width: 58px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}
.nav {
  gap: clamp(14px, 2.25vw, 44px);
}
.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav__item .nav__link {
  display: inline-flex;
  align-items: baseline;
}
.nav-dropdown {
  position: absolute;
  left: 50%;
  top: calc(100% + 19px);
  width: 280px;
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid rgba(28,29,31,.08);
  border-radius: 14px;
  background: rgba(250,250,252,.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(28,29,31,.12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .28s ease, transform .34s cubic-bezier(.22,1,.36,1), visibility .28s ease;
  pointer-events: none;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  height: 22px;
}
.nav-dropdown a {
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: background-color .22s ease, transform .22s ease, opacity .22s ease;
}
.nav-dropdown a:hover {
  background: var(--paper-2);
  transform: translateX(3px);
  opacity: .86;
}
.nav__item--has-dropdown:hover .nav-dropdown,
.nav__item--has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.assembly-section .section-head--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.assembly-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.assembly-card {
  min-height: 360px;
  display: grid;
  grid-template-rows: auto 180px auto 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.42);
}
.assembly-card > span {
  color: var(--muted);
  font-size: 14px;
}
.assembly-card img {
  height: 180px;
  border-radius: 10px;
}
.assembly-card h3 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: .98;
  font-weight: 520;
  letter-spacing: -0.045em;
}
.assembly-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 120px 1fr 110px;
  }
  .nav { gap: 18px; }
  .nav__link, .header-action { font-size: 14px; }
  .assembly-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr 56px !important;
  }
  .brand__logo {
    width: 54px;
    height: 48px;
  }
  .mobile-menu__brand--image {
    width: min(100%, 230px);
    min-width: 0;
    display: inline-flex;
    align-items: center;
  }
  .mobile-menu__logo {
    width: 62px;
    height: 54px;
    object-fit: contain;
    object-position: left center;
  }
  .mobile-menu__nav {
    align-content: start !important;
    padding-top: 4vh !important;
    overflow-y: auto;
  }
  .mobile-menu__group {
    display: grid;
    gap: 8px;
  }
  .mobile-menu__group > .mobile-menu__link {
    padding-bottom: 4px;
  }
  .mobile-menu__subnav {
    display: grid;
    gap: 0;
    padding: 0 0 8px 2px;
    border-bottom: 1px solid rgba(28,29,31,.1);
  }
  .mobile-menu__subnav a {
    padding: 7px 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.05;
    letter-spacing: -0.025em;
  }
  .mobile-menu__link {
    font-size: clamp(32px, 10vw, 48px) !important;
  }
  .assembly-section .section-head--split {
    display: grid;
    align-items: start;
  }
  .assembly-grid {
    grid-template-columns: 1fr;
  }
  .assembly-card {
    min-height: 0;
    grid-template-rows: auto 210px auto auto;
  }
  .assembly-card img { height: 210px; }
}

/* v18: compact mobile menu, tap-to-open catalog submenu, full logo */
.brand__logo {
  width: 136px !important;
  height: 58px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
.site-header {
  grid-template-columns: 170px 1fr 150px !important;
}
.mobile-menu__toggle {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.mobile-menu__toggle::after {
  content: '+';
  margin-left: auto;
  font-size: .55em;
  line-height: 1;
  font-weight: 420;
  transform: translateY(-.05em);
  transition: transform .28s ease, opacity .28s ease;
  opacity: .72;
}
.mobile-menu__group.is-open .mobile-menu__toggle::after {
  transform: translateY(-.05em) rotate(45deg);
  opacity: 1;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 142px 1fr 112px !important;
  }
  .brand__logo {
    width: 118px !important;
    height: 54px !important;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: minmax(0, 218px) 56px !important;
  }
  .brand--image {
    min-width: 0 !important;
    overflow: visible !important;
  }
  .brand__logo {
    width: min(188px, calc(100vw - 150px)) !important;
    height: 64px !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
  .mobile-menu__head {
    min-height: 72px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
  }
  .mobile-menu__brand--image {
    width: min(235px, calc(100vw - 112px)) !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
  .mobile-menu__logo {
    width: min(220px, calc(100vw - 126px)) !important;
    height: 62px !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
  .mobile-menu__nav {
    gap: 0 !important;
    padding: 22px 10px 12px !important;
    align-content: start !important;
  }
  .mobile-menu__link {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(28, 29, 31, .10) !important;
    font-size: clamp(27px, 8.2vw, 36px) !important;
    line-height: .96 !important;
    letter-spacing: -0.06em !important;
    font-weight: 430 !important;
  }
  .mobile-menu__link sup {
    margin: 0 0 0 auto !important;
    padding-top: .12em !important;
    font-size: 12px !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
    color: var(--muted) !important;
  }
  .mobile-menu__group {
    gap: 0 !important;
  }
  .mobile-menu__group > .mobile-menu__link {
    padding-bottom: 12px !important;
  }
  .mobile-menu__subnav {
    display: grid !important;
    grid-template-rows: 0fr !important;
    gap: 0 !important;
    padding: 0 !important;
    border-bottom: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transition: grid-template-rows .36s cubic-bezier(.22, 1, .36, 1), opacity .22s ease, padding .28s ease !important;
  }
  .mobile-menu__subnav::before {
    content: '';
    min-height: 0;
  }
  .mobile-menu__subnav > * {
    overflow: hidden;
  }
  .mobile-menu__group.is-open .mobile-menu__subnav {
    grid-template-rows: 1fr !important;
    padding: 4px 0 12px 18px !important;
    border-bottom: 1px solid rgba(28, 29, 31, .10) !important;
    opacity: 1 !important;
  }
  .mobile-menu__subnav a {
    display: block !important;
    padding: 8px 0 !important;
    color: var(--muted) !important;
    font-size: 15px !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
  }
  .mobile-menu__link--muted {
    color: rgba(28,29,31,.62) !important;
  }
  .mobile-menu__contacts {
    padding: 16px !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 480px) {
  .site-header {
    grid-template-columns: minmax(0, 220px) 56px !important;
  }
  .mobile-menu__link {
    font-size: clamp(26px, 7.6vw, 32px) !important;
    letter-spacing: -0.055em !important;
  }
  .mobile-menu__nav {
    padding-top: 18px !important;
  }
  .mobile-menu__contacts {
    font-size: 16px !important;
  }
}

/* v19: corrected mobile menu layout, centered close icon, accordion submenu */
@media (max-width: 820px) {
  .site-header {
    grid-template-columns: minmax(0, 230px) 64px !important;
    align-items: center !important;
    min-height: 86px !important;
    padding: 10px 16px !important;
  }

  .brand--image {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .brand__logo {
    width: min(196px, calc(100vw - 150px)) !important;
    height: 74px !important;
    object-fit: contain !important;
    object-position: left center !important;
    display: block !important;
  }

  .burger {
    width: 56px !important;
    height: 56px !important;
    border-radius: 18px !important;
    display: grid !important;
    place-items: center !important;
  }

  .burger span {
    left: 50% !important;
    top: 50% !important;
    margin-left: -11px !important;
    width: 22px !important;
    height: 2px !important;
  }

  .mobile-menu {
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: 22px !important;
    padding: 18px 18px 22px !important;
    overflow: hidden !important;
  }

  .mobile-menu__head {
    min-height: 92px !important;
    padding: 10px 14px 10px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    border-radius: 28px !important;
  }

  .mobile-menu__brand--image {
    width: min(220px, calc(100vw - 138px)) !important;
    height: 76px !important;
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
  }

  .mobile-menu__logo {
    width: 100% !important;
    height: 76px !important;
    max-width: 220px !important;
    object-fit: contain !important;
    object-position: left center !important;
    display: block !important;
  }

  .mobile-menu__close {
    flex: 0 0 62px !important;
    width: 62px !important;
    height: 62px !important;
    border-radius: 20px !important;
    display: grid !important;
    place-items: center !important;
    position: relative !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -999px !important;
    overflow: hidden !important;
  }

  .mobile-menu__close::before,
  .mobile-menu__close::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 28px !important;
    height: 2.5px !important;
    border-radius: 999px !important;
    background: currentColor !important;
    transform-origin: center !important;
  }

  .mobile-menu__close::before { transform: translate(-50%, -50%) rotate(45deg) !important; }
  .mobile-menu__close::after { transform: translate(-50%, -50%) rotate(-45deg) !important; }

  .mobile-menu__nav {
    display: block !important;
    min-height: 0 !important;
    padding: 34px 8px 10px !important;
    margin: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    align-content: start !important;
    scrollbar-width: thin !important;
  }

  .mobile-menu__group {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .mobile-menu__link,
  .mobile-menu__toggle {
    width: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding: 18px 0 22px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(28, 29, 31, .12) !important;
    font-size: clamp(40px, 10.4vw, 52px) !important;
    line-height: .92 !important;
    letter-spacing: -0.07em !important;
    font-weight: 430 !important;
  }

  .mobile-menu__toggle {
    appearance: none !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-family: inherit !important;
    text-align: left !important;
    cursor: pointer !important;
  }

  .mobile-menu__toggle::after {
    content: '+' !important;
    flex: 0 0 auto !important;
    margin: 0 0 0 auto !important;
    padding-top: .05em !important;
    font-size: .52em !important;
    line-height: 1 !important;
    font-weight: 420 !important;
    opacity: .75 !important;
    transform: translateY(.02em) rotate(0deg) !important;
    transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .22s ease !important;
  }

  .mobile-menu__group.is-open .mobile-menu__toggle::after {
    transform: translateY(.02em) rotate(45deg) !important;
    opacity: 1 !important;
  }

  .mobile-menu__link sup,
  .mobile-menu__toggle sup {
    flex: 0 0 auto !important;
    margin: .05em 0 0 auto !important;
    font-size: 13px !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
    color: var(--muted) !important;
  }

  .mobile-menu__toggle sup {
    margin-left: auto !important;
  }

  .mobile-menu__subnav,
  .mobile-menu__subnav[aria-hidden='true'] {
    display: block !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    transition: max-height .42s cubic-bezier(.22, 1, .36, 1), opacity .22s ease, padding .32s ease !important;
  }

  .mobile-menu__subnav::before {
    display: none !important;
    content: none !important;
  }

  .mobile-menu__subnav > * {
    overflow: visible !important;
  }

  .mobile-menu__group.is-open .mobile-menu__subnav,
  .mobile-menu__subnav[aria-hidden='false'] {
    max-height: 260px !important;
    padding: 10px 0 18px 4px !important;
    border-bottom: 1px solid rgba(28, 29, 31, .12) !important;
    opacity: 1 !important;
  }

  .mobile-menu__subnav a {
    display: block !important;
    padding: 9px 0 !important;
    color: var(--muted) !important;
    font-size: 16px !important;
    line-height: 1.12 !important;
    letter-spacing: -0.025em !important;
    font-weight: 430 !important;
  }

  .mobile-menu__link--muted {
    color: rgba(28, 29, 31, .62) !important;
  }

  .mobile-menu__contacts {
    margin: 0 0 2px !important;
    padding: 18px 20px !important;
    border-radius: 24px !important;
  }
}

@media (max-width: 480px) {
  .site-header {
    grid-template-columns: minmax(0, 220px) 58px !important;
  }

  .brand__logo {
    width: min(188px, calc(100vw - 144px)) !important;
    height: 70px !important;
  }

  .mobile-menu__head {
    min-height: 88px !important;
    padding: 10px 14px 10px 18px !important;
  }

  .mobile-menu__brand--image {
    width: min(205px, calc(100vw - 132px)) !important;
    height: 74px !important;
  }

  .mobile-menu__logo {
    max-width: 205px !important;
    height: 74px !important;
  }

  .mobile-menu__close {
    flex-basis: 58px !important;
    width: 58px !important;
    height: 58px !important;
  }

  .mobile-menu__nav {
    padding-top: 28px !important;
  }

  .mobile-menu__link,
  .mobile-menu__toggle {
    font-size: clamp(36px, 9.2vw, 44px) !important;
    padding: 16px 0 19px !important;
  }

  .mobile-menu__subnav a {
    font-size: 15px !important;
  }
}

/* v20: mobile header height, compact menu typography, no plus icon, three-line burger */
@media (max-width: 820px) {
  .site-header {
    height: 50px !important;
    min-height: 50px !important;
    grid-template-columns: minmax(0, 150px) 50px !important;
    padding: 4px 8px 4px 12px !important;
    border-radius: 24px !important;
    align-items: center !important;
  }

  .brand--image {
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
  }

  .brand__logo {
    width: 118px !important;
    height: 42px !important;
    max-width: 118px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  .burger {
    justify-self: end !important;
    align-self: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 16px !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .burger span {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 20px !important;
    height: 2px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: currentColor !important;
    transform-origin: center !important;
    opacity: 1 !important;
  }

  .burger span:nth-child(1) { transform: translate(-50%, -7px) !important; }
  .burger span:nth-child(2) { transform: translate(-50%, -50%) !important; }
  .burger span:nth-child(3) { transform: translate(-50%, 5px) !important; }

  body.menu-open .burger span:nth-child(1),
  body.menu-open .burger span:nth-child(2),
  body.menu-open .burger span:nth-child(3) {
    transform: translate(-50%, -50%) !important;
    opacity: 0 !important;
  }

  .mobile-menu {
    gap: 16px !important;
    padding: 14px 16px 18px !important;
  }

  .mobile-menu__head {
    min-height: 58px !important;
    height: 58px !important;
    padding: 5px 8px 5px 12px !important;
    border-radius: 24px !important;
    align-items: center !important;
  }

  .mobile-menu__brand--image {
    width: 128px !important;
    height: 48px !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
  }

  .mobile-menu__logo {
    width: 128px !important;
    height: 48px !important;
    max-width: 128px !important;
    object-fit: contain !important;
    object-position: left center !important;
    display: block !important;
  }

  .mobile-menu__close {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 16px !important;
  }

  .mobile-menu__close::before,
  .mobile-menu__close::after {
    width: 23px !important;
    height: 2px !important;
  }

  .mobile-menu__nav {
    padding: 12px 6px 8px !important;
    overflow-y: auto !important;
  }

  .mobile-menu__link,
  .mobile-menu__toggle {
    min-height: 50px !important;
    padding: 12px 0 !important;
    align-items: center !important;
    font-size: 20px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    font-weight: 520 !important;
  }

  .mobile-menu__toggle::after {
    display: none !important;
    content: none !important;
  }

  .mobile-menu__link sup,
  .mobile-menu__toggle sup {
    margin: 0 0 0 auto !important;
    font-size: 11px !important;
    line-height: 1 !important;
    color: var(--muted) !important;
  }

  .mobile-menu__group.is-open .mobile-menu__subnav,
  .mobile-menu__subnav[aria-hidden='false'] {
    max-height: 230px !important;
    padding: 4px 0 12px 0 !important;
    border-bottom: 1px solid rgba(28, 29, 31, .12) !important;
    opacity: 1 !important;
  }

  .mobile-menu__subnav a {
    padding: 7px 0 !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
  }

  .mobile-menu__contacts {
    margin: 0 !important;
    padding: 16px 18px !important;
    border-radius: 24px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .site-header {
    height: 50px !important;
    min-height: 50px !important;
    grid-template-columns: minmax(0, 144px) 50px !important;
    padding: 4px 8px 4px 12px !important;
  }
  .brand__logo {
    width: 112px !important;
    height: 42px !important;
    max-width: 112px !important;
  }
  .mobile-menu__link,
  .mobile-menu__toggle {
    font-size: 20px !important;
    padding: 12px 0 !important;
  }
}

/* v21: mobile burger aligned to the right inside 50px header */
@media (max-width: 820px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) 50px !important;
    width: calc(100% - 32px) !important;
    max-width: none !important;
  }

  .brand--image {
    justify-self: start !important;
  }

  .burger {
    grid-column: 2 !important;
    justify-self: end !important;
    margin-left: auto !important;
  }
}

@media (max-width: 480px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) 50px !important;
    width: calc(100% - 32px) !important;
  }

  .burger {
    justify-self: end !important;
    margin-left: auto !important;
  }
}


/* v22: footer logo, compact footer nav, no text wrapping in action links, real assembly copy spacing */
.footer-brand--image {
  width: 176px;
  height: 72px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}
.footer__logo {
  width: 176px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
  display: block;
  filter: invert(1);
}
.footer__nav {
  gap: 14px;
}
.footer__nav a {
  font-size: clamp(15px, 1.05vw, 18px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.018em !important;
  font-weight: 560 !important;
}
.plain-link {
  white-space: nowrap;
  min-width: max-content;
}
.section-head--center {
  gap: 0;
}
.section-head--center .section-lead {
  margin-top: 18px;
}
.assembly-section .section-lead {
  margin-top: 16px;
}
@media (max-width: 820px) {
  .footer-brand--image {
    width: 150px;
    height: 62px;
  }
  .footer__logo {
    width: 150px;
    height: 62px;
  }
  .footer__nav {
    gap: 13px;
  }
  .footer__nav a {
    font-size: 20px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.03em !important;
  }
  .products-preview .section-head {
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .plain-link {
    font-size: 16px;
  }
}

/* v23: client edits — clearer first screen, vertical hero photo, text style CMS, video-ready assembly */

[data-editable-text][data-bb-style] {
  font-family: var(--bb-font, inherit) !important;
  color: var(--bb-color, inherit) !important;
  font-size: var(--bb-size-desktop, inherit) !important;
}
@media (max-width: 820px) {
  [data-editable-text][data-bb-style] {
    font-size: var(--bb-size-mobile, var(--bb-size-desktop, inherit)) !important;
  }
}

@media (min-width: 1181px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: calc(100svh - 24px) !important;
    max-height: none !important;
  }
  .hero-side { display: none !important; }
  .hero-main {
    min-height: calc(100svh - 104px) !important;
    display: grid !important;
    grid-template-columns: minmax(0, .82fr) minmax(360px, .62fr) !important;
    grid-template-rows: 1fr auto !important;
    align-items: stretch !important;
    gap: clamp(22px, 3vw, 54px) !important;
    padding: clamp(72px, 7vw, 118px) clamp(36px, 5vw, 86px) clamp(22px, 3vw, 42px) !important;
  }
  .hero-main__content {
    max-width: 780px !important;
    align-self: center !important;
  }
  .hero-main__image {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: clamp(520px, 62vh, 760px) !important;
    margin: 0 !important;
    align-self: stretch !important;
    justify-self: stretch !important;
  }
  .hero-main__image img { object-position: center center !important; }
  .hero-stats {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
}

.hero-identity {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(250,250,252,.54);
}
.hero-identity__logo {
  width: 74px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}
.hero-identity strong {
  display: block;
  font-size: 15px;
  line-height: 1;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.hero-identity span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .02em;
}

.assembly-card__video {
  width: fit-content;
  margin-top: 2px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 14px;
  font-weight: 520;
}

.footer__logo--white,
.footer__logo {
  background: transparent !important;
}

.bb-edit-modal__box--wide { width: min(760px, 100%); }
.bb-edit-controls {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr .72fr;
  gap: 10px;
  margin-top: 12px;
}
.bb-edit-field {
  display: grid;
  gap: 7px;
  color: #6b6d70;
  font-size: 13px;
}
.bb-edit-field--full { color: #6b6d70; }
.bb-edit-field select,
.bb-edit-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(28, 29, 31, .14);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: #1c1d1f;
  outline: none;
}
.bb-edit-field input[type='color'] {
  padding: 4px;
  cursor: pointer;
}
.bb-edit-preview {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(28,29,31,.1);
  border-radius: 14px;
  background: #fff;
  line-height: 1.15;
}
@media (max-width: 680px) {
  .bb-edit-controls { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .bb-edit-controls { grid-template-columns: 1fr; }
}
.footer__logo.footer__logo--white { filter: none !important; }
.assembly-card__video--empty {
  appearance: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

/* v24: hero logo separated from top line and editable as standalone block */
.hero-logo-standalone {
  width: min(190px, 42vw);
  height: auto;
  margin: 0 0 18px;
  display: block;
  position: relative;
  z-index: 3;
}
.hero-logo-standalone__image {
  width: 100%;
  height: auto;
  max-height: 88px;
  object-fit: contain;
  object-position: left center;
}
.hero-name-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--muted);
}
.hero-name-row strong {
  font-size: 15px;
  font-weight: 560;
  color: var(--ink);
  letter-spacing: .02em;
}
.hero-name-row span {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-identity { display: none !important; }

@media (max-width: 820px) {
  .hero-logo-standalone {
    width: min(148px, 40vw);
    margin-bottom: 14px;
  }
  .hero-logo-standalone__image {
    max-height: 68px;
  }
  .hero-name-row {
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }
  .hero-name-row strong { font-size: 13px; }
  .hero-name-row span { font-size: 10px; letter-spacing: .12em; }
}

@media (max-width: 520px) {
  .hero-logo-standalone {
    width: 124px;
    margin-bottom: 12px;
  }
  .hero-logo-standalone__image {
    max-height: 58px;
  }
}

/* v25: header menu uses text brand, hero keeps standalone logo only */
.site-header {
  grid-template-columns: 190px 1fr 140px;
}
.brand--text,
.mobile-menu__brand--text {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand--text {
  font-size: 13px;
}
.mobile-menu__brand--text {
  font-size: 14px;
}
.hero-name-row {
  display: none !important;
}
@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 50px;
    min-height: 50px;
    padding: 6px 9px 6px 18px;
  }
  .brand--text {
    font-size: 13px;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }
  .mobile-menu__head {
    min-height: 50px;
  }
  .mobile-menu__brand--text {
    font-size: 14px;
  }
}
@media (max-width: 420px) {
  .brand--text {
    font-size: 12px;
    letter-spacing: .035em;
  }
}


/* v27: align nav counters consistently above baseline */
.main-nav a,
.main-nav button {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1;
}

.main-nav .nav-index,
.nav-index {
  display: inline-block;
  position: relative;
  top: -0.42em;
  margin-left: 2px;
  font-size: 10px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.01em;
  vertical-align: super;
}

.main-nav .nav-dropdown > button .nav-index,
.main-nav a .nav-index {
  top: -0.42em;
}

@media (max-width: 820px) {
  .main-nav .nav-index,
  .nav-index {
    top: -0.35em;
    font-size: 10px;
  }
}


/* v28: fixed superscript counters and wider edit coverage */
.nav__link,
.nav__item .nav__link,
.header-action {
  display: inline-flex !important;
  align-items: flex-start !important;
  gap: 4px !important;
  line-height: 1 !important;
}

.nav__link > span,
.header-action > span {
  display: inline-block !important;
  line-height: 1 !important;
}

.nav__link .nav-index,
.header-action .nav-index,
.nav > a .nav-index,
.nav > button .nav-index {
  display: inline-block !important;
  position: relative !important;
  top: auto !important;
  transform: translateY(-0.58em) !important;
  margin: 0 0 0 1px !important;
  padding: 0 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em !important;
  vertical-align: top !important;
}

.nav__item--has-dropdown .nav__link .nav-index {
  transform: translateY(-0.58em) !important;
}

.catalog-tab .nav-index {
  transform: translateY(-0.5em) !important;
  font-size: 10px !important;
  margin-left: 3px !important;
}

.bb-edit-mode [data-editable-placeholder] {
  outline: 1px dashed rgba(28, 29, 31, .22);
  outline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .mobile-menu__link .nav-index,
  .mobile-menu__toggle .nav-index {
    transform: none !important;
    margin: 0 0 0 auto !important;
    font-size: 11px !important;
  }
}

/* v30: product page marketplace-style gallery + stable rendering after custom product edits */
.product-page {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
  gap: clamp(18px, 2.1vw, 34px);
}
.product-gallery {
  min-width: 0;
}
.product-gallery__frame {
  display: grid;
  grid-template-columns: clamp(74px, 6vw, 96px) minmax(0, 1fr);
  gap: clamp(12px, 1.25vw, 18px);
  align-items: start;
}
.product-gallery__main {
  width: 100%;
  height: auto !important;
  aspect-ratio: 3 / 4;
  max-height: calc(100svh - 122px);
  min-height: 560px;
  background: #f1efec;
}
.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.product-gallery__thumbs,
.product-gallery__thumbs--side {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  margin-top: 0 !important;
  max-height: calc(100svh - 122px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}
.product-gallery__thumbs--side button {
  width: 100%;
  height: auto !important;
  aspect-ratio: 1 / 1.16;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #f1efec;
}
.product-gallery__thumbs--side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-description {
  margin: clamp(18px, 1.8vw, 26px) 0 0 clamp(86px, calc(6vw + 18px), 114px);
  padding: clamp(22px, 2.4vw, 36px);
  background: var(--paper);
}
.product-description h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.product-description p {
  margin: 0;
  max-width: 980px;
  font-size: clamp(16px, 1.05vw, 19px);
  line-height: 1.38;
  color: var(--muted);
}
.product-info__lead {
  max-height: none;
}
.product-info {
  top: 92px;
}

@media (min-width: 1181px) {
  .product-page.section-top {
    padding-top: 92px;
  }
}

@media (max-width: 1180px) {
  .product-page {
    grid-template-columns: 1fr;
  }
  .product-info {
    position: relative;
    top: auto;
    order: -1;
  }
  .product-gallery__main {
    min-height: 0;
    max-height: none;
  }
}

@media (max-width: 820px) {
  .product-gallery__frame {
    grid-template-columns: 1fr;
  }
  .product-gallery__main {
    aspect-ratio: 3 / 4;
  }
  .product-gallery__thumbs,
  .product-gallery__thumbs--side {
    order: 2;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 4px;
  }
  .product-gallery__thumbs--side button {
    width: 86px;
    height: 98px !important;
    aspect-ratio: auto;
  }
  .product-description {
    margin-left: 0;
  }
}


/* v31: catalog dropdown uses live admin categories + more vertical product photo */
@media (min-width: 1181px) {
  .product-page {
    grid-template-columns: minmax(0, 790px) minmax(390px, 0.72fr) !important;
    justify-content: center;
    align-items: start;
  }

  .product-gallery {
    width: 100%;
    max-width: 790px;
  }

  .product-gallery__frame {
    grid-template-columns: clamp(70px, 5.2vw, 90px) minmax(0, 620px) !important;
    justify-content: start;
  }

  .product-gallery__main {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 4 !important;
    max-height: calc(100svh - 118px) !important;
  }

  .product-info {
    max-width: 520px;
  }
}

@media (min-width: 1500px) {
  .product-page {
    grid-template-columns: minmax(0, 850px) minmax(420px, 0.64fr) !important;
  }
  .product-gallery {
    max-width: 850px;
  }
  .product-gallery__frame {
    grid-template-columns: 96px minmax(0, 680px) !important;
  }
  .product-gallery__main {
    width: min(100%, 680px) !important;
    max-width: 680px !important;
  }
}

.nav-dropdown a {
  white-space: nowrap;
}


/* v32: wider product layout, tighter gap, 3:4 product photo */
@media (min-width: 1181px) {
  .product-page {
    width: var(--page) !important;
    grid-template-columns: minmax(0, 1fr) minmax(560px, 0.48fr) !important;
    gap: clamp(10px, 0.75vw, 14px) !important;
    justify-content: stretch !important;
    align-items: start !important;
  }

  .product-gallery {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .product-gallery__frame {
    width: 100% !important;
    grid-template-columns: clamp(72px, 5vw, 92px) minmax(520px, 680px) !important;
    gap: clamp(10px, 0.75vw, 14px) !important;
    justify-content: end !important;
  }

  .product-gallery__main {
    width: min(100%, 680px) !important;
    max-width: 680px !important;
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100svh - 118px) !important;
  }

  .product-info {
    width: 100% !important;
    max-width: none !important;
    padding: clamp(34px, 3.2vw, 58px) clamp(36px, 3.4vw, 64px) !important;
  }

  .product-description {
    margin-left: clamp(82px, calc(5vw + 14px), 106px) !important;
  }
}

@media (min-width: 1500px) {
  .product-page {
    grid-template-columns: minmax(0, 1fr) minmax(620px, 0.48fr) !important;
    gap: 14px !important;
  }

  .product-gallery__frame {
    grid-template-columns: 96px minmax(640px, 760px) !important;
    gap: 14px !important;
  }

  .product-gallery__main {
    width: min(100%, 760px) !important;
    max-width: 760px !important;
  }
}

@media (max-width: 1180px) {
  .product-page {
    width: var(--page) !important;
  }
}


/* v35: product photo made even more vertical, left media column narrower and right info card wider */
@media (min-width: 1181px) {
  .product-page {
    width: var(--page) !important;
    grid-template-columns: minmax(0, 700px) minmax(0, 1fr) !important;
    gap: clamp(8px, 0.65vw, 12px) !important;
    justify-content: stretch !important;
    align-items: start !important;
  }

  .product-gallery {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .product-gallery__frame {
    width: 100% !important;
    grid-template-columns: clamp(68px, 4.6vw, 86px) minmax(0, 1fr) !important;
    gap: clamp(8px, 0.65vw, 12px) !important;
    justify-content: start !important;
  }

  .product-gallery__main {
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: 2 / 3 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100svh - 118px) !important;
  }

  .product-info {
    width: 100% !important;
    max-width: none !important;
    padding: clamp(34px, 3vw, 58px) clamp(38px, 3.4vw, 68px) !important;
  }

  .product-description--full {
    width: var(--page) !important;
    margin: clamp(10px, 0.9vw, 16px) auto 0 !important;
    padding: clamp(30px, 3vw, 54px) clamp(38px, 3.6vw, 70px) !important;
  }

  .product-description--full p {
    max-width: none !important;
    width: 100% !important;
  }
}

@media (min-width: 1500px) {
  .product-page {
    grid-template-columns: minmax(0, 740px) minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .product-gallery__frame {
    grid-template-columns: 90px minmax(0, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 1180px) {
  .product-description--full {
    width: var(--page) !important;
    margin: 12px auto 0 !important;
  }
}


/* v36: predictable image formats, better admin editing preview and calmer mobile layout */
[data-image-frame] {
  aspect-ratio: var(--bb-img-ratio, auto);
}
[data-image-frame] > img,
[data-image-frame] img[data-editable-image],
img[data-editable-image] {
  object-fit: var(--bb-img-fit, cover);
  object-position: var(--bb-img-position, center center);
}

.product-card__media {
  height: auto !important;
  aspect-ratio: var(--bb-img-ratio, 3 / 4) !important;
  display: grid;
  place-items: center;
  background: #f1efec;
}
.product-card__media img {
  object-fit: var(--bb-img-fit, contain) !important;
  object-position: var(--bb-img-position, center center) !important;
}

.hero-main__image {
  height: auto !important;
  aspect-ratio: var(--bb-img-ratio, 16 / 9) !important;
  width: min(70%, 880px) !important;
  justify-self: end !important;
  align-self: end !important;
}
.hero-main__image img {
  object-fit: var(--bb-img-fit, cover) !important;
  object-position: var(--bb-img-position, center center) !important;
}

.feature-card__media,
.assembly-card__media,
.category-slide__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}
.feature-card__media { aspect-ratio: var(--bb-img-ratio, 4 / 3); }
.feature-card__media img { height: 100%; }
.feature-card > img { display: none; }
.category-slide__media { aspect-ratio: var(--bb-img-ratio, 16 / 9); }
.category-slide__media img { height: 100%; border-radius: 0 !important; }
.assembly-card__media { aspect-ratio: var(--bb-img-ratio, 16 / 9); margin: 14px 0 16px; }
.assembly-card__media img { height: 100%; border-radius: 10px; }

.catalog-hero {
  aspect-ratio: var(--bb-img-ratio, 16 / 9);
  height: auto !important;
  min-height: 260px;
}
.catalog-hero > img {
  object-fit: var(--bb-img-fit, cover) !important;
  object-position: var(--bb-img-position, center center) !important;
}

.product-gallery__main {
  aspect-ratio: var(--bb-img-ratio, 2 / 3) !important;
  background: #f1efec;
}
.product-gallery__main img,
.product-gallery__thumbs img {
  object-fit: var(--bb-img-fit, contain) !important;
  object-position: var(--bb-img-position, center center) !important;
}

.product-description--full {
  width: var(--page) !important;
}
.product-description--full p {
  max-width: none !important;
}

@media (min-width: 1181px) {
  .product-page {
    width: var(--page) !important;
    grid-template-columns: minmax(0, 660px) minmax(0, 1fr) !important;
    gap: clamp(8px, 0.65vw, 12px) !important;
  }
  .product-gallery__frame {
    grid-template-columns: clamp(66px, 4.4vw, 84px) minmax(0, 1fr) !important;
    gap: clamp(8px, 0.65vw, 12px) !important;
  }
  .product-info {
    padding: clamp(38px, 3.3vw, 62px) clamp(44px, 4vw, 78px) !important;
  }
}
@media (min-width: 1500px) {
  .product-page {
    grid-template-columns: minmax(0, 700px) minmax(0, 1fr) !important;
  }
  .product-gallery__frame {
    grid-template-columns: 86px minmax(0, 1fr) !important;
  }
}

/* visual editor controls */
.bb-edit-image-preview {
  width: 100%;
  aspect-ratio: var(--bb-img-ratio, 16 / 9);
  overflow: hidden;
  border-radius: 14px;
  background: #f1efec;
  border: 1px solid rgba(28,29,31,.1);
}
.bb-edit-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: var(--bb-img-fit, cover);
  object-position: var(--bb-img-position, center center);
}
.bb-edit-hint {
  margin: 10px 0 0;
  color: #6b6d70;
  font-size: 13px;
  line-height: 1.3;
}

/* Mobile tune-up */
@media (max-width: 820px) {
  :root {
    --page: min(100% - 18px, 1840px);
    --content: min(100% - 24px, 1540px);
    --radius: 14px;
  }
  .site-header {
    top: 8px !important;
    width: var(--page) !important;
    height: 50px !important;
    min-height: 50px !important;
    grid-template-columns: minmax(0, 1fr) 50px !important;
    padding: 5px 8px 5px 16px !important;
    border-radius: 15px !important;
  }
  .brand--text { font-size: 12px !important; letter-spacing: .025em !important; }
  .burger {
    justify-self: end !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 13px !important;
  }
  .section-top { padding-top: 68px !important; }
  .section { padding-top: 62px !important; }
  .hero-grid.section-top { padding-top: 68px !important; }
  .hero-grid {
    width: var(--page) !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
  }
  .hero-main {
    min-height: auto !important;
    padding: 78px 18px 18px !important;
    display: block !important;
  }
  .hero-logo-standalone {
    width: 88px !important;
    margin: 0 0 12px !important;
  }
  .hero-logo-standalone__image { max-height: 48px !important; object-position: left center !important; }
  .eyebrow { font-size: 10px !important; letter-spacing: .15em !important; margin-bottom: 10px !important; }
  .hero-title {
    font-size: clamp(32px, 10.2vw, 44px) !important;
    line-height: .95 !important;
    letter-spacing: -0.055em !important;
  }
  .hero-text {
    margin-top: 14px !important;
    font-size: 16px !important;
    line-height: 1.22 !important;
  }
  .hero-actions {
    margin-top: 18px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    min-height: 50px !important;
    white-space: nowrap !important;
  }
  .hero-main__image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: var(--bb-img-ratio, 16 / 9) !important;
    margin: 22px 0 0 !important;
    justify-self: stretch !important;
  }
  .hero-stats {
    margin-top: 16px !important;
    padding-top: 16px !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .hero-stats strong { font-size: 28px !important; }
  .hero-stats span { font-size: 15px !important; }

  .section-title,
  .catalog-hero h1,
  .product-info h1,
  .footer__title {
    font-size: clamp(30px, 9.2vw, 42px) !important;
    line-height: .98 !important;
    letter-spacing: -0.055em !important;
  }
  .section-lead { font-size: 16px !important; line-height: 1.25 !important; }
  .feature-row,
  .image-pair,
  .process-grid,
  .materials-grid,
  .faq-block,
  .about-value,
  .about-hero {
    grid-template-columns: 1fr !important;
  }
  .product-grid,
  .product-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 10px !important;
  }
  .product-card__media {
    aspect-ratio: var(--bb-img-ratio, 3 / 4) !important;
    height: auto !important;
  }
  .product-card h3 { font-size: 15px !important; line-height: 1.1 !important; }
  .product-card p { font-size: 12px !important; line-height: 1.22 !important; margin-top: 5px !important; }
  .product-card strong { font-size: 15px !important; }
  .badge { width: 62px; min-width: 62px; height: 62px; right: 10px; top: 10px; font-size: 11px; }

  .catalog-hero {
    margin-top: 68px !important;
    min-height: 220px !important;
  }
  .catalog-section { width: var(--content) !important; padding-top: 34px !important; }
  .catalog-tabs { gap: 10px 14px !important; }
  .catalog-tab { font-size: 14px !important; }

  .product-page {
    width: var(--page) !important;
    padding-top: 68px !important;
    gap: 10px !important;
  }
  .product-info {
    order: 0 !important;
    padding: 26px 18px !important;
    border-radius: var(--radius) !important;
  }
  .product-gallery { order: 1 !important; }
  .product-gallery__frame { grid-template-columns: 1fr !important; gap: 10px !important; }
  .product-gallery__main { aspect-ratio: var(--bb-img-ratio, 3 / 4) !important; height: auto !important; }
  .product-gallery__thumbs--side {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    overflow-x: auto !important;
    max-height: none !important;
    order: 2 !important;
  }
  .product-gallery__thumbs--side button { width: 74px !important; height: 88px !important; flex: 0 0 auto !important; }
  .product-description--full { width: var(--page) !important; padding: 24px 18px !important; }

  .assembly-grid { grid-template-columns: 1fr !important; }
  .assembly-card img { height: 100% !important; }
  .full-banner, .quiet-block__media, .combo-interior, .combo-product { min-height: 360px !important; height: auto !important; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(32px, 10.8vw, 41px) !important; }
  .hero-text { font-size: 15px !important; }
  .product-grid, .product-grid--home { grid-template-columns: 1fr 1fr !important; }
  .product-card h3 { font-size: 14px !important; }
  .product-card p { display: block; }
  .section { padding-top: 56px !important; }
}

/* v37: stable visual admin, real cart and final responsive fixes */
.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
}
.header-cart {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.62);
  color: var(--ink);
  transition: transform .24s ease, background .24s ease, border-color .24s ease;
}
.header-cart:hover {
  transform: translateY(-2px);
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.header-cart svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}
.header-cart__count {
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  border: 2px solid rgba(250,250,252,.95);
  font-size: 11px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.header-cart:hover .header-cart__count {
  background: var(--white);
  color: var(--ink);
}
.header-cart__count.is-empty { opacity: .72; }
.site-header {
  grid-template-columns: 190px minmax(0, 1fr) auto !important;
}
.product-card {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}
.product-card__link {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
}
.product-card__body {
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: 1fr auto;
}
.product-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-add-btn {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  font-weight: 560;
  transition: transform .24s ease, background .24s ease, color .24s ease, border-color .24s ease;
}
.cart-add-btn:hover,
.cart-add-btn.is-added {
  transform: translateY(-2px);
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
}
.product-actions .btn--wide {
  margin-top: 0 !important;
}
.product-actions button.btn {
  border: 1px solid var(--dark);
}
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1600;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 16px 48px rgba(28,29,31,.18);
  font-size: 14px;
  font-weight: 560;
  transition: opacity .22s ease, transform .22s ease;
}
.cart-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.cart-page {
  width: var(--page);
  margin: 0 auto;
  padding-bottom: clamp(60px, 7vw, 110px);
}
.cart-head {
  max-width: 860px;
  margin-bottom: clamp(24px, 3vw, 46px);
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: var(--gap);
  align-items: start;
}
.cart-list {
  display: grid;
  gap: 10px;
}
.cart-item {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) 132px 120px 44px;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.cart-item__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-2);
}
.cart-item__image img {
  object-fit: contain;
  object-position: center;
}
.cart-item h3 {
  margin: 0;
  font-size: clamp(17px, 1.25vw, 24px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 520;
}
.cart-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.cart-item > strong {
  text-align: right;
  font-size: 16px;
  font-weight: 560;
}
.cart-qty {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}
.cart-qty button,
.cart-item__remove {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font-size: 20px;
}
.cart-qty span {
  text-align: center;
  font-size: 15px;
  font-weight: 560;
}
.cart-item__remove {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--paper-2);
  line-height: 1;
}
.cart-summary {
  position: sticky;
  top: 92px;
  padding: clamp(22px, 2.4vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
}
.cart-summary__line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.cart-summary__line b {
  color: var(--ink);
  font-weight: 560;
}
.cart-summary__line--total {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 20px;
}
.cart-summary__line--total b {
  font-size: 24px;
}
.cart-order-form {
  display: grid;
  gap: 12px;
}
.cart-order-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
.cart-order-form input,
.cart-order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
}
.cart-order-form textarea {
  min-height: 96px;
  resize: vertical;
}
.cart-order-form button {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--dark);
  color: var(--white);
  cursor: pointer;
  font-weight: 560;
}
.cart-order-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}
.cart-empty {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: clamp(28px, 4vw, 64px);
  background: var(--paper);
  border: 1px solid var(--line);
}
.cart-empty h2 {
  margin: 0;
  font-size: clamp(28px, 2.8vw, 48px);
  line-height: .98;
  letter-spacing: -0.055em;
  font-weight: 500;
}
.cart-empty p {
  margin: 0 0 12px;
  color: var(--muted);
}
.combo-interior__image {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
.combo-interior__image img {
  width: 100%;
  height: 100%;
}
.image-pair__card[data-image-frame],
.quiet-block__media[data-image-frame],
.about-hero__image[data-image-frame],
.about-value__images [data-image-frame],
.about-principle__image[data-image-frame],
.about-production__slide[data-image-frame] {
  aspect-ratio: var(--bb-img-ratio, auto);
}
.full-banner[data-image-frame] {
  aspect-ratio: var(--bb-img-ratio, auto);
}
.full-banner[data-image-frame] > img,
.image-pair__card[data-image-frame] > img,
.quiet-block__media[data-image-frame] > img,
.about-hero__image[data-image-frame] > img,
.about-value__images [data-image-frame] > img,
.about-principle__image[data-image-frame] > img,
.about-production__slide[data-image-frame] > img {
  object-fit: var(--bb-img-fit, cover) !important;
  object-position: var(--bb-img-position, center center) !important;
}
.bb-edit-modal {
  place-items: center;
  align-items: center;
  overflow: auto;
  padding: clamp(10px, 2vw, 22px);
}
.bb-edit-modal__box {
  max-height: min(88dvh, 920px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.bb-edit-modal__box--wide {
  width: min(860px, 100%) !important;
}
.bb-edit-image-preview {
  max-height: min(48dvh, 440px);
}
.bb-edit-modal__actions {
  position: sticky;
  bottom: -18px;
  z-index: 2;
  margin: 16px -18px -18px;
  padding: 14px 18px 18px;
  background: linear-gradient(to top, #fafafc 0 78%, rgba(250,250,252,.72));
  border-radius: 0 0 18px 18px;
}
.bb-edit-controls {
  grid-template-columns: minmax(160px, 1.25fr) minmax(120px, .9fr) minmax(120px, .9fr) minmax(100px, .72fr) !important;
}
.bb-edit-field select,
.bb-edit-field input,
.bb-edit-modal textarea {
  font-size: 16px;
}
.bb-edit-preview {
  min-height: 58px;
  max-height: 180px;
  overflow: auto;
}
@media (max-width: 1180px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 110px minmax(0, 1fr) 126px 110px 42px; }
}
@media (max-width: 820px) {
  body { overflow-x: hidden; }
  main { overflow: visible !important; }
  .site-header {
    grid-template-columns: minmax(0, 1fr) 44px 44px !important;
    gap: 8px !important;
    height: 50px !important;
    min-height: 50px !important;
  }
  .header-actions {
    grid-column: 2 !important;
    justify-self: end !important;
  }
  .site-header .header-action { display: none !important; }
  .header-cart {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--paper-2);
  }
  .burger {
    grid-column: 3 !important;
    width: 42px !important;
    height: 42px !important;
  }
  .hero-main {
    padding: 22px 18px 18px !important;
  }
  .hero-logo-standalone {
    width: 74px !important;
    margin-bottom: 10px !important;
  }
  .hero-title {
    font-size: clamp(31px, 9.4vw, 38px) !important;
    line-height: .97 !important;
  }
  .hero-text {
    max-width: 100% !important;
    font-size: 15px !important;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .hero-stats strong { font-size: 19px !important; }
  .hero-stats span { font-size: 11px !important; }
  .product-grid,
  .product-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
  }
  .cart-add-btn {
    min-height: 42px;
    margin-top: 9px;
    padding: 0 8px;
    font-size: 12px;
  }
  .cart-page { padding-top: 68px !important; }
  .cart-item {
    grid-template-columns: 84px minmax(0, 1fr) 40px;
    gap: 10px;
  }
  .cart-item__image { grid-row: span 2; }
  .cart-qty {
    grid-column: 2;
    width: 124px;
  }
  .cart-item > strong {
    grid-column: 2;
    text-align: left;
  }
  .cart-item__remove {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
  }
  .footer-brand--image,
  .footer__logo {
    width: 126px !important;
    height: 52px !important;
  }
  .footer__logo {
    object-fit: contain !important;
    object-position: left center !important;
  }
  .footer__grid { gap: 28px !important; }
  .bb-edit-modal {
    align-items: start;
    padding: 10px;
  }
  .bb-edit-modal__box {
    width: 100% !important;
    max-height: calc(100dvh - 20px);
    padding: 14px;
    border-radius: 16px;
  }
  .bb-edit-controls {
    grid-template-columns: 1fr 1fr !important;
  }
  .bb-edit-image-preview {
    max-height: 36dvh;
  }
  .bb-edit-modal__actions {
    flex-wrap: wrap;
    justify-content: stretch;
    margin: 14px -14px -14px;
    padding: 12px 14px 14px;
  }
  .bb-edit-modal__actions button {
    flex: 1 1 auto;
  }
}
@media (max-width: 520px) {
  .product-card p { -webkit-line-clamp: 2; }
  .product-grid,
  .product-grid--home { gap: 18px 9px !important; }
  .cart-item {
    grid-template-columns: 74px minmax(0, 1fr) 38px;
    padding: 9px;
  }
  .cart-qty { width: 116px; grid-template-columns: 36px 1fr 36px; }
  .cart-item h3 { font-size: 16px; }
  .cart-item p { font-size: 13px; }
  .cart-summary { padding: 18px; }
  .bb-edit-controls { grid-template-columns: 1fr !important; }
}
.bb-edit-image-preview.is-auto-ratio {
  aspect-ratio: auto;
  min-height: 180px;
  max-height: min(58dvh, 520px);
}
.bb-edit-image-preview.is-auto-ratio img {
  height: auto;
  max-height: min(58dvh, 520px);
  object-fit: contain;
}

/* v38: клиентские фиксы — горизонтальный первый экран, фото без обрезки, ровные отступы и корзина */
@media (min-width: 1181px) {
  .hero-grid.section-top {
    padding-top: 82px !important;
  }
  .hero-grid {
    width: var(--page) !important;
    display: grid !important;
    grid-template-columns: minmax(260px, .47fr) minmax(0, 1fr) !important;
    gap: var(--gap) !important;
    height: calc(100svh - 20px) !important;
    min-height: 620px !important;
    max-height: 840px !important;
  }
  .hero-side {
    display: block !important;
    position: relative !important;
    min-height: 100% !important;
    background: var(--paper-2) !important;
  }
  .hero-side__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  .hero-main {
    min-height: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: clamp(76px, 7vw, 122px) clamp(24px, 3.5vw, 64px) 22px !important;
    overflow: hidden !important;
  }
  .hero-main__content {
    max-width: 1040px !important;
    align-self: start !important;
  }
  .hero-main__image {
    grid-column: auto !important;
    grid-row: auto !important;
    width: min(86%, 1020px) !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: var(--bb-img-ratio, 16 / 9) !important;
    margin-top: 26px !important;
    align-self: end !important;
    justify-self: center !important;
    border-radius: 12px !important;
    background: var(--paper-2) !important;
  }
  .hero-main__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: var(--bb-img-fit, contain) !important;
    object-position: var(--bb-img-position, center center) !important;
  }
  .hero-stats {
    grid-column: auto !important;
    grid-row: auto !important;
    align-self: end !important;
  }
  .section {
    padding-top: 92px !important;
  }
  .section.full-banner,
  .section.full-banner + .section,
  .about-production + .about-dark {
    margin-top: 92px !important;
    padding-top: 0 !important;
  }
  .contact-cta {
    margin-top: 92px !important;
  }
}

/* фото по умолчанию показываются полностью; обрезку можно включить в админке вручную */
[data-image-frame] > img,
[data-image-frame] img[data-editable-image],
img[data-editable-image] {
  object-fit: var(--bb-img-fit, contain) !important;
  object-position: var(--bb-img-position, center center) !important;
}
.product-card__media,
.combo-product__image,
.mini-product-card span,
.cart-item__image,
.product-gallery__main,
.product-gallery__thumbs button,
.feature-card__media,
.assembly-card__media,
.category-slide__media,
.bb-edit-image-preview {
  background: #f1efec !important;
}
.product-card__media img,
.combo-product__image img,
.mini-product-card img,
.cart-item__image img,
.product-gallery__main img,
.product-gallery__thumbs img,
.feature-card__media img,
.assembly-card__media img,
.category-slide__media img,
.bb-edit-image-preview img {
  object-fit: var(--bb-img-fit, contain) !important;
  object-position: var(--bb-img-position, center center) !important;
}

/* вернуть спокойный вид третьего визуального блока с двумя фото */
.split-showcase .section-head {
  margin-bottom: clamp(24px, 3vw, 48px) !important;
}
.image-pair {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: var(--gap) !important;
  align-items: start !important;
}
.image-pair__card {
  height: clamp(260px, 34vw, 560px) !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  background: #f1efec !important;
}
.image-pair__card--lower {
  margin-top: clamp(24px, 5vw, 80px) !important;
}
.image-pair__card > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: var(--bb-img-fit, contain) !important;
}

.cart-page.section-top {
  padding-top: 126px !important;
}

@media (max-width: 820px) {
  .hero-title,
  .section-title,
  .catalog-hero h1,
  .product-info h1,
  .footer__title,
  .full-banner__content h2,
  .cart-head .section-title,
  .cart-empty h2 {
    font-size: 30px !important;
    line-height: 1.02 !important;
    letter-spacing: -0.045em !important;
  }
  .hero-main {
    padding-top: 24px !important;
  }
  .hero-main__image {
    aspect-ratio: var(--bb-img-ratio, 16 / 9) !important;
    background: #f1efec !important;
  }
  .section {
    padding-top: 58px !important;
  }
  .image-pair {
    grid-template-columns: 1fr !important;
  }
  .image-pair__card {
    height: auto !important;
    aspect-ratio: var(--bb-img-ratio, 16 / 9) !important;
  }
  .image-pair__card--lower {
    margin-top: 0 !important;
  }
  .cart-page.section-top {
    padding-top: 92px !important;
  }
}

@media (max-width: 480px) {
  .hero-title,
  .section-title,
  .catalog-hero h1,
  .product-info h1,
  .footer__title,
  .full-banner__content h2,
  .cart-head .section-title,
  .cart-empty h2 {
    font-size: 30px !important;
  }
  .cart-page.section-top {
    padding-top: 88px !important;
  }
}

/* v39: fixes after client review — hero layout restored, content photos fill frames, logos stay uncropped */
@media (min-width: 1181px) {
  .hero-grid.section-top {
    padding-top: 82px !important;
  }
  .hero-grid {
    width: var(--page) !important;
    display: grid !important;
    grid-template-columns: minmax(280px, .47fr) minmax(0, 1fr) !important;
    gap: var(--gap) !important;
    height: auto !important;
    min-height: calc(100svh - 20px) !important;
    max-height: none !important;
    align-items: stretch !important;
  }
  .hero-side {
    display: block !important;
    position: relative !important;
    min-height: clamp(620px, calc(100svh - 102px), 820px) !important;
    overflow: hidden !important;
    background: var(--paper-2) !important;
  }
  .hero-side__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: var(--bb-img-position, center center) !important;
  }
  .hero-main {
    min-height: clamp(620px, calc(100svh - 102px), 820px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: clamp(58px, 5.6vw, 96px) clamp(32px, 4.6vw, 76px) clamp(20px, 2.6vw, 34px) !important;
    overflow: hidden !important;
  }
  .hero-main__content {
    position: relative !important;
    z-index: 3 !important;
    max-width: 850px !important;
    flex: 0 0 auto !important;
  }
  .hero-logo-standalone {
    margin-bottom: clamp(18px, 2.4vw, 30px) !important;
  }
  .hero-main__image {
    position: relative !important;
    z-index: 1 !important;
    flex: 0 0 auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: min(86%, 980px) !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: var(--bb-img-ratio, 16 / 9) !important;
    margin: clamp(26px, 4vh, 48px) auto 0 !important;
    align-self: center !important;
    justify-self: center !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: var(--paper-2) !important;
    box-shadow: 0 22px 58px rgba(28,29,31,.09) !important;
  }
  .hero-main__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: var(--bb-img-fit, cover) !important;
    object-position: var(--bb-img-position, center center) !important;
  }
  .hero-stats {
    position: relative !important;
    z-index: 2 !important;
    flex: 0 0 auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    margin-top: clamp(22px, 3vh, 34px) !important;
  }
}

/* Все контентные фото по умолчанию заполняют свою область. В админке можно вручную выбрать "показать полностью". */
[data-image-frame] > img,
[data-image-frame] img[data-editable-image],
img[data-editable-image] {
  object-fit: var(--bb-img-fit, cover) !important;
  object-position: var(--bb-img-position, center center) !important;
}
.product-card__media img,
.combo-product__image img,
.combo-interior__image img,
.mini-product-card img,
.cart-item__image img,
.product-gallery__main img,
.product-gallery__thumbs img,
.feature-card__media img,
.assembly-card__media img,
.category-slide__media img,
.catalog-hero > img,
.full-banner > img,
.image-pair__card > img,
.quiet-block__media > img,
.about-hero__image > img,
.about-value__images img,
.about-principle__image img,
.about-production__slide img,
.bb-edit-image-preview img {
  object-fit: var(--bb-img-fit, cover) !important;
  object-position: var(--bb-img-position, center center) !important;
}

/* Логотипы не обрезаем никогда */
.brand__logo,
.mobile-menu__logo,
.hero-logo-standalone__image,
.footer__logo,
.footer__logo--white,
[data-editable-image="brand.logo"],
img[src*="logo"],
img[src*="Logo"] {
  object-fit: contain !important;
  object-position: left center !important;
}
.hero-logo-standalone[data-editable-image="brand.logo"] {
  display: block !important;
  overflow: visible !important;
}
.hero-logo-standalone .hero-logo-standalone__image,
.hero-logo-standalone > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: left center !important;
}

@media (max-width: 820px) {
  .hero-main__image img,
  .product-card__media img,
  .feature-card__media img,
  .image-pair__card > img,
  .quiet-block__media > img,
  .full-banner > img {
    object-fit: var(--bb-img-fit, cover) !important;
  }
}


/* === v40 hero fix === */
.hero-grid.section-top{
  width:var(--page);
  margin:82px auto 0;
  padding-top:0 !important;
}
.hero-grid{
  display:block !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
}
.hero-side{display:none !important;}
.hero-main.hero-main--layout{
  min-height:0 !important;
  padding:clamp(26px,2.2vw,36px) !important;
  overflow:hidden;
}
.hero-layout{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(360px,0.92fr);
  gap:clamp(28px,3vw,48px);
  align-items:center;
}
.hero-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.hero-main__content{
  max-width:none !important;
}
.hero-logo-standalone{margin-bottom:18px;}
.hero-title{
  max-width:13.2ch;
  margin-bottom:16px;
}
.hero-text{
  max-width:700px;
}
.hero-visual{
  align-self:center;
  justify-self:center;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-actions{margin-bottom:18px;}
.hero-main__image.hero-main__image--inline{
  width:100% !important;
  height:auto !important;
  margin-top:0 !important;
  border-radius:24px;
  overflow:hidden;
}
.hero-main__image.hero-main__image--inline img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}
.hero-stats{
  margin-top:18px !important;
  padding-top:18px !important;
  border-top:1px solid var(--line);
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.hero-visual{
  position:relative;
  width:100%;
  align-self:stretch;
  min-height:100%;
  border-radius:24px;
  overflow:hidden;
  background:var(--paper-2);
}
.hero-visual img,
.hero-visual__img{
  width:100%;
  height:100%;
  object-fit:var(--bb-img-fit, cover);
  object-position:var(--bb-img-position, center center);
  display:block;
}
.hero-logo-standalone__image,
[data-editable-image="brand.logo"] img,
.hero-logo-standalone img,
.header-brand__mark,
img[src*="bb-logo"],
img[alt*="logo" i]{
  object-fit:contain !important;
}
@media (max-width: 980px){
  .hero-main.hero-main--layout{padding:24px !important;}
  .hero-layout{grid-template-columns:1fr;gap:22px;}
  .hero-title{max-width:none;}
  .hero-visual{order:2;min-height:340px;aspect-ratio:4/3;}
  .hero-copy{order:1;}
}
@media (max-width: 640px){
  .hero-grid.section-top{margin-top:68px;}
  .hero-main.hero-main--layout{padding:18px !important;}
  .hero-title{font-size:30px !important;line-height:0.96 !important;max-width:none;}
  .hero-text{font-size:15px !important;line-height:1.35 !important;}
  .hero-actions{display:grid;grid-template-columns:1fr;gap:10px;}
  .hero-main__image.hero-main__image--inline{border-radius:18px;}
  .hero-visual{min-height:260px;aspect-ratio:4/3;border-radius:18px;}
  .hero-stats{grid-template-columns:1fr;gap:12px;margin-top:14px !important;padding-top:14px !important;}
}


/* === v41 spacing + full-fill fixes === */
.quiet-block {
  align-items: stretch;
}
.quiet-block__media {
  margin-right: clamp(14px, 1.6vw, 24px);
}
.combo-interior {
  overflow: hidden;
}
.combo-interior__image[data-image-frame] {
  aspect-ratio: auto !important;
  height: 100% !important;
  min-height: 100%;
}
.combo-interior__image[data-image-frame] > img,
.combo-interior__image > img {
  width: 100%;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
@media (max-width: 980px) {
  .quiet-block__media {
    margin-right: 0;
  }
}


/* === v42 quiet right spacing === */
:root {
  --quiet-right-space: clamp(18px, 2vw, 28px);
}
.quiet-block__media {
  width: calc(100% - var(--quiet-right-space));
  margin-right: var(--quiet-right-space) !important;
  justify-self: stretch;
}
@media (max-width: 980px) {
  .quiet-block__media {
    width: 100%;
    margin-right: 0 !important;
  }
}


/* === v43 smaller right spacing === */
:root {
  --quiet-right-space: clamp(6px, .65vw, 10px);
}
.quiet-block__media {
  width: calc(100% - var(--quiet-right-space));
  margin-right: var(--quiet-right-space) !important;
}
@media (max-width: 980px) {
  .quiet-block__media {
    width: 100%;
    margin-right: 0 !important;
  }
}


/* === v44 client fixes: catalog, about, mobile, layout === */
[data-editable-text] {
  white-space: pre-line;
}
.site-header {
  max-width: var(--page);
}
.nav__item { position: relative; }
.nav-dropdown {
  max-width: min(360px, calc(100vw - 28px));
  min-width: 280px;
  overflow: hidden;
  padding: 14px;
}
.nav-dropdown a {
  display: block;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.16;
}
.nav__item:last-child .nav-dropdown,
.nav__item:nth-last-child(2) .nav-dropdown {
  left: auto;
  right: 0;
}

/* First screen: fit text + photos on standard 16:9 screens */
@media (min-width: 981px) {
  .hero-grid.section-top {
    margin-top: 76px;
  }
  .hero-main.hero-main--layout {
    min-height: calc(100svh - 104px) !important;
    padding: clamp(18px, 1.55vw, 28px) !important;
  }
  .hero-layout {
    grid-template-columns: minmax(0, .96fr) minmax(360px, 1.04fr);
    gap: clamp(18px, 1.6vw, 30px);
    align-items: stretch;
    min-height: calc(100svh - 160px);
  }
  .hero-copy {
    justify-content: center;
  }
  .hero-logo-standalone {
    width: clamp(74px, 7vw, 122px);
    height: clamp(60px, 6vw, 100px);
    margin-bottom: 10px;
  }
  .hero-title {
    max-width: 12.5ch;
    margin-bottom: 10px;
    font-size: clamp(32px, 3.15vw, 64px);
    line-height: .92;
  }
  .hero-text {
    max-width: 620px;
    margin-bottom: 16px;
    font-size: clamp(13px, .92vw, 16px);
  }
  .hero-actions {
    margin-bottom: 12px;
  }
  .hero-main__image.hero-main__image--inline {
    max-height: clamp(118px, 14.5vw, 230px);
  }
  .hero-stats {
    margin-top: 12px !important;
    padding-top: 12px !important;
  }
  .hero-visual {
    min-height: 0;
    height: 100%;
  }
}

/* Mobile: remove strange floating cards, align edges */
@media (max-width: 820px) {
  :root { --content: min(100% - 28px, 1540px); --page: min(100% - 24px, 1840px); }
  .section, .catalog-section, .about-hero, .about-value, .about-production, .about-principles {
    width: var(--content) !important;
  }
  .hero-title, .section-title, .about-principle h2, .catalog-hero h1, .product-hero h1, .cart-page h1 {
    font-size: 30px !important;
    line-height: .98 !important;
  }
  .mini-product-card {
    display: none !important;
  }
  .combo-product, .combo-interior {
    min-height: 320px !important;
  }
  .combo-interior__image {
    position: absolute !important;
    inset: 0 !important;
  }
  .about-hero__text,
  .about-dark,
  .quiet-block__text {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Catalog: no huge faded hero, user should quickly get to products */
.catalog-hero {
  height: clamp(190px, 22vw, 330px) !important;
  min-height: 0 !important;
  margin-top: 76px !important;
  background: var(--paper-2);
}
.catalog-hero::after {
  background: linear-gradient(90deg, rgba(0,0,0,.38), rgba(0,0,0,.06)) !important;
}
.catalog-hero > img {
  filter: none !important;
  opacity: 1 !important;
}
.catalog-hero > div {
  bottom: clamp(22px, 3vw, 46px) !important;
}
@media (max-width: 820px) {
  .catalog-hero {
    height: 170px !important;
    margin-top: 74px !important;
  }
  .catalog-section {
    padding-top: 22px !important;
  }
  .catalog-tabs {
    gap: 8px 16px !important;
    margin-bottom: 24px !important;
  }
  .catalog-tab {
    font-size: 14px !important;
  }
}

/* About page: keep photos inside, add spacing between images */
.about-hero,
.about-value,
.about-production,
.about-principles {
  overflow: hidden;
}
.about-hero__image,
.about-value__images > div,
.about-principle__image,
.about-production__slide {
  overflow: hidden;
}
.about-hero__image > img,
.about-value__images img,
.about-principle__image img,
.about-production__slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.about-production__track {
  --about-photo-gap: clamp(18px, 2vw, 32px);
  gap: var(--about-photo-gap) !important;
  grid-auto-columns: calc((100% - var(--about-photo-gap) - var(--about-photo-gap)) / 3) !important;
  padding-right: var(--about-photo-gap);
}
.about-value__images {
  gap: clamp(18px, 2vw, 32px) !important;
}
.about-principles {
  width: var(--content) !important;
}
.about-dark {
  overflow: hidden;
}
.about-dark .section-title {
  max-width: 840px;
  overflow-wrap: anywhere;
}
@media (max-width: 820px) {
  .about-production__track {
    grid-auto-columns: 82vw !important;
    gap: 16px !important;
    padding-right: 16px;
  }
  .about-hero__image,
  .about-value__images > div,
  .about-production__slide {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3 !important;
  }
  .about-principle__image {
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
  }
  .about-value__image-lower {
    margin-top: 0 !important;
  }
}

/* Restore normal right spacing from v43 */
:root { --quiet-right-space: clamp(6px, .65vw, 10px); }
.quiet-block__media {
  width: calc(100% - var(--quiet-right-space));
  margin-right: var(--quiet-right-space) !important;
}
@media (max-width: 980px) {
  .quiet-block__media {
    width: 100%;
    margin-right: 0 !important;
  }
}


/* === v45 final client fixes === */

/* 1) Первый экран главной: весь hero помещается на обычном 16:9 */
@media (min-width: 981px) {
  .hero-grid.section-top {
    margin-top: 68px !important;
  }
  .hero-main.hero-main--layout {
    height: min(660px, calc(100svh - 118px)) !important;
    min-height: 540px !important;
    padding: clamp(16px, 1.35vw, 24px) !important;
  }
  .hero-layout {
    height: 100% !important;
    min-height: 0 !important;
    grid-template-columns: minmax(360px, .82fr) minmax(420px, 1.18fr) !important;
    align-items: stretch !important;
    gap: clamp(18px, 1.55vw, 28px) !important;
  }
  .hero-copy {
    height: 100% !important;
    justify-content: center !important;
    overflow: hidden;
  }
  .hero-logo-standalone {
    width: clamp(72px, 5.8vw, 108px) !important;
    height: clamp(54px, 5vw, 88px) !important;
    margin-bottom: 8px !important;
  }
  .hero-title {
    font-size: clamp(34px, 2.75vw, 54px) !important;
    line-height: .93 !important;
    max-width: 12.6ch !important;
    margin-bottom: 10px !important;
  }
  .hero-text {
    margin-top: 10px !important;
    margin-bottom: 14px !important;
    max-width: 620px !important;
    font-size: clamp(13px, .82vw, 15px) !important;
    line-height: 1.24 !important;
  }
  .hero-actions {
    margin: 0 0 12px !important;
  }
  .hero-actions .btn {
    min-height: 46px !important;
    padding-inline: 18px !important;
  }
  .hero-main__image.hero-main__image--inline {
    aspect-ratio: 16 / 9 !important;
    height: clamp(118px, 16vh, 170px) !important;
    max-height: 170px !important;
    flex: 0 0 auto;
  }
  .hero-stats {
    margin-top: 10px !important;
    padding-top: 10px !important;
    gap: 14px !important;
    flex: 0 0 auto;
  }
  .hero-stats strong {
    font-size: clamp(20px, 1.55vw, 28px) !important;
  }
  .hero-stats span {
    font-size: 12px !important;
  }
  .hero-visual {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
  }
  .hero-visual img,
  .hero-visual__img {
    height: 100% !important;
  }
}

@media (min-width: 981px) and (max-height: 780px) {
  .hero-main.hero-main--layout {
    height: calc(100svh - 104px) !important;
    min-height: 500px !important;
  }
  .hero-title {
    font-size: clamp(30px, 2.45vw, 48px) !important;
  }
  .hero-main__image.hero-main__image--inline {
    height: 125px !important;
  }
}

/* 2) О мастерской: нормальные промежутки между фото галереи */
.about-production__track {
  --about-photo-gap-v45: clamp(18px, 1.55vw, 28px);
  display: flex !important;
  gap: var(--about-photo-gap-v45) !important;
  overflow-x: auto;
  padding-right: var(--about-photo-gap-v45) !important;
}
.about-production__slide {
  flex: 0 0 calc((100% - (var(--about-photo-gap-v45) * 2)) / 3) !important;
  min-width: 0;
  border-radius: var(--radius) !important;
}
.about-production__slide + .about-production__slide {
  margin-left: 0 !important;
}
@media (max-width: 820px) {
  .about-production__track {
    --about-photo-gap-v45: 16px;
  }
  .about-production__slide {
    flex-basis: 82vw !important;
  }
}

/* 3) Тёмный блок на странице о мастерской: текст ровно внутри прямоугольника */
.about-dark {
  align-items: center !important;
  min-height: 230px;
  padding: clamp(34px, 3.8vw, 62px) clamp(42px, 5vw, 92px) !important;
}
.about-dark > div {
  min-width: 0;
}
.about-dark .section-title {
  max-width: 760px !important;
  font-size: clamp(34px, 3.2vw, 58px) !important;
  line-height: .95 !important;
  letter-spacing: -0.055em;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
.about-dark .section-lead {
  max-width: 720px !important;
  margin-top: 18px !important;
}
.about-dark .btn {
  align-self: center !important;
}
@media (max-width: 820px) {
  .about-dark {
    min-height: 0;
    padding: 28px 20px !important;
  }
  .about-dark .section-title {
    font-size: 30px !important;
  }
}

/* Каталог: скрытые карточки точно не занимают место */
.product-card[hidden],
.product-card.is-hidden {
  display: none !important;
}
.catalog-empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center start;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.catalog-empty h2,
.catalog-empty p {
  margin: 0;
}

/* === v46 center content in about dark block === */
.about-dark {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 250px !important;
}
.about-dark > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}
.about-dark .section-title,
.about-dark .section-lead {
  margin-left: 0;
  margin-right: 0;
}
.about-dark .section-title {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}
.about-dark .section-lead {
  margin-bottom: 0 !important;
}
.about-dark .btn {
  justify-self: center;
  align-self: center !important;
}
@media (max-width: 820px) {
  .about-dark {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 24px;
  }
  .about-dark > div {
    align-items: center;
    text-align: center;
  }
  .about-dark .section-title,
  .about-dark .section-lead {
    margin-left: auto;
    margin-right: auto;
  }
}


/* === v47 about page image + catalog no-reload fixes === */

/* О мастерской: правые изображения не обрезаются */
.about-hero__image,
.about-value__images > div {
  background: var(--paper-2);
}
.about-hero__image > img,
.about-value__images > div > img {
  object-fit: contain !important;
  object-position: center center !important;
  width: 100% !important;
  height: 100% !important;
}

/* Галерея процесса: правый край ровно как левый, без лишнего добора справа */
.about-production__track {
  padding-right: 0 !important;
  padding-left: 0 !important;
  width: 100% !important;
}
.about-production__slide {
  flex-basis: calc((100% - (var(--about-photo-gap-v45, 24px) * 2)) / 3) !important;
}

/* Каталог: фильтрация без перезагрузки и без анимации смены страницы */
.catalog-tabs,
.catalog-tab {
  touch-action: manipulation;
}
.catalog-empty[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .about-hero__image > img,
  .about-value__images > div > img {
    object-fit: cover !important;
  }
  .about-production__track {
    padding-right: 0 !important;
  }
}


/* === v48 stronger about image + center fixes === */

/* На странице "О мастерской" эти фото должны показываться целиком, без боковой обрезки */
body[data-page="about"] .about-hero__image[data-image-frame],
body[data-page="about"] .about-value__images > div[data-image-frame] {
  --bb-img-fit: contain !important;
  --bb-img-position: center center !important;
  background: var(--paper-2) !important;
}

body[data-page="about"] .about-hero__image[data-image-frame] > img[data-editable-image],
body[data-page="about"] .about-value__images > div[data-image-frame] > img[data-editable-image],
body[data-page="about"] .about-hero__image > img,
body[data-page="about"] .about-value__images > div > img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Тёмный CTA-блок: контент по центру по высоте */
body[data-page="about"] .about-dark {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: clamp(260px, 18vw, 330px) !important;
  padding-top: clamp(54px, 4.6vw, 84px) !important;
  padding-bottom: clamp(54px, 4.6vw, 84px) !important;
}

body[data-page="about"] .about-dark > div {
  align-self: center !important;
  justify-content: center !important;
}

body[data-page="about"] .about-dark .btn {
  align-self: center !important;
  margin-top: auto !important;
  margin-bottom: auto !important;
}

@media (max-width: 820px) {
  body[data-page="about"] .about-hero__image[data-image-frame] > img[data-editable-image],
  body[data-page="about"] .about-value__images > div[data-image-frame] > img[data-editable-image],
  body[data-page="about"] .about-hero__image > img,
  body[data-page="about"] .about-value__images > div > img {
    object-fit: contain !important;
  }

  body[data-page="about"] .about-dark {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }
}


/* === v49 final about image fill + no right crop === */
/* На странице "О мастерской" фото должны заполнять свои области,
   а сами правые области не должны вылетать/обрезаться по ширине. */
body[data-page="about"] .about-hero,
body[data-page="about"] .about-value {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
  width: min(100% - 28px, 1540px) !important;
  max-width: 1540px !important;
}
body[data-page="about"] .about-value {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr) !important;
}
body[data-page="about"] .about-hero__text,
body[data-page="about"] .about-hero__image,
body[data-page="about"] .about-value__copy,
body[data-page="about"] .about-value__images,
body[data-page="about"] .about-value__images > div {
  min-width: 0 !important;
  width: 100% !important;
}
body[data-page="about"] .about-hero__image[data-image-frame],
body[data-page="about"] .about-value__images > div[data-image-frame] {
  --bb-img-fit: cover !important;
  --bb-img-position: center center !important;
  background: var(--paper-2) !important;
  overflow: hidden !important;
}
body[data-page="about"] .about-hero__image[data-image-frame] > img[data-editable-image],
body[data-page="about"] .about-value__images > div[data-image-frame] > img[data-editable-image],
body[data-page="about"] .about-hero__image > img,
body[data-page="about"] .about-value__images > div > img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}
/* центрируем тёмный CTA-блок как просили */
body[data-page="about"] .about-dark {
  justify-content: center !important;
  gap: clamp(28px, 6vw, 120px) !important;
}
body[data-page="about"] .about-dark > div {
  text-align: center !important;
}
@media (max-width: 820px) {
  body[data-page="about"] .about-hero,
  body[data-page="about"] .about-value {
    grid-template-columns: 1fr !important;
    width: min(100% - 16px, 1540px) !important;
  }
  body[data-page="about"] .about-hero__image[data-image-frame] > img[data-editable-image],
  body[data-page="about"] .about-value__images > div[data-image-frame] > img[data-editable-image],
  body[data-page="about"] .about-hero__image > img,
  body[data-page="about"] .about-value__images > div > img {
    object-fit: cover !important;
  }
}


/* === v50 about hero taller image card === */
/* Увеличиваем высоту правого фото-блока в первом экране "О мастерской",
   чтобы по высоте он выглядел как белая текстовая плашка слева. */
body[data-page="about"] .about-hero__image {
  min-height: clamp(620px, 44vw, 820px) !important;
  height: 100% !important;
}
@media (max-width: 1100px) {
  body[data-page="about"] .about-hero__image {
    min-height: clamp(520px, 52vw, 700px) !important;
  }
}
@media (max-width: 820px) {
  body[data-page="about"] .about-hero__image {
    min-height: 330px !important;
    height: auto !important;
  }
}


/* === v51 catalog exact admin categories + stable dropdown === */
.nav__item--has-dropdown {
  position: relative;
  padding: 18px 0;
  margin: -18px 0;
}
.nav-dropdown {
  top: calc(100% - 2px) !important;
  z-index: 2000 !important;
  pointer-events: none;
}
.nav-dropdown::before {
  top: -26px !important;
  height: 30px !important;
}
.nav__item--has-dropdown:hover .nav-dropdown,
.nav__item--has-dropdown:focus-within .nav-dropdown,
.nav__item--has-dropdown.is-open .nav-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, 0) !important;
  pointer-events: auto !important;
}
.nav-dropdown a {
  position: relative;
  z-index: 2;
}
.product-card[hidden],
.product-card.is-hidden {
  display: none !important;
}


/* === v52 normal first screen / hero redesign === */
/* Первый экран: слева аккуратный текстовый блок, справа большая 16:9 фотография. */
body[data-page="home"] .hero-grid.section-top {
  width: min(100% - 28px, 1840px) !important;
  margin-top: 76px !important;
  padding-top: 0 !important;
}

body[data-page="home"] .hero-grid {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

body[data-page="home"] .hero-main.hero-main--layout {
  min-height: min(760px, calc(100svh - 102px)) !important;
  height: auto !important;
  padding: clamp(26px, 3.1vw, 58px) !important;
  border-radius: var(--radius) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.76), rgba(242,240,236,.7)) !important;
  overflow: hidden !important;
}

body[data-page="home"] .hero-layout {
  min-height: min(660px, calc(100svh - 210px)) !important;
  display: grid !important;
  grid-template-columns: minmax(340px, .82fr) minmax(560px, 1.18fr) !important;
  gap: clamp(30px, 4vw, 76px) !important;
  align-items: center !important;
}

body[data-page="home"] .hero-copy {
  height: auto !important;
  min-width: 0 !important;
  justify-content: center !important;
  padding-left: clamp(8px, 1.4vw, 28px);
}

body[data-page="home"] .hero-main__content {
  max-width: 560px !important;
}

body[data-page="home"] .hero-logo-standalone {
  width: clamp(74px, 6vw, 116px) !important;
  height: clamp(58px, 5.2vw, 96px) !important;
  margin: 0 0 clamp(12px, 1.3vw, 22px) !important;
}

body[data-page="home"] .eyebrow {
  margin-bottom: 14px !important;
}

body[data-page="home"] .hero-title {
  max-width: 11.5ch !important;
  font-size: clamp(40px, 3.85vw, 76px) !important;
  line-height: .92 !important;
  letter-spacing: -0.06em !important;
  margin: 0 !important;
}

body[data-page="home"] .hero-text {
  max-width: 520px !important;
  margin-top: 18px !important;
  font-size: clamp(15px, 1vw, 19px) !important;
  line-height: 1.23 !important;
}

body[data-page="home"] .hero-actions {
  margin: clamp(20px, 2.2vw, 34px) 0 0 !important;
  gap: 10px !important;
}

body[data-page="home"] .hero-actions .btn {
  min-height: 50px !important;
  padding-inline: 22px !important;
}

body[data-page="home"] .hero-main__image.hero-main__image--inline {
  display: none !important;
}

body[data-page="home"] .hero-stats {
  width: min(100%, 520px) !important;
  margin-top: clamp(24px, 3vw, 46px) !important;
  padding-top: clamp(16px, 1.5vw, 22px) !important;
  border-top: 1px solid rgba(28,29,31,.12) !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(14px, 2vw, 28px) !important;
}

body[data-page="home"] .hero-stats strong {
  font-size: clamp(22px, 2.1vw, 36px) !important;
}

body[data-page="home"] .hero-stats span {
  font-size: clamp(12px, .85vw, 14px) !important;
}

body[data-page="home"] .hero-visual {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  align-self: center !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: clamp(18px, 1.8vw, 30px) !important;
  overflow: hidden !important;
  background: var(--paper-2) !important;
  box-shadow: 0 28px 90px rgba(28,29,31,.08);
}

body[data-page="home"] .hero-visual img,
body[data-page="home"] .hero-visual__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

@media (min-width: 981px) and (max-height: 760px) {
  body[data-page="home"] .hero-main.hero-main--layout {
    min-height: calc(100svh - 102px) !important;
    padding: clamp(18px, 2.1vw, 36px) !important;
  }

  body[data-page="home"] .hero-layout {
    min-height: 0 !important;
  }

  body[data-page="home"] .hero-title {
    font-size: clamp(34px, 3.1vw, 60px) !important;
  }

  body[data-page="home"] .hero-text {
    margin-top: 14px !important;
    font-size: clamp(13px, .85vw, 16px) !important;
  }

  body[data-page="home"] .hero-stats {
    margin-top: 18px !important;
  }
}

@media (max-width: 980px) {
  body[data-page="home"] .hero-main.hero-main--layout {
    min-height: 0 !important;
    padding: 22px !important;
  }

  body[data-page="home"] .hero-layout {
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  body[data-page="home"] .hero-copy {
    padding-left: 0;
  }

  body[data-page="home"] .hero-title {
    max-width: none !important;
  }

  body[data-page="home"] .hero-visual {
    aspect-ratio: 16 / 9 !important;
    order: 2;
  }

  body[data-page="home"] .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .hero-grid.section-top {
    width: min(100% - 20px, 1840px) !important;
    margin-top: 68px !important;
  }

  body[data-page="home"] .hero-main.hero-main--layout {
    padding: 18px !important;
  }

  body[data-page="home"] .hero-title {
    font-size: 30px !important;
    line-height: .96 !important;
  }

  body[data-page="home"] .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  body[data-page="home"] .hero-stats {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}


/* === v53 visual admin text styles + anchor offsets === */
/* Визуальная админка: пользовательские шрифты/размеры/цвет должны перебивать любые стили блоков. */
html body [data-editable-text][data-bb-style] {
  font-family: var(--bb-font, inherit) !important;
  color: var(--bb-color, inherit) !important;
  font-size: var(--bb-size-desktop, inherit) !important;
}

@media (max-width: 820px) {
  html body [data-editable-text][data-bb-style] {
    font-size: var(--bb-size-mobile, var(--bb-size-desktop, inherit)) !important;
  }
}

/* Отступ при переходах по якорям, чтобы мобильное меню/фиксированный хэдер не закрывал начало блока. */
html {
  scroll-padding-top: 92px;
}

[id] {
  scroll-margin-top: 92px;
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 78px;
  }

  [id] {
    scroll-margin-top: 78px;
  }

  .section[id],
  .contact-cta[id],
  .assembly-section[id],
  .custom-section[id] {
    scroll-margin-top: 82px;
  }
}


/* === v54 admin photo format + restored homepage hero === */

/* Вернули первый экран к предыдущей компоновке:
   слева текст + горизонтальное фото 16:9 + цифры, справа отдельное фото. */
body[data-page="home"] .hero-grid.section-top {
  width: var(--page) !important;
  margin: 68px auto 0 !important;
  padding-top: 0 !important;
}

body[data-page="home"] .hero-main.hero-main--layout {
  height: min(660px, calc(100svh - 118px)) !important;
  min-height: 540px !important;
  padding: clamp(16px, 1.35vw, 24px) !important;
  background: var(--paper-2) !important;
}

body[data-page="home"] .hero-layout {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(360px, .82fr) minmax(420px, 1.18fr) !important;
  gap: clamp(18px, 1.55vw, 28px) !important;
  align-items: stretch !important;
}

body[data-page="home"] .hero-copy {
  height: 100% !important;
  min-width: 0 !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding-left: 0 !important;
}

body[data-page="home"] .hero-main__content {
  max-width: none !important;
}

body[data-page="home"] .hero-logo-standalone {
  width: clamp(72px, 5.8vw, 108px) !important;
  height: clamp(54px, 5vw, 88px) !important;
  margin: 0 0 8px !important;
}

body[data-page="home"] .hero-title {
  font-size: clamp(34px, 2.75vw, 54px) !important;
  line-height: .93 !important;
  max-width: 12.6ch !important;
  margin: 0 0 10px !important;
}

body[data-page="home"] .hero-text {
  margin: 10px 0 14px !important;
  max-width: 620px !important;
  font-size: clamp(13px, .82vw, 15px) !important;
  line-height: 1.24 !important;
}

body[data-page="home"] .hero-actions {
  margin: 0 0 12px !important;
}

body[data-page="home"] .hero-actions .btn {
  min-height: 46px !important;
  padding-inline: 18px !important;
}

body[data-page="home"] .hero-main__image.hero-main__image--inline {
  display: block !important;
  width: 100% !important;
  aspect-ratio: var(--bb-img-ratio, 16 / 9) !important;
  height: clamp(118px, 16vh, 170px) !important;
  max-height: 170px !important;
  margin-top: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
}

body[data-page="home"] .hero-main__image.hero-main__image--inline img {
  width: 100% !important;
  height: 100% !important;
  object-fit: var(--bb-img-fit, cover) !important;
  object-position: var(--bb-img-position, center center) !important;
}

body[data-page="home"] .hero-stats {
  width: 100% !important;
  margin-top: 10px !important;
  padding-top: 10px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  border-top: 1px solid var(--line) !important;
}

body[data-page="home"] .hero-stats strong {
  font-size: clamp(20px, 1.55vw, 28px) !important;
}

body[data-page="home"] .hero-stats span {
  font-size: 12px !important;
  white-space: nowrap !important;
}

body[data-page="home"] .hero-visual {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  aspect-ratio: var(--bb-img-ratio, 3 / 4) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: var(--paper-2) !important;
  box-shadow: none !important;
}

body[data-page="home"] .hero-visual img,
body[data-page="home"] .hero-visual__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: var(--bb-img-fit, cover) !important;
  object-position: var(--bb-img-position, center center) !important;
}

/* Сохранённый пользователем формат фото имеет приоритет над фиксированными размерами блоков. */
html body [data-image-frame][data-image-custom-ratio="1"] {
  aspect-ratio: var(--bb-img-ratio) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

html body [data-image-frame][data-image-custom-fit="1"] > img,
html body [data-image-frame][data-image-custom-fit="1"] img[data-editable-image] {
  object-fit: var(--bb-img-fit, cover) !important;
}

html body [data-image-frame][data-image-custom-position="1"] > img,
html body [data-image-frame][data-image-custom-position="1"] img[data-editable-image] {
  object-position: var(--bb-img-position, center center) !important;
}

/* Текст с ручными переносами сохраняет их, естественный перенос по ширине остаётся. */
html body [data-editable-text] {
  white-space: pre-line;
}

/* Предпросмотр редактирования текста ближе к реальному блоку. */
.bb-edit-preview {
  box-sizing: border-box;
  white-space: pre-line !important;
  line-height: inherit;
  overflow-wrap: normal;
  word-break: normal;
}

@media (min-width: 981px) and (max-height: 780px) {
  body[data-page="home"] .hero-main.hero-main--layout {
    height: calc(100svh - 104px) !important;
    min-height: 500px !important;
  }

  body[data-page="home"] .hero-title {
    font-size: clamp(30px, 2.45vw, 48px) !important;
  }

  body[data-page="home"] .hero-main__image.hero-main__image--inline:not([data-image-custom-ratio="1"]) {
    height: 125px !important;
  }
}

@media (max-width: 980px) {
  body[data-page="home"] .hero-main.hero-main--layout {
    height: auto !important;
    min-height: 0 !important;
    padding: 24px !important;
  }

  body[data-page="home"] .hero-layout {
    height: auto !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  body[data-page="home"] .hero-copy {
    height: auto !important;
    overflow: visible !important;
  }

  body[data-page="home"] .hero-title {
    max-width: none !important;
  }

  body[data-page="home"] .hero-visual:not([data-image-custom-ratio="1"]) {
    height: auto !important;
    min-height: 340px !important;
    max-height: none !important;
    aspect-ratio: 4 / 3 !important;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .hero-grid.section-top {
    margin-top: 68px !important;
  }

  body[data-page="home"] .hero-main.hero-main--layout {
    padding: 18px !important;
  }

  body[data-page="home"] .hero-title {
    font-size: 30px !important;
    line-height: .96 !important;
  }

  body[data-page="home"] .hero-text {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }

  body[data-page="home"] .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body[data-page="home"] .hero-stats {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 14px !important;
    padding-top: 14px !important;
  }

  body[data-page="home"] .hero-stats span {
    white-space: normal !important;
  }

  body[data-page="home"] .hero-visual:not([data-image-custom-ratio="1"]) {
    min-height: 260px !important;
    aspect-ratio: 4 / 3 !important;
  }
}


/* === v55 reference hero + reliable image format === */
body[data-page="home"] .hero-grid.section-top {
  width: min(100% - 28px, 1840px) !important;
  margin: 76px auto 0 !important;
}
body[data-page="home"] .hero-main.hero-main--layout {
  min-height: min(820px, calc(100svh - 100px)) !important;
  height: auto !important;
  padding: clamp(28px, 3.2vw, 62px) !important;
  background: #f4f2ef !important;
}
body[data-page="home"] .hero-layout {
  min-height: min(690px, calc(100svh - 220px)) !important;
  height: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(430px, .78fr) minmax(640px, 1.22fr) !important;
  gap: clamp(42px, 4.2vw, 82px) !important;
  align-items: center !important;
}
body[data-page="home"] .hero-copy {
  min-width: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: visible !important;
}
body[data-page="home"] .hero-main__content {
  max-width: 640px !important;
}
body[data-page="home"] .hero-logo-standalone {
  width: clamp(84px, 6.7vw, 126px) !important;
  height: clamp(72px, 6vw, 110px) !important;
  margin: 0 0 18px !important;
}
body[data-page="home"] .hero-title {
  max-width: 11.2ch !important;
  font-size: clamp(48px, 4.25vw, 82px) !important;
  line-height: .91 !important;
  letter-spacing: -.065em !important;
  margin: 0 !important;
}
body[data-page="home"] .hero-text {
  max-width: 620px !important;
  margin: 22px 0 0 !important;
  font-size: clamp(16px, 1.06vw, 20px) !important;
  line-height: 1.22 !important;
}
body[data-page="home"] .hero-actions {
  margin: 30px 0 0 !important;
  gap: 12px !important;
}
body[data-page="home"] .hero-actions .btn {
  min-height: 56px !important;
  padding-inline: 24px !important;
}
body[data-page="home"] .hero-main__image.hero-main__image--inline {
  display: none !important;
}
body[data-page="home"] .hero-stats {
  width: 100% !important;
  max-width: 640px !important;
  margin-top: auto !important;
  padding-top: 28px !important;
  border-top: 1px solid rgba(28,29,31,.14) !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
}
body[data-page="home"] .hero-stats strong {
  font-size: clamp(28px, 2.1vw, 40px) !important;
  line-height: 1 !important;
}
body[data-page="home"] .hero-stats span {
  font-size: 13px !important;
  white-space: normal !important;
}
body[data-page="home"] .hero-visual {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: var(--bb-img-ratio, 16 / 9) !important;
  align-self: center !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: #ece9e5 !important;
}
body[data-page="home"] .hero-visual img,
body[data-page="home"] .hero-visual__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: var(--bb-img-fit, cover) !important;
  object-position: var(--bb-img-position, center center) !important;
}

/* User-selected image format always wins. */
html body [data-image-frame][data-image-custom-ratio="1"] {
  aspect-ratio: var(--bb-img-ratio) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

@media (min-width: 981px) and (max-height: 800px) {
  body[data-page="home"] .hero-main.hero-main--layout {
    min-height: calc(100svh - 104px) !important;
    padding: 22px 34px !important;
  }
  body[data-page="home"] .hero-layout {
    min-height: 0 !important;
  }
  body[data-page="home"] .hero-title {
    font-size: clamp(40px, 3.5vw, 66px) !important;
  }
  body[data-page="home"] .hero-text { margin-top: 14px !important; }
  body[data-page="home"] .hero-actions { margin-top: 18px !important; }
  body[data-page="home"] .hero-stats { padding-top: 18px !important; }
}
@media (max-width: 980px) {
  body[data-page="home"] .hero-main.hero-main--layout {
    min-height: 0 !important;
    padding: 24px !important;
  }
  body[data-page="home"] .hero-layout {
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }
  body[data-page="home"] .hero-title { max-width: none !important; }
  body[data-page="home"] .hero-stats { margin-top: 30px !important; }
  body[data-page="home"] .hero-visual { aspect-ratio: var(--bb-img-ratio, 16 / 9) !important; }
}
@media (max-width: 640px) {
  body[data-page="home"] .hero-grid.section-top { width: min(100% - 20px, 1840px) !important; margin-top: 68px !important; }
  body[data-page="home"] .hero-main.hero-main--layout { padding: 18px !important; }
  body[data-page="home"] .hero-title { font-size: 30px !important; line-height: .96 !important; }
  body[data-page="home"] .hero-text { font-size: 15px !important; line-height: 1.35 !important; }
  body[data-page="home"] .hero-actions { display: grid !important; grid-template-columns: 1fr !important; }
  body[data-page="home"] .hero-stats { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 10px !important; }
  body[data-page="home"] .hero-stats strong { font-size: 24px !important; }
  body[data-page="home"] .hero-stats span { font-size: 10px !important; }
}


/* === v56 exact reference hero + real image format overrides === */
/* Главная: компоновка как на присланном референсе — текст слева, одна большая 16:9 фотография справа, показатели снизу слева. */
body[data-page="home"] .hero-grid.section-top {
  width: min(calc(100% - 28px), 1840px) !important;
  margin: 76px auto 0 !important;
}
body[data-page="home"] .hero-main.hero-main--layout {
  height: min(850px, calc(100svh - 96px)) !important;
  min-height: 700px !important;
  padding: clamp(34px, 3vw, 58px) clamp(42px, 4.4vw, 82px) !important;
  background: #f5f3f0 !important;
}
body[data-page="home"] .hero-layout {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  grid-template-columns: minmax(390px, .79fr) minmax(620px, 1.21fr) !important;
  gap: clamp(48px, 5vw, 96px) !important;
  align-items: center !important;
}
body[data-page="home"] .hero-copy {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding-top: clamp(4px, 1vw, 18px) !important;
}
body[data-page="home"] .hero-main__content {
  max-width: 650px !important;
}
body[data-page="home"] .hero-logo-standalone {
  width: clamp(80px, 6vw, 116px) !important;
  height: clamp(68px, 5.5vw, 104px) !important;
  margin: 0 0 18px !important;
}
body[data-page="home"] .hero-title {
  max-width: 10.8ch !important;
  font-size: clamp(48px, 4vw, 78px) !important;
  line-height: .92 !important;
  letter-spacing: -.06em !important;
}
body[data-page="home"] .hero-text {
  max-width: 640px !important;
  margin-top: 20px !important;
  font-size: clamp(15px, .98vw, 19px) !important;
  line-height: 1.24 !important;
}
body[data-page="home"] .hero-actions {
  margin-top: 28px !important;
}
body[data-page="home"] .hero-stats {
  margin-top: auto !important;
  max-width: 650px !important;
  padding-top: 24px !important;
  gap: 26px !important;
}
body[data-page="home"] .hero-stats strong {
  font-size: clamp(28px, 2vw, 38px) !important;
}
body[data-page="home"] .hero-stats span {
  font-size: 13px !important;
}
body[data-page="home"] .hero-visual:not([data-image-custom-ratio="1"]) {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  align-self: center !important;
  border-radius: 28px !important;
}
body[data-page="home"] .hero-visual:not([data-image-custom-ratio="1"]) img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Любой формат, выбранный в визуальной админке, меняет именно геометрию блока. */
html body [data-image-frame][data-image-custom-ratio="1"] {
  width: 100% !important;
  inline-size: 100% !important;
  height: auto !important;
  block-size: auto !important;
  min-height: 0 !important;
  min-block-size: 0 !important;
  max-height: none !important;
  max-block-size: none !important;
  aspect-ratio: var(--bb-img-ratio) !important;
  align-self: start !important;
}
html body [data-image-frame][data-image-custom-ratio="1"] > img,
html body [data-image-frame][data-image-custom-ratio="1"] img[data-editable-image] {
  width: 100% !important;
  height: 100% !important;
}
html body [data-image-frame][data-image-custom-fit="1"] > img,
html body [data-image-frame][data-image-custom-fit="1"] img[data-editable-image] {
  object-fit: var(--bb-img-fit, cover) !important;
}
html body [data-image-frame][data-image-custom-position="1"] > img,
html body [data-image-frame][data-image-custom-position="1"] img[data-editable-image] {
  object-position: var(--bb-img-position, center center) !important;
}

@media (min-width: 981px) and (max-height: 820px) {
  body[data-page="home"] .hero-main.hero-main--layout {
    height: calc(100svh - 98px) !important;
    min-height: 620px !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  body[data-page="home"] .hero-title { font-size: clamp(40px, 3.35vw, 64px) !important; }
  body[data-page="home"] .hero-text { margin-top: 14px !important; }
  body[data-page="home"] .hero-actions { margin-top: 18px !important; }
  body[data-page="home"] .hero-stats { padding-top: 16px !important; }
}
@media (max-width: 980px) {
  body[data-page="home"] .hero-main.hero-main--layout {
    height: auto !important;
    min-height: 0 !important;
    padding: 24px !important;
  }
  body[data-page="home"] .hero-layout {
    grid-template-columns: 1fr !important;
    height: auto !important;
    gap: 24px !important;
  }
  body[data-page="home"] .hero-copy { height: auto !important; padding-top: 0 !important; }
  body[data-page="home"] .hero-stats { margin-top: 28px !important; }
}
@media (max-width: 640px) {
  body[data-page="home"] .hero-main.hero-main--layout { padding: 18px !important; }
  body[data-page="home"] .hero-title { font-size: 30px !important; line-height: .96 !important; }
  body[data-page="home"] .hero-stats { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 10px !important; }
  body[data-page="home"] .hero-stats strong { font-size: 24px !important; }
  body[data-page="home"] .hero-stats span { font-size: 10px !important; }
}


/* === v57 legal pages === */
.legal-main {
  width: min(100% - 28px, 1240px);
  margin: 0 auto;
  padding: 112px 0 90px;
}

.legal-hero {
  padding: clamp(34px, 5vw, 72px) 0 clamp(26px, 3.6vw, 52px);
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 980px;
  margin: 10px 0 16px;
  font-size: clamp(42px, 5.3vw, 82px);
  line-height: .95;
  letter-spacing: -.055em;
}

.legal-date {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-document {
  padding-top: clamp(34px, 4vw, 60px);
}

.legal-intro {
  max-width: 980px;
  margin-bottom: clamp(42px, 5vw, 72px);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.42;
}

.legal-intro > p {
  max-width: 880px;
}

.legal-requisites {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.legal-requisites > div {
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper);
}

.legal-requisites span,
.legal-requisites strong {
  display: block;
}

.legal-requisites span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.legal-requisites strong {
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.legal-requisites a,
.legal-document a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section {
  max-width: 980px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
  border-top: 0;
}

.legal-section h2 {
  max-width: 820px;
  margin: 0 0 22px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
  letter-spacing: -.04em;
}

.legal-section p,
.legal-section li {
  font-size: 16px;
  line-height: 1.58;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section ul {
  margin: 12px 0 18px;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.legal-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--paper);
}

.legal-table th,
.legal-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
}

.legal-table th:last-child,
.legal-table td:last-child {
  border-right: 0;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  font-weight: 700;
  background: var(--paper-2);
}

.form-legal-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.form-legal-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 820px) {
  .legal-main {
    width: min(100% - 20px, 1240px);
    padding-top: 82px;
    padding-bottom: 60px;
  }

  .legal-hero {
    padding-top: 28px;
  }

  .legal-hero h1 {
    font-size: 38px;
  }

  .legal-requisites {
    grid-template-columns: 1fr;
  }

  .legal-section {
    padding: 28px 0;
  }

  .legal-section h2 {
    font-size: 30px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 15px;
  }
}


/* === v58 adaptive hero image formats + wider main text === */
body[data-page="home"] .hero-main.hero-main--layout {
  height: auto !important;
  min-height: 700px !important;
}
body[data-page="home"] .hero-layout {
  height: auto !important;
  min-height: 690px !important;
  grid-template-columns: minmax(480px, .92fr) minmax(580px, 1.08fr) !important;
  align-items: center !important;
}
body[data-page="home"] .hero-main__content,
body[data-page="home"] .hero-stats {
  max-width: 720px !important;
}
body[data-page="home"] .hero-title {
  max-width: 13ch !important;
}
body[data-page="home"] .hero-text {
  max-width: 700px !important;
}

/* При выбранном формате блок меняет собственную геометрию, а фото показывается полностью. */
body[data-page="home"] .hero-visual[data-image-custom-ratio="1"] {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: var(--bb-img-ratio) !important;
  align-self: center !important;
  background: #ece9e5 !important;
}
body[data-page="home"] .hero-visual[data-image-custom-ratio="1"] > img,
body[data-page="home"] .hero-visual[data-image-custom-ratio="1"] img[data-editable-image] {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: var(--bb-img-position, center center) !important;
}

/* Сетка подстраивается под широкий, квадратный и вертикальный формат. */
body[data-page="home"][data-hero-image-ratio-kind="wide"] .hero-layout,
body[data-page="home"][data-hero-image-ratio-kind="landscape"] .hero-layout {
  grid-template-columns: minmax(480px, .92fr) minmax(580px, 1.08fr) !important;
}
body[data-page="home"][data-hero-image-ratio-kind="square"] .hero-layout {
  grid-template-columns: minmax(520px, 1fr) minmax(460px, .82fr) !important;
}
body[data-page="home"][data-hero-image-ratio-kind="portrait"] .hero-layout {
  grid-template-columns: minmax(540px, 1fr) minmax(360px, .62fr) !important;
}
body[data-page="home"][data-hero-image-ratio-kind="portrait"] .hero-visual {
  max-width: 560px !important;
  justify-self: center !important;
}
body[data-page="home"][data-hero-image-ratio-kind="square"] .hero-visual {
  max-width: 680px !important;
  justify-self: center !important;
}
body[data-page="home"][data-hero-image-ratio-kind="portrait"] .hero-main.hero-main--layout,
body[data-page="home"][data-hero-image-ratio-kind="square"] .hero-main.hero-main--layout {
  min-height: 0 !important;
}
body[data-page="home"][data-hero-image-ratio-kind="portrait"] .hero-layout,
body[data-page="home"][data-hero-image-ratio-kind="square"] .hero-layout {
  min-height: 0 !important;
  padding-top: 18px;
  padding-bottom: 18px;
}

@media (max-width: 1100px) {
  body[data-page="home"] .hero-layout,
  body[data-page="home"][data-hero-image-ratio-kind] .hero-layout {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }
  body[data-page="home"] .hero-main.hero-main--layout {
    min-height: 0 !important;
  }
  body[data-page="home"] .hero-visual[data-image-custom-ratio="1"] {
    max-width: 820px !important;
    justify-self: center !important;
  }
}


/* === v60 editing/layout audit: wider hero copy, stable typography, counters and image sizing === */
/* Saved typography must always win over block defaults, including the late hero rules. */
html body[data-page] [data-editable-text][data-bb-style] {
  font-family: var(--bb-font, inherit) !important;
  color: var(--bb-color, inherit) !important;
  font-size: var(--bb-size-desktop, inherit) !important;
  font-weight: var(--bb-weight, inherit) !important;
  text-align: var(--bb-align, inherit) !important;
  line-height: var(--bb-line-height, inherit) !important;
  letter-spacing: var(--bb-letter-spacing, inherit) !important;
}

/* Text edits reflow the block instead of painting over neighbours. */
html body [data-editable-text] {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}
.section-head > *,
.hero-copy,
.hero-main__content,
.hero-stats > div,
.product-card__body,
.process-card,
.materials-grid article,
.combo-product,
.combo-interior,
.about-principle,
.footer__top > * {
  min-width: 0;
}

/* Give the main heading more real horizontal room. */
body[data-page="home"] .hero-main__content,
body[data-page="home"] .hero-stats {
  max-width: 820px !important;
  width: 100% !important;
}
body[data-page="home"] .hero-title {
  max-width: 15.5ch !important;
  width: 100% !important;
}
body[data-page="home"] .hero-text {
  max-width: 760px !important;
}

/* Hero stat labels can be made larger in the editor without overlapping each other. */
body[data-page="home"] .hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start !important;
}
body[data-page="home"] .hero-stats > div {
  width: 100% !important;
  align-items: flex-start !important;
  overflow: visible !important;
}
body[data-page="home"] .hero-stats strong,
body[data-page="home"] .hero-stats span {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
body[data-page="home"] .hero-stats strong {
  font-variant-numeric: tabular-nums;
}

/* Catalogue counters: keep 00/01/02... attached to their own label. */
.catalog-tabs {
  align-items: flex-start !important;
}
.catalog-tab {
  display: inline-flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  min-width: 0;
  line-height: 1.08 !important;
  text-align: left;
}
.catalog-tab > span:first-child {
  min-width: 0;
}
.catalog-tab .nav-index,
html body .catalog-tab .nav-index[data-editable-text][data-bb-style] {
  position: static !important;
  top: auto !important;
  transform: translateY(-.28em) !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
}

/* Keep header counters equally predictable. */
.main-nav .nav-index,
.header-action .nav-index,
html body .main-nav .nav-index[data-editable-text][data-bb-style],
html body .header-action .nav-index[data-editable-text][data-bb-style] {
  font-size: 9px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* User-selected image width is independent from ratio and fit. */
html body [data-image-frame][data-image-custom-width="1"] {
  width: var(--bb-img-width, 100%) !important;
  inline-size: var(--bb-img-width, 100%) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-self: center !important;
}
/* Respect the actual fit dropdown in the first screen too. */
body[data-page="home"] .hero-visual[data-image-custom-ratio="1"] > img,
body[data-page="home"] .hero-visual[data-image-custom-ratio="1"] img[data-editable-image] {
  object-fit: var(--bb-img-fit, cover) !important;
  object-position: var(--bb-img-position, center center) !important;
}

/* Text/image editor: more space, predictable preview and controls. */
.bb-edit-modal__box--wide {
  width: min(920px, 100%) !important;
  max-height: calc(100svh - 32px);
  overflow: auto;
}
.bb-edit-controls {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: end;
}
.bb-edit-preview {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 320px;
  overflow: auto;
  padding: 18px !important;
  margin-top: 14px;
  background: #fff;
  border: 1px solid rgba(28, 29, 31, .12);
  border-radius: 14px;
  box-sizing: border-box;
}
.bb-edit-image-preview {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}
.bb-edit-modal__actions {
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  body[data-page="home"] .hero-title {
    max-width: none !important;
  }
  .bb-edit-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  /* mobile typography remains calm unless a custom mobile size is explicitly saved */
  .section-title:not([data-bb-style]),
  .catalog-hero h1:not([data-bb-style]),
  .product-info h1:not([data-bb-style]),
  .footer__title:not([data-bb-style]),
  .about-hero h1:not([data-bb-style]) {
    font-size: 30px !important;
    line-height: 1 !important;
  }
  body[data-page="home"] .hero-title:not([data-bb-style]) {
    font-size: 30px !important;
    line-height: .98 !important;
  }
  body[data-page="home"] .hero-stats {
    gap: 10px !important;
  }
  .catalog-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 18px !important;
    width: 100% !important;
  }
  .catalog-tab {
    width: 100% !important;
    font-size: 14px !important;
  }
  .bb-edit-modal {
    padding: 10px !important;
  }
  .bb-edit-modal__box--wide {
    max-height: calc(100svh - 20px);
    padding: 14px !important;
  }
  .bb-edit-controls {
    grid-template-columns: 1fr !important;
  }
  .bb-edit-modal__actions {
    justify-content: stretch !important;
  }
  .bb-edit-modal__actions button {
    flex: 1 1 100%;
  }
}


/* v60b: custom image controls override page-specific image rules everywhere. */
html body[data-page] [data-image-frame][data-image-custom-ratio="1"] {
  width: var(--bb-img-width, 100%) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: var(--bb-img-ratio) !important;
}
html body[data-page] [data-image-frame][data-image-custom-fit="1"] > img[data-editable-image],
html body[data-page] [data-image-frame][data-image-custom-fit="1"] img[data-editable-image] {
  object-fit: var(--bb-img-fit, cover) !important;
}
html body[data-page] [data-image-frame][data-image-custom-position="1"] > img[data-editable-image],
html body[data-page] [data-image-frame][data-image-custom-position="1"] img[data-editable-image] {
  object-position: var(--bb-img-position, center center) !important;
}

/* === v61 mobile cleanup: unified photo radius, full-width hero media, stable stats === */
:root {
  --bb-photo-radius: 10px;
}

/* One consistent radius for every content-photo frame. Keep logos/icons/buttons untouched. */
[data-image-frame],
.hero-main__image,
.hero-visual,
.feature-card__media,
.image-pair__card,
.product-card__media,
.combo-product__image,
.combo-interior,
.category-slide__media,
.assembly-card__media,
.catalog-hero,
.product-gallery__main,
.product-gallery__thumbs button,
.full-banner,
.quiet-block__media,
.about-hero__image,
.about-production__slide,
.bb-edit-image-preview {
  border-radius: var(--bb-photo-radius) !important;
  overflow: hidden !important;
}

[data-image-frame] > img,
[data-image-frame] img[data-editable-image],
.hero-main__image > img,
.hero-visual > img,
.feature-card__media > img,
.image-pair__card > img,
.product-card__media > img,
.combo-product__image > img,
.combo-interior > img,
.category-slide__media > img,
.assembly-card__media > img,
.catalog-hero > img,
.product-gallery__main > img,
.product-gallery__thumbs img,
.full-banner > img,
.quiet-block__media > img,
.about-hero__image > img,
.about-production__slide > img,
.bb-edit-image-preview > img {
  border-radius: var(--bb-photo-radius) !important;
}

@media (max-width: 640px) {
  /* The three production points must never sit on top of each other after text editing. */
  body[data-page="home"] .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin-top: 16px !important;
    padding-top: 0 !important;
    border-top: 1px solid var(--line) !important;
  }
  body[data-page="home"] .hero-stats > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(92px, .72fr) !important;
    align-items: start !important;
    gap: 14px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  body[data-page="home"] .hero-stats strong,
  body[data-page="home"] .hero-stats span {
    min-width: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  body[data-page="home"] .hero-stats strong:not([data-bb-style]) {
    font-size: 18px !important;
    line-height: 1.02 !important;
    letter-spacing: -.035em !important;
  }
  body[data-page="home"] .hero-stats span:not([data-bb-style]) {
    font-size: 11px !important;
    line-height: 1.18 !important;
  }

  /* Remove the extra light frame around the first-screen photo on phones. */
  body[data-page="home"] .hero-main.hero-main--layout {
    overflow: hidden !important;
  }
  body[data-page="home"] .hero-visual,
  body[data-page="home"] .hero-visual[data-image-frame],
  body[data-page="home"] .hero-visual[data-image-custom-width="1"] {
    width: calc(100% + 36px) !important;
    inline-size: calc(100% + 36px) !important;
    max-width: none !important;
    justify-self: stretch !important;
    margin: 14px -18px -18px !important;
    border-radius: var(--bb-photo-radius) !important;
  }
  body[data-page="home"] .hero-visual > img,
  body[data-page="home"] .hero-visual img[data-editable-image] {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    border-radius: var(--bb-photo-radius) !important;
  }

  /* Mobile showcase photos should use the same page width and visual treatment. */
  body[data-page="home"] .split-showcase .image-pair,
  body[data-page="home"] .split-showcase .image-pair__card {
    width: 100% !important;
    max-width: none !important;
  }
}

/* === v62 client review: hero reflow, mobile type priority, clean photos === */
/* Desktop hero: give the copy real width instead of forcing the headline into a narrow column. */
body[data-page="home"] .hero-layout {
  display: grid !important;
  grid-template-areas:
    "copy visual"
    "stats visual" !important;
  grid-template-columns: minmax(560px, 1.05fr) minmax(520px, .95fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  column-gap: clamp(34px, 4vw, 76px) !important;
  row-gap: 18px !important;
  align-items: stretch !important;
}
body[data-page="home"] .hero-copy {
  grid-area: copy !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  align-self: center !important;
  overflow: visible !important;
}
body[data-page="home"] .hero-main__content {
  width: 100% !important;
  max-width: none !important;
}
body[data-page="home"] .hero-title {
  width: 100% !important;
  max-width: none !important;
}
body[data-page="home"] .hero-text {
  width: 100% !important;
  max-width: 760px !important;
}
body[data-page="home"] .hero-stats {
  grid-area: stats !important;
  width: 100% !important;
  max-width: none !important;
  margin-top: 0 !important;
  align-self: end !important;
}
body[data-page="home"] .hero-visual {
  grid-area: visual !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  align-self: center !important;
  justify-self: stretch !important;
}

/* Saved typography is the final authority. This block is intentionally last. */
html body[data-page] [data-editable-text][data-bb-style] {
  font-family: var(--bb-font, inherit) !important;
  color: var(--bb-color, inherit) !important;
  font-size: var(--bb-size-desktop, inherit) !important;
  font-weight: var(--bb-weight, inherit) !important;
  text-align: var(--bb-align, inherit) !important;
  line-height: var(--bb-line-height, inherit) !important;
  letter-spacing: var(--bb-letter-spacing, inherit) !important;
}

/* Clean interior photos: the product overlays were removed from markup, make sure the media itself fills the card. */
body[data-page="home"] .combo-interior__image {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

@media (max-width: 1100px) {
  /* On phones/tablets: copy -> first photo -> stats. The photo no longer gets pushed sideways/down by the stats block. */
  body[data-page="home"] .hero-layout {
    grid-template-areas:
      "copy"
      "visual"
      "stats" !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    gap: 18px !important;
    min-height: 0 !important;
    height: auto !important;
  }
  body[data-page="home"] .hero-copy,
  body[data-page="home"] .hero-stats,
  body[data-page="home"] .hero-visual {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-self: stretch !important;
  }
  body[data-page="home"] .hero-visual,
  body[data-page="home"] .hero-visual[data-image-frame],
  body[data-page="home"] .hero-visual[data-image-custom-width="1"] {
    inline-size: 100% !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: var(--bb-img-ratio, 16 / 9) !important;
  }
  body[data-page="home"] .hero-visual > img,
  body[data-page="home"] .hero-visual img[data-editable-image] {
    width: 100% !important;
    height: 100% !important;
  }
}

@media (max-width: 820px) {
  html body[data-page] [data-editable-text][data-bb-style] {
    font-size: var(--bb-size-mobile, var(--bb-size-desktop, inherit)) !important;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .hero-grid.section-top {
    width: min(calc(100% - 20px), 1840px) !important;
  }
  body[data-page="home"] .hero-main.hero-main--layout {
    padding: 14px !important;
  }
  body[data-page="home"] .hero-layout {
    gap: 16px !important;
  }
  body[data-page="home"] .hero-visual,
  body[data-page="home"] .hero-visual[data-image-frame],
  body[data-page="home"] .hero-visual[data-image-custom-width="1"] {
    width: 100% !important;
    inline-size: 100% !important;
    margin: 0 !important;
    border-radius: 10px !important;
  }
  body[data-page="home"] .hero-stats {
    margin-top: 0 !important;
  }
}

/* Visual editor: reuse photos that are already stored on the server. */
.bb-upload-library-wrap { margin-top: 10px; }
.bb-upload-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(28,29,31,.12);
  border-radius: 12px;
  background: #f7f7f7;
}
.bb-upload-library[hidden] { display: none !important; }
.bb-upload-library__item {
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(28,29,31,.1);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.bb-upload-library__item.is-selected { outline: 2px solid #1c1d1f; outline-offset: 1px; }
.bb-upload-library__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.bb-upload-library__item span,
.bb-upload-library__status { font-size: 11px; line-height: 1.2; color: #6b6d70; }
.bb-upload-library__status { grid-column: 1 / -1; margin: 4px; }

/* === v63 full-site responsive audit === */
/* Guard every page against horizontal drift after CMS text/image edits. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
main,
section,
article,
aside,
header,
footer,
[data-editable-text],
[data-image-frame] {
  min-width: 0;
}
img,
video,
svg {
  max-width: 100%;
}
html body [data-editable-text] {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Long editable button labels must grow the button instead of escaping it. */
.hero-actions .btn,
.product-actions .btn,
.about-dark .btn,
.cart-empty .btn,
.contact-cta .btn {
  white-space: normal !important;
  height: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center;
}

/* Desktop home hero: fluid tracks, no hard minimums that can create a 1–20 px overflow. */
@media (min-width: 1101px) {
  body[data-page="home"] .hero-layout {
    grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr) !important;
    column-gap: clamp(24px, 3.2vw, 62px) !important;
  }
  body[data-page="home"] .hero-copy,
  body[data-page="home"] .hero-main__content,
  body[data-page="home"] .hero-visual,
  body[data-page="home"] .hero-stats {
    min-width: 0 !important;
  }
}

/* Mid-size desktop/tablet header stays on one clean line until the burger breakpoint. */
@media (min-width: 821px) and (max-width: 1180px) {
  .site-header {
    grid-template-columns: minmax(140px, 190px) minmax(0, 1fr) auto !important;
    gap: 12px !important;
  }
  .site-header .nav {
    min-width: 0;
    gap: clamp(12px, 2vw, 24px) !important;
  }
  .site-header .nav__link,
  .site-header .nav__item > button {
    font-size: clamp(12px, 1.25vw, 15px) !important;
  }
}

/* Tablets: same visual order as phone, but without mobile-sized typography. */
@media (max-width: 1100px) {
  body[data-page="home"] .hero-layout {
    grid-template-areas:
      "copy"
      "visual"
      "stats" !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    min-height: 0 !important;
    height: auto !important;
  }
  body[data-page="home"] .hero-copy,
  body[data-page="home"] .hero-visual,
  body[data-page="home"] .hero-stats {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  body[data-page="home"] .hero-visual[data-image-custom-width="1"] {
    width: var(--bb-img-width, 100%) !important;
    inline-size: var(--bb-img-width, 100%) !important;
    justify-self: center !important;
  }
}

@media (max-width: 820px) {
  :root {
    --page: min(100% - 16px, 1840px);
    --content: min(100% - 20px, 1540px);
  }

  /* The saved mobile font size is the final authority on every page. */
  html body[data-page] [data-editable-text][data-bb-style] {
    font-size: var(--bb-size-mobile, var(--bb-size-desktop, inherit)) !important;
    line-height: var(--bb-line-height, inherit) !important;
    letter-spacing: var(--bb-letter-spacing, inherit) !important;
  }

  .site-header {
    width: var(--page) !important;
    grid-template-columns: minmax(0, 1fr) 42px 42px !important;
    padding: 4px 8px 4px 14px !important;
    gap: 7px !important;
  }
  .brand--text {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .section,
  .catalog-section,
  .cart-page,
  .product-page,
  .product-description--full,
  .about-hero,
  .about-value,
  .about-production,
  .about-principles,
  .about-dark {
    max-width: 100% !important;
  }

  body[data-page="home"] .hero-grid.section-top {
    width: var(--page) !important;
  }
  body[data-page="home"] .hero-main.hero-main--layout {
    padding: 14px !important;
  }
  body[data-page="home"] .hero-layout {
    gap: 16px !important;
  }
  body[data-page="home"] .hero-copy,
  body[data-page="home"] .hero-main__content,
  body[data-page="home"] .hero-title,
  body[data-page="home"] .hero-text {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* The first image stays centred; an explicit width from the editor still works. */
  body[data-page="home"] .hero-visual,
  body[data-page="home"] .hero-visual[data-image-frame] {
    width: 100% !important;
    inline-size: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    justify-self: center !important;
  }
  body[data-page="home"] .hero-visual[data-image-custom-width="1"] {
    width: var(--bb-img-width, 100%) !important;
    inline-size: var(--bb-img-width, 100%) !important;
  }

  /* Production points become real rows; edited text can grow without overlap. */
  body[data-page="home"] .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding-top: 0 !important;
    border-top: 1px solid var(--line) !important;
  }
  body[data-page="home"] .hero-stats > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(96px, .72fr) !important;
    gap: 14px !important;
    align-items: start !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  body[data-page="home"] .hero-stats strong,
  body[data-page="home"] .hero-stats span {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  /* Image sections use their own ratio instead of old fixed mobile heights. */
  .image-pair__card[data-image-frame],
  .quiet-block__media[data-image-frame],
  .full-banner[data-image-frame],
  .about-hero__image[data-image-frame],
  .about-value__images [data-image-frame],
  .about-principle__image[data-image-frame],
  .about-production__slide[data-image-frame],
  .product-card__media[data-image-frame],
  .product-gallery__main[data-image-frame] {
    height: auto !important;
    min-height: 0 !important;
  }
  .image-pair__card--lower {
    margin-top: 0 !important;
  }

  /* Product/catalog cards remain two columns on phones but never force page width. */
  .product-grid,
  .product-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
  .product-card,
  .product-card__link,
  .product-card__body {
    min-width: 0 !important;
  }
  .product-card h3,
  .product-card p,
  .product-card strong {
    overflow-wrap: anywhere;
  }

  /* Product page/gallery: no fixed heights or sideways thumbnail overflow into the page. */
  .product-page {
    grid-template-columns: 1fr !important;
  }
  .product-gallery,
  .product-gallery__frame,
  .product-info,
  .product-description--full {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .product-gallery__thumbs--side {
    width: 100% !important;
    max-width: 100% !important;
    overscroll-behavior-inline: contain;
  }

  /* Cart rows reflow instead of squeezing names and totals. */
  .cart-layout,
  .cart-list,
  .cart-summary {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .cart-item {
    width: 100%;
    min-width: 0;
  }
  .cart-item__info,
  .cart-item__info a,
  .cart-item__info h3 {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* Legal tables may scroll inside themselves, never the entire page. */
  .legal-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Footer remains readable after longer edited labels. */
  .footer__nav a {
    font-size: clamp(26px, 8vw, 34px) !important;
    line-height: 1.02 !important;
    overflow-wrap: anywhere;
  }
  .footer__bottom {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

@media (max-width: 520px) {
  .catalog-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 10px !important;
  }
  .catalog-tab {
    min-width: 0 !important;
    font-size: 13px !important;
  }
  .catalog-tab > span:first-child {
    overflow-wrap: anywhere;
  }
  .product-grid,
  .product-grid--home {
    gap: 18px 9px !important;
  }
  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr) 38px !important;
  }
}

/* Text editor: preview desktop and mobile sizes before saving. */
.bb-edit-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.bb-edit-preview-toolbar > div {
  display: inline-flex;
  gap: 6px;
}
.bb-edit-preview-toolbar button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
}
.bb-edit-preview-toolbar button.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.bb-edit-preview.is-mobile-preview {
  width: min(390px, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Keep the requested photo radius truly consistent, including cart and editor thumbnails. */
[data-image-frame],
[data-image-frame] > img,
.cart-item__image,
.cart-item__image img,
.bb-edit-image-preview,
.bb-edit-image-preview img {
  border-radius: 10px !important;
}

/* v64: homepage interior photos are intentionally clean — no floating product cards. */
body[data-page="home"] .mini-product-card,
body[data-page="home"] .combo-interior .mini-product-card {
  display: none !important;
}

body[data-page="home"] .combo-interior,
body[data-page="home"] .combo-interior__image {
  overflow: hidden;
}

body[data-page="home"] .combo-interior__image,
body[data-page="home"] .combo-interior__image > img {
  width: 100% !important;
  height: 100% !important;
}

body[data-page="home"] .combo-interior__image > img {
  display: block !important;
  object-fit: cover !important;
}


/* v65: mobile hero photo flush width + editable text-area width */
html body[data-page] [data-editable-text][data-bb-text-width="1"] {
  display: inline-block;
  width: var(--bb-text-width-desktop, 100%) !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

@media (max-width: 820px) {
  html body[data-page] [data-editable-text][data-bb-text-width="1"] {
    width: var(--bb-text-width-mobile, var(--bb-text-width-desktop, 100%)) !important;
    max-width: 100% !important;
  }

  /* On mobile the first homepage photo must fill the whole available card width,
     even if an older editor save left a narrower custom width behind. */
  body[data-page="home"] .hero-visual,
  body[data-page="home"] .hero-visual[data-image-frame],
  body[data-page="home"] .hero-visual[data-image-custom-width="1"] {
    width: 100% !important;
    inline-size: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-self: stretch !important;
    align-self: stretch !important;
  }

  body[data-page="home"] .hero-visual > img {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }
}

/* === v66 final client fixes + checkout preparation === */
/* Separate desktop/mobile alignment from the visual editor. */
html body[data-page] [data-editable-text][data-bb-style] {
  text-align: var(--bb-align-desktop, var(--bb-align, inherit)) !important;
}
html body[data-page] [data-editable-text][data-bb-text-width="1"][data-bb-align-desktop="center"] {
  margin-left: auto !important;
  margin-right: auto !important;
}
html body[data-page] [data-editable-text][data-bb-text-width="1"][data-bb-align-desktop="right"] {
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Catalog counters: one baseline/size everywhere. */
.catalog-tabs .catalog-tab {
  display: inline-flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  position: relative !important;
}
.catalog-tabs .catalog-tab .nav-index {
  position: static !important;
  top: auto !important;
  transform: translateY(-0.34em) !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 16px !important;
  font-size: 9px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  vertical-align: top !important;
  flex: 0 0 auto !important;
}

/* Page-to-page curtain always owns the viewport; no white browser flash between documents. */
.page-transition,
.page-transition__panel {
  background-color: #1c1d1f;
}
html.bb-nav-arrival,
html.bb-nav-arrival body {
  background: #1c1d1f !important;
}

/* Checkout / CDEK preparation. */
.checkout-delivery {
  display: grid;
  gap: 12px;
  margin: 4px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
}
.checkout-delivery__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.checkout-delivery__head b { font-weight: 560; color: var(--ink); }
.checkout-delivery__head span { color: var(--muted); font-size: 12px; text-align: right; }
.checkout-delivery__switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cart-order-form .checkout-delivery__switch label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.cart-order-form .checkout-delivery__switch input { width: auto; margin: 0; }
.cart-order-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--bg);
  color: var(--ink);
}
.checkout-secondary {
  min-height: 44px !important;
  border: 1px solid var(--line) !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
}
.checkout-secondary:disabled { opacity: .45; cursor: not-allowed; }
.checkout-delivery__quote { margin: 0; min-height: 18px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.checkout-suggestions {
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.checkout-suggestions[hidden] { display: none !important; }
.checkout-suggestions button {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.checkout-suggestions button:hover { background: var(--paper-2); }
.checkout-suggestions b { font-size: 13px; font-weight: 520; }
.checkout-suggestions span { font-size: 11px; color: var(--muted); }

.payment-result {
  min-height: 100svh;
  display: grid;
  place-items: center;
  width: var(--page);
  margin: 0 auto;
  padding: 28px 0;
}
.payment-result__card {
  width: min(720px, 100%);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  background: var(--paper);
}
.payment-result__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.payment-result h1 { margin: 20px 0 14px; font-size: clamp(38px, 6vw, 72px); line-height: .92; letter-spacing: -.06em; font-weight: 500; }
.payment-result p { max-width: 600px; color: var(--muted); line-height: 1.35; }
.payment-result__order { margin-top: 16px; color: var(--ink) !important; font-weight: 520; }
.payment-result__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

@media (max-width: 820px) {
  html body[data-page] [data-editable-text][data-bb-style] {
    text-align: var(--bb-align-mobile, var(--bb-align-desktop, var(--bb-align, inherit))) !important;
  }
  html body[data-page] [data-editable-text][data-bb-text-width="1"][data-bb-align-mobile="center"] {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html body[data-page] [data-editable-text][data-bb-text-width="1"][data-bb-align-mobile="right"] {
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  /* If the categories title is centered on mobile, center it against the full section, not against the arrow gap. */
  body[data-page="home"] .categories-block .section-head:has([data-bb-align-mobile="center"]) {
    position: relative !important;
    display: block !important;
    min-height: 46px;
    padding-right: 0 !important;
  }
  body[data-page="home"] .categories-block .section-head:has([data-bb-align-mobile="center"]) .section-title {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 52px !important;
    padding-right: 52px !important;
    text-align: center !important;
  }
  body[data-page="home"] .categories-block .section-head:has([data-bb-align-mobile="center"]) .slider-arrows {
    position: absolute !important;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Show gallery/category photos completely on phones unless the editor explicitly chose another crop. */
  body[data-page="home"] .category-slide__media[data-image-frame]:not([data-image-custom-ratio="1"]),
  body[data-page="home"] .combo-interior__image[data-image-frame]:not([data-image-custom-ratio="1"]),
  body[data-page="home"] .combo-product__image[data-image-frame]:not([data-image-custom-ratio="1"]),
  body[data-page="home"] .image-pair__card[data-image-frame]:not([data-image-custom-ratio="1"]) {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    background: var(--paper-2);
  }
  body[data-page="home"] .category-slide__media[data-image-frame]:not([data-image-custom-fit="1"]) > img,
  body[data-page="home"] .combo-interior__image[data-image-frame]:not([data-image-custom-fit="1"]) > img,
  body[data-page="home"] .combo-product__image[data-image-frame]:not([data-image-custom-fit="1"]) > img,
  body[data-page="home"] .image-pair__card[data-image-frame]:not([data-image-custom-fit="1"]) > img {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
  }
  body[data-page="home"] .category-slide img { height: auto !important; }
  body[data-page="home"] .combo-interior__image { position: relative !important; inset: auto !important; }
  body[data-page="home"] .combo-interior { min-height: 0 !important; height: auto !important; }

  /* Compact material badge on mobile. */
  body[data-page="home"] .quiet-block__media .floating-card {
    width: auto !important;
    max-width: min(72%, 250px) !important;
    min-width: 0 !important;
    right: 10px !important;
    top: 10px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
  }
  body[data-page="home"] .quiet-block__media .floating-card span {
    margin: 0 0 4px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
  }
  body[data-page="home"] .quiet-block__media .floating-card strong {
    font-size: 15px !important;
    line-height: 1.05 !important;
  }

  .catalog-tabs .catalog-tab .nav-index {
    transform: translateY(-0.3em) !important;
    font-size: 9px !important;
    min-width: 15px !important;
  }

  .checkout-delivery { padding: 12px; }
  .checkout-delivery__switch { grid-template-columns: 1fr; }
  .payment-result { padding: 12px 0; }
  .payment-result__actions { display: grid; grid-template-columns: 1fr; }
}

/* v67: custom CDEK pickup selector + searchable list */
.checkout-field {
  display: grid;
  gap: 8px;
}

.checkout-pvz-picker {
  position: relative;
  width: 100%;
}

.checkout-pvz-trigger {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.checkout-pvz-trigger:hover:not(:disabled),
.checkout-pvz-trigger[aria-expanded="true"] {
  background: var(--paper-2);
  border-color: color-mix(in srgb, var(--ink) 24%, var(--line));
}

.checkout-pvz-trigger:disabled {
  cursor: not-allowed;
  color: var(--muted);
  opacity: .72;
}

.checkout-pvz-trigger > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-pvz-trigger__chevron {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  transition: transform .2s ease;
}

.checkout-pvz-trigger[aria-expanded="true"] .checkout-pvz-trigger__chevron {
  transform: rotate(180deg);
}

.checkout-pvz-popover {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(28, 29, 31, .14);
}

.checkout-pvz-popover[hidden] {
  display: none !important;
}

.checkout-pvz-search-wrap input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.checkout-pvz-search-wrap input:focus {
  border-color: color-mix(in srgb, var(--ink) 36%, var(--line));
}

.checkout-pvz-search-wrap input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.checkout-pvz-results {
  display: grid;
  gap: 6px;
  max-height: min(390px, 50vh);
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.checkout-pvz-option {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}

.checkout-pvz-option:hover,
.checkout-pvz-option:focus-visible,
.checkout-pvz-option.is-selected {
  background: var(--paper-2);
  border-color: var(--line);
  outline: none;
}

.checkout-pvz-option__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.checkout-pvz-option__top b {
  min-width: 0;
  font-size: 14px;
  font-weight: 560;
  color: var(--ink);
}

.checkout-pvz-option__top small {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted);
}

.checkout-pvz-option__address {
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
}

.checkout-pvz-option__time {
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}

.checkout-pvz-empty {
  padding: 18px 12px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

/* v67: city suggestions stay readable instead of inheriting pale text */
.checkout-suggestions {
  background: var(--paper) !important;
  color: var(--ink) !important;
  opacity: 1 !important;
}

.checkout-suggestions button,
.checkout-suggestions b {
  color: var(--ink) !important;
  opacity: 1 !important;
}

.checkout-suggestions span {
  color: var(--muted) !important;
  opacity: 1 !important;
}

.checkout-suggestions button:hover,
.checkout-suggestions button:focus-visible {
  background: var(--paper-2) !important;
  outline: none;
}

@media (max-width: 820px) {
  .checkout-pvz-trigger {
    min-height: 50px;
    padding: 0 14px;
    border-radius: 12px;
  }

  .checkout-pvz-popover {
    position: fixed;
    z-index: 250;
    left: 14px;
    right: 14px;
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    max-height: min(70svh, 620px);
    padding: 12px;
    border-radius: 18px;
  }

  .checkout-pvz-results {
    max-height: calc(min(70svh, 620px) - 80px);
  }

  .checkout-pvz-option {
    padding: 13px 12px;
  }
}

/* CDEK PVZ — светлые карточки вместо чёрных кнопок */
.cart-order-form .checkout-pvz-popover {
  background: #fff !important;
  color: #1c1d1f !important;
}

.cart-order-form .checkout-pvz-search-wrap input {
  background: #fafafc !important;
  color: #1c1d1f !important;
  border: 1px solid rgba(28,29,31,.22) !important;
}

.cart-order-form .checkout-pvz-search-wrap input::placeholder {
  color: #77797c !important;
  opacity: 1 !important;
}

.cart-order-form .checkout-pvz-option {
  min-height: 0 !important;
  display: grid !important;
  gap: 5px !important;
  width: 100% !important;
  padding: 12px 13px !important;
  border: 1px solid rgba(28,29,31,.09) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #1c1d1f !important;
  text-align: left !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}

.cart-order-form .checkout-pvz-option:hover,
.cart-order-form .checkout-pvz-option:focus-visible {
  background: #f7f5f2 !important;
  border-color: rgba(28,29,31,.18) !important;
  color: #1c1d1f !important;
}

.cart-order-form .checkout-pvz-option.is-selected {
  background: #f1efec !important;
  border-color: rgba(28,29,31,.22) !important;
}

.cart-order-form .checkout-pvz-option__top,
.cart-order-form .checkout-pvz-option__top b,
.cart-order-form .checkout-pvz-option__address {
  color: #1c1d1f !important;
  opacity: 1 !important;
}

.cart-order-form .checkout-pvz-option__top small,
.cart-order-form .checkout-pvz-option__time {
  color: #6b6d70 !important;
  opacity: 1 !important;
}

.cart-order-form .checkout-pvz-option__address,
.cart-order-form .checkout-pvz-option__time {
  display: block !important;
}

@media (max-width: 820px) {
  .cart-order-form .checkout-pvz-option {
    padding: 13px 12px !important;
    border-radius: 10px !important;
  }
}

/* ===== CDEK PVZ FINAL LAYOUT FIX ===== */

.cart-order-form .checkout-pvz-results {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.cart-order-form .checkout-pvz-option {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;

  width: 100% !important;
  height: auto !important;
  min-height: 82px !important;
  max-height: none !important;

  padding: 12px 14px !important;
  margin: 0 !important;

  overflow: visible !important;

  background: #fff !important;
  color: #1c1d1f !important;
  border: 1px solid rgba(28,29,31,.10) !important;
  border-radius: 12px !important;

  text-align: left !important;
  white-space: normal !important;
  line-height: normal !important;

  appearance: none !important;
  -webkit-appearance: none !important;
}

.cart-order-form .checkout-pvz-option__top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 10px !important;

  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;

  margin: 0 0 5px !important;
  position: static !important;
}

.cart-order-form .checkout-pvz-option__top b {
  display: block !important;
  min-width: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #1c1d1f !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;

  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.cart-order-form .checkout-pvz-option__top small {
  display: block !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;

  color: #747679 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 400 !important;

  white-space: nowrap !important;
  position: static !important;
}

.cart-order-form .checkout-pvz-option__address {
  display: block !important;
  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #4e5053 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;

  white-space: normal !important;
  overflow-wrap: anywhere !important;

  position: static !important;
}

.cart-order-form .checkout-pvz-option__time {
  display: block !important;
  width: 100% !important;

  margin: 4px 0 0 !important;
  padding: 0 !important;

  color: #85878a !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;

  white-space: normal !important;

  position: static !important;
}

.cart-order-form .checkout-pvz-option:hover,
.cart-order-form .checkout-pvz-option:focus-visible {
  background: #f7f5f2 !important;
}

.cart-order-form .checkout-pvz-option.is-selected {
  background: #f1efec !important;
  border-color: rgba(28,29,31,.22) !important;
}

@media (max-width: 820px) {
  .cart-order-form .checkout-pvz-popover {
    left: 12px !important;
    right: 12px !important;
    padding: 10px !important;
    max-height: 72svh !important;
  }

  .cart-order-form .checkout-pvz-results {
    max-height: calc(72svh - 86px) !important;
    gap: 7px !important;
  }

  .cart-order-form .checkout-pvz-option {
    min-height: 78px !important;
    padding: 11px 12px !important;
  }

  .cart-order-form .checkout-pvz-option__top b {
    font-size: 14px !important;
  }

  .cart-order-form .checkout-pvz-option__address {
    font-size: 12px !important;
  }
}

/* ===== CDEK PVZ: окончательный фикс наложения текста ===== */

.cart-order-form .checkout-pvz-results {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
}

.cart-order-form .checkout-pvz-option {
  position: relative !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;

  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  padding: 14px 82px 14px 14px !important;
  margin: 0 !important;

  gap: 6px !important;

  background: #fff !important;
  color: #1c1d1f !important;
  border: 1px solid rgba(28,29,31,.11) !important;
  border-radius: 14px !important;

  overflow: visible !important;
  white-space: normal !important;
  text-align: left !important;
  line-height: normal !important;
}

.cart-order-form .checkout-pvz-option__top {
  display: block !important;

  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  position: static !important;
}

.cart-order-form .checkout-pvz-option__top b {
  display: block !important;

  width: 100% !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  font-size: 15px !important;
  line-height: 1.32 !important;
  font-weight: 600 !important;

  color: #1c1d1f !important;

  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;

  position: static !important;
}

.cart-order-form .checkout-pvz-option__top small {
  position: absolute !important;
  top: 15px !important;
  right: 14px !important;

  display: block !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #77797c !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;

  white-space: nowrap !important;
}

.cart-order-form .checkout-pvz-option__address {
  display: block !important;
  position: static !important;

  width: 100% !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #55575a !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;

  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
}

.cart-order-form .checkout-pvz-option__time {
  display: block !important;
  position: static !important;

  width: 100% !important;
  height: auto !important;

  margin: 2px 0 0 !important;
  padding: 0 !important;

  color: #85878a !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;

  white-space: normal !important;
  overflow: visible !important;
}

.cart-order-form .checkout-pvz-option:hover,
.cart-order-form .checkout-pvz-option:focus-visible {
  background: #f7f5f2 !important;
}

.cart-order-form .checkout-pvz-option.is-selected {
  background: #f1efec !important;
  border-color: rgba(28,29,31,.22) !important;
}

/* mobile */
@media (max-width: 820px) {
  .cart-order-form .checkout-pvz-option {
    padding: 13px 70px 13px 12px !important;
    gap: 5px !important;
    border-radius: 12px !important;
  }

  .cart-order-form .checkout-pvz-option__top b {
    font-size: 14px !important;
    line-height: 1.32 !important;
  }

  .cart-order-form .checkout-pvz-option__top small {
    top: 14px !important;
    right: 12px !important;
    font-size: 11px !important;
  }

  .cart-order-form .checkout-pvz-option__address {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .cart-order-form .checkout-pvz-option__time {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }
}

/* ===== CDEK PVZ — отдельные карточки без наложений ===== */

.cart-order-form .checkout-pvz-results {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;

  max-height: 60vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;

  padding: 2px !important;
}

.cart-order-form .checkout-pvz-option {
  position: relative !important;

  display: block !important;

  width: 100% !important;
  height: auto !important;
  min-height: 104px !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 16px 88px 16px 16px !important;

  background: #ffffff !important;
  color: #1c1d1f !important;

  border: 1px solid rgba(28,29,31,.12) !important;
  border-radius: 16px !important;

  box-shadow: none !important;

  text-align: left !important;

  white-space: normal !important;
  overflow: hidden !important;

  appearance: none !important;
  -webkit-appearance: none !important;
}

.cart-order-form .checkout-pvz-option__top {
  display: block !important;

  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;

  margin: 0 0 8px 0 !important;
  padding: 0 !important;

  position: static !important;

  line-height: normal !important;
}

.cart-order-form .checkout-pvz-option__top b {
  display: block !important;

  width: 100% !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #1c1d1f !important;

  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;

  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;

  position: static !important;
}

.cart-order-form .checkout-pvz-option__top small {
  position: absolute !important;
  top: 17px !important;
  right: 16px !important;

  display: block !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #77797c !important;

  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;

  white-space: nowrap !important;
}

.cart-order-form .checkout-pvz-option__address {
  display: block !important;

  width: 100% !important;
  height: auto !important;

  margin: 0 0 8px 0 !important;
  padding: 0 !important;

  position: static !important;

  color: #55575a !important;

  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;

  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
}

.cart-order-form .checkout-pvz-option__time {
  display: block !important;

  width: 100% !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  position: static !important;

  color: #85878a !important;

  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;

  white-space: normal !important;
  overflow: visible !important;
}

.cart-order-form .checkout-pvz-option:hover,
.cart-order-form .checkout-pvz-option:focus-visible {
  background: #f7f5f2 !important;
}

.cart-order-form .checkout-pvz-option.is-selected {
  background: #f1efec !important;
  border-color: rgba(28,29,31,.25) !important;
}

@media (max-width: 820px) {
  .cart-order-form .checkout-pvz-results {
    gap: 10px !important;
    max-height: 58svh !important;
  }

  .cart-order-form .checkout-pvz-option {
    min-height: 96px !important;
    padding: 14px 76px 14px 14px !important;
    border-radius: 14px !important;
  }

  .cart-order-form .checkout-pvz-option__top {
    margin-bottom: 7px !important;
  }

  .cart-order-form .checkout-pvz-option__top b {
    font-size: 15px !important;
    line-height: 1.3 !important;
  }

  .cart-order-form .checkout-pvz-option__top small {
    top: 15px !important;
    right: 14px !important;
    font-size: 11px !important;
  }

  .cart-order-form .checkout-pvz-option__address {
    margin-bottom: 7px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  .cart-order-form .checkout-pvz-option__time {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }
}

/* ===== CDEK PVZ — высота строго по содержимому ===== */

.cart-order-form .checkout-pvz-results {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  align-items: stretch !important;
}

.cart-order-form .checkout-pvz-option {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto !important;
  align-items: start !important;
  align-content: start !important;
  gap: 7px !important;

  position: relative !important;

  width: 100% !important;
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;

  padding: 15px 16px !important;
  margin: 0 !important;

  box-sizing: border-box !important;

  background: #fff !important;
  color: #1c1d1f !important;

  border: 1px solid rgba(28,29,31,.12) !important;
  border-radius: 14px !important;

  overflow: visible !important;
  white-space: normal !important;
  text-align: left !important;
}

.cart-order-form .checkout-pvz-option__top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 12px !important;

  position: static !important;

  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
}

.cart-order-form .checkout-pvz-option__top b {
  display: block !important;
  position: static !important;

  width: auto !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #1c1d1f !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;

  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
}

.cart-order-form .checkout-pvz-option__top small {
  display: block !important;
  position: static !important;

  margin: 2px 0 0 !important;
  padding: 0 !important;

  color: #77797c !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;

  white-space: nowrap !important;
}

.cart-order-form .checkout-pvz-option__address {
  display: block !important;
  position: static !important;

  width: 100% !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #55575a !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;

  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
}

.cart-order-form .checkout-pvz-option__time {
  display: block !important;
  position: static !important;

  width: 100% !important;
  height: auto !important;

  margin: 1px 0 0 !important;
  padding: 0 !important;

  color: #85878a !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;

  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 820px) {
  .cart-order-form .checkout-pvz-option {
    padding: 14px !important;
    gap: 6px !important;
  }

  .cart-order-form .checkout-pvz-option__top {
    gap: 10px !important;
  }

  .cart-order-form .checkout-pvz-option__top b {
    font-size: 14px !important;
  }

  .cart-order-form .checkout-pvz-option__top small {
    font-size: 11px !important;
  }

  .cart-order-form .checkout-pvz-option__address {
    font-size: 12px !important;
  }

  .cart-order-form .checkout-pvz-option__time {
    font-size: 10px !important;
  }
}
