/* Первый экран */
.product-first .arrow-link.back {
    margin-bottom: 16px;
}

.product-first .wrapper {
    position: relative;
}

.product-first .section-title span {
    color: var(--dark-grey);
}

.product-boubles-1 {
    margin-top: 40px;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.product-first .grey-bouble-without {
    gap: 4px;
    width: fit-content;
    height: auto;
}

.product-boubles-1 .section-controls {
    display: flex;
    align-items: center;
}

.product-first .grey-bouble-without .main-text span {
    color: var(--light-grey);
}

.product-first .purple-btn {
    margin-bottom: 304px;
    width: fit-content;
}

.bg-product-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.bg-product-1 img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.product-first .arrow-link.bottom {
    margin: 0 auto;
}

.product-boubles-1 .grey-bouble-without {
    animation: slideIn 0.3s ease forwards;
}

.product-first .underlined-btn {
    cursor: pointer;
    transition: all 0.3s;
}

.product-first .underlined-btn:hover {
    color: #fff !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-first-subtitle {

    align-items: center;
    gap: 8px;
}

.product-boubles-1-container {
    margin-top: 176px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.product-boubles-1-container::-webkit-scrollbar {
    display: none;
}

@media(max-width: 768px) {
    .product-first .wrapper {
        padding: 0;
    }

    .product-first .wrapper>*:not(.purple-btn) {
        padding: 0 16px;
    }

    .product-boubles-1 {
        margin-top: 12px;
        gap: 8px;
    }

    .product-boubles-1 {
        width: max-content;
        flex-wrap: nowrap;
        padding: 0 16px 0 0;
    }

    .product-boubles-1 .grey-bouble-without {
        min-width: 215px;
        height: auto;
        flex-shrink: 0;
    }

    .product-boubles-1-container .grey-bouble-without .main-text {
        flex: 1;
        font-size: 18px;
        line-height: 22px;
    }

    .product-first .purple-btn {
        margin: 0 16px;
    }

    .bg-product-1 {
        max-height: 310px;
    }

    .product-first .section-title {
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
}


/* Второй экран */

.product-second .wrapper {
    gap: 50px;
    align-items: start;
}

.product-second-left {
    gap: 24px;
    width: 45%;
}

.product-second-right {
    width: 49%;
    gap: 60px;
    margin-top: 99px;
}

.product-second-right>p {
    max-width: 533px;
    width: 100%;
}

.product-second-right>p>a {
    text-decoration: underline;
}

.product-boubles-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: max-content;
    gap: 24px;
}

.product-boubles-2 .grey-bouble {
    gap: 8px;
    min-width: 0;
    width: 100%;
    height: 100%;
}

.bg-product-2 {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45%;
    z-index: -1;
    pointer-events: none;
    height: 100%;
}

.bg-product-2 img {
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: contain;
    width: 100%;
    height: auto;
}

@media(max-width: 1240px) {
    .product-second .wrapper {
        gap: 30px;
        align-items: start;
    }

    .product-second-left {
        gap: 24px;
        width: 40%;
    }

    .product-second-right {
        width: 55%;
        margin-top: 89px;
    }
}

@media(max-width: 1000px) {
    .product-second .wrapper {
        flex-direction: column;
    }

    .product-second-left {
        width: 100%;
    }

    .product-second-right {
        width: 100%;
        margin-top: 0;
        gap: 0;
    }

    .product-boubles-2 {
        grid-template-columns: repeat(1, 1fr);
        transform: translateY(-40px);
    }

    .product-second-right>p {
        max-width: unset;
    }

    .bg-product-2.mobile {
        display: flex !important;
        position: relative;
        width: 100%;
        bottom: unset;
        left: unset;
        object-fit: cover;
        height: 264px;
    }

    .bg-product-2.mobile img {
        object-fit: contain;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        height: 100%;
    }

    .bg-product-2.tablet {
        display: none !important;
    }
}

@media(max-width: 768px) {
    .product-second .wrapper {
        gap: 24px;
    }

    .product-second-left {
        gap: 16px;
    }

    .product-boubles-2 {
        gap: 12px;
    }
}

/* Третий экран */

.product-third .wrapper {
    gap: 40px;
}

.product-third .section-title {
    max-width: 527px;
}

.product-boubles-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.product-boubles-3.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.product-boubles-3 .grey-bouble {
    height: auto;
}

.product-boubles-3 .grey-bouble>.flex-box-column:last-child {
    flex: 1;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0;
}


.product-boubles-3 .product-third-svg-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.product-boubles-3 .product-third-svg-container img {
    width: auto;
    height: 100%;
}

.product-boubles-3 .card-name-text {
    margin-bottom: 16px;
    max-width: 290px;
    min-height: 72px;
}

@media(max-width: 1240px) {
    .product-boubles-3 .card-name-text {
        min-height: 66px;
    }

}

@media(max-width: 1000px) {
    .product-boubles-3 {
        gap: 12px;
    }

    .product-boubles-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-boubles-3 .card-name-text {
        min-height: unset;
    }

}

@media(max-width: 768px) {
    .product-boubles-3 {
        grid-template-columns: repeat(1, 1fr);
    }

    .product-boubles-3.grid-2 {
        grid-template-columns: repeat(1, 1fr);
    }

    .product-boubles-3 .grey-bouble {
        flex-direction: row;
        gap: 15px;
    }

    .product-boubles-3 .product-third-svg-container {
        min-height: unset;
        flex-shrink: 0;
        width: 46px;
        height: auto;
        justify-content: center;
        margin-bottom: none;
    }

    .product-boubles-3 .product-third-svg-container img {
        width: 100%;
        height: auto;
    }

    .product-third .wrapper {
        gap: 28px;
    }

    .product-boubles-3 .card-name-text {
        margin-bottom: 12px;
    }
}




.product-sixth .wrapper {
    gap: 40px;
}

.product-sixth .second-boubles-grid .grey-bouble {
    display: flex !important;
    max-width: 600px;
}

.product-sixth .big-grey-bouble {
    flex-direction: column;
}

.product-sixth .big-grey-bouble-photo,
.product-sixth .big-grey-bouble-photo.big-img {
    position: absolute;
    bottom: 86px;
    top: unset;
    height: fit-content;
    width: fit-content;
    left: 50%;
    transform: translateX(-50%);
}

.product-sixth .big-grey-bouble-photo img,
.product-sixth .big-grey-bouble-photo.big-img img {
    height: 148px;
    width: auto;
}

.product-sixth .big-grey-bouble-column {
    width: 100%;
    height: 100%;
    justify-content: space-between;
    gap: 148px;
}

@media(max-width: 1100px) {
    .product-sixth .second-boubles-grid .grey-bouble {
        padding: 20px;

    }

    .product-sixth .big-grey-bouble-photo,
    .product-sixth .big-grey-bouble-photo.big-img {
        bottom: 68px;
    }

    .product-sixth .second-boubles-grid .btns-row {
        gap: 8px !important;
    }

    .product-sixth .second-boubles-grid .btns-row .desktop {
        display: none !important;
    }

    .product-sixth .second-boubles-grid .btns-row .tablet {
        display: flex !important;
        padding: 12px 24px !important;
        font-size: 18px !important;
        line-height: 24px !important;
    }

    .product-sixth .second-boubles-grid .btns-row .transparent-btn {
        padding: 12px 16px !important;
    }

    .product-sixth .second-boubles-grid .grey-bouble {
        max-width: 500px;
    }
}

@media(max-width: 768px) {
    .product-sixth .second-boubles-grid .grey-bouble {
        padding: 16px;
    }

    .product-sixth .second-boubles-grid .btns-row .tablet {
        display: none !important;
    }

    .product-sixth .big-grey-bouble {
        grid-column: unset;
        flex-direction: column;
    }

    .product-sixth .half-grey-bouble {
        grid-column: unset;
    }

    .product-sixth .big-grey-bouble-photo img,
    .product-sixth .big-grey-bouble-photo.big-img img {
        height: auto;
        width: 100%;
    }


    .product-sixth .big-grey-bouble-photo {
        position: absolute;
        bottom: unset;
        left: 0;
        right: 0;
        top: 0;
        height: auto;
        aspect-ratio: 16/9;
        width: 100%;
        transform: unset;
    }

    .product-sixth .big-grey-bouble-photo.big-img {
        position: relative;
        aspect-ratio: unset;
    }

    .product-sixth .big-grey-bouble-photo.big-img {
        width: 70%;
        left: 50%;
        top: -36px;
        right: unset;
        transform: translateX(-50%);
    }

    .product-sixth .half-grey-bouble-photo {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: unset;
    }

    .product-sixth .big-grey-bouble-column {
        width: 100%;
        gap: 16px;
        height: fit-content;
        justify-content: unset;
        margin-top: calc(100% * 9/16);
    }

    .product-sixth .big-grey-bouble:has(.big-grey-bouble-photo.big-img) .big-grey-bouble-column {
        margin-top: unset;
    }

    .product-sixth .half-grey-bouble-column {
        margin-top: 38%;
        gap: 16px;
    }

    .product-sixth .grey-bouble-column-top {
        gap: 0;
    }

    .product-sixth .grey-bouble-column-top-top {
        gap: 12px;
    }

    .product-sixth .half-grey-bouble-column .grey-bouble-column-top-top {
        min-height: unset;
    }

    .product-sixth .main-second-section .transparent-btn {
        padding: 12px 16px;
    }

    .product-sixth-slider {
        overflow: visible;
    }

    .product-sixth-slider .swiper-wrapper {
        display: grid !important;
        /* Переопределяем Swiper стили */
        grid-template-columns: 1fr;
        /* Одна колонка */
        gap: 24px;
        transform: none !important;
        /* Отключаем трансформацию Swiper */
    }

    .product-sixth-slider .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
    }

    .product-sixth .second-boubles-grid .grey-bouble {
        max-width: unset;
    }

    .product-sixth .wrapper {
        gap: 0;
    }
}