/* General Reset */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background: #151823;
    color: #fff;
    overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(32px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    /*max-width: 1600px;*/
    margin: auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-section img {
    width: 50px;
    height: 50px;
}

.logo-section h1 {
    font-size: 20px;
    letter-spacing: 1px;
    color: white;
    font-weight: 600;
    margin: 20px 0;
}

/* Десктопное меню */
.nav-links {
    list-style: none;
    display: flex;
    gap: 60px;
    margin-right: 221px;
}

.nav-links a {
    color: #FFFFFF;
    font-size: 20px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00bfff;
}

.end-section {
    z-index: 101;
}

/* Бургер-кнопка */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;

}

/* Мобильная версия */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        margin-right: 0;
        position: fixed;
        top: -25%;
        right: -100%;
        height: 100vh;
        width: 33%;
        max-width: 300px;
        background: rgba(26, 26, 26, 0.8);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 100px 25px 25px;
        gap: 45px;
        transition: right 0.4s ease-in-out;
        z-index: 15;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links.show {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
        padding: 10px 0;
        width: 100%;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    max-height: 100vh;
    height: 800px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
}

.hero-img {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%); /* центрируем */
    max-width: 85vw;
    object-fit: contain; /* сохраняем пропорции */
    object-position: center;
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 15px 40px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: clamp(36px, 8vw, 96px);
    font-weight: 600;
    margin: 0;
}

.hero-content p {
    font-size: clamp(16px, 3vw, 20px);
    max-width: 700px;
    letter-spacing: 1px;
    margin: 20px 0;
}

.download-buttons {
    display: inline-block;
    gap: 16px;
    width: 100%;
    height: auto;
    align-content: center;
}

.btn {
    display: inline-flex;
    justify-content: center;
    margin: 0 15px;
    padding: 15px 0;
    font-size: 16px;
    border-radius: 15px;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-align: center;
    min-width: 340px;
    box-sizing: border-box;
}

.btn-black {
    background: linear-gradient(90deg, #1a1e28, #151823);
    color: white;
}

.btn-blue {
    background: linear-gradient(90deg, #0196F9, #0040E0);
    color: white;
}

.btn-start-practice {
    margin-top: 25px;
}

.btn-white {
    background: white;
    color: #0040E0;
}

/* Features Section */
.features {
    padding: 60px 20px;
    text-align: center;
    justify-content: center;
}

.features h2 {
    font-size: clamp(36px, 8vw, 64px);
    font-weight: 600;
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    line-height: 1.2;
    padding: 0 20px;
}

.feature-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-box {
    position: relative;
    width: 400px;
    height: 440px;
    border-radius: 24px;
    padding: 0;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    background: #1a1e28;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    overflow: hidden;
    aspect-ratio: 1 / 1.1;
}

.feature-box-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 20px;
}

.feature-box h3 {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 700;
    margin: 0;
    z-index: 15;
}

.feature-index {
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    z-index: 15;
}

.feature-box p {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 1px;
    margin: 0 20px;
    max-width: 300px;
    color: rgba(255, 255, 255, 0.6);
    position: absolute;
    top: 20%;
    z-index: 15;
}

.feature-box img {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 90%;
    max-height: 90%;
    z-index: 10;
    object-fit: cover;
}

/* Градиенты для фонов */
.feature-box::before,
.feature-box::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    opacity: 1;
    z-index: 1;
}

.gradient-1::before {
    top: 40%;
    left: 20%;
    width: 350px;
    height: 350px;
    background: #F1E91E;
}

.gradient-1::after {
    bottom: -10%;
    right: -40%;
    width: 250px;
    height: 250px;
    background: #E879F9;
}

.gradient-2::before {
    top: 60%;
    left: 0;
    width: 350px;
    height: 350px;
    background: #4ADE80;
}

.gradient-2::after {
    bottom: 0;
    right: -20%;
    width: 250px;
    height: 250px;
    background: #60A5FA;
}

.gradient-3::before {
    top: 70%;
    left: 25%;
    width: 350px;
    height: 350px;
    background: #E879F9;
}

.gradient-3::after {
    top: 45%;
    left: 50%;
    width: 350px;
    height: 350px;
    background: #C084FC;
}

.gradient-4::before {
    top: 60%;
    left: 15%;
    width: 350px;
    height: 350px;
    background: #E0FF31;
}

.gradient-4::after {
    bottom: -10%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: #2CC2FF;
}

/* Preview Section */
.preview {
    padding: 50px 20px;
    text-align: center;
    background: linear-gradient(90deg, #0196F9, #0040E0);
}

.preview h2 {
    font-size: clamp(36px, 8vw, 64px);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 40px;
    line-height: 1.2;
}

.phones {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

.phone {
    transition: transform 0.3s ease;
    height: auto;
    width: auto;
    max-height: 500px;
}

.phone-large {
    max-height: 550px;
    transform: translateY(0px);
}

/* Средние — чуть меньше и чуть ниже */
.phone-medium {
    max-height: 500px;
    transform: translateY(10px);
}

/* Маленькие — ещё ниже */
.phone-small {
    max-height: 450px;
    transform: translateY(20px);
}


/* Feedback Section */
.feedback {
    padding: 60px 15px;
    text-align: center;
}

.feedback h2 {
    font-size: clamp(36px, 8vw, 64px);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 40px;
    line-height: 1.2;
}

.feedback-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feedback-card {
    background: #1C202E;
    padding: 20px;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    min-height: 100px;
    color: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-5px);
}

.feedback-card .quote {
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.6;
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.feedback-card img {
    width: 40px;
    height: 40px;
}

.feedback-card .user {
    display: flex;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF99;
    text-align: left;
    align-items: center;
    gap: 10px;
}

/* Bottom Hero */
.bottom-hero {
    position: relative;
    min-height: 33vh;
    max-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    box-sizing: border-box;
    background: linear-gradient(90deg, #0196F9, #0040E0);
}

.bottom-hero-img {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%); /* центрируем */
    width: 100vw;
    height: 20vh;
    object-fit: contain; /* сохраняем пропорции */
    object-position: center;
    z-index: 5;
}

.bottom-hero-content {
    position: relative;
    z-index: 10;
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

.bottom-hero-content h2 {
    font-size: clamp(18px, 5vw, 56px);
    font-weight: 600;
    text-align: center;
    margin: 15px 0;
}

@media (max-width: 1320px) {
    .features {
        padding: 20px 0;
    }

    .preview {
        padding: 20px 0;
    }

    .feature-scroll-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .feature-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        scroll-snap-type: x mandatory;
        padding: 0 16px;
        width: max-content;
        height: auto;
    }

    .feature-box {
        flex: 0 0 auto;
        max-width: 20rem;
        max-height: 20rem;
        height: 100vh;
        aspect-ratio: auto;
        scroll-snap-align: start;
        position: relative;
    }

    .phones-scroll-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .phones {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        scroll-snap-type: x mandatory;
        padding: 0 16px;
        width: max-content;
    }


    .phone {
        flex: 0 0 auto;
        width: auto;
        max-height: 65vh;
        height: 80vh;
        transform: translateY(0px);
        scroll-snap-align: center;
    }
}

@media (max-width: 480px) {
    .hero-img {
        top: 35%;
        left: 50%;
    }
    .btn {
        min-width: 250px;
    }
}
