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

:root {
    --header-height: 72px;
    --logo-height: 40px;
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #007bff;
    --bg-color: #fff;
    --text-color: #333;
    --border-color: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-burger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    padding: 0;
    margin-left: 12px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.header-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-burger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.header-burger.active span:nth-child(2) {
    opacity: 0;
}

.header-burger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.header-logo {
    display: flex;
    align-items: center;
}

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

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
}

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

.header-catalog-dropdown {
    position: relative;
}

.header-catalog-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.header-catalog-btn:hover {
    color: var(--accent-color);
}

.header-catalog-btn::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
}

.header-catalog-dropdown.active .header-catalog-btn::after,
.header-catalog-dropdown:hover .header-catalog-btn::after {
    transform: rotate(180deg);
}

.header-catalog-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

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

.header-catalog-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

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

.header-catalog-item:hover {
    background: #f8f9fa;
    color: var(--accent-color);
    padding-left: 24px;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
}

.contact-link {
    position: relative;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.contact-link:hover {
    color: var(--accent-color);
}

.contact-link .tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.contact-link .tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--primary-color);
}

.contact-link.copied .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Hero Section */
.hero {
    height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    background-image: url('img/cover.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(100, 100, 100, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 100, 100, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 1;
    pointer-events: none;
    z-index: 2;
}

/* Анимированные белые линии */
.hero-grid-line {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.hero-grid-line.horizontal {
    width: 128px;
    height: 1px;
    left: -128px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: gridLineSlideHorizontal 3s ease-in-out forwards;
}

.hero-grid-line.vertical {
    width: 1px;
    height: 128px;
    top: -128px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: gridLineSlideVertical 3s ease-in-out forwards;
}

.hero-grid-line.train-line {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.hero-grid-line.train-line.horizontal {
    width: 128px;
    height: 2px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
}

.hero-grid-line.train-line.vertical {
    width: 2px;
    height: 128px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
}

@keyframes gridLineSlideHorizontal {
    0% {
        opacity: 0;
        left: -128px;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        left: 100%;
    }
}

@keyframes gridLineSlideVertical {
    0% {
        opacity: 0;
        top: -128px;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        top: 100%;
    }
}

@keyframes heroBackgroundFade {
    0% {
        background: white;
    }
    100% {
        background: #000;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    padding: 0 40px;
    gap: 30px;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 72px;
    font-weight: 300;
    letter-spacing: 2px;
    color: white;
    line-height: 1.15;
    max-width: 900px;
    text-align: center;
}

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

.hero-button {
    display: inline-block;
    padding: 16px 40px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    border-radius: 4px;
    transition: all 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.hero-button-primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.hero-button-primary:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.hero-button-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.hero-button-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-logo-top {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    text-align: center;
    max-width: 900px;
    line-height: 1.6;
    margin-top: 10px;
}


/* Section Styles */
section {
    padding: 80px 0;
}

/* About Company Section */
.about-section {
    background: #000;
    color: white;
    padding: 60px 0;
    margin-top: -1px;
}

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

.about-content .about-contact-btn {
    grid-column: 1 / -1;
    justify-self: start;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-feature:last-child {
    border-bottom: none;
}

.about-feature-number {
    font-size: 36px;
    font-weight: 300;
    color: white;
}

.about-feature-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.about-lead {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    max-width: 420px;
}

.about-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

.about-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.import-list-link {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
    font-weight: 500;
}

.import-list-link:hover {
    color: #ffffff;
}

.about-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.about-contact-btn {
    padding: 14px 32px;
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-contact-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.about-catalog-btn {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.7);
}

.about-catalog-btn:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* Contact Dropdown */
.contact-dropdown {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
}

.contact-dropdown.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-dropdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.contact-dropdown-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 90%;
    z-index: 3001;
}

.contact-dropdown-content {
    padding: 40px;
    position: relative;
}

.contact-dropdown-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--secondary-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-dropdown-close:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

.contact-dropdown-content h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.contact-dropdown-item {
    margin-bottom: 20px;
    font-size: 16px;
}

.contact-dropdown-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.contact-dropdown-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-dropdown-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    flex: 1;
}

.contact-dropdown-item a:hover {
    color: var(--primary-color);
}

.contact-copy-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.contact-copy-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.contact-copy-btn svg {
    display: block;
}

.contact-copy-btn.copied {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

/* Key Directions Section */
.directions-section {
    background: var(--bg-color);
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.direction-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.direction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.direction-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.direction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.direction-card h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1.5;
    padding: 20px;
    margin: 0;
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 50px;
    text-align: center;
    color: var(--primary-color);
}

/* Catalog Section */
.catalog-section {
    background: #f8f9fa;
}

.category-block {
    margin-bottom: 60px;
}

.category-title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.product-image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1; /* квадратное соотношение сторон */
    height: auto;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image-placeholder img.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* не обрезаем картинку, вписываем внутрь */
    display: block;
}

.product-article {
    font-size: 64px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 4px;
    font-family: 'Arial', sans-serif;
    user-select: none;
    position: absolute;
    z-index: 1;
}

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

.product-description {
    font-size: 14px;
    color: var(--secondary-color);
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

.product-card:hover .product-more-link {
    color: var(--accent-color);
    gap: 12px;
}

.product-more-link .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.product-card:hover .product-more-link .arrow {
    transform: translateX(5px);
}

.product-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

.product-card:hover .product-more-link {
    color: var(--accent-color);
    gap: 12px;
}

.product-more-link .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.product-card:hover .product-more-link .arrow {
    transform: translateX(5px);
}

/* Product Tags */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.product-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.modal-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0 25px 0;
}

.modal-product-tags .product-tag {
    font-size: 12px;
    padding: 5px 12px;
    background: #f5f5f5;
    color: #555;
}

/* Advantages Section */
.advantages-section {
    background: var(--bg-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-item {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.advantage-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.advantage-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: left;
}

.advantage-item p {
    color: var(--secondary-color);
    line-height: 1.6;
    text-align: left;
}

/* Document Modal */
.document-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4000;
}

.document-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.document-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    z-index: 4001;
}

.document-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.document-modal-content iframe {
    width: 100%;
    height: 90vh;
    border: none;
    border-radius: 8px;
}

.document-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    font-size: 40px;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Import List Modal - оформлена как обычная модалка товара */
.import-modal .document-modal-content {
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    height: auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.import-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #fff;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.import-modal-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin-right: 16px;
    word-break: break-word;
}

.import-modal-body {
    flex: 1;
    display: flex;
    padding: 16px 24px 24px;
}

.import-modal .document-modal-content iframe {
    flex: 1;
    width: 100%;
    height: 60vh;
    border-radius: 8px;
}

.import-modal .document-modal-close {
    position: static;
    width: 32px;
    height: 32px;
    font-size: 24px;
    color: var(--secondary-color);
    border-radius: 50%;
}

.document-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Contacts Section */
.contacts-section {
    background: #f8f9fa;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

#yandex-map {
    width: 100%;
    height: 100%;
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-form-container h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

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

.form-submit-btn {
    width: 100%;
    padding: 14px 32px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-catalog {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-category {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-category-title {
    font-size: 16px;
    margin-bottom: 0;
    color: white;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-category-title:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-category-name {
    flex: 1;
}

.footer-category-toggle {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.footer-category.expanded .footer-category-toggle {
    transform: rotate(180deg);
}

.footer-products {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0 15px 0;
    max-height: 300px;
    overflow-y: auto;
}

.footer-product-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-product-link:hover {
    color: white;
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    z-index: 2001;
    padding: 24px 32px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Убираем горизонтальный скролл внутри модалки */
}

.modal-close {
    display: none; /* Основная кнопка закрытия теперь в шапке модалки */
}

.modal-close:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

.modal-product-image-placeholder {
    display: none;
}

.modal-product-image-placeholder .product-article {
    font-size: 96px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 6px;
    font-family: 'Arial', sans-serif;
    user-select: none;
}

.modal-product-title {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.modal-product-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-close-inline {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--secondary-color);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close-inline:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

.modal-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-product-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-product-article {
    font-size: 13px;
    color: var(--secondary-color);
}

.modal-product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-copy-link {
    position: relative;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.modal-copy-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.modal-copy-link svg {
    width: 16px;
    height: 16px;
}

.modal-copy-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    transform: translateY(8px);
    background: var(--primary-color);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: normal;
    max-width: 220px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal-copy-link.copied .modal-copy-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

#modal-body {
    margin-top: 10px;
    flex: 1;
    overflow-y: auto;
}

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

.modal-product-content {
    margin-top: 30px;
}

.modal-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-section:last-child {
    border-bottom: none;
}

.modal-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.modal-section p {
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 15px;
}

.modal-section ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.modal-section li {
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 8px;
}

.technical-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.technical-table tr {
    border-bottom: 1px solid var(--border-color);
}

.technical-table td {
    padding: 12px;
    color: var(--secondary-color);
}

.technical-table td:first-child {
    width: 40%;
    color: var(--primary-color);
    font-weight: 500;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top:hover {
    background: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-burger {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border-color);
        padding: 16px 20px 20px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        z-index: 999;
    }

    .header-nav.open {
        display: flex;
    }
    
    .header-nav-link {
        font-size: 15px;
    }
    
    .header-contacts {
        gap: 4px;
        align-items: flex-start;
    }
    
    .contact-link {
        font-size: 12px;
    }
    
    .header-catalog-btn {
        font-size: 15px;
    }
    
    .header-catalog-menu {
        position: static;
        box-shadow: none;
        margin-top: 8px;
    }

    .about-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .about-contact-btn,
    .about-catalog-btn {
        width: 100%;
        text-align: center;
    }

    /* Product modal – mobile adjustments */
    .modal-content {
        padding: 16px;
        margin: 10px auto;
    }

    .modal-product-header {
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .modal-header-top {
        align-items: flex-start;
    }

    .modal-product-title {
        font-size: 22px;
        line-height: 1.2;
    }

    .modal-header-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .hero-content {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 48px;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-slogan {
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .hero-button {
        padding: 14px 32px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .hero-logo-top {
        height: 60px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-dropdown {
        min-width: 90%;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .directions-grid {
        grid-template-columns: 1fr;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 16px;
    }
}


