.pf-wrap {
    display: flex;
    gap: 32px;
    margin: 0 auto;

}

.product-card {
    display: flex;
}
.portfolio-parent-slider .swiper-wrapper {
    align-items: stretch;
}

.portfolio-parent-slider > .swiper-wrapper > .swiper-slide {
    width: auto; /* Swiper сам посчитает */
    height: auto;
    box-sizing: border-box;
}

/* Предотвращает схлопывание до загрузки */
.portfolio-child-slider {
    width: 100%;
    min-height: 200px; /* заглушка пока не загрузилось */
}

.portfolio-child-slider .swiper-slide img,
.portfolio-child-slider .swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.child-slider {
    width: 50%;
    position: relative;
}
.portfolio-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
}

.all-works {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: .625rem;
    color: #000;
    font-weight: 200;
    padding-left: 1.375rem;
    padding-right: 1.375rem;
    background-color: #FEB161;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
    position: relative;
    cursor: pointer;
    border-radius: 50px;
    height: 50px;
}
.all-works:hover {
    background-color: #2C3B4E;
    color:white

}
.specs {
    width: 50%;
    background: #efefef;
    border-radius: 20px;
    padding: 30px;
}

.table_title {
    font-weight: 200;
    font-size: 25px;
    line-height: 1.3;
}

.pf-address {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f9fafb;
    border-radius: 10px;
    margin: 10px 0;
}

.pf-meta-grid {
    /* display: grid; */
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 10px 0;
}

.child-slider .swiper-slide img {
    width: 100%;
    border-radius: 20px;
    height: 100%;
    object-fit: cover;
    height: 556px;
    max-width: 100%;
}

.child-slider .swiper-slide.media-landscape img {
    object-fit: cover;
}

.child-slider .swiper-slide {
    background: #FFF;
    border-radius: 20px;
    overflow: hidden;
}

.pf-slider {
    border-radius: 12px;
    overflow: hidden;
}

.pf-slider img {
    width: 100%;
    height: 335px;
    object-fit: cover;
}

.pf-description {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;

}

/* Переопределяй переменные Swiper и фиксируй размер картинки */
.child-prev,
.child-next {
    z-index: 9999;

    /* Переопределяем Swiper-переменные */
    --swiper-navigation-size: 44px;

    width: 54px !important;
    height: 54px !important;
    padding: 0 !important;
}

.portfolio-child-slider .child-prev,
.portfolio-child-slider .child-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    /* Убираем стандартные стили swiper-button */
    width: 40px;
    height: 40px;
    margin-top: 0;
    /* Swiper по умолчанию ставит margin-top: -22px — сбрасываем */
}

/* Если есть пагинация снизу — поднимаем кнопки только до wrapper */
.portfolio-child-slider .swiper-wrapper {
    /* Высота враппера должна быть явной, тогда top: 50% считается правильно */
}

.portfolio-child-slider .child-prev {
    left: 10px;
    right: auto;
}

.portfolio-child-slider .child-next {
    right: 10px;
    left: auto;
}

/* Иконки внутри */
.portfolio-child-slider .child-prev img,
.portfolio-child-slider .child-next img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Убираем стандартную стрелку Swiper (::after псевдоэлемент) */
.portfolio-child-slider .child-prev::after,
.portfolio-child-slider .child-next::after {
    display: none;
}

.child-prev img,
.child-next img {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    /* ← клик идёт на div, не на img */
}

.child-prev img,
.child-next img {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.child-prev,
.child-next {
    z-index: 9999;
    --swiper-navigation-size: 44px;
    width: 54px !important;
    height: 54px !important;
    padding: 0 !important;
}

.child-slider .swiper-slide.media-landscape img {
    object-fit: cover;
}

.pf-region {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    font-size: 14px;
    color: #555;
}

.pf-map-link {
    color: #2563eb;
    text-decoration: underline;
}

.pf-slide-video {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: #000;
}

.pf-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 10px 0;
}

.pf-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
}

.pf-meta-label {
    font-size: 12px;
    color: #888;
}

.pf-meta-value {
    font-size: 12px;
    font-weight: 600;
    color: #111;
}

.pf-description h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.pf-desc-text {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
}
.swiper-button-next.swiper-button-next-case {
    display: none
}
/* Сайдбар */
.pf-price-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.pf-price-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

.pf-price {
    font-size: 28px;
    font-weight: 700;
    color: #111;
}

.pf-company {
    display: flex;
    align-items: center;
    gap: 12px;

    border-radius: 12px;
    margin: 26px 0;
}

.pf-company-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.pf-company-name {
    font-weight: 600;
    font-size: 15px;
}

.pf-company-since {
    font-size: 12px;
    color: #888;
}

.pf-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-btn {
    display: flex;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    align-items: center;
    gap: 10px;
    justify-content: center
}

.pf-btn--primary {
    background: #2563eb;
    color: #fff;
}

.pf-btn--secondary {
    background: #f3f4f6;
    color: #111;
}

.pf-btn--outline {
    border: 1px solid #d1d5db;
    color: #111;
    background: #fff;
}

.pf-address {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f9fafb;
    border-radius: 10px;
    margin: 10px 0;
}

.pf-address-icon svg {
    width: 22px;
    height: 22px;
    color: #2563eb;
    flex-shrink: 0;
}

.pf-address-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pf-address-text {
    font-size: 15px;
    font-weight: 500;
    color: #111;
}

.pf-address-icon img {
    width: 43px;
    height: auto;
}

.pf-map-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

.pf-map-link:hover {
    text-decoration: underline;
}

.pf-slider {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    /* критически важно для Swiper */
    box-sizing: border-box;
}

.pf-slider .swiper-wrapper {
    width: 100%;
}

.pf-slider .swiper-slide {
    box-sizing: border-box;
    /* Убедись что нет width: auto или других переопределений */
}

.pf-slider .swiper-slide img,
.pf-slider .swiper-slide video {
    width: 100%;
    display: block;
    /* убирает отступ снизу у img */
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.pf-wrap,
.pf-left {
    width: 100%;
}

.pf-left {
    width: 75%
}

.pf-sidebar {
    width: 25%
}

.pf-btn--dark {
    background: #283442;
    border-radius: 50px;
    color: white;
    height: 55px
}

.pf-btn-row {
    display: flex;
    gap: 10px
}

.pf-btn--light {
    background: #E7EEF3;
    border-radius: 60px;
    width: 49%
}

.pf-btn--credit {
    border: 1px solid #DDD;
    border-radius: 50px
}

.pf-slide-video {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    background: #000;
    width: 100%;
    height: 556px;
}

.pf-meta-icon svg {
    width: 50px;
    height: 50px
}

@media (max-width:1101px) {
    .pf-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .child-slider .swiper-slide img {
        height: 421px;
    }

    .pf-meta-item {
        gap: 8px;
        padding: 6px;
    }


    .table_title {
        font-size: 23px;
    }

    .pf-desc-text {
        font-size: 17px;
    }

    .product-card {
        flex-direction: column;
    }

    .child-slider {
        width: 100%;
    }

    .specs {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .pf-wrap {
        grid-template-columns: 1fr;
    }

    .pf-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pf-meta-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .pf-meta-value {
    font-size: 15px;

}
}

.portfolio-parent-slider {
    overflow: hidden;
}

.portfolio-parent-slider > .swiper-wrapper > .swiper-slide {
    width: 100%;
}

.portfolio-parent-slider:not(.swiper-initialized) > .swiper-wrapper {
    display: block;
}

.portfolio-parent-slider:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide:not(:first-child) {
    display: none;
}

.portfolio-parent-next,
.portfolio-parent-prev {
    display: flex;
}
