: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;
}

* {
    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;
}

/* Прелоадер */
.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: opacity 0.5s ease;
}

.preloader-content {
    text-align: center;
}

.preloader-content img {
    width: 120px;
    margin-bottom: 20px;
}

.loading-text {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.loading-bar {
    width: 200px;
    height: 3px;
    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%; }
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-logo img {
    height: 30px;
}

.navbar-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99;
}

.navbar-nav.active {
    transform: translateY(0);
    opacity: 1;
}

.navbar-menu {
    list-style: none;
}

.navbar-menu li {
    margin-bottom: 15px;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-menu a:hover {
    background-color: rgba(42, 91, 215, 0.1);
    color: var(--primary-color);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-language {
    display: flex;
    gap: 5px;
}

.navbar-language a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-language a.active {
    color: var(--white);
    background-color: var(--primary-color);
}

.navbar-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.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);
}

/* Основное содержимое */
.main-content {
    margin-top: 70px;
    padding-right: 15px;
}

.section-container {
    padding: 0 15px;
}

/* Герой секция */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-bottom: 40px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 50px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Контакты в герой-секции */
.hero-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.phones-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.telegram-container {
    margin-top: 10px;
}

.contact-link, .telegram-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.contact-link i, .telegram-link i {
    margin-right: 8px;
    font-size: 1rem;
}

.telegram-link {
    background-color: rgba(0, 136, 204, 0.2);
}

.telegram-icon {
    animation: shake 2.5s infinite;
}

@keyframes shake {
    0% { transform: translateX(0) rotate(0); }
    15% { transform: translateX(-3px) rotate(-3deg); }
    30% { transform: translateX(3px) rotate(3deg); }
    45% { transform: translateX(-3px) rotate(-3deg); }
    60% { transform: translateX(3px) rotate(3deg); }
    75% { transform: translateX(-2px) rotate(-2deg); }
    90% { transform: translateX(2px) rotate(2deg); }
    100% { transform: translateX(0) rotate(0); }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-color), #16213e);
    z-index: 1;
}

/* Подвал */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 50px 15px 30px;
}

.footer-logo img {
    width: 100px;
    margin-bottom: 15px;
}

.footer-logo p {
    opacity: 0.7;
    font-size: 0.8rem;
    margin-bottom: 30px;
}

.footer-column {
    margin-bottom: 30px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.7rem;
}

/* Кнопка "Наверх" */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    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: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}