_intro.scss 7.37 KB
.intro {
    position: relative;
    padding-bottom: 60px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    @media (min-width: 1200px) {
        padding-bottom: 80px;
    }

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(3, 9, 15, 0.5);
        backdrop-filter: blur(10px);
    }

    &__wrap {
        position: relative;
    }

    &__inner {

        @media (min-width: 1200px) {
            display: flex;
            justify-content: space-between;
        }
    }

    &__cnt {
        margin: 0px 0px 60px 0px;

        @media (min-width: 1200px) {
            width: 540px;
            margin: 0px 30px 0px 0px;
        }
    }

    &__title {}

    &__descr {
        color: $white;
        font-size: 16px;
        line-height: 22px;
        font-weight: 500;
        margin-top: 12px;

        @media (min-width: 1200px) {
            margin-top: 20px;
        }
    }

    &__link-complex {
        display: block;
        max-width: 432px;
        padding: 15px 20px;
        border-radius: 10px;
        color: #4B4E53;
        font-size: 14px;
        line-height: 20px;
        font-weight: 600;
        background-color: #FFFFFF;
        margin-top: 12px;

        span {
            text-decoration: underline;
        }
    }

    &__row {
        max-width: 475px;
        display: grid;
        grid-gap: 20px;
        grid-template-columns: repeat(1, 1fr);
        margin-top: 20px;

        @media (min-width: 480px) {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    &__col {
        &:nth-child(1) {
            .intro__link-map {
                display: none;
                @media (min-width: 480px) {
                    display: inline-block;
                }
            }
        }
        &:nth-child(2) {
            .intro__link-map {
                @media (min-width: 480px) {
                    display: none;
                }
            }
        }
    }

    &__item {
        position: relative;
        color: $white;
        font-size: 16px;
        line-height: 22px;
        font-weight: 500;
        padding-left: 16px;

        span {
            color: $white !important;
        }

        &::before {
            content: '';
            position: absolute;
            top: 7px;
            left: 0;
            width: 8px;
            height: 8px;
            background-color: currentColor;
            border-radius: 2px;
        }

        &:not(:last-child) {
            margin-bottom: 8px;
        }
    }

    &__link-map {
        margin-top: 16px;
        color: $white;
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        text-decoration-line: underline;

        @media (min-width: 1200px) {
            margin-top: 20px;
        }
    }

    &__group {
        span {
            display: block;
            color: $white;

            &:nth-child(1) {
                font-size: 14px;
                line-height: 20px;
                font-weight: 700;
                margin-bottom: 2px;
            }

            &:nth-child(2) {
                font-size: 16px;
                line-height: 22px;
                font-weight: 500;
            }
        }

        &:not(:first-child) {
            margin-top: 12px;
        }
    }

    &__bottom {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 40px;

        @media (min-width: 640px) {
            flex-direction: row;
            align-items: center;
        }
    }

    &__views {
        order: 1;
        position: relative;
        flex-grow: 1;
        padding: 15px 36px;
        border-radius: 10px;
        margin-top: 10px;
        background-color: #42AAFF;
        color: $white;
        font-size: 14px;
        line-height: 20px;
        font-weight: 700;

        @media (min-width: 480px) {
            margin-right: 20px;
        }

        @media (min-width: 640px) {
            order: 0;
            margin-top: 0;
        }

        &::before {
            content: '';
            position: absolute;
            top: 20px;
            left: 20px;
            width: 8px;
            height: 8px;
            background-color: $white;
            border-radius: 2px;
        }
    }

    &__link-phone {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 12px;

        @media (min-width: 480px) {
            flex-shrink: 0;
            width: auto;
            padding: 12px 48px;
        }
    }

    &__swiper {
        margin: 0 -20px;
        padding: 0 20px 34px;

        @media (min-width: 1200px) {
            width: 598px;
            margin: 0;
            padding: 0 0 34px;
        }

        .swiper-pagination {
            bottom: 0;

            .swiper-pagination-bullet {
                margin: 0 5px;
            }
        }

        .swiper-pagination-bullet {
            width: 40px;
            height: 4px;
            margin: 0 5px;
            border-radius: 5px;
            background-color: $white;
            opacity: 1;
            transition: .3s;

            &:hover {
                @media (min-width: 1200px) {
                    background-color: $blue;
                }
            }
        }

        .swiper-pagination-bullet-active {
            background-color: $blue;
        }

        .swiper-button-prev,
        .swiper-button-next {
            display: none;

            @media (min-width: 1200px) {
                display: flex;
                top: calc(50% - 17px);
                transform: translateY(-50%);
                width: 40px;
                height: 40px;
                border-radius: 10px;
                border: 1px solid $white;
                margin: 0;
                transition: .3s;
            }

            &:after {
                display: none;
            }

            svg {
                stroke: $white;
                transition: .3s;
            }

            &:hover {
                @media (min-width: 1200px) {
                    background-color: $white;
                }

                svg {
                    @media (min-width: 1200px) {
                        stroke: $main;
                    }
                }
            }
        }

        .swiper-button-prev {
            left: 20px;
        }

        .swiper-button-next {
            right: 20px;

            svg {
                transform: rotate(180deg);
            }
        }
    }
}

.intro-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(3, 9, 15, 0.3);
    }

    &__img {
        height: 217px;

        @media (min-width: 1200px) {
            height: 366px;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    &__btn {
        position: absolute;
        bottom: 20px;
        right: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        background-color: $white;
        opacity: 0.8;
        border-radius: 5px;
        transition: .3s;

        &:hover {
            opacity: 1;
        }
    }
}