:root {
    /* Основные цвета */
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #28a745;
    --secondary-dark: #229954;
    
    /* Новостные цвета */
    --news-primary: #e74c3c;
    --news-dark: #c0392b;
    --news-light: #ffebe9;
    
    /* Цвета контактов */
    --contacts-primary: #9b59b6;
    --contacts-dark: #8e44ad;
    --contacts-light: #f4ecf7;
    
    /* FAQ цвета */
    --faq-primary: #f39c12;
    --faq-dark: #d68910;
    --faq-light: #fef5e7;
    
    /* Цвета продукции */
    --product-primary: #27ae60;
    --product-dark: #229954;
    --product-light: #e9f7ef;
    
    /* Текст */
    --text-dark: #333;
    --text-gray: #6c757d;
    --text-light: #95a5a6;
    --text-footer: #bdc3c7;
    
    /* Фоны */
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --bg-black: #000;
    --bg-white-semi: rgba(255, 255, 255, 0.1);
    --bg-white-strong: rgba(255, 255, 255, 0.4);
    --bg-white-card: rgba(255, 255, 255, 0.6);
    --bg-overlay: rgba(255, 255, 255, 0.4);
    --bg-glass: rgba(255, 255, 255, 0.3);
    
    /* Границы */
    --border-light: 1px solid rgba(255, 255, 255, 0.1);
    --border-white: 1px solid rgba(255, 255, 255, 0.2);
    --border-footer: 1px solid #34495e;
    
    /* Тени */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-dropdown: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    /* Скругления */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-card: 15px;
    --radius-lg: 20px;
    --radius-badge: 30px;
    
    /* Анимации */
    --transition-default: all 0.3s;
    --transition-transform: all 0.3s ease;
}

/* ========================================
   БАЗОВЫЙ СБРОС И ОБЩИЕ СТИЛИ
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
    z-index: 0;
    min-height: 100vh;
    background: url('/static/background.jpg') center/cover no-repeat fixed;
}

/* Размытый фоновый слой */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(40px);
    transform: scale(1.1);
}

/* Полупрозрачный оверлей */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
}

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

/* Основной контент поверх фона */
main {
    position: relative;
    z-index: 1;
}

/* ========================================
   HEADER
   ======================================== */
.main-header {
    background: var(--bg-black);
    color: white;
    position: relative;
    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: var(--transition-default);
    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;
}

/* Выпадающее меню */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-black);
    min-width: 200px;
    box-shadow: var(--shadow-dropdown);
    border-radius: var(--radius-md);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-default);
    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: var(--transition-default);
    font-size: 15px;
}

.dropdown-item:hover {
    background: var(--bg-white-semi);
    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: var(--transition-default);
    text-decoration: none;
    position: relative;
}

.btn-personal:hover {
    color: var(--primary-color);
}

.btn-personal:hover .btn-icon {
    color: var(--primary-color);
}

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

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

/* Кнопка админки */
.btn-admin {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--product-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition-default);
    text-decoration: none;
    margin-left: 10px;
}

.btn-admin:hover {
    background: var(--secondary-dark);
    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-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    padding: 5px;
    margin-left: 15px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-black);
    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: var(--border-light);
    font-size: 18px;
}

.mobile-contact {
    padding: 20px;
    border-top: var(--border-light);
    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: var(--border-light);
}

.mobile-admin-btn {
    display: none;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

/* ========================================
   HERO СЕКЦИЯ
   ======================================== */
.hero {
    position: relative;
    margin-top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    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 0.3s; */
}

/* Список характеристик */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    background: var(--bg-white-semi);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: var(--border-white);
    color: white;
    font-size: 18px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s forwards;
    transition: var(--transition-default);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.18);
}

.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 */
.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    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: var(--radius-card);
    padding: 25px;
    box-shadow: var(--shadow-card);
    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: var(--radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.map-text {
    flex: 1;
}

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

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

/* Блок контактов и кнопка */
.contacts-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: var(--border-white);
}

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

.analytics-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.analytics-badge:active {
    transform: translateY(-1px);
}

/* ========================================
   СЕКЦИЯ "НАША ПРОДУКЦИЯ"
   ======================================== */
.cards-section {
    padding: 100px 0;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
}

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

/* Карточка */
.card {
    background: var(--bg-white-strong);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-transform);
    border-bottom: 5px solid var(--primary-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
    background: rgba(255, 255, 255, 0.5);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.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;
    background: rgba(255, 255, 255, 0.2);
}

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

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

/* ========================================
   СЕКЦИЯ "ПРЕИМУЩЕСТВА"
   ======================================== */
.advantages-section {
    padding: 100px 0;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #2c3e50;
    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(--bg-white-strong);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-card);
    padding: 30px;
    transition: var(--transition-default);
    border-left: 4px solid var(--primary-color);
}

.advantage-item:hover {
    background: var(--bg-white-card);
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
}

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

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

.advantage-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

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

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

/* ========================================
   СЕКЦИЯ "О КОМПАНИИ"
   ======================================== */
.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: var(--bg-white-semi);
    border-radius: var(--radius-card);
    backdrop-filter: blur(10px);
    border: var(--border-white);
    transition: var(--transition-default);
}

.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: var(--radius-lg);
    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: var(--transition-default);
}

.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: var(--bg-dark);
    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: var(--text-footer);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
}

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

.contact-info {
    color: var(--text-footer);
    line-height: 1.8;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: var(--border-footer);
    color: var(--text-light);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* ========================================
   АНИМАЦИИ
   ======================================== */
@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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