/*
 * Дизайн острова: центр с двенадцатью темами и конструктор каркаса.
 * Конструктор — две колонки (2.txt §169): форма слева, каркас справа.
 * Цвет здесь работает смыслом: фиолетовый — метка раздела для creators,
 * зелёный — то, что входит в первую версию, красный — то, что из неё вырезано.
 */

.gd {
    padding: 4px 0 var(--section-gap);
}

/* Шапка раздела */

.gd__head {
    max-width: 74ch;
    margin-bottom: 28px;
}

.gd__badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    background: rgba(104, 80, 245, .12);
    color: var(--purple);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.gd__head h1 {
    margin-top: 14px;
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: var(--lh-tight);
    letter-spacing: -.02em;
}

.gd__lead {
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: var(--fs-body);
}

.gd__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.gd__note {
    max-width: 78ch;
    margin: -6px 0 18px;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

.gd__note em {
    font-style: normal;
    font-weight: 700;
    color: var(--text-primary);
}

/* Быстрые входы */

.gd__quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--gap-sm);
    list-style: none;
}

.gd__quick-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.gd__quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    color: var(--primary);
}

.gd__quick-title {
    font-size: var(--fs-h3);
    font-weight: 700;
    letter-spacing: -.01em;
}

.gd__quick-text {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
}

/* Двенадцать тем */

.gd__topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap-sm);
    list-style: none;
}

.gd__topic {
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.gd__topic-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    color: var(--primary);
    font-size: var(--fs-xs);
    font-weight: 800;
}

.gd__topic-title {
    font-size: var(--fs-h3);
    font-weight: 700;
    letter-spacing: -.01em;
}

.gd__topic-text {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
}

.gd__topic-question {
    margin-top: auto;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    color: var(--text-primary);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: var(--lh-body);
}

.gd__topic-label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Восемь устройств острова */

.gd__genres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap-sm);
    list-style: none;
}

.gd__genre {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gd__genre-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.gd__genre-title {
    font-size: var(--fs-h3);
    font-weight: 700;
    letter-spacing: -.01em;
}

.gd__genre-template {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-weight: 600;
    white-space: nowrap;
}

.gd__genre-text {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
}

.gd__genre-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: auto;
    padding-top: 4px;
}

.gd__genre-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.gd__genre-link:hover {
    color: var(--primary-600);
}

.gd__genre-link--muted {
    color: var(--text-secondary);
    font-weight: 600;
}

.gd__genre-link--muted:hover {
    color: var(--primary);
}

/* Честный блок и соседние разделы */

.gd__honest-card {
    display: grid;
    gap: 14px;
    max-width: 92ch;
}

.gd__honest-card p {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
}

.gd__honest-card strong {
    color: var(--text-primary);
}

.gd__next {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap-sm);
    list-style: none;
}

.gd__next-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.gd__next-title {
    font-size: var(--fs-h3);
    font-weight: 700;
    letter-spacing: -.01em;
}

.gd__next-text {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
}

/* ── Конструктор каркаса ─────────────────────────────────────────────── */

.idea {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: start;
    gap: var(--gap);
}

.idea__form {
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

.idea__form-card {
    display: grid;
    gap: 16px;
}

.idea__form-title {
    font-size: var(--fs-h3);
    font-weight: 700;
    letter-spacing: -.01em;
}

.idea__field {
    display: grid;
    gap: 6px;
}

.idea__label {
    font-size: var(--fs-sm);
    font-weight: 700;
}

.idea__select {
    position: relative;
    display: block;
}

.idea__select select {
    appearance: none;
    width: 100%;
    height: 42px;
    padding: 0 36px 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition);
}

.idea__select select:hover,
.idea__select select:focus-visible {
    border-color: var(--primary);
}

.idea__select-chevron {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.idea__hint {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.45;
}

.idea__submit {
    width: 100%;
    justify-content: center;
}

.idea__form-note {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.5;
}

/* Правая колонка: собранный каркас */

.idea__result {
    display: grid;
    gap: 28px;
}

.idea__preview {
    padding: 12px 16px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
}

.idea__summary {
    display: grid;
    gap: 10px;
}

.idea__summary-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.idea__genre {
    font-size: var(--fs-h2);
    font-weight: 800;
    letter-spacing: -.02em;
}

.idea__template {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: rgba(104, 80, 245, .12);
    color: var(--purple);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.idea__summary-text {
    color: var(--text-secondary);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
}

.idea__catalog {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.idea__catalog:hover {
    color: var(--primary-600);
}

/* Переход из каркаса в документ острова */

.idea__handoff {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.idea__handoff-note {
    flex: 1 1 220px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: var(--lh-body);
}

.idea__block {
    display: grid;
    gap: 14px;
}

.idea__block-title {
    font-size: var(--fs-h3);
    font-weight: 700;
    letter-spacing: -.01em;
}

/* Цикл */

.idea__loop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap-sm);
    list-style: none;
}

.idea__step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.idea__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    color: var(--primary);
    font-size: var(--fs-xs);
    font-weight: 800;
}

.idea__step-title {
    margin-bottom: 4px;
    font-size: var(--fs-body);
    font-weight: 700;
}

.idea__step-text {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
}

/* Цели */

.idea__goals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.idea__goal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.idea__goal-icon {
    color: var(--success);
}

/* Строки прогрессии */

.idea__lines {
    display: grid;
    gap: 12px;
    list-style: none;
}

.idea__line {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
}

/* Первая версия */

.idea__mvp {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap-sm);
}

.idea__mvp-col {
    display: grid;
    gap: 12px;
    align-content: start;
}

.idea__mvp-title {
    font-size: var(--fs-body);
    font-weight: 700;
}

.idea__mvp-list {
    display: grid;
    gap: 10px;
    list-style: none;
}

.idea__mvp-list li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
}

.idea__mvp-icon {
    margin-top: 3px;
}

.idea__mvp-icon--in {
    color: var(--success);
}

.idea__mvp-icon--out {
    color: var(--danger);
}

/* План контента */

.idea__plan {
    display: grid;
    gap: 12px;
    list-style: none;
    counter-reset: wave;
}

.idea__wave {
    display: grid;
    gap: 5px;
}

.idea__wave-title {
    font-size: var(--fs-body);
    font-weight: 700;
}

.idea__wave-text {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
}

/* Риски */

.idea__risks {
    display: grid;
    gap: 10px;
    list-style: none;
}

.idea__risk {
    position: relative;
    padding: 12px 16px 12px 18px;
    border-left: 3px solid var(--warning);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: rgba(247, 170, 70, .09);
    color: var(--text-primary);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
}

/* Вопросы, на которые каркас не отвечает */

.idea__questions {
    display: grid;
    gap: 12px;
}

.idea__questions-lead {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
}

.idea__questions-list {
    display: grid;
    gap: 10px;
    padding-left: 20px;
}

.idea__questions-list li {
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: var(--lh-body);
}

/* Расшифровка ответов */

.idea__notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap-sm);
    list-style: none;
}

.idea__note {
    display: grid;
    gap: 6px;
    align-content: start;
}

.idea__note-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.idea__note-label {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.idea__note-value {
    font-size: var(--fs-sm);
    font-weight: 700;
}

.idea__note-text {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
}

.idea__outro {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

.idea__outro a {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .idea {
        grid-template-columns: minmax(0, 1fr);
    }

    .idea__form {
        position: static;
    }
}

@media (max-width: 768px) {
    .gd__head {
        margin-bottom: 22px;
    }

    .idea__result {
        gap: 24px;
    }

    .idea__goals {
        flex-direction: column;
        align-items: stretch;
    }

    .idea__goal {
        justify-content: flex-start;
    }
}
