/* style.css */
:root {
    --primary: #2a6ecc;
    --primary-dark: #1e4e99;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --border-radius: 12px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: rgba(42, 110, 204, 0.1);
    transform: translateY(-3px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* Hero */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(42, 110, 204, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
}

.pulse {
    width: 10px;
    height: 10px;
    background-color: var(--secondary);
    border-radius: 50%;
    margin-left: 10px;
    position: relative;
}

.pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-img-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 650px;
    width: 100%;
}

.hero-main-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-img-container:hover .hero-main-img {
    transform: scale(1.03);
}

.img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px;
    color: white;
}

.overlay-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.overlay-text h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.overlay-text p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Section Common */
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(42, 110, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 24px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-text {
    color: var(--gray);
}

/* How it works */
.how-it-works {
    background-color: #f8fafc;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 280px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--gray);
}

.phone-showcase {
    margin-top: 80px;
}

.phone-container {
    display: flex;
    justify-content: center;
}

.phone-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    width: 100%;
}

.phone-img {
    width: 100%;
    height: auto;
    display: block;
}

.phone-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--gray-light);
}

.phone-feature {
    padding: 30px;
    text-align: center;
    border-right: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-feature:last-child {
    border-right: none;
}

.phone-feature i {
    width: 60px;
    height: 60px;
    background-color: rgba(42, 110, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 20px;
}

.phone-feature h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.phone-feature p {
    color: var(--gray);
    font-size: 15px;
}

/* Development Process */
.development {
    background-color: white;
}

.development-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.development-card {
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    padding: 30px;
    border-left: 4px solid var(--primary);
}

.dev-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(42, 110, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 20px;
}

.development-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark);
}

.development-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Waitlist */
.waitlist {
    background-color: #f8fafc;
}

.waitlist-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.waitlist-form {
    margin-top: 40px;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group input {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.form-checkbox input {
    margin-top: 5px;
}

.waitlist-count {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(42, 110, 204, 0.1);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
}

.waitlist-count i {
    color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    max-width: 350px;
}

.footer-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}

.footer-text {
    margin: 20px 0;
    color: #cbd5e1;
}

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.trust-item i {
    color: var(--secondary);
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-column h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-column a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 30px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .hero-image {
        width: 100%;
    }
    
    .development-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 32px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        width: 100%;
        max-width: 400px;
        margin-bottom: 30px;
    }
    
    .phone-features {
        grid-template-columns: 1fr;
        border-top: none;
    }
    
    .phone-feature {
        border-right: none;
        border-bottom: 1px solid var(--gray-light);
        flex-direction: row;
        text-align: left;
        gap: 20px;
        padding: 20px;
    }
    
    .phone-feature:last-child {
        border-bottom: none;
    }
    
    .phone-feature i {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links a {
        padding: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .development-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input {
        min-width: 100%;
    }
    
    .waitlist-card {
        padding: 30px 20px;
    }
    
    .phone-feature {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .phone-feature i {
        margin-bottom: 15px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .overlay-text h3 {
        font-size: 18px;
    }
    
    .overlay-text p {
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    /* Важное: кнопки всегда в ряд на всех экранах */
    .hero-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 500px;
    }
    
    .hero-buttons .btn {
        flex: 1;
        min-width: 180px;
        text-align: center;
        white-space: nowrap;
    }
}

@media (max-width: 650px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-buttons {
        max-width: 100%;
    }
    
    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 550px) {
    .hero-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-buttons .btn {
        min-width: 160px;
        flex: none;
        width: calc(50% - 8px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    .development-card {
        padding: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .step-content h3 {
        font-size: 18px;
    }
    
    .step-content p {
        font-size: 15px;
    }
    
    .phone-feature h4 {
        font-size: 16px;
    }
    
    .phone-feature p {
        font-size: 14px;
    }
    
    /* Для очень маленьких экранов кнопки все равно в ряд */
    .hero-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .hero-buttons .btn {
        width: 48%;
        min-width: auto;
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .hero-buttons .btn {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* Animation for feature cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .step, .development-card {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }
.feature-card:nth-child(5) { animation-delay: 0.4s; }
.feature-card:nth-child(6) { animation-delay: 0.5s; }

.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.4s; }

.development-card:nth-child(2) { animation-delay: 0.1s; }
.development-card:nth-child(3) { animation-delay: 0.2s; }
.development-card:nth-child(4) { animation-delay: 0.3s; }
