/*
 * КнигДекор · тема v2
 * Обратимый migration-слой: подключается после style.css только на страницах
 * с классом body.theme-v2. После полной миграции правила можно объединить.
 */

body.theme-v2 {
  --surface-page: #f3f3ef;
  --surface-card: #ffffff;
  --surface-warm: #fffcee;
  --surface-placeholder: #e9e9e4;
  --c-bg: var(--surface-page);
  --c-bg-2: var(--surface-card);
  --c-text: #20231f;
  --c-text-muted: #686b65;
  --c-accent: #6e2933;
  --c-accent-hover: #541e27;
  --c-accent-warm: #9a6c3e;
  --c-accent-2: #3f604a;
  --c-divider: #dadbd5;
  --c-shadow: rgba(30, 33, 30, 0.08);
  --f-sans: "Nunito Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-serif: var(--f-sans);
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 28px;
  --max-w: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--c-text);
  background: var(--surface-page);
  font-family: var(--f-sans);
}

.theme-v2 h1,
.theme-v2 h2,
.theme-v2 h3,
.theme-v2 h4,
.theme-v2 .card__title {
  color: var(--c-text);
  font-family: var(--f-sans);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.theme-v2 .eyebrow,
.theme-v2 .card__kicker,
.theme-v2 .catalog-facet__label,
.theme-v2 .catalog-applied__label {
  color: var(--c-accent);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.theme-v2 a,
.theme-v2 button,
.theme-v2 input,
.theme-v2 textarea,
.theme-v2 select {
  font-family: var(--f-sans);
}

.theme-v2 a:focus-visible,
.theme-v2 button:focus-visible,
.theme-v2 input:focus-visible,
.theme-v2 textarea:focus-visible,
.theme-v2 select:focus-visible,
.theme-v2 summary:focus-visible,
.theme-v2 [tabindex]:focus-visible {
  border-radius: 12px;
  outline: 3px solid #afc3e3;
  outline-offset: 4px;
}

/* Общая оболочка ------------------------------------------------------- */

.theme-v2 .header {
  border-bottom: 1px solid rgba(32, 35, 31, 0.08);
  background: rgba(243, 243, 239, 0.92);
  backdrop-filter: blur(18px);
}

.theme-v2 .header::after {
  display: none;
}

.theme-v2 .header__inner {
  min-height: 76px;
}

.theme-v2 .logo {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.theme-v2 .logo span {
  color: var(--c-accent);
}

.theme-v2 .nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #4d504b;
  font-size: 0.9rem;
  font-weight: 700;
}

.theme-v2 .nav a:hover,
.theme-v2 .nav a[aria-current="page"] {
  color: var(--c-accent);
  background: transparent;
}

.theme-v2 .nav > a:first-child,
.theme-v2 .nav > a:first-child:hover,
.theme-v2 .nav > a:first-child[aria-current="page"] {
  color: #fff;
  background: var(--c-accent);
}

.theme-v2 .nav > a:first-child:hover,
.theme-v2 .nav > a:first-child[aria-current="page"] {
  background: var(--c-accent-hover);
}

.theme-v2 .nav > a:first-child::after {
  display: none;
}

.theme-v2 .nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  border-radius: 2px;
  background: var(--c-accent);
  content: "";
  transition: transform 0.18s var(--ease);
}

.theme-v2 .nav a:hover::after,
.theme-v2 .nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.theme-v2 .header__tel {
  display: none;
}

.theme-v2 .header__cart {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-card);
  box-shadow: 0 6px 18px rgba(30, 33, 30, 0.06);
}

.theme-v2 .header__cart:hover {
  color: #fff;
  background: var(--c-accent);
}

.theme-v2 .header__cart-count {
  color: #fff;
  background: var(--c-accent);
}

.theme-v2 .header__cart:hover .header__cart-count {
  color: var(--c-accent);
  background: #fff;
}

.theme-v2 .burger {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.theme-v2 .mobile-nav {
  border-radius: 0 0 24px 24px;
  background: var(--surface-card);
}

.theme-v2 .btn {
  min-height: 54px;
  padding: 0.92rem 1.35rem;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.theme-v2 .btn:hover {
  transform: translateY(-2px);
}

.theme-v2 .btn:active {
  transform: translateY(0);
}

.theme-v2 .btn--primary {
  border-color: var(--c-accent);
  color: #fff;
  background: var(--c-accent);
  box-shadow: 0 9px 22px rgba(110, 41, 51, 0.2);
}

.theme-v2 .btn--primary:hover {
  border-color: var(--c-accent-hover);
  background: var(--c-accent-hover);
}

.theme-v2 .btn--secondary,
.theme-v2 .btn--ghost {
  border-color: var(--c-divider);
  color: var(--c-text);
  background: var(--surface-card);
  box-shadow: none;
}

.theme-v2 .btn--secondary:hover,
.theme-v2 .btn--ghost:hover {
  border-color: #c5c7c1;
  color: var(--c-text);
  background: var(--surface-warm);
}

.theme-v2 .btn--nav {
  border-radius: 14px;
}

.theme-v2 .crumbs {
  color: var(--c-text-muted);
  font-size: 0.76rem;
}

.theme-v2 .footer {
  color: rgba(255, 255, 255, 0.72);
  background: #1c211e;
}

.theme-v2 .footer h4 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.theme-v2 .footer .logo {
  color: #fff;
}

.theme-v2 .footer .logo span {
  color: #afc3e3;
}

.theme-v2 .sticky-cta {
  border-top: 1px solid rgba(32, 35, 31, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.theme-v2 .cookie-banner {
  right: auto;
  bottom: 18px;
  left: 18px;
  width: min(520px, calc(100% - 36px));
  padding: 14px 16px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(30, 33, 30, 0.15);
  backdrop-filter: blur(18px);
}

.theme-v2 .cookie-banner p {
  color: var(--c-text-muted);
  font-size: 0.78rem;
}

.theme-v2 .cookie-banner a {
  color: var(--c-accent);
  text-decoration-color: rgba(110, 41, 51, 0.35);
  text-underline-offset: 3px;
}

.theme-v2 .cookie-banner__btn {
  min-width: 96px;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--c-accent);
  font-weight: 800;
}

.theme-v2 .cookie-banner__btn:hover {
  background: var(--c-accent-hover);
}

/* Главная: эмоциональная витрина A2 ----------------------------------- */

.home-v2-hero {
  padding: 28px 0 56px;
  background: var(--surface-page);
}

.home-v2-hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.72fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5.5rem);
  padding: 1.65rem 0 2rem;
}

.home-v2-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.8rem;
  border: 1px solid rgba(110, 41, 51, 0.12);
  border-radius: 999px;
  color: var(--c-accent);
  background: #f2e7e8;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

.home-v2-hero__heading h1 {
  max-width: 820px;
  margin: 1.05rem 0 0;
  color: var(--c-text);
  font-size: clamp(3.25rem, 5.2vw, 5rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.home-v2-hero__summary > p {
  max-width: 510px;
  color: var(--c-text-muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.home-v2-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.15rem;
  margin-top: 1.35rem;
}

.home-v2-hero__text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--c-text);
  font-size: 0.88rem;
  font-weight: 800;
}

.home-v2-hero__text-link:hover {
  color: var(--c-accent);
}

.home-v2-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 1.2rem;
  padding: 0;
  color: var(--c-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  list-style: none;
}

.home-v2-hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.home-v2-hero__proof li::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
  content: "";
}

.home-v2-slider__frame {
  position: relative;
  touch-action: pan-y;
  border-radius: 30px;
  box-shadow: 0 20px 52px rgba(67, 32, 38, 0.12);
}

.home-v2-slider .home-slider__viewport {
  min-height: clamp(430px, 42vw, 560px);
  overflow: hidden;
  border-radius: 30px;
  background: #24231f;
}

.home-v2-slider .home-slide {
  transition: opacity 0.44s var(--ease);
}

.home-v2-slider .home-slide__shade {
  background: linear-gradient(90deg, rgba(18, 18, 16, 0.76) 0%, rgba(18, 18, 16, 0.43) 42%, rgba(18, 18, 16, 0.04) 76%);
}

.home-v2-slider .home-slide__content {
  position: absolute;
  bottom: clamp(1.65rem, 3vw, 2.5rem);
  left: clamp(1.65rem, 3.8vw, 3rem);
  max-width: min(560px, calc(100% - 390px));
}

.home-v2-slider .home-slide__content > span {
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.home-v2-slider .home-slide__content h2 {
  max-width: 11ch;
  margin-bottom: 1.15rem;
  color: #fff;
  font-size: clamp(2.55rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.home-v2-slider .home-slide__link {
  min-height: 50px;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  font-size: 0.8rem;
  font-weight: 800;
}

.home-v2-slider .home-slide__link:hover {
  color: var(--c-accent);
  background: #fff;
}

.home-v2-slider__controls {
  position: absolute;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(17, 17, 15, 0.16);
  backdrop-filter: blur(14px);
}

.home-v2-slider__control,
.home-v2-slider__dots button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--c-text);
  background: transparent;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}

.home-v2-slider__control:hover,
.home-v2-slider__dots button:hover {
  color: var(--c-accent);
  background: #f2e7e8;
}

.home-v2-slider__toggle[hidden],
.home-v2-slider__toggle [hidden] {
  display: none;
}

.home-v2-slider__dots {
  display: flex;
  align-items: center;
}

.home-v2-slider__dots button span {
  width: 20px;
  height: 3px;
  display: block;
  border-radius: 999px;
  background: #bbbdb7;
  transition: width 0.18s var(--ease), background-color 0.18s var(--ease);
}

.home-v2-slider__dots button[aria-current="true"] span {
  width: 28px;
  background: var(--c-accent);
}

.home-v2-slider__count {
  min-width: 48px;
  color: var(--c-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.home-v2-slider__count b {
  color: var(--c-text);
  font-weight: 900;
}

.home-v2-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* Главная: существующие commerce-блоки в новом языке ------------------ */

.theme-v2 .home-paths {
  padding: 0 0 1.25rem;
}

.theme-v2 .home-paths__grid {
  gap: 0.75rem;
}

.theme-v2 .home-path-card {
  min-height: 72px;
  border: 0;
  border-radius: 18px;
  background: var(--surface-card);
  box-shadow: 0 8px 24px rgba(30, 33, 30, 0.05);
}

.theme-v2 .home-path-card:hover {
  transform: translateY(-2px);
  background: var(--surface-warm);
  box-shadow: 0 10px 26px rgba(30, 33, 30, 0.08);
}

.theme-v2 .home-path-card strong {
  font-size: 0.9rem;
  font-weight: 800;
}

.theme-v2 .home-shelf {
  padding: 3.5rem 0 5rem;
  background: var(--surface-card);
}

.theme-v2 .home-commerce-head {
  margin-bottom: 2rem;
}

.theme-v2 .home-commerce-head h2 {
  max-width: 880px;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.theme-v2 .home-product-grid {
  gap: 1.4rem;
}

.theme-v2 .home-product-grid .card {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.theme-v2 .home-product-grid .card__media {
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--surface-placeholder);
}

.theme-v2 .home-product-grid .card__body {
  padding: 1rem 0.2rem 0;
}

.theme-v2 .home-product-grid .card__kicker {
  color: var(--c-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.theme-v2 .home-product-grid .card__title {
  font-size: 1.28rem;
}

.theme-v2 .home-product-grid .card__price {
  color: var(--c-text);
  font-weight: 800;
}

.theme-v2 .home-origin {
  padding: 5rem 0;
  background: var(--surface-page);
}

.theme-v2 .home-origin__inner {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.55fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  border-radius: 32px;
  color: #fff;
  background: #273c5d;
}

.theme-v2 .home-origin__copy h2 {
  color: #fffcee;
  font-size: clamp(2.5rem, 4vw, 3.7rem);
}

.theme-v2 .home-origin__copy p {
  color: rgba(255, 252, 238, 0.72);
  font-size: 1rem;
}

.theme-v2 .home-origin__cta {
  min-height: 54px;
  border-radius: 14px;
  background: #fffcee;
  color: #273c5d;
  font-size: 0.9rem;
}

.theme-v2 .home-origin__cta:hover {
  background: #fff;
}

.theme-v2 .home-origin__proof {
  min-height: 330px;
  border-radius: 28px;
  background: #afc3e3;
}

.theme-v2 .home-origin__proof::after {
  background: #273c5d;
  box-shadow: 78px 14px 0 #273c5d, -76px 22px 0 #273c5d;
}

.theme-v2 .home-origin__proof strong,
.theme-v2 .home-origin__proof span {
  color: #273c5d;
}

.theme-v2 .home-origin__proof a {
  color: #fff;
  background: #273c5d;
}

.theme-v2 .home-colors {
  padding: 4.5rem 0 5rem;
}

.theme-v2 .home-color-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.theme-v2 .home-color-card {
  border-radius: 20px;
  background: transparent;
}

.theme-v2 .home-color-card img {
  border-radius: 20px;
}

.theme-v2 .home-color-card > span {
  padding: 0.9rem 0.2rem 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.theme-v2 .home-interiors {
  border-top: 0;
  background: var(--surface-warm);
}

.theme-v2 .home-interiors__feature {
  border-radius: 28px;
}

.theme-v2 .home-interiors__copy h2 {
  color: #fffcee;
  font-family: var(--f-sans);
  font-weight: 800;
}

.theme-v2 .home-audiences,
.theme-v2 .home-art,
.theme-v2 .home-faq {
  border-top: 0;
}

.theme-v2 .home-audience-card,
.theme-v2 .home-art-card,
.theme-v2 .faq__item {
  border-radius: 20px;
}

/* Каталог -------------------------------------------------------------- */

.theme-v2.catalog-store {
  padding-bottom: 84px;
}

.theme-v2 .catalog-hero {
  padding: 24px 0 34px;
  background: var(--surface-page);
}

.theme-v2 .catalog-crumbs {
  padding: 0 0 1rem;
}

.theme-v2 .catalog-hero__grid {
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 28px;
  background: #f2e7e8;
}

.catalog-v2-kicker {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--c-accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.theme-v2 .catalog-hero__copy h1 {
  max-width: 900px;
  font-size: clamp(2.65rem, 5.2vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.theme-v2 .catalog-hero__copy p {
  max-width: 64ch;
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.55;
}

.theme-v2 .catalog-shop {
  padding-top: 1.75rem;
  background: var(--surface-card);
}

.theme-v2 .catalog-toolbar {
  padding: 0 0 1.25rem;
  border-bottom: 0;
}

.theme-v2 .catalog-facet__label {
  margin-bottom: 0.65rem;
  font-size: 0.76rem;
}

.theme-v2 .catalog-filters {
  gap: 0.55rem;
}

.theme-v2 .catalog-filters .filter-chip,
.theme-v2 .catalog-more-colors {
  min-height: 44px;
  padding: 0.68rem 0.9rem;
  border: 1px solid var(--c-divider);
  border-radius: 999px;
  background: var(--surface-page);
  font-size: 0.8rem;
  font-weight: 700;
}

.theme-v2 .catalog-filters .filter-chip:hover,
.theme-v2 .catalog-more-colors:hover {
  border-color: #c8aaa9;
  color: var(--c-accent);
  background: #fbf5f3;
}

.theme-v2 .catalog-filters .filter-chip.is-active {
  border-color: var(--c-accent);
  color: #fff;
  background: var(--c-accent);
}

.theme-v2 .catalog-applied {
  padding: 0.75rem 0 0;
  border-top: 0;
}

.theme-v2 .catalog-applied__chip {
  min-height: 36px;
  border-radius: 999px;
}

.theme-v2 .catalog-grid {
  gap: 3rem 1.25rem;
  margin-top: 1.75rem;
}

.theme-v2 .catalog-card .catalog-card__media {
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--surface-placeholder);
}

.theme-v2 .catalog-card__body {
  padding: 0.95rem 0.2rem 0;
}

.theme-v2 .catalog-card .card__kicker {
  color: var(--c-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.theme-v2 .catalog-card .card__title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
}

.theme-v2 .catalog-card .card__price {
  font-size: 1rem;
  font-weight: 800;
}

.theme-v2 .catalog-card .card__add-btn {
  min-height: 48px;
  border-color: var(--c-accent);
  border-radius: 14px;
  color: var(--c-accent);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
}

.theme-v2 .catalog-card .card__add-btn:hover {
  border-color: var(--c-accent);
  color: #fff;
  background: var(--c-accent);
}

.theme-v2 .catalog-card .card__add-btn.is-added {
  border-color: var(--c-accent-2);
  color: #fff;
  background: var(--c-accent-2);
}

.theme-v2 .catalog-card__title-link:focus-visible::after {
  border-radius: 20px;
  outline: 3px solid #afc3e3;
  outline-offset: 4px;
}

.theme-v2 .catalog-empty {
  border: 0;
  border-radius: 28px;
  background: var(--surface-warm);
}

.theme-v2 .catalog-empty h3 {
  font-family: var(--f-sans);
}

.theme-v2 .catalog-related {
  border-top: 0;
}

.theme-v2 .catalog-related-card {
  border: 0;
  border-radius: 24px;
  background: var(--surface-page);
  box-shadow: 0 8px 24px rgba(30, 33, 30, 0.05);
}

.theme-v2 .catalog-related-card h3,
.theme-v2 .catalog-filter-sheet__header h3 {
  font-family: var(--f-sans);
  font-weight: 800;
}

.theme-v2 .catalog-help {
  background: var(--surface-warm);
}

.theme-v2 .catalog-help__inner {
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 28px;
  background: var(--surface-page);
}

.theme-v2 .catalog-filter-sheet {
  border-radius: 28px 28px 0 0;
}

.theme-v2 .catalog-mobile-filter-trigger {
  min-height: 56px;
  border-radius: 16px;
  background: var(--surface-page);
}

/* Responsive ----------------------------------------------------------- */

@media (min-width: 760px) {
  .theme-v2 .home-color-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .theme-v2 .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .theme-v2 .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .home-v2-hero__intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
  }

  .home-v2-hero__summary > p {
    max-width: 680px;
  }

  .home-v2-slider .home-slide__content h2 {
    font-size: clamp(2.35rem, 5vw, 3.35rem);
  }

  .theme-v2 .home-origin__inner {
    grid-template-columns: 1fr;
  }

  .theme-v2 .home-origin__proof {
    min-height: 280px;
  }
}

@media (max-width: 759px) {
  .theme-v2 .header__inner {
    min-height: 66px;
  }

  .theme-v2 .logo {
    font-size: 1.35rem;
  }

  .home-v2-hero {
    padding: 16px 0 42px;
  }

  .home-v2-hero__intro {
    gap: 0.9rem;
    padding: 0.75rem 0 1.1rem;
  }

  .home-v2-chip {
    display: none;
  }

  .home-v2-hero__heading h1 {
    margin-top: 0.75rem;
    font-size: 2.25rem;
    line-height: 1.01;
  }

  .home-v2-hero__summary > p {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .home-v2-hero__actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 1.15rem;
  }

  .home-v2-hero__actions .btn {
    width: 100%;
  }

  .home-v2-hero__text-link {
    display: none;
  }

  .home-v2-hero__proof {
    display: none;
  }

  .home-v2-slider__frame {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface-card);
  }

  .home-v2-slider .home-slider__viewport {
    order: 1;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 22px 22px 0 0;
  }

  .home-v2-slider__controls {
    position: static;
    order: 2;
    width: 100%;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 0;
    box-shadow: none;
    background: var(--surface-card);
  }

  .home-v2-slider .home-slide__shade {
    background: linear-gradient(0deg, rgba(18, 18, 16, 0.82) 0%, rgba(18, 18, 16, 0.34) 55%, rgba(18, 18, 16, 0.02) 85%);
  }

  .home-v2-slider .home-slide__content {
    right: 1.15rem;
    bottom: 1.15rem;
    left: 1.15rem;
    max-width: none;
  }

  .home-v2-slider .home-slide__content > span {
    margin-bottom: 0.45rem;
    font-size: 0.66rem;
  }

  .home-v2-slider .home-slide__content h2 {
    max-width: 12ch;
    margin-bottom: 0.8rem;
    font-size: clamp(1.8rem, 8vw, 2.35rem);
    line-height: 1;
  }

  .home-v2-slider .home-slide__link {
    min-height: 46px;
    padding: 0.72rem 0.85rem;
    font-size: 0.72rem;
  }

  .theme-v2 .cookie-banner {
    right: 10px;
    bottom: calc(80px + env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    padding: 12px;
    border-radius: 16px;
  }

  .theme-v2 .cookie-banner p {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .theme-v2 .home-paths__grid {
    gap: 0.5rem;
  }

  .theme-v2 .home-path-card {
    min-height: 62px;
    padding: 0.6rem 0.35rem;
    border-radius: 16px;
  }

  .theme-v2 .home-path-card strong {
    font-size: 0.8rem;
  }

  .theme-v2 .home-shelf,
  .theme-v2 .home-colors {
    padding-block: 3.25rem;
  }

  .theme-v2 .home-commerce-head h2 {
    font-size: 2.15rem;
  }

  .theme-v2 .home-product-grid {
    gap: 2rem 0.75rem;
  }

  .theme-v2 .home-origin {
    padding: 3.25rem 0;
  }

  .theme-v2 .home-origin__inner {
    gap: 2rem;
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }

  .theme-v2 .home-origin__copy h2 {
    font-size: 2.35rem;
  }

  .theme-v2 .home-origin__copy p {
    font-size: 0.95rem;
  }

  .theme-v2 .home-origin__proof {
    min-height: 270px;
    border-radius: 22px;
  }

  .theme-v2 .home-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-v2 .home-interiors__feature {
    border-radius: 24px;
  }

  .theme-v2 .catalog-hero {
    padding-top: 16px;
  }

  .theme-v2 .catalog-hero__grid {
    padding: 2rem 1.5rem;
    border-radius: 22px;
  }

  .theme-v2 .catalog-hero__copy h1 {
    font-size: 2.55rem;
    line-height: 1.02;
  }

  .theme-v2 .catalog-hero__copy p {
    font-size: 0.96rem;
  }

  .theme-v2 .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 0.75rem;
  }

  .theme-v2 .catalog-card .catalog-card__media {
    border-radius: 16px;
  }

  .theme-v2 .catalog-card .card__title {
    font-size: 1.15rem;
  }

  .theme-v2 .catalog-card .card__add-btn {
    width: 100%;
  }

  .theme-v2 .catalog-related-card {
    border-radius: 20px;
  }
}

@media (max-width: 430px) {
  .home-v2-slider__count {
    display: none;
  }

  .theme-v2 .home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-v2 .home-product-grid .card__title {
    font-size: 1.08rem;
  }

  .theme-v2 .home-product-grid .card__kicker {
    font-size: 0.66rem;
  }

  .theme-v2 .home-color-card > span {
    font-size: 0.8rem;
  }

  .theme-v2 .catalog-card .card__add-label {
    font-size: 0.76rem;
  }
}

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

/* A3 · фото становится первым экраном -------------------------------- */

.theme-v2.home-store {
  padding-bottom: 0;
}

.theme-v2.home-store .header__inner {
  height: 68px;
  min-height: 68px;
}

.theme-v2.home-store .logo {
  font-size: 1.42rem;
}

.theme-v2.home-store .nav > a:first-child,
.theme-v2.home-store .nav > a:first-child:hover,
.theme-v2.home-store .nav > a:first-child[aria-current="page"] {
  min-height: 44px;
  gap: 0.45rem;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--c-accent);
  background: #f2e7e8;
}

.theme-v2.home-store .nav > a:first-child:hover,
.theme-v2.home-store .nav > a:first-child[aria-current="page"] {
  color: #fff;
  background: var(--c-accent);
}

.theme-v2.home-store .nav > a:first-child::after {
  display: none;
}

.theme-v2.home-store .nav > a:first-child span {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.18s var(--ease);
}

.theme-v2.home-store .nav > a:first-child:hover span {
  transform: translateX(2px);
}

.theme-v2.home-store .header__catalog-cta {
  display: none;
}

.theme-v2.home-store .header__cart {
  width: 44px;
  height: 44px;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--c-text);
  background: transparent;
  box-shadow: none;
}

.theme-v2.home-store .header__cart::before {
  display: none;
  content: none;
}

.theme-v2.home-store .header__cart:hover {
  color: var(--c-accent);
  background: rgba(110, 41, 51, 0.07);
}

.theme-v2.home-store .header__cart svg {
  width: 21px;
  height: 21px;
}

.theme-v2.home-store .header__cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--surface-page);
  border-radius: 999px;
  color: #fff;
  background: var(--c-accent);
  font-size: 0.62rem;
}

.theme-v2.home-store .header__cart-count::before {
  display: none;
  content: none;
}

.theme-v2.home-store .burger {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.theme-v2.home-store .burger:hover {
  background: rgba(110, 41, 51, 0.07);
}

.theme-v2.home-store .sticky-cta {
  display: none !important;
}

.home-v3-hero.home-v2-hero {
  padding: 22px 0 48px;
  background: var(--surface-page);
}

.home-v3-hero__intro {
  padding: 0 0 24px;
}

.home-v3-hero__intro h1 {
  max-width: 1080px;
  margin: 0;
  font-size: clamp(2.15rem, 3.15vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home-v3-hero .home-v2-slider__frame {
  overflow: hidden;
  border-radius: 28px;
  background: #24231f;
  box-shadow: 0 18px 44px rgba(42, 31, 28, 0.12);
}

.home-v3-hero .home-slider__viewport {
  height: clamp(520px, calc(100svh - 220px), 580px);
  min-height: 0;
  border-radius: 28px;
}

.home-v3-hero .home-slide__shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.64) 0%, rgba(17, 17, 15, 0.2) 45%, rgba(17, 17, 15, 0) 70%),
    linear-gradient(0deg, rgba(17, 17, 15, 0.42) 0%, rgba(17, 17, 15, 0) 44%);
  pointer-events: none;
}

.home-v3-hero .home-slide__content {
  right: auto;
  bottom: clamp(2rem, 4vw, 3.25rem);
  left: clamp(2rem, 4vw, 3.25rem);
  z-index: 2;
  max-width: 480px;
  pointer-events: none;
}

.home-v3-hero .home-slide__content > span {
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
}

.home-v3-hero .home-slide__content h2 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 5vw, 4.65rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.home-v3-hero .home-slide__content strong {
  display: block;
  margin-top: 0.75rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.home-v3-hero .home-slide__cover-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
}

.home-v3-hero .home-slide__cover-link:focus-visible {
  border-radius: 24px;
  outline: 3px solid #fff;
  outline-offset: -7px;
}

.home-v3-slider__controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.home-v3-slider__arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(18, 18, 16, 0.24);
  backdrop-filter: blur(10px);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.72;
  pointer-events: auto;
  transition: opacity 0.18s var(--ease), background-color 0.18s var(--ease);
}

.home-v3-slider__arrow:hover {
  background: rgba(18, 18, 16, 0.52);
  opacity: 1;
}

.home-v3-slider__arrow.is-prev {
  left: 18px;
}

.home-v3-slider__arrow.is-next {
  right: 18px;
}

.home-v3-slider__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: auto;
}

.home-v3-slider__dots button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.home-v3-slider__dots button:focus-visible {
  outline: 0;
  box-shadow: none;
}

.home-v3-slider__dots button:focus-visible span {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.82);
}

.home-v3-slider__dots button span {
  width: 24px;
  height: 3px;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.18s var(--ease), background-color 0.18s var(--ease);
}

.home-v3-slider__dots button[aria-current="true"] span {
  width: 32px;
  background: #fff;
}

/* Одна товарная грамматика: фото → тип → название → цена → действие. */
.theme-v2.home-store .home-art-card {
  display: flex;
  flex-direction: column;
  border-radius: 0;
}

.theme-v2.home-store .home-art-card__media {
  border: 0;
  border-radius: 20px;
  background: var(--surface-placeholder);
}

.theme-v2.home-store .home-art-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 0.2rem 0;
}

.theme-v2.home-store .home-art-card__kicker {
  margin-bottom: 0.32rem;
  color: var(--c-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.theme-v2.home-store .home-art-card h3 {
  font-family: var(--f-sans);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.theme-v2.home-store .home-art-card__body strong {
  margin-top: 0.65rem;
  color: var(--c-text);
  font-size: 0.95rem;
  font-weight: 800;
}

.theme-v2.home-store .home-art-card__action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--c-divider);
  border-radius: var(--r-sm);
  color: var(--c-text);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.theme-v2.home-store .home-art-card:hover .home-art-card__action {
  border-color: var(--c-accent);
  color: #fff;
  background: var(--c-accent);
}

.theme-v2.home-store .home-art-card__action b {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 759px) {
  .theme-v2.home-store .header__inner {
    height: 64px;
    min-height: 64px;
  }

  .theme-v2.home-store .logo {
    font-size: 1.28rem;
  }

  .theme-v2.home-store .header__catalog-cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 12px;
    color: var(--c-accent);
    background: #f2e7e8;
    font-size: 0.78rem;
    font-weight: 800;
  }

  .theme-v2.home-store .header__catalog-cta:hover {
    color: #fff;
    background: var(--c-accent);
  }

  .theme-v2.home-store .burger__lines {
    display: none;
  }

  .theme-v2.home-store .burger__label {
    color: var(--c-text);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
  }

  .theme-v2.home-store .burger__label--close {
    display: none;
    font-size: 1.55rem;
    font-weight: 500;
  }

  .theme-v2.home-store .burger[aria-expanded="true"] .burger__label--more {
    display: none;
  }

  .theme-v2.home-store .burger[aria-expanded="true"] .burger__label--close {
    display: inline;
  }

  .theme-v2.home-store .mobile-nav {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: calc(100dvh - 64px);
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    background: rgba(32, 35, 31, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: none;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease);
  }

  .theme-v2.home-store .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .theme-v2.home-store .mobile-nav__panel {
    width: min(360px, calc(100% - 16px));
    height: 100%;
    margin-left: auto;
    padding: 24px 24px calc(36px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 24px 0 0 0;
    background: var(--surface-card);
    box-shadow: -16px 0 40px rgba(30, 33, 30, 0.12);
    transform: translateX(24px);
    transition: transform 0.22s var(--ease);
  }

  .theme-v2.home-store .mobile-nav.is-open .mobile-nav__panel {
    transform: translateX(0);
  }

  .theme-v2.home-store .mobile-nav__eyebrow {
    margin: 0 0 12px;
    color: var(--c-accent);
    font-size: 0.74rem;
    font-weight: 800;
  }

  .theme-v2.home-store .mobile-nav ul {
    gap: 0;
  }

  .theme-v2.home-store .mobile-nav li {
    border-bottom: 1px solid var(--c-divider);
  }

  .theme-v2.home-store .mobile-nav li a {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 12px 0;
    color: var(--c-text);
    font-family: var(--f-sans);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.15;
  }

  .theme-v2.home-store .mobile-nav li a b {
    color: var(--c-accent);
    font-size: 1.05rem;
    font-weight: 700;
  }

  .theme-v2.home-store .mobile-nav__contacts {
    gap: 6px;
    margin-top: 28px;
    padding-top: 0;
    border-top: 0;
  }

  .theme-v2.home-store .mobile-nav__contacts > span {
    margin-bottom: 4px;
    color: var(--c-text-muted);
    font-size: 0.7rem;
    font-weight: 800;
  }

  .theme-v2.home-store .mobile-nav__contacts a {
    min-height: 36px;
    padding: 4px 0;
    color: var(--c-text);
    font-family: var(--f-sans);
    font-size: 0.82rem;
    font-weight: 700;
  }

  .home-v3-hero.home-v2-hero {
    padding: 12px 0 28px;
  }

  .home-v3-hero__intro {
    padding: 0 0 16px;
  }

  .home-v3-hero__intro h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 8.2vw, 2.15rem);
    line-height: 1.01;
  }

  .home-v3-hero .home-v2-slider__frame,
  .home-v3-hero .home-slider__viewport {
    border-radius: 20px;
  }

  .home-v3-hero .home-v2-slider__frame {
    box-shadow: 0 12px 32px rgba(42, 31, 28, 0.1);
  }

  .home-v3-hero .home-slider__viewport {
    height: clamp(380px, 102vw, 400px);
    aspect-ratio: auto;
  }

  .home-v3-hero .home-slide__shade {
    background: linear-gradient(0deg, rgba(17, 17, 15, 0.64) 0%, rgba(17, 17, 15, 0.2) 28%, rgba(17, 17, 15, 0) 58%);
  }

  .home-v3-hero .home-slide__content {
    right: 1.2rem;
    bottom: 3.8rem;
    left: 1.2rem;
    max-width: none;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.22);
  }

  .home-v3-hero .home-slide__content > span {
    margin-bottom: 0.42rem;
    font-size: 0.66rem;
  }

  .home-v3-hero .home-slide__content h2 {
    font-size: clamp(2rem, 9.5vw, 2.45rem);
    line-height: 0.98;
  }

  .home-v3-hero .home-slide__content strong {
    margin-top: 0.48rem;
    font-size: 0.88rem;
  }

  .home-v3-slider__arrow {
    display: none;
  }

  .home-v3-slider__dots {
    bottom: 4px;
  }

  .home-v3-slider__dots button span {
    width: 18px;
  }

  .home-v3-slider__dots button[aria-current="true"] span {
    width: 26px;
  }

  .theme-v2.home-store .home-art-card__media {
    border-radius: 20px;
  }

  .theme-v2.home-store .home-art-card__body {
    padding-top: 0.85rem;
  }

  .theme-v2.home-store .home-art-card__kicker {
    font-size: 0.66rem;
  }

  .theme-v2.home-store .home-art-card h3 {
    font-size: 1.08rem;
  }

  .theme-v2.home-store .home-art-card__body strong {
    font-size: 0.9rem;
  }

  .theme-v2.home-store .home-art-card__action {
    min-height: 36px;
    padding: 0.45rem 0.4rem;
    font-size: 0.75rem;
  }

  .theme-v2.home-store .cookie-banner {
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* Каталог комплектов · единая палитра-фильтр -------------------------- */

.theme-v2.catalog-store .catalog-hero {
  padding: 10px 0 14px;
  background: var(--surface-page);
}

.theme-v2.catalog-store .catalog-crumbs {
  padding: 0 0 0.6rem;
}

.theme-v2.catalog-store .catalog-guide {
  margin: 0 0 1.35rem;
  color: var(--c-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.theme-v2.catalog-store .catalog-guide a {
  color: var(--c-accent);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.theme-v2.catalog-store .catalog-hero__grid {
  display: block;
  padding: 0.25rem 0 1rem;
  border-bottom: 1px solid var(--c-divider);
  border-radius: 0;
  background: transparent;
}

.theme-v2.catalog-store .catalog-hero__copy {
  max-width: 760px;
}

.theme-v2.catalog-store .catalog-hero__copy h1 {
  max-width: none;
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  line-height: 0.98;
}

.theme-v2.catalog-store .catalog-hero__copy p {
  max-width: 62ch;
  margin-top: 0.4rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.theme-v2.catalog-store .catalog-shop {
  padding-top: 0.55rem;
}

.theme-v2.catalog-store .catalog-toolbar {
  position: static;
  display: block;
  padding: 0.15rem 0 0.7rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.catalog-filter-bar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.catalog-color-categories {
  min-width: 0;
  display: block;
  align-items: center;
}

.catalog-color-categories__label {
  padding: 0 0.2rem;
  color: var(--c-accent);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.catalog-color-categories__scroll {
  min-width: 0;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.catalog-color-categories__scroll::-webkit-scrollbar {
  display: none;
}

.catalog-color-category {
  min-height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.68rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--c-text);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

body.theme-v2.catalog-store .catalog-color-category,
body.theme-v2.catalog-store .catalog-advanced-filter-trigger {
  min-height: 48px;
  font-size: 1rem;
}

.theme-v2.catalog-store .catalog-scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 32;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--c-accent);
  box-shadow: 0 12px 30px rgba(86, 31, 40, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, background-color 180ms ease;
}

.theme-v2.catalog-store .catalog-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.theme-v2.catalog-store .catalog-scroll-top svg {
  width: 22px;
  height: 22px;
}

.theme-v2.catalog-store .catalog-scroll-top:hover {
  background: #641f2a;
  transform: translateY(-2px);
}

.theme-v2.catalog-store .catalog-scroll-top:focus-visible {
  outline: 3px solid rgba(110, 41, 51, 0.28);
  outline-offset: 4px;
}

.catalog-color-category:hover,
.catalog-color-category:focus-visible {
  border-color: #dfc8c8;
  color: var(--c-accent);
  background: #fbf5f3;
}

.catalog-color-category.is-active {
  border-color: #dfc8c8;
  color: var(--c-accent);
  background: #f3e8e8;
}

.catalog-color-category:disabled {
  cursor: default;
  opacity: 0.38;
}

.catalog-color-category__swatch {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid rgba(30, 33, 30, 0.12);
  border-radius: 50%;
}

.catalog-color-category__swatch.is-light { background: linear-gradient(135deg, #f7f4ec 0 48%, #a6a7a2 52%); }
.catalog-color-category__swatch.is-warm { background: linear-gradient(135deg, #d4b98f 0 48%, #9a6c3e 52%); }
.catalog-color-category__swatch.is-red { background: linear-gradient(135deg, #b85b5d 0 48%, #6e2933 52%); }
.catalog-color-category__swatch.is-green { background: linear-gradient(135deg, #aab69f 0 48%, #3f604a 52%); }
.catalog-color-category__swatch.is-cool { background: linear-gradient(135deg, #9fb7cb 0 48%, #415c7b 52%); }
.catalog-color-category__swatch.is-dark { background: linear-gradient(135deg, #6c625a 0 48%, #202320 52%); }
.catalog-color-category__swatch.is-multi { background: conic-gradient(#873842 0 25%, #c8a844 25% 50%, #52694c 50% 75%, #415c7b 75%); }

.catalog-advanced-filter-trigger {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.68rem 1rem;
  border: 1px solid var(--c-divider);
  border-radius: 14px;
  background: var(--surface-card);
  color: var(--c-text);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.catalog-advanced-filter-trigger:hover,
.catalog-advanced-filter-trigger:focus-visible,
.catalog-advanced-filter-trigger.is-active {
  border-color: #c8aaa9;
  color: var(--c-accent);
  background: #fbf5f3;
}

.catalog-advanced-filter-trigger svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.catalog-advanced-filter-trigger strong {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--c-accent);
  color: #fff;
  font-size: 0.66rem;
  line-height: 1;
}

.catalog-advanced-filter-trigger strong[hidden] {
  display: none;
}

.theme-v2.catalog-store .catalog-applied {
  margin-top: 0.55rem;
  padding: 0;
}

.theme-v2.catalog-store .catalog-applied__label {
  display: none;
}

.theme-v2.catalog-store .catalog-grid,
.theme-v2.catalog-store .catalog-grid.is-chaptered {
  margin-top: 1rem;
}

.theme-v2.catalog-store .catalog-color-chapter {
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
  padding: clamp(1.15rem, 2.1vw, 1.65rem);
  border-radius: 24px;
}

.theme-v2.catalog-store .catalog-color-chapter__head {
  margin-bottom: clamp(0.9rem, 1.8vw, 1.2rem);
}

.theme-v2.catalog-store .catalog-color-chapter__index {
  display: none;
}

.theme-v2.catalog-store .catalog-color-chapter__head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.45rem);
}

.theme-v2.catalog-store .catalog-color-chapter__head p {
  margin-top: 0.4rem;
}

.theme-v2.catalog-store .catalog-filter-sheet__header h3,
.catalog-filter-section__head h4 {
  font-family: var(--f-sans);
  font-weight: 900;
}

.catalog-filter-section__head {
  grid-column: 1 / -1;
  padding: 0.25rem 0 0.55rem;
}

.catalog-filter-section__head h4 {
  font-size: 1rem;
  line-height: 1.15;
}

.catalog-filter-section__head p {
  margin-top: 0.2rem;
  color: var(--c-text-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.catalog-filter-option__check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #c9c9c3;
  border-radius: 7px;
  background: var(--surface-card);
  color: transparent;
  opacity: 1;
  font-size: 0.78rem;
  line-height: 1;
}

.catalog-filter-option.is-active .catalog-filter-option__check {
  border-color: var(--c-accent);
  background: var(--c-accent);
  color: #fff;
  opacity: 1;
}

.catalog-filter-sheet__footer {
  min-height: 72px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--c-divider);
  background: var(--surface-card);
}

.catalog-filter-sheet__reset {
  min-height: 44px;
  padding: 0.65rem 0.4rem;
  color: var(--c-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.catalog-filter-sheet__apply {
  min-height: 46px;
  padding: 0.7rem 1rem;
  border-radius: 13px;
  background: var(--c-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.catalog-filter-sheet__apply:hover {
  background: var(--c-accent-hover);
}

@media (min-width: 760px) {
  body.theme-v2.catalog-store .catalog-filter-sheet {
    inset: 50% auto auto 50%;
    width: min(650px, calc(100% - 3rem));
    max-height: min(80vh, 720px);
    margin: 0;
    transform: translate(-50%, -50%);
    border-radius: 24px;
  }

  body.theme-v2.catalog-store .catalog-filter-sheet__handle {
    display: none;
  }

  body.theme-v2.catalog-store .catalog-filter-sheet__body {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(190px, 0.65fr);
    gap: 1.25rem;
    padding: 1rem 1.25rem;
  }

  body.theme-v2.catalog-store [data-mobile-filter-panel="color"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    column-gap: 0.9rem;
  }

  body.theme-v2.catalog-store .catalog-filter-options--quantity {
    align-self: stretch;
    padding-left: 1.25rem;
    border-left: 1px solid var(--c-divider);
  }
}

@media (max-width: 759px) {
  .theme-v2.catalog-store .catalog-scroll-top {
    right: 14px;
    bottom: calc(104px + env(safe-area-inset-bottom));
  }

  body.theme-v2.catalog-store .catalog-hero {
    padding: 8px 0 10px;
  }

  body.theme-v2.catalog-store .catalog-crumbs {
    display: none;
  }

  body.theme-v2.catalog-store .catalog-hero__grid {
    padding: 0.35rem 0 0.8rem;
  }

  body.theme-v2.catalog-store .catalog-hero__copy h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.15rem);
  }

  body.theme-v2.catalog-store .catalog-hero__copy p {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  body.theme-v2.catalog-store .catalog-shop {
    padding-top: 0.35rem;
  }

  body.theme-v2.catalog-store .catalog-toolbar {
    position: static;
    margin: 0;
    padding: 0.1rem 0 0.6rem;
  }

  .catalog-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem;
  }

  .catalog-color-categories {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-color-categories__label {
    display: none;
  }

  .catalog-color-categories__scroll {
    padding-right: 0.8rem;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent);
  }

  .catalog-color-category {
    min-height: 42px;
    padding: 0.52rem 0.68rem;
    font-size: 0.73rem;
  }

  .catalog-advanced-filter-trigger {
    width: auto;
    min-height: 46px;
    justify-content: flex-start;
    padding: 0.65rem 0.85rem;
  }

  .catalog-advanced-filter-trigger > span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .catalog-advanced-filter-trigger strong {
    position: static;
    min-width: 20px;
    height: 20px;
    margin-left: 0.1rem;
    font-size: 0.66rem;
  }

  body.theme-v2.catalog-store .catalog-applied {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  body.theme-v2.catalog-store .catalog-grid,
  body.theme-v2.catalog-store .catalog-grid.is-chaptered {
    margin-top: 0.75rem;
  }

  body.theme-v2.catalog-store .catalog-color-chapter {
    margin-right: -0.35rem;
    margin-left: -0.35rem;
    padding: 1rem 0.8rem 1.2rem;
    border-radius: 20px;
  }

  body.theme-v2.catalog-store .catalog-color-chapter__head {
    margin-bottom: 0.9rem;
  }

  body.theme-v2.catalog-store .catalog-color-chapter__head h2 {
    font-size: 1.7rem;
  }

  body.theme-v2.catalog-store .catalog-color-chapter__head p {
    max-width: 36ch;
    font-size: 0.78rem;
  }

  body.theme-v2.catalog-store .catalog-filter-sheet {
    max-height: 84dvh;
  }

  body.theme-v2.catalog-store .catalog-filter-sheet__body {
    display: block;
    padding: 0 1.25rem;
  }

  body.theme-v2.catalog-store .catalog-filter-options--quantity {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--c-divider);
  }

  body.theme-v2.catalog-store .catalog-filter-sheet__footer {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  body.theme-v2.catalog-store .catalog-filter-sheet__apply {
    flex: 1 1 auto;
  }
}

/* Каталог · навигационный хаб ----------------------------------------- */

body.theme-v2.catalog-overview-page {
  padding-bottom: 0;
  background: var(--surface-page);
}

.theme-v2.catalog-overview-page .catalog-hero {
  padding: 12px 0 8px;
}

.theme-v2.catalog-overview-page .catalog-hero__grid {
  padding: 0.4rem 0 1.25rem;
  border-bottom: 0;
}

.theme-v2.catalog-overview-page .catalog-hero__copy {
  max-width: 760px;
}

.theme-v2.catalog-overview-page .catalog-hero__copy h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.theme-v2.catalog-overview-page .catalog-hero__copy p {
  max-width: 58ch;
  margin-top: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.theme-v2.catalog-overview-page .catalog-overview {
  padding: 0.65rem 0 clamp(3rem, 5vw, 4rem);
  background: var(--surface-page);
}

.theme-v2.catalog-overview-page .catalog-departments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.7vw, 1.3rem);
  align-items: stretch;
}

.theme-v2.catalog-overview-page .catalog-department-card {
  position: relative;
  min-width: 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(32, 35, 31, 0.08);
  border-radius: 24px;
  background: var(--surface-card);
  color: var(--c-text);
  box-shadow: 0 8px 24px rgba(30, 33, 30, 0.04);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.theme-v2.catalog-overview-page .catalog-department-card:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 41, 51, 0.18);
  box-shadow: 0 16px 40px rgba(67, 32, 38, 0.09);
}

.theme-v2.catalog-overview-page .catalog-department-card:focus-visible {
  outline: 3px solid #afc3e3;
  outline-offset: 4px;
}

.theme-v2.catalog-overview-page .catalog-department-card__media {
  width: 100%;
  height: clamp(220px, 21vw, 276px);
  overflow: hidden;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
  background: var(--surface-placeholder);
}

.theme-v2.catalog-overview-page .catalog-department-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.theme-v2.catalog-overview-page .catalog-department-card--sets .catalog-department-card__media img {
  object-position: 58% center;
}

.theme-v2.catalog-overview-page .catalog-department-card--art .catalog-department-card__media img {
  object-position: center 48%;
}

.theme-v2.catalog-overview-page .catalog-department-card:hover .catalog-department-card__media img {
  transform: scale(1.025);
}

.theme-v2.catalog-overview-page .catalog-department-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
  padding: clamp(1.15rem, 2vw, 1.5rem);
}

.theme-v2.catalog-overview-page .catalog-department-card__title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.theme-v2.catalog-overview-page .catalog-department-card h2 {
  max-width: none;
  font-family: var(--f-sans);
  font-size: clamp(1.65rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.theme-v2.catalog-overview-page .catalog-department-card__arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--c-accent);
  background: #f2e7e8;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.theme-v2.catalog-overview-page .catalog-department-card p {
  max-width: 46ch;
  margin-top: 0.48rem;
  color: var(--c-text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.theme-v2.catalog-overview-page .catalog-department-card:hover .catalog-department-card__arrow {
  background: var(--c-accent);
  color: #fff;
  transform: translate(2px, -2px);
}

.theme-v2.catalog-overview-page .footer {
  margin-top: 0;
}

@media (max-width: 759px) {
  .theme-v2.catalog-overview-page .catalog-hero {
    padding: 10px 0 6px;
  }

  .theme-v2.catalog-overview-page .catalog-hero__grid {
    padding: 0.35rem 0 0.75rem;
  }

  .theme-v2.catalog-overview-page .catalog-hero__copy h1 {
    font-size: clamp(2rem, 10vw, 2.45rem);
  }

  .theme-v2.catalog-overview-page .catalog-hero__copy p {
    max-width: 38ch;
    margin-top: 0.35rem;
    font-size: 0.82rem;
  }

  .theme-v2.catalog-overview-page .catalog-overview {
    padding: 0.45rem 0 2.75rem;
  }

  .theme-v2.catalog-overview-page .catalog-departments {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .theme-v2.catalog-overview-page .catalog-department-card {
    border-radius: 20px;
  }

  .theme-v2.catalog-overview-page .catalog-department-card__media,
  .theme-v2.catalog-overview-page .catalog-department-card--art .catalog-department-card__media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .theme-v2.catalog-overview-page .catalog-department-card__body {
    min-height: 86px;
    padding: 1rem 1.05rem 1.1rem;
  }

  .theme-v2.catalog-overview-page .catalog-department-card h2 {
    font-size: clamp(1.4rem, 6.5vw, 1.65rem);
    line-height: 1.02;
  }

  .theme-v2.catalog-overview-page .catalog-department-card p {
    margin-top: 0.42rem;
    font-size: 0.88rem;
  }

  .theme-v2.catalog-overview-page .catalog-department-card__arrow {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-v2.catalog-overview-page .catalog-department-card,
  .theme-v2.catalog-overview-page .catalog-department-card__media img,
  .theme-v2.catalog-overview-page .catalog-department-card__arrow {
    transition: none;
  }
}

/* Арт-объекты · тот же commerce-каркас, что у комплектов --------------- */

body.theme-v2.art-store {
  background: var(--surface-page);
}

.theme-v2.art-store .art-shop {
  padding: 0.55rem 0 clamp(4rem, 7vw, 6rem);
  background: var(--surface-card);
}

.theme-v2.art-store .art-toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.8rem;
  padding: 0.15rem 0 0.8rem;
  border: 0;
}

.theme-v2.art-store .art-filter-label {
  flex: 0 0 auto;
  color: var(--c-text-muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.theme-v2.art-store .art-filter-list {
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.theme-v2.art-store .art-filter-list::-webkit-scrollbar {
  display: none;
}

.theme-v2.art-store .art-filter {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 0.6rem 0.82rem;
  border: 1px solid var(--c-divider);
  border-radius: 999px;
  background: var(--surface-page);
  color: var(--c-text);
  font-size: 0.76rem;
  font-weight: 800;
}

.theme-v2.art-store .art-filter:hover {
  border-color: #c8aaa9;
  color: var(--c-accent);
  background: #fbf5f3;
}

.theme-v2.art-store .art-filter.is-active {
  border-color: var(--c-accent);
  color: #fff;
  background: var(--c-accent);
}

.theme-v2.art-store .art-filter span {
  color: var(--c-text-muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.theme-v2.art-store .art-filter.is-active span {
  color: rgba(255, 255, 255, 0.72);
}

.theme-v2.art-store .art-grid {
  gap: 3rem 1.25rem;
  margin-top: 0.75rem;
}

.theme-v2.art-store .art-skeleton {
  aspect-ratio: 1 / 1.34;
  border-radius: 20px;
}

.theme-v2.art-store .art-empty {
  border: 0;
  border-radius: 28px;
  background: var(--surface-warm);
}

.theme-v2.art-store .footer {
  margin-top: 0;
}

@media (max-width: 759px) {
  .theme-v2.art-store .art-shop {
    padding-top: 0.35rem;
    padding-bottom: 3.5rem;
  }

  .theme-v2.art-store .art-toolbar {
    margin-right: calc(var(--pad-x) * -1);
    padding: 0.1rem var(--pad-x) 0.65rem 0;
  }

  .theme-v2.art-store .art-filter-label {
    display: none;
  }

  .theme-v2.art-store .art-filter-list {
    padding-right: var(--pad-x);
  }

  .theme-v2.art-store .art-grid {
    gap: 2rem 0.65rem;
    margin-top: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-v2.art-store .art-filter {
    transition: none;
  }
}
