/* Страница конкурса /konkurs/ (27.09.2026). Поверх nflix-stories-vn.css + books/books.css (каркас портала).
   Тёмная тема — по умолчанию, светлая — body.light-theme. Ширины — без горизонтального скролла на 360 px. */
.kk-page { padding-bottom: 60px; }
.kk-muted { color: rgba(255,255,255,.62); font-size: 13px; }
body.light-theme .kk-muted { color: #6b6b76; }

/* герой */
.kk-hero { position: relative; margin: 14px 0 22px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 140% at 85% 0%, rgba(233,30,140,.55) 0%, rgba(233,30,140,0) 55%),
              radial-gradient(120% 120% at 0% 100%, rgba(124,58,237,.55) 0%, rgba(124,58,237,0) 60%), #17121f; }
.kk-hero-in { padding: 34px 32px 30px; max-width: 760px; color: #fff; }
.kk-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }
.kk-title { font-size: 40px; line-height: 1.1; font-weight: 800; margin: 14px 0 10px; color: #fff; }
.kk-tagline { font-size: 18px; line-height: 1.45; margin: 0 0 22px; color: rgba(255,255,255,.9); max-width: 620px; }
.kk-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.kk-facts > div { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 14px; }
.kk-facts b { display: block; font-size: 18px; color: #fff; white-space: nowrap; }
.kk-facts span { font-size: 12px; color: rgba(255,255,255,.7); }
.kk-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.kk-hero .vn-btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
/* светлая тема: books.css красит .vn-btn-ghost в тёмный (body.light-theme .bk-page .vn-btn-ghost) — в тёмной шапке конкурса он становится невидимым */
body.light-theme .bk-page .kk-hero .vn-btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
body.light-theme .bk-page .kk-hero .vn-btn-ghost:hover { background: rgba(255,255,255,.18); }
body.light-theme .kk-hero .vn-hero-title, body.light-theme .kk-hero p, body.light-theme .kk-hero h1 { color: #fff; }

/* секции */
.kk-sec { margin: 34px 0; }
.kk-h2 { font-size: 26px; font-weight: 800; margin: 0 0 14px; }
.kk-h2 small { font-size: 15px; font-weight: 600; }
.kk-lead { font-size: 16px; line-height: 1.55; max-width: 820px; margin: 0 0 14px; }
.kk-steps { counter-reset: kk; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kk-steps li { counter-increment: kk; position: relative; padding: 46px 16px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); line-height: 1.5; font-size: 15px; }
.kk-steps li::before { content: counter(kk); position: absolute; top: 12px; left: 16px; width: 26px; height: 26px; border-radius: 50%; background: #e91e8c; color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.kk-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kk-card { padding: 18px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); line-height: 1.5; }
.kk-card h3 { margin: 0 0 8px; font-size: 18px; }
.kk-card p { margin: 0; }
.kk-card ul { margin: 0; padding-left: 18px; }
.kk-card li { margin: 0 0 6px; }
.kk-card-ico { font-size: 28px; margin-bottom: 6px; }
.kk-card-main { border-color: rgba(233,30,140,.55); background: rgba(233,30,140,.08); }
body.light-theme .kk-steps li, body.light-theme .kk-card, body.light-theme .kk-prize, body.light-theme .kk-juror, body.light-theme .kk-faq details, body.light-theme .kk-work, body.light-theme .kk-award { background: #fff; border-color: #e6e6ec; color: #1a1a1a; }
body.light-theme .kk-card-main { background: #fff3f9; border-color: #f4a6cf; }

/* призы */
.kk-prizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }   /* 29.09: 5 призов — главный на всю ширину + 2×2 */
.kk-prize { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.kk-prize-top { grid-column: span 2; background: linear-gradient(135deg, rgba(233,30,140,.28), rgba(124,58,237,.25)); border-color: rgba(233,30,140,.6); }
body.light-theme .kk-prize-top { background: linear-gradient(135deg, #ffe3f1, #efe6ff); border-color: #f4a6cf; }
.kk-prize-sum { font-size: 26px; font-weight: 800; color: #ff7cc4; white-space: nowrap; }
body.light-theme .kk-prize-sum { color: #c2127a; }
.kk-prize-sum small { font-size: 15px; font-weight: 700; }
.kk-prize-t { font-weight: 700; margin: 4px 0 2px; }
.kk-prize-t small { font-weight: 500; opacity: .75; }
.kk-bonus { display: grid; gap: 10px; margin-top: 14px; line-height: 1.5; }
.kk-bonus > div { padding: 14px 16px; border-radius: 12px; background: rgba(124,58,237,.12); border: 1px solid rgba(124,58,237,.35); }
body.light-theme .kk-bonus > div { background: #f5f0ff; border-color: #d8c8fb; }

/* сроки */
.kk-timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid rgba(233,30,140,.5); }
.kk-timeline li { position: relative; padding: 0 0 16px 20px; display: flex; gap: 14px; flex-wrap: wrap; line-height: 1.45; }
.kk-timeline li::before { content: ''; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #17121f; border: 2px solid #e91e8c; }
.kk-timeline li.done::before { background: #e91e8c; }
body.light-theme .kk-timeline li::before { background: #fff; }
body.light-theme .kk-timeline li.done::before { background: #e91e8c; }
.kk-tl-d { font-weight: 800; min-width: 110px; }
.kk-timeline li.done { opacity: .6; }

/* жюри */
.kk-jury { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.kk-juror { display: flex; gap: 14px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); line-height: 1.5; }
.kk-juror img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.kk-juror p { margin: 6px 0 0; font-size: 14px; }

/* 29.09: как определяются победители и рейтинг (вместо блока жюри) */
.kk-how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kk-how > div { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); line-height: 1.5; font-size: 15px; }
.kk-how b { display: block; margin-bottom: 4px; }
.kk-rank { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kk-rank-g { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.kk-rank-g h3 { margin: 0 0 8px; font-size: 16px; }
.kk-rank ol { list-style: none; margin: 0 0 6px; padding: 0; }
.kk-rank li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.08); line-height: 1.4; }
.kk-rank li:first-child { border-top: 0; }
.kk-rank-n { flex: 0 0 22px; font-weight: 800; color: #ff7cc4; }
.kk-rank a { color: inherit; text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
.kk-rank a:hover { text-decoration: underline; }
body.light-theme .kk-how > div, body.light-theme .kk-rank-g { background: #fff; border-color: #e6e6ec; color: #1a1a1a; }
body.light-theme .kk-rank li { border-top-color: #ececf2; }
body.light-theme .kk-rank-n { color: #c2127a; }
/* 06.10.2026: в рейтинге сразу 10 мест группы, остальные — под «Показать все места» */
.kk-rank-more { margin: 0 0 6px; }
.kk-rank-more summary { cursor: pointer; list-style: none; padding: 6px 0; font-size: 14px; font-weight: 700; color: #ff7cc4; }
.kk-rank-more summary::-webkit-details-marker { display: none; }
.kk-rank-more summary::after { content: ' ↓'; }
.kk-rank-more[open] summary::after { content: ' ↑'; }
body.light-theme .kk-rank-more summary { color: #c2127a; }

/* работы */
.kk-works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kk-work { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); text-decoration: none; color: inherit; }
.kk-work-cover { flex: 0 0 72px; height: 108px; border-radius: 8px; overflow: hidden; background: #2a2433; display: flex; align-items: center; justify-content: center; font-size: 11px; text-align: center; padding: 4px; }
.kk-work-cover img { width: 100%; height: 100%; object-fit: cover; }
.kk-work-b { min-width: 0; flex: 1; }
.kk-work-t { font-weight: 700; margin-bottom: 2px; overflow-wrap: anywhere; }
.kk-prog { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); margin: 10px 0 6px; overflow: hidden; }
.kk-prog div { height: 100%; background: #e91e8c; border-radius: 3px; }
body.light-theme .kk-prog { background: #ececf2; }

/* итоги */
.kk-awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kk-award { display: flex; gap: 14px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(233,30,140,.4); text-decoration: none; color: inherit; }
.kk-award img { width: 84px; height: 126px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.kk-award-p { font-size: 13px; font-weight: 700; color: #ff7cc4; }
body.light-theme .kk-award-p { color: #c2127a; }
.kk-award-t { font-weight: 800; font-size: 17px; margin: 2px 0; }
.kk-note { font-size: 14px; line-height: 1.5; margin: 8px 0 0; }

/* правила и FAQ */
.kk-rules { margin: 0 0 14px; padding-left: 20px; line-height: 1.6; max-width: 880px; }
.kk-rules li { margin-bottom: 6px; }
.kk-faq { display: grid; gap: 8px; max-width: 880px; }
.kk-faq details { border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); padding: 0 16px; }
.kk-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; }
.kk-faq summary::-webkit-details-marker { display: none; }
.kk-faq summary::after { content: '+'; float: right; font-weight: 800; color: #e91e8c; }
.kk-faq details[open] summary::after { content: '−'; }
.kk-faq p { margin: 0 0 14px; line-height: 1.55; }
.kk-final { text-align: center; padding: 30px 16px; border-radius: 18px; background: rgba(233,30,140,.08); border: 1px solid rgba(233,30,140,.3); }
body.light-theme .kk-final { background: #fff3f9; border-color: #f4a6cf; }

/* документы (положение, согласие, лицензия) */
.kk-doc { max-width: 860px; margin: 18px auto 40px; line-height: 1.6; font-size: 15px; }
.kk-doc h1 { font-size: 26px; margin: 0 0 6px; }
.kk-doc h2 { font-size: 19px; margin: 26px 0 8px; }
.kk-doc p, .kk-doc li { margin: 0 0 8px; }
.kk-doc .kk-ver { font-size: 13px; opacity: .7; margin-bottom: 18px; }

@media (max-width: 760px) {
  .kk-hero-in { padding: 22px 16px 20px; }
  .kk-title { font-size: 28px; }
  .kk-tagline { font-size: 16px; }
  .kk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kk-facts b { font-size: 16px; }
  .kk-steps, .kk-grid2, .kk-prizes, .kk-jury, .kk-works, .kk-awards, .kk-how, .kk-rank { grid-template-columns: minmax(0, 1fr); }
  .kk-prize-top { grid-column: auto; }
  .kk-h2 { font-size: 22px; }
  .kk-cta .vn-btn { flex: 1 1 auto; }
  .kk-timeline li { flex-direction: column; gap: 2px; }   /* дата всегда над подписью — ровно при любой длине */
  .kk-tl-d { min-width: 0; }
}
