:root {
  --cm-bg: #ffffff;
  --cm-soft: #f4f4f4;
  --cm-line: #e8e8e8;
  --cm-text: #474747;
  --cm-muted: #8a8a8a;
  --cm-ink: #3a3a3a;
  --cm-radius: 28px;
  --cm-header-h: 72px;
  --cm-shell: 1920px;
  --cm-menu-inset: 32px;
  --cm-promo: #9f625a;
  --cm-font: "Montserrat", Arial, sans-serif;
  /* Global «новинка» badge — design picker / burger / catalog */
  --cm-badge-new-bg: #fde8e2;
  --cm-badge-new-fg: #c45d3a;
  --cm-badge-new-size: 11px;
  --cm-badge-new-pad-y: 2px;
  --cm-badge-new-pad-x: 8px;
}

/* Canonical new-badge look — use .cm-badge-new everywhere */
.cm-badge-new,
.cm-design-picker-badge,
.cm-design-picker-item-badge,
.cm-design-accordion__card-badge,
.cm-mnav__product-badge {
  align-items: center;
  justify-content: center;
  flex: none;
  margin: 0;
  padding: var(--cm-badge-new-pad-y) var(--cm-badge-new-pad-x);
  border-radius: 999px;
  background: var(--cm-badge-new-bg);
  color: var(--cm-badge-new-fg);
  font-size: var(--cm-badge-new-size);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: lowercase;
  white-space: nowrap;
  clip-path: none;
  box-shadow: none;
  min-height: 0;
}

.cm-badge-new,
.cm-design-picker-badge,
.cm-design-picker-item-badge,
.cm-mnav__product-badge {
  display: inline-flex;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

body.cm-has-site-header {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--cm-font);
  color: var(--cm-text);
  background: var(--cm-bg);
}

/* PixlPark storefront: не ломаем их layout flex-колонкой на body */
body.cm-pp-storefront.cm-has-site-header {
  display: block;
  min-height: 0;
}

/* PixlPark html часто 10px — rem в карточках/хроме становится мелким */
html:has(body.cm-pp-storefront) {
  font-size: 16px !important;
}

body.cm-pp-storefront .container:has(.cm-catalog-embed),
body.cm-pp-storefront .container:has(.cm-catalog) {
  max-width: none !important;
  width: 100% !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
  box-sizing: border-box !important;
}

body.cm-pp-storefront .cm-catalog-container {
  width: min(1680px, calc(100% - 64px)) !important;
  margin: 0 auto !important;
}

.cm-page-with-header {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

body.cm-has-site-header .cm-lk-page {
  min-height: 0;
}

body.cm-has-site-header .cm-lk-sidebar,
body.cm-has-site-header .cm-checkout-sidebar,
body.cm-has-site-header .cm-cart-sidebar {
  top: calc(var(--cm-header-h) + 12px);
}

.cm-top,
.cm-top *,
.cm-foot,
.cm-foot *,
.cm-account,
.cm-account * {
  box-sizing: border-box;
}

.cm-top,
.cm-foot {
  font-family: var(--cm-font);
}

.cm-top a,
.cm-foot a {
  color: inherit;
  text-decoration: none;
}

.cm-top a.cm-top__promo,
.cm-top a.cm-top__promo:hover,
.cm-top a.cm-top__promo:visited {
  color: #fff;
}

/* ——— Header ——— */

.cm-top {
  display: contents;
}

.cm-top__promo-wrap {
  width: 100%;
  max-width: var(--cm-shell);
  margin: 0 auto;
  padding: 10px 32px 0;
}

.cm-top__stick {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.cm-top__inner {
  position: relative;
  z-index: 3;
  background: var(--cm-bg);
}

/* LP v52 — hide entire sticky surface, not only the inner bar */
.cm-top.is-hidden .cm-top__stick {
  transform: translateY(-100%);
  pointer-events: none;
}

.cm-top.is-hidden .cm-top__inner {
  transform: none;
}

@media (min-width: 821px) {
  .cm-top__stick:hover .cm-top__inner,
  .cm-top__stick:focus-within .cm-top__inner {
    transform: none;
    pointer-events: auto;
  }

  .cm-top.is-hidden .cm-top__stick:hover,
  .cm-top.is-hidden .cm-top__stick:focus-within {
    transform: none;
    pointer-events: auto;
  }
}

.cm-top__wrap {
  max-width: var(--cm-shell);
  margin: 0 auto;
  padding: 0 32px;
}

.cm-top__promo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 8px 28px;
  border-radius: 999px;
  color: #fff;
  font-size: clamp(11px, 2.5vw, 14px);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  text-transform: lowercase;
  /* Match homepage (landing-preview) terracotta gradient */
  background: linear-gradient(100deg, #9f625a, #d6a293 52%, #ad7062);
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
}

.cm-top__promo::before {
  display: none;
}

/* Rotating promo messages (landing-preview) */
.cm-top__promo-track {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 1.2em;
}

.cm-top__promo-item {
  grid-area: 1 / 1;
  width: 100%;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.85s ease, transform 0.85s ease, visibility 0.85s;
  pointer-events: none;
}

.cm-top__promo-item.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .cm-top__promo-item {
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
}

.cm-top__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--cm-header-h);
  padding: 0 var(--cm-menu-inset);
}

.cm-top__left {
  display: flex;
  align-items: center;
  gap: 48px;
  min-width: 0;
  height: 100%;
}

.cm-top__brand {
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: lowercase;
  color: var(--cm-text);
  flex: 0 0 auto;
}

.cm-top__nav,
.cm-top__user {
  display: flex;
  align-items: center;
  height: 100%;
}

.cm-top__nav {
  gap: 26px;
}

.cm-top__user {
  gap: 8px;
}

.cm-top__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--cm-header-h);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: lowercase;
  color: var(--cm-text);
  text-decoration: none;
}

.cm-top__nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 0;
  height: 2px;
  background: var(--cm-promo);
  transform: translateX(-50%);
  transition: width 0.3s ease-out;
}

.cm-top__nav a:hover::after,
.cm-top__nav a.is-current::after {
  width: 100%;
}

.cm-top__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--cm-text);
}

.cm-top__cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #18181b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}
.cm-top__cart-badge[hidden] {
  display: none !important;
}

.cm-top__icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke-width: 1.55;
  stroke-linejoin: round;
}

.cm-top__icon:hover,
.cm-top__icon.is-current {
  color: #000;
}

.cm-top__icon:hover svg :not(.icon-stroke),
.cm-top__icon.is-current svg :not(.icon-stroke) {
  fill: currentColor;
}

.cm-top__account {
  position: relative;
}

.cm-top__account.is-open .cm-top__icon {
  color: #000;
}

.cm-top__account.is-open .cm-top__icon svg :not(.icon-stroke) {
  fill: #000;
}

/* Попап ЛК на витрине/Тильде отключён — иконка сразу ведёт в PixlPark */
.cm-account {
  display: none !important;
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  z-index: 120;
  width: 320px;
  padding: 22px 22px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  color: var(--cm-text);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.cm-top__account.is-open .cm-account {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.cm-account__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--cm-line);
}

.cm-account__avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ece6f3;
  color: var(--cm-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.cm-account__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cm-account__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.cm-account__email {
  font-size: 13px;
  font-weight: 500;
  color: var(--cm-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-account a,
.cm-account__out {
  display: block;
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-transform: lowercase;
  color: var(--cm-text);
  cursor: pointer;
}

.cm-account a:hover,
.cm-account__out:hover {
  opacity: 0.55;
}

.cm-account__out {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--cm-line);
  font-weight: 700;
}

.cm-top__burger {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 8px 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--cm-text);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.cm-top__burger:focus,
.cm-top__burger:focus-visible,
.cm-top__burger:active,
.cm-top__burger:hover {
  color: var(--cm-text);
  outline: none;
  background: transparent;
}

.cm-top__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--cm-text);
}

.cm-top__overlay {
  display: none;
}

.cm-top__mobile {
  display: none;
}

.cm-top__close {
  display: none;
}

.cm-top__mobile-nav {
  display: flex;
  flex-direction: column;
}

.cm-top__mobile-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cm-top__mobile-group--user {
  margin-top: 48px;
}

.cm-top__mobile-nav a {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--cm-text);
}

body.cm-menu-open {
  overflow: hidden;
}

/* ——— Footer ——— */

.cm-foot {
  padding: 24px 32px 20px;
  background: var(--cm-bg);
}

.cm-foot__rule {
  display: none;
}

.cm-foot__card {
  position: relative;
  max-width: var(--cm-shell);
  margin: 0 auto;
  padding: 56px 48px 32px;
  background: var(--cm-soft);
  color: var(--cm-text);
  border-radius: var(--cm-radius);
  overflow: hidden;
}

.cm-foot__grid {
  display: grid;
  /* 3 cols while community/blog is hidden (was 1fr 1fr 1fr 1.35fr) */
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 40px 56px;
  align-items: stretch;
}

.cm-foot__pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Temporarily hide «сообщество» / blog until ready */
.cm-foot__pane--community,
.cm-foot__pane:has(> .cm-foot__heading + .cm-foot__col a[href*="blog"]) {
  display: none !important;
}

.cm-foot__heading,
.cm-foot__news-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: var(--cm-text);
  line-height: 1.25;
}

.cm-foot__heading {
  margin-bottom: 14px;
}

.cm-foot__col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cm-foot__col a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: var(--cm-text);
  width: fit-content;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

.cm-foot__col a:hover {
  text-decoration: underline;
}

.cm-foot__news-lead {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--cm-ink);
  max-width: 42ch;
}

.cm-foot__form,
.cm-foot__thanks {
  min-height: 92px;
}

.cm-foot__thanks {
  display: none;
}

.cm-foot__news.is-done .cm-foot__form {
  display: none;
}

.cm-foot__news.is-done .cm-foot__thanks {
  display: block;
}

.cm-foot__row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.cm-foot__email {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--cm-text);
  border-radius: 999px;
  background: transparent;
  color: var(--cm-text);
  font-size: 14px;
  font-weight: 500;
  outline: none;
}

.cm-foot__email::placeholder {
  color: #9a9a9a;
  text-transform: lowercase;
}

.cm-foot__email:focus {
  border-color: #2f2f2f;
}

.cm-foot__go {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cm-text);
  border-radius: 50%;
  background: transparent;
  color: var(--cm-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cm-foot__go:hover {
  background: var(--cm-text);
  color: #fff;
}

.cm-foot__agree {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--cm-muted);
  cursor: pointer;
}

.cm-foot__agree input {
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--cm-text);
}

.cm-foot__agree-link {
  color: var(--cm-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cm-foot__agree-link:hover {
  opacity: 0.7;
}

.cm-foot__meta,
.cm-foot__brand {
  margin-top: auto;
  padding-top: 56px;
}

.cm-foot__socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

.cm-foot__social-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
}

.cm-foot__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--cm-text);
  transition: opacity 0.15s ease;
}

.cm-foot__social:hover {
  opacity: 0.55;
}

.cm-foot__social svg {
  width: 36px;
  height: 36px;
  display: block;
}

.cm-foot__social-star {
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  color: var(--cm-text);
  margin-top: 2px;
}

.cm-foot__meta-note {
  margin: 10px 0 0;
  max-width: 38ch;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--cm-muted);
}

.cm-foot__legal {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: var(--cm-ink);
  white-space: nowrap;
}

.cm-foot__legal a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cm-foot__brand {
  text-align: center;
}

.cm-foot__logo {
  display: block;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: lowercase;
  color: var(--cm-text);
}

.cm-foot__tagline {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--cm-ink);
}

.cm-foot__nav {
  display: contents;
}

.cm-foot__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
}

.cm-foot__go-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.cm-foot__grid,
.cm-foot__grid > * {
  min-width: 0;
}

/* === landing-preview parity: footer + mobile menu === */

.cm-top__burger svg {
  display: block;
  width: 24px;
  height: 20px;
  overflow: visible;
  color: var(--cm-text);
  fill: var(--cm-text);
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

.cm-top__burger svg rect {
  transition: opacity 0.7s cubic-bezier(0.76, 0, 0.24, 1);
  fill: var(--cm-text) !important;
  color: var(--cm-text);
}

body.cm-menu-open .cm-top__burger svg {
  transform: rotate(180deg);
}

body.cm-menu-open .cm-top__burger svg rect:nth-child(2),
body.cm-menu-open .cm-top__burger svg rect:nth-child(3) {
  opacity: 0;
}

.cm-mnav__tabs {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 0 0 20px;
}

.cm-mnav__tab {
  border: 0;
  background: none;
  color: #a3a3a3;
  font-size: clamp(14px, 2.6vw, 17px);
  font-weight: 600;
  line-height: 1.4;
  font-family: inherit;
  cursor: pointer;
  padding: 0 0 6px;
  position: relative;
}

.cm-mnav__tab.is-active {
  color: #414141;
}

.cm-mnav__tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: #b27060;
  transition: width 0.3s, left 0.3s;
}

.cm-mnav__tab.is-active::after {
  left: 0;
  width: 100%;
}

.cm-mnav__products {
  display: grid;
  gap: 10px;
}

.cm-mnav__products[hidden] {
  display: none !important;
}

.cm-mnav__product {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 10px 12px !important;
  background: #fff;
  border: 0 !important;
  border-radius: 13px;
  text-decoration: none;
  color: #404040;
  min-height: 65px;
  box-sizing: border-box;
}

.cm-mnav__product img {
  width: 46px;
  height: 50px;
  object-fit: contain;
  flex: none;
  border-radius: 5px;
}

.cm-mnav__product-text,
.cm-mnav__product > span:not(.cm-mnav__product-badge) {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.cm-mnav__product strong {
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 600;
}

.cm-mnav__product small {
  font-size: clamp(12px, 2.1vw, 14px);
  color: #777;
}

.cm-mnav__product .cm-badge-new,
.cm-mnav__product-badge {
  margin-left: auto;
}

/* Match homepage #catalog .catalog-heading-button on mobile */
.cm-top__mobile-nav a.cm-mnav__cta,
.cm-mnav__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: none;
  margin: 18px auto 20px !important;
  padding: 0 16px !important;
  min-height: 36px !important;
  height: auto !important;
  border: 1px solid #414141 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #414141 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  text-align: center;
  box-sizing: border-box;
  line-height: 1.2 !important;
  box-shadow: none !important;
  transform: none !important;
}

.cm-mnav__cta:hover {
  background: #f5f5f5 !important;
  opacity: 1 !important;
  transform: none !important;
}

.cm-mnav__bottom {
  border-top: 1px solid #dedede;
  display: flex;
  flex-direction: column;
  padding-top: 10px;
}

.cm-mnav__bottom a {
  padding: 10px 2px !important;
  border: 0 !important;
  font-size: clamp(15px, 2.7vw, 18px) !important;
  font-weight: 600 !important;
  color: #555;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .cm-top__promo-wrap {
    padding: 10px 18px 0;
  }

  .cm-top__wrap {
    padding: 0 18px;
  }

  .cm-top__bar {
    padding: 0 16px;
  }

  .cm-top__nav a {
    font-size: 16px;
  }

  .cm-top__left {
    gap: 32px;
  }

  .cm-top__nav {
    gap: 18px;
  }

  .cm-top__brand {
    font-size: 20px;
  }

  .cm-foot__card {
    overflow: hidden;
    padding: 32px 18px 24px !important;
  }

  .cm-foot__news-title {
    font-size: 14px !important;
  }

  .cm-foot__news-lead {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  .cm-foot__social {
    width: 44px !important;
    height: 44px !important;
  }

  .cm-foot__social svg {
    width: 32px !important;
    height: 32px !important;
  }

  .cm-foot__logo {
    font-size: clamp(26px, 7vw, 34px) !important;
    white-space: nowrap !important;
  }

  .cm-foot__tagline {
    font-size: clamp(13px, 3.2vw, 16px) !important;
    white-space: nowrap !important;
  }
}

/*
 * ≤700 — same stacked layout as narrow mobile:
 * news → sections row → brand → socials → legal → note
 */
@media (max-width: 700px) {
  .cm-foot__pane:nth-child(1),
  .cm-foot__pane:nth-child(4),
  .cm-foot__meta {
    display: contents !important;
  }

  .cm-foot__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas:
      "news news"
      "co sup"
      "brand brand"
      "socials socials"
      "legal legal"
      "note note" !important;
    gap: 22px 14px !important;
    align-items: start !important;
  }

  .cm-foot__nav {
    display: flex !important;
    flex-direction: column !important;
    grid-area: co !important;
    min-width: 0;
  }

  .cm-foot__pane:nth-child(3) {
    grid-area: sup !important;
  }

  .cm-foot__news {
    grid-area: news !important;
    width: 100% !important;
    max-width: none !important;
  }

  .cm-foot__brand {
    grid-area: brand !important;
    position: static !important;
    width: max-content;
    place-self: center !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  .cm-foot__socials {
    grid-area: socials !important;
    width: max-content;
    place-self: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 2px 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .cm-foot__legal {
    grid-area: legal !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    font-size: 11px !important;
    gap: 8px 14px !important;
    margin: 6px 0 0 !important;
  }

  .cm-foot__legal a {
    font-size: 11px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
  }

  .cm-foot__meta-note {
    grid-area: note !important;
    justify-self: center;
    width: 100% !important;
    max-width: 42ch !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-size: 11px !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}

/*
 * 701–1100 — news on top, sections in a row,
 * socials left edge + logo right edge,
 * legal + note left-aligned; legal font = subsection links.
 */
@media (min-width: 701px) and (max-width: 1100px) {
  .cm-foot__card {
    position: relative;
    overflow: hidden;
    padding: 34px clamp(18px, 2.6vw, 36px) 28px !important;
  }

  .cm-foot__pane:nth-child(1),
  .cm-foot__pane:nth-child(4),
  .cm-foot__meta {
    display: contents !important;
  }

  .cm-foot__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas:
      "news news"
      "co sup"
      "socials brand"
      "legal legal"
      "note note" !important;
    gap: 26px clamp(14px, 2.5vw, 28px) !important;
    align-items: start !important;
  }

  .cm-foot__news {
    grid-area: news !important;
    width: 100% !important;
    max-width: none !important;
  }

  .cm-foot__nav {
    display: flex !important;
    flex-direction: column !important;
    grid-area: co !important;
    min-width: 0;
  }

  .cm-foot__pane:nth-child(3) {
    grid-area: sup !important;
  }

  .cm-foot__socials {
    grid-area: socials !important;
    width: max-content;
    place-self: start start !important;
    justify-self: start !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 2px 10px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .cm-foot__brand {
    grid-area: brand !important;
    position: static !important;
    width: max-content;
    place-self: start end !important;
    justify-self: end !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
  }

  .cm-foot__legal {
    grid-area: legal !important;
    justify-self: start !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    font-size: 15px !important;
    gap: 8px 18px !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .cm-foot__legal a {
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
  }

  .cm-foot__meta-note {
    grid-area: note !important;
    justify-self: start !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-size: 11px !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 820px) {
  /* LP v39/v48 — centered brand, compact bar */
  .cm-top__promo-wrap {
    padding: 6px 16px 0;
  }

  .cm-top__wrap {
    padding: 0 16px;
  }

  .cm-top__bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0;
  }

  .cm-top__nav {
    display: none !important;
  }

  .cm-top__nav a {
    height: 58px;
  }

  .cm-top__left {
    display: contents;
  }

  .cm-top__brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(18px, 4.8vw, 22px);
    letter-spacing: 0.01em;
    white-space: nowrap;
    z-index: 1;
  }

  .cm-top__user {
    gap: 2px;
    margin-left: auto;
    z-index: 2;
    position: relative;
  }

  .cm-top__icon {
    width: 40px;
    height: 40px;
  }

  .cm-top__icon svg,
  .cm-top__icon .icon {
    width: 22px;
    height: 22px;
  }

  .cm-top__cart-badge {
    top: 3px;
    right: 1px;
    min-width: 15px;
    height: 15px;
    font-size: 9px;
    line-height: 15px;
  }

  .cm-top__promo {
    min-height: 30px;
    padding: 6px 16px;
    font-size: clamp(10px, 2.5vw, 13px);
  }

  .cm-top__burger {
    display: flex !important;
    position: relative;
    order: 0;
    z-index: 113;
    flex: none;
    width: 40px !important;
    height: 40px !important;
    gap: 0;
    padding: 8px 6px !important;
    align-items: center;
    justify-content: center;
  }

  .cm-top__burger svg {
    width: 22px !important;
    height: 16px !important;
  }

  .cm-top__overlay {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.08) !important;
    z-index: 1 !important;
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none !important;
    /* Close in sync with panel collapse (same duration, no lag) */
    transition: opacity 0.48s cubic-bezier(0.76, 0, 0.24, 1), visibility linear 0.48s !important;
  }

  body.cm-menu-open .cm-top__overlay {
    visibility: visible;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: opacity 0.48s cubic-bezier(0.76, 0, 0.24, 1), visibility !important;
  }

  .cm-top__close {
    display: none !important;
  }

  .cm-top__mobile {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: min(84dvh, 760px) !important;
    overflow: auto !important;
    background: #f8f8f8 !important;
    border-radius: 0 0 15px 15px !important;
    box-shadow: 0 14px 25px -22px rgba(0, 0, 0, 0.28) !important;
    z-index: 2 !important;
    padding: 8px 12px 16px !important;
    clip-path: inset(0 0 100% round 0 0 15px 15px);
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-7px) !important;
    /* Collapse together with overlay + content (no delay on close) */
    transition:
      clip-path 0.48s cubic-bezier(0.76, 0, 0.24, 1),
      transform 0.48s cubic-bezier(0.76, 0, 0.24, 1),
      opacity 0.4s cubic-bezier(0.76, 0, 0.24, 1),
      visibility linear 0.48s !important;
  }

  body.cm-menu-open .cm-top__mobile {
    clip-path: inset(0 round 0 0 15px 15px);
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    transition:
      clip-path 0.62s cubic-bezier(0.76, 0, 0.24, 1),
      transform 0.62s cubic-bezier(0.76, 0, 0.24, 1),
      opacity 0.48s,
      visibility !important;
  }

  .cm-top__mobile-nav {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 700px;
    margin: 0 auto !important;
    padding: 6px clamp(16px, 4vw, 30px) 20px !important;
    box-sizing: border-box;
  }

  .cm-mnav__tabs,
  .cm-mnav__products,
  .cm-mnav__cta,
  .cm-mnav__bottom {
    opacity: 0 !important;
    transform: translateY(-8px) !important;
    transition: opacity 0.28s, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  /* Close reverse stagger — finishes with panel (~0.48s) */
  .cm-mnav__bottom {
    transition-delay: 0s !important;
  }

  .cm-mnav__cta {
    transition-delay: 0.04s !important;
  }

  .cm-mnav__products {
    transition-delay: 0.08s !important;
  }

  .cm-mnav__tabs {
    transition-delay: 0.12s !important;
  }

  body.cm-menu-open .cm-mnav__tabs,
  body.cm-menu-open .cm-mnav__products,
  body.cm-menu-open .cm-mnav__cta,
  body.cm-menu-open .cm-mnav__bottom {
    opacity: 1 !important;
    transform: none !important;
  }

  body.cm-menu-open .cm-mnav__tabs {
    transition-delay: 0.04s !important;
  }

  body.cm-menu-open .cm-mnav__products {
    transition-delay: 0.08s !important;
  }

  body.cm-menu-open .cm-mnav__cta {
    transition-delay: 0.12s !important;
  }

  body.cm-menu-open .cm-mnav__bottom {
    transition-delay: 0.16s !important;
  }

  .cm-mnav__tab {
    color: #a3a3a3 !important;
    font-size: clamp(14px, 2.6vw, 17px) !important;
    font-weight: 600 !important;
  }

  .cm-mnav__tab.is-active {
    color: #414141 !important;
  }

  .cm-mnav__products {
    gap: 12px !important;
  }

  .cm-mnav__product {
    min-height: 86px !important;
    padding: 13px 14px !important;
    gap: 15px !important;
    border-radius: 14px !important;
  }

  .cm-mnav__product img {
    width: 56px !important;
    height: 61px !important;
    object-fit: contain !important;
  }

  .cm-mnav__product strong {
    font-size: clamp(15px, 2.65vw, 17px) !important;
    font-weight: 600 !important;
  }

  .cm-mnav__product small {
    font-size: clamp(12px, 2.3vw, 14px) !important;
    font-weight: 400 !important;
    color: #777 !important;
    line-height: 1.35 !important;
  }

  .cm-mnav__tabs {
    margin: 0 0 16px !important;
  }

  .cm-top__mobile-nav a.cm-mnav__cta,
  .cm-mnav__cta {
    margin: 16px auto 18px !important;
    padding: 0 16px !important;
    min-height: 36px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
  }

  .cm-mnav__bottom {
    padding-top: 18px !important;
  }

  .cm-mnav__bottom a {
    padding-block: 13px !important;
  }

  /* v43 — seamless header → expanded menu surface */
  .cm-top__stick,
  .cm-top__inner,
  .cm-top__wrap,
  .cm-top__bar {
    background-color: #fff;
    transition: background-color 0.48s cubic-bezier(0.76, 0, 0.24, 1) !important;
  }

  body.cm-menu-open .cm-top__stick,
  body.cm-menu-open .cm-top__inner,
  body.cm-menu-open .cm-top__wrap,
  body.cm-menu-open .cm-top__bar {
    background-color: #f8f8f8 !important;
  }

  .cm-top__mobile {
    max-height: min(calc(100dvh - 78px), 900px) !important;
    min-height: 0 !important;
  }

  body.cm-menu-open .cm-top__mobile {
    min-height: min(78dvh, 760px) !important;
  }

  .cm-top__mobile-nav {
    max-width: none !important;
    width: 100% !important;
    padding: 4px clamp(10px, 2.35vw, 20px) 28px !important;
  }

  .cm-account {
    width: min(320px, calc(100vw - 24px));
    right: -8px;
  }
}

@media (max-width: 700px) {
  .cm-foot {
    padding: 14px 8px 12px;
  }

  .cm-foot__card {
    border-radius: 22px;
  }

  .cm-foot__grid {
    align-items: start !important;
  }

  .cm-foot__col a {
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .cm-foot__heading {
    font-size: clamp(12px, 3vw, 14px) !important;
  }

  .cm-foot__col a {
    font-size: clamp(11px, 2.9vw, 13px) !important;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .cm-top__mobile-nav {
    padding-inline: 10px !important;
  }

  .cm-mnav__product {
    min-height: 82px !important;
    padding: 12px 11px !important;
    gap: 12px !important;
  }

  .cm-mnav__product img {
    width: 51px !important;
    height: 57px !important;
  }
}

@media (min-width: 821px) {
  .cm-top__burger {
    display: none !important;
  }

  .cm-top__overlay,
  .cm-top__mobile {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cm-top__burger svg,
  .cm-top__burger svg rect,
  .cm-top__mobile,
  .cm-top__overlay,
  .cm-mnav__tabs,
  .cm-mnav__products,
  .cm-mnav__cta,
  .cm-mnav__bottom {
    transition-duration: 0.01ms !important;
  }
}

/* embed=1 — карточка внутри iframe на chapterme.ru (Тильда), без двойного chrome */
html.cm-embed .cm-top,
html.cm-embed footer.cm-foot,
body.cm-embed .cm-top,
body.cm-embed footer.cm-foot {
  display: none !important;
}

html.cm-embed,
body.cm-embed {
  background: #fff;
  /* только скролл страницы Тильды — без второй полосы внутри iframe */
  overflow: hidden !important;
  height: auto !important;
  max-height: none !important;
  overscroll-behavior: none;
}

html.cm-embed::-webkit-scrollbar,
body.cm-embed::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

body.cm-embed.cm-has-site-header,
body.cm-embed.cm-product-page {
  padding-top: 0 !important;
}

body.cm-embed .cm-product {
  padding-top: 16px;
}

body.cm-embed .cm-page,
body.cm-embed main {
  overflow: visible !important;
}
