:root {
    --primary-color: #2a5bd7;
    --primary-dark: #1e4ab3;
    --secondary-color: #4cc9f0;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #6c757d;
    --white: #ffffff;
    --gray: #e9ecef;
    --success-color: #28a745;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Прелоадер */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: var(--transition);
}

.preloader-content {
    text-align: center;
}

.preloader-content img {
    width: 150px;
    margin-bottom: 5px;
    animation: pulse 0.9s infinite;
}

.loading-text {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.loading-bar {
    width: 250px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    width: 0;
    background-color: var(--secondary-color);
    animation: loading 3s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 5%;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 5%;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-logo img {
    height: 60px;
    transition: var(--transition);
    animation: rotateY 11s infinite linear;
}

@keyframes rotateY {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

.navbar-logo:hover img {
    transform: scale(1.05);
}

.navbar-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar-menu a:hover::after {
    width: 100%;
}

.navbar-menu a:hover {
    color: var(--primary-color);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-language {
    display: flex;
    gap: 5px;
}

.navbar-language a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.navbar-language a:hover {
    color: var(--primary-color);
    background-color: rgba(42, 91, 215, 0.1);
}

.navbar-language a.active {
    color: var(--white);
    background-color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Основное содержимое */
.main-content {
    margin-top: 80px;
    padding-right: 20px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Герой секция */
.hero {
    position: relative;
    height: 50vh;
    min-height: 200px;
    display: flex;
    align-items: center;
    padding: 0 5%;
    color: var(--white);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 60px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

/* Контакты в герой-секции */
.hero-contacts {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 30px;
}

.phones-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.telegram-container {
    margin-top: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-link, .telegram-link {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-link:hover, .telegram-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.contact-link i, .telegram-link i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.telegram-link {
    background-color: rgba(0, 136, 204, 0.2);
    border-color: rgba(0, 136, 204, 0.3);
}

.telegram-link:hover {
    background-color: rgba(0, 136, 204, 0.3);
}

.telegram-icon {
    animation: shake 2.5s infinite;
}

@keyframes shake {
    0% { transform: translateX(0) rotate(0); }
    15% { transform: translateX(-5px) rotate(-5deg); }
    30% { transform: translateX(5px) rotate(5deg); }
    45% { transform: translateX(-5px) rotate(-5deg); }
    60% { transform: translateX(5px) rotate(5deg); }
    75% { transform: translateX(-3px) rotate(-3deg); }
    90% { transform: translateX(3px) rotate(3deg); }
    100% { transform: translateX(0) rotate(0); }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 105%;
    height: 107%;
    background: linear-gradient(135deg, var(--dark-color), #16213e);
    z-index: 1;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Подвал */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    gap: 60px;
}

.footer-logo {
    flex: 1;
}

.footer-logo img {
    width: 120px;
    margin-bottom: 20px;
}

.footer-logo p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-links {
    flex: 2;
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--white);
}

/* Кнопка "Наверх" */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        z-index: 99;
    }
    
    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-contacts {
        flex-direction: column;
    }
    
    .telegram-container {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
}