:root {
  --red: #e92832;
  --red-dark: #bd1720;
  --red-soft: #fff0f1;
  --green: #13a66b;
  --green-dark: #0b7d50;
  --green-soft: #eaf9f2;
  --ink: #171a1f;
  --muted: #68717d;
  --line: #e7e9ee;
  --bg: #ffffff;
  --soft: #f7f8fa;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(24, 31, 42, .08);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(231,233,238,.9);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { font-size: 26px; font-weight: 900; letter-spacing: -.04em; white-space: nowrap; }
.brand-turbo { color: var(--red); }
.brand-lessons { color: var(--green); }
.main-nav { display: flex; align-items: center; gap: 22px; margin-right: auto; font-size: 14px; font-weight: 650; color: #434a54; }
.main-nav a:hover, .footer-links a:hover { color: var(--green-dark); }
.header-actions { display: flex; gap: 10px; }
.menu-btn { display: none; border: 0; background: transparent; font-size: 26px; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 18px; border-radius: 12px;
  font-weight: 750; border: 1px solid transparent; cursor: pointer; transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 18px rgba(19,166,107,.22); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: #c8cdd5; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-large { min-height: 50px; padding: 0 23px; border-radius: 14px; }

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 15%, rgba(19,166,107,.14), transparent 34%),
    radial-gradient(circle at 6% 70%, rgba(233,40,50,.10), transparent 30%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.hero-grid { min-height: 530px; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(330px,.75fr); gap: 56px; align-items: center; padding: 70px 0; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--green-dark); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .11em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(19,166,107,.12); }
h1 { max-width: 760px; margin: 16px 0 18px; font-size: clamp(42px, 5vw, 68px); line-height: .98; letter-spacing: -.055em; }
.accent { color: var(--red); }
.hero-text { max-width: 720px; margin: 0; font-size: 18px; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 36px; }
.hero-stats div { display: grid; }
.hero-stats strong { font-size: 27px; line-height: 1; }
.hero-stats span { margin-top: 5px; color: var(--muted); font-size: 13px; }

.progress-card { background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 28px; backdrop-filter: blur(12px); }
.progress-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.progress-head > div:first-child { display: grid; gap: 5px; }
.progress-head strong { font-size: 42px; letter-spacing: -.04em; }
.progress-ring { width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) 0deg, #edf0f3 0deg); position: relative; }
.progress-ring::after { content: ""; width: 62px; height: 62px; border-radius: 50%; background: #fff; position: absolute; }
.progress-ring span { z-index: 1; font-size: 12px; font-weight: 800; }
.progress-track { height: 8px; background: #eef1f4; border-radius: 999px; margin: 22px 0 14px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--green)); border-radius: inherit; transition: width .3s ease; }
.progress-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.link-button { padding: 0; border: 0; background: transparent; color: var(--green-dark); font-weight: 800; cursor: pointer; }

.section { padding: 84px 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 30px; }
.section-heading h2 { margin: 8px 0 9px; font-size: clamp(30px,4vw,46px); letter-spacing: -.04em; line-height: 1.08; }
.section-heading p { max-width: 760px; margin: 0; color: var(--muted); }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.source-link { color: var(--green-dark); font-weight: 800; white-space: nowrap; }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 18px; }
.search-box { min-width: 320px; flex: 1; max-width: 520px; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.search-box:focus-within { border-color: rgba(19,166,107,.55); box-shadow: 0 0 0 4px rgba(19,166,107,.08); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.filter { border: 1px solid var(--line); background: #fff; color: #4b535e; padding: 9px 14px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.filter.active { color: #fff; border-color: var(--green); background: var(--green); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot.base { background: var(--green); }.legend-dot.advanced { background: #f0a000; }.legend-dot.high { background: var(--red); }

.task-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.task-card { position: relative; display: flex; flex-direction: column; min-height: 260px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); transition: .22s ease; cursor: pointer; }
.task-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(28,34,44,.08); border-color: #d5d9df; }
.task-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.task-number { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; color: #fff; font-size: 18px; font-weight: 900; }
.task-card[data-level="base"] .task-number { background: var(--green); }
.task-card[data-level="advanced"] .task-number { background: #e69b00; }
.task-card[data-level="high"] .task-number { background: var(--red); }
.done-toggle { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: #a2a9b2; cursor: pointer; font-weight: 900; }
.done-toggle.done { color: #fff; background: var(--green); border-color: var(--green); }
.task-card h3 { margin: 18px 0 7px; font-size: 19px; letter-spacing: -.02em; line-height: 1.22; }
.task-card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.task-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; }
.tag { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border-radius: 999px; background: #f3f5f7; color: #56606b; font-size: 11px; font-weight: 800; }
.tag.python { background: #edf5ff; color: #295f96; }
.tag.excel { background: #edf9f1; color: #1e7247; }
.task-open { margin-top: 16px; color: var(--green-dark); font-weight: 800; font-size: 13px; }
.empty-state { padding: 40px; text-align: center; border: 1px dashed #cfd4da; border-radius: 18px; color: var(--muted); }

.cheat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.cheat-card { border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 22px; }
.cheat-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); font-size: 12px; font-weight: 900; }
.cheat-card h3 { margin: 16px 0 10px; font-size: 18px; }
.cheat-card > code { display: block; padding: 12px 14px; border-radius: 12px; background: #15181d; color: #e8edf3; line-height: 1.65; }
.cheat-card p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.cheat-card pre { margin: 0; padding: 15px; border-radius: 12px; overflow-x: auto; background: #15181d; color: #e8edf3; font-size: 12px; line-height: 1.55; }

.plan-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.plan-grid h2 { margin: 9px 0 12px; font-size: clamp(32px,4vw,48px); letter-spacing: -.04em; line-height: 1.06; }
.plan-intro { color: var(--muted); }
.roadmap { display: grid; gap: 12px; }
.roadmap article { display: flex; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; }
.roadmap article > span { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--red), var(--green)); font-weight: 900; }
.roadmap strong { font-size: 16px; }.roadmap p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }

.cta-section { padding: 0 0 84px; }
.cta-box { min-height: 260px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px; border-radius: 28px; color: #fff; background: linear-gradient(120deg, #c82029 0%, #e62b35 35%, #0e9a63 100%); box-shadow: 0 24px 55px rgba(19,91,64,.18); }
.kicker.light { color: rgba(255,255,255,.8); }
.cta-box h2 { max-width: 650px; margin: 10px 0; font-size: clamp(30px,4vw,44px); letter-spacing: -.04em; line-height: 1.05; }
.cta-box p { margin: 0; color: rgba(255,255,255,.84); }
.cta-actions { display: flex; flex-direction: column; gap: 10px; min-width: 190px; }
.btn-white { background: #fff; color: var(--green-dark); }
.btn-outline-white { border-color: rgba(255,255,255,.45); color: #fff; }

.footer { border-top: 1px solid var(--line); padding: 38px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.footer p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: #4b535d; font-size: 13px; font-weight: 700; }

.task-dialog { width: min(900px, calc(100% - 30px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.24); }
.task-dialog::backdrop { background: rgba(14,18,24,.55); backdrop-filter: blur(5px); }
.dialog-shell { position: relative; padding: 34px; }
.dialog-close { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 24px; line-height: 1; }
.dialog-title-row { display: flex; gap: 16px; align-items: center; padding-right: 45px; }
.dialog-number { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; color: #fff; background: var(--green); font-weight: 900; font-size: 19px; }
.dialog-number.advanced { background: #e69b00; }.dialog-number.high { background: var(--red); }
.dialog-title-row h2 { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; }
.dialog-subtitle { margin: 15px 0 22px; color: var(--muted); }
.material-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 6px; border-radius: 14px; background: var(--soft); }
.material-tab { border: 0; border-radius: 10px; padding: 10px; background: transparent; cursor: pointer; font-weight: 750; color: #59626d; }
.material-tab.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(20,28,40,.08); }
.material-panel { padding-top: 24px; }
.material-panel h3 { margin: 0 0 10px; font-size: 18px; }
.material-panel ul, .material-panel ol { margin: 0; padding-left: 20px; color: #353c45; }
.material-panel li + li { margin-top: 8px; }
.material-panel code.inline { background: #f1f3f5; border-radius: 6px; padding: 2px 6px; }
.example-box, .mistake-box { margin-top: 14px; padding: 16px; border-radius: 14px; }
.example-box { background: var(--green-soft); border: 1px solid #cfeee0; }
.mistake-box { background: var(--red-soft); border: 1px solid #ffd1d5; }
.dialog-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.dialog-actions .done-action { border: 0; border-radius: 12px; padding: 11px 16px; background: var(--green); color: #fff; font-weight: 800; cursor: pointer; }
.dialog-actions .done-action.is-done { background: #eff4f1; color: var(--green-dark); }
.dialog-actions a { color: var(--green-dark); font-weight: 800; font-size: 13px; }
.dialog-actions .full-lesson-link { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 16px; border-radius:12px; background:var(--red); color:#fff; }
.dialog-actions .full-lesson-link:hover { background:var(--red-dark); }

@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 78px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: block; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding: 58px 0; }
  .progress-card { max-width: 620px; }
  .task-grid, .cheat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .plan-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand { font-size: 22px; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-primary { display: none; }
  h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero-grid { padding: 46px 0; gap: 36px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .section { padding: 62px 0; }
  .split-heading { align-items: start; flex-direction: column; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; max-width: none; }
  .filters { justify-content: flex-start; }
  .task-grid, .cheat-grid { grid-template-columns: 1fr; }
  .task-card { min-height: 230px; }
  .cta-box { align-items: flex-start; flex-direction: column; padding: 30px 24px; }
  .cta-actions { width: 100%; }
  .footer-inner { flex-direction: column; }
  .dialog-shell { padding: 26px 20px; }
  .material-tabs { grid-template-columns: repeat(2,1fr); }
  .dialog-title-row h2 { font-size: 23px; }
  .dialog-actions { align-items: stretch; flex-direction: column; }
}

.lesson-ready{margin-left:8px;padding:5px 8px;border-radius:999px;background:var(--green-soft);color:var(--green-dark);font-size:10px;font-weight:850;letter-spacing:.02em;text-transform:uppercase}.task-top{align-items:center}.task-top .done-toggle{margin-left:auto}
