/* Проект «Код студента» — лендинг (templates/project-kod.php). Палитра презентации: индиго + лаванда. */
.kod { --k: #4338ca; --k2: #6d5dfc; --kl: #ecebff; --ink: #121640; --mut: #4b4f73; --bd: #e4e3f7; background: #f6f6fd; }
.kod a { text-decoration: none !important; }

.kod-hero { position: relative; overflow: hidden; padding: 34px 0 56px; background: linear-gradient(130deg, #1b1a5e 0%, #3a31b8 55%, #6d5dfc 100%); color: #fff; }
.kod-hero::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 188, 255, .35), transparent 65%); }
.kod-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.kod-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.kod-crumbs a { color: rgba(255, 255, 255, .75); }
.kod-crumbs b { color: #fff; font-weight: 600; }
.kod-kicker { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kod .kod-title { margin: 16px 0 0; color: #fff; font-family: Montserrat, Commissioner, sans-serif; font-size: clamp(42px, 6vw, 76px); font-weight: 900; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.kod-sub { max-width: 560px; margin: 14px 0 0; font-size: 19px; font-weight: 600; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.kod-tags { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.kod-tags li { display: flex; align-items: center; gap: 8px; }
.kod-tags li::before { content: none; }
.kod-tags i { display: inline-block; width: 12px; height: 12px; background: #c4bcff; }
.kod-tags__c { border-radius: 50%; }
.kod-tags__t { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.kod-tags__s { border-radius: 2px; }
.kod-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.kod .kod-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-size: 15px; font-weight: 700; transition: transform .2s, background .2s, color .2s; }
.kod .kod-btn--main { background: #fff; color: #2b2590; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }
.kod .kod-btn--main:hover { transform: translateY(-2px); }
.kod .kod-btn--ghost { border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; }
.kod .kod-btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.kod-hero__code { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kod-hero__code span { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; background: rgba(255, 255, 255, .08); font-size: 14.5px; font-weight: 600; backdrop-filter: blur(4px); }
.kod-hero__code b { font-family: Montserrat, Commissioner, sans-serif; font-size: 24px; font-weight: 900; color: #c4bcff; }

.kod-sec { padding: 60px 0 0; }
.kod-eyebrow { display: block; margin-bottom: 8px; color: var(--k); font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.kod .kod-h2 { margin: 0 0 22px; color: var(--ink); font-family: Montserrat, Commissioner, sans-serif; font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.15; }
.kod-lead { max-width: 720px; margin: -10px 0 24px; color: var(--mut); font-size: 16px; line-height: 1.6; }

/* трансляция */
.kod-live { margin-top: -30px; padding-top: 0; position: relative; }
.kod-live__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.kod-live .kod-eyebrow { margin: 0; padding: 7px 14px; border-radius: 999px; background: #fff; box-shadow: 0 8px 24px rgba(27, 26, 94, .12); }
.kod-live__on { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.kod-live__on i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: kod-pulse 1.4s infinite; }
@keyframes kod-pulse { 50% { opacity: .3; } }
.kod-live__player { position: relative; padding-top: 56.25%; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 30px 70px rgba(27, 26, 94, .3); }
.kod-live__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kod-live__note { margin: 10px 0 0; color: var(--mut); font-size: 14px; }
.kod-live__note a { color: var(--k); font-weight: 600; }
.kod-live__stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 16 / 7; padding: 24px; overflow: hidden; border-radius: 24px; background: #1b1a5e center / cover no-repeat; color: #fff; text-align: center; box-shadow: 0 30px 70px rgba(27, 26, 94, .25); isolation: isolate; }
.kod-live__stub::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(27, 26, 94, .92), rgba(67, 56, 202, .78)); }
.kod-live__play { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .5); }
.kod-live__stub b { font-family: Montserrat, Commissioner, sans-serif; font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; }
.kod-live__stub > span:last-child { color: rgba(255, 255, 255, .8); font-size: 15px; }

/* ключ */
.kod-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kod-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1.5px solid var(--bd); border-radius: 22px; background: #fff; transition: transform .2s, box-shadow .2s; }
.kod-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(27, 26, 94, .1); }
.kod-card__ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--kl); color: var(--k); }
.kod-card b { color: var(--ink); font-size: 19px; font-weight: 800; }
.kod-card p { margin: 0; color: var(--mut); font-size: 15px; line-height: 1.55; }

/* выпуски */
.kod-eps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kod-ep { display: flex; flex-direction: column; overflow: hidden; border: 1.5px solid var(--bd); border-radius: 22px; background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.kod-ep:hover { transform: translateY(-4px); border-color: #c4bcff; box-shadow: 0 18px 40px rgba(27, 26, 94, .12); }
.kod-ep__art { position: relative; aspect-ratio: 16 / 9; background: var(--kl) center / cover no-repeat; }
.kod-ep__n { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--k); color: #fff; font-size: 12.5px; font-weight: 800; }
.kod-ep__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.kod-ep__body i { color: var(--k); font-size: 12.5px; font-style: normal; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.kod-ep__body b { color: var(--ink); font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.kod-ep__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; color: var(--k); font-size: 14px; font-weight: 700; }

/* как использовать */
.kod-how { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.kod-how__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.kod-how__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1.5px solid var(--bd); color: var(--mut); font-size: 15px; line-height: 1.45; }
.kod-how__list li::before { content: none; }
.kod-how__list span { display: grid; place-items: center; width: 28px; height: 28px; margin-right: 6px; border-radius: 50%; background: var(--k); color: #fff; font-size: 13px; font-weight: 800; }
.kod-how__list b { color: var(--ink); }

/* финал */
.kod-final { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 60px 0 72px; padding: 40px 28px; border-radius: 28px; background: linear-gradient(130deg, #1b1a5e, #3a31b8 60%, #6d5dfc); color: #fff; text-align: center; }
.kod-final .kod-eyebrow { color: #c4bcff; margin: 0; }
.kod-final__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; font-family: Montserrat, Commissioner, sans-serif; font-size: clamp(18px, 2.2vw, 26px); font-weight: 800; }
.kod-final__row i { color: #c4bcff; font-style: normal; }

@media (max-width: 1000px) {
	.kod-hero__grid, .kod-how { grid-template-columns: 1fr; }
	.kod-eps { grid-template-columns: 1fr 1fr; }
	.kod-pillars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.kod-eps, .kod-how__list, .kod-hero__code { grid-template-columns: 1fr; }
	.kod-hero__code { display: none; }
	.kod-live__stub { aspect-ratio: 4 / 3; }
	.kod-final__row i { display: none; }
	.kod-final__row { flex-direction: column; }
}
.kod .kod-crumbs a { color: rgba(255, 255, 255, .75) !important; }
.kod .kod-crumbs a:hover { color: #fff !important; }
.kod-live__stub::before { background: linear-gradient(135deg, rgba(27, 26, 94, .97), rgba(58, 49, 184, .93)); }
.kod a.kod-live__stub--pl { color: #fff !important; transition: transform .2s, box-shadow .2s; }
.kod a.kod-live__stub--pl:hover { transform: translateY(-3px); box-shadow: 0 36px 80px rgba(27, 26, 94, .35); }
.kod-live__stub--pl .kod-btn { margin-top: 10px; }
.kod-live__stub--pl > span:not(.kod-btn):not(.kod-live__play) { max-width: 560px; color: rgba(255, 255, 255, .8); font-size: 15px; }
.kod .kod-live__stub--pl .kod-btn--main { color: #2b2590 !important; }
.kod-live__stub--pl::before { background: linear-gradient(135deg, rgba(27, 26, 94, .985), rgba(58, 49, 184, .96)); }
