/* Токены лендинга liza-career.ru (раздел 2.2) */
:root {
  --bg-light: #FDF9F3;
  --bg-white: #FFFFFF;
  --dark: #333333;
  --text-gray: #7A7A78;
  --pink: #E79FA2;
  --pink-soft: #E5A5B9;
  --lavender: #C5ACD4;
  --lime: #CDE180;
  --lime-dark: #9BB856;
  --gradient-pink: linear-gradient(135deg, #FFEEF0 0%, #FFE4E8 100%);
  --gradient-lavender: linear-gradient(135deg, #F5F0FA 0%, #EDE4F5 100%);
  --gradient-lime: linear-gradient(135deg, #F5F9E8 0%, #EEF5D9 100%);
  --gradient-peach: linear-gradient(135deg, #FFF5EB 0%, #FFEDE0 100%);
  --radius-card: 24px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-light);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dark); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 640px; margin: 0 auto; padding: 0 20px; }
.page { flex: 1; padding: 32px 0 64px; }
.muted { color: var(--text-gray); }
.small { font-size: 0.875rem; }
.env-bar { background: var(--lavender); text-align: center; font-size: 0.8rem; font-weight: 600; padding: 4px; }

/* Header / footer */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg-light); border-bottom: 1px solid rgba(0,0,0,0.05); padding: 14px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { width: 44px; height: 44px; border-radius: 50%; }
.header-nav { display: flex; gap: 24px; }
.header-nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.header-nav a:hover { color: var(--pink); }
.site-footer { background: var(--dark); color: #fff; padding: 28px 0; font-size: 0.875rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; opacity: 0.75; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #fff; text-decoration: none; }

/* Typography */
h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.lead { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 24px; }
.breadcrumbs { font-size: 0.875rem; color: var(--text-gray); margin-bottom: 16px; }
.breadcrumbs a { color: var(--text-gray); text-decoration: none; }
.breadcrumbs a:hover { color: var(--pink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 50px; padding: 16px 32px; font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: default; transform: none; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { box-shadow: 0 8px 25px rgba(51,51,51,.3); }
.btn-lime { background: var(--lime); color: var(--dark); }
.btn-lime:hover { box-shadow: 0 4px 15px rgba(205,225,128,.5); }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--dark); }
.btn-ghost { background: transparent; color: var(--text-gray); padding: 10px 0; font-weight: 600; }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.link-button { background: none; border: none; font: inherit; color: var(--pink); cursor: pointer; padding: 0; text-decoration: underline; }

/* Cards */
.card { background: var(--bg-white); border-radius: var(--radius-card); box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04); padding: 32px; }
.card + .card { margin-top: 20px; }
.card-pink { background: var(--gradient-pink); }
.card-lime { background: var(--gradient-lime); }
.card-lavender { background: var(--gradient-lavender); }
.card-peach { background: var(--gradient-peach); }

/* Forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.input {
  width: 100%; font: inherit; font-size: 1rem; padding: 14px 18px; border-radius: 14px;
  border: 1.5px solid #E6E1D8; background: #fff; color: var(--dark); transition: border-color .2s;
}
.input:focus { outline: none; border-color: var(--pink); }
.input-row { display: flex; gap: 10px; }
.input-row .input { flex: 1; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; margin-bottom: 14px; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--dark); flex-shrink: 0; }
.checkbox a { color: var(--dark); }
.code-input { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-weight: 700; }
.alert { border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; font-size: 0.95rem; }
.alert-error { background: #FFE4E8; }
.alert-success { background: #EEF5D9; }
.alert-info, .alert-warning { background: #FFF5EB; }
.form-hint { font-size: 0.85rem; color: var(--text-gray); margin-top: 6px; }
.form-error { color: #C0392B; font-size: 0.875rem; margin-top: 6px; }

/* Auth */
.auth-card { max-width: 460px; margin: 24px auto; }
.auth-card h1 { font-size: 1.8rem; }
.auth-text { font-size: 1rem; color: var(--text-gray); margin-bottom: 14px; }
.auth-text b { color: var(--dark); }
.auth-text a { color: var(--dark); }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.checkout-summary h1 { font-size: 2rem; }
.tariffs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.tariff { position: relative; display: block; border: 2px solid transparent; border-radius: 20px; padding: 18px 20px; background: #fff; cursor: pointer; box-shadow: var(--shadow); transition: border-color .2s; }
.tariff input { position: absolute; opacity: 0; }
.tariff.is-selected, .tariff:has(input:checked) { border-color: var(--dark); }
.tariff-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tariff-title { font-weight: 700; font-size: 1.05rem; }
.tariff-price { font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.price-old { text-decoration: line-through; color: var(--text-gray); font-weight: 500; font-size: 0.95rem; margin-right: 6px; }
.tariff-desc { font-size: 0.9rem; color: var(--text-gray); margin-top: 6px; white-space: pre-line; }
.tariff-meta { font-size: 0.8rem; font-weight: 600; margin-top: 8px; display: inline-block; background: var(--gradient-lime); padding: 2px 10px; border-radius: 20px; }
.totals { border-top: 1px dashed #E6E1D8; margin: 18px 0; padding-top: 14px; }
.totals-row { display: flex; justify-content: space-between; font-size: 0.95rem; margin-bottom: 4px; }
.totals-row.total { font-weight: 800; font-size: 1.3rem; margin-top: 8px; }
.promo-status { font-size: 0.85rem; margin-top: 6px; min-height: 1.2em; }
.promo-status.ok { color: var(--lime-dark); font-weight: 600; }
.promo-status.bad { color: #C0392B; }

/* Cabinet */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.course-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow); }
.course-card.is-expired { opacity: .6; }
.course-cover { aspect-ratio: 16/9; background: var(--gradient-lavender); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem; padding: 16px; text-align: center; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-card:nth-child(3n+2) .course-cover { background: var(--gradient-pink); }
.course-card:nth-child(3n) .course-cover { background: var(--gradient-lime); }
.course-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.progress { height: 8px; background: #F1ECE4; border-radius: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--lime-dark); border-radius: 8px; }
.progress-label { font-size: 0.85rem; color: var(--text-gray); display: flex; justify-content: space-between; }
.empty { text-align: center; padding: 56px 24px; }

/* Course page */
.course-hero { margin-bottom: 28px; }
.module-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-gray); margin: 24px 0 10px; }
.lesson-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lesson-item a, .lesson-item .locked { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 14px 18px; text-decoration: none; box-shadow: var(--shadow); }
.lesson-item a:hover { transform: translateX(3px); }
.lesson-item .locked { color: var(--text-gray); }
.lesson-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; background: #F1ECE4; }
.status-completed .lesson-num { background: var(--lime); }
.status-in_progress .lesson-num { background: var(--gradient-pink); }
.lesson-name { flex: 1; font-weight: 600; }
.lesson-meta { font-size: 0.8rem; color: var(--text-gray); white-space: nowrap; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 20px; background: var(--gradient-lavender); }

/* Lesson */
.lesson-layout { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.lesson-content { font-size: 1.05rem; }
.block { margin-bottom: 28px; }
.block-text h2 { font-size: 1.45rem; margin: 32px 0 12px; }
.block-text h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.block-text p { margin-bottom: 14px; }
.block-text ul, .block-text ol, .callout ul, .callout ol { margin: 0 0 14px 24px; }
.block-text li { margin-bottom: 6px; }
.block-text a, .callout a { color: var(--pink); font-weight: 500; }
.block-text blockquote { border-left: 4px solid var(--pink); padding: 4px 0 4px 18px; margin: 18px 0; color: #555; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background: #000; }
.video-frame iframe, .video-frame > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.block-image figure img { border-radius: 16px; }
.block-image figcaption { font-size: 0.875rem; color: var(--text-gray); margin-top: 8px; text-align: center; }
.file-card { display: flex; align-items: center; gap: 16px; background: var(--gradient-lime); border-radius: 20px; padding: 18px 22px; text-decoration: none; }
.file-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--lime); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.75rem; }
.prompt { background: var(--gradient-lavender); border-radius: 20px; padding: 20px 22px; }
.prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.prompt-title { font-weight: 700; }
.prompt-text { white-space: pre-wrap; font-size: 0.95rem; background: rgba(255,255,255,.7); border-radius: 14px; padding: 16px; max-height: 420px; overflow: auto; }
.callout { border-radius: 20px; padding: 20px 22px; }
.callout-title { font-weight: 700; margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }
.callout-important { background: var(--gradient-peach); }
.callout-example, .callout-info { background: var(--gradient-lavender); }
.callout-bad { background: var(--gradient-pink); }
.callout-good { background: var(--gradient-lime); }
.lesson-complete { text-align: center; padding: 28px; margin: 36px 0 24px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.lesson-nav a { flex: 1; }
.lesson-nav .next { text-align: right; }
.preview-bar { background: var(--lavender); border-radius: 14px; padding: 10px 16px; font-size: 0.875rem; font-weight: 600; margin-bottom: 20px; }

/* Кнопки для этого макета */
.btn-green { background: var(--lime); color: var(--dark); }
.btn-green:hover { box-shadow: 0 6px 20px rgba(155,184,86,.45); }
.btn-small { border: none; background: #F1ECE4; color: var(--dark); font: inherit; font-weight: 600; font-size: 0.875rem; padding: 8px 18px; border-radius: 50px; cursor: pointer; white-space: nowrap; transition: background .2s; }
.btn-small:hover { background: #E8E1D6; }
.nav-form { display: inline; }
.nav-form button { background: none; border: none; font: inherit; font-weight: 500; font-size: 0.95rem; color: var(--text-gray); cursor: pointer; padding: 0; }
.nav-form button:hover { color: var(--pink); }

/* Оглавление курса */
.course-page { max-width: 860px; }
.course-hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--gradient-lavender); margin-bottom: 28px; }
.course-hero h1 { margin-bottom: 10px; }
.course-hero .lead { margin-bottom: 20px; }
.status-pill { display: inline-block; font-weight: 700; font-size: 0.9rem; padding: 8px 18px; border-radius: 50px; }
.status-pill-done { background: var(--lime); }
.progress-ring { --p: 0; flex-shrink: 0; width: 132px; height: 132px; border-radius: 50%;
  background: conic-gradient(var(--lime-dark) calc(var(--p) * 1%), rgba(255,255,255,.7) 0); display: flex; align-items: center; justify-content: center; }
.progress-ring-inner { width: 110px; height: 110px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }
.progress-ring-inner b { font-size: 1.6rem; font-weight: 800; }
.progress-ring-inner span { font-size: 0.75rem; color: var(--text-gray); margin-top: 4px; }
.toc { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.toc-row { display: flex; align-items: center; gap: 18px; background: #fff; border-radius: 20px; padding: 18px 22px; text-decoration: none; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04); transition: transform .2s; }
a.toc-row:hover { transform: translateX(3px); }
.toc-completed { background: var(--gradient-lime); }
.toc-locked { color: var(--text-gray); }
.toc-num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem; background: #fff; }
.toc-completed .toc-num { border-color: var(--lime-dark); }
.toc-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toc-title { font-weight: 700; font-size: 1.05rem; }
.toc-meta { font-size: 0.8rem; color: var(--text-gray); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.toc-dot { margin: 0 6px; }
.toc-status-done { color: var(--lime-dark); }
.toc-status-progress { color: var(--pink); }
.toc-percent { flex-shrink: 0; font-weight: 700; font-size: 0.95rem; border: 1.5px solid var(--lime-dark); color: var(--lime-dark); border-radius: 10px; padding: 4px 10px; background: #fff; }

/* Конец урока */
.lesson-actions { max-width: 420px; margin: 44px auto 12px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.lesson-done { font-weight: 700; color: var(--lime-dark); padding: 14px 0 6px; }
.lesson-hint { font-size: 0.9rem; color: var(--text-gray); padding: 8px 0; }
.lesson-prev { color: var(--text-gray); font-weight: 600; font-size: 0.9rem; text-decoration: none; margin-top: 4px; }
.lesson-prev:hover { color: var(--pink); }

/* Профиль: все карточки по одной сетке */
.profile h1 { margin-bottom: 20px; }
.profile .card { padding: 28px 32px; }
.profile .card + .card { margin-top: 16px; }
.profile h3 { font-size: 1.1rem; margin: 0 0 16px; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-row h3 { margin: 0; }
.row-status { font-weight: 600; font-size: 0.9rem; color: var(--lime-dark); }
.link-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.link-list a { color: var(--dark); }

/* Success */
.success-card { text-align: center; max-width: 560px; margin: 24px auto; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #F1ECE4; border-top-color: var(--pink); animation: spin 1s linear infinite; margin: 8px auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--lime); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; }
.stack { display: flex; flex-direction: column; gap: 12px; align-items: stretch; margin-top: 20px; }

/* Legal */
.legal-content { background: #fff; border-radius: var(--radius-card); padding: 40px; box-shadow: var(--shadow); }
.legal-content h2 { font-size: 1.2rem; margin: 28px 0 12px; }
.legal-content p, .legal-content li { margin-bottom: 10px; font-size: 0.95rem; }
.legal-content ul { margin-left: 22px; }

/* Cookie banner — как на лендинге */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 16px; z-index: 200; padding: 0 16px; }
.cookie-banner-inner { max-width: 900px; margin: 0 auto; background: #F3F7E2; border-radius: 16px; padding: 14px 20px; box-shadow: 0 6px 20px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 0.9rem; }
.cookie-banner button { background: var(--lime); border: none; border-radius: 999px; padding: 10px 28px; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 860px) {
  .checkout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; }
  .page { padding: 20px 0 48px; }
  .card { padding: 22px 18px; border-radius: 20px; }
  .header-nav { gap: 16px; }
  .header-nav a { font-size: 0.875rem; }
  .input-row { flex-direction: column; }
  .lesson-content { font-size: 1rem; }
  .course-hero { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .progress-ring { width: 104px; height: 104px; }
  .progress-ring-inner { width: 86px; height: 86px; }
  .progress-ring-inner b { font-size: 1.3rem; }
  .toc-row { padding: 14px 16px; gap: 12px; }
  .toc-title { font-size: 0.98rem; }
  .profile .card { padding: 22px 20px; }
  .legal-content { padding: 24px 18px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
}
