/* =========================================================
MAXIMALSTORE · PRODUCT TABS CORE CSS · V1.0.0

Functional / visual port of proven RuPotolok FGX tabs styles.

ВАЖНО:
- механика и визуал табов перенесены максимально близко к RuPotolok;
- внутренний namespace .fgx-* намеренно сохранён;
- fullscreen gallery / lightbox CSS сохранён;
- дальнейший MaximalStore visual pass сделаем ПОСЛЕ functional PASS.
========================================================= */


/* =========================================================
MAXIMALSTORE HOST FIT
Только вписываем proven tabs UI в ширину нашей карточки товара.
========================================================= */

.fgx-tabs-host,
.fgx-tabs-host *,
.fgx-tabs-host *::before,
.fgx-tabs-host *::after {
    box-sizing: border-box;
}

.fgx-tabs-host {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    padding-top: 2px;
    font-family: var(--ms-font, Arial, Helvetica, sans-serif);
}

@media screen and (max-width: 980px) {
    .fgx-tabs-host {
        width: 100%;
        margin-top: 16px;
    }
}


.fgx-tabs-host {
    margin-top: 16px;
    padding-top: 2px;
}

.fgx-tabs {
    padding-left: 20px;
    padding-right: 20px;
}

.fgx-tabs__nav {
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.fgx-tabs__nav::-webkit-scrollbar {
    display: none;
}

.fgx-tabs__btn {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0 0 10px;
    margin: 0;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    color: #6c6c6c;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease, opacity .18s ease;
    outline: none !important;
    box-shadow: none !important;
}

.fgx-tabs__btn:hover {
    color: #111;
}

.fgx-tabs__btn:focus,
.fgx-tabs__btn:active,
.fgx-tabs__btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.fgx-tabs__btn.is-active {
    color: #111;
}

.fgx-tabs__btn.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #ff3b30;
    border-radius: 999px;
}

.fgx-tabs__panels {
    padding-top: 18px;
}

.fgx-tabs__panel {
    display: none;
}

.fgx-tabs__panel.is-active {
    display: block;
}

.fgx-tabs__text {
    font-size: 15px;
    line-height: 1.68;
    color: #4f4f4f;
    font-weight: 500;
}

.fgx-tabs__text p {
    margin: 0 0 12px;
}

.fgx-tabs__text strong {
    color: #111;
    font-weight: 600;
}

@media screen and (max-width: 980px) {
.fgx-tabs {
        padding-left: 12px;
        padding-right: 12px;
    }

.fgx-tabs__nav {
        gap: 18px;
    }

.fgx-tabs__btn {
        font-size: 14px;
        padding-bottom: 8px;
    }

.fgx-tabs__panels {
        padding-top: 14px;
    }

.fgx-tabs__text {
        font-size: 14px;
        line-height: 1.6;
    }
}

.fgx-kit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.fgx-kit-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #f6f6f6;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fgx-kit-card__image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    padding: 14px;
    overflow: hidden;
    background: #f7f7f7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.fgx-kit-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform .22s ease;
}

.fgx-kit-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px;
}

.fgx-kit-card__title {
    margin: 0 0 8px;
    font-size: 14.5px;
    line-height: 1.25;
    font-weight: 700;
    color: #111;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fgx-kit-card__text {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #5a5a5a;
}

.fgx-kit-card__spacer {
    flex: 1 1 auto;
    min-height: 12px;
}

.fgx-kit-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.fgx-kit-card__footer--no-price {
    justify-content: stretch;
}

.fgx-kit-card__price-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.fgx-kit-card__price {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
}

.fgx-kit-card__unit {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    color: #777;
    white-space: nowrap;
}

.fgx-kit-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border: 0;
    border-radius: 10px;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12.5px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    flex: 0 0 auto;
}

.fgx-kit-card__btn--full {
    width: 100%;
}

@media (hover: hover) {
.fgx-kit-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        border-color: rgba(0, 0, 0, 0.1);
    }

.fgx-kit-card:hover .fgx-kit-card__image {
        transform: scale(1.03);
    }
}

@media screen and (max-width: 1200px) {
.fgx-kit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 980px) {
.fgx-kit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 640px) {
.fgx-kit-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

.fgx-kit-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        min-height: 96px !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

.fgx-kit-card__image-wrap {
        width: 82px !important;
        height: 82px !important;
        min-width: 82px !important;
        flex: 0 0 82px !important;
        aspect-ratio: 1 / 1 !important;
        padding: 8px !important;
        border-bottom: 0 !important;
        border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
        background: #f7f7f7 !important;
    }

.fgx-kit-card__image {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

.fgx-kit-card__body {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 12px 12px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        column-gap: 10px !important;
        row-gap: 4px !important;
        align-items: center !important;
    }

.fgx-kit-card__title {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 2 !important;
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }

.fgx-kit-card__text,
    .fgx-kit-card__spacer,
    .fgx-kit-card__price-wrap {
        display: none !important;
    }

.fgx-kit-card__footer,
    .fgx-kit-card__footer--no-price {
        grid-column: 2 / 3 !important;
        grid-row: 1 / 3 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0 !important;
        align-self: center !important;
    }

.fgx-kit-card__btn,
    .fgx-kit-card__btn--full {
        width: auto !important;
        min-width: 74px !important;
        min-height: 38px !important;
        padding: 9px 12px !important;
        border-radius: 11px !important;
        font-size: 12px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

.fgx-kit-card__btn::after {
        content: none !important;
    }

.fgx-kit-card__btn svg {
        width: 16px !important;
        height: 16px !important;
        flex: 0 0 16px !important;
        display: block !important;
        stroke-width: 2.2 !important;
    }
}

@media screen and (max-width: 380px) {
.fgx-kit-card {
        min-height: 90px !important;
    }

.fgx-kit-card__image-wrap {
        width: 74px !important;
        height: 74px !important;
        min-width: 74px !important;
        flex-basis: 74px !important;
        padding: 7px !important;
    }

.fgx-kit-card__body {
        padding: 10px 10px !important;
        column-gap: 8px !important;
    }

.fgx-kit-card__title {
        font-size: 13px !important;
    }

.fgx-kit-card__btn,
    .fgx-kit-card__btn--full {
        min-width: 68px !important;
        min-height: 36px !important;
        padding: 8px 10px !important;
    }

.fgx-kit-card__btn::after {
        content: none !important;
    }
}

.fgx-desc__section {
    margin-bottom: 20px;
}

.fgx-desc__title {
    font-weight: 700;
    color: #111;
}

.fgx-desc__list {
    padding-left: 16px;
    margin: 0;
}

.fgx-desc__list li {
    margin-bottom: 6px;
    color: #4f4f4f;
}

.fgx-desc p {
    margin: 0 0 10px;
    color: #4f4f4f;
}

@media screen and (max-width: 640px) {
.fgx-desc p {
        font-size: 16px;
        line-height: 1.7;
    }

.fgx-desc__list li {
        font-size: 15px;
        line-height: 1.6;
    }

.fgx-desc__title {
        font-size: 17px;
    }
}

.fgx-desc p {
    font-size: 16.5px;
    line-height: 1.8;
}

.fgx-desc__list li {
    font-size: 16px;
    line-height: 1.7;
}

.fgx-desc__title {
    font-size: 18.5px;
    margin-bottom: 14px;
}

.fgx-desc {
    color: #2f2f2f;
}

@media screen and (max-width: 640px) {
.fgx-desc p {
        font-size: 16px;
        line-height: 1.7;
    }

.fgx-desc__list li {
        font-size: 15.5px;
    }

.fgx-desc__title {
        font-size: 17px;
    }
}

.fgx-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.fgx-gallery__item {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 14px;
    background: #eee;
    cursor: zoom-in;
}

.fgx-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

@media (hover:hover) {
.fgx-gallery__item:hover img {
        transform: scale(1.04);
    }
}

@media screen and (max-width:640px) {
.fgx-gallery__grid {
        grid-template-columns: 1fr;
    }
}

body.fgx-lightbox-open {
    overflow: hidden !important;
    touch-action: none;
}

.fgx-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 999999;
    overscroll-behavior: contain;
    touch-action: none;
}

.fgx-lightbox.is-open {
    display: block;
}

.fgx-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
}

.fgx-lightbox__stage {
    position: absolute;
    inset: 64px 76px 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    user-select: none;
}

.fgx-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .55);
    background: #fff;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    cursor: zoom-in;
}

.fgx-lightbox__img.is-zoomed {
    cursor: grab;
}

.fgx-lightbox__img.is-dragging {
    cursor: grabbing;
}

.fgx-lightbox__top {
    position: absolute;
    z-index: 5;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.fgx-lightbox__counter {
    min-width: 58px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(17, 17, 17, .72);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    pointer-events: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.fgx-lightbox__close {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)),
 rgba(210, 30, 30, .72);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .30),
 inset 0 1px 0 rgba(255, 255, 255, .18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.fgx-lightbox__arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06)),
 rgba(20, 20, 20, .54);
    color: transparent;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .34),
 inset 0 1px 0 rgba(255, 255, 255, .20);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background .18s ease, transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.fgx-lightbox__arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    border-top: 2.5px solid #fff;
    border-right: 2.5px solid #fff;
    border-radius: 1px;
    opacity: .96;
}

.fgx-lightbox__arrow--prev {
    left: 18px;
}

.fgx-lightbox__arrow--prev::before {
    transform: rotate(-135deg);
    margin-left: 5px;
}

.fgx-lightbox__arrow--next {
    right: 18px;
}

.fgx-lightbox__arrow--next::before {
    transform: rotate(45deg);
    margin-right: 5px;
}

@media (hover:hover) {
.fgx-lightbox__close:hover {
        transform: scale(1.04);
        background: linear-gradient(145deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .06)),
     rgba(220, 35, 35, .90);
    }

.fgx-lightbox__arrow:hover {
        background: linear-gradient(145deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .08)),
     rgba(20, 20, 20, .74);
        transform: translateY(-50%) scale(1.055);
        box-shadow: 0 22px 52px rgba(0, 0, 0, .42),
     inset 0 1px 0 rgba(255, 255, 255, .26);
    }
}

@media screen and (max-width: 640px) {
.fgx-lightbox__stage {
        inset: 62px 12px 48px;
    }

.fgx-lightbox__top {
        top: 12px;
        left: 12px;
        right: 12px;
    }

.fgx-lightbox__close {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

.fgx-lightbox__counter {
        font-size: 12px;
        padding: 8px 12px;
    }

.fgx-lightbox__arrow {
        width: 44px;
        height: 44px;
        background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)),
     rgba(20, 20, 20, .46);
    }

.fgx-lightbox__arrow::before {
        width: 11px;
        height: 11px;
        border-top-width: 2.2px;
        border-right-width: 2.2px;
    }

.fgx-lightbox__arrow--prev {
        left: 8px;
    }

.fgx-lightbox__arrow--next {
        right: 8px;
    }

.fgx-lightbox__img {
        border-radius: 10px;
    }
}

.fgx-tabs-host,
.fgx-tabs,
.fgx-tabs__panels,
.fgx-tabs__panel,
.fgx-gallery,
.fgx-gallery__grid {
    max-width: 100%;
    min-width: 0;
}

.fgx-embed-card {
    background: #f6f6f6;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    overflow: hidden;
}

.fgx-embed-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.fgx-embed-card__label {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fgx-embed-card__title {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
}

.fgx-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #111;
    overflow: hidden;
}

.fgx-embed iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.fgx-embed-card__footer {
    padding: 13px 18px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.fgx-video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.fgx-video-card {
    background: #f6f6f6;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    overflow: hidden;
}

.fgx-video-card__header {
    padding: 16px 18px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.fgx-video-card__label {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fgx-video-card__title {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
}

.fgx-embed--video {
    aspect-ratio: 16 / 9;
    background: #111;
}

@media screen and (max-width: 640px) {
.fgx-embed-card,
    .fgx-video-card {
        border-radius: 16px;
    }

.fgx-embed-card__header,
    .fgx-video-card__header {
        padding: 14px 14px 12px;
    }

.fgx-embed-card__title,
    .fgx-video-card__title {
        font-size: 15px;
    }

.fgx-embed--sketchfab {
        aspect-ratio: 1 / 1;
    }

.fgx-embed-card__footer {
        padding: 12px 14px 14px;
        font-size: 13px;
    }

.fgx-video-grid {
        gap: 14px;
    }
}

.js-store-product .t-container > .fgx-tabs-host,
.t-store__product-snippet .t-container > .fgx-tabs-host {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    clear: both !important;
}

.js-store-product .t-container > .fgx-tabs-host > .fgx-tabs,
.js-store-product .t-container > .fgx-tabs-host > .fgx-related-block,
.t-store__product-snippet .t-container > .fgx-tabs-host > .fgx-tabs,
.t-store__product-snippet .t-container > .fgx-tabs-host > .fgx-related-block {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

.js-store-product .fgx-related-block,
.t-store__product-snippet .fgx-related-block {
    margin-top: 36px !important;
}

.fgx-tabs-host > .fgx-related-block:first-child {
    margin-top: 0 !important;
}

.fgx-model .sketchfab-embed-wrapper,
.fgx-model .fgx-embed-card,
.fgx-model .fgx-embed {
    margin-bottom: 36px !important;
}

.fgx-model .sketchfab-embed-wrapper:last-child,
.fgx-model .fgx-embed-card:last-child,
.fgx-model .fgx-embed:last-child {
    margin-bottom: 0 !important;
}

@media screen and (max-width: 640px) {
.fgx-model .sketchfab-embed-wrapper,
    .fgx-model .fgx-embed-card,
    .fgx-model .fgx-embed {
        margin-bottom: 44px !important;
    }
}

.fgx-purpose {
    margin: 0 20px 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    background: #f3f4f6;
    border: 1px solid #e4e7eb;
    border-radius: 16px;
    font-family: Inter, Arial, sans-serif !important;
}

.fgx-purpose * {
    font-family: Inter, Arial, sans-serif !important;
}

.fgx-purpose__label {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
}

.fgx-purpose__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.fgx-purpose__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d7dce2;
    color: #111;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04),
 inset 0 1px 0 rgba(255,255,255,0.7);
}

.fgx-purpose__tag::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: #ff3b30;
    flex: 0 0 6px;
}

@media screen and (max-width: 980px) {
.fgx-purpose {
        margin: 0 12px 16px;
    }
}

@media screen and (max-width: 640px) {
.fgx-purpose {
        padding: 13px 14px;
        gap: 9px;
    }

.fgx-purpose__label {
        width: 100%;
        font-size: 13px;
    }

.fgx-purpose__list {
        gap: 7px;
    }

.fgx-purpose__tag {
        min-height: 27px;
        padding: 6px 10px;
        font-size: 10.5px;
    }
}

.fgx-kit-card__image {
    border-radius: 16px;
}

.fgx-pdf-note {
    max-width: 620px;
    margin: 0 0 18px;
    color: #666;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 500;
}

.fgx-pdf-features {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.fgx-pdf-features li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 22px;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.fgx-pdf-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #222;
    font-weight: 800;
}

.fgx-pdf-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.fgx-pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 210px;
    height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
    box-sizing: border-box;
}

.fgx-pdf-btn svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: currentColor;
}

.fgx-pdf-btn--primary {
    background: #222;
    color: #fff !important;
    border: 1px solid #222;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
}

.fgx-pdf-btn--primary:hover {
    background: #2b2b2b;
    border-color: #2b2b2b;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .13);
}

.fgx-pdf-btn--secondary {
    background: #fff;
    color: #111 !important;
    border: 1px solid #dddddd;
}

.fgx-pdf-btn--secondary:hover {
    background: #f7f7f7;
    border-color: #cfcfcf;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
.fgx-pdf-note {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 16px;
    }

.fgx-pdf-features {
        margin-bottom: 20px;
    }

.fgx-pdf-features li {
        font-size: 14px;
        line-height: 1.45;
    }

.fgx-pdf-buttons {
        flex-direction: column;
    }

.fgx-pdf-btn {
        width: 100%;
        min-width: unset;
    }
}

.fgx-tabs-host,
.fgx-tabs-host * {
    font-family: Inter,
 -apple-system,
 BlinkMacSystemFont,
 "Segoe UI",
 Roboto,
 Arial,
 sans-serif !important;
}

.fgx-video-grid--vertical {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.fgx-video-card--vertical {
    min-width: 0;
}

.fgx-embed--vertical {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

.fgx-embed--vertical iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media screen and (max-width: 980px) {
.fgx-video-grid--vertical {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media screen and (max-width: 420px) {
.fgx-video-grid--vertical {
        gap: 8px;
    }
}

.fgx-video-cover {
    cursor: pointer;
}

.fgx-video-cover__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fgx-video-cover__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    background: #ff0000;
    cursor: pointer;
    z-index: 2;
}

.fgx-video-cover__play::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 18px;
    width: 0;
    height: 0;
    border-left: 18px solid #fff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

.fgx-video-cover iframe {
    z-index: 3;
}

@media (max-width: 980px) {
.fgx-kit-card {
        display: grid !important;
        grid-template-columns: 74px minmax(0,1fr) 18px !important;
        align-items: center !important;
        gap: 14px !important;
        padding: 10px 14px !important;
        min-height: 88px !important;
        border-radius: 16px !important;
    }

.fgx-kit-card__image-wrap {
        width: 74px !important;
        height: 74px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        border: none !important;
        box-shadow: none !important;
    }

.fgx-kit-card__image {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        transform: scale(1.08);
    }

.fgx-kit-card__image-wrap::after {
        display: none !important;
    }

.fgx-kit-card__body {
        min-width: 0 !important;
    }

.fgx-kit-card__title {
        margin: 0 !important;
        font-size: 15px !important;
        line-height: 1.28 !important;
        font-weight: 600 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.fgx-kit-card__footer,
    .fgx-kit-card .js-store-prod-btn,
    .fgx-kit-card .t-btn {
        display: none !important;
    }

.fgx-kit-card::after {
        content: "›";
        justify-self: end;
        align-self: center;
        font-size: 28px;
        font-weight: 300;
        line-height: 1;
        color: #aaaaaa;
        opacity: .82;
        pointer-events: none;
        transition: color .2s ease,
            transform .2s ease,
            opacity .2s ease;
    }

@media (hover:hover) {
.fgx-kit-card:hover {
            background: #fbfbfb;
            border-color: #d9d9d9;
            box-shadow: 0 5px 16px rgba(0,0,0,.04);
        }

.fgx-kit-card:hover::after {
            color: #707070;
            opacity: 1;
            transform: translateX(2px);
        }
}
}

html.fgx-external-modal-open,
body.fgx-external-modal-open {
    overflow: hidden !important;
}

.fgx-external-modal,
.fgx-external-modal * {
    box-sizing: border-box;
    font-family: "Inter", Arial, sans-serif;
}

.fgx-external-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.fgx-external-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fgx-external-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .42);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.fgx-external-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .22);
    text-align: left;
    transform: translateY(10px) scale(.98);
    transition: transform .22s ease;
}

.fgx-external-modal.is-open .fgx-external-modal__dialog {
    transform: translateY(0) scale(1);
}

.fgx-external-modal__title {
    margin: 0 0 12px;
    color: #111;
    font-size: 23px;
    line-height: 1.22;
    font-weight: 750;
    letter-spacing: -.02em;
}

.fgx-external-modal__text {
    margin: 0;
    color: #656565;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
}

.fgx-external-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
}

.fgx-external-modal__button {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 13px;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.fgx-external-modal__button--cancel {
    border: 1px solid #dedede;
    background: #f4f4f4;
    color: #222;
}

.fgx-external-modal__button--open {
    border: 1px solid #e12626;
    background: #e12626;
    color: #fff;
    box-shadow: 0 8px 18px rgba(225, 38, 38, .18);
}

@media (hover: hover) {
.fgx-external-modal__button:hover {
        transform: translateY(-1px);
    }

.fgx-external-modal__button--cancel:hover {
        background: #ededed;
        border-color: #d4d4d4;
    }

.fgx-external-modal__button--open:hover {
        background: #cf1f1f;
        border-color: #cf1f1f;
        box-shadow: 0 10px 22px rgba(207, 31, 31, .24);
    }
}

.fgx-external-modal__button:active {
    transform: scale(.985);
}

.fgx-external-modal__button:focus-visible {
    outline: 3px solid rgba(225, 38, 38, .22);
    outline-offset: 2px;
}

@media screen and (max-width: 640px) {
.fgx-external-modal {
        align-items: flex-end;
        padding: 12px;
    }

.fgx-external-modal__dialog {
        width: 100%;
        padding: 24px 20px 20px;
        border-radius: 22px;
        transform: translateY(20px);
    }

.fgx-external-modal__title {
        font-size: 21px;
    }

.fgx-external-modal__text {
        font-size: 14px;
        line-height: 1.5;
    }

.fgx-external-modal__actions {
        margin-top: 22px;
    }

.fgx-external-modal__button {
        min-height: 50px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
.fgx-external-modal,
    .fgx-external-modal__dialog,
    .fgx-external-modal__button {
        transition: none !important;
    }
}