html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #E8E6FF;
    --secondary: #FF6B8A;
    --accent: #00C9A7;
    --dark: #2D2B55;
    --gray-light: #F8F9FC;
    --gray: #6B7280;
    --text: #1F2937;
    --white: #FFFFFF;
    --shadow: 0 4px 24px rgba(108, 99, 255, 0.12);
    --shadow-lg: 0 12px 48px rgba(108, 99, 255, 0.18);
    --radius: 16px;
    --radius-sm: 10px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar-baby {
    background: rgba(242, 220, 141, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar-baby .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-baby .navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.navbar-baby .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.navbar-baby .nav-link:hover {
    color: var(--primary) !important;
}

.btn-download {
    background: var(--primary);
    color: white !important;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    color: white !important;
}

.btn-download-green {
    background: #2A9D4E;
}

.btn-download-green:hover {
    background: #228B42;
}

.btn-download-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-download-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
}

.btn-download-outline:hover {
    background: var(--primary);
    color: white !important;
}

/* ===== HERO ===== */
.hero-section {
    background: linear-gradient(to right, var(--primary-light) 0%, #ffffff 55%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-phone-placeholder {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 36px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-phone-placeholder::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 28px;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 0;
}

.section-gray {
    background: var(--gray-light);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 640px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feature-card img {
    margin-top: auto;
    padding-top: 1rem;
}

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

.feature-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card-icon.purple { background: var(--primary-light); color: var(--primary); }
.feature-card-icon.pink { background: #FFF0F3; color: var(--secondary); }
.feature-card-icon.green { background: #E6FAF5; color: var(--accent); }
.feature-card-icon.blue { background: #E6F4FF; color: #2196F3; }

.feature-card h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* ===== SHOWCASE ROWS ===== */
.showcase-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.showcase-image-placeholder {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-light), #FFF0F3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.showcase-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.showcase-content p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.link-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s;
}

.link-more:hover {
    gap: 0.7rem;
    color: var(--primary-dark);
}

/* ===== FEATURES GRID ===== */
.features-grid-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.features-grid-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 0.75rem;
}

.features-grid-item h6 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.features-grid-item p {
    color: var(--gray);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
}

.testimonial-stars {
    color: #FFB800;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.testimonial-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 4rem 0;
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 580px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.cta-stat-value {
    font-size: 2rem;
    font-weight: 800;
}

.cta-stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.btn-download-white {
    background: white;
    color: var(--primary) !important;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-download-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    color: var(--primary) !important;
}

/* ===== CONTACT ===== */
.contact-section {
    padding: 5rem 0;
}

.contact-form {
    max-width: 560px;
    margin: 0 auto;
}

.form-control-custom {
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.12);
}

.btn-send {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-send:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: white;
}

/* ===== FOOTER ===== */
.footer-baby {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 2rem 0;
}

.footer-baby a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-title { font-size: 2.25rem; }
    .hero-section { padding: 4rem 0 3rem; }
    .showcase-row { flex-direction: column; gap: 2rem; }
    .hero-stats { gap: 1.5rem; }
    .cta-stats { gap: 1.5rem; }
}

@media (max-width: 767px) {
    /* Typography */
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.95rem; }

    /* Hero */
    .hero-section { padding: 5rem 0 2.5rem; background: linear-gradient(to bottom, var(--primary-light) 0%, #ffffff 100%); }
    .hero-section .col-lg-6.text-center { margin-top: 1.5rem; }
    .hero-section .col-lg-6.text-center img { max-width: 65%; }

    /* Sections */
    .section { padding: 2.5rem 0; }

    /* Navbar brand — скрываем длинное название */
    .navbar-brand { font-size: 1rem; }
    .navbar-brand img { width: 28px !important; height: 28px !important; }

    /* Feature cards */
    .feature-card { padding: 1.25rem; }
    .feature-card img { border-radius: var(--radius-sm); }

    /* Showcase images */
    .showcase-image-placeholder { max-width: 100%; }

    /* Download CTA */
    .hero-stats { flex-wrap: wrap; gap: 1rem; }
    .cta-stats { flex-wrap: wrap; gap: 1rem; }

    /* Contact form */
    .contact-section { padding: 2.5rem 0; }

    /* Footer */
    .footer-baby { text-align: center; }
    .footer-baby .container { gap: 0.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.5rem; }
    .section-title { font-size: 1.35rem; }
    .hero-section { padding: 4.5rem 0 2rem; }
    .hero-section .col-lg-6.text-center img { max-width: 55%; }

    /* Navbar — ещё компактнее */
    .navbar-brand span { display: none; }

    /* Кнопка Google Play в мобильном меню */
    .navbar-collapse .btn-download {
        display: inline-flex !important;
        margin: 0.5rem 0;
        width: 100%;
        justify-content: center;
    }

    /* Feature cards в одну колонку */
    .feature-card { padding: 1rem; }

    /* Showcase картинки */
    .col-lg-5 img, .col-lg-6 img { border-radius: var(--radius-sm); }

    /* Секция Download CTA */
    .container.text-center h2 { font-size: 1.5rem; }
    .btn-download-green { font-size: 1rem !important; padding: 0.65rem 1.5rem !important; }
}
