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

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f1f5;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-tertiary: #6a6a7a;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(59, 130, 246, 0.15);
    --hero-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --section-even: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --section-odd: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(59, 130, 246, 0.15);
    --input-bg: rgba(255, 255, 255, 0.95);
    --input-border: rgba(59, 130, 246, 0.3);
    --button-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    --button-shadow-hover: 0 8px 30px rgba(59, 130, 246, 0.5);
    --switcher-bg: rgba(255, 255, 255, 0.95);
    --switcher-border: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f15;
    --bg-tertiary: #1a1a2e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-tertiary: #808090;
    --card-bg: rgba(26, 26, 46, 0.8);
    --card-border: rgba(59, 130, 246, 0.2);
    --hero-gradient: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    --section-even: linear-gradient(135deg, #0f0f15 0%, #1a1a2e 100%);
    --section-odd: #0a0a0f;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 30px rgba(59, 130, 246, 0.3);
    --input-bg: rgba(10, 10, 15, 0.8);
    --input-border: rgba(59, 130, 246, 0.3);
    --button-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    --button-shadow-hover: 0 8px 30px rgba(59, 130, 246, 0.6);
    --switcher-bg: rgba(20, 20, 25, 0.95);
    --switcher-border: rgba(255, 255, 255, 0.1);
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    transition: color 0.3s ease, background 0.3s ease;
}

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

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-trigger {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--switcher-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 2px solid var(--switcher-border);
    transition: all 0.3s ease;
}

.lang-trigger:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    transform: rotate(15deg);
}

.lang-trigger svg {
    width: 24px;
    height: 24px;
    fill: #3b82f6;
}

.lang-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: var(--switcher-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    backdrop-filter: blur(10px);
    border: 1px solid var(--switcher-border);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.lang-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #c0c0d0;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-option:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.lang-option.active {
    color: #3b82f6;
    font-weight: 600;
}

.lang-option .lang-flag {
    width: 20px;
    height: 15px;
    object-fit: contain;
    border-radius: 2px;
}

.switchers-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 12px;
    align-items: center;
}

.theme-toggle {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--switcher-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 2px solid var(--switcher-border);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    transform: rotate(180deg);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    fill: var(--text-primary);
    transition: fill 0.3s ease;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: none;
}

.theme-toggle .sun-icon {
    display: block;
}

.hero {
    background: var(--hero-gradient);
    padding: 120px 0 100px;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
    animation: fadeInUp 0.8s ease-out;
    transition: background 0.3s ease;
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1s ease-out 0.3s both;
}

.cta-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 18px 50px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    animation: fadeInUp 1s ease-out 0.5s both;
    box-shadow: var(--button-shadow);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--button-shadow-hover);
}

.features-check {
    background: var(--section-even);
    padding: 50px 0;
    margin-top: 0;
    transition: background 0.3s ease;
}

.check-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 1.2rem;
    color: var(--text-primary);
    animation: slideIn 0.6s ease-out both;
}

.check-item:nth-child(1) { animation-delay: 0.1s; }
.check-item:nth-child(2) { animation-delay: 0.2s; }
.check-item:nth-child(3) { animation-delay: 0.3s; }

.check-icon {
    color: #10b981;
    font-size: 1.4rem;
    font-weight: bold;
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: var(--section-even);
    transition: background 0.3s ease;
}

section:nth-child(odd) {
    background: var(--section-odd);
    transition: background 0.3s ease;
}

h2 {
    font-size: 2.8rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.target-audience {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.audience-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out both;
}

.audience-card:nth-child(1) { animation-delay: 0.1s; }
.audience-card:nth-child(2) { animation-delay: 0.2s; }
.audience-card:nth-child(3) { animation-delay: 0.3s; }

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

.audience-card h3 {
    color: #3b82f6;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.audience-card ul {
    list-style: none;
    padding-left: 0;
}

.audience-card li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.audience-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3b82f6;
}

.philosophy {
    background: var(--card-bg);
    padding: 45px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease-out both;
}

.philosophy p {
    margin-bottom: 20px;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.philosophy ul {
    list-style: none;
    margin-bottom: 25px;
    padding-left: 25px;
}

.philosophy li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.philosophy li:before {
    content: "•";
    color: #3b82f6;
    margin-right: 12px;
    font-size: 1.3rem;
}

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

.pain-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 3px solid #ef4444;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out both;
}

.pain-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.2);
    border-left-color: #f97316;
}

.pain-card:nth-child(1) { animation-delay: 0.1s; }
.pain-card:nth-child(2) { animation-delay: 0.2s; }
.pain-card:nth-child(3) { animation-delay: 0.3s; }

.pain-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.pain-icon {
    font-size: 1.5rem;
    background: rgba(239, 68, 68, 0.15);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.pain-card h3 {
    color: #ef4444;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.pain-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

.pain-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.pain-card li {
    padding: 6px 0 6px 30px;
    color: var(--text-tertiary);
    font-size: 0.95rem;
    position: relative;
}

.pain-card li:before {
    content: "•";
    color: #ef4444;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.solution {
    background: rgba(16, 185, 129, 0.08);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 3px solid #10b981;
}

.solution-icon {
    color: #10b981;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 8px;
}

.solution h4 {
    color: #10b981;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
}

.solution ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution li {
    padding: 5px 0 5px 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
}

.solution li:before {
    content: "✓";
    color: #10b981;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.4rem;
}

.solution li:before {
    content: "✔";
    color: #10b981;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 4px solid #3b82f6;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }

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

.feature-card h3 {
    color: #3b82f6;
    margin-bottom: 20px;
    font-size: 1.35rem;
}

.feature-card ul {
    list-style: none;
    padding-left: 0;
}

.feature-card li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.feature-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.testimonial {
    background: var(--section-even);
    padding: 80px 0;
    text-align: center;
    transition: background 0.3s ease;
}

.testimonial blockquote {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out both;
}

.testimonial p {
    font-size: 1.6rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 25px;
}

.testimonial cite {
    color: #3b82f6;
    font-style: normal;
    font-weight: 600;
}

.cta-section {
    text-align: center;
    padding: 100px 0;
    animation: fadeInUp 0.8s ease-out both;
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.access-form-section {
    background: var(--section-even);
    padding: 80px 0;
    transition: background 0.3s ease;
}

.access-form-section h2 {
    margin-bottom: 40px;
}

#accessForm {
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out both;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--button-shadow);
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--button-shadow-hover);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    max-width: 500px;
    margin: 25px auto 0;
    padding: 18px;
    border-radius: 8px;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.onboarding {
    text-align: center;
    padding: 70px 0;
    animation: fadeInUp 0.6s ease-out both;
}

.onboarding p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.expertise {
    text-align: center;
    padding: 70px 0;
    animation: fadeInUp 0.6s ease-out both;
}

.expertise h3 {
    font-size: 1.9rem;
    color: #3b82f6;
    margin-bottom: 25px;
}

.expertise p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.expertise ul {
    list-style: none;
    margin-bottom: 35px;
}

.expertise li {
    padding: 10px 0;
    color: var(--text-secondary);
}

.expertise li:before {
    content: "•";
    color: #3b82f6;
    margin-right: 12px;
}

.telegram-link {
    display: inline-block;
    background: #0088cc;
    color: white;
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}

.telegram-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.6);
}

.projects {
    background: var(--section-even);
    padding: 50px 0;
    text-align: center;
    transition: background 0.3s ease;
}

.projects h3 {
    color: #3b82f6;
    margin-bottom: 25px;
    font-size: 1.6rem;
}

.projects-list {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.projects-list a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.projects-list a:hover {
    color: #60a5fa;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .lang-trigger {
        width: 40px;
        height: 40px;
    }
    
    .lang-trigger svg {
        width: 20px;
        height: 20px;
    }
    
    .lang-menu {
        min-width: 110px;
    }
    
    .lang-option {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .target-audience,
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-list {
        flex-direction: column;
        gap: 12px;
    }
    
    .pain-card {
        padding: 30px 25px;
    }
    
    section {
        padding: 50px 0;
    }
}
