:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --dark-color: #1a252f;
    --text-color: #555;
    --light-color: #ecf0f1;
    --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gradient-accent: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #ffffff;
}

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

.main-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: white;
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.welcome-section {
    background: var(--light-color);
    padding: 80px 25px;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 50px;
}

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

.welcome-item {
    background: white;
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.welcome-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.welcome-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.lang-label {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 16px;
}

.features-section {
    padding: 80px 25px;
    background: white;
}

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

.feature-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--light-color);
    border-radius: 12px;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 50px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

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

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

.mistakes-section {
    padding: 80px 25px;
    background: var(--light-color);
}

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

.mistake-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.mistake-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

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

.mistake-card p {
    color: var(--text-color);
    line-height: 1.7;
}

.latest-posts {
    padding: 80px 25px;
    background: white;
}

.posts-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.post-preview-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.post-preview-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-preview-content {
    padding: 30px;
}

.post-preview-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.post-preview-content p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
}

.view-all-container {
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    border-radius: 8px;
    transition: var(--transition);
}

.view-all-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.main-footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 25px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 10px;
}

.registration-number {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 15px;
}

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

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

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    padding: 30px;
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

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

.cookie-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.cookie-text p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.cookie-link {
    color: var(--primary-color);
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.accept-btn:hover {
    background: #229954;
}

.reject-btn {
    background: #95a5a6;
    color: white;
}

.reject-btn:hover {
    background: #7f8c8d;
}

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

.customize-btn:hover {
    background: var(--secondary-color);
}

@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding: 50px 25px;
    }

    .hero-title {
        font-size: 38px;
    }

    .nav-list {
        flex-direction: column;
    }

    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .posts-preview,
    .features-grid,
    .mistakes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }
}