/* Google-style Professional Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Navigation Styles */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 20px;
}

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

.logo {
    font-size: 24px;
    font-weight: 500;
    color: #4285f4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #3367d6;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #5f6368;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: #1a73e8;
}

.nav-link.primary {
    background-color: #1a73e8;
    color: white;
}

.nav-link.primary:hover {
    background-color: #1557b0;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #5f6368;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
   /* padding: 20px; */
}

.mobile-menu.active {
    display: block;
}

.mobile-menu .nav-menu {
    flex-direction: column;
    gap: 16px;
}

/* Main Content */
.main-content {
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

/* Banner Styles */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 0 20px;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.banner-text {
    color: white;
}

.banner-text h1 {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.2;
}

.banner-text p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.banner-image {
    text-align: center;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
   /* box-shadow: 0 8px 32px rgba(0,0,0,0.3); */
}

/* Section Styles */
.section {
    padding: 80px 20px;
}

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

.section-title {
    font-size: 32px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 48px;
    color: #202124;
}

/* CTA Panel */
.cta-panel {
    background-color: #f8f9fa;
    padding: 60px 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 80px;
}

.cta-panel h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #202124;
}

.cta-panel p {
    font-size: 16px;
    color: #5f6368;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: #1557b0;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.btn.secondary {
    background-color: transparent;
    color: #1a73e8;
    border: 1px solid #dadce0;
}

.btn.secondary:hover {
    background-color: #f8f9fa;
}

/* Teachers Grid */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

.teacher-card {
    text-align: center;
    padding: 32px 24px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.teacher-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 24px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #202124;
}

.teacher-bio {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.5;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.pricing-card {
    background-color: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border-color: #1a73e8;
    position: relative;
}

.pricing-card.featured::before {
    content: 'Популярен';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a73e8;
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.pricing-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #202124;
}

.pricing-subtitle {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 24px;
}

.pricing-price {
    font-size: 36px;
    font-weight: 400;
    color: #1a73e8;
    margin-bottom: 24px;
}

.pricing-description {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Course Cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.course {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.snimka_course {
    height: 200px;
    background-color: #f8f9fa;
    overflow: hidden;
}

.snimka_course img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zaglavie_course {
    padding: 24px 24px 16px;
    font-size: 20px;
    font-weight: 500;
    color: #202124;
}

.button_course {
    padding: 0 24px 24px;
}

.button_course .btn {
    width: 100%;
    text-align: center;
}

/* Course Page Styles */
.course-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 20px 80px;
    text-align: center;
}

.course-banner h1 {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 24px;
}

.course-banner p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.course-content {
    padding: 80px 20px;
}

.course-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.course-description {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.course-description h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 24px;
    color: #202124;
}

.course-description p {
    font-size: 16px;
    color: #5f6368;
    margin-bottom: 24px;
    line-height: 1.6;
}

.course-sidebar {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
}

.course-outline {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.course-outline h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 24px;
    color: #202124;
}

.course-outline ul {
    list-style: none;
    padding: 0;
}

.course-outline li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #5f6368;
}

.course-outline li:last-child {
    border-bottom: none;
}

/* Login Page Styles */
.login-container {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
}

.login-form {
    background-color: white;
    padding: 48px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-form h1 {
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 32px;
    color: #202124;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #202124;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #1557b0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
 
 .mobile-menu {
    display: block;
}
  
   .mobile-menu.active {
    display: block;
}  
 
 
    .mobile-menu.active .nav-menu{
    display: block;

}  

    .mobile-menu.active .nav-menu .nav-link{
    margin: 10px;

}  

    .nav-menu .nav-link {
        line-height: 50px;
    }


    .banner-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .banner-text h1 {
        font-size: 36px;
    }
    
    .banner-text p {
        font-size: 18px;
    }
    
    .teachers-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-details {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .course-banner h1 {
        font-size: 36px;
    }
    
    .course-banner p {
        font-size: 18px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .cta-panel {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }
 
  .mobile-menu {
    display: block;
}
  
   .mobile-menu.active {
    display: block;
}  
 
 
     .mobile-menu.active .nav-menu .nav-link{
    margin: 10px;

}  

    .nav-menu .nav-link {
        line-height: 50px;
    }
       
    .banner-text h1 {
        font-size: 28px;
    }
    
    .banner-text p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .course-banner h1 {
        font-size: 28px;
    }
    
    .course-banner p {
        font-size: 16px;
    }
    
    .login-form {
        padding: 32px 24px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

