/* ===================================
   CSS Variables
   =================================== */
:root {
    /* Colors - Dark Theme */
    --bg-primary: #0a1628;
    --bg-secondary: #0f2140;
    --bg-card: rgba(15, 33, 64, 0.8);
    --bg-header: rgba(10, 22, 40, 0.9);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-light: rgba(59, 130, 246, 0.1);
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --header-height: 70px;
    --container-width: 1320px;
    --section-padding: 80px;
    
    /* Transitions */
    --transition: 0.3s ease;
    --transition-fast: 0.15s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* ===================================
   Reset & Base
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    background-image: url('../images/fon.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===================================
   Container
   =================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: var(--text-primary);
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn--outline {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* ===================================
   HEADER
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Logo */
.logo {
    flex-shrink: 0;
}

.logo__img {
    height: 35px;
    width: auto;
}

/* Navigation Menu */
.nav__menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav__item {
    position: relative;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 24px 20px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav__link:hover {
    color: var(--text-primary);
}

.nav__arrow {
    transition: transform var(--transition-fast);
}

.nav__item--dropdown:hover .nav__arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--text-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    overflow: hidden;
    padding: 8px 0;
}

.nav__item--dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown__item {
    /* Стили для элемента выпадающего меню */
}

.dropdown__link,
.dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown__link:hover,
.dropdown a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: 20px;
}

.lang-switcher__current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.lang-switcher__current:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.lang-switcher__list {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    margin-top: 8px;
    background: var(--text-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    overflow: hidden;
    padding: 8px 0;
}

.lang-switcher:hover .lang-switcher__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher__link {
    display: block;
    padding: 10px 16px;
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.lang-switcher__link:hover,
.lang-switcher__link.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
}

/* Mobile Menu Button */
.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__burger.active span:nth-child(2) {
    opacity: 0;
}

.nav__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    padding: calc(var(--header-height) + 80px) 0 80px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero__title {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 28px;
}

.hero__subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Hero Stats */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat__label {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===================================
   CONTENT SECTION
   =================================== */
.content-section {
    padding: 40px 0 var(--section-padding);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs__sep {
    color: var(--text-muted);
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    gap: 40px;
}

.content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* ===================================
   NEWS SECTION (главная)
   =================================== */
.news-section,
.partners-section {
    margin-top: var(--section-padding);
    padding-top: var(--section-padding);
    border-top: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
}

.section-title--center {
    text-align: center;
    margin-bottom: 40px;
}

.section-link {
    color: var(--accent);
    font-weight: 500;
}

.section-link:hover {
    color: var(--accent-hover);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===================================
   NEWS CARD (shortstory)
   =================================== */
.news-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.news-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.news-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--accent);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.news-card__body {
    padding: 24px;
}

.news-card__date {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.news-card__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-card__title a:hover {
    color: var(--accent);
}

.news-card__excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
}

.news-card__more:hover {
    gap: 10px;
}

/* ===================================
   PARTNERS SECTION
   =================================== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    align-items: center;
}

.partner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.partner:hover {
    border-color: var(--accent);
}

.partner img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%) brightness(2);
    opacity: 0.6;
    transition: all var(--transition);
}

.partner:hover img {
    filter: none;
    opacity: 1;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 0;
    margin-top: var(--section-padding);
    border-top: 1px solid var(--border-color);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer__logo img {
    height: 30px;
    width: auto;
}

.footer__about {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 280px;
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent);
    color: var(--text-primary);
}

.footer__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--accent);
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__contacts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer__contacts svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}

.footer__contacts a:hover {
    color: var(--accent);
}

/* Footer Bottom */
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer__copyright {
    font-size: 14px;
    color: var(--text-muted);
}

.footer__lang {
    display: flex;
    gap: 16px;
}

.footer__lang a {
    font-size: 14px;
    color: var(--text-muted);
}

.footer__lang a:hover,
.footer__lang a.active {
    color: var(--accent);
}

/* ===================================
   BACK TO TOP
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--text-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-4px);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1200px) {
    .nav__link {
        padding: 24px 14px;
        font-size: 14px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav__burger {
        display: flex;
    }
    
    .nav__menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform var(--transition);
        overflow-y: auto;
    }
    
    .nav__menu.active {
        transform: translateX(0);
    }
    
    .nav__link {
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding: 0 0 0 20px;
        display: none;
    }
    
    .nav__item--dropdown.open .dropdown {
        display: block;
    }
    
    .dropdown a {
        color: var(--text-secondary);
        padding: 12px 0;
    }
    
    .lang-switcher {
        margin: 20px 0 0;
    }
    
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .hero {
        padding: calc(var(--header-height) + 40px) 0 40px;
        min-height: auto;
    }
    
    .hero__stats {
        gap: 16px;
    }
    
    .stat__number {
        font-size: 32px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
