/* ===== КОНФИГУРАЦИЯ ТЕМЫ ===== */
:root {
    /* Основные цвета - КРАСНАЯ СХЕМА НА СВЕТЛОМ ФОНЕ */
    --primary-bg: #f8f9fa;
    --light-bg: #ffffff;
    --card-bg: #ffffff;
    --card-border: #e0e0e0;
    
    /* Акцентные цвета (красные) */
    --accent-primary: #ff4444;
    --accent-secondary: #ff6666;
    --accent-glow: rgba(255, 68, 68, 0.2);
    --accent-hover: #ff7777;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #ff4444 0%, #ff8888 100%);
    --gradient-secondary: linear-gradient(135deg, #ff0000 0%, #ff6666 100%);
    --gradient-light: linear-gradient(135deg, var(--light-bg) 0%, #f5f5f5 100%);
    
    /* Текст */
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-muted: #777777;
    
    /* Эффекты */
    --shadow-glow: 0 0 25px var(--accent-glow);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Размеры */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --container-width: 1200px;
    
    /* Шрифты */
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-body);
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 68, 68, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 102, 102, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 68, 68, 0.02) 0%, transparent 60%);
    z-index: -2;
    pointer-events: none;
}

/* Градиентные полосы */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(255, 68, 68, 0.01) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(255, 68, 68, 0.01) 50%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow: hidden;
}

section {
    padding: 80px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    position: relative;
    padding-bottom: 20px;
    text-align: center;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    transition: var(--transition);
}

.btn-primary {
    background: transparent;
    color: white;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover::before {
    filter: brightness(1.2);
}

.btn-glow {
    animation: pulse-glow 2s infinite;
}

/* ===== АНИМАЦИИ ===== */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ГРАДИЕНТНЫЙ ТЕКСТ ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* ===== ШАПКА ===== */
.main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 68, 68, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    gap: clamp(15px, 3vw, 30px);
    list-style: none;
    margin-left: auto;
    margin-right: 20px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

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

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--accent-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== ГЛАВНЫЙ БАННЕР ===== */
#hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(800px, 90vw);
    height: min(800px, 90vw);
    background: radial-gradient(circle, rgba(255, 68, 68, 0.1) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--accent-primary);
    margin-bottom: 30px;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== СТАТИСТИКА ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.08), transparent);
    transition: left 0.6s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

/* ===== УСЛУГИ ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-card);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.08), transparent);
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(255, 68, 68, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 2rem;
    border: 2px solid rgba(255, 68, 68, 0.15);
}

/* ===== ГАРАНТИИ ===== */
.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.guarantee-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.guarantee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.08), transparent);
    transition: left 0.6s;
}

.guarantee-card:hover::before {
    left: 100%;
}

.guarantee-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.guarantee-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    background: rgba(255, 68, 68, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.8rem;
    border: 2px solid rgba(255, 68, 68, 0.15);
}

/* ===== КОНТАКТЫ ===== */
#contacts {
    background: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

#contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 68, 68, 0.08) 0%, transparent 50%);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 68, 68, 0.15);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.contact-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    background: rgba(255, 255, 255, 0.9);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(255, 68, 68, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.5rem;
    border: 2px solid rgba(255, 68, 68, 0.2);
}

/* ===== ФУТЕР ===== */
.main-footer {
    background: #ffffff;
    padding: 30px 0 15px;
    border-top: 1px solid rgba(255, 68, 68, 0.1);
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-protected {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-primary);
    font-size: 0.8rem;
}

/* ===== КНОПКА НАВЕРХ ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 68, 68, 0.5);
}

/* ===== СИСТЕМА ЗАЩИТЫ ===== */
#protection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 9998;
    transition: background 0.3s ease;
}

#protection-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--accent-primary);
    border-radius: var(--border-radius);
    padding: 20px 30px;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    box-shadow: var(--shadow-glow);
    backdrop-filter: blur(10px);
    animation: pulse-glow 1s infinite;
}

/* ===== КОПИРУЕМЫЕ КОНТАКТЫ ===== */
.copyable-contact {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    direction: ltr;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.copyable-contact:hover {
    color: var(--accent-primary);
}

.copyable-contact::after {
    content: '📋';
    margin-left: 8px;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.copyable-contact:hover::after {
    opacity: 1;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 68, 68, 0.2);
        margin: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-info {
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
    
    #hero {
        padding: 150px 0 80px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .services-grid,
    .guarantees-grid,
    .stats-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card,
    .guarantee-card,
    .stat-card,
    .contact-card {
        padding: 25px 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .copyable-contact {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 0;
    }
    
    #hero {
        padding: 130px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 5px;
    }
    
    .copyable-contact {
        font-size: 0.85rem;
    }
}

/* ===== ПРЕДОТВРАЩЕНИЕ ВЫХОДА ЗА КРАЯ ===== */
img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* ===== ЗАЩИЩЕННЫЙ ТЕКСТ ===== */
.protected-text {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ===== КОПИРУЕМЫЙ ТЕКСТ ===== */
.copyable-text {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    cursor: text;
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== СТИЛЬ ДЛЯ ПРОСТОГО ЗАГОЛОВКА ===== */
.clean-title {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

.clean-title .gradient-text {
    position: relative;
    z-index: 1;
}