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

:root {
    --primary-color: #007bff;
    --secondary-color: #28a745;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
/* Header Styles - Полностью переделан */
.main-header {
    background: #000; /* Черный фон */
    color: white;
    position: relative; /* Убираем fixed */
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: inline-block;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s;
    transform-origin: center;
}

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

/* Навигация */
.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link:hover {
    color: white;
}

/* Правая часть header */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Телефон */
.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.header-phone:hover {
    opacity: 0.8;
}

.phone-icon {
    font-size: 18px;
}

/* Кнопка личного кабинета - переделана */
.btn-personal {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
}

.btn-personal:hover {
    color: #007bff;
}

.btn-personal:hover .btn-icon {
    color: #007bff;
}

.btn-icon {
    font-size: 20px;
    color: white;
    transition: color 0.3s;
}

.btn-text {
    white-space: nowrap;
}

/* Кнопка мобильного меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    padding: 5px;
    margin-left: 15px;
}

/* Выпадающее меню для "Оставшиеся позиции" */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

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

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #000;
    z-index: 999;
    padding: 0;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.mobile-nav {
    padding: 20px;
}

.mobile-nav .nav-link {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
}

.mobile-contact {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.mobile-contact .header-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin-bottom: 20px;
}

.mobile-contact .btn-personal {
    width: 100%;
    justify-content: center;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Hero Section - обновляем отступ сверху */
.hero {
    position: relative;
    margin-top: 0; /* Убираем margin-top т.к. header не fixed */
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}


.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0;
}

.hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.main-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(-30px);
    animation: slideDown 1s forwards;
    animation-delay: 0.3s;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.5s; }
.feature-item:nth-child(2) { animation-delay: 0.6s; }
.feature-item:nth-child(3) { animation-delay: 0.7s; }
.feature-item:nth-child(4) { animation-delay: 0.8s; }

.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s;
}

.hero-image-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* .map-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
} */

.map-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.map-icon {
    flex: 0 0 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.map-text {
    flex: 1;
}

.map-text h3 {
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 18px;
}

.map-text p {
    color: var(--gray-color);
    font-size: 14px;
}

.contacts-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.contact-info .phone {
    color: white;
    font-size: 20px;
}

.analytics-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    margin-top: 10px;
}

@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Cards Section */
.cards-section {
    padding: 100px 0;
    background: var(--light-color);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-bottom: 5px solid var(--primary-color);
}

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

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.card-content p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* Advantages Section */
.advantages-section {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.advantage-item {
    background: var(--light-color);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
    border-left: 4px solid var(--primary-color);
}

.advantage-item:hover {
    background: white;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.advantage-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.advantage-icon {
    flex: 0 0 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.advantage-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.advantage-description {
    color: var(--gray-color);
    line-height: 1.7;
    font-size: 16px;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.about-container {
    position: relative;
    z-index: 2;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    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-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-value {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.stat-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-desc {
    font-size: 14px;
    opacity: 0.9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.video-section {
    position: relative;
}

.video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.video-thumbnail {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button span {
    font-size: 24px;
    color: var(--primary-color);
}

.video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: white;
    font-weight: 500;
}

.company-info h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: white;
}

.company-features {
    list-style: none;
    margin-bottom: 30px;
}

.company-features li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 18px;
}

.company-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 20px;
}

.company-description {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
}

/* Footer */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
}

.footer-links a:hover {
    color: white;
}

.contact-info {
    color: #bdc3c7;
    line-height: 1.8;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 10px;
}
        /* Стили для кнопки входа в админку */
        .btn-admin {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #27ae60;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 500;
            font-size: 16px;
            transition: all 0.3s;
            text-decoration: none;
            margin-left: 10px;
        }
        
        .btn-admin:hover {
            background: #229954;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
        }
        
        .admin-icon {
            font-size: 18px;
        }
        
        .admin-text {
            white-space: nowrap;
        }
        
        /* Стили для мобильной версии */
        .mobile-admin-btn {
            display: none;
            width: 100%;
            justify-content: center;
            margin-top: 20px;
        }
        

