/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', sans-serif;
}

body {
    background: #ffffff;
    color: #333;
    overflow-x: hidden;
}

/* Навигация */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    color: #007BFF;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 0;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #007BFF;
}

.lang-switch {
    margin-left: 20px;
}

.lang-switch a {
    color: #333;
    margin: 0 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
}

.lang-switch a:hover {
    color: #007BFF;
}

/* Гамбургер-меню */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Мобильное меню */
.nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    z-index: 999;
    overflow-y: auto;
}

.nav-menu.active {
    display: flex;
}

/* Стили мобильного меню */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu ul {
        width: 100%;
        padding: 0;
    }

    .nav-menu ul li {
        width: 100%;
        list-style: none;
        margin: 10px 0;
    }

    .nav-menu ul li a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        background-color: #ffffff;
        color: #333;
        text-decoration: none;
        text-align: center;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    .nav-menu ul li a:hover {
        background-color: #f0f0f0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-menu ul li a:active {
        background-color: #e0e0e0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    }

    .nav-menu .lang-switch {
        margin-top: 30px;
        text-align: center;
    }

    .nav-menu .lang-switch a {
        background-color: #ffffff;
        color: #333;
        padding: 10px 15px;
        margin: 0 5px;
        border-radius: 8px;
        text-decoration: none;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    }

    .nav-menu .lang-switch a:hover {
        background-color: #f0f0f0;
    }

    .nav-menu .lang-switch a:active {
        background-color: #e0e0e0;
    }
}

/* Шапка */
header {
    height: 100vh;
    background: url('downloaded_images/photo-1518770660439-4636190af475_result.jpg') no-repeat center center/cover;
    position: relative;
    padding-top: 100px;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

header .header-content {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

header p {
    font-size: 24px;
    margin-bottom: 30px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

header .cta-buttons a {
    padding: 15px 30px;
    background-color: #007BFF;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    margin: 10px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

header .cta-buttons a:hover {
    background-color: #0056b3;
}

/* Секции */
section {
    padding: 80px 20px;
    position: relative;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: #555;
}

/* Фоновые изображения для секций */
#about {
    background: url('downloaded_images/pexels-photo-373076_result.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: #fff;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#features {
    background: url('downloaded_images/photo-1518770660439-4636190af475_result.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: #fff;
}

#features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#testimonials {
    background: url('downloaded_images/photo-1498050108023-c5249f4df085_result.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: #fff;
}

#testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#pricing {
    background: url('downloaded_images/pexels-photo-3184638_result.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: #fff;
}

#pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#register {
    background: url('downloaded_images/photo-1515378791036-0648a3ef77b2_result.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: #fff;
}

#register::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Текстовые стили для секций с фоном */
#about .section-header h2,
#about .section-header p,
#about .text p,
#features .section-header h2,
#features .section-header p,
#testimonials .section-header h2,
#testimonials .section-header p,
#pricing .section-header h2,
#pricing .section-header p,
#register .section-header h2,
#register .section-header p {
    color: #fff;
}

/* Дополнительные стили для секций */
.about-course, .testimonials, .pricing {
    position: relative;
    z-index: 1;
}

.about-course .text, .about-course .image {
    color: #fff;
}

.testimonial p, .testimonial h4 {
    color: #fff;
}

.pricing-plan h3, .pricing-plan p, .pricing-plan ul li, .pricing-plan .price {
    color: #fff;
}

/* Canvas */
#aiCanvas {
    width: 100%;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 40px 0;
}

/* Отзывы */
.testimonials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.testimonial {
    width: 300px;
    margin: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
}

.testimonial img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 2px solid #fff;
}

.testimonial p {
    font-size: 16px;
    margin-bottom: 15px;
}

.testimonial h4 {
    font-size: 18px;
    font-weight: bold;
}

/* Секция "Цены" */
.pricing {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.pricing-plan {
    width: 300px;
    margin: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
}

.pricing-plan img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.pricing-plan h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.pricing-plan p {
    font-size: 16px;
    margin-bottom: 20px;
}

.pricing-plan ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.pricing-plan ul li {
    font-size: 16px;
    margin-bottom: 10px;
}

.pricing-plan .price {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}

.pricing-plan .cta-button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.pricing-plan .cta-button:hover {
    background-color: #0056b3;
}

/* Секция "Регистрация" */
.registration-form {
    text-align: center;
}

.registration-form iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
}

/* Футер */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

footer p, footer a {
    color: #fff;
    text-decoration: none;
    margin: 5px 0;
    font-size: 14px;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    header h1 {
        font-size: 32px;
    }

    header p {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .pricing-plan {
        width: 100%;
        margin: 10px 0;
    }
}

.tool-images img {
    max-width: 30%;
    margin: 1%;
    border-radius: 10px;
}

.pricing-plan img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.animation-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 40px 0;
}

#aiCanvas {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Features Section */
.features-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-item {
    width: 300px;
    margin: 20px;
    text-align: center;
}

.feature-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

.feature-item p {
    font-size: 16px;
    color: #ddd;
}

/* AI Services Section */
#ai-services {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

#ai-services .section-content {
    max-width: 1200px;
    margin: 0 auto;
}

#ai-services .section-header {
    text-align: center;
    margin-bottom: 40px;
}

#ai-services .section-header h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #007BFF;
}

#ai-services .section-header p {
    font-size: 18px;
    color: #555;
}

#ai-services .service-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 40px;
}

#ai-services .service-item .text {
    flex: 1;
    padding: 20px;
}

#ai-services .service-item .image {
    flex: 1;
    padding: 20px;
}

#ai-services .service-item .image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#ai-services .service-item h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

#ai-services .service-item p {
    font-size: 16px;
    color: #555;
}

/* Responsive for AI Services */
@media (max-width: 768px) {
    #ai-services .service-item {
        flex-direction: column;
        text-align: center;
    }
}
