::-webkit-scrollbar {
    width: 8px; /* Ширина скроллбара */
}

::-webkit-scrollbar-track {
    background: var(--darker-bg); /* Фон скроллбара */
}

::-webkit-scrollbar-thumb {
    background-color: #e74c3c; /* Цвет бегунка */
    border-radius: 8px; /* Закругление углов */
    border: 2px solid var(--darker-bg); /* Отступ для бегунка */
}

/* Для Firefox */
html {
    scrollbar-width: thin; /* Тонкая полоса прокрутки */
    scrollbar-color: #e74c3c var(--darker-bg); /* Цвет бегунка и фона */
}

/* Основные стили */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #c0392b;
    --accent-color: #e74d3c9a;
    --dark-bg: #1f1f2e;
    --darker-bg: #131321;
    --light-text: #ffffff;
    --gray-text: #b9bbbe;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--darker-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.8em;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Утилиты */
.gradient-text {
    background: linear-gradient(90deg, #e74c3c, #c0392b, #d35400, #e67e22);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed);
    cursor: pointer;
    text-align: center;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.loader {
    width: 150px;
    height: 150px;
    animation: loader-pulse 1.5s ease-in-out infinite alternate;
}

.logo {
    width: 100%;
    height: 100%;
}

@keyframes loader-pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

.loading-screen.loaded {
    transform: scale(1.5);
    opacity: 0;
    pointer-events: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all var(--transition-speed);
    background: rgba(31, 31, 46, 0.7);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
    letter-spacing: 1px;
    transition: color var(--transition-speed);
}

.logo:hover {
    color: var(--primary-color);
}

.navbar-center .nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    padding: 5px 2px;
    transition: color var(--transition-speed);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-selector {
    position: relative;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50px;
    color: var(--light-text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition-speed);
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 150px;
    background: var(--dark-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: all var(--transition-speed);
    z-index: 10;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    font-size: 0.9rem;
    transition: background var(--transition-speed);
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-content a.active {
    color: var(--primary-color);
    background: rgba(231, 76, 60, 0.1);
}

.language-selector:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.login-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.5);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1000;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background: var(--light-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--primary-color);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(15px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--primary-color);
}

.navbar.shrink {
    padding: 12px 0;
    background: rgba(31, 31, 46, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    z-index: 999;
    padding: 80px 30px 30px;
    transition: right 0.4s cubic-bezier(0.7, 0, 0.3, 1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mobile-menu ul li a {
    display: block;
    color: var(--light-text);
    padding: 18px;
    font-size: 1.3rem;
    transition: all var(--transition-speed);
    border-radius: 10px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    text-align: left;
    padding-left: 20px;
    font-weight: 500;
}

.mobile-menu ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.mobile-menu ul li a:hover {
    color: var(--light-text);
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(5px);
}

.mobile-menu ul li a:hover::before {
    opacity: 1;
}

.mobile-language {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.language-title {
    margin-bottom: 1.2rem;
    color: var(--gray-text);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.mobile-languages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.mobile-languages a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
}

.mobile-languages a .flag-icon {
    margin-right: 15px;
    font-size: 1.3rem;
}

.mobile-languages a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mobile-languages a.active {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
}

.mobile-login {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all var(--transition-speed);
    width: 100%;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.mobile-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.5);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    background: var(--dark-bg);
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--gray-text);
    max-width: 80%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-text);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    z-index: 1;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.wave-divider .shape-fill {
    fill: var(--darker-bg);
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--darker-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(145deg, rgba(31, 31, 46, 0.6), rgba(31, 31, 46, 0.8));
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(231, 76, 60, 0.15), rgba(192, 57, 43, 0.15));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--light-text);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* News Section */
.news {
    padding: 100px 0;
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: linear-gradient(145deg, rgba(19, 19, 33, 0.8), rgba(19, 19, 33, 0.9));
    border-radius: var(--border-radius);
    overflow: hidden;
    padding: 30px;
    position: relative;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    transition: color var(--transition-speed);
}

.news-card:hover h3 {
    color: var(--primary-color);
}

.news-card p {
    color: var(--gray-text);
    margin-bottom: 2rem;
    line-height: 1.7;
    flex-grow: 1;
}

.read-more {
    align-self: flex-start;
    padding: 8px 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    position: relative;
    transition: all var(--transition-speed);
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-speed);
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover::after {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--darker-bg);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-col p {
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all var(--transition-speed);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-text);
    transition: color var(--transition-speed);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media screen and (max-width: 1100px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero .subtitle {
        max-width: 100%;
        margin: 0 auto 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .navbar-center {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .navbar-right {
        gap: 1rem;
    }
    
    .navbar-right .login-btn {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2.3rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .features-grid, 
    .news-cards {
        grid-template-columns: 1fr;
    }
    
    .language-selector {
        display: none;
    }
    
    .navbar-right {
        gap: 0.8rem;
    }
    
    .dropdown-btn {
        padding: 8px;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .feature-card,
    .news-card {
        padding: 25px;
    }
    
    .footer {
        padding: 60px 0 20px;
    }
}

/* Дополнительные анимации */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для дополнительного параллакс-эффекта */
.hero-image img {
    transition: transform 0.2s ease-out;
}

/* Дополнительные стили для иконок в feature-card */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Стили для флагов стран */
.flag-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.2em;
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 5px;
}

.flag-icon-ru {
    background-image: url('../img/flags/ru.svg');
}

.flag-icon-gb {
    background-image: url('../img/flags/gb.svg');
}

.flag-icon-de {
    background-image: url('../img/flags/de.svg');
}

.language-options a .flag-icon {
    margin-right: 8px;
}

.dropdown-btn .flag-icon {
    margin-right: 2px;
    margin-left: 5px;
}

.mobile-languages {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.mobile-languages a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
}

.mobile-languages a.active {
    background: var(--primary-color);
} 