/* ══════════════════════════════════════════════════════════════
   «Твой репетитор» — «Идеи и планы» (07.10.2026)
   Страница /idei/ и блок «Участвуйте в развитии» в конце главной. Идеи рисует
   site/assets/js/idei.js из публичного списка приложения; без него страница
   показывает обновления и честное «доска скоро откроется».
   Первый экран (.phero) и ключевые цифры (.phero__facts) — общие/из obnovleniya.css.
   ══════════════════════════════════════════════════════════════ */

/* Три цифры про идеи (число обновлений из шапки убрано — без акцента на нём, 07.10) */
@media (min-width: 761px) { .ideas-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(700px, 100%); } }

.ideas { position: relative; padding: 8px 0 clamp(70px, 8vw, 120px); }
.ideas [hidden], .ideas-cta [hidden] { display: none !important; }
.ideas__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 3vw, 36px); align-items: start; }
.ideas__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.ideas__h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.ideas__hint { margin: 10px 0 18px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }

.ideas-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(26, 26, 31, .05); }
.ideas-tabs button { height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.ideas-tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }

/* ─── Идея: компактная строка, подробности — по нажатию (<details>, работает и без JS) ─── */
.ideas-block { overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid rgba(26, 26, 31, .06); box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 14px 34px -22px rgba(26, 26, 31, .28); }
.ideas-list { list-style: none; display: grid; }
.idea { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: start; padding: 14px 18px; border-top: 1px solid rgba(26, 26, 31, .06); }
.idea:has(details[open]) { background: rgba(26, 26, 31, .02); }
.idea details { min-width: 0; }
.idea summary { list-style: none; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.idea summary::-webkit-details-marker { display: none; }
.idea__title { display: flex; align-items: flex-start; gap: 8px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; color: var(--ink); }
.idea__title::after { content: ''; flex: none; width: 8px; height: 8px; margin: 7px 2px 0 auto; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform .2s ease; }
.idea details[open] .idea__title::after { transform: rotate(-135deg); margin-top: 10px; }
.idea__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--text-muted); }
.idea__more { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(26, 26, 31, .06); display: grid; gap: 8px; }
.idea__more p { font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); white-space: pre-wrap; overflow-wrap: anywhere; }
.idea__note { padding: 9px 12px; border-radius: 12px; background: rgba(99, 102, 241, .08); color: var(--ink) !important; }
.idea__link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--tutor-t); }

.ideas-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.35; background: rgba(26, 26, 31, .05); color: var(--text-secondary); }
.ideas-tag--planned { background: rgba(99, 102, 241, .12); color: var(--student-t); }
.ideas-tag--in_progress { background: rgba(232, 115, 74, .12); color: var(--tutor-t); }
.ideas-tag--released { background: rgba(16, 185, 129, .12); color: var(--parent-t); }

/* Голос — «лайк»: сердечко с числом, ведёт на вход в веб-версию; после входа голос засчитывается сам */
.idea__vote { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(26, 26, 31, .1); background: #fff; color: var(--text-secondary); font-size: 14px; font-weight: 700; white-space: nowrap; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.idea__vote:hover { border-color: var(--tutor); color: var(--tutor-t); background: rgba(232, 115, 74, .08); }
.idea__vote:hover svg { fill: var(--tutor); stroke: var(--tutor); }
.idea__vote svg { width: 18px; height: 18px; transition: fill .2s ease; }
.idea__vote b { font-family: var(--font-mono); font-size: 14px; }

.ideas-skel { height: 64px; margin: 10px 18px; border-radius: 14px; background: linear-gradient(90deg, rgba(26, 26, 31, .04), rgba(26, 26, 31, .08), rgba(26, 26, 31, .04)); background-size: 200% 100%; animation: ideasShimmer 1.4s linear infinite; }
@keyframes ideasShimmer { to { background-position: -200% 0; } }
.ideas-more { display: block; width: 100%; height: 48px; border: 0; border-top: 1px solid rgba(26, 26, 31, .06); background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--tutor-t); cursor: pointer; }
.ideas-empty { padding: 18px 20px; border-top: 1px solid rgba(26, 26, 31, .06); font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.ideas-empty a { color: var(--tutor-t); font-weight: 600; }

/* «Предложить идею» — первая строка общего блока */
.ideas-propose { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: rgba(232, 115, 74, .08); color: var(--ink); }
.ideas-propose:hover { color: var(--ink); background: rgba(232, 115, 74, .13); }
.ideas-propose__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tutor); color: #fff; box-shadow: 0 10px 22px -10px rgba(232, 115, 74, .8); }
.ideas-propose__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ideas-propose__body b { font-size: 16px; font-weight: 700; color: var(--tutor-t); }
.ideas-propose__body span { font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.ideas-propose > svg { flex: none; color: var(--tutor-t); }

/* ─── Правая колонка ─── */
.ideas__rail { position: sticky; top: 96px; display: grid; gap: 14px; }
.ideas-box { padding: 18px 20px; border-radius: 22px; background: #fff; border: 1px solid rgba(26, 26, 31, .06); box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 10px 28px -20px rgba(26, 26, 31, .25); }
.ideas-box__h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.ideas-box__h a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--tutor-t); }
.ideas-stats { display: grid; gap: 10px; }
.ideas-stats p { font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.ideas-stats a { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--tutor-t); }

.ideas-done { list-style: none; display: grid; }
.ideas-done li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(26, 26, 31, .06); }
.ideas-done li:first-child { border-top: 0; padding-top: 0; }
.ideas-done i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(16, 185, 129, .12); color: var(--parent-t); font-style: normal; }
.ideas-done i svg { width: 16px; height: 16px; }
.ideas-done b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.ideas-done span { display: block; margin-top: 2px; font-size: 13px; color: var(--text-secondary); }

@media (max-width: 1020px) {
  .ideas__grid { grid-template-columns: 1fr; }
  .ideas__rail { position: static; }
}
@media (max-width: 560px) {
  .idea { grid-template-columns: 1fr; }
  .idea__vote { justify-self: start; }
}

/* ─── Главная: «Участвуйте в развитии» вместо чёрного блока ─── */
.ideas-cta { padding: 0 clamp(18px, 4vw, 40px) clamp(70px, 8vw, 120px); }
.ideas-cta__card { position: relative; isolation: isolate; overflow: hidden; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px); border-radius: 36px; background: radial-gradient(700px 380px at 0% 0%, rgba(232, 115, 74, .16), transparent 60%), radial-gradient(600px 360px at 100% 100%, rgba(99, 102, 241, .12), transparent 60%), #fff; border: 1px solid rgba(26, 26, 31, .06); box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 30px 60px -36px rgba(26, 26, 31, .35); }
.ideas-cta__card:not(:has([data-ideas-teaser]:not([hidden]))) { grid-template-columns: 1fr; text-align: center; }
.ideas-cta__card:not(:has([data-ideas-teaser]:not([hidden]))) .ideas-cta__ctas { justify-content: center; }
.ideas-cta h2 { margin-top: 14px; font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; text-wrap: balance; }
.ideas-cta__text > p:not(.eyebrow) { max-width: 560px; margin-top: 18px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: var(--text-secondary); }
.ideas-cta__card:not(:has([data-ideas-teaser]:not([hidden]))) .ideas-cta__text > p:not(.eyebrow) { margin-inline: auto; }
.ideas-cta__ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.ideas-cta__btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 24px; border-radius: 16px; background: var(--tutor); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 16px 30px -14px rgba(232, 115, 74, .9); transition: background .2s ease, transform .2s ease; }
.ideas-cta__btn:hover { color: #fff; background: #d4663f; transform: translateY(-1px); }
.ideas-cta__side { display: grid; gap: 10px; }
.ideas-cta__side-h { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.ideas-cta__list { list-style: none; display: grid; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid rgba(26, 26, 31, .06); box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 14px 34px -22px rgba(26, 26, 31, .28); }
.ideas-cta__list .idea:first-child { border-top: 0; }
.ideas-cta__list .idea { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.ideas-cta__list .idea__title::after { display: none; }
@media (max-width: 900px) { .ideas-cta__card { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .ideas-skel { animation: none; }
  .idea__title::after, .idea__vote, .ideas-cta__btn { transition: none; }
  .ideas-cta__btn:hover { transform: none; }
}
