html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
}

#allrecords {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#allrecords > .t-rec {
  flex: 0 0 auto;
}

#t-footer {
  margin-top: auto !important;
}

/* =========================================================
   Стилизация выезжающего меню (Техническое)
========================================================= */

#mainMenuOverlay,
#mainMenuDrawer,
#mainMenuDrawer *{
    box-sizing:border-box;
    font-family:"Inter", Arial, sans-serif !important;
}

#mainMenuOverlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:.3s ease;
    z-index:9998;
}

#mainMenuOverlay.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

#mainMenuDrawer{
    position:fixed;
    top:90px;
    left:50%;
    transform:translateX(-50%) scale(.96);
    width:520px;
    max-width:92vw;
    background:#fff;
    border-radius:28px;
    box-shadow:0 30px 80px rgba(0,0,0,.18);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:.3s ease;
    z-index:9999;
    overflow:hidden;
}

#mainMenuDrawer.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateX(-50%) scale(1);
}

.mainMenuHeader{
    height:90px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 35px;
    border-bottom:1px solid #eeeeee;
    background:#fff;
}

.mainMenuTitle{
    font-size:34px;
    line-height:1;
    font-weight:800;
    color:#111;
}

#mainMenuClose{
    width:44px;
    height:44px;
    border:none;
    background:transparent;
    color:#111;
    font-size:42px;
    line-height:1;
    font-weight:300;
    cursor:pointer;
    padding:0;
}

.mainMenuList{
    display:grid;
    gap:0;
    padding:18px 0;
    background:#fff;
}

/* Перебиваем возможные стили ссылок Tilda */
#mainMenuDrawer .mainMenuList a,
#mainMenuDrawer .mainMenuList a:link,
#mainMenuDrawer .mainMenuList a:visited,
#mainMenuDrawer .mainMenuList a:hover,
#mainMenuDrawer .mainMenuList a:active{
    display:flex;
    align-items:center;
    min-height:58px;
    padding:0 35px;
    color:#222 !important;
    -webkit-text-fill-color:#222 !important;
    text-decoration:none !important;
    background:transparent !important;
    border-bottom:1px solid #f3f3f3;
    font-size:19px !important;
    line-height:1.25;
    font-weight:700;
    transition:.2s ease;
}

#mainMenuDrawer .mainMenuList a:hover{
    background:#f6f6f6 !important;
    color:#111 !important;
    -webkit-text-fill-color:#111 !important;
}

/* ===================== МОБИЛЬНАЯ ВЕРСИЯ ===================== */

@media(max-width:980px){

    #mainMenuDrawer{
        position:fixed !important;
        top:0 !important;
        left:0 !important;
        right:0 !important;
        bottom:0 !important;
        width:100vw !important;
        height:100dvh !important;
        max-width:none !important;
        border-radius:0 !important;
        transform:none !important;
        margin:0 !important;
        overflow:auto;
    }
    
    #mainMenuDrawer.active{
        transform:none !important;
    }

    .mainMenuHeader{
        height:100px;
        padding:0 28px;
    }

    .mainMenuTitle{
        font-size:32px;
    }

    #mainMenuClose{
        font-size:42px;
    }

    .mainMenuList{
        padding:0;
    }

    #mainMenuDrawer .mainMenuList a,
    #mainMenuDrawer .mainMenuList a:link,
    #mainMenuDrawer .mainMenuList a:visited,
    #mainMenuDrawer .mainMenuList a:hover,
    #mainMenuDrawer .mainMenuList a:active{
        min-height:62px;
        padding:0 24px;
        font-size:20px !important;
    }

}

/* =========================================================
   Стилизация выезжающего меню (Каталог)
========================================================= */

#catalogOverlay,
#catalogDrawer,
#catalogDrawer *{
    box-sizing:border-box;
    font-family:"Inter", Arial, sans-serif !important;
}

#catalogOverlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:.3s ease;
    z-index:9998;
}

#catalogOverlay.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

#catalogDrawer{
    position:fixed;
    top:90px;
    left:50%;
    transform:translateX(-50%) scale(.96);
    width:1100px;
    height:650px;
    max-width:92vw;
    background:#fff;
    border-radius:28px;
    box-shadow:0 30px 80px rgba(0,0,0,.18);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:.3s ease;
    z-index:9999;
    overflow:hidden;
}

#catalogDrawer.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateX(-50%) scale(1);
}

.catalogHeader{
    height:90px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 35px;
    border-bottom:1px solid #eeeeee;
    background:#fff;
}

.catalogTitle{
    font-size:34px;
    line-height:1;
    font-weight:800;
    color:#111;
}

#catalogClose{
    width:44px;
    height:44px;
    border:none;
    background:transparent;
    color:#111;
    font-size:42px;
    line-height:1;
    font-weight:300;
    cursor:pointer;
    padding:0;
}

.catalogDesktop{
    display:flex;
    height:calc(100% - 90px);
}

.catalogCategories{
    width:340px;
    padding:25px;
    border-right:1px solid #eeeeee;
    background:#fff;
    overflow:auto;
}

.catalogCategory{
    padding:17px 20px;
    margin-bottom:8px;
    border-radius:16px;
    font-size:17px;
    line-height:1.2;
    font-weight:700;
    color:#222;
    cursor:pointer;
    transition:.25s ease;
}

.catalogCategory:hover{
    background:#f5f5f5;
}

.catalogCategory.active{
    background:linear-gradient(135deg,#1f1f1f,#2c2c2c);
    color:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.catalogContent{
    flex:1;
    padding:35px;
    background:#fff;
    overflow:auto;
}

.catalogPane{
    display:none;
}

.catalogPane.active{
    display:grid;
    gap:20px;
}

#catalogDrawer .catalogPane a,
#catalogDrawer .catalogPane a:link,
#catalogDrawer .catalogPane a:visited,
#catalogDrawer .catalogPane a:hover,
#catalogDrawer .catalogPane a:active,
#catalogDrawer .mobileSubmenuLinks a,
#catalogDrawer .mobileSubmenuLinks a:link,
#catalogDrawer .mobileSubmenuLinks a:visited,
#catalogDrawer .mobileSubmenuLinks a:hover,
#catalogDrawer .mobileSubmenuLinks a:active{
    color:#222 !important;
    text-decoration:none !important;
    background:transparent !important;
    border-color:#f4f4f4 !important;
    -webkit-text-fill-color:#222 !important;
}

#catalogDrawer .catalogPane a{
    font-size:21px !important;
    line-height:1.35;
    font-weight:600;
    transition:.2s ease;
}

#catalogDrawer .catalogPane a:hover{
    color:#e12626 !important;
    -webkit-text-fill-color:#e12626 !important;
}

.catalogDirectPane.active{
    display:block;
}

.directCard{
    min-height:420px;
    position:relative;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:30px;
    padding:4px 0;
    overflow:hidden;
}

.directInfo{
    position:relative;
    z-index:2;
    max-width:430px;
}

.directTitle{
    margin-bottom:14px;
    color:#222;
    font-size:30px;
    line-height:1.15;
    font-weight:800;
}

.directText{
    margin-bottom:26px;
    color:#555;
    font-size:17px;
    line-height:1.55;
    font-weight:500;
}

#catalogDrawer .directButton,
#catalogDrawer .directButton:link,
#catalogDrawer .directButton:visited,
#catalogDrawer .directButton:hover,
#catalogDrawer .directButton:active{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:15px 22px;
    border-radius:14px;
    background:#222 !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    text-decoration:none !important;
    font-size:16px !important;
    line-height:1;
    font-weight:700;
    box-shadow:0 12px 30px rgba(0,0,0,.14);
}

.directVisual{
    position:absolute;
    right:20px;
    bottom:10px;
    width:300px;
    height:260px;
    opacity:.42;
    display:none;
}

.directVisual.active{
    display:block;
}

.directVisual::after{
    content:"";
    position:absolute;
    right:-50px;
    bottom:-60px;
    width:230px;
    height:230px;
    border-radius:50%;
    background:#f2f2f2;
}

.canvasSheet{
    position:absolute;
    width:150px;
    height:88px;
    border-radius:22px;
    background:#d8d8d8;
    z-index:2;
    transform:rotate(-18deg);
}

.canvasSheetOne{
    top:70px;
    left:50px;
}

.canvasSheetTwo{
    top:115px;
    left:92px;
    opacity:.9;
}

.canvasSheetThree{
    top:160px;
    left:134px;
    opacity:.8;
}

.electricLine{
    position:absolute;
    left:55px;
    height:17px;
    border-radius:999px;
    background:#d8d8d8;
    transform:rotate(-26deg);
    z-index:2;
}

.electricLineOne{
    top:76px;
    width:168px;
}

.electricLineTwo{
    top:126px;
    width:135px;
}

.electricLineThree{
    top:174px;
    width:105px;
}

.electricDot{
    position:absolute;
    width:44px;
    height:44px;
    border-radius:50%;
    border:13px solid #d8d8d8;
    z-index:2;
}

.electricDotOne{
    top:88px;
    right:58px;
}

.electricDotTwo{
    top:156px;
    right:92px;
}

.toolBar{
    position:absolute;
    left:56px;
    height:17px;
    border-radius:999px;
    background:#d8d8d8;
    transform:rotate(-28deg);
    z-index:2;
}

.toolBarOne{
    top:86px;
    width:175px;
}

.toolBarTwo{
    top:133px;
    width:132px;
}

.toolBarThree{
    top:177px;
    width:100px;
}

.toolCircle{
    position:absolute;
    right:18px;
    bottom:6px;
    width:150px;
    height:150px;
    border-radius:50%;
    background:#eeeeee;
    z-index:1;
}

.hatchBox{
    position:absolute;
    width:83px;
    height:83px;
    border:12px solid #d8d8d8;
    border-radius:18px;
    z-index:2;
}

.hatchBoxOne{
    top:67px;
    left:54px;
}

.hatchBoxTwo{
    top:119px;
    left:114px;
}

.hatchBoxThree{
    top:67px;
    left:176px;
}

.catalogMobile{
    display:none;
}

@media(max-width:980px){

    #catalogDrawer{
        position:fixed !important;
        top:0 !important;
        left:0 !important;
        right:0 !important;
        bottom:0 !important;
        width:100vw !important;
        height:100dvh !important;
        max-width:none !important;
        border-radius:0 !important;
        transform:none !important;
        margin:0 !important;
    }

    #catalogDrawer.active{
        transform:none !important;
    }

    .catalogHeader{
        height:100px;
        padding:0 28px;
    }

    .catalogTitle{
        font-size:32px;
    }

    #catalogClose{
        font-size:42px;
    }

    .catalogDesktop{
        display:none;
    }

    .catalogMobile{
        display:block;
        height:calc(100dvh - 100px);
        overflow:hidden;
        position:relative;
        width:100%;
        background:#fff;
    }
    
    .mobileCategories,
    .mobileSubmenu{
        position:absolute;
        inset:0;
        background:#fff;
        overflow:auto;
        transition:.3s ease;
        -webkit-overflow-scrolling:touch;
    }

    .mobileSubmenu{
        transform:translateX(100%);
        z-index:2;
    }

    .mobileSubmenu.active{
        transform:translateX(0);
    }

    .mobileCategory{
        display:flex;
        align-items:center;
        justify-content:space-between;
        padding:22px 24px;
        border-bottom:1px solid #f2f2f2;
        font-size:20px;
        line-height:1.2;
        font-weight:700;
        color:#222 !important;
        cursor:pointer;
        background:#fff;
    }

    .mobileArrow{
        font-size:24px;
        line-height:1;
        color:#777 !important;
    }

    .mobileBack{
        width:100%;
        display:block;
        text-align:left;
        padding:22px 24px;
        border:none;
        border-bottom:1px solid #eeeeee;
        background:#fff;
        color:#111;
        font-size:18px;
        line-height:1.2;
        font-weight:700;
        cursor:pointer;
    }

    .mobileSubmenuTitle{
        padding:24px;
        color:#111;
        font-size:28px;
        line-height:1.2;
        font-weight:800;
    }

    #catalogDrawer .mobileSubmenuLinks a{
        display:block;
        padding:18px 24px;
        font-size:19px !important;
        line-height:1.35;
        font-weight:500;
        border-bottom:1px solid #f4f4f4;
    }

}

/* =========================================================
   03. КОРЗИНА: МОБИЛЬНЫЙ ВИД ТОВАРОВ
========================================================= */

@media (max-width: 640px) {

  .t706__body_cartpageshowed .t706__product {
    position: relative !important;
    padding-top: 14px !important;
    padding-bottom: 18px !important;
  }

  .t706__body_cartpageshowed .t706__product-del-wrapper {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    opacity: 0.8;
  }

  .t706__body_cartpageshowed .t706__product-title,
  .t706__body_cartpageshowed .t706__product-title a {
    font-size: 16px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #111 !important;
  }

  .t706__body_cartpageshowed .t706__product-title {
    padding-right: 34px !important;
    margin-bottom: 6px !important;
  }

  .t706__body_cartpageshowed .t706__product-option,
  .t706__body_cartpageshowed .t706__product-params,
  .t706__body_cartpageshowed .t706__product-title + div,
  .t706__body_cartpageshowed .t706__product-text {
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: #7a7a7a !important;
  }

  .t706__body_cartpageshowed .t706__product-plusminus {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin-top: 8px !important;
    margin-right: 16px !important;
    vertical-align: middle !important;
  }

  .t706__body_cartpageshowed .t706__product-amount--portion {
    display: inline-block !important;
    text-align: right !important;
    vertical-align: top !important;
    margin-top: 8px !important;
    white-space: nowrap !important;
    float: right !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    color: #222 !important;
  }

  .t706__body_cartpageshowed .t706__product-amount--portion span,
  .t706__body_cartpageshowed .t706__product-amount--portion small {
    font-size: 12px !important;
    color: #8a8a8a !important;
    font-weight: 400 !important;
  }

  .t706__body_cartpageshowed .t706__product::after {
    content: "" !important;
    display: block !important;
    clear: both !important;
  }
  
  .t706__body_cartpageshowed .t706__product-minus,
  .t706__body_cartpageshowed .t706__product-plus {
    width: 26px !important;
    height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
    color: #7a7a7a !important;
    opacity: 1 !important;
  }

  .t706__body_cartpageshowed .t706__product-minus *,
  .t706__body_cartpageshowed .t706__product-plus * {
    color: #7a7a7a !important;
    stroke: #7a7a7a !important;
    opacity: 1 !important;
  }

  .t706__body_cartpageshowed .t706__product-quantity {
    min-width: 18px !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 24px !important;
    display: inline-block !important;
    color: #222 !important;
  }

  .t706__body_cartpageshowed .t706__product + .t706__product {
    margin-top: 8px !important;
  }
}

/* =========================================================
   04. КОРЗИНА: ОТКЛЮЧАЕМ КЛИК ПО НАЗВАНИЯМ ТОВАРОВ
========================================================= */

.t706__product-title,
.t706__product-title a,
.t706__product-title a:link,
.t706__product-title a:visited,
.t706__product-title a:hover,
.t706__product-title a:active {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
  color: inherit !important;
}

/* =========================================================
   05. КАТАЛОГ: ОБЩАЯ ПОЛИРОВКА КАРТОЧЕК
========================================================= */

/* Цена — вторичный текст */
.t-store .t-store__prod__price-portion {
  color: #888 !important;
  font-size: 13px !important;
}

/* Кнопки и счётчик */
.t-store .js-store-prod-btn,
.t-store .js-store-prod-btn2,
.t-store .t-store__prod__quantity {
  border-radius: 8px !important;
}

/* Округление изображений только в плиточной версии */
.t-rec:not(.catalog-list-view) .t-store__card__imgwrapper {
  border-radius: 14px !important;
  overflow: hidden !important;
}

.t-rec:not(.catalog-list-view) .t-store__card__bgimg {
  border-radius: 14px !important;
}

/* Общий стиль кнопки в плитке */
.js-store-prod-btn {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
  border-radius: 10px !important;
  height: 46px !important;
  transition: all 0.2s ease !important;
}

.js-store-prod-btn .t-store__card__btn-text {
  font-size: 13px !important;
}

@media (hover: hover) {
  .js-store-prod-btn:hover {
    background: #000 !important;
    border-color: #000 !important;
    transform: translateY(-1px);
  }
}

/* =========================================================
   06. КАТАЛОГ: РЕЖИМ СПИСКА ДЛЯ КАРТОЧЕК Используется и старым, и новым переключателем. Работает через класс .catalog-list-view на .t-rec
========================================================= */

.t-rec.catalog-list-view .t-store__card-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  align-items: stretch !important;
}

.t-rec.catalog-list-view .t-store__grid-separator,
.t-rec.catalog-list-view .t-clear.t-store__grid-separator {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: none !important;
}

.t-rec.catalog-list-view .js-product {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 16px !important;

  display: grid !important;
  grid-template-columns: 110px 1fr 120px !important;
  gap: 20px !important;
  align-items: center !important;

  float: none !important;
  clear: none !important;

  border: 1px solid #e5e5e5 !important;
  border-radius: 16px !important;
  background: #f7f7f7 !important;
  box-sizing: border-box !important;
}

.t-rec.catalog-list-view .js-product > a:first-child {
  width: 110px !important;
}

.t-rec.catalog-list-view .t-store__card__imgwrapper {
  width: 110px !important;
  height: 110px !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}

.t-rec.catalog-list-view .t-store__card__bgimg {
  height: 110px !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

.t-rec.catalog-list-view .t-store__card__wrap_txt-and-btns {
  display: contents !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.t-rec.catalog-list-view .store__card__wrap_txt-and-opts,
.t-rec.catalog-list-view .t-store__card__wrap_all,
.t-rec.catalog-list-view .t-store__card__textwrapper {
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.t-rec.catalog-list-view .store__card__wrap_txt-and-opts {
  min-width: 0 !important;
}

.t-rec.catalog-list-view .t-store__card__title {
  min-height: auto !important;
  font-size: 16px !important;
  line-height: 1.25 !important;

  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

/* Цена */
.t-rec.catalog-list-view .t-store__card__price-wrapper {
  display: flex !important;
  align-items: baseline !important;
  gap: 5px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  margin-top: 5px !important;
  min-height: 18px !important;
}

.t-rec.catalog-list-view .t-store__card__price {
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #111 !important;
}

.t-rec.catalog-list-view .t-store__card__price_old,
.t-rec.catalog-list-view .t-store__card__price-old,
.t-rec.catalog-list-view .t-store__card__price-wrapper s {
  font-size: 13px !important;
  line-height: 1 !important;
  color: #b5b5b5 !important;
  margin: 0 !important;
}

.t-rec.catalog-list-view .t-store__prod__price-portion {
  font-size: 13px !important;
  color: #888 !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
}

/* В списке скрываем опции, количество и кнопку "В корзину" */
.t-rec.catalog-list-view .t-store__card__prod-controls-wrapper,
.t-rec.catalog-list-view .t-store__prod__quantity,
.t-rec.catalog-list-view .js-store-prod-btn2 {
  display: none !important;
}

/* Кнопка "К товару" */
.t-rec.catalog-list-view .t-store__card__btns-wrapper {
  width: 120px !important;
  min-width: 120px !important;
  margin: 0 !important;
  align-self: center !important;
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
}

.t-rec.catalog-list-view .t-store__card__btns-wrapper--quantity {
  display: block !important;
}

.t-rec.catalog-list-view .js-store-prod-btn {
  width: 120px !important;
  height: 46px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
  transition: all 0.2s ease !important;
}

.t-rec.catalog-list-view .js-store-prod-btn .t-store__card__btn-text {
  font-size: 13px !important;
}

/* Скрываем бейджи в списке */
.t-rec.catalog-list-view .t-store__card__mark-wrapper {
  display: none !important;
}

/* Мобильная версия списка */
@media screen and (max-width: 640px) {
  .t-rec.catalog-list-view .t-store__card-list {
    gap: 10px !important;
  }

  .t-rec.catalog-list-view .js-product {
    width: calc(100% - 32px) !important;
    margin: 0 16px !important;
    padding: 10px !important;
    grid-template-columns: 76px 1fr 82px !important;
    gap: 10px !important;
    border-radius: 14px !important;
  }

  .t-rec.catalog-list-view .js-product > a:first-child,
  .t-rec.catalog-list-view .t-store__card__imgwrapper {
    width: 76px !important;
  }

  .t-rec.catalog-list-view .t-store__card__imgwrapper,
  .t-rec.catalog-list-view .t-store__card__bgimg {
    height: 76px !important;
  }

  .t-rec.catalog-list-view .t-store__card__title {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }
  
  .t-rec.catalog-list-view .t-store__card__price-wrapper {
    display: block !important;
    margin-top: 4px !important;
    min-height: auto !important;
  }

  .t-rec.catalog-list-view .t-store__card__price {
    font-size: 14px !important;
    line-height: 1.15 !important;
  }

  .t-rec.catalog-list-view .t-store__prod__price-portion {
    font-size: 11px !important;
  }

  .t-rec.catalog-list-view .t-store__card__price_old,
  .t-rec.catalog-list-view .t-store__card__price-old,
  .t-rec.catalog-list-view .t-store__card__price-wrapper s {
    display: none !important;
  }

  .t-rec.catalog-list-view .t-store__card__btns-wrapper {
    width: 82px !important;
    min-width: 82px !important;
  }

  .t-rec.catalog-list-view .js-store-prod-btn {
    width: 82px !important;
    height: 42px !important;
    border-radius: 10px !important;
  }

  .t-rec.catalog-list-view .js-store-prod-btn .t-store__card__btn-text {
    font-size: 12px !important;
  }
}

/* =========================================================
   08. НОВАЯ ВЕРСИЯ: TOOLBAR КАТАЛОГА Название раздела + Поделиться + Плитка / Список Новый HTML на страницах:  ...  После полного перехода: - старую секцию 07 можно удалить; - эту секцию оставить.
========================================================= */

.rp-catalog-topline {
  width: 100%;
  max-width: 1160px;
  margin: 12px auto 24px auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;

  box-sizing: border-box;
}

.rp-catalog-topline:has(.rp-catalog-heading) {
  align-items: flex-start;
}

.rp-catalog-heading {
  min-width: 0;
  flex: 1 1 auto;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.rp-catalog-title {
  margin: 0;

  min-width: 0;
  flex: 1 1 auto;

  overflow-wrap: anywhere;
  word-break: break-word;

  font-family: "Inter", Arial, sans-serif;
  font-size: 27px;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.04em;

  color: #101010;
}

.rp-catalog-heading .rp-catalog-title {
  flex: 0 1 auto;
}

.rp-catalog-tag {
  display: inline-flex;
  align-items: center;

  padding: 8px 13px 8px 12px;

  border-radius: 10px;
  background: #f6f6f6;
  border: 1px solid rgba(0, 0, 0, 0.06);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8);

  font-family: "Inter", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.18;
  font-weight: 550;
  letter-spacing: -0.01em;

  color: #3f3f3f;

  white-space: normal;
  margin-left: -1px;
  max-width: 220px;
}

.rp-catalog-tag br {
  content: "";
  display: block;
  margin-top: 3px;
}

.rp-catalog-actions {
  display: flex;
  align-items: center;
  gap: 10px;

  flex: 0 0 auto;
  flex-shrink: 0;

  padding-top: 0;
}

.rp-catalog-topline:has(.rp-catalog-heading) .rp-catalog-actions {
  padding-top: 2px;
}

.rp-catalog-action-btn,
.rp-catalog-view-btn {
  width: 46px;
  height: 46px;

  border: 1px solid #e1e1e1;
  border-radius: 15px;

  background:
    linear-gradient(
      180deg,
      #fcfcfc 0%,
      #f4f4f4 100%
    );

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  cursor: pointer;
  box-sizing: border-box;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.rp-catalog-action-btn:hover,
.rp-catalog-view-btn:hover {
  transform: translateY(-1px);

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f1f1f1 100%
    );

  box-shadow:
    0 4px 12px rgba(0,0,0,0.05);
}

.rp-catalog-action-btn svg,
.rp-catalog-view-btn svg {
  width: 20px;
  height: 20px;
  fill: #222;
}

.rp-catalog-share-btn {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f5f5f5 100%
    );
}

.rp-catalog-view {
  display: flex;
  align-items: center;
  gap: 4px;

  padding: 4px;

  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      #f8f8f8 0%,
      #f1f1f1 100%
    );

  border: 1px solid #ececec;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.rp-catalog-view-btn {
  border-color: transparent;
  background: transparent;
}

.rp-catalog-view-btn.is-active {
  background:
    linear-gradient(
      180deg,
      #ff2d2d 0%,
      #df2020 100%
    );

  box-shadow:
    0 8px 18px rgba(223,32,32,0.22),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.rp-catalog-view-btn.is-active svg {
  fill: #fff;
}

@media (max-width: 640px) {

  .rp-catalog-topline {
    padding: 0 16px;
    margin: 10px auto 18px auto;
    gap: 14px;
  }

  .rp-catalog-heading {
    gap: 8px;
  }

  .rp-catalog-title {
    font-size: 23px;
    line-height: 1.05;
    letter-spacing: -0.035em;
  }

  .rp-catalog-tag {
    padding: 7px 12px 7px 11px;

    font-size: 12px;
    line-height: 1.2;

    border-radius: 9px;

    max-width: 190px;
  }

  .rp-catalog-tag br {
    margin-top: 2px;
  }

  .rp-catalog-actions {
    padding-top: 0;
  }

  .rp-catalog-topline:has(.rp-catalog-heading) .rp-catalog-actions {
    padding-top: 0;
  }

  .rp-catalog-action-btn,
  .rp-catalog-view-btn {
    width: 42px;
    height: 42px;

    border-radius: 13px;
  }

  .rp-catalog-action-btn svg,
  .rp-catalog-view-btn svg {
    width: 18px;
    height: 18px;
  }

  .rp-catalog-view {
    padding: 3px;
    border-radius: 16px;
  }
}

/* =========================================================
   ДОПОЛНИТЕЛЬНЫЕ CSS-СТИЛИ ДЛЯ МЕНЮ КАТАЛОГА / RUPOTOLOKOPT
   Вставить в: Настройки сайта → Еще → Пользовательские CSS-стили
   Лучше вставлять в самый низ текущего общего CSS.
========================================================= */

/* =========================================================
   БЫСТРЫЕ ССЫЛКИ В МОБИЛЬНОЙ ШАПКЕ КАТАЛОГА
   Акции / Новинки — показываются только на мобильной версии.
   Версия: иконка + Акции + Новинки + закрытие в одну строку.
========================================================= */
    .catalogQuickLinks {
        display: none;
    }

    .catalogTitleIcon {
        display: none;
    }

    @media (max-width:980px) {
        #catalogDrawer .catalogHeader {
            display: flex !important;
            align-items: center !important;
            justify-content: flex-start !important;
            flex-wrap: nowrap !important;
            gap: 8px !important;
            height: auto !important;
            min-height: 58px !important;
            padding-top: 12px !important;
            padding-bottom: 12px !important;
            overflow: visible !important;
        }

        /* На мобильной вместо слова "Каталог" показываем компактную иконку разделов */
        #catalogDrawer .catalogTitle {
            order: 1 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex: 0 0 auto !important;
            box-sizing: border-box !important;
            width: 34px !important;
            height: 34px !important;
            min-height: 34px !important;
            padding: 0 !important;
            border-radius: 12px !important;
            border: 1px solid rgba(0, 0, 0, .10) !important;
            background: #fff !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, .06) !important;
            margin: 0 !important;
        }

        #catalogDrawer .catalogTitleText {
            display: none !important;
        }

        #catalogDrawer .catalogTitleIcon {
            display: grid !important;
            grid-template-columns: repeat(2, 6px);
            grid-template-rows: repeat(2, 6px);
            gap: 4px;
        }

        #catalogDrawer .catalogTitleIcon span {
            display: block;
            width: 6px;
            height: 6px;
            border-radius: 2px;
            background: #111;
        }

        .catalogQuickLinks {
            order: 2 !important;
            width: auto !important;
            flex: 0 1 auto !important;
            min-width: 0 !important;
            display: flex;
            align-items: center;
            gap: 7px;
            margin: 0 !important;
            position: relative;
            z-index: 2;
        }

        .catalogQuickLink {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-height: 28px;
            box-sizing: border-box;
            padding: 6px 11px;
            border-radius: 999px;
            border: 1px solid rgba(0, 0, 0, .12);
            background: #fff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
            color: #111 !important;
            text-decoration: none !important;
            font-size: 11px;
            font-weight: 800;
            line-height: 1;
            letter-spacing: .02em;
            text-transform: uppercase;
            white-space: nowrap;
            -webkit-tap-highlight-color: transparent;
        }

        .catalogQuickLink:active {
            transform: scale(.98);
        }

        .catalogQuickDot {
            width: 5px;
            height: 5px;
            flex: 0 0 auto;
            border-radius: 50%;
            background: #e41b23;
            box-shadow: 0 0 0 0 rgba(228, 27, 35, .25);
        }

        #catalogDrawer #catalogClose {
            order: 3 !important;
            flex: 0 0 auto !important;
            margin-left: auto !important;
            margin-top: 0 !important;
        }

        /* Защита для совсем узких экранов */
        @media (max-width:360px) {
            #catalogDrawer .catalogHeader {
                gap: 6px !important;
            }

            .catalogQuickLinks {
                gap: 5px;
            }

            .catalogQuickLink {
                padding-left: 9px;
                padding-right: 9px;
                font-size: 10px;
            }
        }

        body.catalog-quick-pulse .catalogQuickLink:nth-child(1) .catalogQuickDot {
            animation: catalogQuickDotBreath .72s ease-out .35s 1 both;
        }

        body.catalog-quick-pulse .catalogQuickLink:nth-child(2) .catalogQuickDot {
            animation: catalogQuickDotBreath .72s ease-out .95s 1 both;
        }
    }

    @keyframes catalogQuickDotBreath {
        0% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(228, 27, 35, .28);
        }

        45% {
            transform: scale(1.45);
            box-shadow: 0 0 0 7px rgba(228, 27, 35, .08);
        }

        100% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(228, 27, 35, 0);
        }
    }

/* =========================================================
   ДОПОЛНИТЕЛЬНЫЙ УРОВЕНЬ МЕНЮ ДЛЯ ТРЕКОВОГО ОСВЕЩЕНИЯ
   Тут можно менять ссылки/подпункты Track 23 и Track 25.
========================================================= */
    .catalogNestedItem {
        position: relative;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 14px;
        margin: 0 0 24px !important;
    }

    /* На ПК держим "Трековое освещение" и Track 23 / Track 25 в одной строке */
    .catalogNestedTitle {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        flex: 0 0 auto;
        cursor: default;
        color: #2b2b2b;
        font-size: 22px;
        font-weight: 700;
        line-height: 1.3;
        margin: 0 !important;
    }

    /* На ПК стрелку не показываем: выбор Track 23 / Track 25 уже виден сразу */
    .catalogNestedArrow {
        display: none;
    }

    /* На ПК показываем Track 23 / Track 25 сразу как компактные, заметные кнопки */
    .catalogNestedLinks {
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        flex: 0 0 auto;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .catalogNestedItem:hover .catalogNestedLinks,
    .catalogNestedItem.active .catalogNestedLinks {
        display: flex !important;
    }

    .catalogNestedLinks a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 100px;
        box-sizing: border-box;
        padding: 7px 15px !important;
        margin: 0 !important;
        border: 1px solid rgba(0, 0, 0, .22);
        border-radius: 12px;
        background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
        box-shadow: 0 6px 14px rgba(0, 0, 0, .07);
        color: #202020;
        text-decoration: none;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.15;
        transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .catalogNestedLinks a:hover {
        background: #222;
        color: #fff;
        border-color: #222;
        box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
        transform: translateY(-1px);
    }

    /* На мобильной вложенный пункт должен выглядеть как остальные строки меню */
    .mobileSubmenuItem {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        cursor: pointer;
        width: 100%;
        box-sizing: border-box;
        padding: 18px 22px;
        border-bottom: 1px solid rgba(0, 0, 0, .07);
        color: #111;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.35;
    }

    .mobileSubmenuItem:hover {
        background: rgba(0, 0, 0, .03);
    }

    @media (max-width:980px) {
        .catalogNestedItem {
            display: block;
            margin: 0 !important;
        }

        .catalogNestedTitle {
            font-size: 18px;
            font-weight: 500;
        }
    }

    /* =========================================================
   ФИНАЛЬНАЯ ПРАВКА РИТМА ДЛЯ РАЗДЕЛА ОСВЕЩЕНИЕ НА ПК
   Убираем лишний воздух: кнопки ниже, а шаг до следующего пункта компактнее.
========================================================= */
    @media (min-width:981px) {
        #lighting.catalogPane {
            gap: 0 !important;
        }

        #lighting .catalogNestedItem {
            margin: 0 0 15px !important;
        }

        #lighting>a {
            display: block !important;
            margin: 0 0 19px !important;
            padding: 0 !important;
            line-height: 1.3 !important;
        }

        #lighting>a:last-child {
            margin-bottom: 0 !important;
        }
    }

/* =========================================================
   АКЦЕНТНЫЙ ПУНКТ FERGIPPS В ОСНОВНОМ МЕНЮ
   Добавлен и на ПК, и на мобильной версии без нарушения ритма списка.
========================================================= */
    .catalogFergippsCategory {
        position: relative;
        overflow: hidden;
        background:
            linear-gradient(90deg, rgba(228, 27, 35, .08), rgba(255, 255, 255, 0) 62%) !important;
        color: #111 !important;
        font-weight: 800 !important;
        letter-spacing: .02em;
    }

    .catalogFergippsCategory::before {
        content: "";
        position: absolute;
        left: 0;
        top: 12px;
        bottom: 12px;
        width: 4px;
        border-radius: 0 999px 999px 0;
        background: #e41b23;
    }

    .catalogFergippsCategory:hover {
        background:
            linear-gradient(90deg, rgba(228, 27, 35, .12), rgba(255, 255, 255, 0) 66%) !important;
        color: #8b0d12 !important;
    }

    .mobileFergippsCategory {
        position: relative;
        overflow: hidden;
        background:
            linear-gradient(90deg, rgba(228, 27, 35, .075), rgba(255, 255, 255, 0) 64%) !important;
        color: #111 !important;
        font-weight: 800 !important;
        letter-spacing: .02em;
    }

    .mobileFergippsCategory::before {
        content: "";
        position: absolute;
        left: 0;
        top: 13px;
        bottom: 13px;
        width: 4px;
        border-radius: 0 999px 999px 0;
        background: #e41b23;
    }

    .mobileFergippsCategory span {
        position: relative;
        z-index: 1;
    }

    .mobileFergippsCategory:hover,
    .mobileFergippsCategory:active {
        color: #8b0d12 !important;
    }

    @media (max-width:980px) {
        .mobileFergippsCategory {
            padding-left: 26px !important;
        }
    }

/* =========================================
   PREMIUM STYLE FOR TILDA STORE POPUP CARD
   FGX — cleaned stable version Футер карточек товара
========================================= */

/* -----------------------------------------
   ОБЩАЯ БЕЗОПАСНОСТЬ
----------------------------------------- */
.js-store-product *,
.t-store__product-snippet * {
    box-sizing: border-box;
}

/* -----------------------------------------
   СЕТКА / КОЛОНКИ
----------------------------------------- */
.js-store-product .t-container,
.t-store__product-snippet .t-container {
    width: 100%;
}

.js-store-product .t-store__prod-popup__col-left,
.t-store__product-snippet .t-store__prod-popup__col-left {
    padding-right: 28px;
}

/* -----------------------------------------
   ПРАВАЯ КАРТОЧКА
----------------------------------------- */
.js-store-product .t-store__prod-popup__info,
.t-store__product-snippet .t-store__prod-popup__info {
    width: 100%;
    background: #f3f3f3;
    border-radius: 22px;
    padding: 26px 24px 22px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* -----------------------------------------
   ЗАГОЛОВОК
----------------------------------------- */
.js-store-product .t-store__prod-popup__title-wrapper,
.t-store__product-snippet .t-store__prod-popup__title-wrapper {
    margin-bottom: 0 !important;
}

.js-store-product .t-store__prod-popup__name,
.t-store__product-snippet .t-store__prod-popup__name {
    font-size: 28px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.js-store-product .t-store__prod-popup__sku,
.js-store-product .js-store-prod-sku,
.t-store__product-snippet .t-store__prod-popup__sku,
.t-store__product-snippet .js-store-prod-sku {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #8a8a8a !important;
}

/* -----------------------------------------
   ЦЕНА
----------------------------------------- */
.js-store-product .t-store__prod-popup__price-wrapper,
.t-store__product-snippet .t-store__prod-popup__price-wrapper {
    margin-bottom: 20px !important;
}

.js-store-product .t-store__prod-popup__price,
.t-store__product-snippet .t-store__prod-popup__price {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-right: 0 !important;
}

.js-store-product .t-store__prod-popup__price-value,
.t-store__product-snippet .t-store__prod-popup__price-value {
    font-size: 38px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #111 !important;
    letter-spacing: -0.02em;
}

.js-store-product .t-store__prod-popup__price-currency,
.t-store__product-snippet .t-store__prod-popup__price-currency {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #111 !important;
}

.js-store-product .t-store__prod__price-portion,
.t-store__product-snippet .t-store__prod__price-portion {
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    color: #7a7a7a !important;
}

.js-store-product .t-store__prod__price-portion-slash,
.t-store__product-snippet .t-store__prod__price-portion-slash {
    color: #a0a0a0 !important;
}

.js-store-product .t-store__prod-popup__price_old,
.t-store__product-snippet .t-store__prod-popup__price_old {
    color: #9a9a9a !important;
}

/* -----------------------------------------
   ЗОНА ОПЦИЙ
----------------------------------------- */
.js-store-product .js-product-controls-wrapper,
.t-store__product-snippet .js-product-controls-wrapper {
    margin-bottom: 20px !important;
}

.js-store-product .t-product__option,
.t-store__product-snippet .t-product__option {
    margin-bottom: 16px !important;
}

.js-store-product .t-product__option:last-child,
.t-store__product-snippet .t-product__option:last-child {
    margin-bottom: 0 !important;
}

.js-store-product .t-product__option>.t-product__option-title,
.js-store-product .js-product-edition-option-name,
.t-store__product-snippet .t-product__option>.t-product__option-title,
.t-store__product-snippet .js-product-edition-option-name {
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    color: #666 !important;
    margin-bottom: 8px !important;
}

.js-store-product .t-product__option-select,
.t-store__product-snippet .t-product__option-select {
    min-height: 44px !important;
    border-radius: 12px !important;
    border: 1px solid #d8d8d8 !important;
    background: #fff !important;
    padding-left: 14px !important;
    padding-right: 40px !important;
    color: #222 !important;
    font-size: 14px !important;
}

/* -----------------------------------------
   RADIO
----------------------------------------- */
.js-store-product .t-product__option-variants_radio,
.t-store__product-snippet .t-product__option-variants_radio {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.js-store-product .t-product__option-item_radio,
.js-store-product .t-product__option-item_simple,
.t-store__product-snippet .t-product__option-item_radio,
.t-store__product-snippet .t-product__option-item_simple {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    width: auto !important;
}

.js-store-product .t-product__option-item_radio::before,
.js-store-product .t-product__option-item_radio::after,
.js-store-product .t-product__option-item_simple::before,
.js-store-product .t-product__option-item_simple::after,
.js-store-product .t-product__option-title_radio::before,
.js-store-product .t-product__option-title_radio::after,
.js-store-product .t-product__option-title_simple::before,
.js-store-product .t-product__option-title_simple::after,
.t-store__product-snippet .t-product__option-item_radio::before,
.t-store__product-snippet .t-product__option-item_radio::after,
.t-store__product-snippet .t-product__option-item_simple::before,
.t-store__product-snippet .t-product__option-item_simple::after,
.t-store__product-snippet .t-product__option-title_radio::before,
.t-store__product-snippet .t-product__option-title_radio::after,
.t-store__product-snippet .t-product__option-title_simple::before,
.t-store__product-snippet .t-product__option-title_simple::after {
    content: none !important;
    display: none !important;
}

.js-store-product .t-product__option-input_radio,
.t-store__product-snippet .t-product__option-input_radio {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.js-store-product .t-product__option-checkmark_radio,
.t-store__product-snippet .t-product__option-checkmark_radio {
    position: relative !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    flex: 0 0 18px !important;
    border-radius: 50% !important;
    border: 1.5px solid #cfcfcf !important;
    background: #fff !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: background .18s ease, border-color .18s ease !important;
}

.js-store-product .t-product__option-checkmark_radio::before,
.js-store-product .t-product__option-checkmark_radio::after,
.t-store__product-snippet .t-product__option-checkmark_radio::before,
.t-store__product-snippet .t-product__option-checkmark_radio::after {
    content: none !important;
    display: none !important;
}

.js-store-product .t-product__option-item_active .t-product__option-checkmark_radio,
.t-store__product-snippet .t-product__option-item_active .t-product__option-checkmark_radio {
    border-color: #3a3a3a !important;
    background: #3a3a3a !important;
}

.js-store-product .t-product__option-title_radio,
.t-store__product-snippet .t-product__option-title_radio {
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    color: #4b4b4b !important;
    margin: 0 !important;
}

.js-store-product .t-product__option-item_active .t-product__option-title_radio,
.t-store__product-snippet .t-product__option-item_active .t-product__option-title_radio {
    color: #222 !important;
    font-weight: 600 !important;
}

/* -----------------------------------------
   КНОПКА И КОЛИЧЕСТВО
----------------------------------------- */
.js-store-product .t-store__prod-popup__btn-wrapper,
.t-store__product-snippet .t-store__prod-popup__btn-wrapper {
    margin-top: 8px !important;
    margin-bottom: 22px !important;
}

.js-store-product .t-store__prod-popup__btn,
.t-store__product-snippet .t-store__prod-popup__btn {
    min-height: 54px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease !important;
}

.js-store-product .t-store__prod-popup__btn:hover,
.t-store__product-snippet .t-store__prod-popup__btn:hover {
    transform: translateY(-1px);
}

/* -----------------------------------------
   ТЕКСТ / ОПИСАНИЕ TILDA
----------------------------------------- */
.js-store-product .js-store-prod-text,
.t-store__product-snippet .js-store-prod-text {
    margin-top: 12px !important;
    font-size: 14px !important;
    line-height: 1.68 !important;
    color: #4f4f4f !important;
    font-weight: 500 !important;
}

.js-store-product .js-store-prod-text strong,
.js-store-product .js-store-prod-text b,
.t-store__product-snippet .js-store-prod-text strong,
.t-store__product-snippet .js-store-prod-text b {
    color: #111 !important;
    font-weight: 600 !important;
}

.js-store-product .js-store-prod-text a,
.t-store__product-snippet .js-store-prod-text a {
    text-decoration: none !important;
    transition: opacity .18s ease;
}

.js-store-product .js-store-prod-text a:hover,
.t-store__product-snippet .js-store-prod-text a:hover {
    opacity: 0.8;
}

/* -----------------------------------------
   ГАЛЕРЕЯ TILDA
----------------------------------------- */
.js-store-product .t-slds__main,
.t-store__product-snippet .t-slds__main {
    border-radius: 20px;
    overflow: hidden;
    background: #f6f6f6;
}

.js-store-product .t-slds__imgwrapper,
.js-store-product .t-slds__bgimg,
.t-store__product-snippet .t-slds__imgwrapper,
.t-store__product-snippet .t-slds__bgimg,
.js-store-product .t-slds__thumbsbullet,
.t-store__product-snippet .t-slds__thumbsbullet,
.js-store-product .t-slds__thumbsbullet-border,
.t-store__product-snippet .t-slds__thumbsbullet-border {
    border-radius: 20px !important;
}

.js-store-product .t-slds__thumbsbullet-wrapper,
.t-store__product-snippet .t-slds__thumbsbullet-wrapper {
    margin-top: 14px !important;
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap;
}

.js-store-product .t-slds__thumbsbullet,
.t-store__product-snippet .t-slds__thumbsbullet {
    overflow: hidden;
}

.js-store-product .t-slds__thumbsbullet-border,
.t-store__product-snippet .t-slds__thumbsbullet-border {
    border-width: 2px !important;
    border-color: transparent !important;
    transition: border-color .18s ease;
}

.js-store-product .t-slds__bullet_active .t-slds__thumbsbullet-border,
.t-store__product-snippet .t-slds__bullet_active .t-slds__thumbsbullet-border {
    border-color: #111 !important;
}

/* -----------------------------------------
   DESKTOP LAYOUT LIKE ST200
----------------------------------------- */
@media screen and (min-width: 981px) {

    .js-store-product .t-container>div,
    .t-store__product-snippet .t-container>div {
        display: flex !important;
        align-items: flex-start !important;
        gap: 32px !important;
    }

    .js-store-product .t-store__prod-popup__col-left,
    .t-store__product-snippet .t-store__prod-popup__col-left {
        width: calc(100% - 552px) !important;
        max-width: calc(100% - 552px) !important;
        flex: 0 0 calc(100% - 552px) !important;
        padding-right: 0 !important;
        float: none !important;
    }

    .js-store-product .t-store__prod-popup__col-right,
    .t-store__product-snippet .t-store__prod-popup__col-right {
        width: 520px !important;
        max-width: 520px !important;
        flex: 0 0 520px !important;
        float: none !important;
        display: block !important;
    }

    .js-store-product .t-store__prod-popup__info,
    .t-store__product-snippet .t-store__prod-popup__info {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }
}

/* -----------------------------------------
   TABLET
----------------------------------------- */
@media screen and (max-width: 1200px) {

    .js-store-product .t-store__prod-popup__name,
    .t-store__product-snippet .t-store__prod-popup__name {
        font-size: 24px !important;
    }

    .js-store-product .t-store__prod-popup__price-value,
    .t-store__product-snippet .t-store__prod-popup__price-value {
        font-size: 34px !important;
    }
}

/* -----------------------------------------
   MOBILE PRODUCT POPUP
----------------------------------------- */
@media screen and (max-width: 980px) {

    .js-store-product .t-store__prod-popup__col-left,
    .t-store__product-snippet .t-store__prod-popup__col-left {
        padding-right: 0 !important;
        margin-bottom: 16px !important;
    }

    .js-store-product .t-store__prod-popup__col-right,
    .t-store__product-snippet .t-store__prod-popup__col-right {
        display: block;
    }

    .js-store-product .t-store__prod-popup__info,
    .t-store__product-snippet .t-store__prod-popup__info {
        margin-top: 0 !important;
        padding: 20px 18px !important;
        border-radius: 0 !important;
        max-width: 100% !important;
        border-left: 0 !important;
        border-right: 0 !important;
    }

    .js-store-product .t-store__prod-popup__name,
    .t-store__product-snippet .t-store__prod-popup__name {
        font-size: 20px !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }

    .js-store-product .t-store__prod-popup__price-value,
    .t-store__product-snippet .t-store__prod-popup__price-value {
        font-size: 31px !important;
        line-height: 0.95 !important;
    }

    .js-store-product .t-store__prod-popup__price-currency,
    .t-store__product-snippet .t-store__prod-popup__price-currency {
        font-size: 17px !important;
    }

    .js-store-product .t-store__prod__price-portion,
    .t-store__product-snippet .t-store__prod__price-portion {
        font-size: 13px !important;
        color: #8a8a8a !important;
    }

    .js-store-product .t-store__prod-popup__btn,
    .t-store__product-snippet .t-store__prod-popup__btn {
        min-height: 52px !important;
        font-size: 15px !important;
        border-radius: 14px !important;
    }

    .js-store-product .js-store-prod-text,
    .t-store__product-snippet .js-store-prod-text {
        font-size: 14px !important;
        line-height: 1.65 !important;
    }

    .js-store-product .t-slds__thumbsbullet-wrapper,
    .t-store__product-snippet .t-slds__thumbsbullet-wrapper {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .js-store-product .t-slds__thumbsbullet-wrapper::-webkit-scrollbar,
    .t-store__product-snippet .t-slds__thumbsbullet-wrapper::-webkit-scrollbar {
        display: none;
    }

    .js-store-product .t-store__prod-popup__slider,
    .js-store-product .t-slds,
    .js-store-product .t-slds__main,
    .js-store-product .t-slds__container,
    .js-store-product .t-slds__item,
    .js-store-product .t-slds__wrapper,
    .js-store-product .t-slds__imgwrapper,
    .js-store-product .t-slds__bgimg,
    .js-store-product .js-product-img,
    .t-store__product-snippet .t-store__prod-popup__slider,
    .t-store__product-snippet .t-slds,
    .t-store__product-snippet .t-slds__main,
    .t-store__product-snippet .t-slds__container,
    .t-store__product-snippet .t-slds__item,
    .t-store__product-snippet .t-slds__wrapper,
    .t-store__product-snippet .t-slds__imgwrapper,
    .t-store__product-snippet .t-slds__bgimg,
    .t-store__product-snippet .js-product-img {
        border-radius: 0 !important;
    }

    .js-store-product .t-slds__main,
    .t-store__product-snippet .t-slds__main {
        overflow: hidden !important;
    }
}

/* =========================================
   FGX TABS
========================================= */
.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 CARDS — DESKTOP / TABLET
   Desktop: compact 4-column grid
========================================= */
.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;
    -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));
    }
}

/* =========================================
   FGX KIT CARDS — MOBILE LIST
========================================= */
@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;
    }

    .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: 0 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .fgx-kit-card__btn::after {
        content: "Открыть";
        font-size: 12px;
        line-height: 1;
        font-weight: 700;
    }
}

@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 {
        font-size: 11px;
    }
}

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

.fgx-desc__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
}

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

.fgx-desc__list li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #4f4f4f;
}

.fgx-desc p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.65;
    color: #4f4f4f;
}

/* =========================================
   FGX DESCRIPTION — FINAL READABILITY
========================================= */

/* DESKTOP */
.fgx-desc p {
    font-size: 16px;
    line-height: 1.75;
}

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

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

.fgx-desc {
    color: #3a3a3a;
}

/* MOBILE */
@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 DESCRIPTION — FINAL TUNING (как у коллег, но лучше)
========================================= */

/* Основной текст */
.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;
}

/* Mobile */
@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 ===== */
.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);
    }
}

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


/* ===== LIGHTBOX v5 — zoom / swipe / polished arrows ===== */
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;
    }
}

/* Safari/iOS: точечная защита только внутри нашего блока, не трогаем всю карточку */
.fgx-tabs-host,
.fgx-tabs,
.fgx-tabs__panels,
.fgx-tabs__panel,
.fgx-gallery,
.fgx-gallery__grid {
    max-width: 100%;
    min-width: 0;
}


/* =========================================
   FGX EMBEDS — 3D / VIDEO
========================================= */
.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;
    }
}

/* FIX DESKTOP: fgx-tabs-host не должен становиться flex-строкой */
.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;
}

/* Внутри хоста табы и related идут вертикально */
.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;
}

/* FIX: если табов нет — убираем пустое место сверху */
.fgx-tabs-host > .fgx-related-block:first-child {
  margin-top: 0 !important;
}

/* 3д модели одного размерау */

.sketchfab-embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* чуть выше, чем 16:9 — лучше для твоих моделей */
  height: 0;
  overflow: hidden;
  background: #f5f5f5;
}

.sketchfab-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sketchfab-embed-wrapper {
  margin-bottom: 32px;
}

.sketchfab-embed-wrapper:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 640px) {
  .sketchfab-embed-wrapper {
    margin-bottom: 40px;
  }
}

/* ===== РОВНЫЕ ОТСТУПЫ МЕЖДУ 3D МОДЕЛЯМИ ===== */

.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;
  }

}

/* ===== PREMIUM PHOTO RADIUS ===== */

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

/* ==========================================
   Кнопки PDF
========================================== */

/* ==========================================
   FGX PDF / INSTRUCTION BUTTONS
========================================== */

.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 TYPOGRAPHY FIX
========================================== */

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

/* =========================================
   FGX VERTICAL VIDEOS (KINESCOPE)
   Мобильные шортсы / вертикальные обзоры
========================================= */

/* Сетка вертикальных видео */
.fgx-video-grid--vertical {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* Карточка */
.fgx-video-card--vertical {
    min-width: 0;
}

/* Контейнер видео 9:16 */
.fgx-embed--vertical {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

/* Сам iframe */
.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
   Обложка для вертикальных Kinescope-видео
========================================= */

.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;
}

