.fg-home-guide {
    --guide-text: #17213a;
    --guide-muted: #46526a;
    --guide-accent: #5545cd;
    --guide-line: #e0e5f0;
    box-sizing: border-box;
    max-width: 1180px;
    margin: clamp(32px, 5vw, 64px) auto 36px;
    padding: clamp(14px, 3vw, 32px);
    border: 1px solid var(--guide-line);
    border-radius: 24px;
    background: #f4f7fb;
    color: var(--guide-text);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    text-align: start;
}

.fg-home-guide h2,
.fg-home-guide h3,
.fg-home-guide h4,
.fg-home-guide p {
    margin: 0;
}

.fg-home-guide h2,
.fg-home-guide h3,
.fg-home-guide h4 {
    line-height: 1.22;
}

.fg-home-guide p {
    color: var(--guide-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.fg-home-guide-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 18px 28px;
    padding: clamp(18px, 4vw, 36px);
    border: 1px solid #e6e0ff;
    border-radius: 18px;
    background: #eeebff;
}

.fg-home-guide-intro h2 {
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    letter-spacing: -.035em;
}

.fg-home-guide-intro p {
    max-width: 61ch;
    margin-top: 8px;
}

.fg-home-guide .fg-home-guide-browse {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    color: #fff;
    background: var(--guide-accent);
    font-size: .92rem;
    font-weight: 700;
}

.fg-home-guide .fg-home-guide-browse:hover {
    background: #4535b4;
    color: #fff;
}

.fg-home-guide-genres {
    margin-top: clamp(24px, 4vw, 38px);
}

.fg-home-guide h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    letter-spacing: -.018em;
}

.fg-home-guide-genres > p {
    max-width: 70ch;
    margin-top: 6px;
}

.fg-home-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.fg-home-guide .fg-home-guide-card {
    box-sizing: border-box;
    display: block;
    height: 100%;
    padding: 16px;
    border: 1px solid var(--guide-line);
    border-radius: 12px;
    color: var(--guide-text);
    background: #fff;
    transition: border-color .16s ease, background-color .16s ease;
}

.fg-home-guide .fg-home-guide-card:hover {
    color: var(--guide-text);
    border-color: #bdb0f9;
    background: #fbfaff;
}

.fg-home-guide-card h4 {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.02rem;
    color: var(--guide-accent);
}

.fg-home-guide-card h4 i {
    font-size: .75rem;
}

.fg-home-guide-card p {
    margin-top: 7px;
    font-size: .9rem;
    line-height: 1.55;
}

.fg-home-guide-help {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.fg-home-guide-panel {
    padding: clamp(16px, 2.4vw, 25px);
    border: 1px solid var(--guide-line);
    border-radius: 14px;
    background: #fff;
}

.fg-home-guide-step {
    margin-top: 14px;
}

.fg-home-guide-step h4 {
    margin-bottom: 3px;
    font-size: 1rem;
}

.fg-home-guide-panel p {
    font-size: .94rem;
}

.fg-home-guide-panel details {
    border-bottom: 1px solid var(--guide-line);
    padding: 10px 0;
}

.fg-home-guide-panel details:first-of-type {
    margin-top: 7px;
}

.fg-home-guide-panel details:last-child {
    border-bottom: 0;
}

.fg-home-guide-panel summary {
    color: var(--guide-text);
    cursor: pointer;
    font-size: .94rem;
    font-weight: 650;
    line-height: 1.45;
}

.fg-home-guide-panel summary::marker {
    color: var(--guide-accent);
}

.fg-home-guide-panel details p {
    margin-top: 6px;
}

.fg-home-guide :is(a, summary):focus-visible {
    outline: 2px solid var(--guide-accent);
    outline-offset: 3px;
}

@media (max-width: 960px) {
    .fg-home-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .fg-home-guide {
        border-radius: 18px;
    }

    .fg-home-guide-grid,
    .fg-home-guide-help {
        grid-template-columns: 1fr;
    }
}
