/* ===== ОСНОВНЫЕ НАСТРОЙКИ ===== */
:root {
    --primary: #0a2540;
    --primary-dark: #051a30;
    --primary-light: #1a4d8c;
    --secondary: #2563eb;
    --text: #1e293b;
    --text-light: #5a6c7e;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e9eef2;
    --success: #10b981;
    --error: #ef4444;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* ===== ШАПКА ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.header .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo img {
    height: 100px;
    width: auto;
    transition: var(--transition);
}

.logo a:hover img {
    opacity: 0.9;
}

/* ===== НАВИГАЦИЯ ===== */
.nav {
    position: relative;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav > ul > li {
    position: relative;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    display: block;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* ===== ПОДМЕНЮ (ДЕСКТОП) ===== */
.nav .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    list-style: none;
    border: 1px solid var(--border);
}

.nav > ul > li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav .submenu li {
    display: block;
    position: relative;
}

.nav .submenu a {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
    color: var(--text);
    display: block;
}

.nav .submenu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.nav .submenu a::after {
    display: none;
}

/* Подменю второго уровня */
.nav .submenu .submenu {
    top: 0;
    left: 100%;
    margin-top: -8px;
}

.nav .submenu li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Стрелка для пунктов с подменю */
.nav > ul > li.menu-item-has-children > a::before {
    content: '▾';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 999;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu > ul > li {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.mobile-menu > ul > li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: 10px 0;
}

.mobile-menu .submenu {
    margin-left: 20px;
    margin-top: 10px;
    display: none;
    animation: slideDown 0.3s ease;
}

.mobile-menu .submenu.open {
    display: block;
}

.mobile-menu .submenu li {
    margin-bottom: 10px;
}

.mobile-menu .submenu a {
    font-size: 15px;
    font-weight: 400;
    opacity: 0.8;
    padding: 8px 0;
}

.mobile-menu .menu-item-has-children > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu .menu-item-has-children > a::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s;
}

.mobile-menu .menu-item-has-children.open > a::after {
    transform: rotate(180deg);
}

/* Кнопка закрытия */
.mobile-menu-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    display: none;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
}

/* ===== НАВИГАЦИОННЫЕ ТОЧКИ ===== */
.section-navs {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.section-navs.visible {
    opacity: 1;
    visibility: visible;
}

.section-navs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-navs li {
    margin: 15px 0;
    position: relative;
}

.section-nav {
    display: block;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    transition: all 0.3s;
}

.section-nav:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.section-nav.active {
    opacity: 1;
    transform: scale(1.1);
}

/* Иконки для навигационных точек */
.section-nav.i1 { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2364748b"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/></svg>'); }
.section-nav.i2 { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2364748b"><circle cx="12" cy="12" r="3"/><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>'); }
.section-nav.i3 { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2364748b"><path d="M21 12v-2a5 5 0 0 0-5-5H8a5 5 0 0 0-5 5v2"/><circle cx="12" cy="16" r="5"/></svg>'); }
.section-nav.i4 { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2364748b"><path d="M4 4h16v16H4z"/><path d="M8 8h8v2H8zM8 12h6v2H8zM8 16h4v2H8z"/></svg>'); }
.section-nav.i5 { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2364748b"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14h-2v-6h2v6zm0-8h-2V6h2v2z"/></svg>'); }

@media (max-width: 768px) {
    .section-navs {
        display: none;
    }
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ===== ЗАГОЛОВКИ СЕКЦИЙ ===== */
.section-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.section-title.center {
    text-align: center;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* ===== СЛАЙДЕР ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

/* ===== ЛОГОТИП НА СЛАЙДЕРЕ (СЛЕВА ВВЕРХУ) ===== */
.hero-logo {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 20;
}

.hero-logo img {
    height: 110px;
    width: auto;
    transition: opacity 0.3s;
}

.hero-logo a:hover img {
    opacity: 0.8;
}

.hero .swiper { height: 100%; width: 100%; }

.hero-slide {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
}

/* Обёртка для текста на слайдере */
.hero-text-box {
    position: absolute;
    z-index: 3;
    max-width: 800px;
    color: white;
    padding: 40px;
}

/* ===== ПОЗИЦИИ ТЕКСТА ===== */
.hero-text-box.position-left-top {
    top: 100px;
    left: 60px;
    bottom: auto;
    right: auto;
    text-align: left;
}
.hero-text-box.position-left-center {
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    text-align: left;
}
.hero-text-box.position-left-bottom {
    bottom: 100px;
    left: 60px;
    top: auto;
    text-align: left;
}
.hero-text-box.position-center-top {
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}
.hero-text-box.position-center-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.hero-text-box.position-center-bottom {
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}
.hero-text-box.position-right-top {
    top: 100px;
    right: 60px;
    left: auto;
    text-align: right;
}
.hero-text-box.position-right-center {
    top: 50%;
    right: 60px;
    left: auto;
    transform: translateY(-50%);
    text-align: right;
}
.hero-text-box.position-right-bottom {
    bottom: 100px;
    right: 60px;
    left: auto;
    top: auto;
    text-align: right;
}

/* Затемнение фона для читаемости текста */
.hero-text-box::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    border-radius: 20px;
}

/* Заголовок */
.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: white;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero .btn-primary {
    background: white;
    color: #0a2540;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s;
}

.hero .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Стрелки */
.hero .swiper-button-prev,
.hero .swiper-button-next {
    color: white;
    background: rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.hero .swiper-button-prev:hover,
.hero .swiper-button-next:hover {
    background: rgba(10, 37, 64, 0.8);
}

.hero .swiper-button-prev:after,
.hero .swiper-button-next:after { font-size: 20px; }

.hero .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: white;
    opacity: 0.5;
}

.hero .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Кнопка "Прокрутите вниз" */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    animation: bounce 2s infinite;
}

.scroll-down-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
}

.scroll-down-text {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.scroll-down-arrow {
    width: 30px;
    height: 30px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Мобильная версия */
@media (max-width: 768px) {
    .hero-text-box {
        max-width: 90%;
        padding: 20px;
    }
    .hero-text-box.position-left-top,
    .hero-text-box.position-left-center,
    .hero-text-box.position-left-bottom {
        left: 20px;
    }
    .hero-text-box.position-right-top,
    .hero-text-box.position-right-center,
    .hero-text-box.position-right-bottom {
        right: 20px;
    }
	
	.hero-logo {
        top: 15px;
        left: 15px;
    }
    
    .hero-logo img {
        height: 35px;
    }
	
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
}

/* ===== ПРОДУКЦИЯ ===== */
.products-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card:hover::before {
    transform: scaleY(1);
}

.product-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary);
}

.product-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary);
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 10px;
    color: var(--primary-light);
}

/* ===== СТАТИСТИКА ===== */
.stats-section {
    background: var(--primary);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-item {
    padding: 20px;
}

.stat-value {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number-wrapper {
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
}

/* ===== НОВОСТИ ===== */
.news-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-content {
    padding: 24px;
}

.news-date {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.news-content h3 a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.news-content h3 a:hover {
    color: var(--primary);
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ===== ПАРТНЁРЫ ===== */
.partners-section {
    padding: 60px 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.partners-section .swiper {
    padding: 20px 0;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.partner-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

/* ===== ПОДВАЛ ===== */
.footer {
    background: linear-gradient(135deg, #1e2b3a, #2d3f4f);
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer .wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 40px;
}

.footer-logo img {
    height: 100px;
    margin-bottom: 10px;
}

.footer-logo-text {
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.4;
}

.footer-block-name {
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
    color: white;
}

.footer-block-list ul {
    list-style: none;
}

.footer-block-list li {
    margin-bottom: 12px;
}

.footer-block-list a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-block-list a:hover {
    color: white;
}

.with-icon {
    padding-left: 25px;
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.i-phone { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>'); }
.i-address { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>'); }
.i-mail { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>'); }

.footer-socs {
    text-align: right;
}

.soc-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin: 15px 0;
}

.soc-link {
    display: block;
    width: 36px;
    height: 36px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    transition: var(--transition);
}

.soc-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.soc-link.vk { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M15.07 2H8.93C3.33 2 2 3.33 2 8.93v6.14C2 20.67 3.33 22 8.93 22h6.14c5.6 0 6.93-1.33 6.93-6.93V8.93C22 3.33 20.67 2 15.07 2zm3.46 14.14h-1.58c-.53 0-.7-.4-1.58-1.33-.8-.83-1.14-.94-1.34-.94-.28 0-.37.09-.37.54v1.33c0 .36-.12.54-1.06.54-1.57 0-3.33-.94-4.58-2.71-1.57-1.93-2-3.4-2-3.7 0-.18.07-.36.54-.36h1.58c.4 0 .55.15.71.53.78 1.86 2.1 3.5 2.63 3.5.2 0 .28-.09.28-.53v-2.04c0-1.06-.6-1.15-.6-1.53 0-.24.2-.44.45-.44h2.48c.38 0 .5.2.5.63v2.48c0 .38.15.53.24.53.2 0 .37-.15.66-.53 1.02-1.3 1.76-3.3 1.76-3.3.09-.2.27-.36.54-.36h1.58c.54 0 .66.27.54.63-.22 1.03-2.1 3.8-2.1 3.8-.16.24-.2.36 0 .62.15.22.65.65.98 1.06.6.7 1.06 1.3 1.2 1.7.15.4 0 .63-.5.63z"/></svg>'); }
.soc-link.tg { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69.01-.03.02-.13-.05-.18-.07-.06-.18-.04-.26-.02-.11.02-1.89 1.2-5.33 3.52-.5.35-.96.52-1.37.51-.45-.01-1.32-.26-1.96-.47-.79-.26-1.42-.4-1.37-.85.03-.23.34-.47.94-.72 3.68-1.6 6.14-2.66 7.37-3.18 3.51-1.5 4.24-1.76 4.71-1.76.1 0 .34.02.49.15.13.1.16.24.17.35-.01.1-.03.25-.06.41z"/></svg>'); }

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    opacity: 0.7;
}

/* ===== КНОПКА "НАВЕРХ" ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 15px;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,37,64,0.1);
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-errors {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.error-item {
    color: #721c24;
    margin: 5px 0;
    font-size: 14px;
}

/* ===== СТРАНИЦА ПРОДУКЦИИ ===== */
.page-title {
    font-size: 42px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 16px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 50px 0;
}

.pagination-link,
.pagination-prev,
.pagination-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.pagination-link:hover,
.pagination-prev:hover,
.pagination-next:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== СТРАНИЦА КОНТАКТОВ ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.contact-info {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-info h2 {
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
}

.contact-info i {
    color: var(--primary);
    font-size: 20px;
    min-width: 24px;
}

.contact-info a {
    color: var(--text-light);
}

.contact-info a:hover {
    color: var(--primary);
}

.contact-form {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-form h2 {
    margin-bottom: 30px;
}

.map-section {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ===== КНОПКА "ПРОКРУТИТЕ ВНИЗ" ===== */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-down-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 10px;
}

.scroll-down-text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.scroll-down-arrow {
    width: 30px;
    height: 30px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    animation: arrowMove 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes arrowMove {
    0% { opacity: 0; transform: rotate(-45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(-45deg) translate(5px, 5px); }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .footer .wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-socs {
        text-align: left;
        grid-column: span 2;
    }
    
    .soc-links {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .section-navs {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .stat-item {
        padding: 30px 20px !important;
    }
    
    .stat-value,
    .stat-number-wrapper {
        font-size: 48px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer .wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-socs {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn {
        padding: 12px 24px;
    }
    
    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== АНИМАЦИИ ДЛЯ AOS ===== */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* ===== ОТСТУПЫ ДЛЯ ШАПКИ ===== */
.home .header {
    transform: translateY(-100%);
}

.home .header.visible {
    transform: translateY(0);
}

body:not(.home) {
    padding-top: 80px;
}

.main-with-offset {
    padding-top: 80px;
}

/* ===== ДЕСКТОПНОЕ ПОДМЕНЮ ===== */
@media (min-width: 769px) {
    .submenu {
        min-width: 200px;
        max-width: 300px;
        white-space: normal; /* Разрешаем перенос текста */
        word-wrap: break-word;
    }
    
    .submenu a {
        white-space: normal; /* Переносим длинный текст */
        line-height: 1.4;
        padding: 10px 20px;
    }
    
    /* Ограничиваем длину текста в подменю */
    .submenu a {
        max-width: 280px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
    
    /* Для второго уровня */
    .submenu .submenu {
        max-width: 280px;
    }
}

/* Убираем выделение в подменю */
.submenu a {
    background: none !important;
}

.submenu a:hover {
    background: none !important;
    color: #0a2540 !important;
}

/* Убираем лишнее в мобилке */
.mobile-menu a {
    text-decoration: none !important;
}

.mobile-menu .submenu a {
    color: #555 !important;
}

.mobile-menu .submenu a:hover {
    color: #0a2540 !important;
}




.news-detail-content,
.news-detail-content p,
.news-detail-content div,
.news-detail-content span {
    word-break: break-all !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}


/* ===== ТОЧЕЧНОЕ МЕНЮ (контрастное) ===== */
.section-navs {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.section-navs.visible {
    opacity: 1;
    visibility: visible;
}

.section-navs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-navs li {
    margin: 14px 0;
    position: relative;
}

.section-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #0a2540;
    border: none;
    border-radius: 16px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25);
    overflow: hidden;
}

.section-nav i {
    font-size: 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.section-nav:hover {
    transform: translateX(8px) scale(1.1);
    background: #1a4d8c;
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.4);
}

.section-nav.active {
    background: #2563eb;
    transform: translateX(8px) scale(1.15);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}

/* Подсказка */
.section-nav::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 65px;
    top: 50%;
    transform: translateY(-50%);
    background: #0a2540;
    color: white;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    z-index: 101;
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.3);
}

.section-nav:hover::before {
    opacity: 1;
    visibility: visible;
    left: 72px;
}

@media (max-width: 768px) {
    .section-navs {
        display: none;
    }
}