дфт/* Import Google Fonts - Only Inter now */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #2c3e50;
    margin: 0;
    overflow-x: hidden;
    font-size: 18px; /* Increased base size from default */
}

/* --- Animated Background Canvas --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #f8f9fa;
}

#app {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* --- Header Styling --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 25px 40px; /* Increased padding */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-family: 'Inter', sans-serif; /* Unified */
    font-size: 2.2em; /* Increased from 1.8em */
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.5px;
}

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

nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em; /* Increased */
    transition: all 0.3s ease;
}

nav a:hover {
    color: #ffffff;
}

/* --- Informational Layout --- */
.info-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px;
}

.info-section {
    margin-bottom: 140px; /* Increased spacing */
    text-align: center;
}

.info-section h2 {
    font-family: 'Inter', sans-serif; /* Unified */
    font-size: 3.5em; /* Increased from 2.8em */
    font-weight: 700;
    margin-bottom: 40px;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.info-text {
    text-align: justify;
    line-height: 1.8;
    font-size: 1.4em; /* Increased from 1.2em */
    color: #444;
    max-width: 900px; /* Slightly wider */
    margin: 0 auto 60px;
}

/* --- Media Grid (Standard) --- */
.media-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px; /* Increased gap */
    margin-top: 50px;
}

/* --- Video Gallery Grid (Numbered) --- */
.video-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 80px;
}

.gallery-item-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
}

.gallery-number {
    font-family: 'Inter', sans-serif; /* Unified */
    font-size: 3.5em; /* Increased */
    color: #1e3c72; /* Changed to primary blue for accent */
    font-weight: 800;
    margin-bottom: 0;
    line-height: 1;
    min-width: 80px;
    text-align: right;
    opacity: 0.8;
}

.media-item {
    background: #fff;
    border-radius: 20px; /* Smoother corners */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    width: 100%;
    position: relative;
    z-index: 1;
}

.media-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.media-item video, .media-item img {
    width: 100%;
    height: auto; /* Let content define height to remove white bars */
    min-height: 300px; /* Minimum height for consistency */
    object-fit: cover;
    display: block;
}

/* --- Interactive Before/After Slider --- */
.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Wider */
    height: 600px; /* Taller */
    margin: 80px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    cursor: ew-resize;
    background-color: #c5c5c5; /* Consistent gray background */
}

/* --- Labeled Media Rows (Floating Labels) --- */
.labeled-row {
    position: relative; /* Anchor for absolute label */
    margin-top: 80px; /* More space for visual separation */
}

.row-label {
    position: absolute;
    right: 100%; /* Push outside to the left */
    top: 50%;
    transform: translateY(-50%);
    
    width: 220px; /* Fixed width */
    margin-right: 40px; /* Gap between label and videos */
    
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    
    font-weight: 700;
    color: #1e3c72;
    font-size: 1.1em;
    text-align: right;
    
    border-left: none;
    border-right: 5px solid #2a5298; /* Accent pointing to content */
    
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.labeled-row .media-pair {
    width: 100%; /* Full width to match other sections */
    margin-top: 0;
}

/* On smaller screens, move label to top */
@media (max-width: 1600px) {
    .labeled-row {
        margin-top: 60px;
    }
    .row-label {
        position: static;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        transform: none;
        
        text-align: left;
        justify-content: flex-start;
        border-right: none;
        border-left: 5px solid #2a5298;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
}


.comparison-slider .image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.comparison-slider .image-clipper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 3px solid #fff;
}

.comparison-slider .image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    z-index: 3;
    transform: translateX(-50%);
    pointer-events: none;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    z-index: 4;
}

.slider-button::before {
    content: "◀▶";
    color: #2a5298;
    font-size: 12px;
    font-weight: bold;
}

/* Specific fix for Template Slider Images */
#template-slider .image-before,
#template-slider .image-after {
    background-size: contain; /* Show full image without cropping */
    background-repeat: no-repeat;
    background-position: center center; /* Center strictly */
    background-color: #c5c5c5; /* Match image background */
}

/* --- Footer --- */
footer {
    background: #1a1a1a;
    color: #888;
    padding: 60px 40px;
    text-align: center;
    margin-top: 100px;
}

footer .footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

footer .footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    opacity: 0.6;
}

footer .footer-nav a:hover {
    opacity: 1;
}

/* --- CTA Button --- */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2em;
    margin-top: 30px;
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(30, 60, 114, 0.4);
    color: #fff;
}

/* --- Animations --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Responsive adjustment */
@media (max-width: 900px) {
    .video-gallery {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile Responsiveness (New) --- */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    header h1 {
        font-size: 1.8em;
    }

    nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Reduce giant hero text */
    section.info-section h1[style*="font-size: 5.5em"] {
        font-size: 3em !important;
    }
    
    .info-text {
        font-size: 1.1em;
        padding: 0 10px;
    }

    .info-section h2 {
        font-size: 2em;
    }

    /* Force vertical stacking and visual grouping for pairs */
    .media-pair {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px !important;
        border: 2px solid #e1e4e8;
        border-radius: 16px;
        background: #ffffff;
        box-sizing: border-box;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        margin-top: 30px !important;
        grid-template-columns: unset !important; /* Reset grid */
    }
    
    .media-pair .media-item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-shadow: none !important; /* Simplify nested shadow */
        border: 1px solid #eee !important;
    }

    .comparison-slider {
        height: 300px; /* Smaller slider on mobile */
        margin: 40px auto;
    }

    /* Adjust labeled rows */
    .row-label {
        position: static;
        width: auto;
        transform: none;
        margin-bottom: 20px;
        text-align: left;
        justify-content: flex-start;
        border-right: none;
        border-left: 5px solid #2a5298;
        padding: 15px;
    }

    /* Gallery adjustments */
    .video-gallery {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        grid-template-columns: unset !important;
    }

    .gallery-item-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        /* Add frame style to gallery items too */
        padding: 20px;
        border: 2px solid #e1e4e8;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        box-sizing: border-box;
        width: 100%;
    }

    .gallery-item-wrapper .media-item {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 15px;
        box-shadow: none !important;
        border: 1px solid #eee !important;
    }

    .gallery-number {
        text-align: center;
        margin-bottom: 0;
        width: 100%;
        font-size: 2.5em; /* Slightly smaller number */
    }
    
    footer {
        padding: 40px 20px;
    }

    footer .footer-nav {
        flex-direction: column;
        gap: 15px;
    }

    /* Fix video zooming/cropping on mobile */
    .media-item {
        height: auto;
        min-height: auto;
    }
    
    .media-item video, .media-item img {
        min-height: auto;
        object-fit: contain;
    }
}