﻿* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #FDF6F0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #3A3A3A;
}

.header {
    width: 95vw;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    position: sticky;
    justify-content: space-between;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #3A3A3A;
    margin-bottom: 6rem;
    padding: 1rem;
    background: #FDF6F0;
}

.nav {
    display: flex;
    gap: 2rem;
    font-size: 1rem;
    margin: 0 auto;
}

    .nav a {
        text-decoration: none;
        color: inherit;
        color: #888888;
        font-weight: 600;
        transition: color 0.3s ease;
    }

.nav-link {
    position: relative;
}

    .nav-link:hover {
        color: #3A3A3A;
    }

    .nav-link.active {
        color: #3A3A3A;
    }

        .nav-link.active::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -4px;
            height: 2px;
            background: #3A3A3A;
        }

.page {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 70rem;
    margin: 3vh auto;
    padding: 3vh 5vw 5vh;
    align-items: center;
    justify-content: center;
}

#home,
#whyme,
#tariff,
#referral,
.aboutus {
    width: 100%;
    max-width: 70rem;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

a{
    text-decoration: none;
    color: inherit;
}

#home {
    display: flex;
    align-self: center;
    justify-self: center;
    align-items: start;
    justify-content: space-between;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 0 0 50%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0;
    padding: 0;
}

.hero-subtitle {
    font-size: 2rem;
    line-height: 1.4;
    margin: 0 0;
    padding: 0;
}

.app-store-button {
    transform: scale(1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25rem;
    height: 5rem;
    background: url("../resources/Button.png") no-repeat center;
    background-size: 100% 100%;
    font-size: 1.5rem;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.app-store-button:hover {
    transform: scale(1.05);
        
}

.app-store-button img {
    height: 2rem;
}

.hero-scribble {
    width: 20rem;
    margin: 4rem 3rem;
}

.hero-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:center;
    height: auto;
    flex: 0 0 50%;
}

.phone {

}

.phone-main {
    display: flex;
    align-items: center;
    z-index: 2;
    /*transform: translateX(-130px);*/
}

.phone-secondary {
    display: flex;
    align-items: center;
    z-index: 1;
    /*transform: translateX(30px);*/
}

.phone-main img {
    transform: scale(1);
    position: relative;
    height: 36rem;
    width: auto;
    transition: transform 1.5s ease;
}

.phone-secondary img {
    position: relative;
    height: 32rem;
    width: auto;
    margin-left: -10rem;
    transition: transform 1.5s ease;
}

.phone img:hover {
    transform: scale(1.05);
}

#whyme {
    margin-top: 6rem;
}

.whyme-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10rem;
    margin-bottom: 2rem;
}

.whyme-arrow {
    width: 4.3rem;
    height: 9rem;
    margin-bottom: -3rem;
}

.whyme-question {
    width: 9rem;
    height: 6rem;
}

.whyme h1 {
    text-align: center;
}

.features {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.feature {
    width: 20rem;
    height: 14rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 0.5rem;
    margin: 3rem 0;
    padding: 0rem 1rem;
    border-radius: 0.5rem;
}

    .feature img {
        width: 8em;
        height: 0.5rem;
        margin: -1rem 0;
    }

#tariff {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    background: #FCECDE;
    padding: 4rem 5rem;
    border-radius: 1rem;
    gap: 5rem;
}

    #tariff h1 {
        margin: 0;
        padding: 0;
    }

    #tariff img {
        width: 6rem;
        height: auto;
    }

    #tariff .card {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10rem;
    }

    #tariff .price-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: start;
        gap: 2rem;
    }

        #tariff div h3, #tariff div h1{
            margin: 0;
            padding: 0;
        }

        #tariff .price-card div {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: start;
            gap: 0;
        }

            #tariff .price-card div div {
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                gap: 0.5rem;
            }

#referral {
    display: flex;
    flex-direction: column;
    padding: 3rem 5rem;
    justify-content: space-between;
    gap: 4rem;
}

#referral .referral-main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#referral .referral-tutorial {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

    #referral .referral-tutorial div {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: start;
    }

    #referral .ref-image {
        width: 6rem;
        height: 6rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #referral h1 {
        text-align: center;
        margin-top: 0;
    }

    #referral h3 {
        max-width: 30rem;
        font-weight: 500;
    }

    #referral .referral-decor{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        margin-left: 2rem;
    }

        #referral .referral-decor img:nth-child(odd) {
            width: 6rem;
            transform: rotate(-15deg)
        }

        #referral .referral-decor img:nth-child(even) {
            width: 6rem;
            margin-left: 10rem;
            transform: rotate(15deg)
        }

.aboutus {
    display: flex;
    background: #FCECDE;
    padding: 2rem 5rem;
    font-weight: 500;
    justify-content: space-between;
    border-radius: 1rem;
}

    .aboutus a {
        color: #888888;
        transition: color 0.3s ease;
    }

        .aboutus a:hover {
            color: #3A3A3A;
        }

.left-footer {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
}

.left-footer p{
    margin: 0;
    font-size: 1rem;
    line-height: 1.8rem;
    justify-self: center;
    align-self: center;
    font-weight: 500;
}

.right-footer {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

    .right-footer p {
        font-size: 1.5rem;
        margin: 0;
    }

    .right-footer img {
        width: 4rem;
        height: 4rem;
    }

    .right-footer div {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

@media (max-width: 800px){
    body {
        font-size: 14px;
    }

    h1{
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .header {
        max-width: 100vw;
        margin-bottom: 2rem;
        padding: 0.5rem 1rem;
    }

    .nav {
        gap: 1rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page {
        width: 100%;
        max-width: 100%;
        padding: 2rem 1rem 3rem;
        margin: 0 auto;
    }

    #home {
        width: 100%;
        max-width: 90vw;
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .hero-left {
        width: 100%;
        gap: 2rem;
    }

    .hero-title {
        font-size: 3rem;
        margin-top: 1rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-right{
        display: none;
        width: 0rem;
    }

    .hero-scribble {
        width: 14rem;
        margin: 3rem 0;
        align-self: center;
    }

    .app-store-button {
        max-width: 80vw;
        height: 17vw;
        font-size: 1.2rem;
        align-self: center;
    }

    #whyme {
        width: 100%;
        margin-top: 3rem;
    }

    .whyme-header {
        margin: 0 0 -3rem;
        gap: 1rem;
    }

    .whyme-header img {
        display: none;
    }

    .features {
        width: 100%;
        max-width: 95vw;
        display: flex;
        flex-direction: row; /* в ряд */
        justify-content: flex-start; /* ВАЖНО: вместо center */
        align-items: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 1rem;
        padding: 0 1rem 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox — без полосы */
    }

        .features::-webkit-scrollbar {
            display: none;
        }

    #whyme .features .feature {
        flex: 0 0 80vw;
        max-width: 45vw;
        margin: 0;
        padding: 1rem;
        scroll-snap-align: start;
    }

        #tariff {
            width: 100%;
            padding: 2rem 1.5rem;
            box-sizing: border-box;
        }

        #tariff .card {
            flex-direction: column;
            gap: 2rem;
            align-items: flex-start;
        }

    #referral {
        width: 100%;
        max-width: 90vw;
        padding: 2rem 1.5rem;
        box-sizing: border-box;
    }

        #referral h1 {
            font-size: 1.6rem;
        }

        #referral .referral-main {
            flex-direction: column;
            gap: 2rem;
        }

        #referral .ref-image{
            width: 5rem;
        }

        #referral .referral-decor {
            display: none;
        }

        #referral .referral-tutorial {
            gap: 1.5rem;
        }

            #referral .referral-tutorial div {
                align-items: flex-start;
                gap: 0;
            }

        #referral h3 {
            width: 60vw;
        }

    #about {
        width: 100%;
        padding: 2rem 1.5rem;
        box-sizing: border-box;
    }

    .aboutus {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .left-footer p {
        font-size: 0.9rem;
        line-height: 1.5rem;
    }

        .right-footer p {
            font-size: 1.2rem;
        }
}