/**
 * Каталог VCHehol — вёрстка как на vchehol-karkas.ru (тёмный фон, фиолетовый сайдбар, сетка 3 колонки).
 * Блок: #rec560295688
 */

#rec560295688.vch-catalog-rec {
  background: #000000;
  --vch-purple: #a229ff;
  --vch-purple-bright: #9d27ff;
  --vch-text: #ffffff;
}

#rec560295688 .vch-catalog-root {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--vch-text);
  box-sizing: border-box;
}

#rec560295688 .vch-catalog-root *,
#rec560295688 .vch-catalog-root *::before,
#rec560295688 .vch-catalog-root *::after {
  box-sizing: border-box;
}

/* Поиск справа */
#rec560295688 .vch-catalog__search-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 28px;
}

#rec560295688 .vch-catalog__search-wrap {
  display: flex;
  align-items: stretch;
  max-width: 320px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

#rec560295688 .vch-catalog__search-input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: none;
  font-family: inherit;
  font-size: 15px;
  color: #1a1a1a;
  background: #ffffff;
}

#rec560295688 .vch-catalog__search-input::placeholder {
  color: #888;
}

#rec560295688 .vch-catalog__search-btn {
  flex: 0 0 48px;
  border: none;
  background: #e8e8e8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#rec560295688 .vch-catalog__search-btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.55;
}

/* Сайдбар + сетка */
#rec560295688 .vch-catalog__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

#rec560295688 .vch-catalog__sidebar {
  flex: 0 0 300px;
  max-width: 100%;
  padding: 28px 22px 32px;
  background: var(--vch-purple);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(162, 41, 255, 0.25);
}

#rec560295688 .vch-filter + .vch-filter {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#rec560295688 .vch-filter__title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vch-text);
}

#rec560295688 .vch-filter__brands {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

#rec560295688 .vch-filter__brands:not(.vch-filter__brands--expanded) .vch-filter__check--extra {
  display: none;
}

#rec560295688 .vch-filter__check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--vch-text);
}

#rec560295688 .vch-filter__check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

#rec560295688 .vch-filter__check-box {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  background: transparent;
}

#rec560295688 .vch-filter__check input:checked + .vch-filter__check-box {
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--vch-purple);
}

#rec560295688 .vch-filter__show-all {
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--vch-text);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 4px;
  cursor: pointer;
}

#rec560295688 .vch-filter__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#rec560295688 .vch-filter__price-row input[type='text'] {
  width: 90px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: #222;
  background: #fff;
}

#rec560295688 .vch-filter__price-ok {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--vch-purple);
  background: #fff;
  cursor: pointer;
}

#rec560295688 .vch-filter__meta {
  margin-top: 20px;
  font-size: 13px;
  opacity: 0.95;
}

#rec560295688 .vch-filter__chosen {
  margin-top: 12px;
}

#rec560295688 .vch-filter__chosen button {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--vch-text);
  text-decoration: underline;
  cursor: pointer;
}

/* Сетка карточек */
#rec560295688 .vch-catalog__main {
  flex: 1 1 0;
  min-width: 0;
}

#rec560295688 .vch-catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media screen and (max-width: 1100px) {
  #rec560295688 .vch-catalog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 640px) {
  #rec560295688 .vch-catalog__grid {
    grid-template-columns: 1fr;
  }

  #rec560295688 .vch-catalog__sidebar {
    flex: 1 1 100%;
  }
}

#rec560295688 .vch-card {
  display: flex;
  flex-direction: column;
  background: transparent;
}

#rec560295688 .vch-card__media {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #111;
}

#rec560295688 .vch-card__badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#rec560295688 .vch-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

#rec560295688 .vch-card__img--hover {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  #rec560295688 .vch-card__media:hover .vch-card__img--main {
    opacity: 0;
  }

  #rec560295688 .vch-card__media:hover .vch-card__img--hover {
    opacity: 1;
  }
}

#rec560295688 .vch-card__body {
  padding: 16px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

#rec560295688 .vch-card__title-link {
  text-decoration: none;
  color: inherit;
}

#rec560295688 .vch-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--vch-text);
}

#rec560295688 .vch-card__descr {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#rec560295688 .vch-card__price {
  font-size: 16px;
  font-weight: 500;
  color: var(--vch-text);
}

#rec560295688 .vch-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

#rec560295688 .vch-card__btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: center;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

#rec560295688 .vch-card__btn--primary {
  color: #fff;
  background: var(--vch-purple);
  border-color: rgba(255, 255, 255, 0.35);
}

#rec560295688 .vch-card__btn--primary:hover {
  filter: brightness(1.08);
}

#rec560295688 .vch-card__btn--ghost {
  color: #fff;
  background: transparent;
  border-color: var(--vch-purple);
}

#rec560295688 .vch-card__btn--ghost:hover {
  background: rgba(162, 41, 255, 0.15);
}

#rec560295688 .vch-catalog__loadmore-wrap {
  margin-top: 32px;
  text-align: center;
}

#rec560295688 .vch-catalog__loadmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--vch-purple);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.2s;
}

#rec560295688 .vch-catalog__loadmore:hover {
  filter: brightness(1.1);
}

#rec560295688 .vch-catalog__error {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}

#rec560295688 .vch-catalog__error code {
  font-size: 13px;
  word-break: break-all;
}

body.vch-modal-open {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overscroll-behavior: none;
}

#vch-modals-root {
  --vch-modal-surface: linear-gradient(168deg, #1f1c26 0%, #141218 42%, #0c0b0f 100%);
  --vch-modal-border: rgba(255, 255, 255, 0.09);
  --vch-modal-accent: #c9a962;
  --vch-modal-accent-soft: rgba(201, 169, 98, 0.35);
}

#vch-modals-root .vch-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

#vch-modals-root .vch-modal.vch-modal--open {
  display: flex;
}

#vch-modals-root .vch-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 8, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#vch-modals-root .vch-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: var(--vch-modal-surface);
  color: #f4f2f7;
  border-radius: 22px;
  border: 1px solid var(--vch-modal-border);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: Montserrat, Arial, sans-serif;
}

#vch-modals-root .vch-modal__dialog--narrow {
  width: min(420px, 100%);
  max-height: none;
  overflow: visible;
}

#vch-modal-offer .vch-modal__dialog {
  overflow: visible;
  touch-action: manipulation;
}

#vch-modals-root .vch-modal__dialog--wide {
  width: min(1020px, 100%);
  max-height: min(94vh, 940px);
}

#vch-modals-root .vch-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

#vch-modals-root .vch-modal__close:hover {
  background: rgba(162, 41, 255, 0.22);
  border-color: rgba(162, 41, 255, 0.45);
}

#vch-modals-root .vch-modal__close:active {
  transform: scale(0.96);
}

#vch-modals-root .vch-modal__inner {
  padding: 32px 28px 36px;
}

#vch-modals-root .vch-modal__h2 {
  margin: 0 48px 10px 0;
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.28;
  color: #faf8fc;
}

#vch-modals-root .vch-modal__price-line {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--vch-modal-accent);
}

#vch-modals-root .vch-modal__material-legend {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#vch-modals-root .vch-modal__material-legend .vch-modal__opt-label {
  margin-bottom: 10px;
}

#vch-modals-root .vch-modal__mat-list {
  margin: 0;
  padding-left: 1.15em;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(235, 232, 240, 0.9);
}

#vch-modals-root .vch-modal__mat-list li {
  margin-bottom: 6px;
}

#vch-modals-root .vch-modal__mat-list li:last-child {
  margin-bottom: 0;
}

#vch-modals-root .vch-modal__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

#vch-modals-root .vch-modal__thumb {
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  overflow: hidden;
  background: #0c0b0f;
  cursor: pointer;
  width: 72px;
  height: 72px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

#vch-modals-root .vch-modal__thumb:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

#vch-modals-root .vch-modal__thumb--active {
  border-color: rgba(162, 41, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(162, 41, 255, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}

#vch-modals-root .vch-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#vch-modals-root .vch-modal__hero {
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #2a2433 0%, #0a090c 65%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 16px 48px rgba(0, 0, 0, 0.45);
}

#vch-modals-root .vch-modal__hero img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

#vch-modals-root .vch-modal__text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(235, 232, 240, 0.88);
}

#vch-modals-root .vch-modal__text p {
  margin: 0 0 12px;
}

#vch-modals-root .vch-modal__text ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

#vch-modals-root .vch-modal__lead {
  margin: 0 0 16px;
  font-size: 15px;
  color: rgba(235, 232, 240, 0.78);
  letter-spacing: 0.01em;
}

#vch-modals-root .vch-modal__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

#vch-modals-root .vch-modal__input {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 7, 11, 0.85);
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

#vch-modals-root .vch-modal__input:focus {
  outline: none;
  border-color: rgba(162, 41, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(162, 41, 255, 0.15);
}

#vch-modals-root .vch-modal__hint {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  white-space: pre-wrap;
}

#vch-modals-root .vch-modal__submit {
  width: 100%;
  padding: 15px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #c278ff 0%, #9d3dff 45%, #7a2ec4 100%);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  cursor: pointer;
  font-family: inherit;
  box-shadow:
    0 6px 28px rgba(122, 46, 196, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    filter 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

#vch-modals-root .vch-modal__submit:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow:
    0 8px 32px rgba(122, 46, 196, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

#vch-modals-root .vch-modal__submit:active:not(:disabled) {
  transform: translateY(1px);
}

#vch-modals-root .vch-modal__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

#vch-modals-root .vch-modal__legal {
  margin: 12px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

#vch-modals-root .vch-modal__err {
  margin: 12px 0 0;
  font-size: 13px;
  color: #ff8a8a;
  display: none;
}

/* Модалка товара: фото + опции (как на Tilda) */
#vch-modals-root .vch-modal__product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 32px;
  align-items: start;
}

@media screen and (max-width: 720px) {
  #vch-modals-root .vch-modal__product-grid {
    grid-template-columns: 1fr;
  }
}

#vch-modals-root .vch-modal__col--media {
  position: sticky;
  top: 0;
}

#vch-modals-root .vch-modal__hero--detail {
  margin-bottom: 0;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 30%, #2a2433 0%, #0a090c 65%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 16px 48px rgba(0, 0, 0, 0.45);
}

#vch-modals-root .vch-modal__hero--detail img {
  max-height: min(52vh, 420px);
  width: 100%;
  object-fit: contain;
}

#vch-modals-root .vch-modal__options {
  margin-bottom: 16px;
}

#vch-modals-root .vch-modal__opt-group {
  margin-bottom: 18px;
}

#vch-modals-root .vch-modal__opt-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 232, 240, 0.72);
}

#vch-modals-root .vch-modal__select {
  width: 100%;
  max-width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 9, 13, 0.92);
  color: #f4f2f7;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a962' d='M1 1.5L6 6.5L11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

#vch-modals-root .vch-modal__select:focus {
  outline: none;
  border-color: rgba(162, 41, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(162, 41, 255, 0.12);
}

#vch-modals-root .vch-opt-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#vch-modals-root .vch-opt-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 76px;
  padding: 6px 4px 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font: inherit;
  color: rgba(235, 232, 240, 0.88);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

#vch-modals-root .vch-opt-thumb:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

#vch-modals-root .vch-opt-thumb--on {
  border-color: rgba(162, 41, 255, 0.75);
  background: linear-gradient(165deg, rgba(162, 41, 255, 0.18) 0%, rgba(20, 18, 26, 0.9) 100%);
  box-shadow: 0 0 0 1px rgba(162, 41, 255, 0.25);
}

#vch-modals-root .vch-opt-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

#vch-modals-root .vch-opt-thumb__cap {
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#vch-modals-root .vch-modal__detail-offer {
  margin-top: 12px;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #c278ff 0%, #9d3dff 45%, #7a2ec4 100%);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  box-shadow:
    0 6px 28px rgba(122, 46, 196, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    filter 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

#vch-modals-root .vch-modal__detail-offer:hover {
  filter: brightness(1.07);
  box-shadow:
    0 8px 32px rgba(122, 46, 196, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#vch-modals-root .vch-modal__detail-offer:active {
  transform: translateY(1px);
}

#vch-modals-root .vch-modal__col--side .vch-modal__text {
  margin-top: 8px;
}

#vch-modals-root .vch-modal__media-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#vch-modals-root .vch-modal__gal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#vch-modals-root .vch-modal__thumb--gal {
  width: 64px;
  height: 64px;
}

#vch-modals-root .vch-modal__select--locked {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(235, 232, 240, 0.45);
  background-image: none;
  padding-right: 16px;
}

/* Карточка товара: окно на весь экран без прокрутки самого диалога */
#vch-modals-root .vch-modal--detail-full {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  overscroll-behavior: none;
}

#vch-modals-root .vch-modal--detail-full .vch-modal__dialog--wide {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--vch-modal-surface);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(201, 169, 98, 0.12),
    0 0 80px rgba(0, 0, 0, 0.5);
}

#vch-modals-root .vch-modal--detail-full .vch-modal__dialog--wide .vch-modal__inner {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 48px 20px 20px;
  box-sizing: border-box;
}

#vch-modals-root .vch-modal--detail-full .vch-modal__product-grid {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

#vch-modals-root .vch-modal--detail-full .vch-modal__col--media {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  position: static;
}

#vch-modals-root .vch-modal--detail-full .vch-modal__media-stack {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

#vch-modals-root .vch-modal--detail-full .vch-modal__hero--detail {
  flex: 0 1 auto;
  min-height: 0;
  max-height: min(38vh, 360px);
}

#vch-modals-root .vch-modal--detail-full .vch-modal__hero--detail img {
  max-height: min(38vh, 360px);
  width: 100%;
  object-fit: contain;
}

#vch-modals-root .vch-modal--detail-full .vch-modal__gal-strip {
  flex: 0 0 auto;
  margin-top: 10px;
  max-height: min(22vh, 140px);
  overflow: hidden;
  align-content: flex-start;
}

#vch-modals-root .vch-modal--detail-full .vch-modal__thumb--gal {
  width: 52px;
  height: 52px;
}

#vch-modals-root .vch-modal--detail-full .vch-modal__col--side {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

#vch-modals-root .vch-modal--detail-full .vch-modal__options {
  flex: 0 0 auto;
}

#vch-modals-root .vch-modal--detail-full .vch-modal__col--side .vch-modal__text {
  overflow-y: visible;
  flex: 0 1 auto;
  min-height: 0;
}

@media screen and (max-width: 720px) {
  #vch-modals-root .vch-modal--detail-full .vch-modal__product-grid {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    gap: 12px;
  }

  #vch-modals-root .vch-modal--detail-full .vch-modal__col--media {
    flex: 0 0 auto;
  }

  #vch-modals-root .vch-modal--detail-full .vch-modal__col--side {
    flex: 1 1 auto;
    min-height: min(52vh, 420px);
  }
}

/* Первый экран (T396): навигация «Каталог», «Отличия», … */
#rec560019292 .vch-hero-nav__link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  vertical-align: top;
}

#rec560019292 .vch-hero-nav__pill {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.15s ease;
}

/* Ячейки T396: не обрезать подпись, одна строка */
#rec560019292 .tn-elem__5600192921677963087632,
#rec560019292 .tn-elem__5600192921677963292481,
#rec560019292 .tn-elem__5600192921677963356103,
#rec560019292 .tn-elem__5600192921677963400642 {
  overflow: visible;
}

#rec560019292 .tn-elem__5600192921677963087632 .tn-atom,
#rec560019292 .tn-elem__5600192921677963292481 .tn-atom,
#rec560019292 .tn-elem__5600192921677963356103 .tn-atom,
#rec560019292 .tn-elem__5600192921677963400642 .tn-atom {
  overflow: visible;
}

/* Шапка: телефон под иконками по z-index; мессенджеры кликабельны (MAX не перекрывается текстом) */
#rec560019292 .tn-elem__5600192921677963756373,
#rec560019292 .tn-elem__5600192921677963756379,
#rec560019292 .tn-elem__5600192921677963756387 {
  z-index: 12 !important;
}

#rec560019292 .tn-elem__5600192921677963756417,
#rec560019292 .tn-elem__5600192921677963756434,
#rec560019292 .tn-elem__5600192921677963756420 {
  z-index: 40 !important;
}

#rec560019292 .tn-elem__5600192921677963756417 .tn-atom,
#rec560019292 .tn-elem__5600192921677963756434 .tn-atom,
#rec560019292 .tn-elem__5600192921677963756420 .tn-atom {
  display: block;
  line-height: 0;
  cursor: pointer;
  position: relative;
  z-index: 41;
}

#rec560019292 .tn-elem__5600192921677963756417 .tn-atom__img,
#rec560019292 .tn-elem__5600192921677963756434 .tn-atom__img,
#rec560019292 .tn-elem__5600192921677963756420 .tn-atom__img {
  pointer-events: none;
  vertical-align: top;
}

/* MAX сверху: выше по слою */
#rec560019292 .tn-elem__5600192921677963756420 {
  z-index: 45 !important;
}

/* Телефоны и узкие брейкпоинты: мессенджеры — один размер иконки и зона нажатия */
@media screen and (max-width: 959px) {
  #rec560019292 .tn-elem__5600192921677963756417 .tn-atom,
  #rec560019292 .tn-elem__5600192921677963756434 .tn-atom,
  #rec560019292 .tn-elem__5600192921677963756420 .tn-atom {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    box-sizing: border-box;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }

  #rec560019292 .tn-elem__5600192921677963756417 .tn-atom__img,
  #rec560019292 .tn-elem__5600192921677963756434 .tn-atom__img,
  #rec560019292 .tn-elem__5600192921677963756420 .tn-atom__img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain;
    flex-shrink: 0;
  }
}

@media screen and (min-width: 960px) {
  #rec560019292 .tn-elem__5600192921677963756420 .tn-atom {
    display: flex !important;
    pointer-events: auto;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }
}

#rec560019292 .vch-hero-nav__link:hover .vch-hero-nav__pill {
  background: rgba(162, 41, 255, 0.28);
  border-color: rgba(201, 169, 98, 0.35);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(162, 41, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#rec560019292 .vch-hero-nav__link:active .vch-hero-nav__pill {
  transform: scale(0.98);
}

@media screen and (max-width: 639px) {
  #rec560019292 .vch-hero-nav__pill {
    padding: 4px 7px;
    font-size: 8px;
    letter-spacing: 0.03em;
  }
}

/* Выезжающее меню (бургер): пункты аккуратнее, без «кричащего» размера */
#rec562637702 nav.t450__menu a.t-menu__link-item {
  font-size: 17px !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;
  line-height: 1.35 !important;
  padding: 11px 14px !important;
  margin: 3px 0 !important;
  border-radius: 11px !important;
  border: 1px solid transparent !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease !important;
}

#rec562637702 nav.t450__menu a.t-menu__link-item:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Tilda t390: при открытии других попапов */
html body.t-body_popupshowed {
  overflow: hidden !important;
  height: 100vh;
  touch-action: none;
}

/* Источник текста для кастомных модалок (не показываем блоки Tilda) */
.vch-legal-modal-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* Кастомные модалки: доставка, оплата, политика (без t390) */
body.vch-legal-modal-open {
  overflow: hidden !important;
  touch-action: none;
}

#vch-legal-modal-root {
  position: fixed;
  inset: 0;
  z-index: 100040;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  font-family: Montserrat, Arial, sans-serif;
}

#vch-legal-modal-root.vch-legal-modal--open {
  display: flex;
}

#vch-legal-modal-root .vch-legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#vch-legal-modal-root .vch-legal-modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  box-sizing: border-box;
  background: linear-gradient(168deg, #f8f7fa 0%, #f0eef5 100%);
  color: #1a1524;
  border-radius: 20px;
  border: 1px solid rgba(162, 41, 255, 0.2);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

#vch-legal-modal-root .vch-legal-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(26, 21, 36, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #1a1524;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

#vch-legal-modal-root .vch-legal-modal__close:hover {
  background: rgba(162, 41, 255, 0.12);
  border-color: rgba(162, 41, 255, 0.35);
}

#vch-legal-modal-root .vch-legal-modal__title {
  margin: 0 44px 16px 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #1a1524;
}

#vch-legal-modal-root .vch-legal-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  text-align: left;
  font-size: 14px;
  line-height: 1.55;
}

#vch-legal-modal-root .vch-legal-modal__body p,
#vch-legal-modal-root .vch-legal-modal__body ul {
  margin: 0 0 0.75em;
}

#vch-legal-modal-root .vch-legal-modal__body ul {
  padding-left: 1.2em;
}

/* Ссылки на попапы в футере: крупная зона клика и слой поверх возможных перекрытий T396 */
#rec561775964 .t1055__descr,
#rec561762281 .t457__copyright {
  position: relative;
  z-index: 12;
}

#rec561775964 a[href^="#popup:"],
#rec561762281 a[href^="#popup:"] {
  position: relative;
  z-index: 15;
  cursor: pointer;
  pointer-events: auto;
  display: inline-block;
  padding: 6px 0;
  -webkit-tap-highlight-color: rgba(162, 41, 255, 0.25);
}
