@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* Подключение шрифта Inter через @import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

        :root {
            --primary-color: #4361ee;
            --primary-dark: #3a56d4;
            --secondary-color: #7209b7;
            --accent-color: #4cc9f0;
            --light-color: #f8f9fa;
            --dark-color: #212529;
            --gray-color: #6c757d;
            --light-gray: #e9ecef;
            --success-color: #06d6a0;
            --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            --border-radius: 12px;
            --transition: all 0.3s ease;
            --text-dark: #2d3748;
            --gradient-start: #f8f9fa;
            --gradient-end: #f8f9fa;

            --solution-box-color: #4361ee;
            --header-logo-color: #6c757d;
        }

        /* :root {
            --primary-color: #ff6b35;
            --primary-dark: #e85a28;
            --primary-light: #ff8555;
            --secondary-color: #f7931e;
            --gradient-start: #ff6b35;
            --gradient-end: #f7931e;
            --text-dark: #2d3748;
            --text-light: #4a5568;
            --bg-light: #f7fafc;
            --white: #ffffff;
            
            --accent-color: #4cc9f0;
            --light-color: #f8f9fa;
            --dark-color: #212529;
            --gray-color: #6c757d;
            --light-gray: #e9ecef;
            --success-color: #06d6a0;
            --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            --border-radius: 12px;
            --transition: all 0.3s ease;

            --solution-box-color: #4361ee;
            --header-logo-color: #ffffff;
        } */

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

        /* чтобы при прокрутке на desktop-е нужный блок не заезжал под header */
        #how-it-works,
        #pricing,
        #features,
        #cta,
        #contact,
        #faq {
            scroll-margin-top: 80px;
        }

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

        h1, h2, h3, h4 {
            font-weight: 700;
            line-height: 1.3;
            margin-bottom: 1rem;
        }

        h1 {
            font-size: 2.8rem;
        }

        h2 {
            font-size: 2.2rem;
            text-align: center;
            margin-bottom: 2.5rem;
        }

        h3 {
            font-size: 1.5rem;
        }

        p {
            margin-bottom: 1.2rem;
            color: var(--gray-color);
        }

        a {
            text-decoration: none;
            color: inherit;
        }

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

        section {
            padding: 80px 0;
        }

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

        .btn {
            display: inline-block;
            padding: 14px 32px;
            border-radius: var(--border-radius);
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            text-align: center;
        }

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

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

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

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

        .btn-large {
            padding: 16px 40px;
            font-size: 1.1rem;
        }


        /* Header */
        .header {
            background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
            color: white;
            padding: 1rem 2rem;
            /* position: relative; */
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        #header-section-placeholder {
            background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
            color: white;
            /* padding: 1rem 2rem; */
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

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

        .logo {
            color: var(--header-logo-color);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 2rem;
            font-weight: bold;
            letter-spacing: -1px;
        }

        .logo-img {
            height: 40px;
            width: auto;
            opacity: 1 !important;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /* Language Selector */
        .language-selector {
            position: relative;
        }

        .language-button {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            color: var(--header-logo-color);
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s;
            backdrop-filter: blur(10px);
        }

        .language-button:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .flag-icon {
            width: 20px;
            height: 15px;
            object-fit: cover;
            border-radius: 2px;
            opacity: 1 !important;
        }

        .dropdown-arrow {
            font-size: 0.7rem;
            transition: transform 0.3s;
        }

        .language-dropdown {
            position: absolute;
            top: calc(100% + 0.5rem);
            right: 0;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            min-width: 200px;
            max-height: 400px;
            overflow-y: auto;
            display: none;
            z-index: 1000;
        }

        .language-dropdown.show {
            display: block;
        }

        .language-option {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            /* color: var(--text-dark); */
            color: var(--gray-color);
            text-decoration: none;
            transition: 0.2s;
            border-bottom: 1px solid #f0f0f0;
        }

        .language-option:last-child {
            border-bottom: none;
        }

        .language-option:hover {
            background: var(--bg-light);
        }

        .language-option.active {
            background: rgba(255, 107, 53, 0.1);
            /* color: var(--primary-color); */
            color: var(--gray-color);
            font-weight: 600;
        }

        .language-dropdown::-webkit-scrollbar {
            width: 6px;
        }

        .language-dropdown::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .language-dropdown::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 10px;
        }

        .cta-button {
            background: white;
            color: var(--primary-color);
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        }

        /* Hero Section */
        .hero {
            padding-top: 140px;
            padding-bottom: 100px;
            background: linear-gradient(135deg, #f5f7ff 0%, #f0f2ff 100%);
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -200px;
            right: -200px;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(76, 201, 240, 0.1) 0%, rgba(76, 201, 240, 0) 70%);
            border-radius: 50%;
            z-index: 0;
        }

        .hero-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            z-index: 1;
        }

        .hero-text {
            flex: 1;
            max-width: 600px;
        }

        .hero-text h1 {
            color: var(--dark-color);
            margin-bottom: 1.5rem;
        }

        .hero-text p {
            font-size: 1.2rem;
            margin-bottom: 2.5rem;
            color: var(--gray-color);
        }

        .hero-buttons {
            display: flex;
            gap: 20px;
            margin-bottom: 2rem;
        }

        .hero-visual {
            flex: 1;
            max-width: 500px;
            position: relative;
        }

        .demo-container {
            background: white;
            border-radius: 20px;
            padding: 15px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            transform: perspective(1000px) rotateY(-10deg);
            border: 1px solid var(--light-gray);
        }

        .demo-screen {
            background: #1a1a2e;
            border-radius: 12px;
            padding: 20px;
            color: white;
            font-family: monospace;
            position: relative;
            min-height: 300px;
        }

        .subtitle-line {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .subtitle-foreign {
            color: white;
            font-size: 1.1rem;
        }

        .subtitle-native {
            color: #aaa;
            font-size: 1rem;
        }

        .highlighted-word {
            background-color: rgba(67, 97, 238, 0.3);
            padding: 2px 5px;
            border-radius: 4px;
            cursor: pointer;
            position: relative;
            transition: var(--transition);
        }

        .highlighted-word:hover {
            background-color: rgba(67, 97, 238, 0.6);
        }

        .translation-popup {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            background: white;
            color: var(--dark-color);
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            width: 220px;
            z-index: 10;
            display: none;
        }

        .translation-popup.show {
            display: block;
            animation: fadeInUp 0.3s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        .word-display {
            font-weight: 700;
            font-size: 1.2rem;
            color: var(--primary-color);
            margin-bottom: 8px;
        }

        .translation {
            color: var(--gray-color);
            margin-bottom: 12px;
        }

        .add-to-vocab-btn {
            background-color: var(--success-color);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 6px;
            font-weight: 600;
            width: 100%;
            cursor: pointer;
            transition: var(--transition);
        }

        .add-to-vocab-btn:hover {
            background-color: #05c592;
        }

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

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

        .footer-about {
            flex: 2;
            min-width: 300px;
            margin-bottom: 30px;
        }

        .footer-about .logo {
            color: white;
            margin-bottom: 20px;
        }

        .footer-links {
            flex: 1;
            min-width: 200px;
            margin-bottom: 30px;
        }

        .footer-links h3 {
            color: white;
            margin-bottom: 20px;
            font-size: 1.2rem;
        }

        .footer-links ul {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.7);
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: white;
            padding-left: 5px;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.6);
        }

        .screenshot-img {
            display: block;
            margin: 0 auto;
            transition: transform 0.3s ease;
        }

        .screenshot-img:hover {
            transform: scale(1.02);
        }

        .screenshot-container {
            animation: fadeIn 1s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .step-number-circle {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 25px;
            color: white;
            font-size: 1.8rem;
            font-weight: 700;
        }



        /* CTA Section */
        .cta-section {
            text-align: center;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
        }

        .cta-section h2 {
            color: white;
        }

        .cta-section p {
            color: rgba(255, 255, 255, 0.9);
            max-width: 700px;
            margin: 0 auto 40px;
        }

        .cta-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }

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

        .cta-buttons .btn:hover {
            background-color: var(--light-color);
        }

        .cta-buttons .btn-secondary {
            background-color: transparent;
            color: white;
            border-color: white;
        }

        .cta-buttons .btn-secondary:hover {
            background-color: white;
            color: var(--primary-color);
        }

        .app-badge {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            transition: transform 0.2s;
        }

        .app-badge:hover {
            transform: translateY(-3px);
        }

        .badge-text {
            color: rgba(255, 255, 255, 0.9);
            margin: 0;
            font-size: 0.95rem;
            font-weight: 500;
            text-align: center;
            max-width: 200px;
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
            line-height: 1.3;
        }

        .app-badge img {
            height: 60px;
            width: auto;
        }

        /* Languages Section */
        .languages {
            padding: 5rem 2rem;
            background-color: white;
            /* color: white; */
            text-align: center;
        }

        .languages h2 {
            font-size: 2.5rem;
            margin-bottom: 2rem;
        }

        .language-count {
            font-size: 5rem;
            font-weight: 800;
            margin-bottom: 1rem;
        }

        .language-flags-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
            gap: 1rem;
            max-width: 900px;
            margin: 1rem auto 0;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            backdrop-filter: blur(10px);
        }

        .language-flag-item {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0.1rem;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 5px;
            transition: all 0.3s;
            cursor: pointer;
        }

        .language-flag-item:hover {
            transform: scale(1.1);
            background: rgba(255, 255, 255, 0.3);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .language-flag {
            width: 30px;
            height: 20px;
            object-fit: cover;
            border-radius: 2px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            opacity: 1 !important;
        }


        .blog-link {
            margin-left: 2rem;
            font-weight: 100;
            color: inherit;
            text-decoration: none;
            /* padding: 0.5rem 0; */
            transition: opacity 0.2s;
        }

        .blog-link:hover {
            opacity: 0.7;
        }       
         
        /* Responsive Design */
        @media (max-width: 768px) {

            #how-it-works,
            #pricing,
            #features,
            #cta,
            #contact,
            #faq {
                scroll-margin-top: 0px;
            }

            .header {
                position: relative;
            }
            #header-section-placeholder {
                position: relative;
            }

            .screenshot-img {
                max-width: 80%;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            h2 {
                font-size: 1.8rem;
            }
            
            .hero-content {
                flex-direction: column;
                text-align: center;
            }
            
            .hero-text {
                margin-bottom: 50px;
            }
            
            .hero-buttons {
                justify-content: center;
                flex-direction: column;
                align-items: center;
            }
            
            .demo-container {
                transform: none;
            }
            
            .blog-link {
                margin-left: 1rem;
                font-size: 0.9rem;
            }
            
            .header-right {
                gap: 0.5rem;
                /* flex-direction: column; */
            }
            
            .language-button span:first-of-type {
                display: none;
            }
            
            .cta-button {
                /* padding: 0.6rem 1.2rem;
                font-size: 0.9rem; */
                display: none;
            }
            
            .app-badge img {
                height: 45px;
            }
            
            .header-container {
                padding: 15px 20px;
            }
            
            .nav-links {
                display: none;
                position: absolute;
                top: 70px;
                left: 0;
                width: 100%;
                background-color: white;
                flex-direction: column;
                padding: 20px;
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            }
            
            .nav-links.active {
                display: flex;
            }
            
            .nav-links li {
                margin: 10px 0;
            }
            
            .hero {
                padding-top: 120px;
            }
            
            .steps {
                flex-direction: column;
                align-items: center;
            }
            
            .step {
                width: 100%;
                max-width: 400px;
            }
            
            .cta-buttons {
                flex-direction: column;
                align-items: center;
                gap: 15px !important;
            }
            
            .footer-content {
                flex-direction: column;
            }
            
            section {
                padding: 60px 0;
            }
            
            .btn {
                padding: 12px 24px;
            }
        }