/* Азбука металла - Кастомные стили */

:root {
    /* Брендовая палитра: синий, красный, чёрный, белый */
    --brand-red: #E53935;
    --brand-red-dark: #C62828;
    --brand-blue: #1F4FA3;
    --brand-blue-dark: #0D2C6F;
    --brand-black: #0D1117;
    --brand-gray: #141A22;
    --brand-silver: #D9E1EC;
    --brand-muted: #9BA7B8;

    /* Основные цвета интерфейса */
    --primary-color: var(--brand-blue);
    --secondary-color: #233047;
    --accent-color: var(--brand-red);
    --accent-warm: var(--brand-red);
    --metallic: #6B7C93;

    /* Фоновые и текстовые */
    --dark-color: var(--brand-black);
    --dark-medium: #111722;
    --dark-light: var(--brand-gray);
    --light-gray: #F4F7FB;
    --medium-gray: var(--brand-muted);
    --text-light: #E6EDF5;
    --text-color: #D3DBE6;

    /* Металлические оттенки */
    --steel-blue: #284777;
    --steel-light: #6E8BB9;
    --silver: #C7D3E3;
    --steel-dark: #182840;

    /* Прозрачности для эффектов */
    --overlay-dark: rgba(13, 17, 23, 0.92);
    --overlay-light: rgba(255, 255, 255, 0.06);
    --glass-effect: rgba(255, 255, 255, 0.04);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    background: linear-gradient(180deg, var(--dark-color) 0%, #0F1621 60%, #0B0F17 100%);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h5 {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

.lead {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Текст .lead на светлом фоне должен быть темным, как обычный текст */
section.bg-light .lead,
.bg-light .lead,
section .bg-light .lead,
section.py-5.bg-light .lead {
    color: #1A202C !important;
    font-weight: 500;
}

/* Header - Modern Design */
.header.sticky-top {
    z-index: 1030 !important;
}

.top-bar {
    font-size: 0.875rem;
    background: linear-gradient(135deg, var(--brand-black) 0%, var(--brand-blue-dark) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-light);
}

.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand i {
    background: linear-gradient(135deg, #5A6C7D 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.navbar {
    background: rgba(13, 17, 23, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    max-height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
    transform: scale(1.04);
}

.nav-link {
    font-weight: 700;
    color: #ffffff !important;
    transition: all 0.25s ease;
    position: relative;
    padding: 0.65rem 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    text-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

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

.nav-link:focus,
.nav-link:active,
.nav-link.active {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-link.active::after {
    width: 100%;
    background: var(--accent-color);
}

/* Buttons - Modern Design */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    color: white;
    box-shadow: 0 6px 18px rgba(31, 79, 163, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-blue-dark) 0%, #0a2156 100%);
    box-shadow: 0 8px 26px rgba(31, 79, 163, 0.45);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    color: white;
    box-shadow: 0 6px 18px rgba(229, 57, 53, 0.35);
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--brand-red-dark) 0%, #a3201f 100%);
    box-shadow: 0 8px 26px rgba(229, 57, 53, 0.45);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--brand-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 79, 163, 0.35);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: white;
    transform: translateY(-2px);
}

/* Hero Section - Modern Industrial Design */
.hero-section {
    background: linear-gradient(135deg, var(--brand-black) 0%, #101827 45%, var(--brand-blue-dark) 100%);
    color: var(--light-gray);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, var(--overlay-light) 25%, transparent 25%),
        linear-gradient(-45deg, var(--overlay-light) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--overlay-light) 75%),
        linear-gradient(-45deg, transparent 75%, var(--overlay-light) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    opacity: 0.15;
    animation: moveGrid 20s linear infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(229,57,53,0.35) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(80px);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes moveGrid {
    0% { background-position: 0 0, 0 30px, 30px -30px, -30px 0px; }
    100% { background-position: 60px 60px, 60px 90px, 90px 30px, 30px 60px; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.1); }
}

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

.hero-section h1 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    margin-bottom: 2.5rem;
    color: var(--light-gray);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section .card {
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Карточка с белым фоном в hero-секции */
.hero-section .card.bg-white,
.card.bg-white {
    background: #ffffff !important;
}

.hero-section .card.bg-white h4,
.hero-section .card.bg-white h5,
.hero-section .card.bg-white .card-title,
.card.bg-white h4,
.card.bg-white h5,
.card.bg-white .card-title {
    color: #1A202C !important;
}

.hero-section .card.bg-white p,
.hero-section .card.bg-white .card-text,
.card.bg-white p,
.card.bg-white .card-text {
    color: #1A202C !important;
}

/* Cards - Modern Industrial Design */
.card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    background: linear-gradient(180deg, #121826 0%, #0f141f 100%);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--steel-blue) 0%, var(--metallic) 50%, var(--silver) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
    border-color: rgba(226, 231, 240, 0.18);
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    color: var(--text-light);
    font-weight: 700;
}

/* Текст в карточках на темном фоне - светло-серый */
.card .card-text,
.card p,
.card-text {
    color: #CBD5E0 !important;
    font-weight: 500;
}

/* Текст в карточках на белом фоне - темный */
.card.bg-white .card-text,
.card.bg-white p,
.card.bg-white .card-title,
.card[style*="background"] .card-text,
.card[style*="background"] p {
    color: #1A202C !important;
}

/* Специально для карточек услуг на главной */
section.py-5 .card .card-text,
section.py-5 .card p {
    color: #CBD5E0 !important;
}

section.py-5 .card .card-title {
    color: #E6EDF5 !important;
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Category Cards - Modern Design */
.category-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #121826 0%, #0f141f 100%);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--steel-blue), var(--metallic), var(--silver));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    background: linear-gradient(135deg, #161d2b 0%, #111722 100%);
    transform: translateY(-4px);
}

.category-card:hover::after {
    opacity: 1;
}

.category-card i {
    font-size: 3.5rem;
    color: #6E8BB9 !important;
    background: linear-gradient(135deg, #6E8BB9 0%, #C7D3E3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
    display: inline-block;
}

.category-card:hover i {
    transform: scale(1.1);
    background: linear-gradient(135deg, #2D3748 0%, #4A5568 50%, #718096 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Product Cards - Modern Design */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge.bg-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--accent-warm) 0%, #e65a2a 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-blue) 100%) !important;
}

.product-card .badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.product-card img {
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card .card-body {
    background: linear-gradient(180deg, #0f141f 0%, #0b1019 100%);
    color: var(--text-color);
}

.product-price {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-warm) 0%, #e65a2a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Services Hero Section - Dark Style */
.services-hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--steel-dark) 100%) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.services-hero-section .section-title {
    color: #ffffff !important;
}

.services-hero-section .lead {
    color: var(--text-light) !important;
}

.services-hero-section .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Service Detail Page - Headings on Dark Background */
section.py-5 h1,
section.py-5 h2,
section.py-5 h3,
section.py-5 h4,
section.py-5 h5,
section.py-5 h6 {
    color: #ffffff !important;
}

section.py-5 .section-title {
    color: #ffffff !important;
}

section.py-5 p,
section.py-5 .lead,
section.py-5 .card-text {
    color: var(--text-light) !important;
}

/* Services Section */
.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-blue) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(90, 108, 125, 0.4);
    border: 5px solid white;
}

.service-icon i {
    font-size: 2.25rem;
    color: white;
}

.card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(220, 53, 69, 0.5);
    background: linear-gradient(135deg, var(--brand-red) 0%, #DC3545 100%);
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 80px 0;
}

.features-section p,
.features-section .text-muted,
.features-section .card-text {
    color: #1A202C !important;
    font-weight: 500;
}

.features-section h2,
.features-section h3,
.features-section h4,
.features-section h5,
.features-section .section-title {
    color: #1A202C !important;
}

.features-section .section-title::after {
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-red) 100%);
}

.feature-box {
    text-align: center;
    padding: 2rem;
}

.feature-box i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #5A6C7D 0%, #8B9DC3 50%, #C0C8D0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* How We Work Section */
.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--brand-red) 0%, #DC3545 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.step-number:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(220, 53, 69, 0.4);
}

/* Contact Section */
.contact-info {
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Forms - Modern Design */
.form-control, .form-select, textarea.form-control {
    border-radius: 10px;
    border: 2px solid #1f2a38;
    padding: 0.875rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #0f1621;
    font-weight: 400;
    color: #E6EDF5;
    font-size: 1rem;
}

.form-control:hover, .form-select:hover, textarea.form-control:hover {
    border-color: var(--brand-blue);
    background: #111a26;
}

.form-control:focus, .form-select:focus, textarea.form-control:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(31, 79, 163, 0.25);
    background: #0b111a;
    outline: none;
    color: #E6EDF5;
}

.form-control::placeholder, textarea.form-control::placeholder {
    color: #7e8ba0;
    font-weight: 400;
    opacity: 1;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.hero-section .card h4 {
    color: var(--dark-color);
}

/* Footer - Modern Design */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%) !important;
    border-top: 4px solid var(--steel-blue);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: 
        linear-gradient(45deg, var(--overlay-light) 25%, transparent 25%),
        linear-gradient(-45deg, var(--overlay-light) 25%, transparent 25%);
    background-size: 40px 40px;
    opacity: 0.05;
}

.footer a {
    transition: all 0.3s ease;
    position: relative;
}

.footer a:hover {
    color: var(--accent-warm) !important;
    transform: translateX(4px);
}

/* Breadcrumbs Container - Dark Style */
.py-4.bg-light {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2D3748 100%) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Breadcrumbs - Modern Design */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    font-size: 0.95rem;
}

.breadcrumb-item a {
    color: var(--steel-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--medium-gray);
}

/* Breadcrumbs on dark background */
.py-4.bg-light .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.py-4.bg-light .breadcrumb-item a:hover {
    color: var(--accent-warm);
}

.py-4.bg-light .breadcrumb-item.active {
    color: #ffffff;
}

.py-4.bg-light .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Price Tag - Modern Design */
.price-tag {
    background: linear-gradient(135deg, var(--accent-warm) 0%, #e65a2a 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    display: inline-block;
    font-weight: 800;
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    letter-spacing: -0.02em;
}

/* Alerts - Modern Design */
.alert {
    border-radius: 10px;
    border: none !important;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alert-info {
    background: linear-gradient(135deg, rgba(139, 157, 195, 0.12) 0%, rgba(148, 163, 184, 0.08) 100%);
    border-left: 4px solid var(--steel-blue) !important;
    color: var(--dark-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(230, 90, 42, 0.1) 100%);
    border-left: 4px solid var(--accent-warm) !important;
    color: var(--dark-color);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-left: 4px solid #10B981 !important;
    color: var(--dark-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-left: 4px solid #EF4444 !important;
    color: var(--dark-color);
}

/* Alerts on dark background */
section.py-5 .alert,
section.py-5 .alert-info,
section.py-5 .alert-warning,
section.py-5 .alert-success,
section.py-5 .alert-danger {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    color: #ffffff !important;
    border-left: 4px solid var(--steel-blue) !important;
}

section.py-5 .alert-info {
    border-left-color: var(--steel-blue) !important;
}

section.py-5 .alert-warning {
    border-left-color: var(--brand-red) !important;
}

section.py-5 .alert-success {
    border-left-color: #10B981 !important;
}

section.py-5 .alert-danger {
    border-left-color: #EF4444 !important;
}

section.py-5 .alert i,
section.py-5 .alert .text-muted,
section.py-5 .alert small {
    color: rgba(255, 255, 255, 0.9) !important;
}

section.py-5 .alert a {
    color: #ffffff !important;
    text-decoration: underline;
}

section.py-5 .alert a:hover {
    color: var(--brand-red) !important;
}

/* Specifications Table */
.specifications-table {
    width: 100%;
}

.specifications-table tr:nth-child(even) {
    background: var(--light-gray);
}

.specifications-table td {
    padding: 0.75rem;
}

.specifications-table td:first-child {
    font-weight: 600;
    width: 40%;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
}

/* Cart Badge */
.cart-count {
    font-size: 0.7rem;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
}

.nav-link .cart-count {
    top: 0 !important;
    left: 100% !important;
}

/* Utilities - Modern Design */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.text-primary {
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-secondary {
    color: var(--steel-blue) !important;
}

.border-primary {
    border-color: var(--steel-blue) !important;
}

/* Utility Gradients */
.gradient-primary {
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-blue) 100%);
}

.gradient-warm {
    background: linear-gradient(135deg, var(--accent-warm) 0%, #e65a2a 100%);
}

.gradient-metallic {
    background: linear-gradient(135deg, var(--metallic) 0%, var(--silver) 100%);
}

/* Focus States for Accessibility */
*:focus-visible {
    outline: 3px solid var(--steel-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--steel-blue);
    outline-offset: 3px;
}

.section-title {
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--steel-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section title on light background - same style as features-section with dark gradient */
section.bg-light .section-title,
.bg-light .section-title,
section.py-5.bg-light .section-title {
    font-weight: 800 !important;
    margin-bottom: 3rem !important;
    position: relative !important;
    padding-bottom: 1.25rem !important;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--steel-blue) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

/* Ensure h2.section-title in bg-light uses proper font size */
section.bg-light h2.section-title,
.bg-light h2.section-title,
section.py-5.bg-light h2.section-title {
    font-size: clamp(1.75rem, 3vw, 2.75rem) !important;
    line-height: 1.2 !important;
}

section.bg-light .section-title::after,
.bg-light .section-title::after,
section.py-5.bg-light .section-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100px !important;
    height: 5px !important;
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-red) 100%) !important;
    border-radius: 3px !important;
}

section.bg-light .section-title.text-center::after,
.bg-light .section-title.text-center::after,
section.py-5.bg-light .section-title.text-center::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Override section-title on dark backgrounds */
section.py-5 .section-title,
section.py-5 h1.section-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
    color: #ffffff !important;
}


.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--steel-blue) 0%, var(--metallic) 50%, var(--silver) 100%);
    border-radius: 3px;
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--steel-blue) 0%, var(--metallic) 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-blue) 100%);
}

/* Selection Styling */
::selection {
    background: var(--steel-blue);
    color: white;
}

::-moz-selection {
    background: var(--steel-blue);
    color: white;
}

/* Filters */
@media (max-width: 991.98px) {
    .card-header[data-bs-toggle="collapse"] {
        cursor: pointer;
        user-select: none;
    }
    
    .card-header[data-bs-toggle="collapse"]:hover {
        background-color: rgba(59, 89, 152, 0.9) !important;
    }
    
    #filterCollapse.collapse:not(.show) {
        display: none;
    }
}

/* Fix for mobile select dropdowns */
.form-select {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Contact Page Styles - Modern Redesign */
.contact-card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.contact-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-red) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--brand-blue);
}

.contact-card-modern:hover::before {
    transform: scaleX(1);
}

.contact-icon-modern {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #4A90E2 100%);
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
    position: relative;
}

.contact-card-modern:hover .contact-icon-modern {
    background: linear-gradient(135deg, var(--brand-red) 0%, #DC3545 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(220, 53, 69, 0.4);
}

.contact-icon-modern i {
    transition: transform 0.3s ease;
}

.contact-card-modern:hover .contact-icon-modern i {
    transform: scale(1.1);
}

.contact-card-title {
    font-weight: 700;
    color: #1A202C !important;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.contact-info-modern {
    color: #1A202C !important;
}

.contact-info-modern p {
    color: #1A202C !important;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-link {
    color: #1A202C !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
}

.contact-link:hover {
    color: var(--brand-red) !important;
    transform: translateX(5px);
}

.contact-link strong {
    font-weight: 600;
}

/* Contact Cards Dark Style - для главной страницы */
.contact-card-dark {
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.95) 0%, rgba(26, 32, 44, 0.9) 100%);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(74, 144, 226, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.contact-card-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-red) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-card-dark:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    border-color: var(--brand-blue);
}

.contact-card-dark:hover::before {
    transform: scaleX(1);
}

.contact-icon-dark {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #4A90E2 100%);
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
    position: relative;
}

.contact-card-dark:hover .contact-icon-dark {
    background: linear-gradient(135deg, var(--brand-red) 0%, #DC3545 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(220, 53, 69, 0.5);
}

.contact-icon-dark i {
    transition: transform 0.3s ease;
}

.contact-card-dark:hover .contact-icon-dark i {
    transform: scale(1.1);
}

.contact-card-title-dark {
    font-weight: 700;
    color: #ffffff !important;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.contact-info-dark {
    color: #E6EDF5 !important;
}

.contact-info-dark p {
    color: #E6EDF5 !important;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-link-dark {
    color: #E6EDF5 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
}

.contact-link-dark:hover {
    color: var(--brand-red) !important;
    transform: translateX(5px);
}

.contact-link-dark strong {
    font-weight: 600;
}

/* Contact Form Enhancements */
#contactForm .form-label {
    color: var(--dark-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

#contactForm .form-control:focus {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* About Page Styles */
.stat-card {
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.stat-icon {
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-warm) 0%, #d67020 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-image-placeholder {
    height: 400px;
    background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark-color);
}

/* Values Cards */
.value-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border-left: 4px solid transparent;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-left-color: var(--brand-red);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    transform: scale(1.1) rotate(5deg);
}

.value-card h5 {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.value-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Certificates */
.certificate-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.certificate-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--light-gray);
}

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

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

.certificate-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 55, 72, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.certificate-placeholder {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
}

.certificate-body {
    padding: 1rem;
    background: white;
}

.certificate-body h6 {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Services Page Styles */
.service-card {
    background: white;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    margin-top: 50px;
}

.service-card p,
.service-card .service-card-text,
.service-card .service-card-title {
    color: #1A202C !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
    border-radius: 16px 16px 0 0;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.15);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(45, 55, 72, 0.7) 100%);
}

.service-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-icon {
    width: 90px;
    height: 90px;
    margin: -45px auto 1.5rem;
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-blue) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.25rem;
    box-shadow: 0 8px 25px rgba(90, 108, 125, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    border: 5px solid white;
}

.service-card:hover .service-card-icon {
    background: linear-gradient(135deg, var(--brand-red) 0%, #DC3545 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(220, 53, 69, 0.5);
}

.service-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A202C !important;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-card-text {
    color: #1A202C !important;
    text-align: center;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-weight: 500;
}

.service-card .btn {
    margin-top: auto;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card .btn:hover i {
    transform: translateX(5px);
}

.service-card .btn i {
    transition: transform 0.3s ease;
}

/* Feature Boxes Enhancement */
.feature-box {
    padding: 2rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #4A90E2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    margin-bottom: 1rem;
    display: block;
    transition: all 0.3s ease;
}

.feature-box:hover i {
    background: linear-gradient(135deg, var(--brand-red) 0%, #DC3545 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.1);
}

.feature-icon {
    background: linear-gradient(135deg, #5A6C7D 0%, #8B9DC3 50%, #C0C8D0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.feature-box h5 {
    font-weight: 700;
    color: #1A202C !important;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.feature-box p {
    color: #1A202C !important;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 0;
}

.feature-box h5 {
    color: #1A202C !important;
    font-weight: 700;
}

/* Cart Page Styles */
.cart-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.cart-header h4 {
    color: #ffffff !important;
}

.cart-header .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.cart-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
}

.cart-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left-color: var(--steel-blue);
}

/* Текст в cart-item должен быть темным на белом фоне */
.cart-item,
.cart-item * {
    color: var(--dark-color) !important;
}

.cart-item h5,
.cart-item .cart-item-title {
    color: var(--dark-color) !important;
}

.cart-item p,
.cart-item .cart-item-category {
    color: #4A5568 !important;
}

.cart-item strong {
    color: var(--dark-color) !important;
}

.cart-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-blue) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color) !important;
    line-height: 1.4;
}

.cart-item-title a {
    color: var(--dark-color) !important;
    transition: all 0.3s ease;
}

.cart-item-title a:hover {
    color: var(--brand-red) !important;
    text-decoration: underline !important;
}

.cart-item-category {
    font-size: 0.9rem;
    color: #4A5568 !important;
}

.cart-item-category i {
    color: var(--steel-blue) !important;
}

.cart-item-quantity {
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--dark-color);
    display: inline-block;
}

.cart-form-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cart-form-card.sticky-top {
    z-index: 1000 !important;
}

.cart-form-header {
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-blue) 100%);
    padding: 1.5rem;
    color: white;
}

.cart-form-header h4 {
    color: white;
}

.cart-form-body {
    padding: 2rem;
}

.cart-form-body .form-label {
    color: var(--dark-color) !important;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.cart-form-body .text-muted {
    color: #4A5568 !important;
}

.cart-form-body p {
    color: var(--dark-color) !important;
}

.cart-form-body .form-control {
    color: #ffffff !important;
}

.cart-form-body .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.cart-form-body textarea.form-control {
    color: #ffffff !important;
}

.cart-form-body small {
    color: #4A5568 !important;
}

/* Empty Cart */
.empty-cart {
    padding: 4rem 2rem;
}

.empty-cart-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-cart-icon i {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-cart h2 {
    font-weight: 700;
    color: var(--dark-color);
}

/* Steps Section - How We Work */
.steps-container {
    max-width: 100%;
}

.step-item {
    flex: 0 0 auto;
    width: 250px;
}

.step-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    height: 100%;
    border: 2px solid transparent;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--brand-red);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-blue) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(90, 108, 125, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover .step-icon {
    background: linear-gradient(135deg, var(--brand-red) 0%, #DC3545 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(220, 53, 69, 0.4);
}

.step-number-badge {
    position: absolute;
    top: -15px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand-red) 0%, #DC3545 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    border: 3px solid white;
}

.step-title {
    font-weight: 700;
    color: #1A202C !important;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.step-text {
    color: #1A202C !important;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 500;
}

/* Step Arrows */
.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--steel-blue);
    font-size: 3rem;
    padding: 0 1rem;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(10px);
        opacity: 1;
    }
}

/* Стили для секций с bg-light - темный текст на светлом фоне */
section.bg-light p,
section.bg-light .step-text,
section.bg-light .step-title,
section.bg-light h5,
section.bg-light h4,
section.bg-light h3,
section.bg-light h2,
section.bg-light .text-muted,
.bg-light p,
.bg-light .step-text,
.bg-light .step-title {
    color: #1A202C !important;
    font-weight: 500;
}

.bg-light h5,
.bg-light h4,
.bg-light h3,
.bg-light h2 {
    color: #1A202C !important;
    font-weight: 700;
}

/* Lead text in bg-light sections should have same color as regular text */
section.bg-light .lead,
.bg-light .lead,
section.py-5.bg-light .lead {
    color: #1A202C !important;
    font-weight: 500;
}

/* Exception: section-title should use dark gradient, not solid color */
.bg-light h2.section-title,
section.bg-light h2.section-title,
section.py-5.bg-light h2.section-title {
    color: transparent !important;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--steel-blue) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Заголовки на белом/светлом фоне */
section h4,
section h3,
section h2,
section h1,
h4,
h3,
h2,
h1 {
    color: #1A202C !important;
}

/* Исключение для темных секций */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
section[style*="background"] h1,
section[style*="background"] h2,
section[style*="background"] h3,
section[style*="background"] h4 {
    color: #ffffff !important;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .step-item {
        width: 100%;
        max-width: 350px;
    }
    
    .step-card {
        margin-bottom: 1rem;
    }
}

/* Product Info Card - Dark Style */
.product-info-card {
    background: linear-gradient(180deg, #121826 0%, #0f141f 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.product-tabs {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.02);
}

.product-tabs .nav-item {
    margin: 0;
}

.product-tabs .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 0;
    text-decoration: none !important;
}

.product-tabs .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom-color: var(--steel-blue) !important;
    text-decoration: none !important;
}

.product-tabs .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom-color: var(--brand-red) !important;
    text-decoration: none !important;
}

.product-tabs .nav-link i {
    margin-right: 0.5rem;
    opacity: 0.8;
}

.product-tabs .nav-link.active i {
    opacity: 1;
    color: var(--brand-red);
}

.product-tab-content {
    padding: 2rem;
    color: var(--text-light);
    min-height: 150px;
}

.product-description,
.specifications-text {
    color: var(--text-light) !important;
    line-height: 1.8;
    font-size: 1rem;
}

.product-description p,
.specifications-text p {
    color: var(--text-light) !important;
    margin-bottom: 1rem;
}

.product-tab-content .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Footer Contact Styles */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.footer-contact-item:hover {
    transform: translateX(5px);
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-blue) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.footer-contact-item:hover .footer-contact-icon {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    transform: scale(1.1) rotate(5deg);
}

.footer-contact-text {
    flex: 1;
    line-height: 1.6;
}

.footer-contact-label {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.footer-contact-text a:hover {
    color: var(--brand-red) !important;
}

.footer-contact-text span {
    color: white;
}

/* Modal Styles - Dark text on white background */
.modal-content {
    background: #ffffff !important;
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid #e0e0e0;
    background: #ffffff !important;
}

.modal-title {
    color: #1A202C !important;
    font-weight: 700;
}

.modal-body {
    background: #ffffff !important;
    color: #1A202C !important;
}

.modal-body .form-label {
    color: #1A202C !important;
    font-weight: 600;
}

.modal-body .form-control {
    background: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    color: #1A202C !important;
}

.modal-body .form-control:focus {
    background: #ffffff !important;
    border-color: var(--brand-blue) !important;
    color: #1A202C !important;
}

.modal-body .form-control::placeholder {
    color: #9BA7B8 !important;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
    background: #ffffff !important;
}

.modal-body .text-danger {
    color: var(--brand-red) !important;
}

/* Галерея изображений товара */
.product-gallery {
    position: relative;
}

.product-image-wrapper {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.product-gallery-prev,
.product-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-gallery-prev:hover,
.product-gallery-next:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.product-gallery-prev {
    left: 15px;
}

.product-gallery-next {
    right: 15px;
}

.product-gallery-prev i,
.product-gallery-next i {
    color: var(--brand-blue);
    font-size: 18px;
}

.product-gallery-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.product-gallery-thumbnails {
    margin-top: 15px;
}

.product-thumbnail {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.product-thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.product-thumbnail.active {
    opacity: 1;
}

.product-thumbnail img {
    transition: transform 0.3s ease;
}

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

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .product-image-wrapper {
        min-height: 300px;
    }
    
    .product-gallery-prev,
    .product-gallery-next {
        width: 40px;
        height: 40px;
    }
    
    .product-gallery-prev {
        left: 10px;
    }
    
    .product-gallery-next {
        right: 10px;
    }
    
    .product-gallery-thumbnails {
        gap: 8px !important;
    }
    
    .product-thumbnail {
        width: 60px !important;
        height: 60px !important;
    }
}
