:root {
    --primary-color: #ff6b35;
    --primary-dark: #e65a2b;
    --primary-light: #ffb380;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

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

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

/* Navbar - ПОЛНЫЕ СТИЛИ */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.navbar-brand a:hover {
    color: var(--primary-dark);
}

.navbar-brand i {
    font-size: 24px;
}

.navbar-menu {
    display: flex;
}

.navbar-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
}

.navbar-menu a:hover, .navbar-menu a.active {
    color: var(--primary-color);
    background-color: rgba(255, 107, 53, 0.1);
}

.navbar-menu li {
    position: relative;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-hover);
    border-radius: var(--border-radius);
    padding: 15px 0;
    min-width: 200px;
    display: none;
    z-index: 100;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding-left: 25px;
}

.navbar-menu li:hover > .dropdown-menu,
.user-menu:hover .dropdown-menu {
    display: flex;
}

/* User menu dropdown */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar:hover {
    transform: scale(1.1);
}

.navbar-menu ul .dropdown-menu {
    display: none;
}

.user-menu:hover .dropdown-menu {
    display: flex;
}

/* Navbar actions */
.navbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-size: 16px;
}

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

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

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

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

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 20px;
}

.btn:disabled, .btn.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* Navbar toggle for mobile */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 0;
    margin: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
    align-items: center;
}

.hero .hero-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.hero .hero-logo i {
    font-size: 24px;
}

.hero .hero-logo span {
    font-size: 20px;
    font-weight: 700;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 .highlight {
    color: var(--primary-light);
}

.hero-content .subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.stat-item i {
    font-size: 20px;
    color: var(--primary-light);
}

.stat-item span {
    font-size: 16px;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

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

.code-preview {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    max-width: 100%;
}

.code-header {
    background-color: #232f3e;
    padding: 12px 20px;
    display: flex;
    gap: 10px;
}

.code-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.code-header .red { background-color: #ff5f56; }
.code-header .yellow { background-color: #ffbd2e; }
.code-header .green { background-color: #27c93f; }

.code-snippet {
    padding: 30px;
    color: #d4d4d4;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: auto;
}

.code-snippet .keyword { color: #569cd6; }
.code-snippet .string { color: #ce9178; }
.code-snippet .number { color: #b5cea8; }
.code-snippet .comment { color: #6a9955; }

/* Courses Section */
.courses-section {
    padding: 100px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 60px;
}

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

.course-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    animation-delay: var(--delay);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    z-index: 10;
}

.course-badge.coming-soon {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.course-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.course-image i {
    font-size: 80px;
    opacity: 0.3;
}

.course-content {
    padding: 30px;
}

.course-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.course-description {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.course-features {
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
}

.course-features li {
    margin-bottom: 12px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-features i {
    color: var(--primary-color);
    font-size: 14px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.course-level {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.about-content h2 .highlight {
    color: var(--primary-color);
}

.about-text {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 25px;
}

.about-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-feature i {
    font-size: 32px;
    color: var(--primary-color);
    min-width: 40px;
}

.about-feature h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

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

.about-image {
    display: flex;
    justify-content: center;
}

.about-image-content {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 60px;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-hover);
}

.about-icon {
    width: 120px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    color: var(--white);
    font-size: 48px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer - ПОЛНЫЕ СТИЛИ */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__animated {
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content .subtitle {
        font-size: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        transition: var(--transition);
        flex-direction: column;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-menu ul {
        flex-direction: column;
        gap: 15px;
    }

    .navbar-toggle {
        display: block;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .stat-box {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .course-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.task-solution {
    background-color: #e8f4ff;
    border-left: 4px solid #3498db;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-top: 15px;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.task-solution pre {
    background-color: #2c3e50;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    overflow-x: auto;
}

.task-solution code {
    color: #d4d4d4;
}