/* ===== ВИДЕО-ФОН В HERO СЕКЦИИ ===== */
.hero-video {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    width: 100%;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.hero-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.hero-video-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.5), 
        rgba(0,0,0,0.2));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .hero-video-bg video {
        min-width: 100vw;
        min-height: 100vh;
    }
}

/* iOS Safari */
@supports (-webkit-overflow-scrolling: touch) {
    .hero-video-bg video {
        -webkit-transform: translate3d(-50%, -50%, 0);
        height: -webkit-fill-available;
    }
}

/* ===== ЦВЕТОВАЯ СХЕМА ДЛЯ БОЛТОВ ===== */
:root {
    --bolts-primary: #c80000;
    --bolts-primary-dark: #a00000;
    --bolts-secondary: #e0e0e0;
    --bolts-text-dark: #333;
    --bolts-accent: #4aa6f3;
}

/* Кнопки с красным цветом */
.hero-btn,
.cta-btn,
.form-submit-btn {
    background-color: var(--bolts-primary) !important;
    transition: all 0.3s ease;
}

.hero-btn:hover,
.cta-btn:hover,
.form-submit-btn:hover {
    background-color: var(--bolts-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 0, 0, 0.3);
}

/* Вторичные кнопки */
.hero-btn[style*="background: #e0e0e0"] {
    background-color: var(--bolts-secondary) !important;
    color: #000 !important;
    border: 2px solid var(--bolts-primary);
}

.hero-btn[style*="background: #e0e0e0"]:hover {
    background-color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== АДАПТАЦИЯ HERO КОНТЕНТА ===== */
.hero-title strong {
    font-weight: 900 !important;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-title span {
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===== БЛОК "О НАС" ===== */
.about {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.about-title {
    position: relative;
    display: inline-block;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--bolts-primary) 0%, transparent 100%);
}

/* ===== СЕКЦИЯ С ВИДЕО О ПРОИЗВОДСТВЕ ===== */
.work-process {
    background-color: #f5f5f5 !important;
    padding: 90px 0;
}

.production-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.production-content {
    font-size: 16px;
    line-height: 1.6;
}

.production-video {
    position: sticky;
    top: 100px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-description {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.video-description strong {
    font-size: 16px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.work-process ul {
    list-style: none;
    padding-left: 0;
}

.work-process ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.6;
}

.work-process ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bolts-primary);
    font-weight: bold;
    font-size: 18px;
}

/* ===== БЛОК ГАРАНТИЙ ===== */
.guarantee-section {
    padding: 90px 0;
    background-color: #fff;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.guarantee-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.guarantee-image img:hover {
    transform: scale(1.02);
}

.guarantee-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guarantee-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--bolts-text-dark);
}

.guarantee-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* ===== СТАТИСТИКА ===== */
.stats-section {
    background: linear-gradient(135deg, var(--bolts-primary) 0%, var(--bolts-primary-dark) 100%);
    padding: 80px 0;
}

.stat-number {
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== CTA БЛОК ===== */
.cta-block {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 0, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cta-block .container {
    position: relative;
    z-index: 1;
}

/* ===== БЛАГОДАРНОСТИ КЛИЕНТОВ ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.testimonial-item:hover img {
    transform: scale(1.2);
}

/* ===== ФОРМА ОБРАТНОЙ СВЯЗИ ===== */
.contact-form {
    background: linear-gradient(135deg, #f9f9f9 0%, #e9e9e9 100%);
}

.contact-warning {
    background-color: #fff3cd;
    border-left: 4px solid var(--bolts-primary);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--bolts-primary);
    box-shadow: 0 0 0 3px rgba(200, 0, 0, 0.1);
    outline: none;
}

/* ===== ФУТЕР ===== */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bolts-primary) 0%, var(--bolts-accent) 50%, var(--bolts-primary) 100%);
}

/* ===== SUCCESS POPUP ===== */
.success-popup {
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        transform: translate(-50%, -150%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.success-popup-icon {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

/* ===== АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    /* Видео-фон на мобильных */
    .hero-video-bg iframe {
        width: 300%;
        height: 56.25vw;
        min-height: 100vh;
    }
    
    /* Заголовки в hero */
    .hero-title strong {
        font-size: 36px !important;
        padding: 8px 15px !important;
    }
    
    .hero-title span {
        font-size: 28px !important;
        padding: 8px 15px !important;
    }
    
    .hero-subtitle strong {
        font-size: 14px !important;
    }
    
    /* Кнопки */
    .hero-btn {
        display: block;
        width: 100%;
        margin: 10px 0 !important;
    }
    
    /* Блок с видео о производстве */
    .production-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .production-video {
        position: relative;
        top: 0;
    }
    
    /* Блок гарантий */
    .guarantee-grid {
        grid-template-columns: 1fr !important;
    }
    
    .guarantee-title {
        font-size: 32px !important;
    }
    
    /* Статистика */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .stat-number {
        font-size: 36px !important;
    }
    
    /* Благодарности */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title strong {
        font-size: 28px !important;
    }
    
    .hero-title span {
        font-size: 22px !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== АНИМАЦИИ ПРИ ПРОКРУТКЕ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title,
.section-subtitle,
.about-title {
    animation: fadeInUp 0.8s ease;
}

/* ===== УЛУЧШЕНИЯ НАВИГАЦИИ ===== */
.navbar {
    transition: all 0.3s ease;
    background-color: rgba(235, 235, 235, 0.95);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
}

/* ===== ГАЛЕРЕЯ ПРОДУКЦИИ ===== */
.swiper-button-next,
.swiper-button-prev {
    color: var(--bolts-primary) !important;
    background-color: rgba(255, 255, 255, 0.9);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--bolts-primary);
    color: #fff !important;
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
}

.swiper-pagination-bullet {
    background-color: var(--bolts-primary) !important;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.3);
}

/* ===== КАРТА ===== */
.map iframe {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== СОЦИАЛЬНЫЕ ССЫЛКИ ===== */
.social-link {
    transition: all 0.3s ease;
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--bolts-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.social-link:hover::before {
    width: 100%;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ===== */
.container {
    animation: fadeInUp 0.6s ease;
}

/* Плавное появление изображений */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Эффект при наведении на карточки */
.stat-item,
.advantage-card {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
}

.advantage-card:hover {
    transform: translateY(-5px);
}

/* Улучшение типографики */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.6;
}

/* Плавный скроллинг */
html {
    scroll-behavior: smooth;
}

/* Улучшение читаемости текста */
.timeline-text,
.about-description,
.guarantee-description {
    color: #444;
    font-size: 16px;
    line-height: 1.8;
}

/* Акцентные элементы */
strong {
    color: var(--bolts-primary);
    font-weight: 600;
}

/* Ссылки */
a {
    transition: all 0.3s ease;
}

/* Кастомный scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--bolts-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bolts-primary-dark);
}

/* ===== ПЕЧАТЬ ===== */
@media print {
    .navbar,
    .footer,
    .social-links,
    .hero-btn,
    .cta-btn,
    .form-submit-btn,
    .success-popup-overlay {
        display: none !important;
    }
    
    .hero-video-bg {
        display: none !important;
    }
    
    body {
        background: white;
    }
}