/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fff;
    overflow-x: hidden;
    max-width: 100vw;
}

:root {
    --primary-color: #2E7D32;
    --secondary-color: #4CAF50;
    --accent-color: #8BC34A;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-green: #e8f5e8;
    --border-color: #e0e0e0;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 20px rgba(46, 125, 50, 0.1);
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    max-width: 100%;
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: var(--bg-green);
}

.nav-menu a.active {
    color: var(--primary-color);
    background: var(--bg-green);
    font-weight: 700;
}

/* Скрываем кнопку мобильного меню на десктопе */
.mobile-menu-button {
    display: none;
}

/* Обеспечиваем правильное отображение меню на десктопе */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: white;
    padding: 140px 0 100px;
    text-align: center;
    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="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    opacity: 0.85;
    font-weight: 400;
    line-height: 1.5;
}

.hero-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.info-icon {
    font-size: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 0.9rem 2.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    position: relative;
    z-index: 2;
    line-height: 1.4;
}

.cta-button:hover {
    background: var(--bg-green);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.3), 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Sections */
section {
    padding: 100px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
    text-transform: none;
    letter-spacing: -0.5px;
    position: relative;
    line-height: 1.3;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    opacity: 0.8;
}

/* About Section */
.about {
    background: var(--bg-light);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #4b5563;
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.1);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.2);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature h3 {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Program Section */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 75px;
    top: 60px;
    bottom: -20px;
    width: 2px;
    background: #e5e7eb;
}

.time {
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content h3 {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Speakers Section */
.speakers {
    background: #f8fafc;
}

/* Audience Section */
.audience {
    background: white;
}

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

.audience-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.audience-item:hover {
    border-color: #2563eb;
    transform: translateY(-5px);
}

.audience-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.audience-item h3 {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Benefits Section */
.benefits {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #4b5563;
}

.benefits-text .highlight {
    font-weight: 600;
    color: #2563eb;
    font-size: 1.2rem;
}

.benefits-features {
    display: grid;
    gap: 1.5rem;
}

.benefit {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit h3 {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

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

.speaker {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
    position: relative;
}

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

.speaker-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem auto;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.1);
}

.speaker-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.speaker:hover .speaker-avatar-img {
    transform: scale(1.05);
}

/* Fallback для аватаров без изображения */
.speaker-avatar:not(:has(.speaker-avatar-img)) {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 2rem;
}

.speaker h3 {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.speaker p:not(.speaker-title) {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.speaker-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Register Section */
.register {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.register-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 3rem;
}

.registration-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    max-width: 100%;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.submit-button {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

.footer-section {
    text-align: center;
    min-width: 200px;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-section:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #f9fafb;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #d1d5db;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-section:hover p {
    color: #e5e7eb;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #93c5fd;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1rem;
    }
    
    .logo-image {
        height: 40px;
        max-width: 180px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        padding: 0 10px;
    }
    
    .hero-subtitle {
        padding: 0 15px;
        font-size: 1rem;
    }
    
    .hero-info {
        flex-direction: column;
        gap: 1rem;
        padding: 0 10px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
        border-radius: 25px;
    }
    
    section h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline-item::after {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .checkbox-item {
        padding: 0.5rem 0;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
        text-align: left;
    }
    
    .mobile-menu-button {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary-color);
        padding: 0.5rem;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-button:hover {
        background: var(--bg-green);
    }
    
    .mobile-menu-button.active {
        background: var(--primary-color);
        color: white;
        transform: rotate(90deg);
    }
    
    .speakers-grid {
        grid-template-columns: 1fr;
    }
    
    .speaker-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .audience-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem 0.5rem;
    }
    
    .nav-menu a {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .mobile-menu-button {
        font-size: 1.3rem;
        padding: 0.4rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        padding: 0 5px;
    }
    
    .hero-subtitle {
        padding: 0 10px;
        font-size: 0.95rem;
    }
    
    .hero-info {
        padding: 0 5px;
    }
    
    .info-item {
        font-size: 0.95rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 20px;
        letter-spacing: 0.3px;
    }
    
    section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 80px 0 50px;
    }
    
    .registration-form {
        padding: 1rem;
        margin: 0 10px;
    }
    
    .footer-content {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .timeline {
        padding: 0 10px;
    }
    
    .speakers-grid,
    .audience-grid {
        padding: 0 10px;
    }
    
    .speaker-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
    
    .checkbox-item {
        padding: 0.3rem 0;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select {
        font-size: 16px; /* Предотвращает зум на iOS */
    }
}
