:root {
  --bg: #f8f4ef;
  --surface: #ffffff;
  --surface-alt: #f6eef5;
  --text: #231f31;
  --muted: #6c6477;
  --line: rgba(35, 31, 49, 0.1);
  --accent: #8f2b83;
  --accent-dark: #8f2b83;
  --accent-soft: #f4d7ee;
  --navy: #21283c;
  --shadow: 0 18px 50px rgba(33, 40, 60, 0.08);
  --radius: 16px;
  --radius-sm: 16px;
  --container: min(1140px, calc(100vw - 32px));
}

.seo-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat/Montserrat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat/Montserrat-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat/Montserrat-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat/Montserrat-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat/Montserrat-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  /* offset для sticky шапки */
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(180deg, #fcfbfd 0%, #f6f1f8 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img,
video,
picture,
canvas.media-video-shell__canvas {
  max-width: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-drag: none;
}

/* Защита медиа-зон: ПКМ / long-press / drag */
.media-video-shell,
.media-video-shell__shield,
.media-video-shell__canvas,
.featured-card__media,
.featured-card__slide,
.product-gallery__main,
.product-gallery__media,
.product-gallery__thumbs,
.thumb,
.banner-slide,
.promo-banner-card,
.sale-card__media,
.about-card__visual,
.cart-item__media,
.media-lightbox__stage {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.media-protect-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.container {
  width: 100%;
  max-width: none;
  padding: 0 16px;
  margin: 0 auto;
}

.section {
  padding: 36px 0;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  border-bottom: 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
}

.topbar__row,
.header__row,
.footer__grid,
.about__grid,
.hero__grid,
.promo__grid,
.product-hero,
.product-layout,
.info-columns,
.size-guide {
  display: grid;
  gap: 24px;
}

.topbar__row {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 33px;
  font-size: 12px;
  color: inherit;
}

.topbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.topbar__row p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.topbar__highlight {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #273145;
  font-weight: 600;
  white-space: nowrap;
}

.topbar__links a {
  opacity: 0.92;
}

.topbar-iconlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-iconlink svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.partner-bar {
  display: block;
  width: 100%;
  background: #8f2b83;
  color: rgba(255, 255, 255, 0.88);
}

.partner-bar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 33px;
  font-size: 12px;
}

.partner-bar p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: inherit;
}

.partner-bar__lead--short {
  display: none;
}

.partner-bar__phone {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #273145;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.partner-bar__phone:hover {
  opacity: 0.92;
}

@media (max-width: 1400px) {
  .topbar__row,
  .partner-bar__inner,
  .partner-bar p,
  .partner-bar__phone,
  .topbar__highlight {
    font-size: 11px;
  }

  .topbar__links {
    gap: 14px;
  }

  .topbar__highlight,
  .partner-bar__phone {
    min-height: 20px;
    padding: 0 8px;
    margin-left: 8px;
  }

  .topbar-iconlink svg {
    width: 11px;
    height: 11px;
  }
}

@media (max-width: 1200px) {
  .topbar__row,
  .partner-bar__inner,
  .partner-bar p,
  .partner-bar__phone,
  .topbar__highlight {
    font-size: 10px;
  }

  .topbar__row,
  .partner-bar__inner {
    min-height: 30px;
  }

  .topbar__links {
    gap: 10px;
  }

  .topbar__highlight,
  .partner-bar__phone {
    min-height: 18px;
    padding: 0 7px;
    margin-left: 6px;
  }

  .topbar-iconlink {
    gap: 4px;
  }

  .topbar-iconlink svg {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 1100px) {
  .topbar__links a:not(.topbar-iconlink):not(:last-child) {
    display: none;
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 80px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 86px;
  min-height: 44px;
}

.brand__logo {
  display: block;
  width: auto;
  max-width: 120px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
}

.brand__mark {
  width: 58px;
  height: 44px;
  align-items: center;
  justify-content: center;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #c84db8, #8f2b83);
  color: white;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  display: none;
}

.header-main {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content max-content max-content;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.catalog-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.catalog-button__label {
  display: inline-block;
  min-width: 54px;
  line-height: 21px;
  font-size: 15px;
}

.catalog-button__icon {
  display: inline-grid;
  gap: 4px;
  width: 18px;
  height: 16px;
  align-content: center;
}

.catalog-button__icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.catalog-button:hover,
.search-button:hover {
  background: #a73a9a;
}

.catalog-button.is-open .catalog-button__icon {
  width: 16px;
  height: 16px;
  place-items: center;
}

.catalog-button.is-open .catalog-button__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.catalog-button.is-open .catalog-button__icon span:nth-child(2) {
  opacity: 0;
}

.catalog-button.is-open .catalog-button__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.catalog-button__icon span {
  transition: 0.2s ease;
}

.searchbar {
  display: block;
  position: relative;
  border: 1px solid #e6dce8;
  border-radius: 12px;
  background: #fff;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  overflow: visible;
}

.searchbar:focus-within {
  z-index: 45;
}

.searchbar input {
  min-width: 0;
  height: 44px;
  border: 0;
  padding: 0 14px;
  outline: none;
  width: 100%;
  border-radius: 12px;
}

.searchbar input::placeholder {
  color: #b5acba;
}

.searchbar.is-search-empty {
  border-color: #e4c4c8;
}

.searchbar.is-search-empty input {
  color: transparent;
  caret-color: transparent;
}

.searchbar__empty-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #a45a64;
  font-style: italic;
  pointer-events: none;
  background: #fff;
}

.searchbar__empty-msg[hidden] {
  display: none;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  width: min(620px, calc(100vw - 32px));
  max-height: min(68vh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border: 1px solid rgba(143, 43, 131, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 20px 50px rgba(35, 24, 43, 0.18);
}

.search-suggest[hidden] {
  display: none;
}

.search-suggest__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding: 0 8px 5px;
  color: #8a7f8d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-suggest__list {
  display: grid;
  gap: 3px;
}

.search-suggest__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.search-suggest__item:hover,
.search-suggest__item.is-active {
  border-color: rgba(143, 43, 131, 0.18);
  background: #fbf5fb;
}

.search-suggest__media {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 10px;
  background: #f5f0f6;
  color: var(--accent);
  font-size: 24px;
}

.search-suggest__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-suggest__body {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.search-suggest__group {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-suggest__title,
.search-suggest__meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest__title {
  color: #24202a;
  font-size: 14px;
  line-height: 1.3;
}

.search-suggest__meta {
  color: #8c8490;
  font-size: 11px;
}

.search-suggest__price {
  color: #24202a;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.search-suggest__all {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 5px;
  border-radius: 10px;
  background: #f4eaf4;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.search-suggest__empty {
  margin: 0;
  padding: 16px 12px 18px;
  color: #776f7a;
  font-size: 13px;
  line-height: 1.45;
}

.search-button {
  width: 48px;
  height: 44px;
  border: 0;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-button svg,
.header-phone svg,
.header-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
  font-size: 15px;
  flex-shrink: 0;
}

.header-phone svg {
  color: var(--accent);
}

.header-phone:hover {
  color: var(--accent);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #c4bfcb;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.header-icon[data-count="0"] b {
  display: none;
}

.header-icon[data-count]:not([data-count="0"]) {
  color: var(--accent);
}

.header-icon[data-count]:not([data-count="0"]) b {
  display: inline-block;
}

.header-icon--cart b,
.header-icon--wish b {
  position: absolute;
  top: -7px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.header-icon--cart.is-pulse,
.header-icon--wish.is-pulse {
  animation: cart-pulse 0.45s ease;
}

@keyframes cart-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.16);
  }
}

.nav {
  display: none;
  font-weight: 600;
  font-size: 14px;
}

.catalog-panel {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 19;
  background: #fff;
  border-bottom: 1px solid rgba(143, 43, 131, 0.12);
  box-shadow: 0 18px 40px rgba(33, 40, 60, 0.1);
  backdrop-filter: blur(18px);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px) scaleY(0.985);
  transform-origin: top center;
  transition:
    max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.36s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}

.catalog-panel.is-open {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0) scaleY(1);
}

.catalog-panel__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  padding: 14px 0 20px;
}

.catalog-card {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  align-content: end;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(33, 40, 60, 0.08);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  background-image: var(--catalog-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease;
}

.catalog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.46));
}

.catalog-card > * {
  position: relative;
  z-index: 1;
}

.catalog-card__title {
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.catalog-card__count {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
}

.catalog-panel.is-open .catalog-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.catalog-panel.is-open .catalog-card:nth-child(1) { transition-delay: 0.02s; }
.catalog-panel.is-open .catalog-card:nth-child(2) { transition-delay: 0.05s; }
.catalog-panel.is-open .catalog-card:nth-child(3) { transition-delay: 0.08s; }
.catalog-panel.is-open .catalog-card:nth-child(4) { transition-delay: 0.11s; }
.catalog-panel.is-open .catalog-card:nth-child(5) { transition-delay: 0.14s; }
.catalog-panel.is-open .catalog-card:nth-child(6) { transition-delay: 0.17s; }
.catalog-panel.is-open .catalog-card:nth-child(7) { transition-delay: 0.2s; }
.catalog-panel.is-open .catalog-card:nth-child(8) { transition-delay: 0.23s; }

.catalog-card:hover {
  box-shadow: 0 14px 28px rgba(33, 40, 60, 0.12);
}

.catalog-card--spacer {
  visibility: hidden;
  pointer-events: none;
  box-shadow: none;
}

.catalog-card--bracelets { background-color: #9b6f67; }
.catalog-card--gaitans { background-color: #6f574c; }
.catalog-card--necklaces { background-color: #8a6a5e; }
.catalog-card--chains { background-color: #7d5a4c; }
.catalog-card--sets { background-color: #9a7c84; }
.catalog-card--earrings { background-color: #75575e; }
.catalog-card--rings { background-color: #8a6559; }
.catalog-card--pendants { background-color: #8f6a5b; }
.catalog-card--icons { background-color: #7f6653; }
.catalog-card--watches { background-color: #86695a; }

.menu-toggle {
  display: none;
  position: relative;
  z-index: 30;
  width: 32px;
  height: 24px;
  flex: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.header-search-toggle {
  display: none;
}

.header-mobile-icons {
  display: none;
}

.menu-toggle span {
  position: absolute;
  left: 3px;
  top: 50%;
  display: block;
  width: 26px;
  height: 2px;
  margin: 0;
  background: var(--text);
  border-radius: 2px;
  transform: translateY(-50%);
  transform-origin: center;
  transition:
    transform 0.22s ease,
    opacity 0.18s ease,
    background-color 0.18s ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(calc(-50% - 7px));
}

.menu-toggle span:nth-child(2) {
  transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(calc(-50% + 7px));
}

.menu-toggle[aria-expanded="true"] span:nth-child(1),
.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2),
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3),
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-50%) rotate(-45deg);
}

body.is-nav-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

html.is-nav-open {
  overflow: hidden;
}

/* На мобилке при открытом меню прячем полоску про партнёров */
body.is-nav-open .partner-bar {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}

.button--primary {
  background: var(--accent-dark);
  color: #fff;
}

.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.button--light {
  background: #fff;
  color: var(--accent-dark);
}

.button--ghost:hover {
  border-color: rgba(143, 43, 131, 0.24);
}

.button:hover {
  transform: translateY(-1px);
}

.banner {
  padding: 0;
}

.banner-slider {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  width: 100%;
  background: #111;
  touch-action: pan-y;
}

.banner-slider__track {
  position: relative;
  min-height: 500px;
  background: #111;
}

.banner-slide {
  position: absolute;
  inset: 0;
  padding: 56px;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  background: #111;
}

.banner-slide__video,
.banner-slide__image,
.banner-slide__overlay {
  position: absolute;
  inset: 0;
}

.banner-slide__video,
.banner-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
  opacity: 1;
  z-index: 0;
}

.banner-slide .media-video-shell {
  background: #111;
}

.banner-slide .media-video-shell__shield {
  pointer-events: none;
}

.banner-slide__overlay {
  background: transparent;
  pointer-events: none;
}

.banner-slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 clamp(20px, 5vw, 72px);
  pointer-events: none;
  text-align: center;
  color: var(--banner-caption-color, #fff);
  background: none;
}

.banner-slide__caption-text,
.banner-slide__caption-inner,
.banner-slide__caption-word,
.banner-slide__caption-word-inner {
  background: none;
}

.banner-slide__caption--top {
  top: 18%;
  transform: translateY(-50%);
}

.banner-slide__caption--center {
  top: 50%;
  transform: translateY(-50%);
}

.banner-slide__caption--bottom {
  top: auto;
  bottom: 16%;
  transform: none;
}

.banner-slide__caption-text {
  margin: 0;
  display: inline-block;
  max-width: min(920px, 92%);
  font-size: clamp(28px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.banner-slide__caption-inner {
  display: inline-block;
}

.banner-slide__caption-line {
  display: block;
}

.banner-slide__caption-line + .banner-slide__caption-line {
  margin-top: 0.14em;
}

.banner-slide__caption-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;
}

.banner-slide__caption-gap {
  display: inline-block;
  width: 0.34em;
}

.banner-slide__caption-word-inner {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 118%, 0) scale(0.985);
  will-change: transform, opacity;
}

.banner-slide.is-active .banner-slide__caption-word-inner {
  animation: banner-caption-word-in var(--banner-word-fade, 560ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--banner-word-index, 0) * var(--banner-caption-step, 120ms));
}

.banner-slide:not(.is-active) .banner-slide__caption-word-inner {
  animation: none;
  opacity: 0;
  transform: translate3d(0, 118%, 0) scale(0.985);
}

@keyframes banner-caption-word-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-slide__caption-word-inner {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.banner-slide:not(.is-active) {
  z-index: 1;
}

.banner-slider__arrow {
  position: absolute;
  top: 50%;
  bottom: auto;
  z-index: 5;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(33, 40, 60, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.banner-slider__arrow--prev {
  left: 20px;
}

.banner-slider__arrow--next {
  right: 20px;
}

.banner-slider__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.banner-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.96);
}

.banner-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.banner-slider__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  pointer-events: none;
  transition: 0.2s ease;
}

.banner-slider__dot.is-active {
  width: 28px;
  background: rgba(255, 255, 255, 0.62);
}

.section-heading h2,
.promo-card h3,
.about h2,
.size-guide h2,
.product-summary h1 {
  margin: 0;
  line-height: 1.04;
}

.product-summary h1 {
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 600;
  line-height: 1.25;
}

.about__grid,
.size-guide {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.promo-card p,
.about p,
.size-guide p,
.product-summary__lead,
.info-card p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.product-gallery__main,
.review-card,
.info-card,
.size-guide__card,
.product-summary,
.category-card,
.promo-card,
.about__stats,
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow {
  color: var(--accent);
}

.featured-section {
  padding-top: 18px;
  padding-bottom: 12px;
  overflow-anchor: none;
}

.featured-section {
  position: relative;
}

.featured-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.featured-section__head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.featured-section__nav {
  display: none;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.featured-carousel {
  position: relative;
  overflow-x: visible;
  overflow-y: visible;
  isolation: isolate;
}

.featured-viewport {
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  touch-action: pan-y;
}

.featured-grid {
  display: grid;
  width: 100%;
  grid-auto-flow: column;
  grid-auto-columns: var(--featured-card-width, 334px);
  gap: 16px;
  overflow: visible;
  align-items: stretch;
  transform: translate3d(0, 0, 0);
  transition: transform 0.28s ease;
  padding: 0 0 140px;
  margin-bottom: 0;
}

.featured-card {
  background: #fff;
  border-radius: 16px;
  overflow: visible;
  box-shadow: none;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.2s ease;
}

.featured-grid .featured-card {
  width: var(--featured-card-width, 334px);
  flex: 0 0 auto;
}

.featured-card:hover {
  box-shadow: none;
  z-index: 3;
}

.featured-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #f2f2f4;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.product-gallery__media img:not(.is-loaded),
.product-gallery__media video:not(.is-loaded),
.thumb img:not(.is-loaded),
.thumb-video:not(.is-loaded),
.featured-card__image:not(.is-loaded) {
  opacity: 0;
}

.product-gallery__media img.is-loaded,
.product-gallery__media video.is-loaded,
.thumb img.is-loaded,
.thumb-video.is-loaded,
.featured-card__image.is-loaded,
.featured-card__video {
  opacity: 1;
  transition: opacity 0.18s ease;
}

.featured-card__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(43, 32, 45, 0.28));
  transition: background 0.2s ease;
}

.featured-card:hover .featured-card__media::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(43, 32, 45, 0.14));
}

.featured-card:hover .featured-card__media {
  transform: none;
}

.featured-card__image,
.featured-card__slide .media-video-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transform-origin: center bottom;
  transition: transform 0.35s ease, opacity 0.18s ease;
  pointer-events: none;
}

.featured-card__slide .media-video-shell {
  z-index: 1;
  opacity: 0;
}

.featured-card.is-video-hover .featured-card__slide.is-active[data-video-src] .featured-card__image {
  opacity: 0;
}

.featured-card.is-video-hover .featured-card__slide.is-active[data-video-src] .media-video-shell {
  opacity: 1;
}

.featured-card:hover .featured-card__image,
.featured-card:hover .featured-card__slide.is-active .media-video-shell {
  will-change: transform;
}

.featured-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  pointer-events: none;
}

.featured-card__slide .media-video-shell__canvas {
  object-fit: cover;
  object-position: center bottom;
  opacity: 1;
}

.featured-card__slide.is-active .media-video-shell__canvas {
  opacity: 1;
}

.featured-card:hover .featured-card__image,
.featured-card:hover .featured-card__slide.is-active .media-video-shell {
  transform: scale(1.08);
}

@media (hover: none), (max-width: 900px) {
  .featured-card__image,
  .featured-card__slide .media-video-shell {
    transition: none;
    transform: none !important;
    will-change: auto;
  }

  .featured-card:hover .featured-card__image,
  .featured-card:hover .featured-card__slide.is-active .media-video-shell {
    transform: none !important;
    will-change: auto;
  }

  /* Не используем visibility:hidden — на iOS из-за этого video play «тупит». */
  .featured-card__slide {
    transition: none;
  }

  .featured-card__video,
  .featured-card__video.is-loaded {
    transition: none;
    opacity: 1;
  }

  /* Карусель: стрелки в линии с заголовком — простые фиолетовые */
  .featured-carousel {
    display: block;
  }

  .featured-viewport {
    width: 100%;
  }

  .featured-grid {
    padding-bottom: 4px;
    align-items: stretch;
  }

  .featured-section__nav {
    display: inline-flex;
  }

  .featured-nav--prev,
  .featured-nav--next {
    left: auto;
    right: auto;
  }

  /* Карточки в ряду карусели и каталоге: фиксированные слоты — всё на одной линии */
  .featured-grid .featured-card,
  .catalog-products .featured-card {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .featured-grid .featured-card__body,
  .catalog-products .featured-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .featured-grid .featured-card__meta,
  .catalog-products .featured-card__meta {
    flex: 0 0 auto;
    height: 1.25em;
    min-height: 1.25em;
    overflow: hidden;
  }

  .featured-grid .featured-card__price,
  .catalog-products .featured-card__price {
    flex: 0 0 auto;
    min-height: 3.5em;
    justify-content: flex-start;
  }

  .featured-grid .featured-card__title,
  .catalog-products .featured-card__title {
    flex: 0 0 auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.35;
    height: calc(1.35em * 2);
    min-height: calc(1.35em * 2);
    max-height: calc(1.35em * 2);
    margin: 8px 0 0;
  }

  .featured-grid .featured-card__hover,
  .catalog-products .featured-card__hover {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    position: static;
    top: auto;
    margin-top: 14px;
    padding: 0 0 2px;
    box-shadow: none;
    min-height: 0;
    gap: 12px;
  }

  .featured-grid .featured-card__sizes,
  .catalog-products .featured-card__sizes {
    flex: 0 0 auto;
    margin: 0;
    min-height: 64px;
    overflow: hidden;
    align-content: flex-start;
    align-items: flex-start;
    row-gap: 8px;
    column-gap: 8px;
  }

  .featured-grid .featured-card__sizes.is-empty,
  .catalog-products .featured-card__sizes.is-empty {
    visibility: hidden;
    pointer-events: none;
  }

  .featured-grid .featured-card__buy,
  .catalog-products .featured-card__buy {
    margin-top: auto;
    flex-shrink: 0;
  }
}

.featured-card__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(33, 40, 60, 0.16);
  color: #6f6a79;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.featured-card:hover .featured-card__arrow,
.featured-card:focus-within .featured-card__arrow {
  display: none;
}

.featured-card__arrow svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.featured-card__arrow:hover {
  background: #fff;
  color: var(--accent);
  transform: translateY(-50%) scale(1.06);
}

.featured-card__arrow--prev {
  left: 10px;
}

.featured-card__arrow--next {
  right: 10px;
}

.featured-card__slides {
  position: absolute;
  inset: 0;
}

.featured-card__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  z-index: 0;
}

.featured-card__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

@media (hover: none), (max-width: 900px) {
  .featured-card__slide {
    transition: none;
  }
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-gallery__main .product-badges {
  top: 16px;
  left: 16px;
}

.product-badges span {
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #6c6477;
}

.product-badges span[data-badge="Акция"] { background: #e2b12c; }
.product-badges span[data-badge="Скидка"] { background: #df435b; }
.product-badges span[data-badge="Премиум"] { background: #32586b; }
.product-badges span[data-badge="Лучшая цена"] { background: #3b8671; }
.product-badges span[data-badge="Новинка"] { background: #8f2b83; }
.product-badges span[data-badge="Бестселлер"] { background: #5b6ea8; }

.featured-card__wish {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(33, 40, 60, 0.14);
  color: rgba(39, 49, 69, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.featured-card__wish:hover {
  color: var(--accent);
  transform: scale(1.04);
}

.featured-card__wish.is-active {
  color: #fff;
  background: var(--accent);
}

.featured-card__wish svg,
.featured-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.featured-card__wish.is-active svg {
  fill: currentColor;
  stroke: currentColor;
}

.featured-card__wish svg {
  overflow: visible;
}

.featured-card__dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 1;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.featured-card__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.featured-card__dot.is-active {
  width: 14px;
  background: var(--accent);
}

.featured-card__body {
  padding: 10px 10px 14px;
  background: #fff;
  border-radius: 0 0 16px 16px;
  position: relative;
}

.featured-card:hover .featured-card__body {
  border-radius: 0;
}

.featured-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #9e9ca4;
  font-size: clamp(11px, 1.2vw, 12px);
}

.featured-card__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 8px;
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 600;
}

.featured-card__price .price-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.featured-card__price .price-current {
  font-weight: 600;
  color: inherit;
}

.featured-card__price .price-old {
  font-size: 0.88em;
  font-weight: 400;
  color: #b8b5bd;
  text-decoration: line-through;
}

.featured-card__price .price-weight {
  margin-top: 0;
  font-size: 0.82em;
  font-weight: 500;
  color: #9e9ca4;
}

.featured-card__title {
  display: block;
  margin-top: 8px;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.35;
}

.featured-card__hover {
  display: none;
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  margin-top: 0;
  padding: 14px 10px 14px;
  background: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 18px 30px rgba(33, 40, 60, 0.08);
}

.featured-card:hover .featured-card__hover {
  display: block;
}

.featured-card__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.featured-card__size {
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border-radius: 16px;
  border: 1px solid #e7dbea;
  background: #fff;
  color: #7f7288;
  font-size: 12px;
  cursor: pointer;
}

.featured-card__size.is-active {
  border-color: rgba(143, 43, 131, 0.4);
  background: rgba(143, 43, 131, 0.08);
  color: var(--accent);
}

.featured-card__sizes.is-attention .featured-card__size,
.size-list.is-attention .size-chip {
  animation: size-attention 0.45s ease;
}

.featured-card__buy {
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}

.featured-card__buy:hover {
  background: #a73a9a;
}

.featured-nav {
  position: static;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.16s ease, transform 0.16s ease;
}

.featured-nav--prev,
.featured-nav--next {
  left: auto;
  right: auto;
}

.featured-nav:hover {
  color: var(--accent);
  background: transparent;
}

.featured-nav:active {
  transform: scale(1.06);
}

.featured-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.featured-nav svg path {
  fill: none;
  stroke: currentColor;
}

/* Мобилка / тач: стрелки в линии с названием карусели */
@media (hover: none), (max-width: 900px) {
  .featured-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .featured-section__nav {
    display: inline-flex !important;
    position: static !important;
    pointer-events: auto !important;
  }

  .featured-nav {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--accent) !important;
  }

  .featured-nav:hover,
  .featured-nav:active {
    background: transparent !important;
    color: var(--accent) !important;
  }
}

/* Десктоп: круглые стрелки поверх карусели */
@media (hover: hover) and (min-width: 901px) {
  .featured-section__head {
    display: block;
  }

  .featured-section__nav {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 20;
  }

  .featured-nav {
    position: absolute;
    top: 288px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 18px rgba(33, 40, 60, 0.14);
    color: #6f6a79;
    pointer-events: auto;
  }

  .featured-nav--prev {
    left: 25px;
  }

  .featured-nav--next {
    right: 25px;
  }

  .featured-nav:hover {
    background: #fff;
    color: var(--accent);
  }

  .featured-nav:active {
    transform: scale(1.08);
  }

  .featured-nav svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.7;
  }
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}

.categories__grid,
.product-grid,
.promo__grid,
.spec-grid,
.footer__grid,
.summary-meta {
  display: grid;
  gap: 20px;
}

.categories__grid {
  grid-template-columns: repeat(4, 1fr);
}

.category-card,
.promo-card,
.about__stats,
.info-card,
.review-card,
.size-guide__card {
  padding: 24px;
}

.category-card {
  min-height: 180px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 246, 251, 0.94)),
    linear-gradient(145deg, #fae8f7, #f3d6ed);
  border: 1px solid rgba(143, 43, 131, 0.12);
}

.product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  overflow: hidden;
}

.product-card__media {
  min-height: 280px;
  padding: 18px;
  background: #f2f2f4;
  position: relative;
}

.product-card__media::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius) - 8px);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.75), transparent 34%),
    radial-gradient(circle at 50% 58%, rgba(143, 43, 131, 0.36), transparent 28%),
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.88), transparent 9%);
}

.product-card__body {
  padding: 22px;
}

.product-card__body h3 {
  margin: 10px 0;
  font-size: 22px;
}

.product-card__meta,
.breadcrumbs,
.option-block__title {
  color: var(--muted);
  font-size: 14px;
}

.product-card__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
}

.price {
  font-size: 28px;
  font-weight: 600;
}

.price--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.price-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.price-current {
  font-weight: 600;
  color: inherit;
}

.price-old {
  font-size: 0.82em;
  font-weight: 400;
  color: #b8b5bd;
  text-decoration: line-through;
}

.price-weight {
  display: block;
  margin-top: 2px;
  font-size: 0.72em;
  font-weight: 500;
  color: #8a8790;
  letter-spacing: 0;
  line-height: 1.3;
}

.price-weight__label {
  font-weight: 500;
  color: inherit;
}

.sale-section__head {
  margin-bottom: 18px;
}

.sale-section__head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.sale-section.section {
  padding-top: 36px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.sale-carousel {
  position: relative;
}

.sale-viewport {
  overflow-x: hidden;
  overflow-y: visible;
  touch-action: pan-y;
}

.sale-grid {
  --sale-card-width: 100%;
  display: grid;
  width: 100%;
  grid-auto-flow: column;
  grid-auto-columns: var(--sale-card-width);
  gap: 20px;
  transition: transform 0.28s ease;
}

.sale-card {
  width: var(--sale-card-width);
  height: 280px;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  position: relative;
  z-index: 1;
}

.sale-card__content {
  position: absolute;
  inset: 0 auto 0 0;
  width: 55%;
  padding: 22px 22px 56px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.0) 100%);
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  color: var(--banner-ink, #231f31);
}

.sale-card__eyebrow {
  margin: 0 0 6px;
  color: var(--banner-ink, #a8a1ae);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: 0.62;
}

.sale-card__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  color: var(--banner-ink, #231f31);
}

.sale-card__text {
  margin: 10px 0 0;
  color: var(--banner-ink, #686271);
  font-size: 16px;
  line-height: 1.3;
  opacity: 0.82;
}

.sale-card__prices {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
}

.sale-card__price {
  font-size: 20px;
  font-weight: 600;
  color: var(--banner-ink, #231f31);
}

.sale-card__oldprice {
  font-size: 16px;
  color: var(--banner-ink, #b4b0b9);
  text-decoration: line-through;
  opacity: 0.55;
}

.sale-card__media {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8f7fa, #eee6f0);
  z-index: 1;
  overflow: hidden;
}

.sale-card:hover {
  z-index: 2;
}

.sale-card__buy {
  position: absolute;
  left: 22px;
  bottom: 22px;
  margin-top: 0;
  align-self: flex-start;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.sale-card:hover .sale-card__buy {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (hover: none) {
  .sale-card__buy,
  .promo-banner-card__cta {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .sale-card:hover .sale-card__image {
    transform: none;
  }
}

.sale-card__media.is-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.75), transparent 24%),
    linear-gradient(135deg, rgba(143, 43, 131, 0.08), rgba(255, 255, 255, 0));
}

.sale-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.sale-card:hover .sale-card__image {
  transform: scale(1.08);
}

.sale-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.sale-dots[hidden] {
  display: none;
}

.sale-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(143, 43, 131, 0.2);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.sale-dot.is-active {
  width: 28px;
  background: rgba(143, 43, 131, 0.82);
}

.promo-banner-section {
  padding-top: 36px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.promo-banner-section__head {
  margin-bottom: 18px;
}

.promo-banner-section__head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.promo-banner-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(280px, 1fr);
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: 18px;
}

.promo-banner-card {
  position: relative;
  display: block;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f2f6;
}

.promo-banner-card--large {
  grid-row: 1 / span 2;
}

.promo-banner-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.28s ease;
}

.promo-banner-card:hover .promo-banner-card__image {
  transform: scale(1.04);
}

.promo-banner-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 22px 52px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.34) 36%, rgba(255, 255, 255, 0) 64%);
  color: var(--banner-ink, #231f31);
}

.promo-banner-card--small .promo-banner-card__overlay {
  padding: 18px 18px 48px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.56) 42%, rgba(255, 255, 255, 0) 72%);
}

.promo-banner-card__eyebrow {
  margin: 0 0 8px;
  color: var(--banner-ink, #9a94a1);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: 0.7;
}

.promo-banner-card__title {
  margin: 0;
  max-width: 52%;
  color: var(--banner-ink, #231f31);
  font-size: 25px;
  line-height: 1.15;
  font-weight: 700;
}

.promo-banner-card--small .promo-banner-card__title {
  max-width: 72%;
  font-size: 21px;
}

.promo-banner-card__text {
  margin: 10px 0 0;
  max-width: 46%;
  color: var(--banner-ink, #5d5866);
  font-size: 16px;
  line-height: 1.4;
  opacity: 0.88;
}

.promo-banner-card--small .promo-banner-card__text {
  max-width: 70%;
  font-size: 15px;
}

.promo-banner-card__cta {
  position: absolute;
  left: 22px;
  bottom: 18px;
  margin-top: 0;
  display: inline-block;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border-bottom: 2px solid currentColor;
  padding-bottom: 3px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.promo-banner-card:hover .promo-banner-card__cta,
.promo-banner-card:focus-visible .promo-banner-card__cta,
.promo-banner-card:focus-within .promo-banner-card__cta {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.about.section {
  padding-top: 20px;
}

.about-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 28px;
  padding: 30px 34px;
  background: #fff;
  border: 1px solid rgba(143, 43, 131, 0.06);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(33, 40, 60, 0.06);
}

.about-card__content h2 {
  margin: 0 0 22px;
  color: #231f31;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.about-card__content p {
  margin: 0 0 14px;
  max-width: 760px;
  color: #6a6672;
  font-size: 17px;
  line-height: 1.68;
}

.about-card__content p:last-child {
  margin-bottom: 0;
}

.about-card__visual {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.about-card__visual.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.about-card__visual::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 28px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(35, 31, 49, 0.18), rgba(35, 31, 49, 0) 72%);
  filter: blur(8px);
}

.about-card__ring {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  height: auto;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.56);
  transform-origin: center center;
  transition: opacity 0.95s ease, transform 0.95s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

.about-card__visual.is-inview .about-card__ring {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.about-card__logo-mark {
  position: absolute;
  z-index: 2;
  top: 56%;
  left: 50%;
  width: clamp(68px, 10vw, 96px);
  height: auto;
  transform: translate(-50%, -50%) scale(0.82);
  transform-origin: center center;
  opacity: 0;
  filter: drop-shadow(0 10px 24px rgba(39, 49, 69, 0.16));
  transition: opacity 0.6s ease 0.35s, transform 0.6s ease 0.35s;
  will-change: transform, opacity;
}

.about-card__visual.is-inview .about-card__logo-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: about-logo-float 4.8s ease-in-out 1.1s infinite;
}

@keyframes about-logo-float {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, calc(-50% - 8px)) scale(1.02);
  }
}

.footer {
  margin-top: 32px;
  padding: 32px 0 22px;
  border-top: 0;
  background: #273145;
  color: rgba(255, 255, 255, 0.78);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 1.1fr 1fr;
  gap: 36px;
}

.footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: inherit;
}

.footer__brandcol {
  display: grid;
  align-content: start;
  gap: 18px;
}

.footer__logo {
  display: inline-flex;
  width: fit-content;
}

.footer__logo img {
  width: auto;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.footer__about {
  max-width: 300px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45 !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font-weight: 400;
}

.footer__about-line {
  display: block;
  white-space: nowrap;
}

.footer__contacts {
  display: grid;
  gap: 10px;
}

.footer__contact-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.76);
}

.footer__contact svg,
.footer__socials svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__col ul a,
.footer__office li {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.45;
}

.footer__office-note,
.footer__badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #273145;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.footer__office-note {
  margin-top: 14px;
}

.footer__col ul a:hover,
.footer__contact:hover,
.footer__socials a:hover {
  color: #fff;
}

.footer__bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__bottom p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

.footer__socials {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer__socials a {
  color: rgba(255, 255, 255, 0.42);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer__contacts--mobile {
  display: none;
}

.footer__office-orders-mobile {
  display: none;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 28px 0;
}

.breadcrumbs__home,
.breadcrumbs__link {
  color: rgba(39, 49, 69, 0.45);
}

.breadcrumbs__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.breadcrumbs__home svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.breadcrumbs__home:hover,
.breadcrumbs__link:hover {
  color: rgba(39, 49, 69, 0.65);
}

.breadcrumbs__return {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.breadcrumbs__return[hidden] {
  display: none !important;
}

.breadcrumbs__link {
  max-width: min(280px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumbs__sep {
  display: inline-flex;
  align-items: center;
  color: rgba(39, 49, 69, 0.35);
}

.breadcrumbs__sep svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.breadcrumbs__current {
  color: var(--text);
  font-weight: 600;
}

body.is-modal-open {
  overflow: hidden;
  position: fixed;
  inset-inline: 0;
  width: 100%;
  top: var(--modal-lock-top, 0);
}

.size-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.size-modal[hidden] {
  display: none;
}

.size-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 20, 28, 0.56);
}

.size-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 32px;
  box-shadow: 0 24px 60px rgba(33, 40, 60, 0.18);
}

.size-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: rgba(39, 49, 69, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.size-modal__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.size-modal__close:hover {
  color: rgba(39, 49, 69, 0.75);
}

.size-modal__title {
  margin: 0 36px 16px 0;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
}

.size-modal__dialog--wide {
  width: min(680px, 100%);
}

.size-modal__chain-guide[hidden] {
  display: none;
}

.size-modal__chain-chart {
  margin: 4px 0 16px;
  border-radius: 16px;
  overflow: hidden;
  background: #fafafb;
}

.size-modal__chain-image {
  display: block;
  width: 100%;
  height: auto;
}

.size-modal__chain-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #6b7280;
}

.size-modal__feedback {
  position: relative;
  min-height: 72px;
  margin-bottom: 18px;
}

.size-modal__alert,
.size-modal__success-block {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
}

.size-modal__alert {
  position: absolute;
  inset: 0;
}

.size-modal__alert.is-visible,
.size-modal__success-block.is-visible {
  opacity: 1;
  visibility: visible;
}

.size-modal__success-block.is-visible {
  display: block;
}

.size-modal__success-block {
  display: none;
}

.size-modal__alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fdeff1;
  color: #8d3140;
}

.size-modal__success {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: #e9fbf0;
  color: #1c7a45;
  font-size: 14px;
}

.size-modal__success p {
  margin: 0;
  line-height: 1.45;
}

.size-modal__size-asterisk {
  margin-left: 1px;
  font-weight: 700;
}

.size-modal__disclaimer {
  margin: 8px 0 0;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}

.size-modal__disclaimer-mark {
  margin-right: 2px;
}

.size-modal__alert-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #df435b;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
}

.size-modal__alert p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.size-modal__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.size-modal__step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
}

.size-modal__step--text-only {
  grid-template-columns: 1fr;
}

.size-modal__step-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #f6f6f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2d3340;
}

.size-modal__step-icon svg,
.size-modal__step-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.size-modal__step--input {
  align-items: center;
  grid-template-columns: 96px 1fr;
}

.size-modal__input-box {
  width: 96px;
  min-width: 96px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(39, 49, 69, 0.14);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.size-modal__input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.size-modal__input::-webkit-outer-spin-button,
.size-modal__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.size-modal__step--rich {
  align-items: start;
}

.size-modal__step-list {
  margin: 10px 0 0;
  padding-left: 1.15em;
  display: grid;
  gap: 6px;
}

.size-modal__step-list li {
  line-height: 1.45;
}

.size-modal__step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(39, 49, 69, 0.82);
}

@media (max-width: 560px) {
  .size-modal {
    padding: 8px;
  }

  .size-modal__dialog,
  .size-modal__dialog--wide {
    width: 100%;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 16px 14px 14px;
    overflow: hidden;
    border-radius: 14px;
  }

  .size-modal__close {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
  }

  .size-modal__title {
    margin: 0 30px 8px 0;
    font-size: 18px;
    line-height: 1.15;
  }

  .size-modal__feedback {
    min-height: 48px;
    margin-bottom: 8px;
  }

  .size-modal__alert,
  .size-modal__success {
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
  }

  .size-modal__alert p,
  .size-modal__success p {
    font-size: 12px;
    line-height: 1.3;
  }

  .size-modal__alert-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    font-size: 11px;
  }

  .size-modal__disclaimer {
    margin-top: 4px;
    padding: 0;
    font-size: 10px;
    line-height: 1.25;
  }

  .size-modal__steps {
    gap: 8px;
  }

  .size-modal__step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
  }

  .size-modal__step-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .size-modal__step--input {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .size-modal__input-box {
    width: 76px;
    min-width: 76px;
    height: 36px;
    padding: 0 6px;
    border-radius: 10px;
  }

  .size-modal__input {
    font-size: 16px;
  }

  .size-modal__step p,
  .size-modal__step-list li {
    font-size: 11px;
    line-height: 1.25;
  }

  .size-modal__step-list {
    margin-top: 4px;
    padding-left: 1.05em;
    gap: 1px;
  }

  .size-modal__chain-chart {
    margin: 0 0 8px;
    border-radius: 10px;
  }

  .size-modal__chain-image {
    max-height: calc(100dvh - 120px);
    object-fit: contain;
  }

  .size-modal__chain-note {
    font-size: 10px;
    line-height: 1.3;
  }
}

.catalog-page {
  padding-bottom: 48px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.catalog-filters {
  padding: 16px;
  border: 1px solid rgba(35, 31, 49, 0.1);
  border-radius: 16px;
  background: #fff;
  height: fit-content;
}

.catalog-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.catalog-filters__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a1d24;
}

.catalog-filters__reset {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.catalog-filters__reset:hover {
  text-decoration: underline;
}

.catalog-filters__body {
  display: grid;
  gap: 12px;
}

.catalog-filters__footer {
  margin-top: 14px;
}

.catalog-filters__apply {
  width: 100%;
  min-height: 44px;
  border-radius: 16px;
}

.catalog-filter {
  padding: 12px;
  border: 1px solid rgba(35, 31, 49, 0.08);
  border-radius: 12px;
  background: #fafafa;
}

.catalog-filter__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1d24;
}

.catalog-filter__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

.catalog-filter__toggle .catalog-filter__title {
  margin: 0;
}

.catalog-filter__arrow {
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.catalog-filter--collapse.is-open > .catalog-filter__toggle .catalog-filter__arrow {
  transform: translateY(2px) rotate(225deg);
  border-color: var(--accent);
}

.catalog-filter__toggle:hover .catalog-filter__arrow {
  border-color: var(--accent);
}

.catalog-filter__content {
  margin-top: 10px;
}

.catalog-filter__content[hidden] {
  display: none;
}

.catalog-filter__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.catalog-filter__inputs input {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(35, 31, 49, 0.12);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.catalog-filter__inputs input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(143, 43, 131, 0.12);
}

.catalog-range {
  position: relative;
  height: 28px;
  margin: 2px 0 4px;
}

.catalog-range__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: rgba(35, 31, 49, 0.12);
  transform: translateY(-50%);
  pointer-events: none;
}

.catalog-range__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: var(--accent);
}

.catalog-range input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  background: none;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.catalog-range input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent);
  box-shadow: 0 1px 4px rgba(33, 40, 60, 0.25);
  cursor: pointer;
}

.catalog-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent);
  box-shadow: 0 1px 4px rgba(33, 40, 60, 0.25);
  cursor: pointer;
}

.catalog-range__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.catalog-check-list {
  display: grid;
  gap: 8px;
}

.catalog-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.catalog-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.catalog-check__control {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(35, 31, 49, 0.28);
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.catalog-check__control::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
}

.catalog-check input:checked + .catalog-check__control {
  border-color: var(--accent);
}

.catalog-check input:checked + .catalog-check__control::after {
  transform: translate(-50%, -50%) scale(1);
}

.catalog-check:hover .catalog-check__control {
  border-color: rgba(143, 43, 131, 0.55);
}

.catalog-check__count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.catalog-check-list--badges {
  gap: 10px;
}

.catalog-check--badge {
  min-height: 28px;
}

.catalog-filter-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: #6c6477;
}

.catalog-filter-badge[data-badge="Акция"] { background: #e2b12c; }
.catalog-filter-badge[data-badge="Скидка"] { background: #df435b; }
.catalog-filter-badge[data-badge="Премиум"] { background: #32586b; }
.catalog-filter-badge[data-badge="Лучшая цена"] { background: #3b8671; }
.catalog-filter-badge[data-badge="Новинка"] { background: #8f2b83; }
.catalog-filter-badge[data-badge="Бестселлер"] { background: #5b6ea8; }

.catalog-filter--empty {
  display: none;
}

.catalog-filter--disabled {
  opacity: 0.48;
  filter: grayscale(0.35);
  pointer-events: none;
  user-select: none;
}

.catalog-filter--disabled .catalog-filter__title {
  color: #9aa0ab;
}

.catalog-filter--disabled input {
  cursor: not-allowed;
}

.catalog-results__head {
  margin-bottom: 16px;
}

.catalog-results__head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: #1a1d24;
}

.catalog-results__count {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #8a8693;
}

.catalog-mobile-bar {
  display: none;
  margin-bottom: 14px;
  min-width: 0;
}

.catalog-mobile-bar__track {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}

.catalog-mobile-bar__track::-webkit-scrollbar {
  display: none;
}

.catalog-mobile-bar__sort,
.catalog-mobile-bar__filters,
.catalog-active-filter {
  flex: none;
  scroll-snap-align: start;
}

.catalog-mobile-bar__sort,
.catalog-mobile-bar__filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--accent);
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.catalog-mobile-bar__sort {
  width: auto;
}

.catalog-mobile-bar__sort svg,
.catalog-mobile-bar__filters svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-mobile-bar__sort:active,
.catalog-mobile-bar__filters:active {
  opacity: 0.72;
}

.catalog-mobile-bar__badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
}

.catalog-mobile-bar__badge[hidden],
.catalog-active-filters[hidden] {
  display: none !important;
}

.catalog-active-filters {
  display: contents;
}

.catalog-active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.catalog-active-filter__remove {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.catalog-mobile-sort {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  align-items: end;
  background: rgba(20, 16, 28, 0.42);
}

.catalog-mobile-sort[hidden] {
  display: none !important;
}

.catalog-mobile-sort__panel {
  width: 100%;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0;
  background: #fff;
}

.catalog-mobile-sort__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}

.catalog-mobile-sort__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(35, 31, 49, 0.06);
  color: #1a1d24;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.catalog-mobile-sort__options {
  display: grid;
  gap: 12px;
}

.catalog-mobile-sort__option {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5c5666;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.catalog-mobile-sort__option.is-active {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

.catalog-filters__close {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.site-search-hits {
  margin: 0 0 22px;
  padding: 18px 18px 8px;
  border: 1px solid #eee8f0;
  border-radius: 16px;
  background: #fcfafd;
}

.site-search-hits__title,
.site-search-products-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1d24;
}

.site-search-products-title {
  margin: 8px 0 14px;
}

.site-search-hits__list {
  display: grid;
  gap: 8px;
  padding-bottom: 10px;
}

.site-search-hit {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search-hit:hover {
  border-color: rgba(143, 43, 131, 0.28);
  box-shadow: 0 6px 18px rgba(35, 31, 49, 0.06);
}

.site-search-hit__group {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8f2b83;
}

.site-search-hit__title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1d24;
}

.site-search-hit__text {
  font-size: 13px;
  line-height: 1.35;
  color: #8a8790;
}

.catalog-toolbar__field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.catalog-toolbar__label {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  line-height: 1;
  white-space: nowrap;
}

.catalog-toolbar__field--limit {
  margin-left: auto;
}

.catalog-select {
  position: relative;
  min-width: min(220px, 100%);
}

.catalog-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.catalog-select select {
  width: 100%;
  min-height: 22px;
  height: 22px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(143, 43, 131, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.catalog-select select:hover {
  border-color: rgba(143, 43, 131, 0.4);
  background: rgba(143, 43, 131, 0.03);
}

.catalog-select select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(143, 43, 131, 0.14);
}

.catalog-limit {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.catalog-limit__chip {
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(39, 49, 69, 0.14);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.catalog-limit__chip:hover {
  border-color: rgba(143, 43, 131, 0.45);
  background: rgba(143, 43, 131, 0.06);
  color: var(--accent);
}

.catalog-limit__chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(143, 43, 131, 0.08);
  box-shadow: inset 0 0 0 1px rgba(143, 43, 131, 0.22);
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 28px;
}

.catalog-pagination[hidden] {
  display: none !important;
}

.catalog-pagination__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(35, 31, 49, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #3a3f4b;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.catalog-pagination__btn:hover:not(:disabled) {
  border-color: rgba(143, 43, 131, 0.4);
  color: var(--accent);
}

.catalog-pagination__btn.is-active {
  border-color: var(--accent);
  background: rgba(143, 43, 131, 0.08);
  color: var(--accent);
  cursor: default;
}

.catalog-pagination__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.catalog-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 140px;
  overflow: visible;
}

.catalog-products .featured-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.catalog-results {
  min-width: 0;
}

.catalog-empty {
  margin: 0;
  color: #8b93a3;
  font-size: 15px;
  line-height: 1.5;
}

.catalog-empty--search {
  margin-top: 8px;
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid #eee8f0;
  background: #fcfafd;
  color: #5c5666;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 980px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-mobile-bar {
    display: block;
  }

  .catalog-toolbar {
    display: none;
  }

  .catalog-filters {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
  }

  .catalog-filters.is-mobile-open {
    display: flex;
  }

  .catalog-filters__close {
    display: inline-flex;
    align-items: center;
    flex: none;
  }

  .catalog-filters__head {
    flex: none;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(35, 31, 49, 0.08);
    background: #fff;
  }

  .catalog-filters__title {
    flex: 1;
    text-align: center;
    font-size: 17px;
  }

  .catalog-filters__reset {
    flex: none;
    font-size: 13px;
  }

  .catalog-filters__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px;
  }

  .catalog-filters__footer {
    flex: none;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(35, 31, 49, 0.08);
    background: #fff;
  }

  body.is-catalog-filters-open {
    overflow: hidden;
  }

  body.is-catalog-filters-open .partner-bar {
    display: none;
  }

  .catalog-toolbar__field--limit {
    margin-left: 0;
  }

  .catalog-limit {
    justify-content: flex-start;
  }

  .catalog-select {
    min-width: min(100%, 320px);
  }

  .catalog-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    min-width: 0;
    padding-bottom: 48px;
  }

  .catalog-products .featured-card__arrow {
    display: none;
  }

  .catalog-pagination__btn {
    min-width: 0;
    height: auto;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
  }

  .catalog-pagination__btn:hover:not(:disabled) {
    background: transparent;
    color: #a73a9a;
  }

  .catalog-pagination__btn.is-active {
    background: transparent;
    color: var(--accent);
    font-weight: 800;
    box-shadow: none;
  }

  .catalog-pagination__btn:disabled {
    opacity: 0.35;
    background: transparent;
    color: var(--accent);
  }
}

/* Мобилка: единый стандарт CTA / «Купить» */
@media (max-width: 980px) {
  :root {
    --mobile-btn-h: 36px;
    --mobile-btn-fs: 13px;
    --mobile-btn-fw: 600;
    --mobile-btn-radius: 12px;
  }

  .featured-card__buy,
  .product-buybar__buy,
  .button,
  .catalog-filters__apply,
  .review-form__submit {
    min-height: var(--mobile-btn-h);
    border-radius: var(--mobile-btn-radius);
    font-size: var(--mobile-btn-fs);
    font-weight: var(--mobile-btn-fw);
    line-height: 1.1;
  }

  .featured-card__buy {
    height: var(--mobile-btn-h);
    margin-top: 8px;
    padding: 0 10px;
  }

  .product-buybar__buy {
    height: var(--mobile-btn-h);
    padding: 0 14px;
  }

  .product-qty {
    height: var(--mobile-btn-h);
    border-radius: var(--mobile-btn-radius);
  }

  .product-qty__btn {
    width: var(--mobile-btn-h);
    height: var(--mobile-btn-h);
    font-size: 16px;
  }

  .product-qty__value {
    width: calc(var(--mobile-btn-h) + 4px);
    font-size: var(--mobile-btn-fs);
  }

  .product-buybar__wish {
    width: var(--mobile-btn-h);
    height: var(--mobile-btn-h);
    flex: 0 0 var(--mobile-btn-h);
  }

  .button {
    min-height: var(--mobile-btn-h);
    padding: 0 16px;
  }

  .catalog-filters__apply {
    min-height: var(--mobile-btn-h);
  }

  .featured-grid .featured-card__sizes,
  .catalog-products .featured-card__sizes {
    min-height: 48px;
  }

  .featured-grid .featured-card__hover,
  .catalog-products .featured-card__hover {
    gap: 8px;
    margin-top: 10px;
  }
}

@media (max-width: 560px) {
  .catalog-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.product-page {
  padding-bottom: 32px;
}

.product-layout {
  --product-rail-gap: 16px;
  --product-summary-width: 500px;
  display: grid;
  grid-template-columns: minmax(0, max-content) var(--product-summary-width);
  gap: var(--product-rail-gap);
  align-items: start;
  justify-content: center;
  position: relative;
}

.product-lines-place {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(
    50% + (var(--product-gallery-width, 706px) + var(--product-summary-width) + var(--product-rail-gap)) / 2 +
      var(--product-rail-gap)
  );
  right: 0;
  width: auto;
  max-width: none;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Узор только пока справа остаётся нормальная ширина, иначе сильно сжимается */
@media (max-width: 1360px) {
  .product-lines-place {
    display: none;
  }
}

.product-lines {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 1px solid #8a8693;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0.45;
}

.product-lines__art {
  display: block;
  width: 100%;
  height: 100%;
}

.product-lines__art path {
  fill: none;
  stroke: #8a8693;
  stroke-width: 1;
}

.product-lines__move {
  animation: product-lines-move 10s linear infinite;
}

@keyframes product-lines-move {
  from {
    transform: translateY(-75px);
  }
  50% {
    transform: translateY(75px);
  }
  to {
    transform: translateY(-75px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-lines__move {
    animation: none;
  }
}

.product-layout__main {
  min-width: 0;
  width: var(--product-gallery-width, 706px);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-layout__main > .section {
  padding-left: 0;
  padding-right: 0;
}

.product-layout__main > .section:last-child {
  padding-bottom: 0;
}

.product-gallery {
  display: flex;
  gap: var(--product-rail-gap, 16px);
  align-items: flex-start;
  flex-direction: row;
  width: max-content;
  max-width: 100%;
  min-width: 0;
}

.product-gallery__main {
  flex: 0 1 600px;
  width: 600px;
  max-width: calc(100% - 108px);
  min-width: 0;
  aspect-ratio: 1 / 1;
  margin-inline: 0;
  position: relative;
  overflow: hidden;
  background: #f2f2f4;
  border-radius: 16px;
  touch-action: pan-y;
}

.product-gallery__media {
  position: absolute;
  inset: 0;
}

.product-gallery__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f2f2f4;
}

/* Фон заполняет рамку; сверху — вся картинка без обрезки и без искажения */
.product-gallery__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(22px) saturate(1.08);
  transform: scale(1.12);
  opacity: 0.95;
  pointer-events: none;
  user-select: none;
}

.product-gallery__image,
.product-gallery__video,
.product-gallery__main .media-video-shell > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: 1;
  background: transparent;
}

.product-gallery__main .media-video-shell {
  z-index: 1;
  background: transparent;
}

.product-gallery__actions {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* На мобилке — прозрачный слой для свайпа (img/video с pointer-events: none не ловят touch на iOS) */
.product-gallery__swipe {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 900px) {
  .product-gallery__swipe {
    display: block;
    pointer-events: auto;
    cursor: grab;
  }

  .product-gallery__swipe.is-swiping {
    cursor: grabbing;
  }
}

.product-gallery__action {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(33, 40, 60, 0.14);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.product-gallery__action:hover {
  transform: scale(1.04);
  background: #fff;
}

.product-gallery__action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-gallery__action[data-gallery-wish] svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.product-gallery__action[data-gallery-wish].is-active {
  color: #fff;
  background: var(--accent);
}

.product-gallery__action[data-gallery-wish].is-active svg {
  fill: currentColor;
  stroke: currentColor;
}

.product-gallery__share {
  position: relative;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 24px;
  background: rgba(35, 31, 49, 0.42);
}

.media-lightbox.is-open {
  display: flex;
}

.media-lightbox[hidden] {
  display: none !important;
}

body.is-lightbox-open {
  overflow: hidden;
}

.media-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #2a2430;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.media-lightbox__close:hover {
  background: #fff;
  color: var(--accent);
}

.media-lightbox__close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.media-lightbox__stage {
  width: auto;
  height: auto;
  max-width: min(1200px, calc(100vw - 48px));
  max-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.media-lightbox__stage img,
.media-lightbox__stage video {
  width: auto;
  height: auto;
  max-width: min(1200px, calc(100vw - 48px));
  max-height: calc(100vh - 80px);
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 8px;
  background: transparent;
}

.product-gallery__share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 40, 60, 0.14);
  display: grid;
  gap: 4px;
}

.product-gallery__share-menu[hidden] {
  display: none;
}

.product-gallery__share-menu a {
  padding: 10px 12px;
  border-radius: 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.product-gallery__share-menu a:hover {
  background: rgba(143, 43, 131, 0.06);
  color: var(--accent);
}

.product-gallery__main .gallery-label,
.product-card__media .gallery-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin: 22px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.product-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 92px;
  width: 92px;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  flex-shrink: 0;
  align-self: flex-start;
}

.thumb {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border-radius: 16px;
  border: 0 solid transparent;
  padding: 0;
  margin: 0;
  background: #f2f2f4;
  cursor: pointer;
  overflow: hidden;
  display: block;
  -webkit-appearance: none;
  appearance: none;
  text-indent: 0;
  line-height: 0;
  outline: none;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}

.thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
  background: #f2f2f4;
  pointer-events: none;
}

.thumb.is-active {
  outline: 2px solid var(--accent-dark);
  outline-offset: -2px; /* рисуем рамку внутрь, не меняя размер контента */
}

.product-summary {
  position: sticky;
  top: 100px;
  align-self: start;
  width: var(--product-summary-width, 500px);
  max-width: var(--product-summary-width, 500px);
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
}

.product-summary__scroll {
  box-sizing: border-box;
  /* fallback until JS syncs to gallery height */
  max-height: var(--product-summary-max, min(600px, calc(100dvh - 120px)));
  padding: 24px 22px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(35, 31, 49, 0.35) rgba(35, 31, 49, 0.06);
}

.product-summary__scroll::-webkit-scrollbar {
  width: 8px;
}

.product-summary__scroll::-webkit-scrollbar-track {
  margin: 8px 0;
  background: rgba(35, 31, 49, 0.06);
  border-radius: 999px;
}

.product-summary__scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(35, 31, 49, 0.28);
}

.product-summary__scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(35, 31, 49, 0.42);
}

.product-summary__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(143, 43, 131, 0.12);
}

.product-summary__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 26px;
  font-weight: 600;
  margin: 14px 0 10px;
  letter-spacing: -0.02em;
}

.product-summary__price .price-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.product-summary__price .price-old {
  font-size: 0.72em;
}

.product-summary__price .price-weight {
  margin-top: 4px;
  font-size: 0.58em;
  font-weight: 500;
  color: #8a8790;
}

.product-summary__badges {
  display: none;
}

.product-summary__vendor {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.3;
}

.product-summary__vendor-label {
  color: #8b93a3;
  font-weight: 500;
}

.product-summary__vendor-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef0f4;
  color: #2f3542;
  font-weight: 700;
}

.product-summary__article {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.product-summary__lead {
  display: none;
}

.product-summary__sizehint {
  margin: 8px 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.option-block {
  margin: 26px 0;
}

.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.size-chip {
  min-width: 0;
  width: 44px;
  height: 32px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(143, 43, 131, 0.2);
  background: rgba(143, 43, 131, 0.035);
  color: rgba(143, 43, 131, 0.58);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.size-chip:hover {
  border-color: rgba(143, 43, 131, 0.45);
  background: rgba(143, 43, 131, 0.06);
  color: var(--accent);
}

.size-chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(143, 43, 131, 0.22);
}

.size-chip.is-active:hover {
  background: rgba(143, 43, 131, 0.1);
}

.product-summary .size-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.product-summary .size-chip {
  width: 100%;
  height: 46px;
  font-size: 15px;
  font-weight: 600;
}

.product-buybar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-qty {
  height: 48px;
  border: 1px solid rgba(39, 49, 69, 0.14);
  border-radius: 16px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
}

.product-qty__btn {
  width: 48px;
  height: 48px;
  border: 0;
  background: #fff;
  color: rgba(39, 49, 69, 0.55);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.product-qty__btn:hover:not(:disabled) {
  color: var(--accent);
  background: rgba(143, 43, 131, 0.05);
}

.product-qty__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.product-qty__value {
  width: 48px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: rgba(39, 49, 69, 0.86);
}

.product-buybar__buy {
  flex: 1;
  height: 48px;
  border-radius: 16px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.product-buybar__buy:hover {
  background: var(--accent-dark);
}

.product-buybar__buy.is-added {
  background: #6f1f66;
}

.product-buybar__wish {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(143, 43, 131, 0.45);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.product-buybar__wish:hover {
  background: rgba(143, 43, 131, 0.06);
  border-color: var(--accent);
}

.product-buybar__wish svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.product-availability {
  margin-top: 10px;
  background: #e9fbf0;
  border: 1px solid rgba(28, 122, 69, 0.18);
  border-radius: 16px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1c7a45;
  font-weight: 700;
  font-size: 12px;
}

.product-availability.is-low {
  background: #fff7e8;
  border-color: rgba(176, 106, 18, 0.22);
  color: #9a5b0c;
}

.product-availability.is-empty {
  background: #fff1f0;
  border-color: rgba(180, 35, 24, 0.18);
  color: #b42318;
}

.product-availability__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
}

.product-fulfillment {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 8px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.product-fulfillment__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.product-fulfillment__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #9aa1ad;
}

.product-fulfillment__icon svg {
  width: 22px;
  height: 22px;
}

.product-fulfillment__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.product-fulfillment__text strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1d24;
}

.product-fulfillment__text span {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #8b93a3;
}

.summary-meta {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 26px;
}

.summary-meta div {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-alt);
  border: 1px solid rgba(143, 43, 131, 0.08);
}

.summary-meta strong {
  display: block;
  margin-bottom: 4px;
}

.product-summary__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(35, 31, 49, 0.1);
}

.tab-button {
  border: 0;
  background: transparent;
  padding: 0 0 14px;
  border-radius: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: #8b93a3;
  cursor: pointer;
  position: relative;
}

.tab-button.is-active {
  background: transparent;
  color: #1a1d24;
  font-weight: 700;
}

.tab-button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.product-tabs {
  width: 100%;
  /* Не шире ряда галереи: правый край = граница главной картинки */
  max-width: var(--product-gallery-width, 706px);
}

.product-info-card {
  background: #fff;
  border: 1px solid rgba(35, 31, 49, 0.1);
  border-radius: 16px;
  padding: 32px 36px;
}

.product-info-card__title {
  margin: 0 0 18px;
  color: #1a1d24;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.product-info-card__subtitle {
  margin: 0 0 14px;
  color: #1a1d24;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.product-info-card__body {
  color: #3a3f4b;
  font-size: 15px;
  line-height: 1.7;
}

.product-info-card__body p {
  margin: 0 0 16px;
}

.product-info-card__body p:last-child {
  margin-bottom: 0;
}

.product-info-card__body strong {
  color: #1a1d24;
  font-weight: 700;
}

.product-info-features {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.product-info-features li {
  position: relative;
  margin: 0;
  padding-left: 1.15em;
  color: #3a3f4b;
  line-height: 1.65;
}

.product-info-features li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
  color: inherit;
}

.product-info-features strong {
  color: #1a1d24;
  font-weight: 700;
}

.product-specs-list {
  margin: 0;
  padding: 0;
}

.product-specs-list__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(35, 31, 49, 0.1);
}

.product-specs-list__row:last-child {
  border-bottom: 1px solid rgba(35, 31, 49, 0.1);
}

.product-specs-list__row dt {
  margin: 0;
  color: #8b93a3;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.product-specs-list__row dd {
  margin: 0;
  color: #1a1d24;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-align: right;
}

.product-reviews-list {
  display: grid;
  gap: 0;
  margin-bottom: 28px;
}

.product-review {
  padding: 16px 0;
  border-top: 1px solid rgba(35, 31, 49, 0.1);
}

.product-review:last-child {
  border-bottom: 1px solid rgba(35, 31, 49, 0.1);
  margin-bottom: 8px;
}

.product-review__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.product-review__head strong {
  color: #1a1d24;
  font-size: 15px;
}

.product-review__head span {
  color: #8b93a3;
  font-size: 13px;
}

.product-review__rating {
  margin-bottom: 8px;
  color: var(--accent);
  letter-spacing: 1px;
  font-size: 14px;
}

.product-review p {
  margin: 0;
  color: #3a3f4b;
  font-size: 15px;
  line-height: 1.65;
}

.product-review__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.product-review__photo {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(35, 31, 49, 0.1);
}

.product-review__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-reviews-empty {
  margin: 0 0 24px;
  color: #8b93a3;
  font-size: 15px;
  line-height: 1.6;
}

.rich-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.rich-copy ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.spec-grid {
  grid-template-columns: repeat(2, 1fr);
}

.spec-item {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface-alt);
  border: 1px solid rgba(143, 43, 131, 0.08);
}

.spec-item span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.review-form {
  display: grid;
  gap: 16px;
}

.review-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.review-form__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a1d24;
}

.review-form__label em {
  margin-left: 4px;
  color: #8b93a3;
  font-style: normal;
  font-weight: 500;
}

.review-form__rating,
.review-form__photos {
  display: grid;
  gap: 0;
}

.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.review-star {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d5d8de;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.review-star.is-active,
.review-star.is-preview {
  color: var(--accent);
}

.review-star:hover {
  transform: scale(1.08);
}

.review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.review-photos:empty {
  display: none;
  margin: 0;
}

.review-photos__item {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  background: #f2f2f4;
}

.review-photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-photos__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(26, 29, 36, 0.72);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.review-photos__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 16px;
  border: 1px dashed rgba(143, 43, 131, 0.35);
  border-radius: 16px;
  background: rgba(143, 43, 131, 0.04);
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.review-photos__add:hover {
  background: rgba(143, 43, 131, 0.08);
}

.review-form__required {
  color: var(--accent);
}

.review-form__error {
  margin: 8px 0 0;
  color: #c0392b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.review-form__note {
  margin: 0;
  color: #8b93a3;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}

.review-form__status {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.review-form__status.is-success {
  color: #1f7a45;
}

.review-form__status.is-error {
  color: #c0392b;
}

.review-form input.is-invalid,
.review-form textarea.is-invalid {
  border-color: rgba(192, 57, 43, 0.55);
}

.review-photos__hint {
  margin: 8px 0 0;
  color: #8b93a3;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}

.review-form__submit {
  width: fit-content;
  min-width: 160px;
  height: 48px;
  padding: 0 28px;
  border-radius: 16px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.review-form__submit:hover {
  background: var(--accent-dark);
}

.review-form input,
.review-form select,
.review-form textarea,
.size-guide__card input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
}

.info-columns {
  grid-template-columns: repeat(2, 1fr);
}

.service-tabs {
  width: 100%;
  max-width: 100%;
}

.service-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.service-tabs__button {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(35, 31, 49, 0.12);
  border-radius: 16px;
  background: #fff;
  color: #2f3542;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.service-tabs__button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.service-tabs__label--short {
  display: none;
}

.service-tabs__panel[hidden] {
  display: none;
}

.service-tabs__panel {
  display: block;
}

.size-guide__card {
  display: grid;
  gap: 16px;
}

.size-guide__result {
  margin: 0;
  font-size: 20px;
}

@media (max-width: 980px) {
  .product-layout,
  .about__grid,
  .size-guide,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .product-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .product-layout__main {
    display: contents;
    width: 100%;
  }

  .product-gallery {
    order: 1;
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    align-self: stretch;
    gap: 10px;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
  }

  .product-gallery__main {
    flex: none;
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    min-height: 0;
    margin-inline: 0;
    border-radius: var(--radius);
  }

  .product-gallery__thumbs {
    flex: none;
    flex-direction: row;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 2px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .product-gallery__thumbs .thumb {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 12px;
  }

  .product-summary {
    order: 2;
    position: static;
    align-self: stretch;
    width: 100%;
    max-width: none;
    padding: 0;
    box-sizing: border-box;
    border-radius: var(--radius);
    overflow: visible;
    max-height: none;
  }

  .product-summary__scroll {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overscroll-behavior: auto;
    padding: 20px 18px 24px;
  }

  .product-layout .product-layout__main > .section.product-tabs,
  .product-layout .product-layout__main > .section.service-tabs {
    order: 3;
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .product-tabs,
  .service-tabs {
    max-width: none;
  }

  .service-tabs__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .service-tabs__button {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .service-tabs__label--full {
    display: none;
  }

  .service-tabs__label--short {
    display: inline;
  }

  .product-layout .product-layout__main > .section.service-tabs {
    order: 4;
  }

  .product-lines-place {
    display: none;
  }

  .product-buybar {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .product-buybar__buy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .product-summary .size-chip {
    height: 40px;
    font-size: 14px;
  }

  .product-summary h1 {
    font-size: clamp(20px, 5.5vw, 24px);
    line-height: 1.25;
  }

  .product-summary__price {
    font-size: clamp(22px, 6vw, 26px);
    margin-top: 10px;
  }

  .categories__grid,
  .product-grid,
  .about__stats,
  .info-columns,
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* featured-carousel ширина управляется JS через --featured-card-width */

  .banner-slider,
  .banner-slider__track {
    min-height: 420px;
  }

  .banner-slide {
    padding: 36px;
  }

  /* стрелки остаются, чтобы была навигация карусели */

  .about-card {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .about.section .about-card {
    gap: 24px;
  }

  .about-card--page {
    gap: 10px;
  }

  .about-card__content p {
    max-width: none;
  }

  .about.section .about-card__visual {
    min-height: 280px;
  }

  .about-card--page .about-card__visual {
    min-height: 0;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }
}

@media (max-width: 1280px) {
  .header-main {
    grid-template-columns: max-content minmax(0, 1fr) max-content max-content max-content;
    gap: 6px;
  }

  .catalog-button {
    padding: 0 12px;
  }

  .catalog-button__label {
    min-width: 46px;
    font-size: 14px;
  }

  .searchbar input {
    padding: 0 10px;
    font-size: 14px;
  }

  .search-button {
    width: 42px;
    height: 44px;
  }

  .header-phone {
    gap: 6px;
    font-size: 13px;
  }

  .header-phone span {
    letter-spacing: -0.01em;
  }

  .header-icons {
    gap: 8px;
  }

  .header-icon {
    width: 20px;
    height: 20px;
  }

  .catalog-panel__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  /* Чёрная минишапка уходит в бургер */
  .topbar__row {
    display: none;
  }

  .partner-bar__inner {
    min-height: 26px;
    padding-top: 0;
    padding-bottom: 0;
    justify-content: flex-start;
  }

  .partner-bar p {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    width: 100%;
    min-height: 26px;
    font-size: clamp(7px, 2.15vw, 10px);
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
  }

  .partner-bar__lead--full {
    display: inline;
    flex: 0 1 auto;
    min-width: 0;
  }

  .partner-bar__lead--short {
    display: none;
  }

  .partner-bar__phone {
    flex: none;
    display: inline;
    margin-left: 0;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    white-space: nowrap;
  }

  .partner-bar__phone:hover {
    opacity: 0.85;
    color: #fff;
  }

  .header__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    column-gap: 6px;
    row-gap: 0;
    min-height: 64px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .header-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    grid-row: 1;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
  }

  .header-search-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .header-search-toggle:active {
    opacity: 0.72;
  }

  .header-mobile-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
  }

  .header-mobile-icons .header-icon {
    width: 36px;
    height: 36px;
  }

  .header-mobile-icons .header-icon svg {
    width: 22px;
    height: 22px;
  }

  .header-mobile-icons .header-icon--wish svg {
    fill: currentColor;
    stroke: none;
  }

  .menu-toggle {
    display: block;
    grid-column: 5;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    order: unset;
  }

  .header.is-search-open .header__row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .header.is-search-open .header-main {
    display: flex;
    grid-column: 2;
  }

  .header.is-search-open .header-mobile-icons,
  .header.is-search-open .menu-toggle {
    display: none;
  }

  .header.is-search-open .header-search-toggle {
    grid-column: 3;
  }

  .header-main {
    display: none;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    min-width: 0;
    width: 100%;
  }

  .header-main .catalog-button,
  .header-main .search-button,
  .header-main .header-phone,
  .header-main .header-icons {
    display: none !important;
  }

  .header-main .searchbar {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .header-main .searchbar input {
    height: 40px;
    padding: 0 10px;
    font-size: 14px;
  }

  .search-suggest {
    top: calc(100% + 7px);
    max-height: min(62vh, 460px);
    border-radius: 14px;
  }

  .search-suggest__item {
    grid-template-columns: 42px minmax(0, 1fr) max-content;
    min-height: 52px;
    padding: 6px;
  }

  .search-suggest__media {
    width: 42px;
    height: 42px;
  }

  .search-suggest__title {
    font-size: 13px;
  }

  .search-suggest__price {
    font-size: 12px;
  }

  .searchbar__empty-msg {
    font-size: 12px;
    line-height: 1.1;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .catalog-panel {
    display: none !important;
  }

  .banner.section {
    margin: 0;
    padding: 0;
  }

  .header-mobile-nav.nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .nav.is-open {
    display: grid;
    width: 100%;
    max-height: none;
    margin: 0;
    padding: 10px 2px 28px;
    gap: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #fff;
  }

  /* Полноэкранное меню: сайт под ним не виден, скролл только внутри */
  body.is-nav-open .header {
    position: fixed;
    inset: 0;
    z-index: 40;
    height: 100dvh;
    max-height: 100dvh;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-bottom: 0;
  }

  body.is-nav-open .header > .header__row {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    align-content: start;
    align-items: start;
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.is-nav-open .nav.is-open {
    height: 100%;
    min-height: 0;
    align-content: start;
    touch-action: pan-y;
  }

  .nav.is-open .mobile-nav__section > a {
    padding: 10px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
  }

  .nav.is-open .mobile-nav__section > a:active {
    color: var(--accent);
  }

  .mobile-nav__meta {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 4px 0 0;
    padding: 16px 8px 4px;
    border: 0;
    border-top: 1px solid rgba(39, 49, 69, 0.1);
    border-radius: 0;
    background: transparent;
    color: rgba(39, 49, 69, 0.72);
    text-align: center;
  }

  .mobile-nav__meta .mobile-nav__label {
    margin: 0 0 2px;
    text-align: center;
  }

  .mobile-nav__office,
  .mobile-nav__hours {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
  }

  .mobile-nav__hours {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .mobile-nav__meta .topbar__highlight {
    margin-left: 0;
    min-height: 20px;
    padding: 0 8px;
    font-size: 11px;
  }

  .mobile-nav__mail {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
  }

  .mobile-nav__mail svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
  }

  .mobile-nav__section {
    display: grid;
    gap: 2px;
  }

  .mobile-nav__label {
    margin: 0 0 6px;
    padding: 0 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(39, 49, 69, 0.55);
  }

  .mobile-nav__catalog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 8px 6px 18px;
    margin: 0 -2px;
    overflow: visible;
  }

  .mobile-nav__catalog .catalog-card {
    opacity: 1;
    transform: none;
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 8px;
    border-radius: 12px;
    border: 0;
    background-color: #8a6559;
    box-shadow:
      0 2px 6px rgba(33, 40, 60, 0.08),
      0 10px 22px rgba(33, 40, 60, 0.16);
  }

  .mobile-nav__catalog .catalog-card__title {
    font-size: 11px;
    line-height: 1.2;
  }

  .mobile-nav__catalog .catalog-card__count {
    margin-top: 4px;
    font-size: 10px;
  }

  .mobile-nav__phones {
    display: grid;
    gap: 10px;
    margin-top: 4px;
  }

  .nav.is-open .mobile-nav__phone {
    display: grid;
    gap: 2px;
    padding: 10px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent);
    text-align: left;
    text-decoration: none;
  }

  .mobile-nav__phone-label {
    font-size: 12px;
    font-weight: 600;
    color: #8a8693;
  }

  .mobile-nav__phone-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
  }
}

@media (max-width: 760px) {
  .section-heading,
  .categories__grid,
  .product-grid,
  .about__stats,
  .summary-meta,
  .info-columns,
  .spec-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .partner-bar p {
    font-size: clamp(6.5px, 2vw, 9px);
    gap: 2px;
  }

  .partner-bar__phone {
    background: none;
    padding: 0;
    min-height: 0;
    font-size: inherit;
  }

  .banner.section {
    margin: 0;
    padding: 0;
  }

  .banner-slider,
  .banner-slider__track {
    min-height: 320px;
  }

  .banner-slide {
    padding: 24px;
  }

  .banner-slide__caption-text {
    font-size: clamp(18px, 6vw, 28px);
  }

  .banner-slide__caption--bottom {
    bottom: 14%;
  }

  .sale-section__head {
    margin-bottom: 14px;
  }

  .sale-section__head h2 {
    font-size: 22px;
  }

  .sale-viewport {
    overflow: hidden;
  }

  .sale-card {
    height: 232px;
    min-height: 232px;
    border-radius: 14px;
  }

  .sale-card__media {
    border-radius: 14px;
  }

  .sale-card__image {
    object-fit: cover;
    object-position: right center;
  }

  .sale-card:hover .sale-card__image {
    transform: none;
  }

  .sale-card__content {
    width: min(52%, 200px);
    max-width: none;
    padding: 16px 8px 44px 16px;
    justify-content: flex-start;
    overflow: visible;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.94) 55%,
      rgba(255, 255, 255, 0.55) 78%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .sale-card__eyebrow {
    font-size: 10px;
    margin: 0 0 4px;
    letter-spacing: 0.02em;
  }

  .sale-card__title {
    font-size: 16px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .sale-card__text {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .sale-card__prices {
    margin-top: 8px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .sale-card__price {
    font-size: 17px;
  }

  .sale-card__oldprice {
    font-size: 13px;
  }

  .sale-card__buy {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    left: 16px;
    bottom: 14px;
    margin-top: 0;
    padding-top: 0;
    font-size: 14px;
  }

  .sale-dots {
    margin-top: 14px;
  }

  .promo-banner-section {
    margin-top: 0;
    padding-top: 36px;
  }

  .promo-banner-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .promo-banner-card,
  .promo-banner-card--large {
    grid-row: auto;
    min-height: 240px;
  }

  .promo-banner-section__head h2 {
    font-size: 12px;
  }

  .promo-banner-card__eyebrow {
    margin-bottom: 4px;
    font-size: 6.5px;
  }

  .promo-banner-card__title {
    font-size: 12.5px;
  }

  .promo-banner-card__title,
  .promo-banner-card--small .promo-banner-card__title {
    max-width: 72%;
  }

  .promo-banner-card--small .promo-banner-card__title {
    font-size: 10.5px;
  }

  .promo-banner-card__text {
    margin-top: 5px;
    font-size: 8px;
  }

  .promo-banner-card__text,
  .promo-banner-card--small .promo-banner-card__text {
    max-width: 66%;
  }

  .promo-banner-card--small .promo-banner-card__text {
    font-size: 7.5px;
  }

  .promo-banner-card__cta {
    font-size: 7.5px;
    padding-bottom: 2px;
    border-bottom-width: 1px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .featured-grid .featured-card__hover,
  .catalog-products .featured-card__hover {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    position: static;
    margin-top: 14px;
    padding: 0;
    box-shadow: none;
    min-height: 0;
    gap: 12px;
  }

  .featured-grid .featured-card,
  .catalog-products .featured-card {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
  }

  .featured-grid .featured-card__body,
  .catalog-products .featured-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .featured-grid .featured-card__sizes,
  .catalog-products .featured-card__sizes {
    margin: 0;
  }

  .featured-grid .featured-card__buy,
  .catalog-products .featured-card__buy {
    margin-top: auto;
    flex-shrink: 0;
  }

  .banner-slider__arrow {
    width: 42px;
    height: 42px;
    margin-top: -21px;
  }

  .banner-slider__arrow--prev {
    left: 12px;
  }

  .banner-slider__arrow--next {
    right: 12px;
  }

  .banner-slider__dots {
    bottom: 12px;
    gap: 5px;
  }

  .banner-slider__dot {
    width: 6px;
    height: 6px;
  }

  .banner-slider__dot.is-active {
    width: 16px;
  }

  .hero__feature {
    min-height: 340px;
  }

  .product-info-card {
    padding: 22px 18px;
  }

  /* На мобилке телефоны и почта — в блоке «Наш офис» снизу */
  .footer__brandcol .footer__contacts--desktop {
    display: none;
  }

  .footer__contacts--mobile {
    display: grid;
    gap: 10px;
    margin-top: 14px;
  }

  .footer__office-orders-mobile {
    display: inline;
  }

  .footer__col--office .footer__office-note {
    display: none;
  }

  .footer__grid {
    display: flex;
    flex-direction: column;
  }

  .footer__brandcol {
    order: 1;
  }

  .footer__col--catalog {
    order: 2;
  }

  .footer__col--clients {
    order: 3;
  }

  .footer__col--office {
    order: 4;
  }

  .product-info-card__title {
    font-size: 22px;
  }

  .product-specs-list__row {
    gap: 12px;
    padding: 14px 0;
  }

  .product-gallery__thumbs .thumb {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
  }

  .about-card__content h2 {
    font-size: 26px;
  }

  .about-card__content p {
    font-size: 16px;
    line-height: 1.62;
  }

  .about.section .about-card__visual {
    min-height: 260px;
  }

  .about-card--page .about-card__visual {
    min-height: 0;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .brand__logo,
  .brand__mark {
    height: 38px;
  }

  .menu-toggle span {
    width: 24px;
    left: 4px;
  }

  .promo-banner-section__head h2 {
    font-size: 12px;
  }

  .promo-banner-card,
  .promo-banner-card--large {
    min-height: 210px;
    border-radius: 16px;
  }

  .promo-banner-card__overlay,
  .promo-banner-card--small .promo-banner-card__overlay {
    padding: 12px 12px 36px;
  }

  .promo-banner-card__cta {
    left: 12px;
    bottom: 12px;
  }

  .promo-banner-card__title,
  .promo-banner-card--small .promo-banner-card__title {
    max-width: 76%;
  }

  .promo-banner-card__text,
  .promo-banner-card--small .promo-banner-card__text {
    max-width: 74%;
  }

  .about.section .about-card {
    padding: 20px;
    border-radius: 16px;
    gap: 28px;
  }

  .about-card--page {
    padding: 20px;
    border-radius: 16px;
    gap: 8px;
  }

  .about-card__content h2 {
    margin-bottom: 14px;
    font-size: 22px;
  }

  .about-card__content p {
    font-size: 15px;
    line-height: 1.58;
  }

  .about.section .about-card__visual {
    min-height: 240px;
  }

  .about-card--page .about-card__visual {
    min-height: 0;
  }

  .about-card__visual::after {
    left: 12%;
    right: 12%;
    bottom: 18px;
  }

  .footer {
    padding: 28px 0 20px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__about {
    max-width: none;
  }

  .footer__about-line {
    white-space: normal;
  }

  .footer__socials {
    gap: 12px;
  }

  /* На мобилке телефоны и почта — в блоке «Наш офис» снизу */
  .footer__brandcol .footer__contacts--desktop {
    display: none;
  }

  .footer__contacts--mobile {
    display: grid;
    gap: 10px;
    margin-top: 14px;
  }

  .footer__office-orders-mobile {
    display: inline;
  }

  .footer__col--office .footer__office-note {
    display: none;
  }

  .footer__brandcol {
    order: 1;
  }

  .footer__col--catalog {
    order: 2;
  }

  .footer__col--clients {
    order: 3;
  }

  .footer__col--office {
    order: 4;
  }
}

/* ---- Extra breakpoints: large tablets / small laptops / phones ---- */
@media (max-width: 1400px) {
  :root {
    --container: min(1140px, calc(100vw - 28px));
  }
}

@media (max-width: 1200px) and (min-width: 981px) {
  .catalog-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 1200px) and (min-width: 981px) {
  .product-layout {
    --product-rail-gap: 16px;
    --product-summary-width: 300px;
    grid-template-columns: minmax(0, max-content) var(--product-summary-width);
    gap: var(--product-rail-gap);
  }

  .product-summary {
    width: var(--product-summary-width);
    max-width: var(--product-summary-width);
  }
}

@media (max-width: 1200px) {
  .catalog-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-results__head h1,
  .breadcrumbs + .catalog-layout .catalog-results__head h1 {
    font-size: 26px;
  }

  .catalog-panel__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .header-main {
    gap: 8px;
  }

  .header-phone span {
    font-size: 12px;
  }

  .categories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .catalog-results {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .catalog-page {
    padding-bottom: 32px;
  }

  .catalog-filters {
    padding: 14px;
  }

  .catalog-filters.is-mobile-open {
    padding: 0;
  }

  .catalog-toolbar {
    gap: 12px;
    padding: 10px 12px;
  }

  .catalog-toolbar__field {
    width: 100%;
    flex-wrap: wrap;
  }

  .catalog-toolbar__field--limit {
    width: 100%;
  }

  .catalog-select {
    min-width: 0;
    flex: 1 1 180px;
  }

  .catalog-results__head h1 {
    font-size: 24px;
  }

  .catalog-panel__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(1140px, calc(100vw - 20px));
  }

  .catalog-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 80px;
  }

  .catalog-filter {
    padding: 10px;
  }

  .catalog-filters__apply {
    min-height: 42px;
  }

  .categories__grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .breadcrumbs {
    flex-wrap: wrap;
    gap: 4px 0;
  }

  .breadcrumbs__current {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .catalog-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-limit {
    gap: 6px;
  }

  .catalog-limit__chip {
    min-width: 36px;
    height: 28px;
    padding: 0 8px;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .featured-grid .featured-card__title,
  .catalog-products .featured-card__title {
    font-size: 13px;
    line-height: 1.3;
  }

  .featured-grid .featured-card__price,
  .catalog-products .featured-card__price {
    font-size: 14px;
  }

  .featured-grid .featured-card__body,
  .catalog-products .featured-card__body {
    padding: 8px 8px 10px;
  }

  .featured-grid .featured-card__meta,
  .catalog-products .featured-card__meta {
    font-size: 10px;
    gap: 4px;
  }

  .featured-grid .featured-card__wish,
  .catalog-products .featured-card__wish {
    width: 30px;
    height: 30px;
    top: 8px;
    right: 8px;
  }

  .featured-grid .featured-card,
  .catalog-products .featured-card {
    border-radius: 12px;
  }

  .featured-grid .featured-card__media,
  .catalog-products .featured-card__media {
    border-radius: 12px 12px 0 0;
  }

  .product-badges {
    top: 8px;
    left: 8px;
    gap: 4px;
  }

  .product-badges span {
    font-size: 9px;
    padding: 3px 6px;
  }

  .product-summary__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-buybar {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    align-self: stretch;
    width: 100%;
    gap: 10px;
  }

  .product-qty {
    flex: 0 0 auto;
  }

  .product-buybar__buy {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .button {
    width: 100%;
  }

  .product-gallery__actions {
    top: 10px;
    right: 10px;
    gap: 8px;
  }

  .product-gallery__action {
    width: 38px;
    height: 38px;
  }

  .categories__grid,
  .product-grid,
  .about__stats,
  .info-columns,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .banner-slide h1,
  .banner-slide__title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .section {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .banner.section {
    margin: 0;
    padding: 0;
  }

  .catalog-panel__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .container {
    width: calc(100% - 16px);
  }

  .catalog-filters,
  .catalog-toolbar,
  .product-info-card {
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-summary__scroll {
    padding: 16px 14px 26px;
  }

  .size-chip {
    width: 40px;
    height: 30px;
  }
}

/* На витринах размер выбирается только после перехода в карточку товара. */
@media (hover: none), (max-width: 900px) {
  .featured-grid .featured-card__buy,
  .catalog-products .featured-card__buy {
    margin-top: auto;
  }
}

/* Блокировка альбомной ориентации на телефонах и планшетах */
.orientation-lock {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(143, 43, 131, 0.18), transparent 42%),
    rgba(20, 16, 28, 0.92);
  color: #fff;
}

.orientation-lock[hidden] {
  display: none !important;
}

.orientation-lock__card {
  width: min(420px, 100%);
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  backdrop-filter: blur(10px);
}

.orientation-lock__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  color: #f4d7ee;
}

.orientation-lock__icon svg {
  width: 100%;
  height: 100%;
}

.orientation-lock__card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.orientation-lock__card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

body.is-orientation-locked {
  overflow: hidden !important;
  touch-action: none;
}

body.is-orientation-locked .site-shell {
  visibility: hidden;
}

.cart-page {
  padding-bottom: 48px;
}

.cart-page__title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: #1a1d24;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.cart-main {
  min-width: 0;
  display: grid;
  gap: 28px;
}

.cart-checkout {
  padding: 24px;
  border: 1px solid rgba(35, 31, 49, 0.1);
  border-radius: 20px;
  background: #fff;
  overflow: visible;
}

.cart-form {
  display: grid;
  gap: 14px;
  overflow: visible;
}

.cart-checkout__title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1d24;
}

.cart-checkout__stack {
  display: grid;
  gap: 22px;
}

.cart-checkout__block--delivery,
.cart-checkout__block--contacts,
.cart-checkout__block--payment {
  min-width: 0;
}

.cart-checkout__block--contacts .cart-checkout__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cart-checkout__block--contacts .cart-field:last-child {
  grid-column: 1 / -1;
}

.cart-checkout__heading {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-checkout__fields {
  display: grid;
  gap: 12px;
}

.cart-layout.is-empty,
.cart-layout.is-success {
  grid-template-columns: 1fr;
}

.cart-list {
  min-width: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  animation: cart-item-in 0.35s ease both;
}

.cart-item:first-child {
  padding-top: 0;
}

@keyframes cart-item-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-item__media {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  background: #f2f2f4;
  pointer-events: auto;
  cursor: pointer;
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cart-item__meta {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.cart-item__title {
  display: block;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1d24;
  overflow-wrap: anywhere;
}

.cart-item__title:hover {
  color: var(--accent);
}

.cart-item__spec {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.cart-item__size-note {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.cart-item__availability {
  margin-top: 10px;
  width: fit-content;
  max-width: 100%;
  font-size: 13px;
  font-weight: 600;
}

.cart-item__remove {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(39, 49, 69, 0.45);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cart-item__remove:hover {
  color: #df435b;
}

.cart-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.cart-item__qty {
  height: 40px;
}

.cart-item__qty .product-qty__btn {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.cart-item__qty .product-qty__value {
  width: 36px;
  font-size: 14px;
}

.cart-item__price {
  font-size: 18px;
  font-weight: 800;
  color: #1a1d24;
}

.cart-item__price.price--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cart-item__price .price-values {
  justify-content: flex-end;
}

.cart-item__price .price-weight {
  display: block;
  width: auto;
  max-width: 100%;
  margin-top: 0;
  font-size: 0.72em;
  font-weight: 500;
  color: #8a8790;
  text-align: right;
  white-space: nowrap;
}

.cart-item__price .price-old {
  font-size: 0.78em;
  font-weight: 400;
}

.cart-item__price-wrap {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.cart-item__open {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.cart-item__open:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-empty {
  max-width: 420px;
  padding: 48px 0 24px;
}

.cart-empty__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #1a1d24;
}

.cart-empty__text {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.cart-summary {
  position: sticky;
  top: 100px;
  align-self: start;
  width: 100%;
  max-height: calc(100dvh - 120px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 2;
  padding: 20px;
  border: 1px solid rgba(35, 31, 49, 0.1);
  border-radius: 16px;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: rgba(35, 31, 49, 0.25) transparent;
}

.cart-summary::-webkit-scrollbar {
  width: 6px;
}

.cart-summary::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(35, 31, 49, 0.22);
}

.cart-summary h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
}

.cart-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

.cart-summary__row[hidden] {
  display: none !important;
}

.cart-summary__row strong {
  color: var(--text);
  font-weight: 700;
}

.cart-summary__row--total {
  margin-top: 4px;
  margin-bottom: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text);
}

.cart-summary__delivery-pick {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text);
}

.cart-summary__delivery-action {
  border: 0;
  padding: 0;
  margin-left: auto;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.cart-summary__delivery-action:hover {
  text-decoration: underline;
}

.cart-summary__delivery-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.cart-summary__delivery-action[hidden],
.cart-summary__delivery-value[hidden] {
  display: none !important;
}

.cart-checkout__block--delivery.is-attention,
.cart-checkout__block--payment.is-attention {
  animation: cartDeliveryPulse 0.9s ease;
}

@keyframes cartDeliveryPulse {
  0%,
  100% {
    box-shadow: none;
  }

  40% {
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
}

.cart-summary__row--total strong {
  font-size: 20px;
  font-weight: 800;
}

.cart-summary__row--discount {
  color: #8a4a52;
}

.cart-summary__row--discount strong {
  color: #8a4a52;
}

.cart-summary__note {
  margin: -2px 0 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.cart-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.cart-field--city {
  position: relative;
  z-index: 1;
  gap: 8px;
}

.cart-field--city:focus-within {
  z-index: 20;
}

.cart-field--pvz {
  position: relative;
  z-index: 1;
}

.cart-field__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.cart-field__label em {
  font-style: normal;
  color: var(--accent);
}

.cart-field__control {
  position: relative;
}

.cart-field input,
.cart-field select,
.cart-field textarea,
.cart-form input,
.cart-form select,
.cart-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
}

.cart-field select {
  padding-right: 36px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238a8790' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
  z-index: 1;
}

.cart-field textarea {
  min-height: 92px;
  resize: vertical;
}

.cart-field input:focus,
.cart-field select:focus,
.cart-field textarea:focus,
.cart-form input:focus,
.cart-form select:focus,
.cart-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(143, 43, 131, 0.12);
}

.cart-field input.is-invalid,
.cart-form input.is-invalid {
  border-color: rgba(192, 57, 43, 0.55);
}

.cart-delivery {
  display: grid;
  gap: 14px;
}

.cart-delivery__panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(35, 31, 49, 0.08);
  border-radius: 16px;
  background: #faf9fb;
  overflow: visible;
}

.cart-delivery__panel[hidden] {
  display: none !important;
}

.cart-delivery__lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.cart-delivery__fixed-city {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.cart-delivery__address-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 110px;
  gap: 10px;
}

.cart-delivery__address-grid:has([data-cdek-flat-wrap][hidden]) {
  grid-template-columns: minmax(0, 1fr) 120px;
}

.cart-delivery__private {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}

.cart-delivery__private input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.cart-delivery__modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #f3f1f5;
}

.cart-delivery__mode {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.cart-delivery__mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cart-delivery__mode span {
  pointer-events: none;
}

.cart-delivery__mode:has(input:checked) {
  color: var(--text);
  background: #fff;
  box-shadow: 0 1px 3px rgba(35, 31, 49, 0.08);
}

.cart-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cart-payment-methods__loading,
.cart-payment-methods__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #faf9fb;
  color: var(--muted);
  font-size: 13px;
}

.cart-payment-method {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cart-payment-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cart-payment-method__name {
  padding-right: 24px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.cart-payment-method__name::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(35, 31, 49, 0.25);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #fff;
}

.cart-payment-method__description,
.cart-payment-method__notice {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.cart-payment-method__notice {
  color: #9a5b16;
}

.cart-payment-method:has(input:checked) {
  border-color: var(--accent);
  background: rgba(143, 43, 131, 0.035);
  box-shadow: 0 0 0 2px rgba(143, 43, 131, 0.09);
}

.cart-payment-method:has(input:checked) .cart-payment-method__name::after {
  border-color: var(--accent);
  background: var(--accent);
}

.cart-payment-method.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.cart-delivery__suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  z-index: 30;
  display: grid;
  gap: 2px;
  max-height: min(220px, 42vh);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(33, 40, 60, 0.14);
  touch-action: pan-y;
}

.cart-delivery__suggest[hidden] {
  display: none !important;
}

.cart-delivery__suggest-empty {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.cart-delivery__suggest button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cart-delivery__suggest button:hover {
  background: rgba(143, 43, 131, 0.08);
}

.cart-delivery__status {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.cart-delivery__status.is-error {
  color: #c0392b;
}

.cart-success__cdek {
  font-weight: 600;
  color: var(--text);
}

.cart-form__error {
  margin: 0;
  color: #c0392b;
  font-size: 12px;
  font-weight: 500;
}

.cart-form__submit {
  width: 100%;
  min-height: 48px;
  font-weight: 800;
  font-size: 15px;
}

.cart-form__submit--desktop {
  margin-top: 4px;
}

.cart-form__submit--mobile {
  display: none;
}

.cart-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.cart-form .cart-form__consent input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  box-sizing: border-box;
  flex: 0 0 14px;
  width: 14px;
  min-width: 14px;
  max-width: 14px;
  height: 14px;
  min-height: 14px;
  max-height: 14px;
  margin: 1px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--accent);
}

.cart-form__consent-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-form__consent-text a:hover {
  color: var(--accent);
}

.cart-form__consent.is-invalid {
  color: #c0392b;
}

.cart-form__consent.is-invalid input {
  outline: 1px solid #c0392b;
  outline-offset: 1px;
}

.cart-form__consent--mobile {
  display: none;
}

.cart-empty .button,
.cart-success .button {
  min-height: 48px;
  font-weight: 800;
  font-size: 15px;
}

.cart-summary__phone,
.cart-summary__back {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.cart-summary__phone:hover,
.cart-summary__back:hover {
  color: var(--accent);
}

.cart-success {
  max-width: 480px;
  padding: 40px 0 24px;
  animation: cart-item-in 0.4s ease both;
}

.cart-success h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
}

.cart-success p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.cart-success .button {
  margin-bottom: 8px;
}

.cart-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(33, 40, 60, 0.94);
  color: #fff;
  box-shadow: 0 16px 40px rgba(33, 40, 60, 0.22);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cart-toast p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.cart-toast a {
  margin-left: auto;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-toast a:hover {
  opacity: 0.88;
}

@keyframes size-attention {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

@media (max-width: 1200px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
  }
}

@media (max-width: 1100px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
  }

  .cart-item {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
  }

  .cart-item__media {
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 980px) {
  .cart-page {
    padding-bottom: 32px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cart-main {
    display: contents;
  }

  .cart-list {
    grid-row: 1;
  }

  .cart-summary {
    position: static;
    grid-row: 2;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: auto;
    z-index: auto;
  }

  .cart-checkout {
    grid-row: 3;
  }

  .cart-checkout__block--contacts .cart-checkout__fields {
    grid-template-columns: 1fr;
  }

  .cart-delivery__address-grid {
    grid-template-columns: 1fr;
  }

  .cart-checkout__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cart-form__submit--desktop {
    display: none;
  }

  .cart-form__submit--mobile {
    display: inline-flex;
  }

  .cart-form__consent--mobile {
    display: flex;
  }

  .cart-form__consent--desktop {
    display: none;
  }

  .cart-page__title {
    font-size: 24px;
    margin-bottom: 18px;
  }
}

@media (max-width: 760px) {
  .cart-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }

  .cart-item__media {
    width: 96px;
    height: 96px;
  }

  .cart-item__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cart-item__title {
    font-size: 15px;
  }

  .cart-item__footer {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }

  .cart-item__price,
  .cart-item__price.price--stack,
  .cart-item__price-wrap {
    align-items: flex-start;
    justify-items: start;
    text-align: left;
  }

  .cart-item__price .price-values {
    justify-content: flex-start;
  }

  .cart-item__price .price-weight {
    text-align: left;
  }

  .cart-item__qty {
    height: 36px;
  }

  .cart-item__qty .product-qty__btn {
    width: 36px;
    height: 36px;
  }

  .cart-summary {
    padding: 18px;
  }

  .cart-checkout {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .cart-empty {
    padding-top: 32px;
  }
}

@media (max-width: 560px) {
  .cart-payment-methods {
    grid-template-columns: 1fr;
  }

  .cart-payment-method {
    min-height: 78px;
  }

  .cart-page__title {
    font-size: 22px;
  }

  .cart-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-item__media {
    width: 88px;
    height: 88px;
  }

  .cart-item__top {
    gap: 10px;
  }

  .cart-item__title {
    font-size: 14px;
  }

  .cart-item__price {
    font-size: 16px;
  }

  .cart-summary h2 {
    font-size: 18px;
  }

  .cart-summary__row--total strong {
    font-size: 18px;
  }

  .cart-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 380px) {
  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

  .cart-item__media {
    width: 72px;
    height: 72px;
    border-radius: 12px;
  }

  .cart-item__meta {
    font-size: 11px;
  }

  .cart-summary {
    padding: 14px;
  }

  .cart-form input,
  .cart-form textarea {
    padding: 11px 12px;
  }
}

.legal-page {
  padding: 36px 0 56px;
}

.legal-page__container,
.contacts-page__container,
.about-page__container {
  max-width: none;
}

.legal-page__title {
  margin: 18px 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.legal-page__lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

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

.legal-page__content {
  display: grid;
  gap: 16px;
  padding: 30px 34px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  background: #fff;
  border: 1px solid rgba(143, 43, 131, 0.06);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(33, 40, 60, 0.06);
}

.legal-page__content h2 {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.legal-page__content p {
  margin: 0;
}

.legal-page__content ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.legal-page__content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__content a:hover {
  color: var(--accent-dark);
}

@media (max-width: 767px) {
  .legal-page {
    padding: 18px 0 40px;
  }

  .legal-page__content {
    font-size: 14px;
    padding: 20px 18px;
  }
}

/* Contacts page */
.contacts-page {
  padding: 36px 0 56px;
}

.contacts-page__head {
  margin-bottom: 24px;
}

.contacts-page__title {
  margin: 18px 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contacts-page__lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.contacts-page__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.contacts-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contacts-card__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.contacts-card__text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.contacts-card__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.contacts-card__note strong {
  color: var(--accent);
  font-weight: 600;
}

.contacts-card__link {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.contacts-card__link--phone {
  font-size: 20px;
  letter-spacing: 0.01em;
}

.contacts-card__link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contacts-page__extra {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.contacts-page__extra a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 980px) {
  .contacts-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .contacts-page {
    padding: 18px 0 40px;
  }

  .contacts-page__grid {
    grid-template-columns: 1fr;
  }

  .contacts-card__link--phone {
    font-size: 18px;
  }
}

.error-page {
  padding: 36px 0 72px;
}

.error-page__container {
  max-width: 760px;
}

.error-page__card {
  margin-top: 8px;
  padding: 36px 32px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.error-page__code {
  margin: 0;
  font-size: clamp(72px, 16vw, 128px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-weight: 500;
}

.error-page__title {
  margin: 18px 0 10px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.error-page__lead {
  margin: 0 auto;
  max-width: 34em;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.error-page__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .error-page {
    padding: 18px 0 48px;
  }

  .error-page__card {
    padding: 28px 18px 32px;
  }
}

/* About page */
.about-page {
  padding: 36px 0 56px;
}

.about-page__title {
  margin: 18px 0 16px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.about-page__requisites {
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.about-page__req-item {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-page__req-label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.about-page__req-value {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}

.about-card--page {
  margin-top: 8px;
}

.about-card__visual--photo .about-card__ring {
  object-fit: contain;
}

@media (max-width: 980px) {
  .about-page__requisites {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .about-page {
    padding: 18px 0 40px;
  }

  .about-page__requisites {
    grid-template-columns: 1fr;
  }

  .about-page__req-item {
    padding: 16px;
  }
}

.favorites-page {
  padding-bottom: 48px;
}

.favorites-page__title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: #1a1d24;
}

.favorites-layout {
  max-width: 820px;
}

.favorites-empty {
  max-width: 420px;
  padding: 48px 0 24px;
}

.favorites-empty__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #1a1d24;
}

.favorites-empty__text {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.favorites-item__footer {
  justify-content: space-between;
  gap: 12px;
}

.favorites-item__open {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .favorites-page {
    padding-bottom: 32px;
  }

  .favorites-page__title {
    font-size: 24px;
    margin-bottom: 18px;
  }
}

@media (max-width: 560px) {
  .favorites-page__title {
    font-size: 22px;
  }

  .favorites-item__footer {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .favorites-item__footer .cart-item__price,
  .favorites-item__footer .cart-item__price.price--stack {
    width: 100%;
    align-items: flex-start;
  }

  .favorites-item__open {
    width: 100%;
    justify-content: center;
  }

  .footer__badge,
  .footer__office-note {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
}

@media (max-width: 380px) {
  .favorites-empty {
    padding-top: 28px;
  }
}

/* Video shell: shields Yandex Browser «Субтитры» toolbar from attaching to <video> */
.media-video-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  isolation: isolate;
}

.media-video-shell__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
}

.media-video-shell__shield {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: block;
  background: transparent;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
  /* перехватывает hover/клик вместо <video> */
  cursor: inherit;
}

.media-video-shell > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none !important;
  -webkit-user-select: none;
  user-select: none;
}

/* Яндекс: настоящий <video> уводим с экрана, картинка идёт с canvas */
.media-video-shell > video.is-ya-hidden {
  position: fixed !important;
  left: -10000px !important;
  top: 0 !important;
  width: 2px !important;
  height: 2px !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.product-gallery__main .media-video-shell > video {
  object-fit: contain;
  background: transparent;
}

.thumb .media-video-shell {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
}

.media-lightbox__stage .media-video-shell {
  position: relative;
  inset: auto;
  width: fit-content;
  height: fit-content;
  max-width: min(1200px, calc(100vw - 48px));
  max-height: calc(100vh - 80px);
  background: transparent;
  overflow: visible;
}

.media-lightbox__stage .media-video-shell > video,
.media-lightbox__video {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  max-width: min(1200px, calc(100vw - 48px));
  max-height: calc(100vh - 80px);
  object-fit: contain;
  background: transparent;
}

.media-lightbox__stage .media-video-shell__shield {
  display: none;
}

/* Hide native captions / Yandex video translation chrome */
video::-webkit-media-text-track-display,
video::cue,
video::-webkit-media-controls {
  display: none !important;
}

[class*="Translation" i],
[class*="translation" i],
[class*="VideoTranslate" i],
[class*="video-translate" i],
[class*="Subtitles" i],
[class*="subtitl" i],
[class*="ya-tr" i],
[class*="YaVideo" i],
[class*="ya-video" i] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---- Site preloader ---- */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: grid;
  place-items: center;
  background: #fff;
  color: #2a2a2a;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.site-preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-preloader__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #ffffff;
}

.site-preloader__brand {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 24px;
  animation: preloader-brand-in 0.55s ease both;
}

.site-preloader__title-row {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.site-preloader__favor {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(42px, 9vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: #2f2f2f;
}

.site-preloader__title-row .site-preloader__favor:last-child {
  margin-left: -0.06em;
}

.site-preloader__mark {
  position: relative;
  top: -1.9em;
  margin-bottom: -1.9em;
  width: 0.4em;
  height: 0.4em;
  min-width: 18px;
  min-height: 18px;
  flex: none;
  margin-left: -0.02em;
  margin-right: -0.02em;
  align-self: baseline;
}

.site-preloader__spinner,
.site-preloader__diamond {
  position: absolute;
  inset: 0;
  margin: auto;
}

.site-preloader__spinner {
  width: 92%;
  height: 92%;
  border-radius: 50%;
  border: 1.5px solid rgba(143, 43, 131, 0.2);
  border-top-color: #8f2b83;
  animation: preloader-spin 0.75s linear infinite;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.site-preloader__diamond {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.72) rotate(-8deg);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-preloader.is-reveal .site-preloader__spinner {
  opacity: 0;
  transform: scale(0.7);
}

.site-preloader.is-reveal .site-preloader__diamond {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.site-preloader__jewels-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(280px, 72vw);
}

.site-preloader__rule {
  flex: 1;
  height: 1.5px;
  background: #8f2b83;
  opacity: 0.9;
}

.site-preloader__jewels {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #6b6b6b;
  line-height: 1;
}

body.is-preloading {
  overflow: hidden;
}

@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes preloader-brand-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .site-preloader__mark {
    min-width: 16px;
    min-height: 16px;
    top: -1.75em;
    margin-bottom: -1.75em;
  }

  .site-preloader__jewels-row {
    gap: 10px;
    min-width: min(220px, 78vw);
  }
}

/* Cookie consent (152-ФЗ) */
.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 200010;
  width: min(1140px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(calc(100% + 16px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, visibility 0.35s ease;
}

.payment-result-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #fcfbfd 0%, #f6f1f8 100%);
}

.payment-result-card {
  width: min(520px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.payment-result-card__logo {
  display: inline-block;
  width: 156px;
  margin-bottom: 24px;
}

.payment-result-card__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.payment-result-card__status {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 28px;
  font-weight: 800;
}

.payment-result-card[data-state="paid"] .payment-result-card__status {
  background: #e7f7ed;
  color: #247a45;
}

.payment-result-card[data-state="failed"] .payment-result-card__status,
.payment-result-card[data-state="error"] .payment-result-card__status {
  background: #fff0ee;
  color: #b42318;
}

.payment-result-card h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 5vw, 32px);
}

.payment-result-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.payment-result-card__order {
  margin-top: 14px !important;
  color: var(--text) !important;
  font-size: 13px;
  font-weight: 600;
}

.payment-result-card__actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 480px) {
  .payment-result-page {
    padding: 14px;
  }

  .payment-result-card {
    padding: 28px 20px;
  }
}

.cookie-consent.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cookie-consent__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-consent__text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.cookie-consent__text strong {
  font-weight: 600;
  color: var(--text);
}

.cookie-consent__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__text a:hover {
  color: var(--accent-dark);
}

.cookie-consent__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-consent__btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cookie-consent__btn:active {
  transform: scale(0.98);
}

.cookie-consent__btn--accept {
  border: 1px solid var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.cookie-consent__btn--accept:hover {
  background: #7a2570;
  border-color: #7a2570;
}

.cookie-consent__btn--refuse {
  border: 1px solid rgba(143, 43, 131, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
}

.cookie-consent__btn--refuse:hover {
  border-color: rgba(143, 43, 131, 0.4);
  background: var(--accent-soft);
}

@media (max-width: 760px) {
  .cookie-consent {
    width: min(1140px, calc(100vw - 24px));
    bottom: 10px;
  }

  .cookie-consent__bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .cookie-consent__text {
    flex: 0 1 auto;
  }

  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-consent__btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-consent {
    width: min(1140px, calc(100vw - 20px));
    bottom: 8px;
  }

  .cookie-consent__text {
    font-size: 11px;
    line-height: 1.4;
  }

  .cookie-consent__text .cookie-consent__intro {
    display: none;
  }

  .cookie-consent__bar {
    gap: 8px;
    padding: 12px;
  }

  .cookie-consent__actions {
    flex-direction: row;
  }

  .cookie-consent__btn {
    flex: 1 1 0;
    width: auto;
    min-height: 38px;
    padding: 0 8px;
    font-size: 12px;
  }
}
