/* ===== CSS VARIABLES & DESIGN SYSTEM ===== */
:root {
    /* Дополнительная цветовая схема */
    --primary-color: #FF6B35;
    --primary-hover: #E55A2E;
    --primary-dark: #CC4A26;
    --secondary-color: #4ECDC4;
    --secondary-hover: #45B8B0;
    --secondary-dark: #3DA39C;
    
    /* Акцентные цвета */
    --accent-blue: #4A90E2;
    --accent-purple: #9B59B6;
    --accent-yellow: #F1C40F;
    --accent-green: #2ECC71;
    
    /* Нейтральные цвета */
    --background-light: #FFFFFF;
    --background-dark: #1A1A1A;
    --background-gray: #F8F9FA;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-light: #BDC3C7;
    --text-white: #FFFFFF;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-blue) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.16);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
    
    /* Шрифты */
    --font-primary: 'Raleway', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Размеры */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --container-max-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-out;
}

/* ===== GLOBAL STYLES ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background-light);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6,
.title {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.title.is-1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.title.is-2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.title.is-4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

.subtitle {
    font-family: var(--font-secondary);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: slideIn 0.6s ease-out 0.3s backwards;
}

/* ===== BUTTONS (GLOBAL STYLES) ===== */
.btn,
.button,
input[type='submit'],
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary,
.button.is-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.button.is-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--text-white);
}

.btn-secondary,
.button.is-light {
    background: var(--background-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.button.is-light:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit {
    background: var(--gradient-secondary);
    color: var(--text-white);
    padding: 16px 48px;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--text-white);
}

/* Рисованная анимация для кнопок */
.btn::before,
.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before,
.button:hover::before {
    left: 100%;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--background-gray);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand .logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-item {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.navbar-item:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.navbar-burger {
    color: var(--text-primary);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    color: var(--text-white);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding: 2rem 0;
}

.hero-title {
    color: var(--text-white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--text-white) !important;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
    padding: 2rem 0;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-image img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* ===== STATISTICS SECTION ===== */
.statistics-section {
    background: var(--gradient-secondary);
    color: var(--text-white);
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    background: var(--background-light);
    position: relative;
}

.project-card {
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.project-card .card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.project-card .image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    margin: 0 auto;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card .card-content {
    padding: 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--gradient-primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* ===== CAREERS SECTION ===== */
.careers-section {
    background: var(--background-gray);
}

.career-card {
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.career-card .card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.job-location {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.job-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.job-requirements {
    margin-bottom: 2rem;
}

.job-requirements .tag {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
}

.career-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

/* ===== EVENTS CALENDAR SECTION ===== */
.events-section {
    background: var(--background-light);
}

.event-card {
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.event-card .card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.event-card .image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    margin: 0 auto;
}

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

.event-card .card-content {
    padding: 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-date {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.event-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-weight: 500;
}

/* ===== RESOURCES SECTION ===== */
.resources-section {
    background: var(--background-gray);
}

.resource-card {
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.resource-card .card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--background-light);
    position: relative;
}

.contact-form {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
}

.contact-info {
    text-align: center;
}

.contact-info img {
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.contact-details {
    text-align: left;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.contact-details p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* Form Styles */
.field {
    margin-bottom: 1.5rem;
}

.label {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.input,
.textarea,
.select select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background-light);
}

.input:focus,
.textarea:focus,
.select select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--background-dark);
    color: var(--text-white);
    padding: 3rem 0 2rem;
}

.footer h3,
.footer h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-links a:hover {
    color: var(--text-white);
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

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

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

/* Рисованные анимации */
.animate__animated {
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== SUCCESS PAGE ===== */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-secondary);
    color: var(--text-white);
}

.success-content {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== PRIVACY & TERMS PAGES ===== */
.content-page {
    padding-top: 120px;
    min-height: 100vh;
    background: var(--background-gray);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
}

.content-page h1,
.content-page h2,
.content-page h3 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-page p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.content-page ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .button {
        width: 100%;
        max-width: 280px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .navbar-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
    }
    
    .hero-section {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .title.is-1 {
        font-size: 2rem;
    }
    
    .title.is-2 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .project-card .card-content,
    .career-card .card-content,
    .event-card .card-content {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--text-white) !important;
}

.bg-primary {
    background: var(--gradient-primary);
}

.bg-secondary {
    background: var(--gradient-secondary);
}

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.p-2 {
    padding: 1rem;
}

.rounded {
    border-radius: var(--border-radius);
}

.shadow {
    box-shadow: var(--shadow-card);
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}