:root {
    --primary: #1e40af;
    --secondary: #3b82f6;
    --accent: #f97316;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --gradient-1: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-2: linear-gradient(135deg, #f97316 0%, #fb923c 100%);

    /* Цвета серий */
    --tech-color: #3b82f6;
    --nature-color: #10b981;
    --edu-color: #8b5cf6;
    --hum-color: #d97706;
    --econ-color: #dc2626;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 0.8rem 0;
    font-size: 0.85rem;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.top-bar-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar-links a:hover {
    color: var(--secondary);
}

/* Top Bar Dropdown Styles */
.top-bar-links li {
    position: relative;
}

.top-bar-links .dropdown {
    position: relative;
}

.top-bar-links .dropdown > a {
    color: rgba(255,255,255,0.95) !important;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.top-bar-links .dropdown > a:hover {
    background: rgba(255,255,255,0.2);
    color: var(--white) !important;
}

.top-bar-links .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--white);
    min-width: 160px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 0.5rem 0;
    z-index: 10000;
    border: 1px solid rgba(0,0,0,0.1);
}

.top-bar-links .dropdown:hover .dropdown-menu {
    display: block;
    animation: dropdownSlide 0.3s ease-out;
}

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

.top-bar-links .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
}

.top-bar-links .dropdown-menu a:hover {
    background: var(--primary);
    color: var(--white);
}

.top-bar-links .dropdown > a::after {
    content: ' ▾';
    margin-left: 0.3rem;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Main Header */
.main-header {
    background: var(--white);
    padding: 2rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 3rem;
}

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

.logo img {
    height: 80px;
    width: auto;
}

.logo-text h1 {
    font-family: 'Nunito', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: -0.5px;
    line-height: 1; /* можно чуть больше, если строки налезают */
}

.logo-text h1 span {
    display: block;   /* перенос на новую строку */
    margin-top: 0.2rem; /* расстояние между строками, подбирайте по вкусу */
}


.logo-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    justify-content: center;
}

.main-nav a {
    padding: 0.8rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.main-nav a:hover {
    background: var(--light);
    color: var(--primary);
}

.main-nav li {
    position: relative;
}

.main-nav .dropdown {
    position: relative;
}

.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    z-index: 1000;
}

.main-nav .dropdown:hover .dropdown-menu {
    display: block;
}

.main-nav .dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    border-radius: 0;
}

.main-nav .dropdown-menu a:hover {
    background: var(--light);
    color: var(--primary);
}

.main-nav .dropdown > a::after {
    content: ' ▾';
    margin-left: 0.3rem;
    font-size: 0.8rem;
}

.header-cta {
    background: var(--gradient-2);
    color: var(--white);
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.4);
}

/* Footer */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: 'Nunito', serif;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-family: 'Nunito', serif;
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 1200px) {
    .header-content {
        grid-template-columns: auto 1fr;
        gap: 2rem;
    }

    .header-cta {
        grid-column: 1 / -1;
        text-align: center;
    }

    .main-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 968px) {
    .top-bar-content {
        padding: 0 1rem;
        font-size: 0.8rem;
    }

    .top-bar-links {
        gap: 1rem;
    }

    .header-content {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .logo img {
        height: 60px;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }

    .main-nav {
        gap: 0.3rem;
    }

    .main-nav a {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Top Bar Mobile */
    .top-bar {
        display: none; /* Hide top bar on mobile */
    }

    /* Mobile Header */
    .main-header {
        padding: 1rem 0;
    }

    .header-content {
        grid-template-columns: 1fr auto;
        gap: 1rem;
        padding: 0 1rem;
    }

    .logo {
        gap: 0.8rem;
    }

    .logo img {
        height: 50px;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .logo-text p {
        font-size: 0.65rem;
    }

    /* Mobile Navigation */
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        overflow-y: auto;
        z-index: 9999;
        gap: 0;
        animation: slideInLeft 0.3s ease;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-100%);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

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

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--light);
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 1.2rem 1rem;
        border-radius: 0;
        font-size: 1rem;
    }

    .main-nav .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--light);
        margin: 0;
        border-radius: 0;
        padding: 0;
    }

    .main-nav .dropdown.active .dropdown-menu {
        display: block;
    }

    .main-nav .dropdown-menu a {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }

    .main-nav .dropdown > a::after {
        float: right;
        transition: transform 0.3s;
    }

    .main-nav .dropdown.active > a::after {
        transform: rotate(180deg);
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10000;
        position: relative;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--dark);
        margin: 3px 0;
        transition: all 0.3s;
        border-radius: 3px;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Mobile CTA */
    .header-cta {
        display: none; /* Hide in header on mobile */
    }

    .main-nav .mobile-cta {
        display: block;
        margin-top: 1rem;
        text-align: center;
        background: var(--gradient-2);
        color: var(--white);
        padding: 1rem 1.5rem;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .footer-bottom {
        padding: 2rem 1rem 0;
        font-size: 0.85rem;
    }

    /* Top Bar Dropdown Mobile Fix */
    .top-bar-links .dropdown-menu {
        right: auto;
        left: 0;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 45px;
    }

    .logo-text h1 {
        font-size: 1rem;
        line-height: 1.2;
    }

    .logo-text h1 span {
        margin-top: 0.1rem;
    }

    .logo-text p {
        font-size: 0.6rem;
        margin-top: 0.1rem;
    }

    .main-nav {
        padding: 4rem 1.5rem 1.5rem;
    }

    .main-nav a {
        padding: 1rem 0.8rem;
        font-size: 0.95rem;
    }

    .main-nav .dropdown-menu a {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    .footer-brand h3 {
        font-size: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }
}

/* Desktop Only - Show Menu Button */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }

    .main-nav .mobile-cta {
        display: none;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .main-nav a,
    .header-cta,
    .mobile-menu-toggle {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .top-bar-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Performance Optimizations */
* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU Acceleration for animations */
.main-nav,
.mobile-menu-toggle span,
.header-cta,
.dropdown-menu {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}
     /* Hero */
 .hero {
     background: var(--gradient-1);
     padding: 5rem 0;
     position: relative;
     overflow: hidden;
 }

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="white" opacity="0.1"/></svg>');
    background-size: 60px 60px;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h2 {
    font-family: 'Nunito', serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content .highlight {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.stat:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.stat-number {
    font-family: 'Nunito', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.5rem;
}

/* Series Section */
.series-section {
    padding: 4rem 0;
    background: var(--light);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.section-label {
    display: inline-block;
    background: var(--gradient-2);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-family: 'Nunito', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.series-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.series-item {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.series-item:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Индивидуальные цвета для каждой серии */
.series-item.tech::before { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); }
.series-item.nature::before { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.series-item.edu::before { background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%); }
.series-item.hum::before { background: linear-gradient(135deg, #b45309 0%, #d97706 100%); }
.series-item.econ::before { background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%); }

.series-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.series-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

.series-item:hover::before {
    transform: scaleX(1);
}

.series-content {
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.series-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

/* Индивидуальные цвета для иконок */
.series-item.tech .series-number { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3); }
.series-item.nature .series-number { background: linear-gradient(135deg, #059669 0%, #10b981 100%); box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3); }
.series-item.edu .series-number { background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%); box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3); }
.series-item.hum .series-number { background: linear-gradient(135deg, #b45309 0%, #d97706 100%); box-shadow: 0 10px 30px rgba(180, 83, 9, 0.3); }
.series-item.econ .series-number { background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%); box-shadow: 0 10px 30px rgba(185, 28, 28, 0.3); }

.series-item:hover .series-number {
    transform: rotate(10deg) scale(1.1);
}

.series-info h3 {
    font-family: 'Nunito', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.series-info p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.series-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

/* Индивидуальные цвета для ссылок */
.series-item.tech .series-link { color: #3b82f6; }
.series-item.nature .series-link { color: #10b981; }
.series-item.edu .series-link { color: #8b5cf6; }
.series-item.hum .series-link { color: #d97706; }
.series-item.econ .series-link { color: #dc2626; }

.series-link:hover {
    gap: 1rem;
}

/* Partners Section - ОБНОВЛЕННАЯ ВЕРСИЯ */
.partners-section {
    background: var(--white);
    padding: 5rem 0;
    overflow: hidden;
    border-top: 1px solid var(--light);
    border-bottom: 1px solid var(--light);
    position: relative;
}

.partners-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.partners-title {
    font-family: 'Nunito', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 1rem;
}

.partners-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.partners-slider {
    overflow: hidden;
    position: relative;
    padding: 3rem 0;
}

.partners-slider::before,
.partners-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    z-index: 2;
    pointer-events: none;
}

.partners-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.partners-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.partners-track {
    display: flex;
    gap: 4rem;
    animation: scroll 35s linear infinite;
    width: fit-content;
    padding: 0 2rem;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-item {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.partner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.partner-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.partner-item:hover::before {
    transform: scaleX(1);
}

.partner-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.partner-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: brightness(1);
}

.partner-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.partner-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem;
    background: rgba(30, 64, 175, 0.95);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    border-radius: 0 0 15px 15px;
    text-align: center;
}

.partner-item:hover .partner-name {
    opacity: 1;
    transform: translateY(0);
}

/* Background decoration for partners section */
.partners-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.03;
    background: radial-gradient(circle at 20% 50%, var(--primary) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, var(--secondary) 0%, transparent 50%);
}

/* CTA */
.cta-section {
    padding: 6rem 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    opacity: 0.15;
}

.cta-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: 'Nunito', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-2);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content h2 {
        font-size: 3rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .series-grid {
        grid-template-columns: 1fr;
    }

    .partners-title {
        font-size: 2rem;
    }

    .partners-subtitle {
        font-size: 1rem;
    }

    .partner-item {
        width: 180px;
        height: 90px;
    }

    .partner-item img {
        max-height: 50px;
    }
}

@media (max-width: 768px) {
    .partners-slider::before,
    .partners-slider::after {
        width: 100px;
    }

    .partners-track {
        gap: 2.5rem;
    }

    .partner-item {
        width: 160px;
        height: 80px;
        padding: 1rem;
    }

    .partner-item img {
        max-height: 45px;
    }
}

@media (max-width: 640px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .partners-title {
        font-size: 1.8rem;
    }

    .partners-track {
        gap: 2rem;
    }

    .partner-item {
        width: 140px;
        height: 70px;
    }

    .partner-item img {
        max-height: 40px;
    }
}

/* ==================== MOBILE ADAPTATION ==================== */

/* Tablet */
@media (max-width: 968px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .series-grid {
        gap: 1.5rem;
    }

    .series-content {
        padding: 2rem;
    }

    .partners-title {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 2rem;
    }

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

    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .stat {
        padding: 1.2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Series Section Mobile */
    .series-section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .section-label {
        font-size: 0.75rem;
        padding: 0.4rem 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .series-container {
        padding: 0 1rem;
    }

    .series-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .series-item:nth-child(5) {
        grid-column: 1;
        max-width: 100%;
    }

    .series-content {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .series-number {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .series-info h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .series-info p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .series-link {
        font-size: 0.9rem;
    }

    /* Partners Section Mobile */
    .partners-section {
        padding: 3rem 0;
    }

    .partners-container {
        padding: 0 1rem;
    }

    .partners-title {
        font-size: 1.8rem;
    }

    .partners-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .partners-wrapper {
        padding: 1.5rem 0;
    }

    .partners-track {
        gap: 1.5rem;
    }

    .partner-item {
        width: 120px;
        height: 60px;
    }

    .partner-item img {
        max-height: 35px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero {
        padding: 2rem 0 1.5rem;
    }

    .hero-content h2 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .stat {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    .series-section {
        padding: 2rem 0;
    }

    .series-content {
        padding: 1.2rem;
        gap: 1.2rem;
    }

    .series-number {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        border-radius: 15px;
    }

    .series-info h3 {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .series-info p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .partners-section {
        padding: 2rem 0;
    }

    .partners-title {
        font-size: 1.5rem;
    }

    .partners-subtitle {
        font-size: 0.9rem;
    }

    .partner-item {
        width: 100px;
        height: 50px;
    }

    .partner-item img {
        max-height: 30px;
    }
}

/* Landscape Mode on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat {
        padding: 0.8rem;
    }
}

/* Performance Optimizations */
@media (max-width: 768px) {
    .series-item,
    .stat,
    .partner-item {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}


.logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-width: 350px;
}

.logo-image-container {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    max-width: 120%;
    max-height: 120%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main-title {
    font-family: 'Nunito', serif;
    font-size: 1.9rem;
    font-weight: 800;
    background: #3d3c3c;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    margin-bottom: 0.2rem;
}

.logo-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #3d3c3c;
    margin-bottom: 0.15rem;
}

/* Адаптивность для мобильных */
@media (max-width: 968px) {
    .logo {
        min-width: auto;
        gap: 1rem;
    }

    .logo-image-container {
        width: 60px;
        height: 60px;
    }

    .logo-main-title {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .logo-image-container {
        width: 80px;
        height: 80px;
    }

    .logo-text {
        align-items: center;
    }
}

/* Search Panel Styles */
.search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.search-panel.active {
    transform: translateY(0);
}

.search-panel-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.search-icon {
    color: #8b5cf6;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: #0f172a;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-close {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.search-close:hover {
    color: #ef4444;
}

.search-suggestions {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.suggestion-item i {
    color: #8b5cf6;
}

/* Header CTA Button Styles */
.header-cta {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}


:root {
    --gradient-1: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-2: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --dark: #1e293b;
    --text-muted: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
}

/* Hero Section */
.contacts-hero {
    background: var(--gradient-1);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.contacts-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="white" opacity="0.1"/></svg>');
    background-size: 60px 60px;
}

.contacts-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.contacts-hero h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.contacts-hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Contacts Content */
.contacts-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.contact-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.contact-card h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid;
    border-image: var(--gradient-2) 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.3rem;
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 10px;
    flex-shrink: 0;
    color: #3b82f6;
}

.contact-text {
    flex: 1;
}

.contact-text strong {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.contact-text p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.contact-text a {
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-text a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Series Emails Section */
.series-emails {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.series-emails h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2rem;
    text-align: center;
}

.email-list {
    display: grid;
    gap: 1.5rem;
}

.email-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 15px;
    border-left: 4px solid;
    transition: all 0.3s;
}

.email-item:hover {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateX(5px);
}

.email-item.tech { border-color: #3b82f6; }
.email-item.nature { border-color: #10b981; }
.email-item.edu { border-color: #8b5cf6; }
.email-item.hum { border-color: #f59e0b; }
.email-item.econ { border-color: #ef4444; }

.email-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.email-item.tech .email-icon { color: #3b82f6; }
.email-item.nature .email-icon { color: #10b981; }
.email-item.edu .email-icon { color: #8b5cf6; }
.email-item.hum .email-icon { color: #f59e0b; }
.email-item.econ .email-icon { color: #ef4444; }

.email-content {
    flex: 1;
}

.email-address {
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
    transition: all 0.3s;
}

.email-address:hover {
    color: #1e40af;
    text-decoration: underline;
}

.email-description {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Map Section */
.map-section {
    margin-top: 3rem;
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.map-section h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--light);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    gap: 1rem;
}

.map-placeholder i {
    font-size: 3.5rem;
    color: #3b82f6;
}

/* Responsive */
@media (max-width: 968px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contacts-hero h1 {
        font-size: 2rem;
    }

    .contacts-hero p {
        font-size: 1rem;
    }

    .contact-card, .series-emails, .map-section {
        padding: 1.5rem;
    }
}


.page-content {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.page-content h2 {
    font-family: 'Nunito', serif;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 2rem;
}

.page-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.page-content h3 {
    font-family: 'Nunito', serif;
    font-size: 1.8rem;
    color: var(--dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

