:root {
    --primary-color: #0d6efd; /* Use bootstrap's primary blue or customized */
    --primary-hover: #0b5ed7;
    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #e8eaed; /* Gray background */
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography & Utilities */
.fw-800 { font-weight: 800; }
.tracking-wide { letter-spacing: 2px; }
.py-6 { padding-top: 6rem; padding-bottom: 6rem; }
.section-bg { background-color: #e0e4e8; }
.divider { 
    height: 4px; 
    width: 60px; 
    background-color: var(--primary-color); 
    border-radius: 2px; 
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.bg-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-link {
    color: #495057 !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}
.action-btn { 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.action-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(13, 110, 253, 0.35) !important;
}
.hero-action-btn {
    animation: pulse-primary 3s infinite;
}
@keyframes pulse-primary {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}
.logo-img {
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}
.navbar-brand:hover .logo-img {
    transform: rotate(5deg) scale(1.1);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: url('../img/Zabor Zhaljuzi/Zabor Zhaljuzi_metalmagnit.by_8.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Более глубокий и современный градиент с синим отливом */
    background: linear-gradient(to top, rgba(10,18,30,0.75) 0%, rgba(10,18,30,0.35) 60%, rgba(10,18,30,0.10) 100%);
    z-index: 0;
}
.text-shadow-hero {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}
.text-shadow-sm {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}
.hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.75);
    animation: liveDotPulse 2s infinite;
}
@keyframes liveDotPulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
/* Анимация левитации (floating) для элементов */
.float-animation {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.glass-btn {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}
.glass-btn:hover {
    background: white;
    color: var(--primary-color);
}
.animate-fade-up {
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Services Cards */
.transition-hover {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.service-card {
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05) !important;
    background-color: #ffffff !important;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.service-card .card-body {
    background-color: #f8f9fa; /* Светло-серый фон именно для описания */
    transition: background-color 0.4s ease;
}
.service-card:hover .card-body {
    background-color: #f1f3f5;
}
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(13, 110, 253, 0.12), 0 0 20px rgba(13, 110, 253, 0.05) !important;
    border-color: rgba(13, 110, 253, 0.3) !important;
}
.service-card img.object-fit-cover {
    height: 380px;
    width: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.service-card:hover img.object-fit-cover {
    transform: scale(1.1);
}
.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #004dc7 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #003fa3 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}
.btn-outline-primary {
    border-width: 2px;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Why Us Block */
.feature-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.feature-card:hover {
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.1) !important;
    border-color: rgba(13, 110, 253, 0.5) !important;
    transform: translateY(-5px);
}
.feature-icon {
    width: 60px; 
    height: 60px;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3) !important;
}

/* Portfolio & Gallery */
#gallery-container {
    transition: opacity 0.3s ease-in-out;
}

.portfolio-card {
    height: 300px;
    cursor: pointer;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-card:hover {
    transform: scale(1.03); /* Увеличение всей карточки (hover эффект) */
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}
.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
}

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

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05); /* Легкое увеличение самого фото внутри */
}

.filter-btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Workflow Block */
.border-dashed { border-style: dashed !important; }
.top-25 { top: 35px; } /* Align line with circles */
.step-icon {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    background-color: white;
}
.workflow-step:hover .step-icon {
    background-color: var(--primary-color) !important;
    transform: scale(1.15);
    box-shadow: 0 15px 30px rgba(13, 110, 253, 0.3) !important;
}
.workflow-step:hover .step-icon span {
    color: white !important;
}

/* Forms */
.focus-ring-primary:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}
/* Стили для формы на темном фоне (подвал) */
.contact-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
}
/* Стили для формы на светлом фоне (модальное окно) */
.order-modal-form .form-control:focus {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border: 1px solid var(--primary-color) !important;
}
.contact-form .form-control {
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}
.action-link:hover {
    color: #a0c4ff !important;
}

/* Responsive Maps */
.map-container iframe {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}
@media (max-width: 991.98px) {
    .workflow-line { display: none !important; }
    .hero-section {
        background-attachment: scroll;
    }
}

/* Scroll to Top Button */
.btn-scroll-top {
    width: 60px;
    height: 60px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
}
.btn-scroll-top.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.btn-scroll-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.4) !important;
}

@media (prefers-reduced-motion: reduce) {
    .hero-live-dot {
        animation: none;
        box-shadow: none;
    }
    .tilt-card {
        transform: none !important;
    }
}

/* Service Page Hero */
.service-hero {
    min-height: 70vh;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}
.service-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10,18,30,0.8) 0%, rgba(10,18,30,0.4) 50%, rgba(10,18,30,0.15) 100%);
    z-index: 0;
}
@media (max-width: 991.98px) {
    .service-hero {
        min-height: 50vh;
        background-attachment: scroll;
    }
}

/* ========== BLOG STYLES ========== */

/* Blog Hero */
.blog-hero {
    min-height: 55vh;
    background: linear-gradient(135deg, #0a121e 0%, #0d3680 60%, #0d6efd 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,110,253,0.25) 0%, transparent 70%);
    pointer-events: none;
}
.blog-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Blog Card */
.blog-card {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06) !important;
    background: #ffffff;
    transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    color: inherit;
    display: block;
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 55px rgba(13, 110, 253, 0.13), 0 0 20px rgba(13, 110, 253, 0.06) !important;
    border-color: rgba(13, 110, 253, 0.25) !important;
    color: inherit;
    text-decoration: none;
}
.blog-card-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.08);
}
.blog-card-category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(13, 110, 253, 0.09);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.6rem;
}
.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}
.blog-card:hover .blog-card-title {
    color: var(--primary-color);
}
.blog-card-excerpt {
    font-size: 0.88rem;
    color: #6c757d;
    line-height: 1.6;
}
.blog-card-meta {
    font-size: 0.78rem;
    color: #adb5bd;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.blog-card-meta i { font-size: 0.8rem; }
.blog-card-readmore {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.3s;
}
.blog-card:hover .blog-card-readmore { gap: 0.6rem; }

/* Article Page */
.article-hero {
    min-height: 60vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
}
.article-hero:not(.article-hero--cover) {
    background: linear-gradient(135deg, #0a121e 0%, #0d3475 60%, #0d6efd 100%);
}
.article-hero--cover {
    background-size: cover;
    background-position: center center;
    background-color: #0a121e;
}
.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,18,30,0.8) 0%, rgba(10,18,30,0.4) 50%, rgba(10,18,30,0.15) 100%);
    z-index: 0;
}
.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.article-hero-content {
    position: relative;
    z-index: 1;
}
.article-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.2rem;
}
.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

/* Article Body */
.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2d3748;
}
.article-body h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid rgba(13,110,253,0.15);
    position: relative;
}
.article-body h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}
.article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.article-body p { margin-bottom: 1.2rem; }
.article-body ul, .article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: #1a1a2e; }

/* Info box inside article */
.article-infobox {
    background: linear-gradient(135deg, rgba(13,110,253,0.06) 0%, rgba(13,110,253,0.03) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.article-infobox-title {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
}

/* Article TOC */
.article-toc {
    background: #f8f9ff;
    border: 1px solid rgba(13,110,253,0.12);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.article-toc-title {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.article-toc ol {
    margin: 0;
    padding-left: 1.25rem;
}
.article-toc li {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}
.article-toc a {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.article-toc a:hover { color: var(--primary-color); }

/* Sidebar */
.article-sidebar-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.article-sidebar-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(13,110,253,0.1);
}

/* Share buttons in article */
.article-share {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin: 2.5rem 0 0;
}
.article-share-label {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #1a1a2e;
    margin-bottom: 1rem;
}
.article-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.article-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.article-share-btn svg {
    flex-shrink: 0;
}
.article-share-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.article-share-btn--vk { background: #0077ff; }
.article-share-btn--vk:hover { background: #0066dd; }
.article-share-btn--ok { background: #ee8208; }
.article-share-btn--ok:hover { background: #d67407; }
.article-share-btn--telegram { background: #26a5e4; }
.article-share-btn--telegram:hover { background: #1d94cf; }
.article-share-btn--viber { background: #7360f2; }
.article-share-btn--viber:hover { background: #5f4ed9; }

/* CTA box in article */
.article-cta {
    background: linear-gradient(135deg, #0d3475 0%, #0d6efd 100%);
    border-radius: 1.25rem;
    padding: 2rem 2rem;
    color: #fff;
    text-align: center;
    margin: 2.5rem 0;
}
.article-cta h4 { font-weight: 800; margin-bottom: 0.5rem; }
.article-cta p { opacity: 0.85; margin-bottom: 1.25rem; }

/* Spec table */
.spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(13,110,253,0.12);
    font-size: 0.92rem;
}
.spec-table th {
    background: linear-gradient(135deg, #0d3475, #0d6efd);
    color: #fff;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
}
.spec-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(13,110,253,0.08);
    color: #2d3748;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:nth-child(even) td { background: rgba(13,110,253,0.03); }
.spec-table td:first-child { font-weight: 600; color: #1a1a2e; }

/* Breadcrumb */
.article-breadcrumb { font-size: 0.82rem; }
.article-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #adb5bd; }
.article-breadcrumb a { color: #6c757d; text-decoration: none; }
.article-breadcrumb a:hover { color: var(--primary-color); }
.article-breadcrumb .active { color: #495057; }

@media (max-width: 767.98px) {
    .article-hero { min-height: 50vh; padding-bottom: 2.5rem; }
    .article-body h2 { font-size: 1.3rem; }
    .article-body { font-size: 0.98rem; }
    .blog-card-img-wrap { height: 180px; }
}
