/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1a3a5f;
    --color-secondary: #2d4a3e;
    --color-accent: #3d5a3d;
    --color-dark: #2c2c2c;
    --color-light: #f5f5f5;
    --color-white: #ffffff;
    --color-gray: #e8e8e8;
    --color-text: #333333;
    --color-text-light: #666666;
    --transition: all 0.3s ease;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
    position: relative;
}

/* Декоративные фоновые элементы */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 40 0 L 0 0 0 40' fill='none' stroke='%23e8e8e8' stroke-width='0.5' opacity='0.3'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

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

/* Шапка сайта */
.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

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

.nav-dropdown > .nav-link {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background-color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
    pointer-events: none;
}

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

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid var(--color-gray);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
    padding-left: 25px;
}

/* Кнопка-бургер (мобильное меню) */
.burger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(26, 58, 95, 0.2);
    background-color: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0;
    margin-left: 16px;
}

.burger-line {
    width: 22px;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 999px;
    transition: var(--transition);
    display: block;
}

.burger-line + .burger-line {
    margin-top: 4px;
}

.burger.burger-open .burger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.burger.burger-open .burger-line:nth-child(2) {
    opacity: 0;
}

.burger.burger-open .burger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #0f2a47;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 95, 0.3);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: #1e3328;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 74, 62, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

.btn-header {
    padding: 10px 20px;
    font-size: 14px;
}

/* Hero секция */
.hero {
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-white) 100%);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* Hero слайдер (фоновые изображения) */
.hero-slider-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    animation: fadeIn 1s ease-in;
}

.hero-slider-track {
    display: flex;
    width: auto;
    height: 100%;
    transform: translateX(0%);
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide-bg {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: grayscale(0.85) blur(0.3px);
    opacity: 0.45;
    transform: scale(1.02);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.48) 0%,
        rgba(245, 245, 245, 0.58) 45%,
        rgba(255, 255, 255, 0.52) 100%
    );
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(26, 58, 95, 0.25);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    color: var(--color-primary);
}

.hero-slider-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(26, 58, 95, 0.4);
    transform: translateY(-50%) scale(1.06);
}

.hero-slider-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.hero-slider-btn svg {
    width: 22px;
    height: 22px;
}

.hero-slider-btn-prev {
    left: 16px;
}

.hero-slider-btn-next {
    right: 16px;
}

.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(26, 58, 95, 0.18);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.hero-slider-dot.active {
    width: 34px;
    background: rgba(26, 58, 95, 0.45);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 1s ease-in;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Секции */
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

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

/* Преимущества */
.advantages {
    padding: 100px 0;
    background-color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50px;
    width: 300px;
    height: 400px;
    background-image: url("data:image/svg+xml,%3Csvg width='300' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.08'%3E%3Crect x='50' y='50' width='200' height='150' stroke='%231a3a5f' stroke-width='2' fill='none'/%3E%3Cline x1='150' y1='50' x2='150' y2='200' stroke='%231a3a5f' stroke-width='1'/%3E%3Cline x1='50' y1='125' x2='250' y2='125' stroke='%231a3a5f' stroke-width='1'/%3E%3Ccircle cx='100' cy='87' r='15' stroke='%231a3a5f' stroke-width='2' fill='none'/%3E%3Ccircle cx='200' cy='163' r='15' stroke='%231a3a5f' stroke-width='2' fill='none'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
}

.advantages::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -50px;
    width: 350px;
    height: 350px;
    background-image: url("data:image/svg+xml,%3Csvg width='350' height='350' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.08'%3E%3Cpath d='M100 300 L150 250 L200 280 L250 240 L300 270' stroke='%231a3a5f' stroke-width='3' fill='none'/%3E%3Cpath d='M100 310 L150 260 L200 290 L250 250 L300 280' stroke='%231a3a5f' stroke-width='2' fill='none'/%3E%3Crect x='120' y='230' width='60' height='40' stroke='%231a3a5f' stroke-width='2' fill='none'/%3E%3Cline x1='150' y1='230' x2='150' y2='270' stroke='%231a3a5f' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
}

.advantages .container {
    position: relative;
    z-index: 1;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.advantage-card {
    background-color: var(--color-white);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--color-gray);
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.advantage-card::after {
    content: '→';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: var(--color-primary);
    opacity: 0;
    transition: var(--transition);
    font-weight: bold;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(26, 58, 95, 0.2);
    border-color: var(--color-primary);
    background-color: var(--color-light);
}

.advantage-card:hover::after {
    opacity: 1;
    transform: translateX(5px);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
    background-color: rgba(26, 58, 95, 0.05);
    padding: 10px;
}

.advantage-icon svg {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
}

.advantage-card:hover .advantage-icon svg {
    transform: rotate(5deg);
}

.advantage-card:hover .advantage-icon svg circle,
.advantage-card:hover .advantage-icon svg rect,
.advantage-card:hover .advantage-icon svg path {
    stroke: var(--color-accent);
}

.advantage-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.advantage-text {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
}

/* О компании */
.about {
    padding: 100px 0;
    background-color: var(--color-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* Продукция */
.products {
    padding: 100px 0;
    background-color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background-image: url("data:image/svg+xml,%3Csvg width='800' height='800' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='geotextile' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cg opacity='0.05'%3E%3Cline x1='0' y1='0' x2='100' y2='100' stroke='%231a3a5f' stroke-width='1'/%3E%3Cline x1='100' y1='0' x2='0' y2='100' stroke='%231a3a5f' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='30' stroke='%231a3a5f' stroke-width='1' fill='none'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23geotextile)'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
}

.products .container {
    position: relative;
    z-index: 1;
}

/* Продукция: сетка 3 карточки в ряд */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.product-category-card {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 38px 28px 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.product-category-card.active {
    border-color: var(--color-primary);
    box-shadow: 0 12px 40px rgba(26, 58, 95, 0.2);
}

.product-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

/* Фото категории */
.category-image {
    width: 100%;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-gray);
    margin-bottom: 20px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
    display: block;
}

.product-category-card:hover .category-image img {
    transform: scale(1.06);
}

.category-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.category-description {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
    max-width: 320px;
}

/* Кнопки слайдера */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    color: var(--color-primary);
}

.slider-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

.slider-btn-prev {
    left: 0;
}

.slider-btn-next {
    right: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-gray);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.slider-dot.active {
    background-color: var(--color-primary);
    width: 30px;
    border-radius: 6px;
}

/* Старые стили для обратной совместимости */
.product-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--color-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-name {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
}

/* Контакты */
.contacts {
    padding: 100px 0;
    background-color: var(--color-light);
    position: relative;
    overflow: hidden;
}

.contacts::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 Q250,50 500,20 T1000,30 L1000,150 L0,150 Z' fill='%23f5f5f5'/%3E%3Cpath d='M0,10 Q300,60 600,30 T1200,40 L1200,150 L0,150 Z' fill='%23ffffff' opacity='0.8'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}

.contacts::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.06'%3E%3Cpath d='M200 200 L250 150 L300 200 L350 150 L400 200' stroke='%231a3a5f' stroke-width='4' fill='none'/%3E%3Cpath d='M200 210 L250 160 L300 210 L350 160 L400 210' stroke='%231a3a5f' stroke-width='2' fill='none'/%3E%3Crect x='220' y='180' width='80' height='50' stroke='%231a3a5f' stroke-width='2' fill='none'/%3E%3Cline x1='260' y1='180' x2='260' y2='230' stroke='%231a3a5f' stroke-width='1'/%3E%3Cline x1='220' y1='205' x2='300' y2='205' stroke='%231a3a5f' stroke-width='1'/%3E%3Ccircle cx='240' cy='190' r='5' fill='%231a3a5f'/%3E%3Ccircle cx='280' cy='220' r='5' fill='%231a3a5f'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
}

.contacts .container {
    position: relative;
    z-index: 1;
}

.subsection-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 30px;
    text-align: center;
}

/* Центральный офис */
.office-section {
    margin-bottom: 80px;
}

.office-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.office-map {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.office-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.office-info {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.office-company-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 25px;
}

.office-details {
    margin-bottom: 25px;
}

.office-detail-item {
    margin-bottom: 20px;
}

.office-detail-item strong {
    display: block;
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.office-detail-item p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.office-detail-item a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

.office-detail-item a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.btn-route {
    width: 100%;
    margin-top: 10px;
}

/* Склады */
.warehouses-section {
    margin-bottom: 80px;
}

.warehouses-content {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.warehouses-map {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
}

.russia-map-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.russia-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.city-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.city-point {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.point-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0.6;
}

.point-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: var(--color-primary);
    border-radius: 50%;
    border: 2px solid var(--color-white);
    box-shadow: 0 0 10px rgba(26, 58, 95, 0.5);
    z-index: 2;
}

.city-point:hover .point-core {
    background-color: var(--color-accent);
    transform: translate(-50%, -50%) scale(1.3);
    transition: var(--transition);
}

.city-point:hover .point-pulse {
    background-color: var(--color-accent);
}

.point-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 6px 12px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.point-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-primary);
}

.city-point:hover .point-tooltip {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.warehouses-caption {
    font-size: 18px;
    color: var(--color-text);
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

.warehouses-caption strong {
    color: var(--color-primary);
}

/* Форма обратной связи */
.contact-form-section {
    padding: 100px 0;
    background-color: var(--color-white);
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='construction' width='150' height='150' patternUnits='userSpaceOnUse'%3E%3Cg opacity='0.04'%3E%3Crect x='0' y='0' width='150' height='150' stroke='%231a3a5f' stroke-width='1' fill='none'/%3E%3Cline x1='75' y1='0' x2='75' y2='150' stroke='%231a3a5f' stroke-width='1'/%3E%3Cline x1='0' y1='75' x2='150' y2='75' stroke='%231a3a5f' stroke-width='1'/%3E%3Cpath d='M37 37 L113 113 M113 37 L37 113' stroke='%231a3a5f' stroke-width='1'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23construction)'/%3E%3C/svg%3E");
    background-size: 150px 150px;
    z-index: 0;
}

.contact-form-section .container {
    position: relative;
    z-index: 1;
}

.contact-form-wrapper {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input {
    padding: 14px 18px;
    border: 2px solid var(--color-gray);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--color-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 95, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Футер */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 30px 0;
    text-align: center;
}

.footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 40px;
    max-width: 600px;
    width: min(600px, 92vw);
    position: relative;
    animation: slideIn 0.3s ease;
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 30px;
    text-align: center;
}

.modal-product-image {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-gray);
}

.modal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-product-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
}

.modal-product-description {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
}

/* Модальное окно категории */
.category-modal-content {
    max-width: 600px;
}

.category-subcategories {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.category-subcategories li {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-gray);
    font-size: 16px;
    color: var(--color-text);
    position: relative;
    padding-left: 0;
    line-height: 1.6;
}

.subcategory-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subcategory-arrow {
    color: var(--color-primary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    display: inline-block;
    user-select: none;
}

.subcategory-arrow:hover {
    color: var(--color-accent);
}

.subcategory-name-clickable {
    flex: 1;
    font-weight: 600;
}

.subcategory-description-container {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    padding-left: 30px;
    border-top: 1px solid var(--color-gray);
    animation: slideDown 0.3s ease;
}

.subcategory-description {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-light);
    line-height: 1.7;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.category-subcategories li:last-child {
    border-bottom: none;
}

.subcategory-name {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.subcategory-description {
    display: block;
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-top: 6px;
}

.category-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-modal-buttons .btn {
    flex: 1;
    min-width: 200px;
}

/* Модальное окно преимущества */
.advantage-modal-content {
    max-width: 600px;
    text-align: center;
}

.advantage-modal-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-modal-icon svg {
    width: 100%;
    height: 100%;
}

.advantage-modal-description {
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Адаптивность */
@media (max-width: 968px) {
    .header-content {
        flex-wrap: wrap;
        gap: 20px;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .btn-header {
        order: 2;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .office-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .office-map {
        height: 350px;
    }

    .russia-map-container {
        height: 400px;
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-content {
        gap: 12px;
    }

    .nav {
        position: absolute;
        top: 100%;
        right: 16px;
        left: 16px;
        background-color: var(--color-white);
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        display: none;
    }

    .nav.nav-open {
        display: flex;
    }

    .btn-header {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero {
        padding: 80px 0;
        min-height: 500px;
    }

    .hero-slide-bg {
        opacity: 0.3;
        filter: grayscale(0.9) blur(0.2px);
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-large {
        width: 100%;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .advantages,
    .about,
    .products,
    .contacts {
        padding: 60px 0;
    }

    .product-category-card {
        padding: 26px 18px 24px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-name {
        font-size: 18px;
    }

    .category-description {
        font-size: 13px;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantage-card {
        padding: 25px 18px;
    }

    .office-info {
        padding: 25px 20px;
    }

    .warehouses-content {
        padding: 30px 20px;
    }

    .russia-map-container {
        height: 300px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .modal-content {
        width: 92vw;
        padding: 26px 16px;
        margin: 0;
    }

    .category-modal-buttons .btn {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .nav-link {
        font-size: 14px;
    }

    .dropdown-item {
        padding: 10px 15px;
        font-size: 13px;
    }

    .btn-header {
        width: 100%;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-slider-btn {
        display: none;
    }

    .hero-slide-bg {
        opacity: 0.28;
        filter: grayscale(0.9) blur(0.2px);
    }

    /* Модалки на очень узких экранах */
    .modal.active {
        padding: 12px;
    }

    .subcategory-name-clickable,
    .subcategory-description {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .product-category-card {
        padding: 22px 16px 22px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .category-name {
        font-size: 18px;
    }

    .category-description {
        font-size: 13px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }

    .slider-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .logo-image {
        height: 50px;
    }
}

