/* Пакет самостоятельной подготовки (/self/). Поверх style.css: свой первый экран с панелью подготовки,
   бенто «что внутри», линия времени, сравнение карточками, финальный блок с формой.
   Бренд Codemania: фон #0C0E22, плашки #1D2031, оранжевый #FF8562, лайм только на кнопках. */

.self { background: var(--bg); }
.s-kick { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.s-kick::before { content: ""; width: 32px; height: 2px; border-radius: 2px; background: var(--accent); }
.s-accent { color: var(--accent); }
.s-h1 { margin-top: 22px; font-size: clamp(48px, 6.6vw, 96px); line-height: .95; font-weight: 800; letter-spacing: -.02em; }
.s-h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -.015em; max-width: 18ch; }
.s-lead { margin-top: 22px; max-width: 54ch; color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.s-lead b { color: var(--text); }
.s-top { display: grid; gap: 16px; margin-bottom: clamp(36px, 4vw, 56px); }
.s-sec { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.s-sec--deep { background: #0a0c1d; border-block: 1px solid var(--line); }

/* свечения */
.s-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.s-glow--a { width: 620px; height: 620px; right: -140px; top: -120px; background: rgba(255, 133, 98, .18); }
.s-glow--b { width: 520px; height: 520px; left: -220px; bottom: -260px; background: rgba(72, 72, 124, .45); }
.s-glow--c { width: 520px; height: 520px; right: -160px; bottom: -220px; background: rgba(255, 133, 98, .16); }

/* первый экран */
.s-hero { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 112px); }
.s-hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.s-cta { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.s-btn { gap: 10px; }
.s-btn svg { width: 20px; height: 20px; }
.s-price { display: grid; gap: 2px; }
.s-price b { font-size: 34px; line-height: 1; font-weight: 800; }
.s-price span { color: var(--muted); font-size: 14px; }
.s-facts { margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 36px; }
.s-facts div { display: grid; gap: 4px; }
.s-facts dt { font-size: 30px; line-height: 1; font-weight: 800; color: var(--text); }
.s-facts dd { margin: 0; color: var(--muted); font-size: 14px; }

/* панель подготовки */
.dash { position: relative; margin: 0; padding: 24px; border-radius: 28px; background: linear-gradient(180deg, #23263b, var(--panel)); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06); }
.dash__head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.dash__head em { font-style: normal; font-size: 11px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); letter-spacing: .06em; }
.dash__progress { margin-top: 18px; padding: 20px; border-radius: 20px; background: rgba(12, 14, 34, .6); border: 1px solid var(--line); }
.dash__row { display: flex; justify-content: space-between; align-items: baseline; }
.dash__row b { font-size: 17px; font-weight: 700; }
.dash__pct { font-size: 28px; font-weight: 800; color: var(--accent); }
.dash__bar { margin-top: 12px; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.dash__bar i { display: block; width: 0; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--accent), #ffb08f); animation: fill 1.6s .4s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes fill { to { width: 72%; } }
.dash__topics { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.dash__topics li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 15px; opacity: 0; transform: translateX(-8px); animation: slide .5s forwards; }
.dash__topics li:nth-child(1) { animation-delay: .6s; } .dash__topics li:nth-child(2) { animation-delay: .8s; }
.dash__topics li:nth-child(3) { animation-delay: 1s; } .dash__topics li:nth-child(4) { animation-delay: 1.2s; }
.dash__topics li.ok svg { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(255, 133, 98, .18); color: var(--accent); }
.dash__topics li.now { color: var(--text); font-weight: 600; }
.dash__topics li.now span { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(255, 133, 98, .15); animation: pulse 1.6s infinite; }
@keyframes slide { to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 133, 98, 0); } }
.dash__mocks { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash__mock { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 16px; border-radius: 18px; background: rgba(12, 14, 34, .6); border: 1px solid var(--line); }
.dash__mock svg { grid-row: span 2; width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: var(--text-2); }
.dash__mock b { display: block; font-size: 16px; }
.dash__mock span { color: var(--muted); font-size: 13px; }
.dash__mock em { grid-column: 1 / -1; margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dash__mock--tech { border-color: rgba(255, 133, 98, .45); background: linear-gradient(135deg, rgba(255, 133, 98, .16), rgba(12, 14, 34, .6)); }
.dash__mock--tech svg { background: rgba(255, 133, 98, .2); color: var(--accent); }
.dash__mock--tech em { color: var(--accent); }

/* бенто */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.b { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 30px 28px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); }
.b h3 { font-size: 24px; line-height: 1.15; font-weight: 700; }
.b p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.b__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--text-2); margin-bottom: 8px; }
.b--kb { grid-column: span 3; grid-row: span 2; }
.b--bank { grid-column: span 3; }
.b--pace { grid-column: span 3; }
.b--mock { grid-column: span 3; border-color: rgba(255, 133, 98, .4); background: radial-gradient(120% 120% at 100% 0%, rgba(255, 133, 98, .22), transparent 55%), var(--panel); }
.b--mock .b__ico { background: rgba(255, 133, 98, .18); color: var(--accent); }
.b__tag { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.b__num { font-size: clamp(56px, 6vw, 84px); line-height: .9; font-weight: 800; color: var(--accent); }
.b__road { list-style: none; margin: auto 0 0; padding: 18px 0 0; display: grid; gap: 10px; counter-reset: r; }
.b__road li { counter-increment: r; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(12, 14, 34, .55); border: 1px solid var(--line); color: var(--text-2); font-weight: 600; }
.b__road li::before { content: counter(r, decimal-leading-zero); color: var(--accent); font-weight: 800; }

/* линия времени */
.tl { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tl::before { content: ""; position: absolute; left: 26px; right: 26px; top: 26px; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(255, 133, 98, .15)); }
.tl li { position: relative; }
.tl__dot { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); color: var(--accent); font-size: 22px; font-weight: 800; }
.tl li:nth-child(n+3) .tl__dot { background: var(--accent); color: var(--ink); }
.tl h3 { margin-top: 22px; font-size: 24px; font-weight: 700; }
.tl p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* сравнение */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs__card { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 3vw, 40px); border-radius: 28px; background: var(--panel); border: 1px solid var(--line); }
.vs__card--pack { border-color: rgba(255, 133, 98, .5); background: radial-gradient(120% 100% at 0% 0%, rgba(255, 133, 98, .2), transparent 55%), var(--panel); }
.vs__label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vs__card--pack .vs__label { color: var(--accent); }
.vs__price { display: grid; gap: 6px; font-size: clamp(36px, 4vw, 52px); line-height: 1; font-weight: 800; }
.vs__price small { font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.4; }
.vs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vs li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.vs li svg { flex: none; margin-top: 3px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(255, 133, 98, .18); color: var(--accent); }
.vs li.off { color: var(--muted); padding-left: 32px; }
.vs .btn { margin-top: auto; align-self: flex-start; }

/* FAQ */
.s-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.s-faq .s-top { position: sticky; top: 110px; margin: 0; }
.s-faq .faq { width: 100%; max-width: none; margin: 0; } /* без этого ширина прыгала при раскрытии */

/* апгрейд до менторства */
.up { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 32px; background: linear-gradient(120deg, rgba(72, 72, 124, .45), rgba(29, 32, 49, 1) 55%); border: 1px solid rgba(255, 255, 255, .08); }
.up__path { display: grid; justify-items: center; gap: 10px; }
.up__step { padding: 10px 16px; border-radius: 12px; background: rgba(12, 14, 34, .6); border: 1px solid var(--line); color: var(--text-2); font-weight: 600; white-space: nowrap; }
.up__step--hot { background: rgba(255, 133, 98, .18); border-color: rgba(255, 133, 98, .5); color: var(--text); }
.up__arrow { color: var(--accent); transform: rotate(90deg); }
.up__arrow svg { width: 22px; height: 22px; }
.up__text .s-h2 { margin-top: 14px; font-size: clamp(32px, 3.6vw, 48px); }
.up__text .s-lead { margin-top: 14px; }
.up .btn { gap: 10px; white-space: nowrap; }
.up .btn svg { width: 20px; height: 20px; }
@media (max-width: 1000px) { .up { grid-template-columns: 1fr; gap: 24px; } .up__path { justify-items: start; grid-auto-flow: column; align-items: center; } .up__arrow { transform: none; } }
@media (max-width: 640px) { .up .btn { width: 100%; justify-content: center; } .up__path { grid-auto-flow: row; justify-items: start; } .up__arrow { transform: rotate(90deg); } }

/* финал */
.s-final { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 36px; background: radial-gradient(90% 120% at 0% 0%, rgba(255, 133, 98, .18), transparent 55%), var(--panel); border: 1px solid rgba(255, 133, 98, .3); }
.s-final__text, .s-final .form { position: relative; }
.s-final__text .s-h2 { margin-top: 16px; }
.s-final__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.s-final__list li { display: flex; gap: 12px; color: var(--text-2); }
.s-final__list svg { flex: none; margin-top: 3px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(255, 133, 98, .18); color: var(--accent); }

@media (max-width: 1000px) {
  .s-hero__grid, .vs, .s-faq, .s-final { grid-template-columns: 1fr; }
  .s-faq .s-top { position: static; }
  .bento { grid-template-columns: 1fr 1fr; }
  .b--kb, .b--bank, .b--pace, .b--mock { grid-column: span 1; grid-row: auto; }
  .b--kb { grid-column: span 2; }
  .tl { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .tl::before { display: none; }
}
@media (max-width: 640px) {
  .bento, .tl { grid-template-columns: 1fr; }
  .b--kb { grid-column: auto; }
  .dash { padding: 18px; }
  .dash__mocks { grid-template-columns: 1fr; }
  .s-facts { gap: 24px; }
  .s-cta .btn { width: 100%; justify-content: center; }
}
