/* SkyFest catalog — Roboto, accent #B20003, square buttons (site style) */
.catalog-page { padding-bottom: 72px; font-family: Roboto, sans-serif; color: var(--black, #212121); }
.catalog-page .section-title { font-size: 40px; line-height: 1.15; }
.catalog-intro { font-size: 16px; line-height: 1.5; color: #4a4a4a; max-width: 760px; margin-bottom: 0; }
.catalog-page .button { min-width: 0; border-radius: 0; }
.catalog-page img { max-width: 100%; }

/* root tiles */
.catalog-root__grid { margin-top: 32px; }
.catalog-tile { display: flex; flex-direction: column; height: 100%; background: var(--light-gray, #f5f5f5); color: inherit; text-decoration: none; transition: box-shadow .3s ease; }
.catalog-tile:hover { box-shadow: 0 8px 32px rgba(0, 0, 0, .08); color: inherit; }
.catalog-tile__img { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; flex: 0 0 auto; }
.catalog-tile__img img { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); max-width: none; max-height: none; object-fit: contain; }
.catalog-tile__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; padding: 20px 24px 24px; border-bottom: 3px solid transparent; transition: border-color .3s; }
.catalog-tile:hover .catalog-tile__body { border-color: var(--red, #b20003); }
.catalog-tile__name { font-size: 24px; font-weight: 500; }
.catalog-tile__meta { font-size: 15px; color: var(--grey, #949494); }

/* section header */
.catalog-section__top { display: flex; gap: 32px; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; }
.catalog-service-link { flex: 0 0 340px; display: block; padding: 20px 24px; border: 1px solid var(--red, #b20003); color: inherit; text-decoration: none; position: relative; transition: background .3s, color .3s; }
.catalog-service-link::after { content: "→"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--red, #b20003); font-size: 20px; transition: color .3s; }
.catalog-service-link:hover { background: var(--red, #b20003); color: #fff; }
.catalog-service-link:hover::after, .catalog-service-link:hover .catalog-service-link__label { color: #fff; }
.catalog-service-link__label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--red, #b20003); margin-bottom: 4px; }
.catalog-service-link__name { display: block; font-size: 16px; line-height: 1.4; padding-right: 28px; }

.catalog-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.catalog-tabs__item { padding: 10px 18px; border: 1px solid #e0e0e0; color: inherit; text-decoration: none; font-size: 15px; transition: border-color .3s, color .3s; }
.catalog-tabs__item:hover { border-color: var(--red, #b20003); color: var(--red, #b20003); }
.catalog-tabs__item.is-active { background: var(--red, #b20003); border-color: var(--red, #b20003); color: #fff; }

/* filter */
.catalog-filter { background: var(--light-gray, #f5f5f5); padding: 20px; }
.catalog-filter__group { border: 0; margin: 0 0 20px; padding: 0; }
.catalog-filter__title { font-size: 16px; font-weight: 500; margin-bottom: 10px; float: none; width: auto; }
.catalog-filter__price { display: flex; align-items: center; gap: 8px; }
.catalog-filter__price input { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #e0e0e0; background: #fff; font-size: 15px; border-radius: 0; }
.catalog-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 15px; }
.catalog-check input { position: absolute; opacity: 0; pointer-events: none; }
.catalog-check__box { flex: 0 0 18px; width: 18px; height: 18px; border: 1px solid #bdbdbd; background: #fff; position: relative; }
.catalog-check input:checked + .catalog-check__box { background: var(--red, #b20003); border-color: var(--red, #b20003); }
.catalog-check input:checked + .catalog-check__box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.catalog-check input:focus-visible + .catalog-check__box { outline: 2px solid var(--red, #b20003); outline-offset: 2px; }
.catalog-check__label { flex: 1; }
.catalog-check__count { color: var(--grey, #949494); font-size: 13px; }
.catalog-check.is-disabled { opacity: .45; cursor: default; }
.catalog-filter__actions { display: flex; flex-direction: column; gap: 10px; }
.catalog-filter__actions .button { width: 100%; }
.catalog-filter__reset { text-align: center; color: var(--red, #b20003); font-size: 15px; }
.catalog-filter-toggle { width: 100%; min-width: 0; margin-bottom: 16px; }
.catalog-filter-toggle__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 6px; background: var(--red, #b20003); color: #fff; font-size: 13px; }
.js-filter .button[type=submit] { display: inline-flex; }
@media (min-width: 992px) { .catalog-filter { position: sticky; top: 16px; } }
@media (max-width: 991.98px) {
    .catalog-filter { display: none; margin-bottom: 24px; }
    .catalog-filter.is-open { display: block; }
}

/* toolbar */
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.catalog-toolbar__count { color: var(--grey, #949494); font-size: 15px; }
.catalog-sort { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
.catalog-sort select { padding: 8px 32px 8px 12px; border: 1px solid #e0e0e0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b20003' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; border-radius: 0; font-size: 15px; }

/* grid + card */
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.catalog-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .catalog-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .catalog-grid, .catalog-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.catalog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #ececec; padding: 16px; transition: box-shadow .3s ease, border-color .3s; }
.catalog-card:hover { box-shadow: 0 8px 28px rgba(0, 0, 0, .08); border-color: transparent; }
.catalog-card__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; margin-bottom: 12px; }
.catalog-card__img img { max-height: 100%; object-fit: contain; }
.catalog-card__name { color: inherit; text-decoration: none; font-size: 16px; font-weight: 500; line-height: 1.35; margin-bottom: 6px; }
.catalog-card__name:hover { color: var(--red, #b20003); }
.catalog-card__meta { font-size: 14px; color: #6b6b6b; margin-bottom: 4px; }
.catalog-card__art { font-size: 13px; color: var(--grey, #949494); margin-bottom: 10px; }
.catalog-card__price { font-size: 20px; font-weight: 500; margin-top: auto; margin-bottom: 12px; }
.catalog-card__btn { width: 100%; padding: 10px 12px; font-size: 15px; text-align: center; }
@media (max-width: 767.98px) {
    .catalog-card { padding: 10px; }
    .catalog-card__name { font-size: 14px; }
    .catalog-card__price { font-size: 16px; }
    .catalog-card__btn { font-size: 13px; padding: 8px 6px; line-height: 1.3; }
}

/* colour dots */
.catalog-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.catalog-colors--small { gap: 6px; margin-bottom: 10px; min-height: 22px; }
.catalog-colors__dot { min-width: 0; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid #d6d6d6; background: var(--dot, #ccc); box-shadow: inset 0 0 0 3px #fff; cursor: pointer; transition: border-color .2s; }
.catalog-colors__dot:hover { background: var(--dot, #ccc); border-color: #8c8c8c; }
.catalog-colors__dot.is-active { border: 2px solid var(--red, #b20003); }
.catalog-colors__dot:focus-visible { outline: 2px solid var(--red, #b20003); outline-offset: 2px; }
.catalog-colors--small .catalog-colors__dot { width: 20px; height: 20px; box-shadow: inset 0 0 0 2px #fff; }
.catalog-colors__more { font-size: 13px; color: var(--grey, #949494); text-decoration: none; }

/* pager */
.catalog-pager { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.catalog-pager__item { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid #e0e0e0; color: inherit; text-decoration: none; }
.catalog-pager__item:hover { border-color: var(--red, #b20003); color: var(--red, #b20003); }
.catalog-pager__item.is-active { background: var(--red, #b20003); border-color: var(--red, #b20003); color: #fff; }
.catalog-empty { padding: 48px 24px; text-align: center; background: var(--light-gray, #f5f5f5); }

/* how to order */
.catalog-how { padding: 64px 0; background: var(--light-gray, #f5f5f5); }
.catalog-how__title { font-size: 36px; font-weight: 500; margin-bottom: 32px; }
.catalog-how__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.catalog-how__step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px 24px; background: #fff; }
.catalog-how__step:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -24px; width: 24px; height: 2px; background: var(--red, #b20003); }
.catalog-how__num { font-size: 40px; font-weight: 700; line-height: 1; color: var(--red, #b20003); }
.catalog-how__name { font-size: 18px; font-weight: 500; }
.catalog-how__text { font-size: 15px; line-height: 1.5; color: #4a4a4a; }
@media (max-width: 991.98px) { .catalog-how__list { grid-template-columns: repeat(2, 1fr); } .catalog-how__step::after { display: none; } }
@media (max-width: 575.98px) { .catalog-how__list { grid-template-columns: 1fr; gap: 12px; } .catalog-how__title { font-size: 26px; } .catalog-how { padding: 40px 0; } }

/* detail */
.catalog-gallery__main { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: #fff; border: 1px solid #ececec; padding: 24px; }
.catalog-gallery__main img { max-height: 100%; width: auto; height: auto; object-fit: contain; }
.catalog-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.catalog-gallery__thumb { min-width: 0; width: 72px; height: 72px; padding: 4px; border: 1px solid #e0e0e0; background: #fff; cursor: pointer; }
.catalog-gallery__thumb:hover { background: #fff; border-color: #8c8c8c; }
.catalog-gallery__thumb.is-active { border-color: var(--red, #b20003); }
.catalog-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.catalog-detail__title { font-size: 34px; line-height: 1.2; font-weight: 500; margin-bottom: 12px; }
.catalog-detail__sub { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: #6b6b6b; margin-bottom: 24px; }
.catalog-detail__sub b { color: var(--black, #212121); font-weight: 500; }
.catalog-detail__block { margin-bottom: 24px; }
.catalog-detail__label { font-size: 15px; color: #6b6b6b; margin-bottom: 10px; }
.catalog-detail__label span { color: var(--black, #212121); font-weight: 500; }
.catalog-detail__price { font-size: 32px; font-weight: 500; margin-bottom: 8px; }
.catalog-detail__price small { font-size: 16px; font-weight: 400; color: #6b6b6b; }
.catalog-detail__note { font-size: 15px; line-height: 1.5; color: #4a4a4a; padding: 14px 16px; background: var(--light-gray, #f5f5f5); border-left: 3px solid var(--red, #b20003); margin-bottom: 24px; }
.catalog-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.catalog-chips li { padding: 6px 12px; border: 1px solid #e0e0e0; font-size: 14px; }
.catalog-detail__btns { display: flex; flex-wrap: wrap; gap: 16px; }
.catalog-detail__btns .button { flex: 1 1 220px; }
.catalog-detail__info { margin-top: 56px; }
.catalog-detail__h2 { font-size: 28px; font-weight: 500; margin-bottom: 20px; }
.catalog-specs { margin: 0; }
.catalog-specs__row { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid #ececec; font-size: 15px; }
.catalog-specs__row dt { flex: 0 0 42%; font-weight: 400; color: #6b6b6b; }
.catalog-specs__row dd { margin: 0; flex: 1; }
.catalog-desc { font-size: 16px; line-height: 1.6; }
.catalog-desc__title { font-size: 18px; font-weight: 500; margin: 20px 0 10px; }
.catalog-desc__list { padding-left: 20px; margin: 0; }
.catalog-desc__list li { margin-bottom: 6px; }
.catalog-desc__list li::marker { color: var(--red, #b20003); }
.catalog-desc__note { color: #6b6b6b; font-size: 15px; margin-bottom: 8px; }
.catalog-desc__table { width: 100%; max-width: 420px; border-collapse: collapse; font-size: 15px; }
.catalog-desc__table th, .catalog-desc__table td { padding: 8px 12px; border: 1px solid #e0e0e0; text-align: left; }
.catalog-desc__table th { background: var(--light-gray, #f5f5f5); font-weight: 500; }
.catalog-similar { margin-top: 64px; }
@media (max-width: 767.98px) {
    .catalog-page .section-title { font-size: 26px; }
    .catalog-section__top { flex-direction: column; gap: 16px; }
    .catalog-service-link { flex: none; width: 100%; }
    .catalog-detail__title { font-size: 24px; }
    .catalog-detail__price { font-size: 26px; }
    .catalog-detail__h2 { font-size: 22px; }
    .catalog-detail__info { margin-top: 32px; }
    .catalog-gallery__thumb { width: 56px; height: 56px; }
    .catalog-tile__name { font-size: 20px; }
}

/* modal form */
.catalog-modal .modal-content { border-radius: 0; border: 0; position: relative; }
.catalog-modal__body { padding: 32px; }
.catalog-modal__close { position: absolute; right: 8px; top: 8px; min-width: 0; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; font-size: 28px; color: var(--grey, #949494); }
.catalog-modal__close:hover { background: transparent; color: var(--red, #b20003); }
.catalog-modal__title { font-size: 28px; font-weight: 500; margin-bottom: 16px; }
.catalog-modal__product { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--light-gray, #f5f5f5); margin-bottom: 20px; }
.catalog-modal__product img { width: 56px; height: 56px; object-fit: contain; background: #fff; }
.catalog-modal__pname { font-weight: 500; }
.catalog-modal__pmeta { font-size: 14px; color: #6b6b6b; }
.catalog-field { display: flex; flex-direction: column; gap: 6px; width: 100%; margin: 0; font-size: 14px; color: #6b6b6b; }
.catalog-field input, .catalog-field select, .catalog-field textarea { width: 100%; padding: 10px 12px; border: 1px solid #d6d6d6; border-radius: 0; font-size: 16px; color: var(--black, #212121); background: #fff; }
.catalog-field input:focus, .catalog-field select:focus, .catalog-field textarea:focus { outline: none; border-color: var(--red, #b20003); }
.catalog-field--file input { padding: 8px; }
.catalog-field em, .catalog-agree em { font-style: normal; font-size: 13px; color: var(--red, #b20003); }
.catalog-field .is-invalid { border-color: var(--red, #b20003); }
.catalog-agree { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; font-size: 14px; }
.catalog-agree input { margin-top: 3px; accent-color: #b20003; }
.catalog-agree em { flex-basis: 100%; }
.catalog-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.catalog-form__msg { margin: 16px 0 0; font-size: 15px; }
.catalog-form__msg.is-ok { padding: 12px 16px; background: #eef7ee; color: #1e6b2f; }
.catalog-form__msg.is-err { color: var(--red, #b20003); }
.catalog-form__submit { margin-top: 20px; width: 100%; }
@media (max-width: 575.98px) { .catalog-modal__body { padding: 24px 16px; } .catalog-modal__title { font-size: 22px; } }

.catalog-agree { flex-wrap: nowrap; }
.catalog-agree input { flex: 0 0 auto; width: 18px; height: 18px; min-width: 0; padding: 0; }
.catalog-agree > span { flex: 1; }
.catalog-agree em { position: absolute; margin-top: 24px; }


/* ---------- gallery: arrows, counter, fullscreen viewer (правки 19.11.2026) ---------- */
.catalog-gallery__main { position: relative; padding: 0; overflow: hidden; }
.catalog-gallery__zoom { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 24px; border: 0; background: transparent; cursor: zoom-in; touch-action: pan-y; }
.catalog-gallery__zoom img, .catalog-gallery__main .catalog-gallery__zoom img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.catalog-gallery__nav, .catalog-lb__nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 12px rgba(0, 0, 0, .12); cursor: pointer; transition: background-color .2s, opacity .2s; }
.catalog-gallery__nav::before, .catalog-lb__nav::before { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; border-top: 2px solid #222; border-right: 2px solid #222; transform: translate(-65%, -50%) rotate(45deg); }
.catalog-gallery__nav--prev::before, .catalog-lb__nav--prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.catalog-gallery__nav:hover, .catalog-lb__nav:hover { background: #fff; }
.catalog-gallery__nav:focus-visible, .catalog-lb__nav:focus-visible, .catalog-lb__close:focus-visible, .catalog-gallery__zoom:focus-visible { outline: 2px solid var(--red, #b20003); outline-offset: 2px; }
.catalog-gallery__nav--prev { left: 12px; }
.catalog-gallery__nav--next { right: 12px; }
.catalog-gallery__nav[hidden], .catalog-gallery__count[hidden], .catalog-lb [hidden] { display: none; }
.catalog-gallery__count { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 3px 10px; border-radius: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; line-height: 18px; pointer-events: none; }
.catalog-chips li > a { display: block; margin: -6px -12px; padding: 6px 12px; color: inherit; text-decoration: none; transition: color .2s, border-color .2s; }
.catalog-chips li > a:hover { color: var(--red, #b20003); }
.catalog-chips li:has(> a:hover) { border-color: var(--red, #b20003); }

html.catalog-lb-lock, html.catalog-lb-lock body { overflow: hidden; }
.catalog-lb { position: fixed; inset: 0; z-index: 10050; display: none; align-items: center; justify-content: center; background: rgba(17, 17, 17, .92); touch-action: pan-y; }
.catalog-lb.is-open { display: flex; }
.catalog-lb__stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 64px 88px; }
.catalog-lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; transition: opacity .2s; }
.catalog-lb__img.is-loading { opacity: .35; }
.catalog-lb__nav { position: absolute; width: 52px; height: 52px; margin-top: -26px; }
.catalog-lb__nav--prev { left: 20px; }
.catalog-lb__nav--next { right: 20px; }
.catalog-lb__close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.catalog-lb__close::before, .catalog-lb__close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 26px; height: 2px; background: #fff; transform: translate(-50%, -50%) rotate(45deg); }
.catalog-lb__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.catalog-lb__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 15px; }
@media (max-width: 767.98px) {
    .catalog-lb__stage { padding: 56px 8px 52px; }
    .catalog-lb__nav { top: auto; bottom: 8px; margin-top: 0; width: 44px; height: 44px; }
    .catalog-lb__nav--prev { left: 12px; }
    .catalog-lb__nav--next { right: 12px; }
    .catalog-lb__count { bottom: 20px; }
    .catalog-gallery__nav { width: 38px; height: 38px; margin-top: -19px; }
}

.catalog-gallery__nav, .catalog-lb__nav, .catalog-lb__close, .catalog-gallery__zoom { min-width: 0; max-width: none; margin-left: 0; margin-right: 0; line-height: 0; text-transform: none; }
.catalog-lb { z-index: 2147483000; }
html.catalog-lb-lock .ws-chat, html.catalog-lb-lock .ws-chat-btn-el-container { visibility: hidden !important; }
.catalog-lb__close:focus:not(:focus-visible), .catalog-lb__nav:focus:not(:focus-visible), .catalog-gallery__nav:focus:not(:focus-visible), .catalog-gallery__zoom:focus:not(:focus-visible) { outline: none; }
