@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --night-dark: #0C1B33;
    --night-indigo: #10182F;
    --soft-lavender: #9CA7F5;
    --misty-blue: #DDE7FF;
    --accent-teal: #7FDBDA;
    --accent-light: #9CA7F5;
    --silver: #E4E8F2;
    --text-light: #F5F7FB;
    --text-muted: #B8C5D6;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 4px 20px rgba(12, 27, 51, 0.08);
    --shadow-hover: 0 8px 30px rgba(12, 27, 51, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #0C1B33 0%, #1a2847 50%, #0C1B33 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 18px;
    position: relative;
    overflow-x: hidden;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(156, 167, 245, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(127, 219, 218, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}


/* Оптимизированные звёзды (35 звёзд - баланс красоты и производительности) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    will-change: opacity;
    background-image: 
        /* Только самые важные звёзды - 20 штук */
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 50% 70%, rgba(156, 167, 245, 0.9), transparent),
        radial-gradient(2px 2px at 15% 85%, white, transparent),
        radial-gradient(2px 2px at 40% 20%, white, transparent),
        radial-gradient(2px 2px at 60% 40%, white, transparent),
        radial-gradient(2px 2px at 75% 75%, rgba(127, 219, 218, 0.9), transparent),
        radial-gradient(2px 2px at 85% 25%, white, transparent),
        radial-gradient(1.5px 1.5px at 10% 50%, white, transparent),
        radial-gradient(1.5px 1.5px at 30% 60%, rgba(156, 167, 245, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 55% 25%, white, transparent),
        radial-gradient(1.5px 1.5px at 70% 55%, white, transparent),
        radial-gradient(1.5px 1.5px at 90% 40%, rgba(127, 219, 218, 0.8), transparent),
        radial-gradient(1px 1px at 12% 15%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 35% 45%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 48% 65%, rgba(156, 167, 245, 0.6), transparent),
        radial-gradient(1px 1px at 65% 18%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 78% 80%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 88% 35%, rgba(127, 219, 218, 0.6), transparent),
        radial-gradient(1px 1px at 95% 90%, rgba(255, 255, 255, 0.6), transparent);
    background-size: 100% 100%;
    background-position: 0% 0%;
    pointer-events: none;
    z-index: 1;
    transform: translateZ(0);
    backface-visibility: hidden;
    animation: starsTwinkle 4s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes starsTwinkle {
    0%, 100% { 
        opacity: 0.7;
    }
    50% { 
        opacity: 0.3;
    }
}



/* Луна с анимацией фаз */


header {
    position: relative;
    z-index: 10;
    padding: 60px 20px 35px;
    text-align: center;
    background: linear-gradient(180deg, rgba(16, 24, 47, 0.8) 0%, transparent 100%);
}

/* Контейнер для названия */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* Логотип полностью скрыт */
.logo-container {
    display: none;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Луна в правом верхнем углу */
.moon {
    position: fixed;
    top: 80px;
    right: 100px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4f4f4 0%, #e8e8e8 100%);
    box-shadow: 
        0 0 30px 8px rgba(244, 244, 244, 0.3),
        0 0 60px 15px rgba(156, 167, 245, 0.15),
        inset -10px -10px 20px rgba(0, 0, 0, 0.1);
    z-index: 3;
    overflow: hidden;
    transform: translateZ(0);
}

/* Тень луны - статичная (полнолуние) */
.moon::before {
    content: '';
    position: absolute;
    top: 0;
    right: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0C1B33 0%, #1a2847 100%);
    border-radius: 50%;
}

/* Кратеры на луне */
.moon::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 35%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 
        20px -10px 0 5px rgba(0, 0, 0, 0.08),
        -5px 15px 0 3px rgba(0, 0, 0, 0.06),
        15px 20px 0 2px rgba(0, 0, 0, 0.05);
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
    letter-spacing: -0.5px;
    position: relative;
}



header h1 a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

header h1 a:hover {
    opacity: 0.9;
}

header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Поиск на главной */
.search-container {
    max-width: 600px;
    margin: 35px auto 0;
    position: relative;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.search-container input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 1rem;
    border: 2px solid rgba(156, 167, 245, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--night-dark);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.search-container input:focus {
    outline: none;
    border-color: var(--soft-lavender);
    box-shadow: 0 0 0 3px rgba(156, 167, 245, 0.1);
}

.search-container input::placeholder {
    color: #9CA3AF;
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--soft-lavender);
    pointer-events: none;
}

/* Кнопка "Назад" */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(156, 167, 245, 0.1);
    border: 1px solid rgba(156, 167, 245, 0.2);
    border-radius: 10px;
    color: var(--soft-lavender);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.back-button:hover {
    background: rgba(156, 167, 245, 0.15);
    border-color: var(--soft-lavender);
    transform: translateX(-4px);
}

.back-button svg {
    flex-shrink: 0;
}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background: var(--soft-lavender);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(156, 167, 245, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scroll-to-top:hover {
    background: var(--accent-teal);
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(127, 219, 218, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

main {
    position: relative;
    z-index: 5;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 80px;
}

/* Кнопка переключения категорий (скрыта на десктопе) */
.categories-toggle-btn {
    display: none; /* Скрыта по умолчанию */
}

/* Меню категорий - каскадное по центру */
.categories-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 50px auto 60px;
    padding: 35px 30px;
    max-width: 1100px;
    background: rgba(156, 167, 245, 0.06);
    border-radius: 24px;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(156, 167, 245, 0.15);
    position: relative;
    overflow: hidden;
}

/* Декоративный элемент фона */
.categories-menu::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(156, 167, 245, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: categoryGlow 10s infinite alternate;
}

@keyframes categoryGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(-10%, -10%) scale(1.1); opacity: 0.8; }
}

.category-btn {
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    background: rgba(156, 167, 245, 0.12);
    border: 2px solid rgba(156, 167, 245, 0.15);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.category-btn:hover::before {
    width: 300px;
    height: 300px;
}

.category-btn:hover {
    background: rgba(156, 167, 245, 0.2);
    border-color: rgba(156, 167, 245, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(156, 167, 245, 0.3);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-teal));
    color: white;
    border-color: var(--accent-light);
    box-shadow: 0 6px 20px rgba(156, 167, 245, 0.5);
    transform: translateY(-2px);
}

/* Иконки в кнопках */
.btn-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 1.1em;
    vertical-align: middle;
}

/* Кнопка калькулятора - особенная */
.calculator-btn {
    background: linear-gradient(135deg, rgba(127, 219, 218, 0.15), rgba(156, 167, 245, 0.15));
    border: 2px solid rgba(127, 219, 218, 0.3);
    font-weight: 600;
    cursor: pointer;
    pointer-events: auto;
}

.calculator-btn:hover {
    background: linear-gradient(135deg, rgba(127, 219, 218, 0.3), rgba(156, 167, 245, 0.3));
    border-color: rgba(127, 219, 218, 0.5);
    box-shadow: 0 6px 20px rgba(127, 219, 218, 0.4);
    transform: translateY(-2px);
}

.calculator-btn:active {
    transform: translateY(0);
}

.calculator-btn.active {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-light));
    border-color: var(--accent-teal);
}

/* Список статей на главной */
#articles-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 0;
    grid-auto-rows: 1fr;
    padding-top: 20px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Ссылка-обёртка карточки */
.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Бейдж категории на карточке */
.category-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(156, 167, 245, 0.9), rgba(127, 219, 218, 0.8));
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 8px rgba(156, 167, 245, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(156, 167, 245, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transform: translateZ(0);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    will-change: auto;
}

.card-content {
    padding: 28px 32px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--soft-lavender), var(--accent-teal));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: var(--shadow-hover);
}

.card:hover::before {
    opacity: 1;
}

.card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--night-dark);
    margin-bottom: 16px;
    line-height: 1.4;
    letter-spacing: -0.3px;
    margin-top: 0;
}

.card p {
    color: #4A5568;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    flex: 1;
}

/* Стили для страницы статьи */
article {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 60px;
    box-shadow: var(--shadow-soft);
    color: #2D3748;
    line-height: 1.8;
}

article h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--night-dark);
    margin-bottom: 32px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--night-dark) 0%, var(--soft-lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

article h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--night-indigo);
    margin-top: 48px;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: -0.3px;
    position: relative;
    padding-left: 20px;
    text-align: left;
    width: 100%;
    clear: both;
    display: block;
}

article h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: linear-gradient(180deg, var(--soft-lavender), var(--accent-teal));
    border-radius: 2px;
}

article h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--night-indigo);
    margin-top: 36px;
    margin-bottom: 16px;
    line-height: 1.4;
    text-align: left;
    width: 100%;
    clear: both;
    display: block;
}

article p {
    font-size: 1.05rem;
    color: #2D3748;
    margin-bottom: 24px;
    line-height: 1.8;
}

article ul, article ol {
    margin: 24px 0;
    padding-left: 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

article li {
    margin-bottom: 12px;
    color: #2D3748;
    line-height: 1.75;
    word-wrap: break-word;
}

article li::marker {
    color: var(--soft-lavender);
}

/* Стили для таблиц */
article table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

article table th,
article table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(156, 167, 245, 0.2);
    color: #2D3748;
    font-size: 1rem;
    line-height: 1.6;
}

article table th {
    background: linear-gradient(135deg, rgba(156, 167, 245, 0.15) 0%, rgba(127, 219, 218, 0.15) 100%);
    font-weight: 600;
    color: var(--night-indigo);
    font-family: 'Poppins', sans-serif;
}

article table tr:last-child td {
    border-bottom: none;
}

article table tr:hover {
    background: rgba(156, 167, 245, 0.05);
}

article strong {
    font-weight: 600;
    color: var(--night-dark);
}

/* Подсветка важных блоков */
article p strong {
    background: linear-gradient(120deg, rgba(156, 167, 245, 0.1) 0%, rgba(127, 219, 218, 0.1) 100%);
    padding: 2px 6px;
    border-radius: 4px;
}

footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid rgba(156, 167, 245, 0.1);
    margin-top: 60px;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: var(--soft-lavender);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

footer a:hover {
    color: var(--accent-teal);
}

/* Ссылки в статьях */
a {
    color: inherit;
    text-decoration: none;
}


/* Адаптивность луны */
@media (max-width: 768px) {
    .moon {
        width: 80px;
        height: 80px;
        top: 60px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    /* Логотип и луна уже скрыты в 768px */
    header h1 {
        font-size: 2rem;
    }
}

/* Адаптивность для больших экранов */
@media (min-width: 1600px) {
    main {
        max-width: 1600px;
    }
    
    article {
        max-width: 1300px;
        padding: 70px 80px;
    }
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    #articles-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 85%;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    /* Скрываем луну на мобильных */
    .moon {
        display: none;
    }
    
    /* Закрепляем header вверху */
    header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: linear-gradient(180deg, rgba(16, 24, 47, 0.98) 0%, rgba(16, 24, 47, 0.95) 100%);
        backdrop-filter: blur(10px);
        padding: 30px 15px 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    header h1 {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }
    
    header p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .search-container {
        margin: 15px 0 0;
    }
    
    .search-container input {
        padding: 14px 45px 14px 16px;
        font-size: 0.95rem;
    }
    
    /* Кнопка переключения категорий (видна только на мобильных) */
    .categories-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: calc(100% - 30px);
        max-width: 600px;
        margin: 15px auto;
        padding: 16px 20px;
        background: rgba(156, 167, 245, 0.15);
        border: 2px solid rgba(156, 167, 245, 0.3);
        border-radius: 12px;
        color: var(--text-light);
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative; /* Статичная позиция */
        z-index: 10;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
    
    .categories-toggle-btn:hover {
        background: rgba(156, 167, 245, 0.25);
        border-color: rgba(156, 167, 245, 0.5);
        transform: translateY(-2px);
    }
    
    .categories-toggle-btn.active {
        background: rgba(156, 167, 245, 0.3);
        border-color: var(--soft-lavender);
    }
    
    .toggle-icon {
        font-size: 1.3rem;
        margin-right: 10px;
    }
    
    .toggle-text {
        flex: 1;
        text-align: left;
    }
    
    .toggle-arrow {
        transition: transform 0.3s ease;
        color: var(--soft-lavender);
    }
    
    .categories-toggle-btn.active .toggle-arrow {
        transform: rotate(180deg);
    }
    
    /* Меню категорий - скрыто по умолчанию в мобильной версии */
    .categories-menu {
        position: relative; /* Статичная позиция */
        z-index: 10;
        margin: 0;
        padding: 15px;
        gap: 10px;
        border-radius: 0 0 20px 20px;
        background: rgba(156, 167, 245, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(156, 167, 245, 0.3);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
        display: flex;
        flex-wrap: wrap;
    }
    
    .categories-menu.open {
        max-height: 1000px; /* Достаточно для всех кнопок */
        opacity: 1;
        padding: 15px;
        margin-bottom: 15px; /* Вернули как было */
    }
    
    /* Убеждаемся, что статьи не перекрывают категории */
    main {
        padding-top: 10px;
        position: relative;
        z-index: 1; /* Ниже категорий */
    }
    
    #articles-list {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 95%;
        margin-top: 20px;
        position: relative;
        z-index: 1; /* Ниже категорий */
    }
    
    /* Карточки статей также должны быть ниже категорий */
    .article-card-link {
        position: relative;
        z-index: 1;
    }
    
    .card {
        position: relative;
        z-index: 1;
    }
    
    .category-btn {
        flex: 1 1 calc(50% - 5px);
        min-width: 140px;
        font-size: 0.85rem;
        padding: 12px 16px;
        text-align: center;
        border-radius: 20px;
    }
    
    .btn-icon {
        display: block;
        margin: 0 auto 4px;
        font-size: 1.3em;
    }
    
    header {
        padding: 50px 15px 25px;
    }
    
    /* Улучшаем header в статьях для мобильных */
    article ~ header,
    main > header {
        padding: 30px 15px 20px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 20px 24px 24px;
    }
    
    .back-button {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        z-index: 9999;
    }
    
    .scroll-to-top.visible {
        pointer-events: auto;
    }
    
    article {
        padding: 32px 24px;
        border-radius: 16px;
    }
    
    article h1 {
        font-size: 2rem;
    }
    
    article h2 {
        font-size: 1.6rem;
        margin-top: 36px;
    }
    
    article h3 {
        font-size: 1.3rem;
    }
    
    body {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    article h1 {
        font-size: 1.75rem;
    }
    
    article h2 {
        font-size: 1.4rem;
        padding-left: 16px;
        text-align: left;
        width: 100%;
    }
    
    article h3 {
        text-align: left;
        width: 100%;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

article {
    animation: fadeInUp 0.8s ease-out;
}

/* Декоративные элементы */
.card-content::after {
    content: '→';
    position: absolute;
    bottom: 28px;
    right: 32px;
    font-size: 1.5rem;
    color: var(--soft-lavender);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.card:hover .card-content::after {
    opacity: 1;
    transform: translateX(0);
}

/* Выделение цитат и важных блоков (на будущее) */
blockquote {
    border-left: 4px solid var(--soft-lavender);
    padding: 20px 24px;
    margin: 32px 0;
    background: linear-gradient(120deg, rgba(156, 167, 245, 0.05) 0%, rgba(127, 219, 218, 0.05) 100%);
    border-radius: 8px;
    font-style: italic;
    color: #4A5568;
}

/* Улучшение читаемости кода (на случай будущих статей) */
code {
    background: rgba(156, 167, 245, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--night-indigo);
}

pre {
    background: var(--night-dark);
    color: var(--text-light);
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Стили для изображений статей */
.article-image {
    display: none !important;
}


/* ============================================
   СТИЛИ ДЛЯ СТРАНИЦЫ РИТУАЛОВ
   ============================================ */

.ritual-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.8;
}

.ritual-page h1 {
    font-size: 2.5rem;
    color: #7FDBDA;
    margin-bottom: 30px;
    text-align: center;
}

.ritual-page h2 {
    font-size: 1.8rem;
    color: #7FDBDA;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(127, 219, 218, 0.3);
}

.ritual-page h3 {
    font-size: 1.3rem;
    color: #9CA7F5;
    margin-top: 25px;
    margin-bottom: 15px;
}

.ritual-page h4 {
    font-size: 1.1rem;
    color: #7FDBDA;
    margin-top: 20px;
    margin-bottom: 10px;
}

.ritual-page .intro {
    background: rgba(91, 140, 255, 0.05);
    border-left: 4px solid #7FDBDA;
    padding: 20px 25px;
    margin-bottom: 40px;
    border-radius: 8px;
}

.ritual-page ol,
.ritual-page ul {
    margin: 20px 0;
    padding-left: 30px;
}

.ritual-page li {
    margin: 12px 0;
    line-height: 1.7;
}

.ritual-page ol li {
    padding-left: 10px;
}

.ritual-page strong {
    color: #9CA7F5;
    font-weight: 600;
}

.benefits-box {
    background: linear-gradient(135deg, rgba(91, 140, 255, 0.1), rgba(127, 219, 218, 0.1));
    border: 2px solid rgba(127, 219, 218, 0.3);
    border-radius: 12px;
    padding: 20px 25px;
    margin: 30px 0;
}

.benefits-box h4 {
    margin-top: 0;
    color: #7FDBDA;
}

.benefits-box ul {
    margin-bottom: 0;
}

.exercise {
    background: rgba(20, 27, 61, 0.3);
    border-left: 3px solid #9CA7F5;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
}

.exercise h4 {
    margin-top: 0;
    color: #9CA7F5;
}

.exercise p {
    margin-bottom: 0;
}

.faq {
    margin-top: 60px;
}

.faq-item {
    background: rgba(91, 140, 255, 0.05);
    border-radius: 10px;
    padding: 20px 25px;
    margin: 20px 0;
    border: 1px solid rgba(127, 219, 218, 0.2);
}

.faq-item h3 {
    color: #7FDBDA;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.faq-item p {
    margin-bottom: 0;
    color: #E8EAF6;
}

.back-link {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(127, 219, 218, 0.2);
}

.back-link a {
    color: #7FDBDA;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.back-link a:hover {
    color: #9CA7F5;
    text-decoration: underline;
}

/* Адаптивность для страницы ритуалов */
@media (max-width: 768px) {
    .ritual-page {
        padding: 20px 15px;
    }
    
    .ritual-page h1 {
        font-size: 1.8rem;
    }
    
    .ritual-page h2 {
        font-size: 1.4rem;
        margin-top: 35px;
    }
    
    .ritual-page h3 {
        font-size: 1.1rem;
    }
    
    .benefits-box,
    .faq-item,
    .exercise {
        padding: 15px 18px;
    }
}

/* ============================================
   ВИЗУАЛЬНЫЕ ЭЛЕМЕНТЫ ДЛЯ СТАТЕЙ
   ============================================ */

/* Hero блок со статистикой - улучшенный дизайн */
.article-hero {
    background: linear-gradient(135deg, rgba(156, 167, 245, 0.15) 0%, rgba(127, 219, 218, 0.15) 100%);
    border-radius: 24px;
    padding: 50px;
    margin-bottom: 50px;
    border: 3px solid rgba(156, 167, 245, 0.3);
    box-shadow: 
        0 10px 40px rgba(156, 167, 245, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(156, 167, 245, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(-10%, -10%) scale(1.1); opacity: 0.8; }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 28px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(156, 167, 245, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(156, 167, 245, 0.1);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(156, 167, 245, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(156, 167, 245, 0.25);
    border-color: var(--soft-lavender);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--soft-lavender) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stat-label {
    font-size: 1rem;
    color: #4A5568;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero-intro {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #2D3748;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 400;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border-left: 4px solid var(--soft-lavender);
}

/* Сетка принципов - улучшенный дизайн с эмоциями */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 40px 0;
}

.principle-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    border: 3px solid rgba(156, 167, 245, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(156, 167, 245, 0.1);
}

.principle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--soft-lavender), var(--accent-teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.principle-card:hover::before {
    transform: scaleX(1);
}

.principle-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(156, 167, 245, 0.3);
    border-color: var(--soft-lavender);
}

.principle-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(156, 167, 245, 0.3));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.principle-card h3 {
    font-size: 1.4rem;
    margin: 0 0 16px 0;
    color: var(--night-indigo);
    font-weight: 700;
    background: linear-gradient(135deg, var(--night-indigo) 0%, var(--soft-lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.principle-card p {
    font-size: 1rem;
    color: #4A5568;
    margin: 0;
    line-height: 1.7;
    font-weight: 400;
}

/* Информационные блоки - улучшенный дизайн */
.info-box {
    display: flex;
    gap: 24px;
    padding: 28px;
    border-radius: 20px;
    margin: 35px 0;
    border-left: 5px solid;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.info-box.warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 235, 59, 0.08) 100%);
    border-color: #FFC107;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.2);
}

.info-box.warning::before {
    background: radial-gradient(circle, rgba(255, 193, 7, 0.2) 0%, transparent 70%);
}

.info-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    animation: iconBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.info-content {
    flex: 1;
    color: #2D3748;
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.info-content strong {
    color: var(--night-dark);
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

/* Чеклист - улучшенный дизайн */
.checklist-box {
    background: linear-gradient(135deg, rgba(156, 167, 245, 0.1) 0%, rgba(127, 219, 218, 0.08) 100%);
    border-radius: 20px;
    padding: 32px;
    margin: 30px 0;
    border: 2px solid rgba(156, 167, 245, 0.25);
    box-shadow: 0 6px 20px rgba(156, 167, 245, 0.1);
    position: relative;
    overflow: hidden;
}

.checklist-box::before {
    content: '✓';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 150px;
    color: rgba(156, 167, 245, 0.05);
    font-weight: 700;
    line-height: 1;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.checklist li {
    padding: 16px 0 16px 48px;
    position: relative;
    color: #2D3748;
    line-height: 1.8;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 8px;
}

.checklist li:hover {
    background: rgba(255, 255, 255, 0.5);
    padding-left: 52px;
    transform: translateX(4px);
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 16px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--soft-lavender), var(--accent-teal));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(156, 167, 245, 0.4);
    transition: all 0.3s ease;
}

.checklist li:hover::before {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 6px 18px rgba(156, 167, 245, 0.5);
}

/* Блок дыхания - улучшенный дизайн с анимацией */
.breathing-box {
    background: linear-gradient(135deg, rgba(127, 219, 218, 0.15) 0%, rgba(156, 167, 245, 0.15) 100%);
    border-radius: 24px;
    padding: 40px;
    margin: 35px 0;
    border: 3px solid rgba(127, 219, 218, 0.3);
    box-shadow: 
        0 8px 30px rgba(127, 219, 218, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.breathing-box::before {
    content: '🌬️';
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 120px;
    opacity: 0.1;
    animation: breatheAnimation 4s ease-in-out infinite;
}

@keyframes breatheAnimation {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.1; }
    50% { transform: scale(1.2) rotate(10deg); opacity: 0.15; }
}

.breathing-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--night-indigo) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.breathing-steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.breathing-step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 16px;
    border: 2px solid rgba(127, 219, 218, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(127, 219, 218, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.breathing-step:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(127, 219, 218, 0.2);
    border-color: var(--accent-teal);
}

.step-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-teal), var(--soft-lavender));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(127, 219, 218, 0.4);
    animation: pulseNumber 2s ease-in-out infinite;
}

@keyframes pulseNumber {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.step-text {
    flex: 1;
    color: #2D3748;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.6;
    word-wrap: break-word;
    min-width: 0;
}

.breathing-note {
    text-align: center;
    color: #4A5568;
    font-style: italic;
    margin: 20px 0 0 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    font-size: 1rem;
    border-left: 4px solid var(--accent-teal);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* Контейнер шагов - улучшенный дизайн */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 40px 0;
}

.step-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-radius: 24px;
    padding: 40px;
    border: 3px solid rgba(156, 167, 245, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(156, 167, 245, 0.12);
    animation: fadeInUp 0.6s ease-out backwards;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }
.step-card:nth-child(5) { animation-delay: 0.5s; }
.step-card:nth-child(6) { animation-delay: 0.6s; }
.step-card:nth-child(7) { animation-delay: 0.7s; }

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--soft-lavender), var(--accent-teal));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.step-card:hover::before {
    transform: scaleY(1);
}

.step-card:hover {
    box-shadow: 0 15px 40px rgba(156, 167, 245, 0.25);
    transform: translateY(-6px) scale(1.01);
    border-color: var(--soft-lavender);
}

.step-card.highlight {
    background: linear-gradient(135deg, rgba(156, 167, 245, 0.15) 0%, rgba(127, 219, 218, 0.15) 100%);
    border-color: var(--soft-lavender);
    box-shadow: 0 12px 35px rgba(156, 167, 245, 0.3);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.step-number-large {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--soft-lavender), var(--accent-teal));
    color: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2.2rem;
    flex-shrink: 0;
    box-shadow: 
        0 6px 20px rgba(156, 167, 245, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: numberGlow 3s ease-in-out infinite;
    position: relative;
}

.step-number-large::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--soft-lavender), var(--accent-teal));
    opacity: 0.3;
    filter: blur(8px);
    z-index: -1;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes numberGlow {
    0%, 100% { box-shadow: 0 6px 20px rgba(156, 167, 245, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 8px 30px rgba(156, 167, 245, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.step-header h3 {
    margin: 0;
    flex: 1;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--night-indigo) 0%, var(--soft-lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.step-tip {
    background: linear-gradient(135deg, rgba(156, 167, 245, 0.12) 0%, rgba(127, 219, 218, 0.08) 100%);
    border-left: 4px solid var(--soft-lavender);
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0;
    color: #2D3748;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(156, 167, 245, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* Визуализации - улучшенный дизайн */
.visualization-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.viz-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 20px;
    padding: 28px;
    border: 3px solid rgba(156, 167, 245, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(156, 167, 245, 0.1);
}

.viz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(156, 167, 245, 0.05), rgba(127, 219, 218, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.viz-card:hover::before {
    opacity: 1;
}

.viz-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 40px rgba(156, 167, 245, 0.25);
    border-color: var(--soft-lavender);
}

.viz-title {
    font-weight: 700;
    color: var(--night-indigo);
    margin-bottom: 16px;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.viz-card p {
    margin: 0;
    color: #4A5568;
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Сетка советов - улучшенный дизайн */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.tip-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 20px;
    padding: 32px;
    border: 3px solid rgba(156, 167, 245, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(156, 167, 245, 0.1);
}

.tip-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(156, 167, 245, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tip-card:hover::after {
    opacity: 1;
}

.tip-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(156, 167, 245, 0.3);
    border-color: var(--soft-lavender);
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: inline-block;
    animation: iconSpin 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(156, 167, 245, 0.3));
    position: relative;
    z-index: 1;
}

@keyframes iconSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    75% { transform: rotate(5deg) scale(1.1); }
}

.tip-card h3 {
    margin: 0 0 16px 0;
    font-size: 1.3rem;
    color: var(--night-indigo);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.tip-card p {
    margin: 0;
    color: #4A5568;
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Проблемы - улучшенный дизайн */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.problem-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 240, 0.95) 100%);
    border-radius: 20px;
    padding: 28px;
    border: 3px solid rgba(255, 152, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.15);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF9800, #FFC107);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.problem-card:hover::before {
    transform: scaleX(1);
}

.problem-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 152, 0, 0.25);
    border-color: #FF9800;
}

.problem-title {
    font-weight: 700;
    color: var(--night-indigo);
    margin-bottom: 16px;
    font-size: 1.2rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.problem-card p {
    margin: 0 0 16px 0;
    color: #4A5568;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

.problem-card ul,
.problem-card ol {
    margin: 16px 0;
    padding-left: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.problem-card li {
    margin-bottom: 10px;
    color: #4A5568;
    line-height: 1.6;
    word-wrap: break-word;
}

.problem-card h3 {
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--night-indigo);
    font-weight: 600;
}

/* Варианты использования - улучшенный дизайн */
.use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0;
}

.use-case {
    background: linear-gradient(135deg, rgba(156, 167, 245, 0.2), rgba(127, 219, 218, 0.2));
    padding: 14px 24px;
    border-radius: 30px;
    border: 2px solid rgba(156, 167, 245, 0.3);
    color: var(--night-indigo);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(156, 167, 245, 0.15);
    position: relative;
    overflow: hidden;
}

.use-case::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.use-case:hover::before {
    width: 300px;
    height: 300px;
}

.use-case:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(156, 167, 245, 0.3);
    border-color: var(--soft-lavender);
    background: linear-gradient(135deg, rgba(156, 167, 245, 0.3), rgba(127, 219, 218, 0.3));
}

/* Научное объяснение - улучшенный дизайн */
.science-box {
    background: linear-gradient(135deg, rgba(156, 167, 245, 0.12) 0%, rgba(127, 219, 218, 0.12) 100%);
    border-radius: 24px;
    padding: 40px;
    margin: 40px 0;
    border: 3px solid rgba(156, 167, 245, 0.25);
    box-shadow: 
        0 8px 30px rgba(156, 167, 245, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.science-box::before {
    content: '🔬';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px;
    opacity: 0.08;
}

.science-item {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 2px solid rgba(156, 167, 245, 0.2);
    transition: all 0.3s ease;
    padding-left: 20px;
    position: relative;
}

.science-item::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--soft-lavender);
    font-size: 1.5rem;
    font-weight: 700;
}

.science-item:hover {
    padding-left: 28px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding-top: 12px;
    padding-bottom: 20px;
}

.science-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.science-label {
    font-weight: 700;
    background: linear-gradient(135deg, var(--soft-lavender), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.science-item p {
    margin: 0;
    color: #2D3748;
    line-height: 1.8;
    font-size: 1.05rem;
}

.science-result {
    background: linear-gradient(135deg, rgba(127, 219, 218, 0.15), rgba(156, 167, 245, 0.1));
    border-left: 5px solid var(--accent-teal);
    padding: 20px 24px;
    border-radius: 12px;
    margin: 25px 0;
    font-weight: 600;
    color: #2D3748;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(127, 219, 218, 0.2);
    position: relative;
}

.science-result::before {
    content: '📊';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0.3;
}

/* План - улучшенный дизайн */
.plan-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 40px 0;
    position: relative;
    padding-left: 30px;
}

.plan-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--soft-lavender), var(--accent-teal));
    border-radius: 2px;
}

.plan-week {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 20px;
    padding: 32px;
    border-left: 5px solid var(--soft-lavender);
    position: relative;
    box-shadow: 0 6px 20px rgba(156, 167, 245, 0.12);
    transition: all 0.4s ease;
}

.plan-week::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--soft-lavender);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--soft-lavender);
}

.plan-week:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(156, 167, 245, 0.2);
    border-left-color: var(--accent-teal);
}

.week-number {
    font-weight: 700;
    background: linear-gradient(135deg, var(--soft-lavender), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    margin-bottom: 16px;
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(156, 167, 245, 0.15), rgba(127, 219, 218, 0.15));
    border-radius: 12px;
    border: 2px solid rgba(156, 167, 245, 0.2);
    color: var(--night-indigo);
    -webkit-text-fill-color: var(--night-indigo);
}

.plan-week p {
    margin: 0;
    color: #2D3748;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Заключение - улучшенный дизайн */
.conclusion-box {
    background: linear-gradient(135deg, rgba(156, 167, 245, 0.15) 0%, rgba(127, 219, 218, 0.15) 100%);
    border-radius: 24px;
    padding: 50px;
    margin-top: 60px;
    border: 3px solid rgba(156, 167, 245, 0.3);
    box-shadow: 
        0 10px 40px rgba(156, 167, 245, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.conclusion-box::before {
    content: '✨';
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 150px;
    opacity: 0.1;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.15; }
}

.conclusion-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--soft-lavender), var(--accent-teal));
}

.conclusion-box h2 {
    margin-top: 0;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--night-indigo) 0%, var(--soft-lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.conclusion-box p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #2D3748;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Адаптивность для визуальных элементов */
@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-item {
        padding: 24px 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .principle-card {
        padding: 28px 24px;
    }
    
    .principle-icon {
        font-size: 3.5rem;
    }
    
    .visualization-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tip-card {
        padding: 28px 24px;
    }
    
    .tip-icon {
        font-size: 2.5rem;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .problem-card {
        padding: 24px 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .problem-card ul,
    .problem-card ol {
        padding-left: 20px;
    }
    
    .problem-card h3 {
        font-size: 1rem;
        margin-top: 16px;
    }
    
    /* Таблицы на мобильных */
    article table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
    }
    
    article table th,
    article table td {
        padding: 10px 12px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .article-hero {
        padding: 30px 24px;
        border-radius: 20px;
    }
    
    .hero-intro {
        font-size: 1.05rem;
        padding: 16px;
    }
    
    .breathing-box {
        padding: 28px 24px;
    }
    
    .breathing-title {
        font-size: 1.4rem;
    }
    
    .breathing-step {
        padding: 16px 20px;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .step-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .step-card {
        padding: 28px 24px;
        border-radius: 20px;
    }
    
    .step-number-large {
        width: 60px;
        height: 60px;
        font-size: 1.9rem;
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .step-header h3 {
        font-size: 1.3rem;
    }
    
    .info-box {
        padding: 24px 20px;
        flex-direction: column;
        gap: 16px;
    }
    
    .info-icon {
        font-size: 2rem;
        align-self: flex-start;
    }
    
    .checklist-box {
        padding: 24px 20px;
    }
    
    .checklist li {
        padding: 14px 0 14px 44px;
        font-size: 1rem;
    }
    
    .checklist li::before {
        width: 28px;
        height: 28px;
        top: 14px;
    }
    
    .use-cases {
        gap: 12px;
    }
    
    .use-case {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .science-box {
        padding: 28px 24px;
    }
    
    .science-item {
        padding-left: 16px;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }
    
    .science-item::before {
        font-size: 1.2rem;
    }
    
    .plan-timeline {
        padding-left: 24px;
    }
    
    .plan-timeline::before {
        left: 12px;
        width: 2px;
    }
    
    .plan-week {
        padding: 24px 20px;
    }
    
    .plan-week::before {
        left: -6px;
        width: 12px;
        height: 12px;
        border: 3px solid white;
    }
    
    .conclusion-box {
        padding: 32px 24px;
    }
    
    .conclusion-box h2 {
        font-size: 1.6rem;
    }
    
    .conclusion-box p {
        font-size: 1.05rem;
    }
    
    .viz-card {
        padding: 24px 20px;
    }
    
    .viz-title {
        font-size: 1.1rem;
    }
    
    .step-tip {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
}

