.main-container {
    grid-template-columns: 200px 1fr;
    grid-template-areas:
        "left main"
        "left right";
}

.neuroset-similar {
    display: none;
}

.main-catalog-container {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line-color);
    min-width: 310px;
}

h1 {
    color: white;
    font-size: calc(1.75rem + 0.5vw);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
    text-align: center;
}

h1 > span {
    font-size: calc(1.5rem + 0.1vw);
    font-weight: 400;
}

.prompt-catalog-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.tool-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    overflow: hidden;
    gap: 10px;
    padding-left: 3%;
    padding-right: 3%;
    margin-bottom: 40px;
}

.ai-tool {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 150px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ai-tool:hover {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(100, 255, 218, 0.3);
    box-shadow: 0 8px 32px 0 rgba(100, 255, 218, 0.1);
}

.ai-tool img {
    width: 25px;
    aspect-ratio: 1/1;
}

.ai-tool span {
    font-size: 1.125rem;
    margin-left: 8px;
}

.popular-prompt-container {

}

.popular-prompt-container h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    text-align: center;
}

.prompts-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.favorite-btn {
    background: none;
    border: none;
    color: #8885b0;
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 5px;
    border-radius: 50%;
}

.favorite-btn:hover {
    color: #ff6b6b;
}

.favorite-btn.active {
    color: #ff6b6b;
}

.categories-section {
    margin: 40px 0;
}

.categories-section h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.categories-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 3px;
    background: linear-gradient(90deg, #6e45e2, #88d3ce);
    border-radius: 3px;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.category-card {
    display: flex;
    align-items: center;
    background-color: #1a183a;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(106, 69, 226, 0.25);
    border-color: rgba(106, 69, 226, 0.3);
}

.category-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6e45e2, #88d3ce);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.category-icon.gradient-1 {
    background: linear-gradient(135deg, #6e45e2, #88d3ce);
}
.category-icon.gradient-2 {
    background: linear-gradient(135deg, #3494e6, #ec6ead);
}
.category-icon.gradient-3 {
    background: linear-gradient(135deg, #5f4d93, #47cdda);
}
.category-icon.gradient-4 {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
}

.category-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.category-icon-placeholder {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.category-info {
    flex-grow: 1;
}

.category-name {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.category-description {
    margin: 0;
    font-size: 0.85rem;
    color: #8885b0;
    line-height: 1.4;
}

.library-intro {
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: center;
}

.library-intro h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-text {
    color: #c5c2e8;
    font-size: 1.125rem;
    max-width: 800px;
    margin-top: 15px;
    line-height: 1.6;
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 50px;
    align-items: stretch;
}

.benefit-card {
    --benefit-accent: #6e45e2;
    --benefit-accent-soft: rgba(110, 69, 226, 0.16);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
    min-height: 100%;
    padding: 24px;
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(27, 24, 58, 0.94), rgba(14, 13, 34, 0.96)),
        radial-gradient(circle at top right, var(--benefit-accent-soft), transparent 42%);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 34px rgba(4, 7, 17, 0.2);
}

.benefit-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--benefit-accent), rgba(255, 255, 255, 0));
}

.benefit-card::after {
    content: "";
    position: absolute;
    top: -58px;
    right: -58px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--benefit-accent-soft), transparent 68%);
    pointer-events: none;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px rgba(4, 7, 17, 0.28);
    border-color: rgba(255, 255, 255, 0.16);
}

.benefit-card.gradient-1 {
    --benefit-accent: #7d7cff;
    --benefit-accent-soft: rgba(125, 124, 255, 0.2);
}

.benefit-card.gradient-2 {
    --benefit-accent: #5bc0ff;
    --benefit-accent-soft: rgba(91, 192, 255, 0.18);
}

.benefit-card.gradient-3 {
    --benefit-accent: #33d2b0;
    --benefit-accent-soft: rgba(51, 210, 176, 0.18);
}

.benefit-card.gradient-4 {
    --benefit-accent: #ff9a62;
    --benefit-accent-soft: rgba(255, 154, 98, 0.18);
}

.benefit-card__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.benefit-card__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--benefit-accent);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.benefit-icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: linear-gradient(135deg, var(--benefit-accent-soft), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1.625rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.benefit-card__kicker {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--benefit-accent);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.benefit-card h3 {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.3;
}

.benefit-card p {
    position: relative;
    z-index: 1;
    color: #c5c2e8;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}

.benefit-points {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: auto 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.benefit-points li {
    position: relative;
    padding-left: 20px;
    color: #dddbf6;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.benefit-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--benefit-accent);
    box-shadow: 0 0 0 4px var(--benefit-accent-soft);
}

.prompt-features {
    width: 100%;
}

.prompt-features h3 {
    color: white;
    font-size: 1.5rem;
    margin-top: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.feature-item {
    background: rgba(30, 28, 40, 0.7);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-color: rgba(100, 255, 218, 0.2);
}

.feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6e45e2, #88d3ce);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
}

.feature-item h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.feature-item p {
    color: #c5c2e8;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.prompts-faq-section {
    width: 100%;
    margin-top: 56px;
}

.prompts-faq-card {
    width: 100%;
    padding: 30px;
    border-radius: 24px;
    text-align: left;
    background:
        linear-gradient(180deg, rgba(20, 18, 46, 0.96), rgba(11, 11, 28, 0.98)),
        radial-gradient(circle at top right, rgba(110, 69, 226, 0.18), transparent 42%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 42px rgba(4, 7, 17, 0.22);
}

.prompts-faq-head {
    max-width: 760px;
    margin-bottom: 22px;
}

.prompts-faq-head h3 {
    margin: 0 0 10px;
    color: white;
    font-size: 1.5rem;
}

.prompts-faq-lead {
    margin: 0;
    color: #c5c2e8;
    line-height: 1.65;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(188, 140, 255, 0.32);
    transform: translateY(-2px);
}

.faq-item[open] {
    border-color: rgba(110, 69, 226, 0.5);
    box-shadow: 0 16px 26px rgba(110, 69, 226, 0.12);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    list-style: none;
    transition: background-color 0.3s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: #9b79ff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.faq-icon::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.faq-item[open] .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0 20px 20px;
}

.faq-answer p {
    margin: 0;
    color: #c5c2e8;
    font-size: 0.9375rem;
    line-height: 1.7;
}

html[data-theme="light"] .benefit-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.95)),
        radial-gradient(circle at top right, var(--benefit-accent-soft), transparent 42%);
    border-color: var(--border-soft);
    box-shadow: 0 18px 34px var(--shadow-color);
}

html[data-theme="light"] .benefit-card:hover {
    border-color: rgba(114, 88, 239, 0.22);
    box-shadow: 0 24px 44px var(--shadow-color-strong);
}

html[data-theme="light"] .benefit-card__index {
    background: rgba(114, 88, 239, 0.06);
    border-color: rgba(114, 88, 239, 0.12);
}

html[data-theme="light"] .benefit-icon {
    color: var(--text-primary);
    border-color: rgba(114, 88, 239, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] .benefit-card p,
html[data-theme="light"] .benefit-points li,
html[data-theme="light"] .prompts-faq-lead,
html[data-theme="light"] .faq-answer p {
    color: var(--text-secondary);
}

html[data-theme="light"] .prompts-faq-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 245, 251, 0.95)),
        radial-gradient(circle at top right, rgba(114, 88, 239, 0.1), transparent 42%);
    border-color: var(--border-soft);
    box-shadow: 0 20px 40px var(--shadow-color);
}

html[data-theme="light"] .faq-item {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--border-soft);
}

html[data-theme="light"] .faq-item[open] {
    border-color: rgba(114, 88, 239, 0.26);
    box-shadow: 0 14px 26px rgba(114, 88, 239, 0.08);
}

html[data-theme="light"] .faq-question {
    color: var(--text-primary);
}

html[data-theme="light"] .faq-question:hover {
    background: rgba(114, 88, 239, 0.05);
}

html[data-theme="light"] .faq-icon::before,
html[data-theme="light"] .faq-icon::after {
    background: var(--fiolet);
}

@media (max-width: 768px) {
    .library-intro {
        padding: 30px 15px;
    }
    .intro-text {
        font-size: 1rem;
        padding: 0 10px;
    }
    .prompt-features h3 {
        font-size: 1.25rem;
    }
    .prompts-faq-card {
        padding: 24px 18px;
    }
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "left"
            "right";
    }
    .prompts-wrapper {
        gap: 15px;
        padding: 15px;
    }
    .head-container h1 {
        font-size: calc(1.5rem + 0.5vw);
    }
    .head-container span {
        font-size: calc(1.25rem + 0.5vw);
    }
    .categories-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
        padding: 0 10px;
    }

    .category-card {
        padding: 15px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
    }

    .category-icon img {
        width: 28px;
        height: 28px;
    }
    .benefits-container,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .prompts-wrapper {
        gap: 15px;
        padding: 10px;
    }
    .ai-tool span {
        font-size: 1rem;
        margin-left: 5px;
    }
    .ai-tool {
        padding: 10px 12px;
        min-width: 120px;
    }
    .ai-tool img {
        width: 20px;
    }
    .categories-container {
        grid-template-columns: 1fr;
    }

    .categories-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    .benefit-card {
        padding: 20px 18px;
    }
    .benefit-card__header {
        align-items: flex-start;
    }
    .benefit-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }
    .faq-question {
        padding: 16px 16px;
        font-size: 0.95rem;
    }
    .faq-answer {
        padding: 0 16px 18px;
    }
}
