* {
    font-family: Inter;
    font-weight: 400;
    font-size: 14px;
    box-sizing: border-box
}

:root {
    --blue: #1A29D7;
    --black: #000000;
    --yellow: #FFBF00;
    --white: #ffffff;
    --lightblue: #1A29D70D;
}

.container {
    width: 1200px;
    padding: 0 15px;
    margin: auto;
    @media only screen and (max-width: 1199px) {
        width: 100%;
    }

    &.flex {
        display: flex;
    }

    &.justify-between {
        justify-content: space-between;
    }

    &.justify-between-center {
        justify-content: space-between;
        @media only screen and (max-width: 1199px) {
            justify-content: center;
        }
    }

    &.small {
        width: 800px;
        @media only screen and (max-width: 1199px) {
            width: 100%;
        }
    }
}

.button {
    background: var(--yellow);
    color: var(--black);
    padding: 24px 50px;
    text-transform: uppercase;
    border-radius: 60px;
    box-shadow: none;
    border: none;
    font-weight: 800;
    display: flex;
    text-decoration: none;
    width: fit-content;
    transition: 0.3s;
    cursor: pointer;

    &:hover {
        color: var(--yellow);
        background: var(--black);
    }

    @media only screen and (max-width: 1199px) {
        padding: 14px 24px;
    }
}

.input {
    background: var(--white);
    width: 100%;
    height: 46px;
    resize: none;
    margin-bottom: 15px;
    border-radius: 60px;
    border: none;
    padding: 0 20px;

    &.textarea {
        height: 100px;
        border-radius: 26px;
        padding-top: 10px;
    }
}

._title {
    font-weight: 800;
    font-size: 44px;
    text-align: center;
    color: var(--blue);
    display: flex;
    width: fit-content;
    margin: 0 auto 30px auto;
    padding-bottom: 30px;
    /*border-bottom: 4px solid var(--blue);*/
    position: relative;
    @media only screen and (max-width: 1199px) {
        font-size: 22px;
        padding-bottom: 15px;
        margin: 0 auto 15px auto;
    }

    &:before {
        content: '';
        position: absolute;
        width: 100px;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        top: 80px;
        height: 4px;
        background: var(--blue);
        @media only screen and (max-width: 1199px) {
            width: 60px;
            height: 2px;
            top: 40px;
        }
    }
}

header {
    display: flex;
    padding: 20px 0;

    .logo {
        display: flex;

        .title {
            padding-left: 12px;
            margin: auto 0;
            font-weight: 700;
            font-size: 24px;
            color: var(--blue);
        }
    }

    .links {
        display: flex;
        margin: auto 0;
        gap: 20px;
        @media only screen and (max-width: 1199px) {
            display: none;
        }

        .link {
            font-size: 14px;
            text-decoration: none;
            color: var(--black);
            transition: 0.3s;
            border-bottom: 1px solid transparent;

            &:hover {
                border-bottom: 1px solid var(--black);
            }
        }
    }
}

main {
    #top {
        background: var(--blue);
        padding: 50px 0;
        @media only screen and (max-width: 1199px) {
            padding: 20px 0;
        }

        img {
            width: 100%;
            border-radius: 30px;
            margin-bottom: 30px;
            @media only screen and (max-width: 1199px) {
                margin-bottom: 15px;
            }
        }

        .title {
            font-weight: 800;
            font-size: 50px;
            text-align: center;
            margin-bottom: 30px;
            color: var(--white);
            @media only screen and (max-width: 1199px) {
                font-size: 25px;
            }
        }

        .subtitle {
            font-weight: 700;
            font-size: 24px;
            text-align: center;
            color: var(--yellow);
            margin-bottom: 20px;
            @media only screen and (max-width: 1199px) {
                font-size: 16px;
            }
        }

        .text {
            text-align: center;
            font-size: 15px;
            color: var(--white);
            margin-bottom: 30px;
            @media only screen and (max-width: 1199px) {
                font-size: 14px;
            }
        }

        .button {
            margin: 0 auto;
        }
    }

    #about {
        padding: 80px 0;
        @media only screen and (max-width: 1199px) {
            padding: 30px 0;
        }

        .group {
            display: flex;
            justify-content: space-between;

            .left {
                font-weight: 400;
                font-size: 15px;
                width: 63%;
                @media only screen and (max-width: 1199px) {
                    width: 100%;
                }

                .blue {
                    color: var(--blue);
                    font-weight: 700;
                }

                .button {
                    margin-top: 30px
                }
            }

            .right {
                width: 33%;
                @media only screen and (max-width: 1199px) {
                    display: none;
                }

                img {
                    width: 100%;
                    height: 100%;
                    border-radius: 30px;
                    object-fit: cover;
                }
            }
        }
    }

    #why {
        padding-bottom: 80px;
        @media only screen and (max-width: 1199px) {
            padding-bottom: 30px;
        }

        .list {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;

            .item {
                width: calc((100% - 160px) / 3);
                background: var(--lightblue);
                border-radius: 24px;
                padding: 20px;
                @media only screen and (max-width: 1199px) {
                    width: 100%;
                }

                .item-logo {
                    margin-bottom: 20px;
                }

                .item-title {
                    margin-bottom: 20px;
                    font-weight: 700;
                    font-size: 22px;
                    color: var(--blue);
                }
            }
        }
    }

    #services {
        background: var(--lightblue);
        padding: 80px 0;
        @media only screen and (max-width: 1199px) {
            padding: 30px 0;
        }

        .list {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;

            .item {
                width: calc((100% - 160px) / 3);
                background: var(--blue);
                border-radius: 24px;
                padding: 20px;
                @media only screen and (max-width: 1199px) {
                    width: 100%;
                }

                .item-image {
                    margin-bottom: 20px;

                    img {
                        width: 100%;
                        height: 240px;
                        object-fit: cover;
                        border-radius: 20px;
                    }
                }

                .item-title {
                    margin-bottom: 15px;
                    font-weight: 700;
                    font-size: 22px;
                    color: var(--white);
                }

                .item-subtitle {
                    color: var(--white);
                    margin-bottom: 15px;
                }

                .item-price {
                    color: var(--yellow);
                    font-weight: 700;
                    font-size: 20px;
                    margin-bottom: 15px;
                }
            }
        }
    }

    #results {
        padding-top: 80px;
        @media only screen and (max-width: 1199px) {
            padding-top: 30px;
        }

        .slider {
            position: relative;
            width: 100%;
            max-width: 1200px;
            background: white;
            border-radius: 10px;
            overflow: hidden;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;;
        }

        .slider-container {
            position: relative;
            width: 1000px;
            height: 500px;
            overflow: hidden;
            @media only screen and (max-width: 1199px) {
                width: 330px;
                height: 300px;
            }
        }

        .slides {
            display: flex;
            transition: transform 0.5s ease;
            height: 100%;
        }

        .slide {
            min-width: 100%;
            height: 100%;
        }

        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 30px;
        }

        .nav-btn {
            position: absolute;
            top: 50%;
            background: var(--blue);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 32px;
            z-index: 10;
            transition: all 0.3s;
            color: var(--white);
            @media only screen and (max-width: 1199px) {
                top: 145px;
            }

            .arrow {
                font-size: 26px;
            }

            &:hover {
                color: var(--yellow);
                scale: 1.05;
            }
        }

        .prev {
            left: 20px;
        }

        .next {
            right: 20px;
        }

        .dots {
            display: flex;
            justify-content: center;
            padding: 20px 0 80px 0;
            gap: 10px;
            width: 100%;
            @media only screen and (max-width: 1199px) {
                padding: 20px 0 30px 0;
            }
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--yellow);
            cursor: pointer;
            transition: all 0.3s;
        }

        .dot.active {
            background: var(--blue);
            transform: scale(1.2);
        }

        .dot:hover {
            background: var(--yellow);
        }

        @media (max-width: 768px) {
            .slider-container {
                height: 300px;
            }

            .nav-btn {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }

            .prev {
                left: 10px;
            }

            .next {
                right: 10px;
            }
        }
    }

    #reviews {
        padding-bottom: 80px;
        @media only screen and (max-width: 1199px) {
            padding-bottom: 30px;
        }

        .list {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            padding-bottom: 80px;
            @media only screen and (max-width: 1199px) {
                padding-bottom: 30px;
            }

            .item {
                width: calc((100% - 160px) / 3);
                background: var(--lightblue);
                border-radius: 24px;
                padding: 20px;
                @media only screen and (max-width: 1199px) {
                    width: 100%;
                }

                .item-top {
                    display: flex;
                    margin-bottom: 20px;

                    .item-avatar {
                        img {
                            border-radius: 50%;
                            width: 48px;
                            height: 48px;
                            object-fit: cover;
                        }
                    }

                    .item-name {
                        font-weight: 700;
                        font-size: 22px;
                        color: var(--blue);
                        padding-left: 15px;
                        margin: auto 0;
                    }
                }

                .item-rating {
                    margin-bottom: 20px;
                }
            }
        }

        .block {
            display: flex;
            justify-content: space-between;
            border-radius: 34px;
            background: var(--blue);

            .left {
                flex: 1;
                padding: 30px;
            }

            .right {
                width: 450px;
                @media only screen and (max-width: 1199px) {
                    display: none;
                }

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    border-bottom-right-radius: 34px;
                }
            }

            .block-title {
                font-weight: 700;
                font-size: 42px;
                margin-bottom: 20px;
                color: var(--white);
                @media only screen and (max-width: 1199px) {
                    font-size: 21px;
                }
            }

            .block-text {
                margin-bottom: 20px;
                color: var(--white);
            }
        }
    }

    #faq {
        padding-bottom: 80px;
        @media only screen and (max-width: 1199px) {
            padding-bottom: 30px;
        }

        .list {
            .item {
                background: var(--lightblue);
                padding: 24px;
                border-radius: 24px;
                margin-bottom: 15px;

                .item-title {
                    font-weight: 700;
                    font-size: 22px;
                    margin-bottom: 15px;
                    color: var(--blue);
                }
            }
        }
    }

    #contact {
        background: var(--blue);
        display: flex;
        padding: 60px 0;
        @media only screen and (max-width: 1199px) {
            padding: 30px 0;
        }

        ._title {
            color: var(--white);
            border-bottom: 4px solid var(--white);
        }

        .left, .right {
            width: 200px;
            @media only screen and (max-width: 1199px) {
                display: none;
            }

            img {
                border-radius: 30px;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }

        .center {
            flex: 1;
            padding: 0 40px;
            color: var(--white);
            @media only screen and (max-width: 1199px) {
                padding: 0;
            }
        }

        .subtitle {
            text-align: center;
            margin-bottom: 15px;
        }

        .address {
            text-align: center;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .socials {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 20px;
        }

        .form {
            display: flex;
            flex-direction: column;

            .button {
                margin: 0 auto;
            }

            .success-message {
                color: green;
                margin-top: 10px;
                display: none;
            }

            .error-message {
                color: red;
                margin-top: 10px;
                display: none;
            }
        }
    }

}

footer {
    padding-top: 80px;
    padding-bottom: 40px;
    @media only screen and (max-width: 1199px) {
        padding-top: 30px;
        padding-bottom: 20px;
    }

    .container{
        @media only screen and (max-width: 1199px) {
            display: flex;
            flex-wrap: wrap;
        }
    }

    .left {
        @media only screen and (max-width: 1199px) {
            width: 100%;
        }

        .logo {
            display: flex;
            padding-bottom: 30px;

            .title {
                padding-left: 12px;
                margin: auto 0;
                font-weight: 700;
                font-size: 24px;
                color: var(--blue);
            }
        }

        .links {
            display: flex;
            margin: auto 0;
            gap: 20px;
            @media only screen and (max-width: 1199px) {
                display: none;
            }

            .link {
                font-size: 14px;
                text-decoration: none;
                color: var(--black);
                transition: 0.3s;
                border-bottom: 1px solid transparent;

                &:hover {
                    border-bottom: 1px solid var(--black);
                }
            }
        }
    }

    .right {
        @media only screen and (max-width: 1199px) {
            width: 100%;
        }

        .socials {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }

        .address {
            line-height: 24px;
        }
    }
}
