* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --text: #1f2937;
    --text-light: #6b7280;
    --background: #ffffff;
    --surface: #f8fafc;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
}

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

/* Баннер согласия */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: url('rc_images/h.jpg') center/cover;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.cookie-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    z-index: -1;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.cookie-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Шапка - компактная */
.header {
    background: url('rc_images/h.jpg') center/cover;
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 15px 15px;
    margin: 0 1rem;
    margin-top: 1rem;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
    border-radius: 0 0 15px 15px;
    z-index: -1;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow);
}

.logo a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
    font-weight: 600;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
}

.contact-links {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.contact-link {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.contact-link.telegram {
    background: rgba(39, 167, 231, 0.9);
    color: white;
}

.contact-link.whatsapp {
    background: rgba(44, 183, 66, 0.9);
    color: white;
}

.contact-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Герой секция */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0;
    margin-top: 1rem;
    border-radius: 15px;
    margin: 1rem;
    margin-top: 2rem;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Галерея */
.gallery-section {
    padding: 4rem 0;
    background: var(--surface);
    margin: 1rem;
    border-radius: 15px;
}

.gallery-section:nth-child(even) {
    background: var(--background);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.slider-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.slider-wrapper {
    position: relative;
}

.slider-main, .slider-vertical {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    background: var(--background);
}

.slider-main {
    aspect-ratio: 1.5;
}

.slider-vertical {
    aspect-ratio: 0.75;
}

/* Стили для слайдера */
.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

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

.dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

/* CTA секция */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin: 1rem;
    border-radius: 15px;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.cta-btn.telegram {
    background: #27A7E7;
    color: white;
}

.cta-btn.whatsapp {
    background: #2CB742;
    color: white;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Подвал */
.footer {
    background: var(--text);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
    border-radius: 15px 15px 0 0;
    margin: 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.5;
    font-size: 0.9rem;
}

.footer-contacts, .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contacts a, .footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-contacts a:hover, .footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.8rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .header {
        margin: 0 0.5rem;
        margin-top: 0.5rem;
    }
    
    .header-container {
        padding: 0.6rem 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .contact-link {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .hero {
        margin: 0.5rem;
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .gallery-section {
        margin: 0.5rem;
        padding: 3rem 0;
    }
    
    .slider-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner {
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .logo a {
        font-size: 1.1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}