/* Общие стили */
:root {
    --button-color: #ff6b6b;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

/* Тулбар */
.toolbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

.toolbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b6b;
}

.profile-icon {
    font-size: 32px;
    color: #ff6b6b;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-icon:hover {
    transform: scale(1.1);
}

/* Hero секция */
.hero {
    padding: 120px 0 80px;
    background: #2c3e50;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 500;
}

.hero-description {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.8;
    line-height: 1.8;
}

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

.hero-img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: translateY(-10px);
}

/* Кнопки */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--button-color);
    color: white;
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(44, 62, 80, 0.4);
}

.btn-secondary {
    background: var(--button-color);
    color: white;
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 62, 80, 0.4);
}

/* Промо блок */
.promo {
    padding: 60px 0;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    text-align: center;
}

.promo-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #d63031;
}

.promo-text {
    font-size: 18px;
    color: #636e72;
    max-width: 600px;
    margin: 0 auto;
}

.promo-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.promo-feature {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.promo-feature i {
    font-size: 28px;
    color: #ff6b6b;
    margin-bottom: 12px;
}

.promo-feature h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 10px;
    line-height: 1.35;
}

.promo-feature p {
    font-size: 15px;
    color: #636e72;
    line-height: 1.5;
}

.promo-btn {
    margin-top: 30px;
}

/* Секции */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #2d3436;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

/* Каталог курсов */
.courses {
    padding: 80px 0;
    background: white;
}

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

.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.course-image {
    height: 200px;
    overflow: hidden;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-img {
    transform: scale(1.05);
}

.course-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3436;
    line-height: 1.4;
}

.course-description {
    color: #636e72;
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-details {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border-left: 4px solid #4ecdc4;
}

.course-details p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #636e72;
    line-height: 1.4;
}

.course-details p:last-child {
    margin-bottom: 0;
}

.course-details strong {
    color: #2d3436;
    font-weight: 600;
}

.course-content .btn {
    margin-top: auto;
    width: 100%;
}

.summer-course-card {
    border: 2px solid rgba(255, 107, 107, 0.35);
}

.course-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: white;
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
}

/* Как проходят занятия */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3436;
}

.feature-card p {
    color: #636e72;
    line-height: 1.6;
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.faq-question {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    margin: 0;
}

.faq-question i {
    color: #ff6b6b;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 200px;
}

.faq-answer p {
    color: #636e72;
    line-height: 1.6;
    margin: 0;
}

/* Форма */
.contact-form {
    padding: 80px 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    color: white;
}

.form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-inner-content {
    padding: 40px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.modal-body {
    padding: 0;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2d3436;
}

.modal-description {
    color: #636e72;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 15px;
}

.modal-features,
.modal-info {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modal-features li,
.modal-info li {
    padding: 8px 0;
    color: #636e72;
    position: relative;
    padding-left: 25px;
}

.modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00b894;
    font-weight: bold;
}

.modal-info li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4ecdc4;
    font-weight: bold;
}

.modal-body .btn {
    width: 100%;
    margin-top: 20px;
}

/* Сообщение об успехе */
.success-message {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.success-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.success-content i {
    font-size: 64px;
    color: #00b894;
    margin-bottom: 20px;
}

.success-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3436;
}

.success-content p {
    color: #636e72;
    line-height: 1.6;
}

/* Сообщение об ошибке */
.error-message {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.error-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.error-content i {
    font-size: 64px;
    color: #ff4757;
    margin-bottom: 20px;
}

.error-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3436;
}

.error-content p {
    color: #636e72;
    line-height: 1.6;
}

/* Футер */
.footer {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info {
    flex: 1;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.footer-description {
    color: #b2bec3;
    line-height: 1.6;
    font-size: 16px;
}

.footer-contact {
    flex: 1;
    text-align: right;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-item i {
    color: #ff6b6b;
    margin-right: 12px;
    font-size: 18px;
    width: 20px;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ff6b6b;
}

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

.footer-bottom p {
    color: #b2bec3;
    font-size: 14px;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-description {
        display: none;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form {
        padding: 30px 20px;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 90%;
    }
    
    .modal-inner-content {
        padding: 30px 25px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-image {
        height: 200px;
    }
    
    .modal-section h3 {
        font-size: 18px;
    }
    
    .modal-features li,
    .modal-info li {
        font-size: 14px;
        padding: 8px 0;
        padding-left: 25px;
        text-align: left;
    }
    
    .promo-title {
        font-size: 24px;
    }
    
    .promo-text {
        font-size: 16px;
    }

    .promo-features {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 22px;
    }

    .promo-feature {
        padding: 18px 14px;
    }

    .promo-feature h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .promo-feature p {
        font-size: 14px;
    }

    .promo-btn {
        margin-top: 22px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .course-content {
        padding: 20px;
    }
    
    .course-title {
        font-size: 18px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
    }
    
    .modal-inner-content {
        padding: 25px 20px;
    }
    
    .modal-title {
        font-size: 22px;
    }
    
    .modal-image {
        height: 180px;
    }
    
    .modal-features li,
    .modal-info li {
        font-size: 14px;
        padding: 8px 0;
        padding-left: 25px;
        text-align: left;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .contact-item {
        margin-bottom: 15px;
    }
}

