/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 16px;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-top {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 0.5rem 0;
    overflow: hidden;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-greetings {
    display: flex;
    gap: 1rem;
    animation: slideGreetings 15s infinite;
}

.greeting {
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    font-size: 0.9rem;
}

.greeting[data-lang="en"] { color: #dc2626; }
.greeting[data-lang="ru"] { color: #1d4ed8; }
.greeting[data-lang="kz"] { color: #059669; }
.greeting[data-lang="uz"] { color: #7c3aed; }
.greeting[data-lang="ua"] { color: #0891b2; }
.greeting[data-lang="by"] { color: #ea580c; }

@keyframes slideGreetings {
    0%, 15% { transform: translateX(0); }
    20%, 35% { transform: translateX(-16.66%); }
    40%, 55% { transform: translateX(-33.33%); }
    60%, 75% { transform: translateX(-50%); }
    80%, 95% { transform: translateX(-66.66%); }
    100% { transform: translateX(-83.33%); }
}

.contact-quick {
    color: #1f2937;
    font-weight: 500;
    font-size: 0.9rem;
}

.header-main {
    background: #fff;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

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

.logo-icon {
    position: relative;
    font-size: 2rem;
}

.book-icon {
    display: inline-block;
    animation: bounce 2s infinite;
}

.globe-icon {
    position: absolute;
    right: -10px;
    top: -5px;
    font-size: 1.2rem;
    animation: spin 8s linear infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text h1 {
    color: #2563eb;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text .ltd {
    font-size: 0.8em;
    opacity: 0.7;
}

.logo-text p {
    color: #4b5563;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.flag {
    font-size: 1.1em;
}

.sparkle {
    animation: twinkle 1.5s infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.3; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.2); }
}

.languages-we-serve {
    margin-top: 0.3rem;
}

.languages-we-serve small {
    color: #6b7280;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav a:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.nav a:hover:before {
    left: 100%;
}

.nav a:hover,
.nav a.active {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    border-color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    background-image: url('../images/hero-classroom.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #fbbf24;
    color: #1f2937;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #2563eb;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid #6b7280;
    color: #6b7280;
}

.btn-outline:hover {
    background: #6b7280;
    color: #fff;
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

/* Features section */
.features {
    padding: 5rem 0;
    background: #f8fafc;
}

.features h3 {
    text-align: center;
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 3rem;
}

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

.feature {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.feature h4 {
    color: #2563eb;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* About content */
.about-content {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    color: #2563eb;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

.about-stats h3 {
    color: #2563eb;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.stat h4 {
    font-size: 2.5rem;
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #6b7280;
    font-weight: 500;
}

/* Team section */
.team {
    padding: 5rem 0;
    background: #f8fafc;
}

.team h3 {
    text-align: center;
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.team > p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.team-member {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.team-member h4 {
    color: #2563eb;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Courses section */
.courses {
    padding: 5rem 0;
}

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

.course-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.course-card h3 {
    color: #2563eb;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.course-level {
    background: #fbbf24;
    color: #1f2937;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.course-description {
    margin-bottom: 2rem;
}

.course-description p {
    margin-bottom: 1rem;
    color: #4b5563;
}

.course-description ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.course-description li {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.course-details {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.course-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.course-features {
    padding: 5rem 0;
    background: #f8fafc;
}

.course-features h3 {
    text-align: center;
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 3rem;
}

/* Contact section */
.contact {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-form h3 {
    color: #2563eb;
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-info h3 {
    color: #2563eb;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.contact-item h4 {
    color: #1f2937;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #6b7280;
}

.contact-item a {
    color: #2563eb;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* FAQ section */
.faq {
    padding: 5rem 0;
    background: #f8fafc;
}

.faq h3 {
    text-align: center;
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 3rem;
}

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

.faq-item {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.faq-item h4 {
    color: #2563eb;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Legal content */
.legal-content {
    padding: 5rem 0;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
}

.legal-text h3 {
    color: #2563eb;
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.legal-text h3:first-child {
    margin-top: 0;
}

.legal-text h4 {
    color: #1f2937;
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.legal-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #4b5563;
}

.legal-text ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.legal-text a {
    color: #2563eb;
    text-decoration: none;
}

.legal-text a:hover {
    text-decoration: underline;
}

/* Cookie table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.cookie-table th,
.cookie-table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #d1d5db;
}

.cookie-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1f2937;
}

.cookie-table td {
    color: #4b5563;
}

/* CTA section */
.cta {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: #fbbf24;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: #d1d5db;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    min-width: 300px;
}

.cookie-content a {
    color: #fbbf24;
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .header-main .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        text-align: center;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .languages-we-serve small {
        text-align: center;
        justify-content: center;
    }
    
    .nav ul {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .language-greetings {
        overflow: hidden;
        max-width: 200px;
    }
    
    .header-top .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .contact-quick {
        font-size: 0.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .features,
    .about-content,
    .team,
    .courses,
    .contact,
    .faq,
    .legal-content,
    .cta {
        padding: 3rem 0;
    }
    
    .course-card {
        padding: 1.5rem;
    }
}