:root {
    --dark-blue: #041C2C;
    --red-flame: #B6182D;
    --dark-blue-30: #9D9D9C;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--white);
    color: var(--dark-blue);
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}


.sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
}


/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background: rgba(31, 68, 99, 0.9);
    backdrop-filter: blur(8px);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 102;
}

.top-bar .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-btn:hover {
    background: #b6182d;
    transform: translateY(-1px);
}

.top-bar-btn i {
    font-size: 1rem;
}

.top-bar-btn {
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    padding: 8px 18px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.top-links {
    display: flex;
    gap: 25px;
    flex-shrink: 0;
}

.top-links a {
    color: #94a3b8;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s;
}

.top-links a:hover {
    color: #b6182d;
}

.region-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;  /* Прижимаем к правому краю */
}

.region-selector {
    position: relative;
}

.region-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.9rem !important;  /* Добавляем !important для приоритета */
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    z-index: 10001;
}

.region-btn:hover {
    background: #b6182d;
}

.region-phone-display {
    padding-left: 15px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.selected-phone {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
    white-space: nowrap;
}

.selected-phone:hover {
    color: #b6182d;
}

/* ========================================
   REGION DROPDOWN
   ======================================== */
.region-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(12, 29, 44, 0.98);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 12px 0;
    min-width: 220px;
    display: none;
    z-index: 200;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.region-dropdown.active {
    display: block;
    animation: fadeInDown 0.2s ease;
}

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

.region-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.region-item:hover {
    background: #b6182d;
}

.region-item .city {
    font-weight: 600;
    color: white;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.region-item .phone a {
    font-size: 0.75rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.region-item:hover .phone a {
    color: white;
}


/* ========================================
   MAIN HEADER
   ======================================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;  /* Опустил с 101 на 100, чтобы top-bar был выше */
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px clamp(15px, 3vw, 60px);  /* От 15px до 60px в зависимости от ширины */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* ---------- ГОРИЗОНТАЛЬНОЕ МЕНЮ ---------- */
.menu-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;  /* Прижимаем к правому краю */
    gap: 5px;
}

.menu-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;  /* Пункты справа */
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item a {
    display: block;
    padding: 8px 16px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 40px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.menu-item a:hover {
    background: rgba(31, 68, 99, 0.65);
    color: #ffffff;
}

.menu-item a.selected {
    background: #b6182d;
    color: white;
}

/* ========================================
   CONTACT STRIPE
   ======================================== */
.contact-stripe {
    background: #1f4463;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 99;
    margin-top: 0;
    transition: all 0.3s ease;
}

.contact-blocks-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 60px);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.contact-block {
    flex: 1;
    text-align: left;
    min-width: 0;
}

/* Последний блок смещён на 15px от правого края */
.contact-block:last-child {
    flex: 0 1 auto;
    text-align: right;
    padding-right: 15px;  /* Отступ как у меню от правого края */
    margin-right: 0;
}

.contact-block .city {
    color: #d9e3ea;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
    text-align: left;
}

.contact-block:last-child .city {
    text-align: right;
}

.contact-block .phone a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
    white-space: nowrap;
    text-align: left;
    display: inline-block;
}

.contact-block:last-child .phone a {
    text-align: right;
}

.contact-block .phone a:hover {
    color: #b6182d;
}



/* ========================================
   HAMBURGER BUTTON (4 squares 2x2)
   ======================================== */
.hamburger {
    display: none;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.hamburger:hover .square {
    background-color: #b6182d;
}

.hamburger-inner {
    width: 28px;
    height: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.square {
    background-color: #0c1d2c;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-inner {
    gap: 0;
    transform: rotate(180deg);
}

.hamburger.active .square-1 {
    transform: translate(0, 0) rotate(45deg);
    border-radius: 3px 0 0 0;
}

.hamburger.active .square-2 {
    transform: translate(0, 0) rotate(-45deg);
    border-radius: 0 3px 0 0;
}

.hamburger.active .square-3 {
    transform: translate(0, 0) rotate(-45deg);
    border-radius: 0 0 0 3px;
}

.hamburger.active .square-4 {
    transform: translate(0, 0) rotate(45deg);
    border-radius: 0 0 3px 0;
}

/* ========================================
   MOBILE MENU OVERLAY
   ======================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 29, 44, 0.98);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.mobile-menu-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 550px;
    width: 85%;
    margin: 0 auto;
    padding: 20px;
}

.mobile-menu-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-item i {
    font-size: 1.8rem;
}

.mobile-menu-item span {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    padding: 0 8px;
}

.mobile-menu-item:hover {
    background: #b6182d;
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: #b6182d;
    transform: rotate(90deg);
}

/* ========================================
   HERO WITH VIDEO BACKGROUND
   ======================================== */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(4,28,44,0.85) 0%, rgba(4,28,44,0.7) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px clamp(15px, 3vw, 60px);
    width: 100%;
}

.hero-grid {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    color: white;
    margin: 0;
    padding: 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
    margin-bottom: 16px;
    color: white;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats {
    background: #f5f5f5;
    padding: 64px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--red-flame);
}

.stat-label {
    color: var(--dark-blue-30);
    text-transform: uppercase;
    font-size: 14px;
}

/* ========================================
   PRODUCTS
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    padding: 80px 0;
}

.product-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
}

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

/* ========================================
   CATEGORY CARD (3D эффект)
   ======================================== */
.category-card {
    position: relative;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    perspective: 1000px;
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 40px -20px rgba(0,0,0,0.3);
    border-color: #B6182D;
}

.category-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a3a5a;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.category-card:hover .category-card-image {
    transform: rotateY(360deg);
}

.category-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #041C2C 0%, #0a3050 100%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.category-card:hover .category-card-image::after {
    opacity: 0.3;
}

.category-content {
    padding: 20px;
    transition: all 0.3s ease;
    background: white;
}

.category-card:hover .category-content {
    background: #f8f9fa;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #041C2C;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.3s;
}

.category-card:hover .category-title {
    color: #B6182D;
}

.category-link {
    color: #B6182D;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    margin-top: 16px;
    transition: transform 0.3s;
}

.category-card:hover .category-link {
    transform: translateX(8px);
}

.products-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}

.product-tag {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #041C2C;
    transition: all 0.2s;
    text-decoration: none;
}

.product-tag:hover {
    background: #B6182D;
    color: white;
}

/* ========================================
   PAGE HEADER (для страницы каталога)
   ======================================== */
.page-header {
    background: linear-gradient(135deg, #f0f2f5 0%, #ffffff 100%);
    padding: 40px 0 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #041C2C;
}

.page-header p {
    font-size: 1rem;
    color: #64748b;
}

/* ========================================
   CATEGORIES GRID (для страницы каталога)
   ======================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin: 40px 0 60px;
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
    padding: 24px 0;
    font-size: 0.875rem;
    color: #64748b;
}

.breadcrumbs a {
    color: #1e293b;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #b91c1c;
}

/* ========================================
   PRODUCT PAGE
   ======================================== */
.product-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.product-gallery {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.main-image {
    width: 100%;
    min-height: 380px;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.product-info {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-sku {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.product-specs-card {
    background: linear-gradient(135deg, #1f4463 0%, #0a2a42 100%);
    padding: 20px 24px;
    margin: 20px 0;
    border-radius: 16px;
    color: white;
}

.product-specs-content {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
}

.product-specs-item {
    flex: 1;
    min-width: 180px;
}

.product-specs-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 6px;
}

.product-specs-value {
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
}

.install-checkbox {
    background: #fef2f2;
    padding: 18px;
    border-radius: 14px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.product-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-primary {
    background: #b6182d;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: #991b1b;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #b91c1c;
    color: #b91c1c;
}

.btn-outline:hover {
    background: #b91c1c;
    color: white;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-outline-light:hover {
    background: white;
    color: #0c1d2c;
    transform: translateY(-2px);
}

/* ========================================
   CERTIFICATES BLOCK
   ======================================== */
.catalog-element__action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0 30px;
    padding: 30px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.cert-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.cert-section-title {
    width: 100%;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
}

.catalog-element__certificate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f8fafc;
    color: #1e293b;
    text-decoration: none;
    border-radius: 14px;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
}

.catalog-element__certificate-btn:hover {
    background: white;
    border-color: #b91c1c;
}

/* ========================================
   FIRE PROTECTION CALCULATOR
   ======================================== */
.fire-protection-calculator {
    background: white;
    border-radius: 24px;
    padding: 32px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.resistance-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.option-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 16px;
    cursor: pointer;
    text-align: center;
}

.option-card.selected {
    border-color: #b91c1c;
    background: #fef2f2;
}

.resistance-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.result-card {
    background: #f1f5f9;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: #b91c1c;
}

/* ========================================
   INFO & TECH SPECS
   ======================================== */
.info-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.tech-specs-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

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

.tech-specs-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
}

.tech-specs-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #27ae60, #229954);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.tech-specs-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
}

.tech-specs-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

/* ========================================
   COLLAPSIBLE BLOCKS
   ======================================== */
.collapsible-block {
    margin-bottom: 0px;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 16px 0;
    user-select: none;
}

.collapsible-header h2, .collapsible-header h3 {
    margin: 0;
    flex: 1;
}

.collapsible-icon {
    font-size: 1.2rem;
    color: #64748b;
    transition: transform 0.3s ease;
    width: 24px;
    text-align: center;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.collapsible-content.open {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--dark-blue);
    color: white;
    padding: 48px 0;
    margin-top: 64px;
}

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

.footer a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
}

.footer a:hover {
    opacity: 1;
    color: var(--red-flame);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1000px) {
    .menu-container {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .header-container {
        justify-content: space-between;
    }
    
    /* На планшетах и мобильных показываем top-bar, скрываем contact-stripe */
    .top-bar {
        display: block;
        max-height: 60px;
        opacity: 1;
        padding: 10px 0;
    }
    
    .contact-stripe {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        min-height: 60vh;
    }
    
    .hero .container {
        padding: 30px 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .product-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .resistance-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card-image {
        height: 140px;
    }
    
    .category-title {
        font-size: 16px;
    }
    
    .product-tag {
        padding: 3px 10px;
        font-size: 11px;
    }
    
    .logo img {
        height: 35px;
    }
    
   .top-bar .container {
        padding: 0 20px 0 15px;  /* Справа 20px, слева 15px */
    }
    
    .top-links {
        gap: 15px;
    }
    
    .top-links a {
        font-size: 0.7rem;
    }
    
    .region-btn {
        padding: 4px 12px;
        font-size: 0.7rem;
    }
    
    .header-container {
        padding: 20px 20px;
    }
    
    .hamburger-inner {
        width: 24px;
        height: 24px;
        gap: 4px;
    }
    
    .mobile-menu-grid {
        gap: 15px;
        max-width: 400px;
    }
    
    .mobile-menu-item i {
        font-size: 1.5rem;
    }
    
    .mobile-menu-item span {
        font-size: 0.7rem;
    }
    
    .mobile-menu-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 30px 0 40px;
    }
    
    .page-header {
        padding: 30px 0 20px;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
     .top-bar {
        display: block;
        max-height: 60px;
        opacity: 1;
        padding: 10px 0;
    }
    
    .contact-stripe {
        display: none !important;
    }
    .region-wrapper {
        margin-left: auto;
    }
}

@media (min-width: 769px) {
    .top-bar {
        display: none;
    }
    
    .contact-stripe {
        display: block;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
    }
    
    .hero .container {
        padding: 20px 16px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.65rem;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
    
    .top-links {
        gap: 10px;
    }
    
    .top-links a {
        font-size: 0.65rem;
    }
    
    .top-bar .container {
        padding: 0 16px 0 12px;  /* На маленьких экранах меньше отступы */
    }
    
    .region-btn {
        padding: 4px 10px;
        font-size: 0.65rem;
    }
    
    .logo img {
        height: 33px;
    }
    
    .hamburger-inner {
        width: 22px;
        height: 22px;
        gap: 3px;
    }
    
    .square {
        border-radius: 2px;
    }
    
    .mobile-menu-grid {
        gap: 12px;
        max-width: 330px;
    }
    
    .mobile-menu-item i {
        font-size: 1.2rem;
    }
    
    .mobile-menu-item span {
        font-size: 0.6rem;
    }
    
    .mobile-menu-close {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    
    .btn-primary, .btn-outline-light {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* Вспомогательные классы */
body.no-scroll,
body.tv-animation-active {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

.sticky-wrapper + .contact-stripe {
    margin-top: 0;
}


/* ========================================
   HERO SKELETON LOADER
   ======================================== */
.hero-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: linear-gradient(135deg, #0c1d2c 0%, #1a3a4a 100%);
    display: flex;
    align-items: center;
    padding: 40px 15px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-skeleton.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.skeleton-content {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Анимированные элементы скелетона */
.skeleton-badge {
    width: 180px;
    height: 28px;
    background: rgba(255,255,255,0.15);
    border-radius: 40px;
    margin-bottom: 24px;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-title {
    width: 80%;
    height: 52px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    margin-bottom: 20px;
    animation: skeletonPulse 1.5s ease-in-out infinite 0.2s;
}

.skeleton-text {
    width: 70%;
    height: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-bottom: 12px;
    animation: skeletonPulse 1.5s ease-in-out infinite 0.4s;
}

.skeleton-text.short {
    width: 50%;
    animation-delay: 0.5s;
}

.skeleton-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.skeleton-btn {
    width: 180px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    border-radius: 40px;
    animation: skeletonPulse 1.5s ease-in-out infinite 0.6s;
}

.skeleton-btn.outline {
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.08);
    width: 160px;
    animation-delay: 0.7s;
}

@keyframes skeletonPulse {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.01);
    }
    100% {
        opacity: 0.4;
        transform: scale(1);
    }
}

/* Анимация появления контента после загрузки */
.hero-content {
    max-width: 600px;
    color: white;
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Добавить задержку для более плавного перехода */
.hero-skeleton {
    transition: opacity 0.8s ease, visibility 0.8s ease;  /* Увеличил с 0.6 до 0.8 */
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}


/* ========================================
   TOP BAR (простой)
   ======================================== */
.top-bar {
    background: rgba(31, 68, 99, 0.9);
    backdrop-filter: blur(8px);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 102;
}

.top-bar .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-btn {
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    padding: 8px 18px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.top-bar-btn:hover {
    background: #b6182d;
    transform: translateY(-1px);
}

.top-bar-btn i {
    font-size: 1rem;
}

/* ========================================
   PHONE MODAL (в стиле мобильного меню)
   ======================================== */
.phone-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 29, 44, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.phone-modal-overlay.active {
    display: flex;
}

.phone-modal {
    background: #0c1d2c;
    border-radius: 24px;
    max-width: 420px;
    width: 90%;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow: hidden;
}

.phone-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.phone-modal-header h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.phone-modal-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-modal-close:hover {
    background: #b6182d;
    transform: rotate(90deg);
}

.phone-modal-body {
    padding: 20px 24px;
}

.phone-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.phone-city {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.phone-number {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
}

.phone-number:hover {
    color: #b6182d;
}

/* ========================================
   REQUEST MODAL
   ======================================== */
.request-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 29, 44, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.request-modal-overlay.active {
    display: flex;
}

.request-modal {
    background: white;
    border-radius: 24px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow: hidden;
}

.request-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.request-modal-header h3 {
    color: #041C2C;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.request-modal-close {
    background: #f1f5f9;
    border: none;
    color: #1e293b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-modal-close:hover {
    background: #b6182d;
    color: white;
    transform: rotate(90deg);
}

.request-modal-body {
    padding: 24px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.form-group .required {
    color: #b6182d;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b6182d;
}

.request-submit-btn {
    width: 100%;
    background: #b6182d;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.request-submit-btn:hover {
    background: #991b1b;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}


/* ========================================
   MODAL OVERLAY
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 29, 44, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ========================================
   MODAL
   ======================================== */
.modal {
    background: white;
    border-radius: 20px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-header h3 {
    color: #041C2C;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.modal-close {
    background: #f1f5f9;
    border: none;
    color: #1e293b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #b6182d;
    color: white;
    transform: rotate(90deg);
}

/* ========================================
   FORM
   ======================================== */
.modal-body {
    padding: 24px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
}

.form-group .required {
    color: #b6182d;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b6182d;
    box-shadow: 0 0 0 3px rgba(182, 24, 45, 0.1);
}

.form-group select.error,
.form-group input.error,
.form-group textarea.error {
    border-color: #b6182d;
}

/* ========================================
   DROP ZONE
   ======================================== */
.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.2s;
}

.drop-zone.drag-over {
    border-color: #b6182d;
    background: #fef2f2;
}

.drop-content i {
    font-size: 1.8rem;
    color: #b6182d;
    margin-bottom: 10px;
}

.drop-content p {
    margin: 0 0 6px;
    font-size: 0.85rem;
    color: #1e293b;
}

.drop-content small {
    font-size: 0.75rem;
    color: #94a3b8;
}

.browse-link {
    color: #b6182d;
    font-weight: 600;
    cursor: pointer;
}

/* ========================================
   FILE LIST
   ======================================== */
.file-list {
    margin-top: 12px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 0.8rem;
}

.file-name {
    color: #1e293b;
}

.file-size {
    color: #64748b;
}

.remove-file {
    background: none;
    border: none;
    color: #b6182d;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
}

/* ========================================
   ERROR MESSAGE
   ======================================== */
.error-message {
    color: #b6182d;
    font-size: 0.75rem;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* ========================================
   FORM ACTIONS
   ======================================== */
.form-actions {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.submit-btn {
    flex: 1;
    background: #b6182d;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.submit-btn:hover {
    background: #991b1b;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.cancel-btn {
    flex: 0.5;
    background: #e2e8f0;
    color: #1e293b;
    padding: 14px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.cancel-btn:hover {
    background: #cbd5e1;
}

.form-note {
    margin-top: 18px;
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
}

.form-note i {
    margin-right: 6px;
}

/* ========================================
   TOP BAR BUTTONS
   ======================================== */
.top-bar-btn {
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    padding: 8px 18px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.top-bar-btn:hover {
    background: #b6182d;
    transform: translateY(-1px);
}

.top-bar-btn i {
    font-size: 1rem;
}