

/* Start:/local/templates/.default/assets/styles.css?1781166804115398*/
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/local/templates/.default/assets/fonts/montserrat-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/local/templates/.default/assets/fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/local/templates/.default/assets/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/local/templates/.default/assets/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat Fallback';
  src: local('Arial');
  size-adjust: 112.4%;
  ascent-override: 86.24%;
  descent-override: 22.39%;
  line-gap-override: 0%;
}

:root {
  /* Layout scale (neutral, spacing-first). Max content width on desktop: 1200–1400px */
  --max: 1920px;
  --gutter: 68px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-ui: 14px;
  --stroke: 1px;

  --s-1: 6px;
  --s0: 10px;
  --s1: 14px;
  --s2: 18px;
  --s3: 24px;
  --s4: 32px;
  --s5: 44px;
  --s6: 64px;
  --s7: 92px;

  /* Art direction palette (calm blues, gallery-grade restraint) */
  --ink: #0f1218;
  --muted: #4e5563;

  --blue-deep: #0b1c3a; /* deep blue */
  --blue-soft: #eaf3ff; /* light blue */
  --sea: #1fb7b0; /* turquoise / sea wave */
  --sea-soft: #e6fbfa;

  --bg: #f7f9fc; /* slightly blue-tinted paper */
  --surface: #ffffff;
  --line: rgba(11, 28, 58, 0.12);
  --line-strong: rgba(11, 28, 58, 0.18);

  --shadow: 0 10px 30px rgba(11, 28, 58, 0.06);
  --shadow-soft: 0 14px 44px rgba(11, 28, 58, 0.08);

  --link: rgba(11, 28, 58, 0.92);
  --link-hover: rgba(31, 183, 176, 0.95);
  --focus: rgba(31, 183, 176, 0.45);
  --status-available-text: #245d3f;
  --status-unavailable-text: #8d4437;
  --status-preorder-text: #8a6420;

  /* Type system (premium, calm) */
  --font-heading: "Montserrat", "Montserrat Fallback", sans-serif;
  --font-body: "Montserrat", "Montserrat Fallback", sans-serif;

  --fs-body: 16px;
  --fs-lead: 18px;
  --fs-h1: clamp(42px, 4.6vw, 68px);
  --fs-h2: clamp(22px, 2.2vw, 30px);
  --fs-h3: 18px;
  --fs-small: 13px;
  --fs-meta: 12px;

  --lh-body: 1.7;
  --lh-tight: 1.1;
  --lh-title: 1.16;

  --track-body: 0.01em;
  --track-tight: -0.02em;
  --track-label: 0.12em;

  --section-pad: clamp(40px, 4.5vw, 64px);
  --hero-pad: clamp(88px, 10vw, 160px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--bg);
  line-height: var(--lh-body);
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.is-open,
html.is-open body {
  overflow: hidden;
}

::selection {
  background: rgba(31, 183, 176, 0.22);
}

/* Reset headings globally; paragraphs keep browser flow by default */
h1,
h2,
h3 {
  margin: 0;
}

h2,
h3 {
  margin: var(--s4) 0 var(--s2);
  font-family: var(--font-heading);
  letter-spacing: var(--track-tight);
  line-height: 1.2;
}

h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 520;
}

h3 {
  font-size: 18px;
  font-weight: 520;
}


img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

/* Sale-section templates (sale.basket.basket / sale.order.ajax /
   sale.personal.order.list dadiz) подгружают /bitrix/css/main/bootstrap.css
   через addExternalCss. Bootstrap 3 переопределяет .container:
   padding 0 15px + width 750/970/1170px на брейкпойнтах + clearfix
   ::before/::after с display:table. Это ломает наш grid в .header__inner,
   .compact-header__inner и .footer__inner (визуально — ужимает колонку
   лого на мобильнике в /personal/, /cart/, /order/). Возвращаем поведение
   .container с большей специфичностью, чтобы перебить поздно подключаемый
   bootstrap.css. */
body .container {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  padding-left: 0;
  padding-right: 0;
}
body .container::before,
body .container::after {
  content: normal;
  display: none;
}

/* Base style */
.inner-page__content-shell--after-top {
  margin-top: clamp(18px, 2.4vw, 28px);
}

.main-page-content {
  border-top: none;
}

.editor-content > *:first-child {
  margin-top: 0;
}

.editor-content > *:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

blockquote {
  margin: 0 0 var(--s3);
  padding: var(--s3) var(--s4);
  border-left: 3px solid rgba(31, 183, 176, 0.6);
  background: rgba(234, 243, 255, 0.65);
  border-radius: var(--radius-sm);
}

hr {
  margin: var(--s4) 0;
  border: 0;
  border-top: var(--stroke) solid var(--line);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: var(--s1) var(--s2);
  background: var(--surface);
  border: var(--stroke) solid var(--line);
  border-radius: var(--radius-sm);
  z-index: 999;
}
.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  /* background: rgba(247, 249, 252, 0.88); */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(184, 212, 232, 0.2) 100%);
  backdrop-filter: blur(8px);
  border-bottom: var(--stroke) solid rgba(11, 28, 58, 0.08);
}

.compact-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 400;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(184, 212, 232, 0.24) 100%);
  backdrop-filter: blur(10px);
  border-bottom: var(--stroke) solid rgba(11, 28, 58, 0.08);
  box-shadow: 0 12px 30px rgba(11, 28, 58, 0.08);
  transform: translateY(calc(-100% - 12px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 220ms ease, opacity 180ms ease, visibility 180ms ease;
}

.compact-header.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.compact-header__inner {
  position: relative;
  padding-block: 8px;
}

.compact-header__bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.compact-header__primary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.compact-header__brand {
  flex: 0 0 auto;
}

.compact-header__logo {
  width: 84px;
}

.compact-header__menu-group {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.compact-header__controls {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn.compact-header__menu-toggle {
  flex-shrink: 0;
  height: 40px;
  min-height: 40px;
  padding-inline: 16px;
  cursor: pointer;
  border: var(--stroke) solid rgba(11, 28, 58, 0.14);
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(11, 28, 58, 0.86);
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: none;
  transform: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.btn.compact-header__menu-toggle:hover {
  background: rgba(234, 243, 255, 0.9);
  border-color: rgba(31, 183, 176, 0.26);
  color: rgba(11, 28, 58, 0.92);
  box-shadow: none;
  transform: none;
}

.btn.compact-header__menu-toggle:active {
  box-shadow: none;
  transform: none;
}

.btn.compact-header__menu-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  box-shadow: none;
}

.btn.compact-header__menu-toggle[aria-expanded="true"] {
  background: rgba(234, 243, 255, 0.95);
  border-color: rgba(31, 183, 176, 0.32);
  color: rgba(11, 28, 58, 0.94);
}

.compact-header__search-toggle {
  width: 34px;
  height: 34px;
  border: var(--stroke) solid rgba(11, 28, 58, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(11, 28, 58, 0.76);
}

.compact-header__search-toggle svg {
  width: 18px;
  height: 18px;
}

.compact-header__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
}

.compact-header .icon-row {
  gap: 10px;
}

.compact-header .lang {
  margin-left: 0;
  padding: 3px;
  background: rgba(255, 255, 255, 0.72);
}

.compact-header .lang__btn {
  min-width: 32px;
  min-height: 28px;
  font-size: 12px;
}

.compact-header .header__shop {
  margin-left: 0;
  gap: 10px;
}

.compact-header .icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 20px;
  height: 20px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  border-radius: 0;
  color: rgba(11, 28, 58, 0.72);
  line-height: 1;
  transition: color 180ms ease, opacity 180ms ease;
}

.compact-header .icon-pill svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.compact-header .icon-pill:hover {
  color: rgba(11, 28, 58, 0.92);
  opacity: 0.92;
}

.compact-header .icon-pill:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.compact-header__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(280px, calc(100vw - (var(--gutter) * 2)));
  min-width: 240px;
  padding: 0;
  border-radius: calc(var(--radius-ui) + 2px);
  border: var(--stroke) solid rgba(11, 28, 58, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.compact-header__nav-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-header__nav-list li {
  width: 100%;
  display: block;
}

.compact-header__nav-list li + li {
  border-top: var(--stroke) solid rgba(11, 28, 58, 0.10);
}

.compact-header__nav-list .nav-link {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(11, 28, 58, 0.84);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  box-shadow: none;
}

.compact-header__nav-list .nav-link:hover,
.compact-header__nav-list .nav-link:focus-visible {
  border-color: transparent;
  background: rgba(234, 243, 255, 0.5);
  color: rgba(11, 28, 58, 0.94);
}

.compact-header__nav-list .nav-link.is-active,
.compact-header__nav-list .nav-link[aria-current="page"] {
  border-color: transparent;
  background: rgba(234, 243, 255, 0.82);
  color: rgba(11, 28, 58, 0.96);
  box-shadow:
    inset 3px 0 0 rgba(31, 183, 176, 0.42),
    inset 0 0 0 1px rgba(31, 183, 176, 0.08);
}

.compact-header__search-slot {
  display: contents;
}

.header__inner {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0;
  padding-top: 12px;
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 48px;
  padding-bottom: 12px;
  border-bottom: var(--stroke) solid rgba(11, 28, 58, 0.10);
}

.header__contacts {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: rgba(11, 28, 58, 0.62);
  font-style: normal;
  font-size: var(--fs-meta);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__contact {
  color: inherit;
  transition: color 180ms ease, opacity 180ms ease;
}

.header__contact:hover {
  color: rgba(11, 28, 58, 0.86);
  opacity: 0.95;
}

.header__contact-sep {
  color: rgba(11, 28, 58, 0.28);
}

.header__bottom {
  position: relative;
  padding-block: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

/* Desktop nav alignment: keep list centered, tools on the right */
.header__nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-start;
}

.header__bottom-tools {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

/* Visually hidden (for accessible labels) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header search dropdown */
.header-search {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(560px, calc(100vw - (var(--gutter) * 2)));
  padding: 8px;
  border-radius: var(--radius-ui);
  border: var(--stroke) solid rgba(11, 28, 58, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 20;
}

.header-search.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

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

.header-search__input {
  flex: 1 1 auto;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-ui);
  background: rgba(234, 243, 255, 0.62);
  color: rgba(11, 28, 58, 0.92);
  font: inherit;
  letter-spacing: inherit;
  outline: none;
}

.header-search__input::placeholder {
  color: rgba(11, 28, 58, 0.48);
}

.header-search__input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.header-search__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: rgba(234, 243, 255, 0.35);
  border-radius: var(--radius-ui);
  color: rgba(11, 28, 58, 0.74);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.header-search__close svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-search__close:hover {
  color: rgba(11, 28, 58, 0.92);
  background: rgba(234, 243, 255, 0.55);
  opacity: 0.95;
}

.header-search__close:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.header-search__close:disabled {
  background: rgba(11, 28, 58, 0.06);
  color: rgba(11, 28, 58, 0.26);
  cursor: not-allowed;
}

/* Bitrix search.title suggestions */
div.title-search-result {
  display: none;
  margin-top: 8px;
  padding: 8px;
  border-radius: calc(var(--radius-ui) + 2px);
  border: var(--stroke) solid rgba(11, 28, 58, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 40px rgba(11, 28, 58, 0.14);
  backdrop-filter: blur(10px);
  overflow: hidden;
  z-index: 1200;
}

div.title-search-result:not(:empty) {
  display: block;
}

div.title-search-result table.title-search-result {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

div.title-search-result .title-search-separator,
div.title-search-result th {
  display: none;
}

div.title-search-result td {
  padding: 0;
}

div.title-search-result td > a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(11, 28, 58, 0.92);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

div.title-search-result a.title-search-item__link {
  display: flex;
  align-items: center;
  gap: 10px;
}

div.title-search-result .title-search-item__thumb {
  width: 44px;
  height: 33px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
}

div.title-search-result .title-search-item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

div.title-search-result .title-search-item__text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

div.title-search-result .title-search-item__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

div.title-search-result .title-search-item__price {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: rgba(11, 28, 58, 0.55);
  font-size: 13px;
}

div.title-search-result tr.title-search-selected td > a,
div.title-search-result td > a:hover {
  background: rgba(234, 243, 255, 0.9);
  color: rgba(11, 28, 58, 1);
}

div.title-search-result .title-search-all td > a,
div.title-search-result td.title-search-all > a {
  margin-top: 4px;
  border-top: var(--stroke) solid rgba(11, 28, 58, 0.1);
  padding-top: 12px;
  font-weight: 600;
}

div.title-search-result .title-search-fader {
  display: none !important;
}

/* Mobile burger button (placed in .header__bottom, hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: rgba(11, 28, 58, 0.82);
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle__line {
  width: 22px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 999px;
  opacity: 0.86;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.nav-toggle:disabled {
  color: rgba(11, 28, 58, 0.26);
  cursor: not-allowed;
}

/* Close button is mobile-only (off-canvas) */
.nav-close {
  display: none;
}

.header__bottom::before {
  display: none;
}

.brand__logo {
  width: 100px;
  height: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--s1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  margin-top: 0;
}

.header__menu--mobile {
  display: none;
}

.nav-sublist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: var(--radius-ui);
  border: var(--stroke) solid rgba(11, 28, 58, 0);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
  text-decoration: none;
}
.nav-link:focus-visible,
.nav-link:hover,
.nav-link:focus {
  color: var(--link);
  border-color: rgba(11, 28, 58, 0.14);
  background: rgba(234, 243, 255, 0.40);
  text-decoration: none;
}

.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: var(--link);
  font-weight: 650;
  border-color: rgba(11, 28, 58, 0.28);
  background: rgba(234, 243, 255, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(31, 183, 176, 0.22),
    inset 0 -2px 0 rgba(31, 183, 176, 0.18);
}

.header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s2);
  flex-wrap: nowrap;
}

.icon-row {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
}

/* Header-only icon treatment: clean glyph links (no button UI) */
.site-header .header__actions {
  /* small gap inside groups */
  gap: 10px;
}

.site-header .icon-row {
  gap: 10px;
}

.site-header .header__contacts {
  /* medium gap between logo zone and right-side info block internals */
  margin-left: 0;
  margin-right: 18px;
}

.site-header .lang {
  /* medium gap between group 1 (social) and group 2 (language) */
  margin-left: 18px;
}

.site-header .header__shop {
  margin-left: 18px;
}

.site-header .icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 26px;
  height: 26px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  border-radius: 0;
  color: rgba(11, 28, 58, 0.70);
  line-height: 1;
  transition: color 180ms ease, opacity 180ms ease;
}

.header__shop {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.site-header .icon-pill svg {
  width: 26px;
  height: 26px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.site-header .icon-pill:hover {
  color: rgba(11, 28, 58, 0.92);
  opacity: 0.92;
}

.site-header .icon-pill:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.site-header .icon-pill[aria-disabled="true"] {
  color: rgba(11, 28, 58, 0.28);
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

.site-header .icon-pill--cart.has-items {
  color: rgba(11, 28, 58, 0.92);
}

/* Оптическое выравнивание: содержимое svg корзины смещено вниз
   относительно иконки профиля (колёса уходят к y≈20.9 при vbox 24).
   Поднимаем svg, чтобы визуальные центры обеих иконок совпали. */
.site-header .icon-pill--cart svg,
.compact-header .icon-pill--cart svg {
  transform: translateY(3px);
}

.site-header .icon-pill--account.is-authorized {
  color: var(--sea);
  background: rgba(31, 183, 176, 0.08);
  border-radius: var(--radius-sm);
}

.site-header .icon-pill--account.is-authorized svg {
  stroke: currentColor;
}

.compact-header .icon-pill--account.is-authorized {
  color: var(--sea);
  background: rgba(31, 183, 176, 0.08);
  border-radius: var(--radius-sm);
}

.compact-header .icon-pill--account.is-authorized svg {
  stroke: currentColor;
}

.icon-pill__badge {
  position: absolute;
  top: -4px;
  right: -9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(31, 183, 176, 0.98);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(31, 183, 176, 0.24);
}

.site-header .icon-pill--cart.is-bumped .icon-pill__badge {
  animation: cart-badge-bump 220ms ease;
}

@keyframes cart-badge-bump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

.lang {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: var(--stroke) solid rgba(11, 28, 58, 0.14);
  background: rgba(255, 255, 255, 0.62);
}

.lang__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: var(--stroke) solid rgba(11, 28, 58, 0);
  background: transparent;
  color: rgba(11, 28, 58, 0.68);
  font-size: var(--fs-meta);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
  text-decoration: none;
}

.lang__btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.lang__btn:hover {
  background: rgba(31, 183, 176, 0.10);
  color: rgba(11, 28, 58, 0.92);
}

.lang__btn[aria-disabled="true"] {
  color: rgba(11, 28, 58, 0.32);
  cursor: not-allowed;
  pointer-events: none;
}

.lang__btn.is-active,
.lang__btn[aria-current="true"] {
  background: rgba(234, 243, 255, 0.92);
  color: rgba(11, 28, 58, 0.92);
  border-color: rgba(11, 28, 58, 0.16);
}

/* Slider-style switcher (modern browsers) */
@supports selector(:has(*)) {
  .lang::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    height: 28px;
    width: calc((100% - 8px) / 2);
    border-radius: 999px;
    background: rgba(234, 243, 255, 0.92);
    border: var(--stroke) solid rgba(11, 28, 58, 0.16);
    box-shadow: 0 10px 24px rgba(11, 28, 58, 0.06);
    transform: translateX(0);
    transition:
      transform 260ms ease,
      background-color 220ms ease,
      border-color 220ms ease;
    z-index: 0;
  }

  /* When second option is active */
  .lang:has(.lang__btn:nth-child(2).is-active)::before,
  .lang:has(.lang__btn:nth-child(2)[aria-current="true"])::before {
    transform: translateX(100%);
  }

  /* Active button stays "clean", slider provides the highlight */
  .lang__btn.is-active,
  .lang__btn[aria-current="true"] {
    background: transparent;
    border-color: transparent;
  }

  .lang__btn:hover {
    background: transparent;
  }
}

.nav-extras {
  display: none;
}

.nav-extras__group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-extras__group + .nav-extras__group {
  margin-top: 18px;
}

.nav-head {
  display: none;
}

.nav-head__brand {
  display: inline-flex;
  align-items: center;
}

.nav-head__logo {
  width: 80px;
  height: auto;
  display: block;
}
/* Hero */
.hero {
  position: relative;
  padding-block: var(--hero-pad);
  background: linear-gradient(135deg, #F8FBFD 0%, #E8F4F8 50%, #D4E9F7 100%);
}

.hero--404 {
  background: none;
  background-image: none;
  padding-block: 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(44px, 6vw, 76px);
  align-items: start;
}

.hero__copy {
  max-width: 64ch;
}

/* Grid-элемент правой колонки: min-width:0 снимает дефолтный min-width:auto,
   иначе max-content-трек marquee раздувает колонку за пределы .container. */
.hero__panel {
  min-width: 0;
  max-width: 100%;
}

.kicker {
  margin: 0 0 var(--s3);
  color: var(--muted);
  font-size: var(--fs-meta);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 var(--s4);
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: 520;
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin: 0 0 var(--s3);
  font-size: var(--fs-lead);
  max-width: 52ch;
  line-height: 1.55;
}

.hero__desc {
  margin: 0 0 var(--s4);
  max-width: 60ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
}

.hero__cta a {
  text-decoration: none;
}

/* Hero visual (right column) */
.hero-visual {
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(234, 243, 255, 0.55);
}

.hero-visual--text {
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.hero-visual__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Hero slider (right column): latest catalog works, autoscroll + drag/swipe.
   Transform трека пишет JS (main.js: rAF-автопрокрутка + перетаскивание мышью/
   пальцем). DOM дублирует карточки ×2 → бесшовный loop. Пауза по hover/focus и
   отмена автопрокрутки при prefers-reduced-motion — тоже в JS. */
.hero-marquee {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.hero-marquee__track {
  display: flex;
  width: max-content;
  cursor: grab;
  user-select: none;
  touch-action: pan-y; /* горизонталь — нам (drag), вертикаль — браузеру (скролл страницы) */
  will-change: transform; /* transform пишет JS-слайдер, не CSS-анимация */
}

.hero-marquee__track.is-dragging {
  cursor: grabbing;
}

.hero-marquee__slide {
  flex: 0 0 auto;
  width: clamp(180px, 16vw, 250px);
  margin-right: var(--s2);
}

.hero-marquee__card {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  text-decoration: none;
  color: inherit;
}

.hero-marquee__media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(234, 243, 255, 0.55);
}

.hero-marquee__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
  -webkit-user-drag: none; /* не таскать картинку-призрак при drag слайдера */
  user-select: none;
}

.hero-marquee__card:hover .hero-marquee__img,
.hero-marquee__card:focus-visible .hero-marquee__img {
  transform: scale(1.04);
}

.hero-marquee__title {
  font-size: var(--fs-meta);
  line-height: var(--lh-tight);
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  /* Автопрокрутку гасит JS (см. main.js). Drag/свайп остаётся доступен. */
  .hero-marquee__img {
    transition: none;
  }
}

/* Buttons / chips (neutral) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s0);
  height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-ui);
  border: var(--stroke) solid rgba(11, 28, 58, 0.16);
  background: rgba(11, 28, 58, 0.92);
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 40px rgba(11, 28, 58, 0.12);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
  /* Кнопки в цвет логотипа */
  /* background: linear-gradient(135deg, rgba(11, 28, 58, 0.94), rgba(31, 183, 176, 0.86)); */
  text-decoration: none;
  cursor: pointer;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.62);
  color: rgba(11, 28, 58, 0.88);
  border-color: rgba(11, 28, 58, 0.16);
  box-shadow: none;
}

.btn--small {
  height: 40px;
  padding-inline: 16px;
  font-size: var(--fs-small);
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn:hover {
  border-color: rgba(31, 183, 176, 0.28);
  box-shadow:
    0 22px 66px rgba(11, 28, 58, 0.18),
    0 8px 20px rgba(31, 183, 176, 0.10);
  background: rgba(11, 28, 58, 1);
  transform: translateY(-1px);
  color: rgba(255, 255, 255, 0.94);
}

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

.btn:disabled,
.btn[aria-disabled="true"] {
  border-color: rgba(11, 28, 58, 0.08);
  background: rgba(11, 28, 58, 0.08);
  color: rgba(11, 28, 58, 0.52);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.btn--ghost:disabled,
.btn--ghost[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.58);
  color: rgba(11, 28, 58, 0.44);
  border-color: rgba(11, 28, 58, 0.08);
}

.btn:disabled::before,
.btn[aria-disabled="true"]::before {
  opacity: 0.7;
}

.btn--ghost:hover {
  border-color: rgba(31, 183, 176, 0.24);
  background: rgba(234, 243, 255, 0.75);
  color: rgba(11, 28, 58, 0.88);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 var(--s2);
  border-radius: var(--radius-ui);
  border: var(--stroke) solid rgba(11, 28, 58, 0.14);
  background: rgba(255, 255, 255, 0.4);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1;
  letter-spacing: 0.01em;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
  text-decoration: none;
}
.chip:focus-visible,
.chip:hover {
  color: rgba(11, 28, 58, 0.92);
  border-color: rgba(31, 183, 176, 0.35);
  background: rgba(234, 243, 255, 0.8);
}

/* Active filter (visual only) */
.chip--active {
  color: rgba(11, 28, 58, 0.94);
  background: rgba(234, 243, 255, 0.92);
  border-color: rgba(11, 28, 58, 0.16);
  box-shadow: inset 0 0 0 1px rgba(31, 183, 176, 0.16);
}

.chip--active:hover,
.chip--active:focus-visible {
  color: rgba(11, 28, 58, 0.96);
  background: rgba(234, 243, 255, 0.92);
  border-color: rgba(11, 28, 58, 0.18);
}

.chip[aria-disabled="true"] {
  color: rgba(11, 28, 58, 0.36);
  border-color: rgba(11, 28, 58, 0.08);
  background: rgba(11, 28, 58, 0.04);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

/* Sections */
.section {
  padding-block: var(--section-pad);
  border-top: var(--stroke) solid var(--line);
}

.section--muted {
  background: linear-gradient(
    180deg,
    rgba(234, 243, 255, 0.55),
    rgba(255, 255, 255, 0.65)
  );
}

.section__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s4);
  align-items: end;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.section__title {
  margin: 0 0 var(--s1);
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 520;
  line-height: var(--lh-title);
  letter-spacing: var(--track-tight);
}

.section__sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.section__controls {
  display: flex;
  gap: var(--s1);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.catalog-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
}

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

.catalog-section-card {
  min-width: 0;
}

.catalog-section-card__link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border: var(--stroke) solid rgba(11, 28, 58, 0.12);
  border-radius: var(--radius);
  overflow: clip;
  background: var(--surface);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.catalog-section-card__link:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 183, 176, 0.26);
  box-shadow: 0 22px 64px rgba(11, 28, 58, 0.10);
}

.catalog-section-card__link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.catalog-section-card__media {
  aspect-ratio: 1 / 1;
  background: rgba(234, 243, 255, 0.7);
  overflow: hidden;
}

.catalog-section-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-section-card__body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: var(--s4);
}

.catalog-section-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 520;
  line-height: 1.1;
  letter-spacing: var(--track-tight);
}

.catalog-section-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

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

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


/* Artwork grid — колонки сверху вниз (1,4,7… | 2,5,8… | 3,6,9…).
   До инициализации masonry JS работает CSS columns (SEO/no-JS-friendly);
   после init контейнер переключается на flex-колонки, и новые карточки
   при «Показать ещё» добавляются только в существующие столбцы,
   не перетасовывая старые. */
.art-grid {
  --art-grid-cols: 3;
  column-count: var(--art-grid-cols);
  column-gap: var(--s3);
}

.art-grid > * {
  break-inside: avoid;
  margin-bottom: var(--s4);
}

@media (min-width: 1450px) {
  .catalog-content .art-grid {
    --art-grid-cols: 4;
  }
}

@media (min-width: 1451px) {
  #gallery .art-grid {
    --art-grid-cols: 4;
  }
}

@media (max-width: 767px) {
  .art-grid {
    --art-grid-cols: 1;
  }
}

.art-grid.is-init {
  column-count: unset;
  column-gap: unset;
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
}

.art-grid.is-init > .art-grid__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.art-grid.is-init .art-grid__col > * {
  margin-bottom: 0;
}

.art-card.is-new {
  animation: dadiz-art-card-in 0.45s ease both;
}

@keyframes dadiz-art-card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pagination under catalog (разметка под bitrix:system.pagenavigation, параметр PAGEN_1) */
.pagination,
.bx-pagination {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: var(--stroke) solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.pagination__action {
  flex: 0 0 100%;
}

.pagination__more {
  min-width: 180px;
}

/* состояние загрузки следующей страницы: спиннер слева + приглушённый текст */
.pagination__more.is-loading {
  color: rgba(11, 28, 58, 0.55);
  cursor: progress;
}

.pagination__more.is-loading::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(11, 28, 58, 0.2);
  border-top-color: var(--blue-deep);
  opacity: 1;
  animation: formStatusSpin 900ms linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .pagination__more.is-loading::before {
    animation-duration: 1800ms;
  }
}

.pagination__list {
  display: flex;
  align-items: center;
  gap: var(--s0);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination__list li {
  margin-top: 0;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--s1);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: var(--stroke) solid transparent;
  border-radius: var(--radius-ui);
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease;
  text-decoration: none;
}

.pagination__link:hover {
  color: var(--ink);
  background: var(--blue-soft);
}

.pagination__link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.pagination__link.is-active {
  color: var(--surface);
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  pointer-events: none;
}

.pagination__link--prev .pagination__icon,
.pagination__link--next .pagination__icon {
  width: 18px;
  height: 18px;
}

.pagination__link--prev,
.pagination__link--next {
  gap: var(--s0);
}

.pagination__link--prev.is-disabled,
.pagination__link--next.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.pagination__info {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

@media (max-width: 520px) {
  .pagination,
  .bx-pagination {
    justify-content: flex-start;
  }

  .pagination__list {
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 28, 58, 0.25) transparent;
    scroll-snap-type: x mandatory;
    padding: 0 8px;
    margin: 0 -8px;
  }

  .pagination__list::-webkit-scrollbar {
    height: 6px;
  }

  .pagination__list::-webkit-scrollbar-track {
    background: transparent;
  }

  .pagination__list::-webkit-scrollbar-thumb {
    background: rgba(11, 28, 58, 0.22);
    border-radius: 999px;
  }

  /* subtle hint that the list is horizontally scrollable */
  .pagination__list::before,
  .pagination__list::after {
    content: "";
    position: sticky;
    top: 0;
    width: 22px;
    height: 100%;
    flex: 0 0 22px;
    pointer-events: none;
    z-index: 1;
  }

  .pagination__list::before {
    left: 0;
    background: linear-gradient(90deg, var(--surface), rgba(255, 255, 255, 0));
  }

  .pagination__list::after {
    right: 0;
    background: linear-gradient(270deg, var(--surface), rgba(255, 255, 255, 0));
  }

  .pagination__link {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    scroll-snap-align: start;
  }

  .pagination__link--prev .pagination__text,
  .pagination__link--next .pagination__text {
    display: none;
  }
}

.art-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border: var(--stroke) solid rgba(11, 28, 58, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: clip;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.art-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(31, 183, 176, 0.0),
    rgba(31, 183, 176, 0.26),
    rgba(11, 28, 58, 0.16),
    rgba(31, 183, 176, 0.0)
  );
  opacity: 0.7;
}

.art-card:hover {
  border-color: rgba(31, 183, 176, 0.26);
  box-shadow: 0 22px 64px rgba(11, 28, 58, 0.10);
}

.art-card--hidden {
  display: none;
}

.art-card__media {
  display: block;
  position: relative;
  aspect-ratio: var(--art-card-ratio, 2 / 3);
  background: rgba(234, 243, 255, 0.7);
  overflow: hidden;
}

.art-card__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(11, 28, 58, 0),
    rgba(11, 28, 58, 0.16),
    rgba(11, 28, 58, 0)
  );
  opacity: 0.65;
}

.art-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.art-card__buy {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.art-card__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  border: var(--stroke) solid rgba(11, 28, 58, 0.16);
  background: rgba(234, 243, 255, 0.70);
  color: rgba(11, 28, 58, 0.78);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 180ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.art-card__cart::before {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.7);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.art-card__cart svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.art-card__cart:hover {
  background: rgba(234, 243, 255, 0.92);
  border-color: rgba(31, 183, 176, 0.24);
  color: rgba(11, 28, 58, 0.92);
}

.art-card__cart:active {
  background: rgba(234, 243, 255, 0.92);
  border-color: rgba(31, 183, 176, 0.34);
}

.art-card__cart:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.art-card__cart.is-in-cart {
  background: rgba(31, 183, 176, 0.94);
  border-color: rgba(31, 183, 176, 0.94);
  color: rgba(255, 255, 255, 0.96);
}

.art-card__cart.is-in-cart::before {
  opacity: 1;
  transform: scale(1);
}

.art-card__cart.is-in-cart svg {
  opacity: 0;
  transform: scale(0.7);
}

.art-card__cart.is-in-cart:disabled,
.art-card__cart.is-in-cart:disabled:hover,
.art-card__cart.is-in-cart:disabled:active {
  background: rgba(31, 183, 176, 0.94);
  border-color: rgba(31, 183, 176, 0.94);
  color: rgba(255, 255, 255, 0.96);
  cursor: default;
}

.art-card__cart:disabled,
.art-card__cart:disabled:hover,
.art-card__cart:disabled:active {
  background: rgba(11, 28, 58, 0.06);
  border-color: rgba(11, 28, 58, 0.10);
  color: rgba(11, 28, 58, 0.28);
  cursor: not-allowed;
}

.art-card__cart:disabled:focus-visible {
  outline: none;
}

.art-card__body {
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.art-card__header {
  display: grid;
  gap: var(--s-1);
}

.art-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 520;
  letter-spacing: var(--track-tight);
  line-height: 1.2;
}

.art-card__title-link {
  color: inherit;
  text-decoration: none;
  font-size: 18px;
}

/* Список работ на главной — заголовки карточек крупнее */
#gallery .art-card__title {
  font-size: 18px;
}

.art-card__author {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
}

.art-card__author-link {
  text-decoration: 0;
}

.art-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-meta);
  line-height: 1.75;
  padding: 0;
  list-style: none;
}

.art-card__meta-item {
  display: inline;
}

.art-card__meta-item:not(:last-child)::after {
  content: "\00a0\2022";
  display: inline;
  color: rgba(11, 28, 58, 0.34);
}

.art-card__status {
  align-self: flex-start;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.art-card__status--available {
  color: var(--status-available-text);
}

.art-card__status--unavailable {
  color: var(--status-unavailable-text);
}

.art-card__status--preorder {
  color: var(--status-preorder-text);
}

/* Increase specificity to override generic Bitrix content styles. */
.art-card .art-card__title,
.art-card .art-card__status,
.art-card .art-card__author,
.art-card .art-card__meta,
.art-card .art-card__price {
  margin: 0;
}

.art-card .art-card__status--available {
  color: var(--status-available-text);
}

.art-card .art-card__status--unavailable {
  color: var(--status-unavailable-text);
}

.art-card .art-card__status--preorder {
  color: var(--status-preorder-text);
}

.art-card__price {
  margin: 0;
  color: rgba(11, 28, 58, 0.92);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.art-card__actions {
  margin-top: auto;
  display: flex;
  gap: var(--s1);
  flex-wrap: wrap;
  padding-top: var(--s3);
  border-top: var(--stroke) solid rgba(11, 28, 58, 0.10);
}

/* Modal (quick view) */
body.is-modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: center;
  justify-items: center;
  --modal-gutter: clamp(10px, 1.6vw, 18px);
  padding: var(--modal-gutter);
  overflow: hidden;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 58, 0.42);
}

.modal__dialog {
  position: relative;
  width: min(1240px, 96vw);
  max-height: calc(100dvh - (var(--modal-gutter) * 2));
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  border: var(--stroke) solid rgba(11, 28, 58, 0.14);
  box-shadow: 0 34px 110px rgba(11, 28, 58, 0.24);
  backdrop-filter: blur(8px);
}

.modal__close {
  position: absolute;
  top: var(--modal-pad, 18px);
  right: var(--modal-pad, 18px);
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: rgba(11, 28, 58, 0.72);
  cursor: pointer;
  z-index: 2;
  transform: translate(var(--modal-close-shift-x, 0px), var(--modal-close-shift-y, 0px));
}

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

.modal__close:hover {
  color: rgba(11, 28, 58, 0.92);
}

.modal__close:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.modal__grid {
  --modal-pad: clamp(18px, 2.4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.95fr);
  gap: var(--s4);
  padding: var(--modal-pad);
  padding-top: calc(var(--modal-pad) + 32px);
  align-items: start;
  position: relative;
}

.modal__grid--form {
  grid-template-columns: 1fr;
}

.modal[data-orientation="horizontal"] .modal__grid {
  grid-template-columns: 1fr;
}

.modal[data-orientation="horizontal"] {
  --modal-close-shift-y: -8px;
}

#buy-modal {
  --modal-close-shift-x: 8px;
  --modal-close-shift-y: -10px;
}

.modal__media {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(234, 243, 255, 0.55);
  height: min(78dvh, 760px);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.2vw, 14px);
}

.modal[data-orientation="horizontal"] .modal__media {
  width: 100%;
  height: min(62dvh, 620px);
  min-height: 260px;
}

.modal__media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
}

.modal__content {
  display: grid;
  gap: 12px;
}

.modal__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: var(--track-tight);
}

.modal__author {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.buy-modal__author {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.modal__meta {
  margin-top: 4px;
}

.modal__price {
  margin: 8px 0 0;
  color: rgba(11, 28, 58, 0.92);
  font-weight: 750;
  letter-spacing: 0.01em;
  font-size: 18px;
}

.buy-modal__thumb {
  margin: 2px 0 0;
  width: clamp(92px, 18vw, 140px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border: var(--stroke) solid rgba(11, 28, 58, 0.12);
  overflow: hidden;
  background: rgba(234, 243, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.buy-modal__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal__actions {
  margin-top: 10px;
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}

/* Default checkbox (site-wide, matches smart filter look) */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
  border: var(--stroke) solid rgba(11, 28, 58, 0.22);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  display: inline-grid;
  place-content: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

input[type="checkbox"]:checked {
  border-color: rgba(31, 183, 176, 0.92);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3 3 7-7' fill='none' stroke='%231fb7b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Buy form */
.buy-form {
  margin-top: 6px;
}

.modal__content.has-form-success .buy-form {
  display: none;
}

/* Form status (one state visible at a time) */
.form-status-wrap {
  margin-top: 12px;
}

.form-status-wrap .form-status {
  display: none;
}

.form-status-wrap.form-status-wrap--loading .form-status--loading,
.form-status-wrap.form-status-wrap--success .form-status--success,
.form-status-wrap.form-status-wrap--error .form-status--error {
  display: flex;
}

.form-status {
  --status-accent: rgba(11, 28, 58, 0.82);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-ui);
  border: var(--stroke) solid rgba(11, 28, 58, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.form-status--loading {
  --status-accent: rgba(11, 28, 58, 0.86);
}

.form-status--success {
  --status-accent: rgba(31, 183, 176, 0.95);
}

.form-status--error {
  --status-accent: rgba(214, 58, 58, 0.95);
}

.form-status__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--status-accent);
  border: var(--stroke) solid color-mix(in srgb, var(--status-accent), transparent 78%);
  background: color-mix(in srgb, var(--status-accent), transparent 88%);
}

.form-status__icon svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.form-status__spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(11, 28, 58, 0.16);
  border-top-color: var(--status-accent);
  animation: formStatusSpin 900ms linear infinite;
}

.form-status__text {
  margin: 0;
  padding-top: 4px;
  color: rgba(11, 28, 58, 0.86);
  font-size: 14px;
  line-height: 1.45;
}

@keyframes formStatusSpin {
  to {
    transform: rotate(360deg);
  }
}

.buy-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.buy-form__field {
  display: grid;
  gap: 8px;
}

.buy-form__field.is-error .buy-form__input,
.buy-form__field.is-error .buy-form__textarea {
  border-color: rgba(214, 58, 58, 0.75);
  background: rgba(214, 58, 58, 0.06);
}

.buy-form__field.is-error .buy-form__consent-text {
  color: rgba(214, 58, 58, 0.9);
}

.buy-form__error {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(214, 58, 58, 0.95);
}

.buy-form__field--full {
  grid-column: 1 / -1;
}

.buy-form__field--required .buy-form__label::after {
  content: " *";
  color: rgba(31, 183, 176, 0.95);
  font-weight: 760;
}

.buy-form__field--required .buy-form__consent-text::after {
  content: " *";
  color: rgba(31, 183, 176, 0.95);
  font-weight: 760;
}

.buy-form__field--required .buy-form__input,
.buy-form__field--required .buy-form__textarea {
  border-color: rgba(31, 183, 176, 0.32);
}

.buy-form__label {
  color: rgba(11, 28, 58, 0.62);
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buy-form__input,
.buy-form__textarea {
  width: 100%;
  border-radius: var(--radius-ui);
  border: var(--stroke) solid rgba(11, 28, 58, 0.16);
  background: rgba(234, 243, 255, 0.45);
  color: rgba(11, 28, 58, 0.92);
  font: inherit;
  letter-spacing: inherit;
  padding: 12px 12px;
  outline: none;
}

.buy-form__textarea {
  resize: vertical;
  min-height: 110px;
}

.buy-form__input:focus-visible,
.buy-form__textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.buy-form__consent {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(11, 28, 58, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.buy-form__checkbox {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  appearance: none;
  -webkit-appearance: none;
  border: var(--stroke) solid rgba(11, 28, 58, 0.22);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.buy-form__checkbox:checked {
  border-color: rgba(31, 183, 176, 0.92);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3 3 7-7' fill='none' stroke='%231fb7b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.buy-form__checkbox:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.buy-form__consent a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .modal__grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
    padding: var(--s4);
  }

  .modal__media {
    height: min(52dvh, 420px);
    min-height: 240px;
  }

  /* Horizontal paintings: let height follow the image (no extra space) */
  .modal[data-orientation="horizontal"] .modal__grid {
    gap: var(--s3);
    padding: var(--s3);
  }

  .modal[data-orientation="horizontal"] .modal__media {
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .modal[data-orientation="horizontal"] .modal__media img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .buy-form__grid {
    grid-template-columns: 1fr;
  }
}

/* Simple layout modules */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: start;
}

.stack {
  display: grid;
  gap: var(--s2);
}

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

/* Сброс grid для сайдбара галереи: на главной .catalog-sections — сетка карточек, в сайдбаре — заголовок сверху, чипы в ряд */
.catalog-sidebar .catalog-sections {
  display: block;
}

.catalog-sections {
  margin-bottom: var(--s3);
}

.catalog-sections__list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

.catalog-filter {
  margin-top: var(--s3);
}

.catalog-filter__summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 12px;
  border-radius: var(--radius-ui);
  color: rgba(11, 28, 58, 0.88);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.86);
  border: var(--stroke) solid rgba(11, 28, 58, 0.12);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.catalog-filter__summary::-webkit-details-marker {
  display: none;
}

.catalog-filter__summary:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(31, 183, 176, 0.22);
}

.catalog-filter__summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.catalog-filter__summary-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: var(--stroke) solid rgba(11, 28, 58, 0.16);
  background: rgba(255, 255, 255, 0.70);
  position: relative;
  flex: 0 0 auto;
}

.catalog-filter__summary-icon::before,
.catalog-filter__summary-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 2px;
  background: rgba(11, 28, 58, 0.62);
  border-radius: 999px;
  transform-origin: center;
}

.catalog-filter__summary-icon::before {
  transform: translate(-60%, -50%) rotate(45deg);
}

.catalog-filter__summary-icon::after {
  transform: translate(-20%, -50%) rotate(-45deg);
}

.catalog-filter[open] .catalog-filter__summary-icon::before {
  transform: translate(-60%, -50%) rotate(-45deg);
}

.catalog-filter[open] .catalog-filter__summary-icon::after {
  transform: translate(-20%, -50%) rotate(45deg);
}

@media (max-width: 720px) {

  .catalog-sections__list .chip {
    flex: none;
  }
}

@media (max-width: 1024px) {
  /* Mobile: keep content close to top; filter starts collapsed */
  .catalog-filter__summary {
    display: flex;
  }

  .catalog-filter .bx-filter__head {
    display: none;
  }
}

/* Bitrix smart filter (visual template for bitrix:catalog.smart.filter)
   Display types from docs: A (range+slider), B (range), F/G/H (checkboxes),
   K (radio), P/R (dropdown). We style core classes and keep selectors shallow. */
.bx-filter {
  border: var(--stroke) solid rgba(11, 28, 58, 0.10);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  overflow: clip;
}

.bx-filter-section {
  padding: var(--s3);
}

.bx-filter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding-bottom: var(--s3);
  border-bottom: var(--stroke) solid rgba(11, 28, 58, 0.10);
  margin-bottom: var(--s3);
}

.bx-filter__title {
  margin: 0;
}

.bx-filter-parameters-box {
  border-top: var(--stroke) solid rgba(11, 28, 58, 0.10);
  padding-top: 10px;
  margin-top: 10px;
}

.bx-filter-parameters-box:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.bx-filter-parameters-box-title {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 2px;
  margin: 0;
  color: rgba(11, 28, 58, 0.88);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  background: transparent;
  border: 0;
  transition: color 160ms ease;
}

.bx-filter-parameters-box-title:hover {
  color: rgba(11, 28, 58, 0.98);
}

.bx-filter-parameters-box-title:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.bx-filter-parameters-box-title::-webkit-details-marker {
  display: none;
}

.bx-filter-parameters-box-arrow {
  margin-left: auto;
  width: 14px;
  height: 14px;
  border-radius: 0;
  border: 0;
  background: transparent;
  position: relative;
  flex: 0 0 auto;
}

.bx-filter-parameters-box-arrow::before,
.bx-filter-parameters-box-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 2px;
  background: rgba(11, 28, 58, 0.58);
  border-radius: 999px;
  transform-origin: center;
}

.bx-filter-parameters-box-arrow::before {
  transform: translate(-60%, -50%) rotate(45deg);
}
.bx-filter-parameters-box-arrow::after {
  transform: translate(-20%, -50%) rotate(-45deg);
}

details.bx-filter-parameters-box[open] .bx-filter-parameters-box-arrow::before {
  transform: translate(-60%, -50%) rotate(-45deg);
}
details.bx-filter-parameters-box[open] .bx-filter-parameters-box-arrow::after {
  transform: translate(-20%, -50%) rotate(45deg);
}

.bx-filter-block {
  padding: 10px 2px 6px;
}

.bx-filter-parameters-box-container {
  display: grid;
  gap: 10px;
}

.bx-filter-input-container--range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.bx-filter-range-sep {
  color: rgba(11, 28, 58, 0.42);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.bx-filter-input {
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-ui);
  border: var(--stroke) solid rgba(11, 28, 58, 0.14);
  background: rgba(255, 255, 255, 0.80);
  color: rgba(11, 28, 58, 0.92);
  font: inherit;
  letter-spacing: inherit;
  padding: 8px 10px;
  outline: none;
  height: 34px;
}

.bx-filter-input::placeholder {
  color: rgba(11, 28, 58, 0.48);
}

.bx-filter-input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.bx-filter-slider {
  display: grid;
  gap: 8px;
}

.bx-filter-slider--dual {
  position: relative;
  height: 14px;
  display: block;
  --split-p: 50%;
}

.bx-filter-dual-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: rgba(11, 28, 58, 0.14);
  border-radius: 999px;
  pointer-events: none;
}

.bx-filter-dual-range {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--min-p, 0%);
  right: calc(100% - var(--max-p, 100%));
  background: rgba(31, 183, 176, 0.45);
  border-radius: 999px;
}

.bx-filter-range {
  width: 100%;
  --p: 0%;
  accent-color: rgba(31, 183, 176, 0.95);
  appearance: none;
  -webkit-appearance: none;
  height: 14px; /* reserves space for thumb */
  background: transparent;
}

/* WebKit (Chrome/Safari) */
.bx-filter-range::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(
    to right,
    rgba(31, 183, 176, 0.45) 0 var(--p),
    rgba(11, 28, 58, 0.14) var(--p) 100%
  );
  border-radius: 999px;
}

.bx-filter-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(31, 183, 176, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.95);
  margin-top: -5px; /* centers thumb on 4px track */
  box-shadow: 0 6px 16px rgba(11, 28, 58, 0.10);
}

/* Firefox */
.bx-filter-range::-moz-range-track {
  height: 4px;
  background: rgba(11, 28, 58, 0.14);
  border-radius: 999px;
}

.bx-filter-range::-moz-range-progress {
  height: 4px;
  background: rgba(31, 183, 176, 0.45); /* visible fill */
  border-radius: 999px;
}

.bx-filter-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(31, 183, 176, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px rgba(11, 28, 58, 0.10);
}

.bx-filter-range:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Dual slider: one visible track, two thumbs */
.bx-filter-slider--dual .bx-filter-range {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  pointer-events: auto;
  z-index: 2;
}

/* Split pointer area between handles so both thumbs are clickable */
.bx-filter-slider--dual .bx-filter-range.bx-filter-range--min {
  clip-path: inset(0 calc(100% - var(--split-p)) 0 0);
}

.bx-filter-slider--dual .bx-filter-range.bx-filter-range--max {
  clip-path: inset(0 0 0 var(--split-p));
}

.bx-filter-slider--dual .bx-filter-range::-webkit-slider-runnable-track {
  background: transparent;
}

.bx-filter-slider--dual .bx-filter-range::-moz-range-track,
.bx-filter-slider--dual .bx-filter-range::-moz-range-progress {
  background: transparent;
}

.bx-filter-param-list {
  display: grid;
  gap: 0;
}

.bx-filter-param-label {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-radius: 0;
  border: 0;
  border-bottom: var(--stroke) solid rgba(11, 28, 58, 0.08);
  background: transparent;
  color: rgba(11, 28, 58, 0.84);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.bx-filter-param-list .bx-filter-param-label:last-child {
  border-bottom: 0;
}

.bx-filter-param-label:hover {
  background: rgba(234, 243, 255, 0.28);
}

.bx-filter-param-label:active {
  background: rgba(234, 243, 255, 0.40);
}

.bx-filter-param-label:has(.bx-filter-input-checkbox:checked),
.bx-filter-param-label:has(.bx-filter-input-radio:checked) {
  color: rgba(31, 183, 176, 0.98);
}

.bx-filter-param-label:has(.bx-filter-input-checkbox:checked) .bx-filter-param-text,
.bx-filter-param-label:has(.bx-filter-input-radio:checked) .bx-filter-param-text {
  font-weight: 600;
}

.bx-filter-param-label:has(.bx-filter-input-checkbox:disabled),
.bx-filter-param-label:has(.bx-filter-input-radio:disabled) {
  opacity: 0.6;
  cursor: not-allowed;
}

.bx-filter-input-checkbox,
.bx-filter-input-radio {
  width: 18px;
  height: 18px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: var(--stroke) solid rgba(11, 28, 58, 0.22);
  background: rgba(255, 255, 255, 0.92);
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
}

.bx-filter-input-checkbox {
  border-radius: 5px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.bx-filter-input-checkbox:checked {
  border-color: rgba(31, 183, 176, 0.92);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3 3 7-7' fill='none' stroke='%231fb7b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.bx-filter-input-radio {
  border-radius: 999px;
}

.bx-filter-input-radio:checked {
  border-color: rgba(31, 183, 176, 0.92);
  background: radial-gradient(circle at 50% 50%, rgba(31, 183, 176, 0.95) 0 45%, transparent 46%);
}

.bx-filter-input-checkbox:focus-visible,
.bx-filter-input-radio:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.bx-filter-param-text {
  color: currentColor;
  font-size: 14px;
  line-height: 1.35;
}

.bx-filter-param-count {
  color: rgba(11, 28, 58, 0.46);
  font-size: 12px;
  letter-spacing: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.bx-filter-hint {
  margin-left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--stroke) solid rgba(11, 28, 58, 0.16);
  color: rgba(11, 28, 58, 0.62);
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.bx-filter-show-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-ui);
  border: var(--stroke) dashed rgba(11, 28, 58, 0.18);
  background: transparent;
  color: rgba(11, 28, 58, 0.72);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  font-size: 13px;
}

.bx-filter-show-more:hover {
  background: rgba(234, 243, 255, 0.55);
  border-color: rgba(31, 183, 176, 0.26);
  color: rgba(11, 28, 58, 0.88);
}

.bx-filter-show-more:disabled {
  background: rgba(11, 28, 58, 0.04);
  border-color: rgba(11, 28, 58, 0.08);
  color: rgba(11, 28, 58, 0.34);
  cursor: not-allowed;
}

.bx-filter-button-box {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: var(--stroke) solid rgba(11, 28, 58, 0.10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.bx-filter-button-box .btn {
  flex: 1 1 auto;
}

/* Display types P/R: dropdown (select) */
.bx-filter-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-ui);
  border: var(--stroke) solid rgba(11, 28, 58, 0.16);
  background: rgba(234, 243, 255, 0.45);
  color: rgba(11, 28, 58, 0.92);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  outline: none;
}

.bx-filter-select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.bx-filter-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: var(--s4);
    min-width: 0;
  }

  .catalog-sidebar {
    position: static;
    min-width: 0;
  }

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

  .artist-card--wide {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.minor-title {
  margin: 0;
  font-size: var(--fs-meta);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.artists-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}

.artist-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s4);
  border: var(--stroke) solid rgba(11, 28, 58, 0.10);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(234, 243, 255, 0.36));
  overflow: clip;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.artist-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(31, 183, 176, 0.0),
    rgba(31, 183, 176, 0.32),
    rgba(11, 28, 58, 0.20),
    rgba(31, 183, 176, 0.0)
  );
  opacity: 0.8;
}

.artist-card:hover {
  border-color: rgba(31, 183, 176, 0.26);
  box-shadow: 0 18px 52px rgba(11, 28, 58, 0.08);
}

.artist-card__top {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--s3);
  align-items: center;
}

/* Без портрета в разметке только meta — иначе он попадает в колонку 96px и имя ломается по словам */
.artist-card__top:not(:has(.artist-card__portrait)) {
  grid-template-columns: minmax(0, 1fr);
}

.artist-card__portrait {
  align-self: start;
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: var(--stroke) solid rgba(11, 28, 58, 0.12);
  background: rgba(234, 243, 255, 0.72);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.artist-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-card__meta {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.artist-card__name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 520;
  letter-spacing: var(--track-tight);
  line-height: 1.2;
}

.artist-card__name-link {
  color: inherit;
  text-decoration: none;
  transition: color 220ms ease;
}

.artist-card__name-link:hover {
  color: var(--link-hover);
}

.artist-card__country {
  margin: 0;
  color: rgba(11, 28, 58, 0.62);
  font-size: var(--fs-meta);
}

.artist-card__works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.artist-card__work {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(234, 243, 255, 0.55);
  border: var(--stroke) solid rgba(11, 28, 58, 0.10);
  box-shadow: none;
  transition: opacity 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.artist-card__work:hover {
  opacity: 0.9;
  border-color: rgba(31, 183, 176, 0.28);
  box-shadow: 0 10px 22px rgba(11, 28, 58, 0.10);
}

.artist-card__work img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.artist-card__works-block {
  margin-top: 14px;
}

.artist-card__works-title {
  margin: 0 0 10px;
  color: rgba(11, 28, 58, 0.56);
  font-size: var(--fs-meta);
}

.artist-card .btn {
  margin-top: 14px;
  align-self: flex-start;
}

.artists-page__hero {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.artists-page__list {
  display: grid;
  gap: var(--s4);
}

.artists-page__search {
  margin-bottom: clamp(28px, 3vw, 40px);
}

.contacts-page__hero {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.contacts-page__grid,
.editor-content > .contacts-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.contacts-page__grid--no-map,
.editor-content > .contacts-page__grid--no-map {
  grid-template-columns: 1fr;
}

.contacts-page__panel,
.contacts-map__frame {
  border: var(--stroke) solid rgba(11, 28, 58, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(234, 243, 255, 0.42));
  box-shadow: var(--shadow);
}

.contacts-page__panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 36px);
}

.contacts-page__panel--map {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--s3);
  overflow: hidden;
}

@media (max-width: 1100px) {
  .contacts-page__grid {
    grid-template-columns: 1fr;
  }
}

.contacts-page__panel-head {
  display: grid;
  gap: 12px;
}

.contacts-list {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s3);
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s2);
  align-items: start;
  padding: var(--s3);
  border: var(--stroke) solid rgba(11, 28, 58, 0.08);
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.88);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: linear-gradient(135deg, rgba(31, 183, 176, 0.16), rgba(184, 212, 232, 0.3));
}

.contact-card__icon svg,
.contact-social__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card__body {
  display: grid;
  gap: 6px;
}

.contact-card__label {
  margin: 0;
  font-size: var(--fs-small);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card__value {
  margin: 0;
  color: rgba(11, 28, 58, 0.92);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
}

.contact-card__link {
  transition: color 180ms ease;
}

.contact-card__link:hover,
.contact-card__link:focus-visible {
  color: var(--link-hover);
}

.contact-card--social .contact-card__body {
  gap: 12px;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-social__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  border: var(--stroke) solid rgba(11, 28, 58, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.contact-social__link:hover,
.contact-social__link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(31, 183, 176, 0.26);
  color: var(--link-hover);
  box-shadow: 0 16px 34px rgba(11, 28, 58, 0.08);
}

.contact-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.contacts-map__frame {
  min-height: 100%;
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(234, 243, 255, 0.44)),
    radial-gradient(circle at top right, rgba(31, 183, 176, 0.12), transparent 38%);
}

.contacts-map__placeholder {
  display: grid;
  gap: var(--s2);
  width: min(100%, 520px);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
  border: 1px dashed rgba(11, 28, 58, 0.18);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.72);
}

.contacts-map__badge {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(11, 28, 58, 0.08);
  color: var(--blue-deep);
  font-size: var(--fs-small);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.contacts-map__address,
.contacts-map__hint {
  margin: 0;
}

.contacts-map__address {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: var(--track-tight);
}

.contacts-map__hint {
  color: var(--muted);
  line-height: 1.7;
}

.artists-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: var(--s3);
  align-items: end;
  padding: var(--s3) var(--s4);
  border: var(--stroke) solid rgba(11, 28, 58, 0.10);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(234, 243, 255, 0.36));
}

.artists-search__text {
  display: grid;
  gap: 8px;
}

.artists-search__hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.artists-search__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s2);
  align-items: stretch;
}

.artists-search__field {
  position: relative;
  min-width: 0;
}

.artists-search__input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 38px 0 16px;
  border: var(--stroke) solid rgba(11, 28, 58, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.artists-search__input::-webkit-search-cancel-button,
.artists-search__input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.artists-search__input::-moz-search-clear-button {
  display: none;
}

.artists-search__clear-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  transition: background-color 220ms ease, color 220ms ease;
}

.artists-search__clear-icon:hover {
  background: rgba(11, 28, 58, 0.08);
  color: var(--text);
}

.artists-search__clear-icon:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.artists-search__actions {
  display: inline-flex;
  gap: var(--s1);
  align-items: center;
}

.artists-search__form .artists-search__submit,
.artists-search__form .artists-search__reset {
  height: 40px;
}

.artists-search__input::placeholder {
  color: rgba(11, 28, 58, 0.42);
}

.artists-search__input:focus-visible {
  outline: none;
  border-color: rgba(31, 183, 176, 0.4);
  box-shadow: 0 0 0 4px rgba(31, 183, 176, 0.12);
  background: #fff;
}

.artist-card--wide {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  scroll-margin-top: 120px;
}

.artist-card--wide:target {
  border-color: rgba(31, 183, 176, 0.32);
  box-shadow: 0 20px 56px rgba(11, 28, 58, 0.10);
}

.artist-card__aside {
  display: grid;
  gap: var(--s3);
  align-content: start;
}

.artist-card--wide .artist-card__top {
  grid-template-columns: 112px 1fr;
  gap: var(--s3);
}

.artist-card--wide .artist-card__top:not(:has(.artist-card__portrait)) {
  grid-template-columns: minmax(0, 1fr);
}

.artist-card--wide .artist-card__portrait {
  width: 112px;
  height: 112px;
}

.artist-card--wide .artist-card__works-block {
  margin-top: 0;
}

.artist-card--wide .artist-card__works-title {
  margin-bottom: 14px;
}

.artist-card--wide .artist-card__works {
  gap: 12px;
}

.artist-card--wide .artist-card__work {
  aspect-ratio: 1 / 1;
}

.artist-detail-page {
  min-height: calc(100vh - 180px);
}

.artist-detail {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}

.artist-detail__hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(24px, 3.5vw, 40px);
  border: var(--stroke) solid rgba(11, 28, 58, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(234, 243, 255, 0.4));
  box-shadow: var(--shadow);
}

.artist-detail__hero--no-portrait {
  grid-template-columns: 1fr;
}

.artist-detail__portrait {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(234, 243, 255, 0.7);
  border: var(--stroke) solid rgba(11, 28, 58, 0.1);
}

.artist-detail__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.artist-detail__content {
  display: grid;
  gap: var(--s2);
  align-content: start;
}

.artist-detail__name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.artist-detail__country {
  margin: 0;
  color: rgba(11, 28, 58, 0.62);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artist-detail__description {
  display: grid;
  gap: var(--s2);
  max-width: 70ch;
  color: rgba(11, 28, 58, 0.82);
}

.artist-detail__description p {
  margin: 0;
}

.artist-detail__works {
  display: grid;
  gap: var(--s3);
}

.artist-detail__works-head {
  margin-bottom: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--s4);
  color: rgba(11, 28, 58, 0.56);
  font-size: var(--fs-small);
}

.breadcrumbs a {
  text-decoration: none;
}

.artwork-page {
  min-height: calc(100vh - 180px);
}

.artwork-detail {
  display: grid;
  gap: var(--s5);
}

.artwork-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.artwork-gallery {
  display: grid;
  gap: var(--s2);
}

.artwork-gallery__frame {
  margin: 0;
  padding: clamp(18px, 2.5vw, 28px);
  border-radius: var(--radius);
  border: var(--stroke) solid rgba(11, 28, 58, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.artwork-gallery__hero-trigger {
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  display: block;
  cursor: zoom-in;
}

.artwork-gallery__hero-trigger:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.artwork-gallery__hero {
  width: 100%;
  max-height: min(72vh, 820px);
  object-fit: contain;
}

.artwork-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s1);
}

.artwork-gallery__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: var(--radius-sm);
  border: var(--stroke) solid rgba(11, 28, 58, 0.12);
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.artwork-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.artwork-gallery__thumb:hover,
.artwork-gallery__thumb:focus-visible,
.artwork-gallery__thumb.is-active {
  border-color: rgba(31, 183, 176, 0.34);
  box-shadow: 0 14px 34px rgba(11, 28, 58, 0.08);
}

.artwork-gallery__thumb:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.fancybox__caption {
  font-family: var(--font-body);
}

.artwork-summary {
  display: grid;
  gap: var(--s3);
}

.artwork-summary__lead {
  position: relative;
  display: grid;
  gap: var(--s3);
  padding-right: 7rem;
}

.artwork-summary__status {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  margin: 0;
}

.artwork-summary__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.artwork-summary__author {
  margin: calc(var(--s1) * -1) 0 0;
  color: var(--muted);
}

.artwork-summary__author a {
  text-decoration: none;
}

.artwork-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: calc(var(--s2) * -1) 0 0;
  padding: 0;
  list-style: none;
  color: rgba(11, 28, 58, 0.72);
  font-size: 14px;
}

.artwork-summary__price-block {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
}

.artwork-summary__price {
  flex: 1 0 100%;
  margin: 0;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 760;
  line-height: 1.1;
}

.artwork-summary__price-block .btn {
  margin-top: var(--s1);
}

.btn.is-in-cart {
  border-color: rgba(31, 183, 176, 0.34);
  background: rgba(31, 183, 176, 0.94);
  box-shadow:
    0 18px 44px rgba(31, 183, 176, 0.18),
    0 8px 18px rgba(11, 28, 58, 0.10);
}

.btn.is-in-cart::before {
  content: "✓";
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.btn.is-in-cart:hover {
  background: rgba(31, 183, 176, 1);
  border-color: rgba(31, 183, 176, 0.42);
}

.btn.is-in-cart:disabled,
.btn.is-in-cart:disabled:hover,
.btn.is-in-cart[aria-disabled="true"] {
  background: rgba(31, 183, 176, 0.94);
  border-color: rgba(31, 183, 176, 0.34);
  color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 18px 44px rgba(31, 183, 176, 0.18),
    0 8px 18px rgba(11, 28, 58, 0.10);
  cursor: default;
  opacity: 1;
}

.btn.is-in-cart:disabled::before,
.btn.is-in-cart[aria-disabled="true"]::before {
  opacity: 1;
  color: rgba(255, 255, 255, 0.96);
}

.cart-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  max-width: min(320px, calc(100vw - 32px));
  padding: 14px 18px;
  border: var(--stroke) solid rgba(31, 183, 176, 0.18);
  border-radius: 16px;
  background: rgba(11, 28, 58, 0.94);
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  box-shadow: 0 18px 54px rgba(11, 28, 58, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.cart-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cart-toast:hover,
.cart-toast:focus-visible {
  border-color: rgba(31, 183, 176, 0.4);
  box-shadow: 0 22px 64px rgba(11, 28, 58, 0.3);
  color: #fff;
  text-decoration: none;
}

.cart-toast:focus-visible {
  outline: 2px solid rgba(31, 183, 176, 0.7);
  outline-offset: 2px;
}

.cart-toast__text {
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: var(--stroke) solid rgba(31, 183, 176, 0.18);
  border-radius: 50%;
  background: rgba(11, 28, 58, 0.94);
  color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 18px 44px rgba(11, 28, 58, 0.18),
    0 6px 16px rgba(11, 28, 58, 0.10);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    transform 200ms ease,
    opacity 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease,
    background-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(31, 183, 176, 0.45);
  background: rgba(11, 28, 58, 1);
  box-shadow:
    0 22px 64px rgba(11, 28, 58, 0.3),
    0 0 0 4px rgba(31, 183, 176, 0.08);
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
  box-shadow: 0 12px 28px rgba(11, 28, 58, 0.22);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.back-to-top__icon {
  width: 22px;
  height: 22px;
  display: block;
  transform: translateY(1px);
}

@media (max-width: 720px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }

  .back-to-top__icon {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 120ms linear;
    transform: none;
  }

  .back-to-top.is-visible,
  .back-to-top:hover,
  .back-to-top:active {
    transform: none;
  }
}

.artwork-panel {
  padding: var(--s4);
  border-radius: var(--radius);
  border: var(--stroke) solid rgba(11, 28, 58, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.artwork-panel--text {
  padding: clamp(24px, 3.2vw, 40px);
}

.artwork-panel__head {
  margin-bottom: var(--s3);
}

.artwork-panel__title {
  margin: 0;
}

.artwork-specs {
  display: grid;
  gap: 12px;
}

.artwork-specs__row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: var(--s2);
  padding-bottom: 12px;
  border-bottom: var(--stroke) solid rgba(11, 28, 58, 0.08);
}

.artwork-specs__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.artwork-specs dt {
  color: rgba(11, 28, 58, 0.56);
  font-size: var(--fs-small);
}

.artwork-specs dd {
  margin: 0;
  color: rgba(11, 28, 58, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.artwork-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

.artwork-tags__link {
  color: rgba(11, 28, 58, 0.78);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.artwork-tags__link:hover,
.artwork-tags__link:focus-visible {
  color: var(--link-hover);
}

.artwork-content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.artwork-artist-card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.artwork-artist-card__top {
  margin-bottom: 0;
}

.artwork-artist-card__portrait {
  width: 108px;
  height: 108px;
}

.artwork-artist-card__portrait img {
  object-fit: cover;
}

.artwork-artist-card__announce {
  display: grid;
  gap: var(--s2);
}

.artwork-artist-card__announce p {
  margin: 0;
  color: rgba(11, 28, 58, 0.82);
}

.artwork-artist-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.artwork-richtext {
  display: grid;
  gap: var(--s2);
}

.artwork-richtext p {
  margin: 0;
  color: rgba(11, 28, 58, 0.82);
}

.artwork-related {
  display: grid;
  gap: var(--s3);
  min-width: 0;
  margin-top: var(--s5);
}

.artwork-related__head {
  margin-bottom: 0;
}

.artwork-related__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: var(--s3);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.artwork-related__item {
  min-width: 0;
}

.artwork-related__card {
  display: grid;
  gap: 14px;
  height: 100%;
  padding: 14px;
  border: var(--stroke) solid rgba(11, 28, 58, 0.10);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(234, 243, 255, 0.42));
  color: inherit;
  text-decoration: none;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.artwork-related__card:hover,
.artwork-related__card:focus-visible {
  border-color: rgba(31, 183, 176, 0.28);
  box-shadow: 0 14px 34px rgba(11, 28, 58, 0.08);
}

.artwork-related__card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.artwork-related__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border: var(--stroke) solid rgba(11, 28, 58, 0.08);
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.artwork-related__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.artwork-related__body {
  display: grid;
  gap: 6px;
}

.artwork-related__title {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: var(--track-tight);
}

.artwork-related__meta {
  color: rgba(11, 28, 58, 0.56);
  font-size: var(--fs-small);
}

.artwork-related__price {
  font-size: 16px;
  font-weight: 700;
  color: rgba(11, 28, 58, 0.92);
}

/* Carousel "Другие работы" — multiple slides + arrows (Fancyapps Carousel) */
.artwork-related {
  overflow: visible;
}

.artwork-related__carousel.f-carousel {
  --f-carousel-spacing: var(--s2);
  --f-carousel-slide-width: 240px;
  --f-button-prev-pos: 12px;
  --f-button-next-pos: 12px;
  --f-button-width: 44px;
  --f-button-height: 44px;
  --f-button-bg: rgba(255, 255, 255, 0.95);
  --f-button-hover-bg: rgba(255, 255, 255, 1);
  --f-button-color: rgba(11, 28, 58, 0.85);
  --f-button-border-radius: 50%;
  --f-button-shadow: 0 4px 16px rgba(11, 28, 58, 0.12);
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.artwork-related__carousel .f-carousel__viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.artwork-related__carousel .f-carousel__slide {
  width: var(--f-carousel-slide-width);
  min-width: var(--f-carousel-slide-width);
  padding: 0;
}

.artwork-related__carousel .artwork-related__item {
  min-width: 0;
  height: 100%;
}

/* Стрелки поверх карусели, поверх viewport */
.artwork-related__carousel .f-carousel__nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.artwork-related__carousel .f-carousel__nav .f-button {
  pointer-events: all;
}

.artwork-related__carousel .f-carousel__nav .f-button[disabled] {
  pointer-events: all;
  cursor: not-allowed;
}

@media (min-width: 640px) {
  .artwork-related__carousel.f-carousel {
    --f-carousel-slide-width: 260px;
  }
}

@media (min-width: 900px) {
  .artwork-related__carousel.f-carousel {
    --f-carousel-slide-width: 280px;
    --f-button-prev-pos: 16px;
    --f-button-next-pos: 16px;
  }
}

.journal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: var(--stroke) solid rgba(11, 28, 58, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.journal-item + .journal-item {
  border-top: var(--stroke) solid rgba(11, 28, 58, 0.10);
}

.journal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s4);
  transition: background-color 220ms ease, color 220ms ease;
}
.journal-link:hover {
  background: rgba(234, 243, 255, 0.65);
}

.journal-title {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: var(--track-tight);
}

.journal-meta {
  color: var(--muted);
  font-size: var(--fs-small);
  white-space: nowrap;
}

/* Footer */
.site-footer {
  border-top: var(--stroke) solid var(--line);
  padding-block: var(--s7);
  background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
  color: rgba(255, 255, 255, 0.92);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s6);
}

/* Bootstrap 3 clearfix adds ::before/::after with display:table on all .container,
   which become extra grid-items and break the 2-column layout. */
.footer__inner::before,
.footer__inner::after {
  display: none;
}

.footer__brand {
  margin: 0 0 var(--s2);
  letter-spacing: 0.04em;
  font-family: var(--font-heading);
  font-weight: 520;
}

.footer__muted {
  margin: 0 0 var(--s2);
  color: rgba(255, 255, 255, 0.70);
}

.footer__title {
  margin: 0 0 var(--s2);
  font-size: var(--fs-meta);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.70);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s1);
}

.footer__list--nogap {
  gap: 0;
}

.footer__list a {
  color: rgba(255, 255, 255, 0.86);
  transition: color 220ms ease, opacity 220ms ease;
  text-decoration: none;
}
.footer__list a:focus-visible,
.footer__list a:hover {
  color: rgba(255, 255, 255, 0.98);
  opacity: 0.95;
}

.footer__list--credits {
  margin-top: var(--s3);
}

.footer__link--contacts {
  text-decoration: none;
}


.footer__text {
  color: rgba(255, 255, 255, 0.78);
}

.footer__social {
  margin-top: var(--s3);
  display: inline-flex;
  gap: 12px;
}

.footer__col--right {
  text-align: right;
}

.footer__col--right .footer__social {
  justify-content: flex-end;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: var(--stroke) solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.footer__social-link svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.footer__social-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
  opacity: 0.96;
}

/* Global link accents (keep calm, no noise) */
a:not(.btn):not(.chip):not(.icon-pill):not(.nav-link):hover {
  color: var(--link-hover);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }

  .form-status__spinner {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Responsive */
@media (max-width: 1320px) {
  :root {
    --gutter: 48px;
  }
}

@media (max-width: 1024px) {
  :root {
    --gutter: 28px;
  }

  .nav-list {
    justify-content: center;
    gap: var(--s2);
  }

  .hero {
    padding-block: clamp(72px, 8vw, 120px);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .art-grid {
    column-count: 2;
  }

  .footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: var(--s5);
  }

  .artwork-detail__grid {
    grid-template-columns: 1fr;
  }

  .artwork-content {
    grid-template-columns: 1fr;
  }

  .artwork-related__list {
    grid-auto-columns: minmax(260px, 72%);
  }
}

@media (max-width: 920px) {
  .header__top {
    gap: var(--s2);
  }

  .site-header .header__actions {
    gap: 8px;
  }

  .site-header .icon-row {
    gap: 8px;
  }

  .site-header .lang,
  .site-header .header__shop {
    margin-left: 12px;
  }

  .header__shop,
  .header__bottom-tools {
    gap: 10px;
  }

  .header__bottom {
    gap: var(--s2);
  }

  .nav-list {
    gap: 10px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 13px;
    letter-spacing: 0.01em;
  }

  .compact-header__controls,
  .compact-header__actions {
    gap: 10px;
  }

  .btn.compact-header__menu-toggle {
    padding-inline: 14px;
  }

  .compact-header .lang__btn {
    min-width: 30px;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 24px;
  }

  .brand__logo {
    width: 92px;
  }

  .header__actions {
    justify-content: center;
  }

  .site-header .lang,
  .site-header .header__shop {
    margin-left: 0;
  }

  .header__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--s2);
    border-bottom: none;
  }

  .header__brand {
    justify-self: start;
  }

  .header__actions {
    justify-self: center;
  }

  .nav-toggle {
    justify-self: end;
    display: inline-flex;
  }

  .header__bottom {
    padding: 0;
  }

  .header__bottom-tools {
    display: none;
  }

  .compact-header {
    display: none;
  }

  .footer__col--right {
    text-align: left;
  }

  .footer__col--right .footer__social {
    justify-content: flex-start;
  }

  /* Off-canvas menu: overlays content, no dark overlay, no blur.
     Use 100% instead of 100vw to avoid horizontal overflow when scrollbar is present. */
  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 100%;
    max-width: 100vw;
    padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* very soft right-cast shadow (museum / editorial separation) */
    box-shadow:
      18px 0 48px rgba(11, 28, 58, 0.06),
      6px 0 18px rgba(11, 28, 58, 0.04);
    transform: translateX(-102%);
    opacity: 0;
    pointer-events: none;
    /* slower, editorial motion (avoid springy curves) */
    transition:
      transform 560ms cubic-bezier(0.25, 0.10, 0.25, 1),
      opacity 420ms ease 80ms;
    z-index: 50;
  }

  html.is-open .site-header .header__nav {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  html.is-search-overlay-open .site-header .header__nav > :not(.header-search) {
    display: none !important;
  }

  .nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s2);
    padding-bottom: 16px;
    border-bottom: var(--stroke) solid rgba(11, 28, 58, 0.10);
    margin-bottom: 18px;
  }

  .header__nav {
    position: fixed;
  }

  .nav-close {
    position: static;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(11, 28, 58, 0.78);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-close svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  .nav-close:hover {
    color: rgba(11, 28, 58, 0.92);
    opacity: 0.92;
  }

  .nav-close:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 4px;
  }

  .header__nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .header__menu--desktop {
    display: none;
  }

  .header__menu--mobile {
    display: block;
    width: 100%;
  }

  .header__nav .nav-link {
    width: 100%;
    display: block;
    padding: 10px 0;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    font-size: 18px;
    border-radius: 0;
    border: 0;
    background: none;
    letter-spacing: 0.01em;
    color: rgba(11, 28, 58, 0.88);
    border-bottom: var(--stroke) solid rgba(11, 28, 58, 0.10);
  }

  .header__nav .nav-list li:last-child .nav-link {
    border-bottom: 0;
  }

  .header__nav .nav-link:hover {
    color: rgba(31, 183, 176, 0.95);
    background: none;
    border-color: transparent;
  }

  .header__nav .nav-link.is-active,
  .header__nav .nav-link[aria-current="page"] {
    color: rgba(11, 28, 58, 0.92);
    background: rgba(234, 243, 255, 0.82);
    box-shadow:
      inset 3px 0 0 rgba(31, 183, 176, 0.42),
      inset 0 0 0 1px rgba(31, 183, 176, 0.18);
  }

  .nav-extras {
    display: block;
    margin-top: 22px;
    padding-top: 18px;
    border-top: var(--stroke) solid rgba(11, 28, 58, 0.10);
    width: 100%;
  }

  .nav-extras__group {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  /* Search dropdown should live inside off-canvas flow on mobile */
  .header__nav .header-search {
    position: fixed;
    inset: 0;
    width: 100%;
    margin: 0;
    padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px));
    border: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
    transition: none;
    z-index: 70;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header__nav .header-search.is-open {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Suggestions in overlay: only when there are results, scrollable */
  html.is-search-overlay-open div.title-search-result:empty {
    display: none !important;
  }

  html.is-search-overlay-open div.title-search-result:not(:empty) {
    display: block !important;
    position: fixed !important;
    left: var(--gutter) !important;
    right: var(--gutter) !important;
    /* Place results close to the actions row (Find/Close). */
    top: calc(18px + 44px + 10px + 44px + 14px) !important;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-height: none;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    z-index: 9999 !important;
  }

  .artwork-related__list {
    grid-auto-columns: minmax(220px, 84%);
    gap: var(--s2);
  }

  .artwork-related__card {
    padding: 12px;
  }

  .header__nav .header-search__form {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header__nav .header-search__input {
    flex: 1 1 100%;
    height: 44px;
  }

  .header__nav .header-search__close {
    width: 44px;
    height: 44px;
  }

  .header__nav .icon-pill {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: var(--stroke) solid rgba(11, 28, 58, 0.12);
    background: rgba(234, 243, 255, 0.45);
  }

  .header__nav .icon-pill svg {
    width: 22px;
    height: 22px;
  }

  .nav-list {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: var(--s1);
  }

  .hero {
    padding-block: clamp(56px, 7vw, 96px);
  }

  .hero-visual {
    display: none;
  }

  .hero-visual.hero-visual--text {
    display: block;
  }

  .section {
    padding-block: var(--s5);
  }

  .section__header {
    grid-template-columns: 1fr;
    gap: var(--s3);
  }

  .section__controls {
    justify-content: flex-start;
  }

  .art-grid {
    column-count: 1;
  }

  .catalog-content .art-grid {
    column-count: 1;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  .artists-strip {
    grid-template-columns: 1fr;
  }

  .artist-card {
    padding: var(--s3);
  }

  .artist-card__top {
    grid-template-columns: 84px 1fr;
    gap: var(--s2);
  }

  .artists-page__hero {
    margin-bottom: var(--s4);
  }

  .contacts-page__hero {
    margin-bottom: var(--s4);
  }

  .contacts-map__frame {
    min-height: 320px;
    padding: var(--s3);
  }

  .contact-card {
    padding: var(--s2);
  }

  .contact-card__value {
    font-size: 18px;
  }

  .artists-search {
    grid-template-columns: 1fr;
    padding: var(--s3);
  }

  .artists-search__form {
    grid-template-columns: 1fr;
  }

  .artists-search__actions {
    width: 100%;
  }

  .artists-search__submit {
    flex: 1;
  }

  .artists-search__reset {
    flex: 1;
  }

  .artist-card__portrait {
    width: 84px;
    height: 84px;
  }

  .artist-card--wide .artist-card__top {
    grid-template-columns: 84px 1fr;
  }

  .artist-card--wide .artist-card__top:not(:has(.artist-card__portrait)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .artist-card--wide .artist-card__portrait {
    width: 84px;
    height: 84px;
  }

  .artist-detail__hero {
    grid-template-columns: 1fr;
    gap: var(--s4);
    padding: var(--s3);
  }

  .artist-detail__portrait {
    max-width: 320px;
  }

  .artist-card--wide {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .artist-card--wide .artist-card__aside {
    display: contents;
  }

  .artist-card--wide .artist-card__top {
    order: 1;
  }

  .artist-card--wide .artist-card__works-block {
    order: 2;
    margin-top: 0;
  }

  .artist-card--wide .btn {
    order: 3;
    margin-top: 0;
  }

  .artist-card__works {
    gap: 10px;
  }

  .breadcrumbs {
    margin-bottom: var(--s3);
  }

  .artwork-detail {
    gap: var(--s4);
  }

  .artwork-panel,
  .artwork-panel--text,
  .artwork-summary__lead {
    padding: var(--s3);
  }

  .artwork-gallery__frame {
    padding: 14px;
  }

  .artwork-gallery__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .artwork-specs__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  .brand__logo {
    width: 80px;
  }
}

.grecaptcha-badge {
  display: none !important;
}

/* Style guide */
.style-page {
  background:
    radial-gradient(circle at top, rgba(184, 212, 232, 0.20), transparent 36%),
    var(--bg);
}

.style-kit-hero {
  border-top: 0;
  padding-block: calc(var(--section-pad) * 1.15) var(--section-pad);
}

.style-kit-hero__inner {
  display: grid;
  gap: var(--s3);
}

.style-kit-hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: rgba(11, 28, 58, 0.96);
}

.style-kit-hero__text {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
  color: rgba(11, 28, 58, 0.72);
}

.style-kit-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.style-kit__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s3);
}

.style-kit-card {
  display: grid;
  gap: var(--s3);
  min-height: 100%;
  padding: clamp(20px, 2vw, 28px);
  border: var(--stroke) solid rgba(11, 28, 58, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(11, 28, 58, 0.06);
}

.style-kit-card--wide {
  grid-column: 1 / -1;
}

.style-kit-card__head {
  display: grid;
  gap: 8px;
}

.style-kit-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: rgba(11, 28, 58, 0.96);
}

.style-kit-card__code {
  margin: 0;
  color: rgba(11, 28, 58, 0.58);
  font-size: var(--fs-small);
}

.style-kit-card__demo,
.style-kit-card__stack,
.style-kit-card__surface {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
}

.style-kit-card__stack {
  flex-direction: column;
  align-items: flex-start;
}

.style-kit-card__surface {
  padding: clamp(18px, 2vw, 24px);
  border-radius: calc(var(--radius) - 8px);
  border: var(--stroke) solid rgba(11, 28, 58, 0.08);
  background: rgba(234, 243, 255, 0.42);
}

.style-kit__header-icons {
  gap: 18px;
}

.style-kit .icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 26px;
  height: 26px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  border-radius: 0;
  color: rgba(11, 28, 58, 0.7);
  line-height: 1;
  transition: color 180ms ease, opacity 180ms ease;
}

.style-kit .icon-pill svg {
  width: 26px;
  height: 26px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.style-kit .icon-pill:hover {
  color: rgba(11, 28, 58, 0.92);
  opacity: 0.92;
}

.style-kit .icon-pill:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.style-kit .icon-pill[aria-disabled="true"],
.style-kit .icon-pill:disabled {
  color: rgba(11, 28, 58, 0.28);
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

.style-kit .icon-pill--cart.has-items {
  color: rgba(11, 28, 58, 0.92);
}

.style-kit .icon-pill--account.is-authorized {
  color: var(--sea);
  background: rgba(31, 183, 176, 0.08);
  border-radius: var(--radius-sm);
}

.style-kit .icon-pill--account.is-authorized svg {
  stroke: currentColor;
}

.style-kit .nav-toggle {
  display: inline-flex;
}

.style-kit .nav-close {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(11, 28, 58, 0.78);
  cursor: pointer;
}

.style-kit .nav-close svg {
  width: 26px;
  height: 26px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.style-kit .nav-close:hover {
  color: rgba(11, 28, 58, 0.92);
  opacity: 0.92;
}

.style-kit .nav-close:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.style-kit .nav-close:disabled {
  color: rgba(11, 28, 58, 0.26);
  cursor: not-allowed;
}

.style-kit__carousel {
  width: 100%;
  min-height: 72px;
  justify-content: center;
}

.style-kit__carousel .f-carousel__nav {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: none;
}

.style-kit .f-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.style-kit-form-preview {
  border-radius: calc(var(--radius) - 4px);
  border: var(--stroke) solid rgba(11, 28, 58, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(234, 243, 255, 0.62));
  overflow: hidden;
}

.style-kit-form-preview .modal__grid {
  max-width: 760px;
}

.style-kit-form-statuses {
  display: grid;
  gap: 10px;
}

@media (min-width: 900px) {
  .style-kit-form-preview .modal__grid {
    padding: clamp(28px, 3vw, 40px);
    padding-top: clamp(28px, 3vw, 40px);
  }
}

@media (max-width: 720px) {
  .style-kit-hero__actions,
  .style-kit-card__demo,
  .style-kit-card__surface {
    align-items: stretch;
  }

  .style-kit-card__demo .btn,
  .style-kit-card__demo .bx-filter-show-more {
    width: 100%;
  }
}

.payment-result {
  max-width: 720px;
  margin: 0;
  padding: clamp(24px, 4vw, 48px) 0;
}

.payment-result__title {
  margin: 0 0 16px;
}

.payment-result__lead {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.payment-result p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.payment-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 720px) {
  .payment-result__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .payment-result__actions .btn {
    width: 100%;
  }
}
/* End */
/* /local/templates/.default/assets/styles.css?1781166804115398 */
