/**
 * Файл: css/bereg-theme.css
 * Тематические стили для "Берег ИТ"
 * Цветовая гамма: синий, зеленый, закатные оттенки
 */

:root {
    --bereg-blue: #2C5F9A;
    --bereg-blue-light: #4A90E2;
    --bereg-green: #2E7D64;
    --bereg-green-light: #4CAF8C;
    --bereg-sunset: #FFD166;
    --bereg-sunset-dark: #E6B422;
    --bereg-sand: #F5E6D3;
    --bereg-ocean-dark: #1E4A6E;
    --glass-bg: rgba(44, 95, 154, 0.25);
    --glass-border: rgba(255, 255, 255, 0.25);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ФОНОВАЯ КАРУСЕЛЬ ========== */
.background-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    z-index: -1;
}

.bg-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.bg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.bg-dot.active {
    background: var(--bereg-sunset);
    width: 20px;
    border-radius: 10px;
}

.bg-dot:hover {
    background: var(--bereg-sunset);
}

/* ========== ЛЕТАЮЩИЕ ЛИСТИКИ ========== */
.floating-leaves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
    overflow: hidden;
}

.leaf {
    position: absolute;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232E7D64"><path d="M12,2C9,7,4,9,4,14c0,4,4,6,8,6s8-2,8-6C20,9,15,7,12,2z"/></svg>') no-repeat center/contain;
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.leaf-1 { top: 20%; left: -50px; animation: leafFloat 14s infinite linear; width: 16px; height: 16px; }
.leaf-2 { top: 45%; left: -30px; animation: leafFloat 18s infinite linear; animation-delay: 3s; width: 20px; height: 20px; }
.leaf-3 { top: 70%; left: -70px; animation: leafFloat 12s infinite linear; animation-delay: 1s; width: 14px; height: 14px; }
.leaf-4 { top: 85%; left: -40px; animation: leafFloat 20s infinite linear; animation-delay: 5s; width: 18px; height: 18px; }
.leaf-5 { top: 10%; left: -60px; animation: leafFloat 16s infinite linear; animation-delay: 2s; width: 12px; height: 12px; }

@keyframes leafFloat {
    0% { left: -100px; opacity: 0; transform: rotate(0deg) translateY(0); }
    10% { opacity: 0.7; }
    80% { opacity: 0.5; }
    100% { left: 110%; opacity: 0; transform: rotate(360deg) translateY(-50px); }
}

/* ========== НАВИГАЦИЯ ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 50, 70, 0.9);
    backdrop-filter: blur(12px);
    z-index: 100;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-top: 2px;
}

.logo-title:hover {
    color: var(--bereg-sunset);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--bereg-sunset);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

/* ========== КНОПКИ ========== */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bereg-blue-light), var(--bereg-blue));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, var(--bereg-blue), var(--bereg-ocean-dark));
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--bereg-blue);
    transform: translateY(-2px);
}

.btn-large {
    padding: 12px 28px;
    font-size: 15px;
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
main {
    padding-top: 70px;
    min-height: 100vh;
}

.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 35px;
    color: white;
}

.section-title .highlight {
    color: var(--bereg-sunset);
}

/* Hero секция */
.hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 52px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff, var(--bereg-sunset));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

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

/* ========== КАРТОЧКИ УСЛУГ (с изображениями) ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    overflow: hidden;
    background: rgba(44, 95, 154, 0.25);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(44, 95, 154, 0.35);
    border-color: var(--bereg-sunset);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: white;
}

.service-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.service-link {
    color: var(--bereg-sunset);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    text-decoration: underline;
}

/* ========== ДОСТИЖЕНИЯ ========== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.achievement-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(44, 95, 154, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.achievement-card:hover {
    transform: translateY(-5px);
    background: rgba(44, 95, 154, 0.4);
    border-color: var(--bereg-sunset);
}

.achievement-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--bereg-sunset);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.achievement-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* ========== ПРЕИМУЩЕСТВА ========== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.benefit-card {
    text-align: center;
    padding: 25px 20px;
    background: rgba(44, 95, 154, 0.25);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-3px);
    border-color: var(--bereg-sunset);
}

.benefit-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: white;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.4;
}

/* ========== CTA СЕКЦИЯ ========== */
.cta-section {
    background: linear-gradient(135deg, rgba(46, 125, 100, 0.85), rgba(44, 95, 154, 0.85));
    backdrop-filter: blur(4px);
    border-radius: 28px;
    padding: 40px 35px;
    text-align: center;
    margin: 20px 0;
}

.cta-section h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: white;
}

.cta-section p {
    font-size: 15px;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* ========== ФУТЕР ========== */
.footer {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 35px 0 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 25px;
}

.footer h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer p, .footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.6;
}

.footer a:hover {
    color: var(--bereg-sunset);
}

.copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
    .services-grid,
    .achievements-grid,
    .benefits-grid {
        gap: 20px;
    }
    
    .service-image {
        height: 180px;
    }
    
    .achievement-number {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 55vh;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section {
        padding: 35px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .services-grid,
    .achievements-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-image {
        height: 200px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-content h3 {
        font-size: 20px;
    }
    
    .achievement-card {
        padding: 25px 15px;
    }
    
    .achievement-number {
        font-size: 36px;
    }
    
    .benefit-card {
        padding: 20px;
    }
    
    .cta-section {
        padding: 30px 25px;
    }
    
    .cta-section h3 {
        font-size: 24px;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background: rgba(30, 50, 70, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 25px;
        gap: 20px;
        transition: left 0.3s;
        z-index: 99;
    }
    
    .nav-links.open {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .btn-large {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .achievement-number {
        font-size: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
}