* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --gold: #000000;
    --gold-light: #000000;
    --gold-dark: #000000;

    --brown-warm: #8B5A2B;
    --brown-light: #A67B5B;
    --brown-dark: #5D3A1A;

    --purple: #3A1E6B;
    --purple-light: #4A2E8B;
    --purple-dark: #2A0E5B;

    --background: transparent;
    --background-light: #3D2B1F;
    --text: #000000;
    --text-muted: #000000;

    --border-color: rgba(0, 0, 0, 0.2);
    --shadow: rgba(106, 78, 155, 0.3);
}

html {
    background: url('images/fon.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
    min-height: 100%;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    background: transparent !important;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== ШАПКА ========== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(44, 24, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.logo h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--gold), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    text-shadow: 0 0 20px var(--purple);
}

/* ========== НАВИГАЦИЯ ========== */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s;
    white-space: nowrap;
    border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(147, 112, 219, 0.1));
    border-color: var(--gold-dark);
    color: var(--gold-light);
    box-shadow: 0 0 15px var(--purple);
}

/* ========== КОРЗИНА ========== */
.cart-icon {
    cursor: pointer;
    font-size: 1.3rem;
    color: #ffffff;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 25px;
    border: 1px solid var(--gold-dark);
}

.cart-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--purple);
    background: rgba(255, 215, 0, 0.1);
}

#cart-count {
    background: rgba(147, 112, 219, 0.5);
    color: var(--background);
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ========== ГЕРОЙ СЕКЦИЯ ========== */
.hero {

    background: transparent;
    padding: 80px 50px;
    text-align: center;
    width: 100%;
    border-bottom: 1px solid var(--gold-dark);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #000000;
    line-height: 1.2;
}

/* ========== ЗАГОЛОВКИ РАЗДЕЛОВ ========== */
.section-title {
    font-size: 2.5rem;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform:translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--purple), var(--gold-dark));
    border-radius: 2px;
}

/* ========== СЕТКИ ========== */
.sections-grid, 
.symbols-grid, 
.body-grid, 
.dreams-grid, 
.energy-grid,
.products-grid,
.training-grid,
.systems-grid,
.meditations-grid,
.practices-grid {
    display: grid;
    gap: 30px;
    padding: 0 50px 50px;
    width: 100%;
    margin: 0 auto;
}

.sections-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.symbols-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.products-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ========== КАРТОЧКИ ========== */
.section-card, 
.symbol-item, 
.body-item, 
.dream-item, 
.energy-item,
.product-card,
.course-card,
.sacred-card {
    background: linear-gradient(135deg, var(--background-light), rgba(61, 43, 31, 0.8));
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: fit-content;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-card::before,
.symbol-item::before,
.body-item::before,
.dream-item::before,
.energy-item::before,
.product-card::before,
.course-card::before,
.sacred-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.section-card:hover::before,
.symbol-item:hover::before,
.body-item:hover::before,
.dream-item:hover::before,
.energy-item:hover::before,
.product-card:hover::before,
.course-card:hover::before,
.sacred-card:hover::before {
    left: 100%;
}

.section-card:hover, 
.symbol-item:hover, 
.body-item:hover, 
.dream-item:hover, 
.energy-item:hover,
.product-card:hover,
.course-card:hover,
.sacred-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px var(--shadow);
}

/* Карточки товаров */
.product-card {
    min-height: 350px;
    justify-content: flex-start;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    flex-shrink: 0;
    border: 2px solid var(--gold-dark);
}

.product-card h3 {
    color: #000000;
    margin-bottom: 10px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.product-numbers {
    color: var(--purple-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.product-card .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--gold);
    margin: 10px 0;
    flex-shrink: 0;
}

.product-card button {
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.5), rgba(106, 78, 155, 0.5));
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
    margin-top: auto;
    border: 1px solid var(--gold-dark);
}

.product-card button:hover {
    background: linear-gradient(135deg, var(--purple-dark), var(--brown-dark));
    transform: scale(1.02);
    box-shadow: 0 5px 15px var(--purple);
    color: #ffffff;
}

/* ========== КАТАЛОГ ========== */
.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 30px 50px;
    width: 100%;
}

.catalog-sidebar {
    background: linear-gradient(135deg, var(--background-light), rgba(61, 43, 31, 0.9));
    border-radius: 15px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border: 1px solid var(--gold-dark);
}

/* Фильтры */
select {
    background: transparent;
    border: 1px solid var(--gold-dark);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

select:hover {
    border-color: var(--gold);
    background: var(--background-light);
    box-shadow: 0 0 15px var(--purple);
}

select option {
    background: transparent;
    color: var(--text);
}

/* ========== КНОПКИ ========== */
.btn-cosmic {
    background: transparent;
    color: #ffffff;
    border: 2px solid var(--gold-dark);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.btn-cosmic:hover {
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.5), rgba(106, 78, 155, 0.5));
    border-color: var(--gold);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--purple);
}

.btn-cosmic-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid var(--purple);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border-radius: 25px;
}

.btn-cosmic-outline:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold);
    transform: translateY(-2px);
    background: rgba(147, 112, 219, 0.1);
    color: #ffffff;
}

.btn-cosmic-right {

    background: transparent;
    color: #ffffff;
    border: 2px solid var(--gold-dark);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border-radius: 35px;
    backdrop-filter: blur(5px);
}

.btn-cosmic-right:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px var(--purple);
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.5), rgba(106, 78, 155, 0.5));
    color: #ffffff;
}

/* ========== ФУТЕР ========== */
footer {
    background: rgba(44, 24, 16, 0.95);
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
    border-top: 2px solid var(--gold-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 50px 50px 30px;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--gold-dark);
    color: #ffffff;
}

/* Социальные сети в футере */
.cosmic-contact-btn {
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.3), rgba(106, 78, 155, 0.3)) !important;
    border: 1px solid var(--gold-dark) !important;
    color: #ffffff !important;
}

.cosmic-contact-btn:hover {
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.5), rgba(106, 78, 155, 0.5)) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 30px var(--purple) !important;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.cosmic-modal-content {
    background: linear-gradient(135deg, transparent, #1A0F0A) !important;
    border: 2px solid var(--gold-dark) !important;
    box-shadow: 0 0 50px var(--purple) !important;
    color: #ffffff !important;
}

.cosmic-modal-content h2 {
    color: var(--gold) !important;
}

.cosmic-modal-close {
    color: var(--gold) !important;
}

.cosmic-modal-close:hover {
    color: var(--purple-light) !important;
}

.cosmic-modal-content input,
.cosmic-modal-content select,
.cosmic-modal-content textarea {
    background: rgba(44, 24, 16, 0.8) !important;
    border: 1px solid var(--gold-dark) !important;
    color: #ffffff !important;
}

.cosmic-modal-content input:focus,
.cosmic-modal-content select:focus,
.cosmic-modal-content textarea:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 15px var(--purple) !important;
    outline: none;
}

/* ========== АНИМАЦИИ ========== */
@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes goldPulse {
    0% { box-shadow: 0 0 5px var(--gold); }
    50% { box-shadow: 0 0 20px var(--purple); }
    100% { box-shadow: 0 0 5px var(--gold); }
}

/* ========== СКРОЛЛБАР ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--brown-warm);
    border-radius: 4px;
    border: 1px solid var(--gold-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 112, 219, 0.5);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
    header { padding: 15px 30px; }
    .main-nav ul { gap: 10px; }
    .main-nav a { padding: 6px 12px; font-size: 0.9rem; }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .main-nav ul { flex-wrap: wrap; justify-content: center; }
    
    .catalog-layout {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .catalog-sidebar {
        position: static;
        max-height: none;
    }
    
    .hero { padding: 50px 20px; }
    .hero h2 { font-size: 2rem; }
    
    .sections-grid, 
    .symbols-grid, 
    .body-grid, 
    .dreams-grid, 
    .energy-grid,
    .products-grid {
        padding: 0 20px 30px;
        gap: 20px;
    }
    
    .footer-content {
        padding: 30px 20px;
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-card { min-height: 300px; }
    .product-card img { height: 150px; }
    .cart-content { width: 100%; max-width: 100%; }
}

/* ========== УТИЛИТЫ ========== */
.resize-animation-stopper * {
    animation: none !important;
    transition: none !important;
}

.will-change-transform {
    will-change: transform;
}

.highlight {
    background: rgba(255, 215, 0, 0.2);
    color: #ffffff;
    font-weight: bold;
    padding: 2px 0;
    border-radius: 3px;
}

/* ========== УВЕДОМЛЕНИЯ ========== */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.5), rgba(106, 78, 155, 0.5));
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
    z-index: 2000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border: 1px solid var(--gold);
}

/* ========== БЭЙДЖИ ========== */
.numbers-badge {
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.5), rgba(106, 78, 155, 0.5));
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 25px;
    font-weight: bold;
    border: 1px solid var(--gold-dark);
    display: inline-block;
}

/* ========== ЦЕНЫ В КУРСАХ ========== */
.course-price-big {
    font-size: 2rem;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.2), rgba(106, 78, 155, 0.2));
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid var(--gold-dark);
}
/* Дополнительные классы для страниц */
.page-hero {

    background: transparent;
    padding: 60px 50px;
    text-align: center;
    border-bottom: 1px solid var(--gold-dark);
}

.page-hero h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #ffffff;
}

.catalog-filters {
    padding: 30px 50px;
}

.filters-wrapper {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.products-count {
    color: #ffffff;
}

.products-count span {
    color: #ffffff;
    font-weight: bold;
}

.catalog-grid {
    padding: 20px 50px 60px;
}

.no-products-message {
    display: none;
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, var(--background-light), rgba(61, 43, 31, 0.8));
    border-radius: 20px;
    margin-top: 30px;
    border: 1px solid var(--border-color);
}

.no-products-message p {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-links a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.social-links img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s;
}

.social-links a:hover img {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--gold));
}

.contact-info {
    margin-top: 25px;
}

.contact-info p {
    color: #ffffff;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(44, 24, 16, 0.8);
    border: 1px solid var(--gold-dark);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--purple);
    outline: none;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}
/* ========== АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ ========== */
@media (max-width: 768px) {
    /* Шапка */
    header {
        height: auto;
        padding: 10px 15px;
        position: sticky;
        top: 0;
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    header.hide {
        transform: translateY(-100%);
    }
    
    .logo h1 {
        font-size: 1.2rem;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
    
    /* Навигация */
    .main-nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 10px 0;
    }
    
    .main-nav ul {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 0 5px;
    }
    
    .main-nav a {
        font-size: 0.8rem;
        padding: 6px 10px;
        white-space: nowrap;
    }
    
    /* Корзина */
    .cart-icon {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 1.1rem;
        padding: 5px 10px;
    }
    
    /* Основной контент */
    .hero {
        padding: 40px 15px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Сетки */
    .sections-grid,
    .symbols-grid,
    .body-grid,
    .dreams-grid,
    .energy-grid,
    .products-grid,
    .training-grid {
        padding: 0 15px 30px;
        gap: 15px;
    }
    
    .sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .symbols-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Карточки */
    .section-card,
    .symbol-item,
    .body-item,
    .dream-item,
    .energy-item,
    .product-card {
        padding: 15px;
        min-height: auto;
    }
    
    .product-card {
        min-height: 250px;
    }
    
    .product-card img {
        height: 120px;
    }
    
    .product-card h3 {
        font-size: 0.9rem;
    }
    
    .product-card .price {
        font-size: 1rem;
    }
    
    .product-card button {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    /* Каталог */
    .catalog-layout {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .catalog-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .page-hero {
        padding: 30px 15px !important;
    }
    
    .page-hero h1 {
        font-size: 2rem !important;
    }
    
    .page-hero p {
        font-size: 1rem !important;
    }
    
    /* Фильтры */
    section[style*="padding: 30px 50px"] {
        padding: 20px 15px !important;
    }
    
    .filter-group {
        width: 100%;
    }
    
    select {
        width: 100%;
        margin: 5px 0;
        padding: 10px !important;
        font-size: 0.9rem;
    }
    
    /* ОБУЧЕНИЕ - исправление отступов */
    .training-grid {
        padding: 15px !important;
        grid-template-columns: 1fr !important;
    }
    
    .course-card {
        width: 100%;
        margin: 0;
    }
    
    .course-info {
        padding: 15px !important;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start !important;
    }
    
    .course-meta span {
        width: 100%;
        text-align: left !important;
    }
    
    .course-info h2 {
        font-size: 1.2rem !important;
    }
    
    /* Школа эзотерики - исправление */
    .course-card.featured {
        margin: 0 !important;
        padding: 15px !important;
    }
    
    .course-card.featured > div {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .course-card.featured img {
        height: 150px;
    }
    
    .course-card.featured div[style*="padding: 40px"] {
        padding: 15px !important;
    }
    
    .course-card.featured h2 {
        font-size: 1.5rem !important;
    }
    
    .course-card.featured .btn-cosmic-right {
        width: 100%;
        padding: 12px !important;
        font-size: 1rem !important;
    }
    
    .course-card.featured div[style*="display: flex; gap: 40px"] {
        flex-direction: column;
        gap: 10px !important;
    }
    
    /* О СНАХ - исправление фаз */
    #dreamResults {
        grid-template-columns: 1fr !important;
        padding: 15px !important;
    }
    
    .dream-item {
        width: 100%;
        margin: 0;
    }
    
    /* Фазы сна */
    section[style*="display: grid; grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    
    div[style*="background: rgba(193,161,255,0.05)"] {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Поиск в соннике */
    section[style*="max-width: 800px"] {
        padding: 20px 15px !important;
    }
    
    div[style*="display: flex; gap: 10px; align-items: center"] {
        flex-direction: column !important;
    }
    
    #dreamSearchInput {
        width: 100% !important;
        margin: 0 !important;
    }
    
    button[onclick="searchDreams()"] {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Категории сонника */
    section[style*="display: flex; flex-wrap: wrap; justify-content: center"] {
        padding: 15px !important;
        gap: 8px !important;
    }
    
    section[style*="display: flex; flex-wrap: wrap; justify-content: center"] span {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
    }
    
    /* Футер */
    .footer-content {
        padding: 30px 15px !important;
    }
    
    .footer-section {
        width: 100%;
    }
    
    .social-links {
        gap: 15px !important;
    }
    
    .social-links a {
        width: calc(50% - 15px);
    }
    
    /* Модальное окно */
    .cosmic-modal-content {
        padding: 25px 15px !important;
        width: 95% !important;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        width: 100%;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1rem;
    }
    
    .main-nav a {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
    }
    
    .symbols-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
    }

    .section-title::after {
        width: 60px;
    }
}

/* ========== НОВОСТИ ========== */
.news-section {
    padding: 60px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background: linear-gradient(135deg, rgba(61, 43, 31, 0.9), rgba(26, 15, 10, 0.9));
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--purple));
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
    border-color: var(--gold);
}

.news-date {
    font-size: 0.85rem;
    color: var(--purple);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.news-text {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.news-source {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--purple-light);
    margin-top: 15px;
    padding: 5px 12px;
    background: rgba(147, 112, 219, 0.2);
    border-radius: 20px;
}

.news-source.telegram {
    background: rgba(0, 136, 204, 0.2);
    color: #000000;
}

.news-source.manual {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
}

@media (max-width: 768px) {
    .news-section {
        padding: 40px 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}


