'use client'

import styled from "styled-components";
import {
    blackColor,
    darkGreenColor,
    inactiveBorderColor,
    inactiveTextColor,
    lightGreenColor,
    whiteColor
} from "@/styles/colors";


// General
export const MainPage = styled.div`
    width: 100%;
    overflow: hidden;
`
export const Section = styled.section`
    max-width: 1220px;
    position: relative;
    margin: 220px auto 0;
    -webkit-transform: translateZ(0);
    will-change: transform;
    h2{
        text-align: center;
        font-size: 40px;
        span{
            background: linear-gradient(to right, ${lightGreenColor}, ${darkGreenColor});
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        @media(max-width: 1400px) {
            font-size: 32px;
            width: 80%;
            margin: 0 auto;
        }
        @media (max-width: 1060px) {
            font-size: clamp(24px, 5vw,36px);
            width: 80%;
            margin: 0 auto;
        }
    }
    &.roomSection::after{
        content: "";
        width:300px;
        height: 200px;
        position: absolute;
        top: 300px;
        right: -400px;
        border-radius: 50%;
        background: ${lightGreenColor};
        filter: blur(120px);
    }
`
export const PriceHeader_btn = styled.button`
    font-size: 64px;
    text-transform: uppercase;
    color: ${inactiveTextColor};
    margin-left: 170px;
    position: relative;
    &::after{
        content: "";
        left: 50%;
        transform: translateX(-50%);
        bottom: -18px;
        background: ${inactiveBorderColor};
        position: absolute;
        width: 120%;
        height: 7px;
    }
    &.active{
        background: linear-gradient(to right, ${lightGreenColor}, ${darkGreenColor});
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        &.active::after{
            background: linear-gradient(to right, ${lightGreenColor}, ${darkGreenColor});
        }
    }
    @media (max-width: 1400px) {
        font-size: 52px;
        margin-left: 100px;
        line-height: 1.1;
        &::after{
            bottom: -16px;
            height: 6px;
        }
    }
    @media (max-width: 1300px) {
        margin-left: 100px;
    }
    @media (max-width: 1080px) {
        margin-left: 0;
        font-size: 40px;
    }
    @media (max-width: 720px) {
        font-size: 32px;
        &::after{
            bottom: -14px;
            height: 6px;
            width: 100%;
        }
    }
    @media (max-width: 420px) {
        width: 100%;
        &::after{
            width: 100%;
        }
    }
`;

// start
export const StartBlock = styled.section`
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 1920px;
    padding: 0 60px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    height: 70vh;
    &::after{
        content: "";
        position: absolute;
        top: -200px;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        height: 1144px;
        background-image: url("/images/startBg.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        z-index: -10;
    }
    img{
        position: absolute;
        z-index: -1;
    }
    img:nth-child(1){
        left: 100px;
    }
    img:nth-child(4){
        right: 150px;
    }
    h1{
        font-size: 64px;
        line-height: 1;
        text-align: center;
        max-width: 648px;
        margin-bottom: 40px;
        span {
            background: linear-gradient(
                    to right,
                    ${lightGreenColor} 0%,
                    ${lightGreenColor} 40%,
                    ${darkGreenColor} 110%,
                    ${darkGreenColor} 140%
            );
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
    }
    @media (max-width: 1800px) {
        img:nth-child(1){
            left: 50px;
        }
        img:nth-child(4){
            right: 75px;
        }
    }
    
    @media (max-width: 1600px) {
        img:nth-child(4){
            right: 40px;
            width: 362px;
        }
        img:nth-child(1){
            left: 10px;
            width: 402px;
        }
    }
    @media (max-width: 1400px) {
        height: 75vh;
        img:nth-child(4){
            width: 360px;
        }
        img:nth-child(1){
            width: 380px;
        }
        h1{
            font-size: 50px;
            max-width: 508px;
            margin-bottom: 24px;
        }
        button{
            font-size: 32px;
            padding: 16px 38px;
        }
    }
    @media (max-width: 1300px) {
        img:nth-child(4){
            right: 10px;
        }
        img:nth-child(1){
            left: 0;
        }
    }
    @media (max-width: 1180px) {
        img:nth-child(4){
            width: 280px;
            right: 10px;
        }
        img:nth-child(1){
            width: 340px;
            left: -50px;
        }
        h1{
            font-size: 50px;
            max-width: 508px;
            margin-bottom: 24px;
        }
        button{
            font-size: 32px;
        }
    }
    @media (max-width: 1040px) {
        height: 80vh;
        img:nth-child(4){
            width: 280px;
            bottom: -20%;
            right: 10%;
        }
        img:nth-child(1){
            width: 340px;
            bottom: -20%;
            left: 10%;
        }
    }
    @media (max-width: 850px) {
        img:nth-child(4){
            width: 280px;
            bottom: -20%;
            right: 4%;
        }
        img:nth-child(1){
            width: 340px;
            bottom: -20%;
            left: 4%;
        }
    }
    @media (max-width: 600px) {
        padding: 0 20px;
        margin-top: 60px;
        justify-content: start;
        height: 50vh;
        img:nth-child(4){
            width: 240px;
            bottom: -26%;
            right: 4%;
        }
        img:nth-child(1){
            width: 280px;
            bottom: -26%;
            left: 4%;
        }
        h1{
            font-size: 40px;
            max-width: 400px;
        }
        button{
            font-size: 26px;
            padding: 12px 32px;
        }
    }
    @media (max-width: 520px) {
        height: 40vh;
        h1{
            font-size: 30px;
            max-width: 300px;
        }
        img:nth-child(4){
            width: 220px;
            bottom: -34%;
            right: 5%;
        }
        img:nth-child(1){
            width: 220px;
            bottom: -34%;
            left: 5%;
        }
        button{
            font-size: 26px;
            padding: 12px 32px;
        }
    }
    @media (max-width: 450px) {
        img:nth-child(4){
            width: 220px;
            bottom: -34%;
            right: 2%;
        }
        img:nth-child(1){
            width: 220px;
            bottom: -34%;
            left: 2%;
        }
    }
    @media (max-width: 418px) {
        img:nth-child(4){
            width: 200px;
            bottom: -40%;
            right: 2%;
        }
        img:nth-child(1){
            width: 200px;
            bottom: -40%;
            left: -4%;
        }
        h1{
            font-size: 30px;
            max-width: 300px;
        }
        button{
            font-size: 26px;
            padding: 12px 32px;
        }
    }
    
    @media (max-width: 360px) {
        img:nth-child(4){
            width: 180px;
            bottom: -24%;
            right: 2%;
        }
        img:nth-child(1){
            width: 180px;
            bottom: -24%;
            left: -4%;
        }
    }
    @media (max-height: 740px) {
        img:nth-child(4){
            bottom: -44%;
        }
        img:nth-child(1){
            bottom: -44%;
        }
    }
    @media (max-height: 690px) {
        img:nth-child(4){
            bottom: -56%;
        }
        img:nth-child(1){
            bottom: -56%;
        }
    }
`


// App
export const AppSection = styled.section`
    background: ${blackColor};
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 140px auto 80px;
    border-radius: 40px;
    position: relative;
    &::after{
        content: "";
        position: absolute;
        bottom: -14%;
        left: -20%;
        background: ${lightGreenColor};
        width: 500px;
        height: 400px;
        border-radius: 30%;
        filter: blur(200px);
        opacity: .5;
        z-index: -1;
    }
    @media (max-width: 1250px) {
        padding: 60px 0;
        .phoneApp{
            display: none;
        }
    }
`
export const AppText = styled.div`
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 706px;
    h2{
        font-size: 40px;
        margin: 20px 0 24px;
    }
    p{
        font-size: 24px;
        margin-bottom: 24px;
        span{
            color: red;
        }
    }
    div{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;
    }
    button{
         cursor: auto;
    }
    @media (max-width: 850px) {
        width: 600px;
    }
    @media (max-width: 650px) {
        width: 90%;
        h2{
            font-size: 30px;
        }
        p{
            font-size: 18px;
        }
        div{
            gap: 10px;
            img{
                width: 160px;
            }
        }
    }
    @media (max-width: 450px) {
        h2{
            font-size: 30px;
        }
        p{
            font-size: 18px;
        }
        div{
            flex-direction: column;
            gap: 0;
        }
        button{
            font-size: 20px;
            padding: 8px 28px;
        }
    }
`

// faq
export const FaqAccordion = styled.div`
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    &::after{
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        background: ${lightGreenColor};
        width: 500px;
        height: 500px;
        border-radius: 50%;
        filter: blur(200px);
        opacity: .25;
        z-index: -1;
    }
    &::before{
        content: "";
        position: absolute;
        top: 10%;
        right: -33%;
        transform: rotate(-30deg);
        background: ${lightGreenColor};
        width: 900px;
        height: 500px;
        border-radius: 40%;
        filter: blur(200px);
        opacity: .6;
        z-index: -1;
    }
`
export const FaqTitle = styled.div`
    text-align: center;
    h2{
        font-size: 40px;
    }
    h3{
        font-size: 20px;
        margin: 12px 0 50px;
    }
`

//footer
export const HeaderPhone = styled.div`
    display: flex;
    align-items: start;
    flex-direction: column;
    justify-content: start;
    margin-left: 33px;
    h4{
        font-size: 14px;
        margin-top: 5px;
        cursor: pointer;
    }
    p{
        font-size: 20px;
        line-height: 1;
    }
`
export const HeaderBlock = styled.div`
    display: flex;
    align-items: center;
    justify-content: center;
    .logo{
        margin-right: 56px;
    }
    .gis2Link{
        margin-right: 15px;
    }
    .tgLink{
        margin: 0 12px 0 8px;
    }
    .footerPhone{
        
        h4{
            text-align: center;
            font-size: 20px;
        }
    }
`

export const Footer = styled.footer`
    display: flex;
    max-width: 1500px;
    margin: 200px auto 0;
    height: 140px;
    justify-content: center;
    align-items: center;
    gap: 218px;
    position: relative;

    .policy{
        text-transform: uppercase;
        text-align: center;
        color:${whiteColor};
        font-size: 20px;
    }
    .inst{
        margin-right: 8px;
    }
    &::after{
        content: "";
        position: absolute;
        bottom: -66%;
        left: 24%;
        background: ${lightGreenColor};
        width: 600px;
        height: 90px;
        filter: blur(80px);
        border-radius: 20%;
        z-index: -1;
    }
    &::before{
        content: "";
        position: absolute;
        bottom: -90%;
        left: -12%;
        background: ${lightGreenColor};
        width: 200px;
        height: 120px;
        filter: blur(80px);
        border-radius: 20%;
        z-index: -1;
    }
    @media (max-width: 1260px) {
        width: 90%;
        margin: 200px auto 0;
        justify-content: space-between;
        gap: 0;
    }
    @media (max-width: 920px) {
        flex-wrap: wrap;
        justify-content: center;
        column-gap: 64px;
        height: max-content;
        .footerBlock{
            display: flex;
            justify-content: center;
            width: 100%;
            column-gap: 64px;
            margin: 32px 0 24px;
        }
    }
    @media (max-width: 720px) {
        margin: 160px auto 0;
        
    }
    @media (max-width: 500px) {
        justify-content: center;
        margin-top: 100px;
        .footerBlock{
            flex-direction: column;
            gap: 20px;
            margin: 20px 0 20px;
        }
        .logo{
            order: 1;
        }
        .footerBlock{
            order: 2;
        }
        .footerPhone{
            margin-left:0;
            align-items: center;
        }
        .policy{
            order: 3;
            margin-bottom: 26px;
        }
    }
`
// Policy
export const PolicyContent = styled.div`
    text-transform: none;
    font-weight: normal;
    max-width: 994px;
    margin: 0 auto 150px;
    font-size: 32px;
    line-height: 1.4;
    position: relative;
    padding: 0 20px;

    h1 {
        margin: 70px 0 55px;
        font-size: 64px;
        text-align: center;
        line-height: 1;
    }

    &::before {
        content: "";
        position: absolute;
        bottom: -10%;
        right: -60%;
        background: ${lightGreenColor};
        width: 500px;
        height: 500px;
        opacity: 0.6;
        filter: blur(200px);
        border-radius: 20%;
        z-index: -1;
    }

    &::after {
        content: "";
        position: absolute;
        top: -20%;
        left: -10%;
        background: ${lightGreenColor};
        width: 500px;
        height: 200px;
        opacity: 0.6;
        filter: blur(200px);
        border-radius: 20%;
        z-index: -4;
    }

    @media (max-width: 768px) {
        font-size: 24px;
        h1 {
            font-size: 48px;
        }
    }

    @media (max-width: 480px) {
        font-size: 20px;
        margin-bottom: 100px;
        h1 {
            font-size: 38px;
            margin: 50px 0 40px;
        }
    }

    @media (max-width: 370px) {
        font-size: 18px;
        h1 {
            font-size: 32px;
        }

        &::before,
        &::after {
            display: none;
        }
    }
`
