/* style.css - Основные стили сайта */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: white;
    color: #1a2b4c;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Слайдер */
.slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-top: 80px;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s ease 0.3s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h2 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Кнопки */
.btn-glass {
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    border: 2px solid #2196f3;
    color: #1976d2;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.15);
}

.btn-glass:hover {
    background: #2196f3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.btn-glass-primary {
    background: white;
    border: 2px solid #2196f3;
    color: #1976d2;
}

.btn-glass-primary:hover {
    background: #2196f3;
    color: white;
}

.btn-glass-secondary {
    background: white;
    border: 2px solid #64b5f6;
    color: #1976d2;
}

.btn-glass-secondary:hover {
    background: #64b5f6;
    color: white;
}

.btn-glass-play {
    background: white;
    border: 2px solid #2196f3;
    color: #1976d2;
}

.btn-glass-play:hover {
    background: #2196f3;
    color: white;
}

/* Навигация слайдера */
.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #2196f3;
    color: #1976d2;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav button:hover {
    background: #2196f3;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav .prev {
    left: 30px;
}

.slider-nav .next {
    right: 30px;
}

/* Точки слайдера */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

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

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

/* Категории */
.categories {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: #0d47a1;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #2196f3;
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #2196f3;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.2);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(33, 150, 243, 0.9), rgba(33, 150, 243, 0.3));
    opacity: 0.7;
    transition: opacity 0.3s;
}

.category-card:hover .category-overlay {
    opacity: 0.9;
}

.category-card h3 {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    z-index: 1;
    white-space: nowrap;
}

/* Посты */
.posts {
    padding: 80px 0;
    background: #f5f9ff;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid #2196f3;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.15);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #2196f3;
}

.post-content {
    padding: 25px;
}

.post-content h3 {
    margin-bottom: 10px;
    font-size: 22px;
    color: #0d47a1;
}

.post-content p {
    color: #1976d2;
    margin-bottom: 15px;
    line-height: 1.6;
}

.post-date {
    color: #1976d2;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-date i {
    color: #2196f3;
}

/* Cookie уведомление */
.cookie-notice {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid #2196f3;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.15);
    max-width: 500px;
    width: 90%;
    padding: 25px 30px;
    z-index: 1000;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-icon {
    font-size: 50px;
    color: #2196f3;
}

.cookie-text h4 {
    margin: 0 0 8px;
    color: #0d47a1;
    font-size: 20px;
}

.cookie-text p {
    margin: 0;
    color: #1976d2;
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.cookie-btn {
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cookie-btn-accept {
    background: #2196f3;
    color: white;
}

.cookie-btn-accept:hover {
    background: #1976d2;
    transform: translateY(-2px);
}

.cookie-btn-decline {
    background: #e3f2fd;
    color: #0d47a1;
}

.cookie-btn-decline:hover {
    background: #bbdefb;
    transform: translateY(-2px);
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border: 2px solid #e3f2fd;
    border-radius: 20px;
}

.empty-state i {
    font-size: 70px;
    color: #bbdefb;
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 22px;
    color: #0d47a1;
    margin-bottom: 8px;
}

.empty-state p {
    color: #1976d2;
    font-size: 15px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .slider {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}