/* ===== СБРОС СТИЛЕЙ И БАЗОВЫЕ НАСТРОЙКИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* ===== ПЕРЕМЕННЫЕ CSS ===== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

[data-theme="dark"] {
    --primary-color: #8b5cf6;
    --primary-dark: #6366f1;
    --secondary-color: #fbbf24;
    --accent-color: #10b981;
    --text-primary: #f3f4f6;
    --text-secondary: #a1a1aa;
    --text-light: #d1d5db;
    --bg-primary: #18181b;
    --bg-secondary: #232336;
    --bg-dark: #09090b;
    --border-color: #27272a;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #232336 0%, #6366f1 100%);
    --gradient-secondary: linear-gradient(135deg, #fbbf24 0%, #8b5cf6 100%);
}

/* ===== УТИЛИТЫ ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
    border: none;
    transition: background 0.4s, color 0.4s;
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #38bdf8 100%);
    color: #18181b;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background 0.4s;
}

[data-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a, .footer-links a, .contact-link {
    color: inherit;
    transition: color 0.3s;
}

a:hover, .footer-links a:hover, .contact-link:hover {
    color: var(--primary-color);
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: background 0.4s, color 0.4s;
}

.nav-logo-img {
    height: 32px; /* или подходящий размер */
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

.navbar.scrolled {
    background: var(--bg-secondary);
    transition: background 0.4s;
}

[data-theme="dark"] .navbar.scrolled {
    background: #232336;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s, background 0.4s;
}

.nav-menu.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    border-radius: 0 0 12px 12px;
    z-index: 2000;
    transition: background 0.4s, color 0.4s;
}

[data-theme="dark"] .nav-menu.active {
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
}

.nav-menu.active a {
    color: var(--text-primary);
}

/* ===== ГЛАВНАЯ СЕКЦИЯ (HERO) ===== */
.hero {
    padding: 120px 0 80px;
    background: var(--bg-secondary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    transition: background 0.4s;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border-radius: 36px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

/* Вырез (notch) */
.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #0f172a;
    border-radius: 12px;
    z-index: 5;
    box-shadow: inset 0 -2px 4px rgba(255,255,255,0.05);
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.06), inset 0 0 40px rgba(0,0,0,0.25);
}

/* Внутренняя тень по краям экрана для глубины */
.phone-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.25);
    pointer-events: none;
}

/* Подгонка фона у слайдов под экран */
.phone-slide {
    object-fit: cover; /* заполняем экран как фото на смартфоне */
    background: #000; /* черные поля если не 16:9 */
}

/* Корректируем стрелки, чтобы не выходили за экран */
.phone-slider-arrow.left { left: 8px; }
.phone-slider-arrow.right { right: 8px; }

.telegram-message {
    background: var(--primary-color);
    color: var(--bg-primary);
    border-radius: 12px;
    padding: 16px;
    max-width: 250px;
    box-shadow: var(--shadow-md);
    transition: background 0.4s, color 0.4s;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
}

.message-content p {
    margin: 8px 0;
    font-size: 14px;
}

/* ===== СЕКЦИИ ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* ===== СЕКЦИЯ ВОЗМОЖНОСТЕЙ ===== */
.features {
    padding: 80px 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: background 0.4s, color 0.4s;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== СЕКЦИЯ ПРЕИМУЩЕСТВ ===== */
.benefits {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.benefits-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: background 0.4s, color 0.4s;
}

.benefit-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 80px;
}

.benefit-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.benefit-text p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== СЕКЦИЯ ОТЗЫВОВ ===== */
.reviews {
    padding: 80px 0;
    background: var(--bg-primary);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: background 0.4s, color 0.4s;
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
}

.review-stars i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.review-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-author strong {
    color: var(--text-primary);
    font-weight: 600;
}

.review-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== СЕКЦИЯ КОНТАКТОВ ===== */
.contact {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--bg-primary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    transition: background 0.4s, color 0.4s;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
}

.contact-form {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: background 0.4s, color 0.4s;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== ФУТЕР ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    transition: background 0.4s, color 0.4s;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    transition: border-color 0.4s, color 0.4s;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: color 0.4s;
    display: flex;
    align-items: center;
}
.theme-toggle:hover {
    color: var(--secondary-color);
}

body, .hero, .features, .benefits, .reviews, .contact, .footer {
    transition: background 0.4s, color 0.4s;
}

.section-title,
.hero-title,
.feature-card h3,
.benefit-text h3,
.review-author strong,
.contact-info h3 {
    color: var(--text-primary);
    transition: color 0.4s;
}

.hero-description,
.feature-card p,
.benefit-text p,
.review-card p,
.contact-info p,
.review-author span {
    color: var(--text-secondary);
    transition: color 0.4s;
}

.contact-link {
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background 0.4s, color 0.4s;
}

.contact-link:hover {
    color: var(--primary-color);
}

.btn-telegram {
    background: linear-gradient(135deg, #229ED9 0%, #38bdf8 100%);
    color: #fff !important;
    box-shadow: 0 0 16px 0 rgba(34,158,217,0.25), 0 4px 16px 0 rgba(56,189,248,0.15);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn-telegram:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #229ED9 100%);
    color: #fff !important;
    box-shadow: 0 0 24px 0 rgba(34,158,217,0.35), 0 8px 24px 0 rgba(56,189,248,0.18);
}
[data-theme="dark"] .btn-telegram {
    background: linear-gradient(135deg, #38bdf8 0%, #229ED9 100%);
    color: #18181b !important;
    box-shadow: 0 0 24px 0 rgba(56,189,248,0.25), 0 8px 24px 0 rgba(34,158,217,0.18);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .logo-img {
        height: 32px;
    }

    .theme-toggle {
        margin-left: 0.5rem;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .feature-card,
    .review-card {
        padding: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
} 

/* ===== СЛАЙДЕР В ТЕЛЕФОНЕ ===== */
.phone-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg-primary);
}
.phone-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: contain; /* чтобы фото не обрезались */
    background: var(--bg-primary); /* полосы по краям при несоответствии пропорций */
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 16px;
    z-index: 1;
    cursor: zoom-in;
}
.phone-slide.active {
    opacity: 1;
    z-index: 2;
}
.phone-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.phone-slider-arrow.left { left: 10px; }
.phone-slider-arrow.right { right: 10px; }
.phone-slider-arrow:hover {
    background: rgba(0,0,0,0.55);
}

/* ===== ЛАЙТБОКС ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.lightbox-overlay.open { display: flex; }
.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
}
.lightbox-image {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
}
.lightbox-close {
    top: -16px;
    right: -16px;
    transform: none;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.7);
}
.lightbox-prev { left: -56px; }
.lightbox-next { right: -56px; }
@media (max-width: 768px) {
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
} 