/* ===== ОСНОВНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ ===== */
:root {
    --primary-color: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f8bbd9;
    --secondary-color: #03a9f4;
    --secondary-dark: #0288d1;
    --accent-color: #ff4081;
    --gold-color: #ffd700;
    --silver-color: #c0c0c0;
    --bronze-color: #cd7f32;
    --text-dark: #2c3e50;
    --text-light: #546e7a;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --ice-blue: #e3f2fd;
    --ice-light: #f1f8fe;
    --gradient-primary: linear-gradient(135deg, #e91e63 0%, #9c27b0 50%, #03a9f4 100%);
    --gradient-ice: linear-gradient(135deg, #e3f2fd 0%, #f1f8fe 50%, #ffffff 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.2);
    --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.25);
    --border-radius: 16px;
    --border-radius-lg: 25px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== БАЗОВЫЕ СТИЛИ С АНИМАЦИЯМИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes snow {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes buttonGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3),
                   inset 0 0 10px rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5),
                   inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
}

@keyframes borderFlow {
    0% { 
        background-position: 0% 50%;
        border-color: rgba(255, 255, 255, 0.3);
    }
    50% { 
        background-position: 100% 50%;
        border-color: rgba(255, 255, 255, 0.6);
    }
    100% { 
        background-position: 0% 50%;
        border-color: rgba(255, 255, 255, 0.3);
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Epunda Slab', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--gradient-ice);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Снежинки фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(3, 169, 244, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(233, 30, 99, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 64, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.snowflake {
    position: fixed;
    top: -10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    animation: snow linear infinite;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ИЗМЕНЕННАЯ ШАПКА И НАВИГАЦИЯ ===== */
header {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-strong);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
    animation: shimmer 3s infinite linear;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    position: relative;
}

.logo {
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}

.logo img {
    height: 70px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    border-radius: 12px;
}

.logo img:hover {
    transform: scale(1.1) rotate(5deg);
    animation: pulse 2s infinite;
}

/* ОБНОВЛЕННАЯ НАВИГАЦИЯ С 5 КНОПКАМИ */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* НОВЫЕ СТИЛИ ДЛЯ 5 КНОПОК НАВИГАЦИИ */
nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: center;
    min-width: 100px;
    
    /* Новая анимация - градиентная подсветка */
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 200%;
    animation: borderFlow 3s ease-in-out infinite;
}

/* Убираем старую анимацию переливания */
nav a::before {
    display: none;
}

/* Новая анимация при наведении */
nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3),
                inset 0 0 15px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    animation: buttonGlow 1.5s ease-in-out infinite;
}

/* Активное состояние кнопки */
nav a:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

/* Бургер-меню для мобильных */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1002;
    transition: var(--transition);
}

.burger-menu:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.burger-menu span {
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

/* ===== ИСПРАВЛЕННЫЕ УВЕДОМЛЕНИЯ ===== */
.notifications-nav-item {
    position: relative;
}

.notifications-container {
    position: relative;
}

.notifications-icon {
    position: relative;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: var(--transition);
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.notifications-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px) scale(1);
    animation: slideInDown 0.3s ease-out;
}

.notifications-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1002;
}

.notifications-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.notifications-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--gradient-primary);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    color: white;
    position: relative;
}

.notifications-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
}

.notifications-count {
    background: var(--gold-color);
    color: var(--text-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.notifications-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.notification-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition);
}

.notification-item:hover::before {
    transform: scaleY(1);
}

.notification-item:hover {
    background: rgba(3, 169, 244, 0.05);
    transform: translateX(5px);
}

.notification-item.unread {
    background: rgba(255, 64, 129, 0.05);
}

.notification-icon {
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.notification-text {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.notification-time {
    color: var(--text-light);
    font-size: 0.75rem;
    opacity: 0.7;
}

.notification-read-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 6px;
    transition: var(--transition);
    font-weight: 600;
}

.notification-read-btn:hover {
    background: var(--secondary-dark);
    transform: scale(1.05);
}

/* Backdrop для уведомлений */
.notifications-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.notifications-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ===== МОБИЛЬНОЕ МЕНЮ С КНОПКОЙ ЗАКРЫТИЯ ===== */
.mobile-menu-header {
    display: none;
}

.menu-close-btn {
    display: none;
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
    .header-content {
        padding: 8px 0;
    }
    
    .logo img {
        height: 55px;
    }
    
    /* Скрываем обычную навигацию на мобильных */
    nav ul {
        display: none;
    }
    
    /* Показываем бургер-меню */
    .burger-menu {
        display: flex;
    }
    
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Стили для мобильного меню */
    .mobile-menu-header {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 12px 15px;
        background: var(--primary-dark);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .mobile-menu-header.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .menu-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        cursor: pointer;
        transition: var(--transition);
        border: 2px solid rgba(255, 255, 255, 0.3);
        font-size: 1.8rem;
        color: white;
        font-weight: bold;
    }
    
    .menu-close-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.1) rotate(90deg);
    }
    
    /* Обновляем стили для навигации в мобильном меню */
    .nav-content ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--gradient-primary);
        flex-direction: column;
        padding: 70px 15px 20px;
        gap: 8px;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-strong);
        backdrop-filter: blur(20px);
        z-index: 999;
        overflow-y: auto;
        display: flex !important;
    }
    
    .nav-content ul.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Улучшаем отступы для пунктов меню */
    .nav-content ul li {
        width: 100%;
    }
    
    .nav-content ul a {
        display: block;
        padding: 16px 15px;
        border-radius: 10px;
        margin-bottom: 6px;
        text-align: center;
        background: rgba(255, 255, 255, 0.15);
        font-size: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        animation: none;
    }
    
    .nav-content ul a:hover {
        animation: buttonGlow 2s ease-in-out infinite;
    }
    
    /* ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ УВЕДОМЛЕНИЙ В МОБИЛЬНОМ МЕНЮ */
    .notifications-nav-item {
        width: 100%;
        order: -1;
        margin-bottom: 8px;
        display: flex;
        justify-content: center;
    }
    
    .notifications-container {
        width: auto;
        display: flex;
        justify-content: center;
    }
    
    .notifications-icon {
        width: 50px;
        height: 50px;
        min-width: auto;
        padding: 8px;
        border-radius: 50%;
        font-size: 1.3rem;
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
        justify-content: center;
        position: relative;
        display: flex;
        align-items: center;
    }
    
    .notification-badge {
        position: absolute;
        top: 2px;
        right: 2px;
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
        border: 2px solid var(--primary-dark);
    }
    
    /* Убираем текст "Уведомления" */
    .notifications-icon::after {
        display: none;
    }
    
    /* ИСПРАВЛЕННОЕ ПОЗИЦИОНИРОВАНИЕ ВЫПАДАЮЩИХ УВЕДОМЛЕНИЙ НА МОБИЛЬНЫХ */
    .notifications-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        width: 90vw;
        max-width: 350px;
        max-height: 70vh;
        opacity: 0;
        visibility: hidden;
        z-index: 1003;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        border-radius: var(--border-radius);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.4);
        overflow: hidden;
    }
    
    .notifications-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }
    
    /* Улучшения для контента уведомлений на мобильных */
    .notifications-list {
        max-height: 50vh;
        overflow-y: auto;
    }
    
    .notification-item {
        padding: 12px 15px;
    }
    
    .notification-title {
        font-size: 0.9rem;
    }
    
    .notification-text {
        font-size: 0.8rem;
    }
    
    /* Улучшаем скролл */
    .notifications-list::-webkit-scrollbar {
        width: 4px;
    }
    
    .notifications-list::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 2px;
    }
    
    .notifications-list::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }
    
    .mobile-menu-header {
        padding: 10px 12px;
    }
    
    .menu-close-btn {
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }
    
    .nav-content ul {
        padding: 60px 12px 15px;
    }
    
    .nav-content ul a {
        padding: 14px 12px;
        font-size: 0.95rem;
    }
    
    /* Еще меньше иконка уведомлений на очень маленьких экранах */
    .notifications-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .notification-badge {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: 1px;
        right: 1px;
    }
    
    .notifications-dropdown {
        width: 95vw;
        max-width: 320px;
        max-height: 65vh;
    }
}

/* Для очень-очень маленьких экранов */
@media (max-width: 360px) {
    .notifications-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .notification-badge {
        width: 14px;
        height: 14px;
        font-size: 0.55rem;
    }
    
    .notifications-dropdown {
        width: 98vw;
        max-width: 300px;
        max-height: 60vh;
    }
}

/* Анимация для мобильного меню */
@keyframes slideInLeftMenu {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeftMenu {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.nav-content ul.active {
    animation: slideInLeftMenu 0.3s ease-out;
}

.nav-content ul:not(.active) {
    animation: slideOutLeftMenu 0.3s ease-out;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.content-container {
    display: flex;
    gap: 40px;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

main {
    flex: 1;
    min-width: 0;
    animation: fadeInUp 0.8s ease-out;
}

/* Заголовки */
h1, h2, h3, h4 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin: 2rem 0 3rem;
    position: relative;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h1::after {
    content: '⛸️';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

h2 {
    font-size: 2.5rem;
    padding: 20px 0;
    margin: 3rem 0 2rem;
    position: relative;
    text-align: center;
}

h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    color: var(--secondary-dark);
    position: relative;
    padding-left: 20px;
}

h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* ===== ЦИТАТЫ ===== */
.quote-container {
    width: 100%;
    margin: 3rem 0;
}

blockquote {
    background: var(--gradient-card);
    border-left: 6px solid var(--primary-color);
    padding: 40px;
    margin: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-style: italic;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

blockquote i {
    display: block;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
}

blockquote::before {
    content: '"';
    font-size: 8rem;
    color: var(--primary-light);
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
    opacity: 0.3;
    z-index: 1;
}

blockquote::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.05;
    transform: translate(30%, -30%);
    z-index: 1;
}

blockquote cite {
    display: block;
    text-align: right;
    color: var(--text-light);
    font-style: normal;
    margin-top: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

/* ===== ИЗОБРАЖЕНИЯ ===== */
.float-image-left {
    float: left;
    margin: 0 25px 25px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 100%;
    height: auto;
    transition: var(--transition);
    border: 3px solid white;
}

.float-image-left:hover {
    transform: rotate(-2deg) scale(1.03);
    box-shadow: var(--shadow-hover);
}

/* Стили для обычных изображений в контенте */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Специальные стили для изображений внутри статей */
article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 15px 0;
}

/* ===== КАРТОЧКИ ФИГУРИСТОВ ===== */
.cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 3rem 0;
}

.card {
    perspective: 1200px;
    height: 450px;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    border-radius: var(--border-radius);
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-front {
    background: var(--gradient-card);
}

.card-back {
    background: var(--gradient-primary);
    transform: rotateY(180deg);
    color: white;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card-back::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite linear;
}

.card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.95);
}

.card:hover .card-image img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

.card-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

.card-medal {
    font-size: 1.8rem;
}

.card-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 700;
}

.card-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

.card-back-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.card-back-content h3 {
    color: white;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.6rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-back-content h3::before {
    display: none;
}

.card-info {
    flex: 1;
}

.info-item {
    display: flex;
    margin-bottom: 16px;
    gap: 12px;
    align-items: flex-start;
}

.info-label {
    font-weight: 600;
    min-width: 120px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.info-value {
    flex: 1;
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.4;
}

.card-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.stat {
    text-align: center;
    position: relative;
}

.stat::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--gold-color);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 500;
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 3rem 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    transform-style: preserve-3d;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-hover);
}

.gallery-item:hover::before {
    opacity: 0.1;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
    z-index: 2;
    text-align: center;
    font-weight: 600;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ===== БОКОВАЯ ПАНЕЛЬ ===== */
.sidebar {
    width: 350px;
    flex-shrink: 0;
    animation: slideInLeft 0.8s ease-out;
}

.sidebar-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-light);
    position: relative;
}

.sidebar-title::after {
    content: '✨';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    animation: float 2s ease-in-out infinite;
}

.sidebar-widget {
    background: var(--gradient-card);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.sidebar-widget:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.sidebar-widget-title {
    color: var(--secondary-dark);
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding-left: 30px;
}

.sidebar-list li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list li::before {
    content: '⛸️';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.sidebar-list li:hover::before {
    transform: translateY(-50%) rotate(360deg);
}

/* ===== ФОРМЫ ===== */
.form-section {
    background: var(--gradient-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
}

.form-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    position: relative;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.form-fieldset {
    border: 2px solid var(--ice-blue);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    position: relative;
}

.form-fieldset::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.1;
}

.form-legend {
    color: var(--secondary-dark);
    font-weight: 700;
    padding: 0 20px;
    font-size: 1.3rem;
    background: var(--gradient-card);
    border-radius: 25px;
    border: 2px solid var(--ice-blue);
}

.form-label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(3, 169, 244, 0.1);
    background: white;
    transform: translateY(-2px);
}

.form-file {
    padding: 12px;
    background: white;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 10px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e0e0e0;
    flex: 1;
    min-width: 200px;
}

.radio-label:hover,
.checkbox-label:hover {
    background: var(--ice-blue);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.form-radio,
.form-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.form-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.form-button {
    padding: 16px 35px;
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.form-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.form-button:hover::before {
    left: 100%;
}

.form-submit {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

.form-submit:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.4);
}

.form-reset {
    background: var(--text-light);
    color: white;
    box-shadow: 0 6px 20px rgba(84, 110, 122, 0.3);
}

.form-reset:hover {
    background: var(--text-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(44, 62, 80, 0.4);
}

.form-secondary {
    background: transparent;
    border: 3px solid var(--secondary-color);
    color: var(--secondary-color);
}

.form-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(3, 169, 244, 0.4);
}

/* ===== ВИДЕО КОНТЕЙНЕР ===== */
.video-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    background: var(--gradient-card);
    padding: 20px;
}

.video-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== КАРТА ===== */
.map-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    background: var(--gradient-card);
    padding: 20px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
}

/* ===== ПОДВАЛ ===== */
.footer {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 0 30px;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-color);
    animation: shimmer 2s infinite linear;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer p {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer address {
    font-style: normal;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer a {
    color: var(--gold-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-color);
    transition: var(--transition);
}

.footer a:hover {
    color: white;
}

.footer a:hover::after {
    width: 100%;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ===== */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    .content-container {
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
    }
    
    .sidebar {
        width: 100%;
        order: -1;
    }
    
    .cards-row {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .notifications-dropdown {
        width: 350px;
        right: -30px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    /* Адаптивность для цитат */
    .quote-container {
        margin: 2rem 0;
    }
    
    blockquote {
        padding: 30px 25px;
    }
    
    blockquote i {
        font-size: 1.2rem;
        line-height: 1.5;
    }
    
    blockquote::before {
        font-size: 6rem;
        top: -10px;
        left: 15px;
    }
    
    blockquote cite {
        font-size: 1rem;
    }
}

/* Мобильные устройства (480px - 768px) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Контент для мобильных */
    .content-container {
        padding: 30px 15px;
        gap: 30px;
    }
    
    h1 {
        font-size: 2.5rem;
        margin: 1.5rem 0 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
        margin: 2.5rem 0 1.5rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
    
    /* Карточки для мобильных */
    .cards-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .card {
        height: 400px;
    }
    
    .card-image {
        height: 240px;
    }
    
    /* Галерея для мобильных */
    .gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-image {
        height: 220px;
    }
    
    /* Формы для мобильных */
    .form-section {
        padding: 30px 20px;
        margin: 2rem 0;
    }
    
    .form-fieldset {
        padding: 25px 20px;
    }
    
    .form-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .form-button {
        min-width: auto;
        width: 100%;
        padding: 18px 25px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .radio-label,
    .checkbox-label {
        min-width: auto;
    }
    
    /* Видео и карты для мобильных */
    .video-container {
        padding: 15px;
        margin: 1.5rem 0;
    }
    
    .video-container iframe {
        height: 300px;
    }
    
    .map-container {
        padding: 15px;
        margin: 1.5rem 0;
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    /* ИСПРАВЛЕНИЕ ДЛЯ ИЗОБРАЖЕНИЙ НА МОБИЛЬНЫХ */
    .float-image-left {
        float: none;
        margin: 0 auto 20px;
        display: block;
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    
    /* Исправление для всех изображений в контенте */
    img {
        max-width: 100%;
        height: auto;
        width: auto;
    }
    
    /* Специальные исправления для изображений в статьях */
    article img {
        max-width: 100%;
        width: 100%;
        height: auto;
        margin: 15px 0;
    }
    
    /* Исправление для изображений с фиксированной шириной в HTML */
    img[width] {
        max-width: 100%;
        height: auto;
        width: auto !important;
    }
    
    /* Боковая панель для мобильных */
    .sidebar-widget {
        padding: 25px 20px;
        margin-bottom: 25px;
    }
    
    /* Цитаты для мобильных */
    blockquote {
        padding: 25px 20px;
    }
    
    blockquote i {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    blockquote::before {
        font-size: 5rem;
        top: -5px;
        left: 10px;
    }
    
    blockquote cite {
        font-size: 0.95rem;
    }
}

/* Маленькие мобильные устройства (до 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    header .container {
        padding: 12px 15px;
    }
    
    .logo img {
        height: 55px;
    }
    
    .content-container {
        padding: 25px 10px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .card {
        height: 380px;
    }
    
    .card-image {
        height: 220px;
    }
    
    .card-content,
    .card-back-content {
        padding: 20px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .card-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .stat::before {
        display: none;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .form-section {
        padding: 25px 15px;
    }
    
    .form-fieldset {
        padding: 20px 15px;
    }
    
    .video-container iframe {
        height: 250px;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .footer {
        padding: 40px 0 25px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    /* Цитаты для очень маленьких экранов */
    blockquote {
        padding: 20px 15px;
    }
    
    blockquote i {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    blockquote::before {
        font-size: 4rem;
        top: -3px;
        left: 8px;
    }
    
    blockquote cite {
        font-size: 0.9rem;
    }
    
    /* Дополнительные исправления для изображений на очень маленьких экранах */
    img {
        max-width: 100%;
        height: auto;
    }
    
    .float-image-left {
        margin: 0 auto 10px;
    }
}

/* Очень маленькие устройства (до 320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .card {
        height: 350px;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-content,
    .card-back-content {
        padding: 15px;
    }
    
    .cards-row {
        gap: 20px;
    }
    
    /* Исправления для изображений на очень маленьких экранах */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Специальные стили для очень высоких экранов */
@media (min-height: 1000px) and (max-width: 768px) {
    .card {
        height: 420px;
    }
    
    .card-image {
        height: 250px;
    }
}

/* Портретный режим для планшетов */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ландшафтный режим для мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card {
        height: 320px;
    }
    
    .card-image {
        height: 180px;
    }
    
    nav ul {
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* Анимации для улучшения UX на мобильных */
@media (max-width: 768px) {
    .card-inner {
        transition: transform 0.6s;
    }
    
    .gallery-item:hover {
        transform: translateY(-5px);
    }
    
    .sidebar-widget:hover {
        transform: translateY(-3px);
    }
    
    /* Улучшение касаний на мобильных */
    button, 
    .form-button,
    .card,
    .gallery-item,
    nav a {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Улучшение читаемости текста на мобильных */
    body {
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }
}

/* Поддержка темной темы */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f0f0f0;
        --text-light: #b0b0b0;
        --background-light: #1a1a1a;
        --background-white: #2d2d2d;
        --ice-blue: #2a3b4d;
        --ice-light: #1e2a35;
        --gradient-card: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
        --gradient-ice: linear-gradient(135deg, #1e2a35 0%, #2a3b4d 100%);
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        background: #3d3d3d;
        border-color: #555;
        color: white;
    }
    
    .form-fieldset {
        background: #2a2a2a;
        border-color: #404040;
    }
    
    .radio-label,
    .checkbox-label {
        background: #3d3d3d;
        border-color: #555;
        color: white;
    }
}

/* Прогрессивное улучшение для старых браузеров */
@supports not (backdrop-filter: blur(10px)) {
    header {
        background: var(--gradient-primary);
    }
    
    .card-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .notifications-dropdown {
        background: white;
    }
}

/* JavaScript для снежинок */
.snowflakes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}
/* Секция новостей */
.news-section {
    background: white;
    padding: 4rem 2rem;
    margin-top: 2rem;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-container h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.news-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
}

.news-date {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9em;
}

.news-card h3 {
    font-size: 1.3em;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.news-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.news-link:hover {
    gap: 10px;
}