.param_b {
    flex-wrap: wrap;
    display: flex
;
}
.param_line_mobile {
    display: none !important;
}
main .param_b .ar {
    width: 100%;
    float: left;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    margin: .25rem 0;
    margin-bottom: 13px;
}
main .param_b .name {
    color: #515151;
}
main .param_b .space {
    flex-grow: 1;
    border-bottom: 1px dashed #d7d7d7;
    height: .9rem;
}
main .param_b .val {
    font-size: 17px;
}

.f-carousel__slide{
    flex: 0 0 auto;
    width: clamp(260px, 78%, 820px) !important;
    margin: 0 10px;
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
    display: block;
}
.f-carousel__slide img{ display:block; width:100%; height:auto; }

img.lazy{ filter:blur(12px); transform:scale(1.03); transition:filter .3s ease, transform .3s ease, opacity .3s ease; opacity:.85; }
img.lazy.is-loaded{ filter:none; transform:none; opacity:1; }


.more-slide{
    display:grid; place-items:center; min-height:220px; padding:16px;
    border:1px dashed #d0d4d9; border-radius:12px; text-align:center;
}
.more-slide strong{ font-weight:600; }
.more-slide small{ display:block; opacity:.8; margin-top:6px; }


.mini-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:12px;
    padding:12px;
    max-width:780px;
    margin:0 auto;
}
.mini-item{
    display:block;
    border:1px solid #eee;
    border-radius:10px;
    padding:10px;
    background:#fff;
    text-decoration:none;
    color:#222;
}
.mini-item img{ width:100%; height:auto; display:block; border-radius:8px; }
.mini-item span{ display:block; margin-top:8px; font-size:14px; line-height:1.3; }


.fbx-info{
    position:absolute; left:0; right:0; bottom:0;
    background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.65) 100%);
    color:#fff; padding:12px 14px 14px; z-index:20; pointer-events:none;
}

@media (max-width:640px){
    .f-carousel__slide{ width:88% !important; margin:0 2px; border-radius:10px; }
    .more-slide{ min-height:180px; }
    .mini-grid{ gap:10px; padding:10px; }
}
@media (min-width:1200px){
    .f-carousel__slide{
        width: 90% !important;
        margin: 0 3px;
    }
}

.pgfb-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
}


.pgfb-overlay .fbx-info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.65) 100%);
    color: #fff; padding: 12px 14px 14px;
}


.pgfb-fav {
    pointer-events: auto;
    background: rgba(255,255,255,.18);
    border: 0; border-radius: 10px;
    padding: 6px 10px;
    color: #fff; font-weight: 600;
    cursor: pointer;
}


.pgfb-counter {
    position: absolute;
    top: 10px; left: 12px;
    color: #fff;
    background: rgba(0,0,0,.35);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
    pointer-events: auto;
}


.fancybox__container.is-thumbs .pgfb-overlay .fbx-info {
    bottom: 74px;
}


@media (max-width: 640px){
    .pgfb-counter { top: 8px; left: 10px; font-size: 12px; }
}


.fancybox__container .fbx-info__count{
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.35);
    color: #fff;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
}


.fancybox__container .fbx-info{
    position: absolute; inset: auto 0 0 0; z-index: 20; pointer-events: none;
}
.fancybox__container .fbx-info .call-block,
.fancybox__container .fbx-info .call-block * {
    pointer-events: auto;
}

.fancybox__container .fbx-info .fbx-info__row{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2px;
    padding: 12px 14px 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .45) 50%, rgba(0, 0, 0, .65) 100%);
    color: #fff;
    flex-direction: column;
    flex-wrap: nowrap;

}

.fancybox__container .fbx-info__title{
    font-size: 15px;
    font-weight: 400;
    line-height: 1.25;
    opacity: .6;
}
.fancybox__container .fbx-info__price{ font-size:27px; font-weight:600; white-space:nowrap; }



@media (max-width:640px){
    .fancybox__container .fbx-info__count{ top: 10px; font-size:12px; }

    .pht_bx {
        display: none;
    }
}
.is-compact .fancybox__footer .fancybox__caption {
    display: none;
}


.fancybox__container.is-thumbs .fbx-info {
    margin-bottom: 62px; /* высота ленты превью */
}
.fancybox__slide,
.fancybox__content {
    touch-action: pan-x pan-y pinch-zoom !important;
}

.fancybox__container,
.fancybox__backdrop,
.fancybox__carousel,
.fancybox__viewport,
.fancybox__track,
.fancybox__slide,
.fancybox__content,
.fancybox__image {
    touch-action: pan-x pan-y pinch-zoom !important;
}
/*
html.with-fancybox body {
    touch-action: pan-x pan-y pinch-zoom !important;
}*/
/*
.fancybox__container.is-native-pinch * {
    pointer-events: none !important;
}
*/
@supports (-webkit-touch-callout: none) {
    .fancybox__container,
    .fancybox__viewport {
        -webkit-user-select: auto !important;
        touch-action: pan-x pan-y pinch-zoom !important;
    }
}
.f-carousel__nav, .fancybox__nav {
    display: none;
}

.fancybox__container .fav-btn{
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 25;
    pointer-events: auto;

    /* внешний вид */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 0;
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

/* активное избранное */
.fancybox__container .fav-btn.is-active{
    background: #ff3b30;
    color: #fff;
}

/* ховер/нажатие */
.fancybox__container .fav-btn:active{
    transform: scale(0.96);
}

/* чтобы нижняя плашка не перекрывала кнопку по кликам */
.fancybox__container .fbx-info{ pointer-events: none; }
.fancybox__container .fav-btn{ pointer-events: auto; }

.wrapf-carousel {
    position: relative;
}

/* Контейнер карусели до инициализации */
#heroCarousel {
    /* резервируем высоту, чтобы страница не дёргалась */
    aspect-ratio: 15 / 9;             /* если поддерживается */

    opacity: 0;                        /* скрыто до готовности */
    transition: opacity .25s ease;     /* плавное появление */
    overflow: hidden;                  /* на всякий случай */
}

/* Если aspect-ratio не подходит, можно вместо него:
   min-height: 54vw;  // ≈16:9 от ширины экрана
*/

/* Стадия «booting»: до инициализации карусели */
#heroCarousel.is-booting .f-carousel__slide {
    display: none;                     /* прячем все слайды */
}

/* Но первый слайд показываем как плейсхолдер */
#heroCarousel.is-booting .f-carousel__slide:first-child {
    display: block;
}

/* Чтобы первый слайд красиво вписался */
#heroCarousel.is-booting .f-carousel__slide:first-child img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;                  /* заполняем контейнер */
}

/* Стадия «готово»: карусель построена */
#heroCarousel.is-ready {
    opacity: 1;                         /* показываем */
    aspect-ratio: auto;
}


/* если открыты миниатюры — кнопка остаётся на месте; можно сместить при желании */
@media (min-width:640px) { /* desktop */
    .wrapf-carousel {
        display: none;
    }
    .prc.pricemobile {
        display: none;
    }
    .btn_params.mobile {
        display: none;
    }
}
@media (max-width:640px){
    .block_txt_params .lng {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 15px;
        font-size: 22px;
    }
    .ttl.desktop {
        display: none;
    }

    .param_line_desktop {
        display: none !important;
    }
    .param_line_mobile {
        display: flex !important;
        flex: 0 0 calc(50% - 12px);
        justify-content: flex-start !important;
        gap: 10px;
        align-items: flex-start !important;
    }
    .icon_param_line svg {
        width: 24px;
        height: auto;
    }
    .right_param_l {
        display: flex;
        flex-direction: column;
    }
    main .param_b .name {
        font-size: 14px;
    }
    .fancybox__container .fav-btn{ top: 10px; right: 10px; width: 34px; height: 34px; font-size: 18px; }

    main > .spc_bx, main > .inf_bx {
        margin-top: 10px;
        padding-top: 5px;
    }
    main > .spc_bx > .status {
        display: none;
    }
    .prc.desktop {
        display: none;
    }
    main > .spc_bx > .prc > .val {
        margin-left: 0px;
    }
    main > .spc_bx > .prc {
        margin-top: 10px;
        margin-bottom: 0px;
    }
    main > .spc_bx > .doit {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    main > .spc_bx > .name {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}



.fancybox__container .f-thumbs.is-hidden{
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.fancybox__container.is-thumbs .f-thumbs {
    display:block !important;
    opacity:1 !important;
    pointer-events:auto !important;
    max-height: 60px !important;
}

.is-compact .fancybox__thumbs {
    display: none;
}


.more-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:12px;
    max-width:780px;
    margin:0 auto;
    padding:12px;
    /* чтобы в модалке не вылезало за экран */
    max-height:calc(100vh - 120px);
    overflow:auto;
}

.more-grid .car {
    display:block;
    border:1px solid #eee;
    border-radius:10px;
    padding:10px;
    background:#fff;
    color:#222;
    text-decoration:none;
}
.more-grid .car img{ width:100%; height:auto; display:block; border-radius:8px; }
.more-grid .car span{ display:block; margin-top:8px; font-size:14px; line-height:1.3; }
.more-grid .specs { display: none}
.more-grid .prc { margin-top: 5px !important;}
.more-grid .name { margin-top: 5px !important;}

/* превью-плитка в самом каруселе */
.more-slide{
    display:grid; place-items:center; min-height:220px; padding:16px;
    border:1px dashed #d0d4d9; border-radius:12px; text-align:center;
}
.fancybox__container {
    z-index: 10500;
}

/* Контейнер для кнопки */
.call-block {
    position: absolute;       /* располагаем внутри галереи */
    bottom: 55px;             /* отступ снизу */
    right: 20px;              /* отступ справа */
    z-index: 100;             /* поверх галереи */
}

/* Ссылка-кнопка */
.call-link {
    display: flex;            /* центрируем иконку */
    align-items: center;
    justify-content: center;
    width: 60px;              /* размер кнопки */
    height: 60px;
    background-color: #4CAF50;/* зелёный фон */
    border-radius: 50%;       /* круглая форма */
    text-decoration: none;    /* убираем подчёркивание */
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    transition: transform 0.2s ease-in-out, background 0.2s;
}

/* SVG трубка внутри */
.call-link svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* Эффект при наведении */
.call-link:hover {
    background-color: #43A047; /* чуть темнее зелёный */
}

/* Эффект при клике */
.call-link:active {
    transform: scale(0.9);
}



.block_txt_params {
    color: #222;
}

/* Заголовки */
.block_txt_params h2 {
    font-size: 18px;
    margin: 20px 0 12px;
    font-weight: bold;
    border-bottom: 1px solid #ff0000;
    padding-bottom: 6px;
}

/* Общий стиль списка */
.block_txt_params ul {
    list-style: none; /* убираем стандартные маркеры */
    margin: 0;
    padding: 0;
}

/* Элемент списка */
.block_txt_params ul li {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    font-size: 15px;
}

/* Иконка слева */
.block_txt_params ul li::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 22px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* сюда можно подставлять разные иконки по классу родителя */
}

/* Значение параметра */
.block_txt_params ul li {
    font-weight: 600; /* верхняя строка – выделено жирным */
    line-height: 1.2;
}

/* Подпись (вторая строка) */
.block_txt_params ul li span {
    display: block;
    font-size: 13px;
    color: #666;
    font-weight: normal;
}
.block_txt_params p {
    font-size: 15px;
}
/*
.block_txt_params ul li:nth-child(1)::before {
    background-image: url('icons/calendar.svg');
}
.block_txt_params ul li:nth-child(2)::before {
    background-image: url('icons/speed.svg');
}

*/
.block_txt_params_pop {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: #fff;
    z-index: 999999999;
    overflow-y: auto;

    /* скрываем без display */
    opacity: 0;                  /* прозрачно */
    visibility: hidden;          /* убираем с навигации */
    pointer-events: none;        /* не кликается */
    transform: translateY(20px); /* лёгкий выезд вверх */

    /* включаем анимацию */
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
    /* visibility меняем без анимации, но с задержкой = длительности fade,
       чтобы оно стало hidden только после завершения исчезновения */
}
.block_txt_params_pop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s; /* без задержки на показ */

}
.block_pop_close {

}
.btn_params {
    width: 48%;
    line-height: 3rem;
    text-align: center;
    border-radius: .5rem;
    cursor: pointer;

    line-height: calc(3rem - 2px);
    background-color: #fff;
    color: #515151;
    border: 1px solid #515151;
    float: right;
}
.blk_pop_logo {
    max-width: 30%;
}
.param_pop_header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}