/* Stone-in-House — theme on top of Bootstrap 5.3 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand palette: graphite from the logo, warm stone canvas, taupe + sand from the banner */
  --ink: #2a2622;
  --canvas: #f4efe8;
  --stone: #ebe4da;
  --taupe: #6e635a;
  --sand: #e4d4bf;
  --text: #333;
  --muted: #5f5953;
  --line: rgba(42, 38, 34, .18);

  --label: 12px;
  --body: 18px;
  --h-sm: clamp(32px, 4vw, 40px);
  --h: clamp(32px, 3.6vw, 56px);
  --display: clamp(40px, 8.4vw, 120px);
  --section-gap: clamp(72px, 9vw, 120px);
  --header-h: 76px;

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: var(--body);
  --bs-body-line-height: 1.5;
  --bs-body-color: var(--text);
  --bs-body-bg: var(--canvas);
  --bs-heading-color: var(--ink);
  --bs-link-color: var(--ink);
  --bs-link-color-rgb: 42, 38, 34;
  --bs-link-hover-color: var(--taupe);
  --bs-link-hover-color-rgb: 110, 99, 90;
  --bs-border-color: var(--line);
  --bs-border-radius: 0;
  --bs-secondary-color: var(--muted);
  --bs-emphasis-color: var(--ink);
  --bs-focus-ring-color: rgba(42, 38, 34, .25);
}

html { scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-feature-settings: "cv11", "ss01";
  letter-spacing: -.004em;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
main { flex: 1 0 auto; }
::selection { background: var(--ink); color: var(--canvas); }
a { text-decoration: none; transition: color .2s; }
img { display: block; }

.icon { width: 20px; height: 20px; fill: none; stroke-width: 1.5; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }

/* ---------- Type ---------- */
.label {
  font-size: var(--label);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.display {
  overflow-wrap: break-word;
  font-size: var(--display);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.056em;
}
.display-hero { font-size: clamp(120px, 22vw, 250px); line-height: .8; }
.heading {
  overflow-wrap: break-word;
  font-size: var(--h);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.05em;
  text-transform: uppercase;
  margin: 0;
}
.heading-sm {
  overflow-wrap: break-word;
  font-size: var(--h-sm);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.04em;
  margin: 0;
}
.page-title {
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.04em;
  overflow-wrap: break-word;
  margin: 0;
}
.lead-text { font-size: 20px; line-height: 1.5; max-width: 50ch; }
.text-muted-2 { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --bs-btn-font-size: var(--label);
  --bs-btn-font-weight: 500;
  --bs-btn-padding-x: 24px;
  --bs-btn-padding-y: 14px;
  --bs-btn-border-radius: 0;
  letter-spacing: .083em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-ink {
  --bs-btn-color: var(--canvas);
  --bs-btn-bg: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-color: var(--canvas);
  --bs-btn-hover-bg: var(--taupe);
  --bs-btn-hover-border-color: var(--taupe);
  --bs-btn-active-color: var(--canvas);
  --bs-btn-active-bg: var(--taupe);
  --bs-btn-active-border-color: var(--taupe);
}
.btn-light-ink {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: var(--canvas);
  --bs-btn-border-color: var(--canvas);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--sand);
  --bs-btn-hover-border-color: var(--sand);
  --bs-btn-active-color: var(--ink);
  --bs-btn-active-bg: var(--sand);
  --bs-btn-active-border-color: var(--sand);
}
.btn-pill {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-color: var(--canvas);
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-border-color: var(--ink);
  --bs-btn-active-color: var(--canvas);
  --bs-btn-active-bg: var(--ink);
  --bs-btn-active-border-color: var(--ink);
  --bs-btn-padding-x: 20px;
  --bs-btn-padding-y: 10px;
  --bs-btn-border-radius: 999px;
}
.btn-pill-light {
  --bs-btn-color: var(--canvas);
  --bs-btn-border-color: rgba(244, 239, 232, .5);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--canvas);
  --bs-btn-hover-border-color: var(--canvas);
  --bs-btn-active-color: var(--ink);
  --bs-btn-active-bg: var(--canvas);
  --bs-btn-active-border-color: var(--canvas);
}
.btn-icon {
  --bs-btn-padding-x: 0;
  --bs-btn-padding-y: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

/* ---------- Topbar + header ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--ink); }

.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--ink);
}
.site-header .container { min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { width: 36px; height: 24px; }
.logo__text { font-size: 18px; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }

.nav-main .nav-link {
  --bs-nav-link-color: var(--ink);
  --bs-nav-link-hover-color: var(--ink);
  --bs-nav-link-padding-x: 0;
  text-decoration: underline 1px transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color .2s;
}
.nav-main .nav-link:hover { text-decoration-color: currentColor; }

/* выпадающее меню в шапке: блок во всю высоту шапки, чтобы меню начиналось от её нижней линии
   и мышь не теряла наведение по пути к нему */
.nav-main { align-self: stretch; align-items: center; }
.nav-dropdown { display: flex; align-items: center; align-self: stretch; }
.nav-dropdown__toggle { display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown__caret { transform: rotate(90deg); transition: transform .2s; }
.nav-dropdown .dropdown-menu {
  --bs-dropdown-min-width: 240px;
  --bs-dropdown-padding-y: 8px;
  --bs-dropdown-font-size: 16px;
  --bs-dropdown-bg: var(--canvas);
  --bs-dropdown-border-color: var(--ink);
  --bs-dropdown-border-radius: 0;
  --bs-dropdown-link-color: var(--ink);
  --bs-dropdown-link-hover-color: var(--ink);
  --bs-dropdown-link-hover-bg: var(--stone);
  --bs-dropdown-link-active-color: var(--canvas);
  --bs-dropdown-link-active-bg: var(--ink);
  --bs-dropdown-item-padding-x: 20px;
  --bs-dropdown-item-padding-y: 10px;
  --bs-dropdown-divider-bg: var(--line);
  top: 100%;
  left: -20px;
  margin: 0;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}
.nav-dropdown__toggle[aria-expanded="true"] .nav-dropdown__caret { transform: rotate(-90deg); }
@media (hover: hover) {
  .nav-dropdown:hover > .dropdown-menu { display: block; }
  .nav-dropdown:hover .nav-dropdown__caret { transform: rotate(-90deg); }
}

.header-phone { color: var(--ink); font-size: 18px; font-weight: 500; white-space: nowrap; }
.header-phone small { display: block; font-size: var(--label); font-weight: 400; color: var(--muted); letter-spacing: .02em; }

.header-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
}
.header-btn:hover { color: var(--taupe); }
.header-btn .icon { width: 22px; height: 22px; }
.badge-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.search-panel { border-top: 1px solid var(--line); }
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--ink);
}
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 16px 0;
  font-size: 20px;
  color: var(--ink);
  outline: 0;
}

.offcanvas { --bs-offcanvas-bg: var(--canvas); --bs-offcanvas-width: min(360px, 88vw); }
.offcanvas-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero { background: var(--taupe); color: var(--canvas); }
.hero__text {
  /* align text to the .container edge while the photo bleeds to the viewport edge */
  padding: 56px 16px;
  padding-left: max(16px, calc((100vw - 1320px) / 2 + 12px));
}
@media (min-width: 992px) {
  .hero__text { padding-block: 88px; padding-right: 48px; min-height: min(80vh, 760px); }
}
.hero__title { color: var(--canvas); margin: 20px 0 28px; }
.hero__title span { color: var(--sand); }
.hero__lead { color: rgba(244, 239, 232, .82); }
.hero__img { position: relative; min-height: 320px; }
.hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__contacts { border-top: 1px solid rgba(244, 239, 232, .28); }
.hero__contacts a { color: var(--canvas); }
.hero__contacts a:hover { color: var(--sand); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-gap); }
.section + .section { border-top: 1px solid var(--ink); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }

/* Categories */
.cat-card { display: block; color: var(--ink); }
.cat-card__img { aspect-ratio: 1; overflow: hidden; border: 1px solid var(--ink); background: var(--stone); }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s ease; }
.cat-card:hover .cat-card__img img { transform: scale(1.04); }
.cat-card__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.02em;
}
.cat-card__title .icon { transition: transform .25s; }
.cat-card:hover { color: var(--ink); }
.cat-card:hover .cat-card__title .icon { transform: translate(3px, -3px); }

/* Tabs as pill buttons */
.tabs-pills { gap: 8px; }
.tabs-pills .nav-link {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 20px;
  color: var(--ink);
  background: none;
}
.tabs-pills .nav-link:hover,
.tabs-pills .nav-link.active { background: var(--ink); color: var(--canvas); }

/* Swiper controls */
.slider-nav { display: flex; gap: 8px; }
.slider-nav .btn.swiper-button-disabled { opacity: .3; pointer-events: none; }
.swiper-scrollbar-line {
  position: relative;
  height: 1px;
  margin-top: 40px;
  background: var(--line);
}
.swiper-scrollbar-line .swiper-scrollbar-drag { background: var(--ink); border-radius: 0; height: 3px; top: -1px; }

/* Product card */
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card__img {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--stone);
}
/* multiply turns white studio backgrounds into the stone tone */
.product-card__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: opacity .4s; }
.product-card__img img + img { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .product-card__img img + img { opacity: 1; }
.product-card__label { position: absolute; top: 12px; left: 12px; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.product-card__cat { margin-top: 20px; color: var(--muted); }
.product-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 16px;
  color: var(--ink);
  line-height: 1.4;
  min-height: 2.8em;
}
.product-card__name::first-letter { text-transform: uppercase; }
.product-card__name:hover { color: var(--taupe); }
.product-card__price { font-variant-numeric: tabular-nums; margin-top: auto; font-size: 20px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.product-card__actions { display: flex; align-items: center; gap: 4px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.product-card__actions .btn-pill { flex: 1; }
.icon-toggle { color: var(--ink); }
.icon-toggle:hover, .icon-toggle.is-active { color: var(--taupe); }
.btn-pill.icon-toggle:hover { color: var(--canvas); } /* у пилюли при наведении тёмный фон */
/* заливается только сердце: у остальных <symbol> свой fill="none", он перебивает CSS */
.icon-toggle.is-active .icon { fill: currentColor; }

/* About */
.about-img { aspect-ratio: 4 / 5; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.split-row { margin-inline: 0; padding-block: 28px; border-top: 1px solid var(--line); }
.split-row p { max-width: 50ch; margin: 0; }

/* Features */
.feature { padding-top: 24px; border-top: 1px solid var(--ink); height: 100%; }
.feature__num { color: var(--muted); }
.feature__title { font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -.02em; margin: 40px 0 12px; }
.feature p { color: var(--muted); margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery > :first-child { grid-column: span 2; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .gallery > :first-child { grid-row: span 2; }
}
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--stone); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery--grid > :first-child { grid-column: auto; grid-row: auto; }

/* Forms */
.form-control {
  --bs-border-color: var(--ink);
  border-width: 0 0 1px;
  background: transparent;
  padding: 14px 0;
  font-size: 18px;
  color: var(--ink);
}
.form-control:focus { background: transparent; border-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.form-control::placeholder { color: var(--muted); }
.form-check-input { border-color: var(--ink); background-color: transparent; }
.form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.form-check-label { font-size: 14px; color: var(--muted); }
.form-check-label a { text-decoration: underline; }

.cta { background: var(--stone); }
.modal { --bs-modal-bg: var(--canvas); --bs-modal-border-width: 0; --bs-modal-padding: 32px; }

/* ---------- Footer (dark) ---------- */
.site-footer { background: var(--ink); color: rgba(244, 239, 232, .7); font-size: 16px; }
.site-footer a { color: rgba(244, 239, 232, .7); }
.site-footer a:hover { color: var(--canvas); }
.site-footer .logo, .site-footer .footer-title, .site-footer .footer-phone { color: var(--canvas); }
.footer-title { margin-bottom: 20px; }
.footer-links li + li { margin-top: 10px; }
.footer-phone { font-size: 20px; font-weight: 500; }
.footer-legal { font-size: 14px; }

/* Floating contact buttons */
.float-contacts {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 1030;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.float-contacts .btn { --bs-btn-border-radius: 999px; width: 52px; height: 52px; }
.float-contacts .icon { width: 22px; height: 22px; }

@media (max-width: 575.98px) {
  :root { --header-h: 64px; }
  .logo__text { font-size: 16px; }
  .cat-card__title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Inner pages ---------- */
.page-head { padding-block: 32px clamp(40px, 5vw, 64px); }
.breadcrumb {
  --bs-breadcrumb-margin-bottom: clamp(40px, 6vw, 80px);
  --bs-breadcrumb-divider-color: var(--muted);
  --bs-breadcrumb-item-active-color: var(--muted);
}
.breadcrumb a { color: var(--ink); }
.page-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.page-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .page-img { aspect-ratio: auto; height: clamp(360px, 42vw, 600px); } }
.topbar a[aria-current] { color: var(--ink); }
.topbar-vk { display: inline-flex; }

.list-rows { border-top: 1px solid var(--ink); }
.list-rows a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  padding-block: 28px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
}
.list-rows__num { color: var(--muted); }
.list-rows .icon { width: 28px; height: 28px; transition: transform .25s; }
.list-rows a:hover { color: var(--taupe); }
.list-rows a:hover .icon { transform: translate(4px, -4px); }

.section-dark { background: var(--taupe); color: var(--canvas); }
.section-dark .heading { color: var(--canvas); }
.section-dark .lead-text { color: rgba(244, 239, 232, .82); }
.section + .section-dark, .section-dark + .section { border-top: 0; }

.measure { max-width: 50ch; }
.price-rows { border-top: 1px solid var(--ink); }
.price-rows > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--ink);
  font-size: 20px;
  color: var(--ink);
}
.price-rows dt { font-weight: 400; }
.price-rows dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* характеристики товара: значения бывают длинными, им перенос нужен */
.price-rows--specs dd { white-space: normal; text-align: right; }

.feature .stat { font-size: var(--h); font-weight: 500; line-height: 1.1; letter-spacing: -.05em; color: var(--ink); margin: 32px 0 12px; }

.text-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); counter-reset: n; }
.text-list li { position: relative; padding: 20px 0 20px 48px; border-bottom: 1px solid var(--line); color: var(--ink); }
.text-list li::before { content: ""; position: absolute; left: 4px; top: 32px; width: 20px; height: 1px; background: var(--ink); }
.text-list--num li { counter-increment: n; }
.text-list--num li::before {
  content: counter(n, decimal-leading-zero);
  top: 26px; width: auto; height: auto; background: none;
  font-size: var(--label); font-weight: 500; letter-spacing: .1em; color: var(--muted);
}

.return-form { display: grid; gap: 48px; }
.return-form fieldset { margin: 0; }
.return-form legend { float: none; width: 100%; margin: 0 0 8px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.return-form .form-label { margin-bottom: 0; color: var(--muted); }
.return-form .form-check + .form-check { margin-top: 10px; }
.return-form .form-check-label { font-size: 18px; color: var(--ink); }

.feature .contact-value { display: block; margin: 40px 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
a.contact-value:hover { color: var(--taupe); }


.map { border-top: 1px solid var(--ink); }
.map__head { padding-block: var(--section-gap) clamp(32px, 4vw, 56px); }
.map__frame { height: clamp(360px, 45vw, 560px); border-block: 1px solid var(--ink); background: var(--stone); }
.map__frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.85) sepia(.12); }
.map + .section { border-top: 0; }
@media (max-width: 575.98px) { .price-rows dd { white-space: normal; } }

/* ---------- Category page ---------- */
.catalog-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--ink);
}
.form-select {
  --bs-border-color: var(--ink);
  width: auto;
  padding: 8px 32px 8px 0;
  border-width: 0 0 1px;
  border-radius: 0;
  background-color: transparent;
  background-position: right center;
  font-size: 18px;
  color: var(--ink);
}
.form-select:focus { border-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }

.filter__group { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.filter__title { margin-bottom: 16px; }
.filter .form-check + .form-check { margin-top: 10px; }
.filter .form-check-label { font-size: 18px; color: var(--ink); }
.filter .form-control { padding: 8px 0; }
.btn-link-ink {
  --bs-btn-color: var(--muted);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-padding-y: 8px;
}
.btn-inline {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-inline:hover { color: var(--taupe); }
.offcanvas-lg .filter-body { padding-top: 24px; }
@media (min-width: 992px) {
  .offcanvas-lg.offcanvas-start { position: sticky; top: calc(var(--header-h) + 24px); }
  .offcanvas-lg .filter-body { padding: 0; }
}

.pagination-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.pagination { --bs-pagination-border-radius: 0; gap: 8px; }
.page-link {
  --bs-pagination-color: var(--ink);
  --bs-pagination-bg: transparent;
  --bs-pagination-border-color: var(--line);
  --bs-pagination-hover-color: var(--canvas);
  --bs-pagination-hover-bg: var(--ink);
  --bs-pagination-hover-border-color: var(--ink);
  --bs-pagination-active-bg: var(--ink);
  --bs-pagination-active-border-color: var(--ink);
  --bs-pagination-active-color: var(--canvas);
  --bs-pagination-disabled-bg: transparent;
  --bs-pagination-disabled-border-color: var(--line);
  --bs-pagination-disabled-color: var(--muted);
  --bs-pagination-focus-bg: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  font-size: 18px;
}
@media (max-width: 575.98px) {
  .product-card__actions { flex-wrap: wrap; }
  .product-card__actions .btn-pill { flex: 1 0 100%; }
  .product-card__actions .btn-icon { width: 40px; height: 40px; }
}

/* ---------- Category menu ---------- */
.cat-menu__title { margin-bottom: 20px; color: var(--muted); }
.cat-menu ul { list-style: none; margin: 0; padding: 0; }
.cat-menu a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.cat-menu li:last-child a { border-bottom: 1px solid var(--line); }
.cat-menu a:hover { color: var(--taupe); }
.cat-menu a[aria-current] { font-weight: 500; text-decoration: underline; text-underline-offset: 6px; }
.cat-menu__count { font-size: var(--label); color: var(--muted); }
@media (max-width: 991.98px) {
  .cat-menu__title { display: none; }
  .cat-menu ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .cat-menu ul::-webkit-scrollbar { display: none; }
  .cat-menu a {
    padding: 10px 20px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: .083em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .cat-menu li:last-child a { border-bottom: 1px solid var(--ink); }
  .cat-menu a[aria-current] { background: var(--ink); color: var(--canvas); text-decoration: none; }
  .cat-menu__count { display: none; }
}

/* ---------- Product page ---------- */
.product-gallery { position: relative; background: var(--stone); }
/* фон у самой ссылки: transform слайдов Swiper изолирует mix-blend-mode от фона .product-gallery */
.product-gallery__link { display: block; aspect-ratio: 4 / 3; background: var(--stone); }
/* contain: вертикальные фото и постеры с текстом не обрезаются */
.product-gallery img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-gallery__nav { position: absolute; right: 16px; bottom: 16px; z-index: 2; }
.product-gallery__nav .btn { background: var(--canvas); }
.product-thumbs { margin-top: 12px; }
.product-thumbs .swiper-slide { cursor: pointer; background: var(--stone); aspect-ratio: 1; }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: .55; transition: opacity .2s; }
.product-thumbs .swiper-slide-thumb-active img { opacity: 1; box-shadow: inset 0 0 0 1px var(--ink); }

.product-stock { color: var(--taupe); }
.product-price { font-size: var(--h-sm); font-weight: 500; letter-spacing: -.03em; color: var(--ink); margin: 24px 0 32px; }
.price-old { margin-left: .35em; font-size: .6em; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.product-block { padding-block: 24px; border-top: 1px solid var(--line); }
.btn-group-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-check:checked + .btn-pill { background: var(--ink); color: var(--canvas); }
.btn-check:focus-visible + .btn-pill { box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }

.product-buy { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.qty { display: flex; align-items: center; border: 1px solid var(--ink); border-radius: 999px; }
.qty__btn { width: 44px; height: 48px; border: 0; background: none; color: var(--ink); font-size: 20px; line-height: 1; }
.qty__btn:hover { color: var(--taupe); }
.qty__input { width: 40px; border: 0; background: none; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--ink); }
.qty__input:focus { outline: 0; }
.product-buy .btn-ink { min-width: 160px; }

.product-notes { list-style: none; margin: 40px 0 0; padding: 0; }
.product-notes li { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); }
.product-notes .icon { color: var(--ink); margin-top: 3px; }
@media (min-width: 992px) { .product-info { position: sticky; top: calc(var(--header-h) + 24px); } }
@media (max-width: 575.98px) {
  .product-buy .btn-ink { order: 3; flex: 1 0 100%; }
}

/* ---------- WYSIWYG content ---------- */
.content-text > :first-child { margin-top: 0; }
.content-text > :last-child { margin-bottom: 0; }
.content-text h2 { font-size: var(--h-sm); font-weight: 500; line-height: 1.2; letter-spacing: -.04em; margin: 56px 0 20px; }
.content-text h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; margin: 40px 0 12px; }
.content-text p { margin: 0 0 20px; }
.content-text a { text-decoration: underline; text-underline-offset: 4px; }
.content-text ul, .content-text ol { margin: 0 0 20px; padding-left: 24px; }
.content-text li { margin-bottom: 8px; }
.content-text img { max-width: 100%; height: auto; margin: 32px 0; }
.content-text blockquote { margin: 32px 0; padding-left: 24px; border-left: 1px solid var(--ink); color: var(--ink); }
.content-text table { width: 100%; margin: 32px 0; border-collapse: collapse; }
.content-text th, .content-text td { padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content-text th { font-weight: 500; color: var(--ink); }
.content-text hr { margin: 48px 0; border: 0; border-top: 1px solid var(--ink); opacity: 1; }


/* ---------- Cart ---------- */
.icon-lg { width: 40px; height: 40px; }

.product-card__form { flex: 1; min-width: 0; }
.qty-sm .qty__btn { width: 34px; height: 38px; font-size: 18px; }
.qty-sm .qty__input { width: 32px; font-size: 16px; }

.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 20px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.cart-item__img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--stone); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-item__name { color: var(--ink); font-size: 16px; line-height: 1.35; }
.cart-item__name:hover { color: var(--taupe); }
.cart-item__cost { font-size: 20px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-item__remove .btn-icon { color: var(--muted); }
.cart-item__remove .btn-icon:hover { color: var(--ink); }

.cart-total { padding: 28px; background: var(--stone); }
.cart-total .price-rows { border-top: 0; }
.cart-total .price-rows > div { padding-block: 16px; font-size: 18px; }
.cart-total .price-rows > div:last-child { border-bottom: 0; }
.cart-total__sum { font-size: 20px; font-weight: 500; }
.cart-total__sum dd { font-size: var(--h-sm); letter-spacing: -.03em; }

.cart-empty { padding: 64px 0; text-align: center; color: var(--muted); }
.cart-empty .icon { color: var(--ink); }
.cart-empty .lead-text { margin-inline: auto; max-width: 42ch; }

@media (max-width: 767.98px) {
  .cart-item { grid-template-columns: 72px minmax(0, 1fr) auto; row-gap: 16px; }
  .cart-item__qty { grid-column: 2; justify-self: start; }
  .cart-item__cost { grid-column: 3; text-align: right; }
  .cart-item__remove { grid-column: 3; grid-row: 1; justify-self: end; }
}

@media (max-width: 575.98px) {
  .product-card__actions .product-card__form { flex: 1 0 100%; }
}

/* ---------- Checkout ---------- */
.order-block { padding: 56px 0 40px; border-top: 1px solid var(--ink); }
.order-block:first-child { padding-top: 0; border-top: 0; }
.order-block__title { margin-bottom: 28px; color: var(--muted); }
.form-label.label { margin-bottom: 8px; color: var(--muted); }

.choice { padding: 18px 0 18px 34px; margin: 0; border-bottom: 1px solid var(--line); }
.choice .form-check-input { width: 20px; height: 20px; margin-top: 4px; margin-left: -34px; }
.choice .form-check-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 20px;
  font-size: 18px;
  color: var(--ink);
  cursor: pointer;
}
.choice__price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.choice__desc { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; color: var(--muted); }
.choice:last-of-type { border-bottom: 0; }
.order-block:last-child { padding-bottom: 0; }
.invalid-feedback { font-size: 13px; }

/* ответ FormIt под кнопкой формы; пустой не занимает места */
.form-status { margin: 0; font-size: 14px; color: var(--ink); }
.form-status:empty { display: none; }
.form-status--error { color: var(--bs-form-invalid-color); }

@media (min-width: 992px) { .cart-total { position: sticky; top: calc(var(--header-h) + 24px); } }

.pickup-point { padding: 28px; background: var(--stone); }
.pickup-point__name { font-size: 20px; font-weight: 500; color: var(--ink); }
.pickup-point__rows { margin: 0; }
.pickup-point__rows > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 12px; border-top: 1px solid var(--line); }
.pickup-point__rows dt { color: var(--muted); }
.pickup-point__rows dd { margin: 0; color: var(--ink); }
.pickup-point__rows a { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Account ---------- */
.account-nav__name { font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.account-nav__mail { margin-bottom: 24px; word-break: break-all; }
.account-nav ul { list-style: none; margin: 0; padding: 0; }
.account-nav a { display: block; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); }
.account-nav li:last-child a { border-bottom: 1px solid var(--line); }
.account-nav a:hover { color: var(--taupe); }
.account-nav a[aria-current="page"] { font-weight: 500; text-decoration: underline; text-underline-offset: 6px; }

.account-panel { padding-top: 8px; }
.account-note { padding: 14px 18px; margin-bottom: 24px; font-size: 16px; }
.account-note--ok { background: var(--stone); color: var(--ink); }
.account-note--err { background: var(--sand); color: var(--ink); }
.account-badge { font-size: var(--label); letter-spacing: .1em; color: var(--taupe); }

.order-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.order-row { display: grid; gap: 8px 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.order-row__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.order-row__num { font-size: 20px; font-weight: 500; color: var(--ink); }
a.order-row__num:hover { color: var(--taupe); }
.order-row__status { color: var(--taupe); }
.order-row__cost { font-size: 20px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.order-row__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

@media (min-width: 768px) {
  .order-row { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
  .order-row__head { grid-column: 1; }
  .order-row > .label { grid-column: 1; }
  .order-row__cost { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .order-row__actions { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }
}

.search-field--page { border-bottom: 1px solid var(--ink); padding-bottom: 12px; }

/* ---------- Compare ---------- */
.compare-scroll { overflow-x: auto; }
.compare-table { border-collapse: collapse; border-top: 1px solid var(--ink); }
.compare-table th, .compare-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink); }
.compare-table th { width: 180px; font-size: var(--label); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.compare-table tbody td { font-size: 16px; }
.compare-card { position: relative; display: flex; flex-direction: column; gap: 10px; width: 256px; }
.compare-card__img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--stone); }
.compare-card__img img { width: 100%; height: 100%; object-fit: cover; }
.compare-card__name {
  display: -webkit-box;
  min-height: calc(1.35em * 3);
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink);
}
.compare-card__name:hover { color: var(--taupe); }
.compare-card__price { font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.compare-card__remove { position: absolute; top: 8px; right: 8px; z-index: 1; width: 36px; height: 36px; background: var(--canvas); }
@media (max-width: 767.98px) { .compare-table th { width: 110px; } .compare-card { width: 204px; } }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; gap: 12px; height: 100%; color: var(--ink); }
.news-card:hover { color: var(--taupe); }
.news-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 8px; background: var(--stone); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__title { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.news-card__text { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; color: var(--muted); }

/* ---------- Services (карточки — .news-card) ---------- */
.service-cover { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Палитра декоров ---------- */
.decor { display: block; color: inherit; }
.decor__img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.decor__code { display: block; margin-top: 12px; color: var(--ink); }
.decor__name { display: block; font-size: 14px; color: var(--muted); }
.decor:hover .decor__img { opacity: .88; }
.decors-note { margin: 40px 0 0; max-width: 640px; font-size: 14px; color: var(--muted); }


/* ролик о материале */
.video-card { width: 100%; max-width: 340px; aspect-ratio: 9 / 16; background: var(--stone); display: block; margin-inline: auto; }


/* ---------- Уведомление о cookie ---------- */
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1040; display: none; align-items: center; flex-wrap: wrap; gap: 16px; justify-content: space-between; max-width: 760px; margin-inline: auto; padding: 16px 20px; background: var(--ink); color: #fff; }
.cookie-note.is-visible { display: flex; }
.cookie-note p { flex: 1 1 320px; margin: 0; font-size: 14px; line-height: 1.5; }
.cookie-note a { color: #fff; text-decoration: underline; }
.cookie-note__btn { flex: 0 0 auto; padding: 10px 24px; border: 0; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }

/* ---------- SmartCaptcha ---------- */
.smart-captcha-box { display: grid; gap: 8px; }
.smart-captcha-box .form-status { display: block; }
.smart-captcha-box .form-status:empty { display: none; }