.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a2b45;
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 9000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    font-size: 14px;
}

.install-btn {
    background: #4DA0FF;
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.dismiss-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    margin-bottom: 80px;
}

h1, h2, h3 {
    font-weight: 600;
}

.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 10000;
    transition: width 0.08s ease-out;
    width: 0;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px var(--container-padding);
    background: transparent;
    /* прозрачный фон */
    backdrop-filter: blur(0);
    /* без blur */
    -webkit-backdrop-filter: blur(0);
    position: relative;
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-highlight {
    display: inline-block;
    background: linear-gradient(90deg, #e98b2a, #b01a1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoPulse 3s infinite alternate;
}

@keyframes logoPulse {
    0% {
        opacity: 0.85;
        text-shadow: 0 0 4px rgb(255 122 0 / 30%);
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 12px rgb(255 59 0 / 60%);
    }
}

.sticky-header {
    position: sticky;
    top: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-btn,.icon-btn,.theme-toggle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #ff8e00;
    background: var(--card-bg);
    position: relative;
}

.avatar-btn {
    width: 40px;
    height: 40px;
    overflow: hidden;
}

.avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-btn {
    width: 40px;
    height: 40px;
    color: #ff8e00;
    font-size: 18px;
}

.user-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    padding: 12px 0;
    min-width: 180px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
}

.user-menu:hover .user-panel,.user-menu.active .user-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-panel a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.user-panel a:hover {
    background: rgb(168 98 0 / 10%);
    color: #ff6500;
}

.notification-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}

.section-hero {
    background: linear-gradient(57deg, #9f5c42, #b97a53, #ad6d51);
    border-radius: 14px;
    padding: 32px 24px;
    margin: 32px 0 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    z-index: 0;
}

.section-hero > * {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.25rem;
    /* 36px */
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: #f9f2de;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.section-subtitle {
    font-size: 1.125rem;
    /* 18px */
    font-weight: 400;
    margin: 12px 0 0;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.section-subtitle:empty,.section-subtitle:only-child:empty {
    display: none;
}

.quick-nav-wrapper {
    display: none;
}

@media (min-width: 993px) {
    .quick-nav-wrapper {
        display: block;
        position: sticky;
        top: 0;
        z-index: 990;
        background: #ffffff00;
    }
}

.quick-nav a {
    color: #ffee00;
}

.quick-nav a:hover {
    color: #ffffff;
}

.quick-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #f8f8f800;
    padding: 12px var(--container-padding);
    display: flex;
    justify-content: center;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.light .quick-nav {
    border-bottom-color: rgba(0,0,0,0.1);
}

.quick-nav-list {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-nav-item {
    display: flex;
    align-items: center;
    background-color: #2c2e32;
    gap: 6px;
    color: #ffa000;
    padding: 11px;
    border-radius: 11px;
    font-size: 15px;
    opacity: 0.85;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.quick-nav-item:hover {
    opacity: 1;
    color: #fff;
}

.post-card {
    position: relative;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s;
    cursor: pointer;
    will-change: transform, opacity;
    contain: layout style paint;
}

.post-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.post-card {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.post-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .post-card {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .post-card:hover {
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
    }
}

.post-img,.post-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s ease;
    opacity: 0;
}

.post-img.loaded,.post-placeholder.loaded {
    opacity: 1;
}

.post-card:hover .post-img,.post-card:hover .post-placeholder {
    transform: scale(1.05);
}

.post-placeholder {
    background-color: #0a0a0a;
}

.post-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.85));
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 2;
    transition: backdrop-filter 0.35s ease, background 0.35s ease;
    pointer-events: none;
}

.post-card:hover .post-overlay {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 40%, transparent 60%, rgba(0, 0, 0, 0.6));
}

.post-content {
    color: white;
    max-width: 90%;
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.post-content h3 a {
    color: white;
    text-decoration: none;
    display: inline-block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    transition: text-shadow 0.25s ease, transform 0.2s ease;
    mix-blend-mode: difference;
    isolation: isolate;
}

.post-content h3 a:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.post-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0 6px;
    line-height: 1.3;
    white-space: normal;
}

.hot-flame-icon {
    font-size: 20px;
    color: #ff4d4d;
    margin-bottom: 6px;
    text-shadow: 0 0 8px rgba(255, 77, 77, 0.7);
    animation: flame-flicker 1.5s ease-in-out infinite alternate, flame-pulse 2s ease-in-out infinite;
    display: block;
}

.card-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: linear-gradient(135deg, #9f3110, #ff8d00);
    color: #ffffff;
    margin-top: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}

.post-card.hot .card-tag {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.85), rgba(220, 30, 0, 0.9));
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.4);
}

.post-card:hover .card-tag {
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.post-meta-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
}

.post-meta-icons i {
    font-size: 11px;
    margin-right: 4px;
}

@keyframes flame-flicker {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(255, 77, 77, 0.7);
    }

    50% {
        opacity: 0.92;
        text-shadow: 0 0 12px rgba(255, 50, 0, 0.9);
    }
}

@keyframes flame-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.tap-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0);
    animation: tap-ripple-effect 0.6s linear;
    pointer-events: none;
    z-index: 1;
}

@keyframes tap-ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@media (hover: none) {
    .post-card:hover, .trending-card:hover, .recipe-ingredients:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

@supports not (backdrop-filter: blur(1px)) {
    .modal, .menu-overlay, .search-bar {
        background: rgba(11, 26, 44, 0.92) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .post-card, .post-img, .post-placeholder, .post-content h3 a, .card-tag, .hot-flame-icon {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    .posts-grid .post-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 992px) {
    .posts-grid {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 18px 0 18px scrollbar-width: none;
    }

    .posts-grid::-webkit-scrollbar {
        display: none;
    }

    .post-card {
        flex: 0 0 calc(50% - 8px);
        min-width: calc(50% - 8px);
        height: 280px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .post-card {
        flex: 0 0 100%;
        min-width: 100%;
        height: 260px;
        border-radius: 12px;
    }

    .post-content h3 {
        font-size: 17px;
    }

    .hot-flame-icon {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .posts-grid {
        touch-action: pan-x;
    }
}

.modern-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.modern-card {
    position: relative;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    background: linear-gradient(135deg, #0e131f, #1a2533);
}

.card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 16px;
    z-index: 2;
}

.modern-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    transition: background 0.3s;
}

.modern-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgb(233 194 42 / 25%);
}

.modern-card:hover::after {
    background: linear-gradient(135deg, rgb(233 103 42 / 60%), rgba(0, 0, 0, 0.7));
}

.card-title {
    font-size: clamp(16px, 1.5vw, 22px);
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.card-desc {
    font-size: 14px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    color: rgba(255, 255, 255, 0.95);
}

.modern-card:hover .card-desc {
    opacity: 1;
}

@media (max-width: 768px) {
    .modern-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .modern-card {
        height: auto;
        padding-bottom: 100%;
    }

    .card-title {
        font-size: 14px;
    }

    .card-desc {
        display: none;
    }
}

.latest-news h2 {
    margin-bottom: 32px;
    font-size: 28px;
    position: relative;
    padding-bottom: 12px;
}

.latest-news h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.news-card:hover,.news-card.touch-hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px #af67005e;
}

.news-skeleton .news-img,.news-skeleton .news-placeholder {
    background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.news-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img,.news-card.touch-hover .news-img {
    transform: scale(1.03);
}

.news-placeholder {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 32px;
    background: var(--card-bg);
}

.news-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fresh-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #e9692a;
    margin-bottom: 6px;
}

.new-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.news-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: auto;
}

@media (prefers-reduced-motion: reduce) {
    .news-card {
        transition: none !important;
    }

    .news-img {
        transform: none !important;
    }

    .news-skeleton .news-img, .news-skeleton .news-placeholder {
        animation: none !important;
    }
}

@media (max-width: 768px) {
    .news-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 8px 0 16px;
        scrollbar-width: none;
    }

    .news-grid::-webkit-scrollbar {
        display: none;
    }

    .news-card {
        flex: 0 0 calc(50% - 8px);
        min-width: calc(50% - 8px);
    }
}

@media (max-width: 480px) {
    .news-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .news-content h3 {
        font-size: 16px;
    }
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #f7971e;
    background: var(--card-bg);
    color: #ff8e00;
    /* ← КЛЮЧЕВОЕ */
    font-size: 16px;
    /* ← КЛЮЧЕВОЕ */
}

.theme-toggle:hover {
    background: rgba(0, 168, 107, 0.1);
}

.trending-section h2 {
    margin-bottom: 32px;
    font-size: 32px;
    position: relative;
    padding-bottom: 12px;
}

.trending-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--hot-accent);
    border-radius: 2px;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.trending-card {
    position: relative;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2), 0 6px 16px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    cursor: pointer;
    will-change: transform, opacity;
    contain: layout style paint;
}

.trending-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.trending-card:hover {
    transform: translateY(0px) scale(1.01);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.4), 0 12px 28px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .trending-card {
        box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15), 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .trending-card:hover {
        box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3), 0 8px 18px rgba(0, 0, 0, 0.3);
    }
}

.trending-img,.trending-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s ease;
    opacity: 0;
}

.trending-img.loaded,.trending-placeholder.loaded {
    opacity: 1;
}

.trending-card:hover .trending-img,.trending-card:hover .trending-placeholder {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .trending-card {
        touch-action: pan-x;
    }
}

.trending-placeholder {
    background-color: #15100a;
}

.trending-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: linear-gradient(to top, rgba(30, 20, 10, 0.9), transparent 30%, transparent 70%, rgba(30, 20, 10, 0.9) );
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 2;
    transition: backdrop-filter 0.35s ease, background 0.35s ease;
    pointer-events: none;
}

.trending-card:hover .trending-overlay {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background: linear-gradient(to top, rgba(40, 30, 20, 0.7), transparent 40%, transparent 60%, rgba(40, 30, 20, 0.7) );
}

.trending-content {
    color: white;
    max-width: 90%;
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.trending-content h3 a {
    color: white;
    text-decoration: none;
    display: inline-block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    transition: text-shadow 0.25s ease, transform 0.2s ease;
    mix-blend-mode: difference;
    isolation: isolate;
}

.trending-content h3 a:hover {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    transform: translateY(-1px);
}

.trending-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0 6px;
    line-height: 1.3;
}

.trending-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(212, 175, 55, 0.9);
    /* золото */
    color: #000;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 3;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.trending-meta-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
}

.trending-meta-icons i {
    font-size: 11px;
    margin-right: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .trending-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .trending-img, .trending-placeholder {
        transform: none !important;
    }
}

@media (max-width: 992px) {
    .trending-grid {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 18px 0 18px scrollbar-width: none;
    }

    .trending-grid::-webkit-scrollbar {
        display: none;
    }

    .trending-card {
        flex: 0 0 calc(50% - 8px);
        min-width: calc(50% - 8px);
        height: 280px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .trending-card {
        flex: 0 0 100%;
        min-width: 100%;
        height: 260px;
        border-radius: 12px;
    }

    .trending-content h3 {
        font-size: 17px;
    }
}

.trending-accent-bar {
    background: linear-gradient(90deg, var(--trending-accent, #0a151a), transparent);
}

@keyframes pulse-icon {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.catsTable {
    width: 100%;
    border-collapse: collapse;
}

.catsTd {
    padding: 6px 0;
    line-height: 1.4;
}

.catNumData {
    display: none !important;
}

.catName {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    display: block;
    padding: 4px 0;
}

.catName:hover {
    color: var(--accent);
}

.subtopics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.subtopic {
    display: block;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.subtopic:hover {
    transform: translateY(-2px);
    background: rgb(0 137 255 / 10%);
}

.mini-banners {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 0 24px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.mini-banners::-webkit-scrollbar {
    display: none;
}

.mini-banner {
    white-space: nowrap;
    padding: 8px 16px;
    background: var(--card-bg);
    border-radius: 20px;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.mini-banner:hover {
    opacity: 1;
    background: var(--accent);
    color: #000;
}

.read-time {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-time::before {
    content: "⏱️";
}

.collapsible-text {
    position: relative;
    max-height: 60px;
    overflow: hidden;
}

.collapsible-text.expanded {
    max-height: none;
}

.read-more {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent);
    font-size: 14px;
    cursor: pointer;
}

.cta-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-box h4 {
    margin-bottom: 12px;
}

.cta-box a {
    color: var(--accent);
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 0.7;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.light footer {
    border-top-color: rgba(0,0,0,0.1);
}

@media (max-width: 500px) {
    .subtopics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-banner {
        height: 180px;
    }
}

div[id^="sData-"] {
    position: absolute;
    display: flex;
    top: 10px;
    color: #fff;
    background: #ffffff00;
    ; box-shadow: 0 0 5px #969696;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    font-size: 14px;
    border-radius: 6px;
    z-index: 1;
}

div[id^="sData-"] a {
    display: flex;
    padding: 2px 5px;
    text-decoration: none;
    color: #020203;
}

div[id^="sData-"] a:hover {
    background: #507fff33;
    color: #507fff;
}

div[id^="sData-"] .sTit {
    display: flex;
    color: #fff;
    padding: 10px;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 3000;
    padding-top: 72px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s;
}

.search-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    position: relative;
    width: 96%;
    max-width: 600px;
    background: #f8f8f800;
    border-radius: 16px;
    padding: 20px;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-modal-overlay.active .search-modal {
    transform: scale(1);
}

.search-modal-close {
    position: absolute;
    top: -11px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: rotate(90deg);
}

.search-modal-form {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.search-modal-input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bg);
    color: var(--text);
    font-size: 17px;
    font-weight: 500;
    outline: none;
}

.search-modal-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 255, 163, 0.2);
}

.light .search-modal-input {
    border-color: rgba(0, 0, 0, 0.1);
    background: white;
}

.search-modal-submit {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-modal-submit:hover {
    background: var(--accent-dark);
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 255, 163, 0.3);
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none !important;
}

.mobile-menu-trigger-wrapper {
    display: none;
}

.mobile-bottom-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 6px 0;
    z-index: 1000;
}

.mobile-menu-btn {
    width: 48px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s, background 0.2s;
}

.mobile-menu-btn:hover,.mobile-menu-btn.active {
    color: var(--accent);
    background: rgba(0, 168, 107, 0.1);
}

.mobile-menu-btn img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.notification-dot.mobile-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
}

@media (min-width: 769px) {
    .search-modal-close {
        top: -11px;
    }

    .search-modal-overlay {
        align-items: center;
        padding-top: 0;
    }

    .search-modal {
        padding: 28px;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-bottom-menu {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 56px;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-flex !important;
        position: fixed;
        bottom: 72px;
        right: 16px;
        width: 56px;
        height: 56px;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--accent), var(--accent-dark));
        color: white;
        text-decoration: none;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 999;
        font-size: 20px;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .mobile-only:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }
}

@media (max-width: 768px) {
    .mobile-menu-trigger-wrapper {
        display: block;
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 9000;
    }

    .mobile-menu-trigger {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--accent), var(--accent-dark));
        color: white;
        font-size: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        border: none;
    }
}

/* === Боковое меню === */
.menu-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.menu-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.guest-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
}

.theme-toggle-mobile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gus-section {
    margin-top: 8px;
}

.gus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    padding: 4px 0;
    cursor: pointer;
    text-align: left;
}

.gus-chevron {
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.gus-header[aria-expanded="true"] .gus-chevron {
    transform: rotate(180deg);
}

.gus-panel {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 0;
}

.gus-panel a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.2s;
}

.gus-panel a:hover {
    color: var(--accent);
}

.gus-panel.show {
    display: flex;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100dvh;
    background: var(--card-bg);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 9001;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.open {
    left: 0;
}

.mobile-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    /* Только здесь! */
    padding: 16px;
}

.mobile-sidebar-top {
    flex-shrink: 0;
    padding: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-sidebar-scrollable {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 16px;
}

.mobile-sidebar-scrollable::-webkit-scrollbar {
    display: none;
}

.mobile-sidebar-scrollable {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-sidebar .catsTable {
    width: 100%;
    border-collapse: collapse;
}

.mobile-sidebar .catsTd {
    padding: 4px 0;
}

.mobile-sidebar .catName {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    text-decoration: none;
    line-height: 1.4;
}

.mobile-sidebar .catName:hover {
    color: var(--accent);
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

::-webkit-scrollbar-button {
    background-image: url('');
    background-repeat: no-repeat;
    width: 5px;
    height: 0
}

::-webkit-scrollbar-track {
    background-color: #e8effa00
}

::-webkit-scrollbar-thumb {
    background-image: linear-gradient(125deg,#2196f3 0,#0a84ba 100%);
    border-radius: 18px
}

::-webkit-scrollbar-thumb:hover {
    background-image: linear-gradient(125deg,#0a84ba 0,#2196f3 100%);
}

::-webkit-resizer {
    background-repeat: no-repeat;
    width: 4px;
    height: 0
}

::-webkit-scrollbar {
    width: 5px
}

.sonnik-section {
    margin-bottom: 80px;
}

.section-header {
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
    padding: 32px 24px;
    background: linear-gradient(145deg, #0e131f, #161d2d);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    cursor: default;
}

.section-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(77, 160, 255, 0.15);
}

.section-icon {
    margin-bottom: 20px;
    display: inline-block;
}

.sonnik-icon {
    font-size: 64px;
    color: #4DA0FF;
    text-shadow: 0 0 12px rgba(77, 160, 255, 0.5);
    animation: moonGlow 5s ease-in-out infinite alternate;
    display: block;
    will-change: transform, opacity, text-shadow;
}

@keyframes moonGlow {
    0% {
        opacity: 0.88;
        transform: scale(1) rotate(0deg);
        text-shadow: 0 0 12px rgba(77, 160, 255, 0.5);
    }

    50% {
        opacity: 0.96;
        transform: scale(1.02) rotate(1deg);
        text-shadow: 0 0 18px rgba(77, 160, 255, 0.7);
    }

    100% {
        opacity: 1;
        transform: scale(1.03) rotate(2deg);
        text-shadow: 0 0 24px rgba(77, 160, 255, 0.9);
    }
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    color: #E6EEFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
    position: relative;
    transition: text-shadow 0.3s ease;
}

.section-header:hover h2 {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 16px rgba(77, 160, 255, 0.4);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4DA0FF, transparent);
    margin: 16px auto 0;
    border-radius: 2px;
    transition: opacity 0.3s ease;
}

.section-header:hover h2::after {
    opacity: 0.9;
}

.section-desc {
    font-size: 1.2rem;
    color: #A0B0D0;
    max-width: 680px;
    margin: 16px auto 0;
    line-height: 1.65;
    font-weight: 400;
    opacity: 0.92;
    transition: opacity 0.3s ease;
}

.section-header:hover .section-desc {
    opacity: 1;
}

@media (max-width: 600px) {
    .section-header {
        margin: 40px 16px 32px;
        padding: 24px 16px;
        border-radius: 16px;
    }

    .sonnik-icon {
        font-size: 52px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-desc {
        font-size: 1rem;
    }
}

.alphabet-nav-wrapper {
    overflow-x: auto;
    padding: 0 0 24px;
    margin-bottom: 24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.alphabet-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.alphabet-nav {
    display: flex;
    gap: 12px;
    padding: 11px;
    white-space: nowrap;
    justify-content: center;
    flex-wrap: wrap;
}

.alphabet-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--card-bg);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.alphabet-nav a:hover,.alphabet-nav a:focus,.alphabet-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, #e9562a, #b03d1a);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(42, 122, 233, 0.35);
    border-color: transparent;
    z-index: 2;
}

.alphabet-nav a {
    opacity: 0.92;
}

.alphabet-nav a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .alphabet-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: column;
        gap: 12px;
        width: max-content;
        padding: 0 var(--container-padding);
    }

    .alphabet-nav a {
        width: 44px;
        height: 44px;
        font-size: 16px;
        border-radius: 12px;
    }
}

.sonnik-categories-title {
    text-align: center;
    margin: 24px 0 20px;
    font-size: 1.25rem;
    color: var(--text);
}

.sonnik-categories-wrapper {
    overflow: hidden;
    padding: 0 0 32px;
    width: 100%;
}

.sonnik-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 11px;
}

.sonnik-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 16px 8px;
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 80px;
    white-space: nowrap;
    flex: 0 1 calc(33.333% - 12px);
    /* 3 в ряд */
    max-width: calc(33.333% - 12px);
}

.sonnik-category:hover {
    transform: translateY(-4px);
    color: var(--accent);
    box-shadow: 0 6px 16px rgba(42, 122, 233, 0.25);
}

.sonnik-category i {
    font-size: 24px;
    margin-bottom: 8px;
}

.sonnik-category span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

@media (min-width: 769px) {
    .sonnik-categories {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 16px;
    }

    .sonnik-category {
        flex: 0 0 auto;
        max-width: none;
        min-width: 100px;
    }
}

.sonnik-love {
    background: linear-gradient(135deg, #5f1a4d, #b03aa0);
    color: white;
}

.sonnik-love:hover {
    color: white;
    box-shadow: 0 6px 16px rgba(176, 58, 160, 0.35);
}

.sonnik-work {
    background: linear-gradient(135deg, #1a2f5f, #2a50b0);
    color: white;
}

.sonnik-work:hover {
    color: white;
    box-shadow: 0 6px 16px rgba(42, 80, 176, 0.35);
}

.sonnik-mystic {
    background: linear-gradient(135deg, #3a1a5f, #8b2ab0);
    color: white;
}

.sonnik-mystic:hover {
    color: white;
    box-shadow: 0 6px 16px rgba(139, 42, 176, 0.35);
}

.sonnik-emotions {
    background: linear-gradient(135deg, #5f3a1a, #d47b35);
    color: white;
}

.sonnik-emotions:hover {
    color: white;
    box-shadow: 0 6px 16px rgba(212, 123, 53, 0.35);
}

.sonnik-nature {
    background: linear-gradient(135deg, #1e5b3a, #2e8b57);
    color: white;
}

.sonnik-nature:hover {
    color: white;
    box-shadow: 0 6px 16px rgba(46, 139, 87, 0.35);
}

.sonnik-health {
    background: linear-gradient(135deg, #1a3a5f, #2a7ae9);
    color: white;
}

.sonnik-health:hover {
    color: white;
    box-shadow: 0 6px 16px rgba(42, 122, 233, 0.35);
}

.sonnik-category i {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s;
}

.sonnik-category:hover i {
    color: white;
}

.psychology-section {
    margin-bottom: 80px;
}

.psycho-hero {
    position: relative;
    padding: 48px 24px;
    background: linear-gradient(145deg, #0d1526, #141f3a);
    border-radius: 24px;
    margin: 70px 0 50px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(77, 160, 255, 0.12);
}

.psycho-hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(77, 160, 255, 0.15), transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: psychoGlowPulse 8s infinite alternate;
}

.psycho-hero-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.3) 90%);
    z-index: -1;
}

.psycho-hero-icon {
    font-size: 72px;
    color: #f7971e;
    margin-bottom: 24px;
    text-shadow: 0 0 16px rgb(255 77 77 / 60%);
    animation: psychoFloat 4s ease-in-out infinite;
}

@keyframes psychoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes psychoGlowPulse {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.psycho-hero h2 {
    font-size: 2.6rem;
    font-weight: 800;
    margin: 0;
    color: #E6EEFF;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.8px;
    position: relative;
    z-index: 2;
}

.psycho-hero-desc {
    font-size: 1.25rem;
    color: #A0B8E0;
    max-width: 680px;
    margin: 16px auto 0;
    line-height: 1.65;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.light .psycho-hero {
    background: linear-gradient(145deg, #f0f4ff, #e6eeff);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(77, 160, 255, 0.2);
}

.light .psycho-hero h2 {
    color: #1a2a45;
    text-shadow: none;
}

.light .psycho-hero-desc {
    color: #5A6A85;
}

.light .psycho-hero-icon {
    color: #e9722a;
    text-shadow: 0 0 12px rgb(233 42 42 / 38%);
}

.light .psycho-hero-glow {
    background: radial-gradient(circle, rgba(42, 122, 233, 0.08), transparent 70%);
}

@media (max-width: 600px) {
    .psycho-hero {
        margin: 50px 16px 40px;
        padding: 36px 16px;
        border-radius: 20px;
    }

    .psycho-hero-icon {
        font-size: 58px;
    }

    .psycho-hero h2 {
        font-size: 2.1rem;
    }

    .psycho-hero-desc {
        font-size: 1.05rem;
    }
}

.psycho-topics {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 32px 0;
}

.psycho-topic {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    min-width: 100px;
    flex: 0 1 calc(16.666% - 12px);
    max-width: calc(16.666% - 12px);
}

.psycho-topic:hover {
    transform: translateY(-4px);
    color: #ff7d00;
    box-shadow: 0 6px 16px rgba(77, 160, 255, 0.25);
}

.psycho-topic i {
    font-size: 22px;
    margin-bottom: 6px;
    color: #ff7100;
}

.psycho-topic span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.psycho-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.psycho-article {
    display: block;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: transform 0.3s, box-shadow 0.3s;
}

.psycho-article:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}

.psycho-article-img,.psycho-article-bg {
    height: 170px;
    position: relative;
}

.psycho-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.psycho-article:hover .psycho-article-img img {
    transform: scale(1.05);
}

.psycho-article-bg {
    background: linear-gradient(135deg, #0d1526, #141f3a);
}

.psycho-hot-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 77, 77, 0.9);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    z-index: 2;
}

.psycho-article-content {
    padding: 18px;
}

.psycho-article-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}

.psycho-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .psycho-topic {
        flex: 0 1 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
        padding: 12px 8px;
    }

    .psycho-articles {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 8px 0 16px;
        scrollbar-width: none;
    }

    .psycho-articles::-webkit-scrollbar {
        display: none;
    }

    .psycho-article {
        flex: 0 0 280px;
        min-width: 280px;
    }
}

@media (max-width: 500px) {
    .psycho-article {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .psycho-hero h2 {
        font-size: 2rem;
    }

    .psychology-desc {
        font-size: 1rem;
    }
}

.garden-section {
    margin-bottom: 80px;
}

.garden-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    margin: 60px 0 40px;
}

.garden-hero-icon {
    font-size: 48px;
    color: #4DA0FF;
    animation: gardenFloat 3s ease-in-out infinite;
}

@keyframes gardenFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.garden-hero-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--text);
}

.garden-hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .garden-hero {
        flex-direction: column;
        text-align: center;
        margin: 40px 16px 32px;
    }
}

.garden-topics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.garden-topic {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 18px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-height: 100px;
    position: relative;
}

.garden-topic:hover {
    transform: translateY(-4px);
    color: #4DA0FF;
    box-shadow: 0 6px 16px rgba(77, 160, 255, 0.25);
    background: rgba(77, 160, 255, 0.08);
}

.garden-topic i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #4DA0FF;
}

.garden-topic span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.garden-topic.hot .hot-flame {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 14px;
    animation: flamePulse 2s infinite alternate;
}

@keyframes flamePulse {
    0% {
        opacity: 0.85;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@media (max-width: 992px) {
    .garden-topics {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 14px;
        padding: 0 var(--container-padding) 20px;
        scrollbar-width: none;
    }

    .garden-topics::-webkit-scrollbar {
        display: none;
    }

    .garden-topic {
        flex: 0 0 calc(50% - 8px);
        min-width: calc(50% - 8px);
        padding: 16px 10px;
    }
}

@media (max-width: 576px) {
    .garden-topic {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 18px 12px;
    }
}

.garden-articles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.garden-article {
    display: block;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: transform 0.3s, box-shadow 0.3s;
}

.garden-article:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}

.garden-article-img,.garden-article-bg {
    height: 160px;
    position: relative;
}

.garden-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.garden-article:hover .garden-article-img img {
    transform: scale(1.05);
}

.garden-article-bg {
    background: linear-gradient(135deg, #0d1526, #141f3a);
}

.garden-hot-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 77, 77, 0.9);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    z-index: 2;
}

.garden-article-content {
    padding: 18px;
}

.garden-article-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}

.garden-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .garden-articles {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 8px 0 16px;
        scrollbar-width: none;
    }

    .garden-articles::-webkit-scrollbar {
        display: none;
    }

    .garden-article {
        flex: 0 0 280px;
        min-width: 280px;
    }
}

@media (max-width: 500px) {
    .garden-article {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .garden-article-img, .garden-article-bg {
        height: 180px;
    }
}
