:root{
  --purple:#855CD6;
  --yellow:#FAB04C;

  --bg:#ffffff;
  --text:#1f2330;
  --muted:#5b6272;

  --line:#e8e8ee;
  --card:#ffffff;

  --shadow: 0 16px 40px rgba(20, 20, 40, 0.08);
  --shadow-soft: 0 10px 26px rgba(20, 20, 40, 0.06);

  --radius:18px;
  --radius-sm:14px;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}


.layout{
  min-height:100vh;
  display:flex;
}


.sidebar{
  width:260px;
  padding:18px 14px;
  border-right:1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fbfbff);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow:auto;
}

.brand{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 10px 14px;
}

.brand__logo{
  width:40px;
  height:40px;
  border-radius:14px;
  background: linear-gradient(135deg, var(--purple), #6f45c6);
  color:#fff;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: var(--shadow-soft);
}

.brand__title{font-weight:800; letter-spacing:0.2px}
.brand__sub{font-size:12px; color:var(--muted); margin-top:2px}

.nav{margin-top:6px; padding:0 8px 14px}
.nav__title{
  font-size:12px;
  font-weight:800;
  letter-spacing:0.8px;
  color:var(--muted);
  text-transform:uppercase;
  margin:10px 2px 10px;
}

.nav__list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:6px;
}

.nav__link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-radius:14px;
  text-decoration:none;
  color:var(--text);
  border:1px solid transparent;
  transition: .15s ease;
}

.nav__link:hover{
  border-color: rgba(133,92,214,0.28);
  background: rgba(133,92,214,0.06);
}

.nav__link.is-active{
  background: rgba(133,92,214,0.10);
  border-color: rgba(133,92,214,0.32);
  color: var(--purple);
  font-weight:800;
}

.sidebar__hint{
  margin: 8px 8px 14px;
  padding:12px 12px;
  border-radius:16px;
  border:1px dashed rgba(250,176,76,0.85);
  background: rgba(250,176,76,0.16);
}

.sidebar__hintTitle{
  font-weight:800;
  margin-bottom:6px;
}

.sidebar__hintText{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

/* ===== Main ===== */
.main{
  position:relative;
  flex:1;
  padding: 28px 26px 60px;
  max-width: 1040px;
}

@media (max-width: 980px){
  .sidebar{display:none}
  .main{max-width: 100%; padding: 18px 16px 50px;}
}

/* Decorative blobs */
.blob{
  position:absolute;
  filter: blur(26px);
  opacity: 0.35;
  z-index: 0;
  pointer-events:none;
}
.blob--purple{
  width: 320px;
  height: 320px;
  left: -60px;
  top: 40px;
  background: radial-gradient(circle, rgba(133,92,214,0.9), rgba(133,92,214,0.0) 70%);
}
.blob--yellow{
  width: 360px;
  height: 360px;
  right: -90px;
  top: 220px;
  background: radial-gradient(circle, rgba(250,176,76,0.95), rgba(250,176,76,0.0) 70%);
}

/* Keep content above blobs */
.header, .section, .footer{position:relative; z-index:1}

/* Header */
.header{
  padding: 18px 18px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow);
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(133,92,214,0.25);
  background: rgba(133,92,214,0.08);
  color: var(--purple);
  font-weight:800;
  font-size:12px;
  letter-spacing:0.3px;
}

.title{
  margin: 12px 0 8px;
  font-size: 34px;
  line-height: 1.15;
  color: var(--text);
}

.subtitle{
  margin:0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  max-width: 800px;
}

/* Sections */
.section{
  margin-top: 18px;
  padding: 16px 18px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow-soft);
}

.section__title{
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.2px;
}

.section__hint{
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* Video cards (stacked) */
.videoCard{
  border: 1px solid rgba(133,92,214,0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, rgba(133,92,214,0.03));
  padding: 14px;
  box-shadow: var(--shadow-soft);
  margin: 12px 0;
}

.videoCard--demo{
  border-color: rgba(250,176,76,0.55);
  background: linear-gradient(180deg, #ffffff, rgba(250,176,76,0.09));
}

.videoCard__head{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-bottom: 10px;
}

.videoCard__num{
  width:34px;
  height:34px;
  border-radius: 12px;
  background: rgba(133,92,214,0.12);
  color: var(--purple);
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(133,92,214,0.25);
  flex: 0 0 auto;
}

.videoCard__title{font-weight:900; font-size:15px}
.videoCard__desc{color:var(--muted); font-size:13px; margin-top:3px; line-height:1.35}

.videoFrame{
  width:100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow:hidden;
  border: 2px solid rgba(133,92,214,0.22);
  background:#000;
}

.videoFrame--soft{
  border-color: rgba(250,176,76,0.55);
}

.videoFrame iframe{
  width:100%;
  height:100%;
  border:0;
}

/* Help note + accordion */
.helpNote{
  display:flex;
  gap:10px;
  align-items:center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(250,176,76,0.55);
  background: rgba(250,176,76,0.18);
  margin: 14px 0 10px;
  font-weight: 800;
}

.helpNote__icon{font-size:18px}
.helpNote__text{letter-spacing:0.1px}

.helpPanel{
  border-radius: var(--radius);
  border: 2px solid rgba(250,176,76,0.70);
  overflow:hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.helpPanel__summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  gap:10px;
  padding: 14px 14px;
  background: linear-gradient(90deg, rgba(250,176,76,0.95), rgba(133,92,214,0.85));
  color:#111;
  font-weight: 900;
}

.helpPanel__summary::-webkit-details-marker{display:none}

.helpPanel__badge{
  background: rgba(255,255,255,0.85);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.helpPanel__title{color:#111}
.helpPanel__chev{margin-left:auto; color:#111}

.helpPanel[open] .helpPanel__chev{transform: rotate(180deg)}

.helpPanel__body{
  padding: 14px;
  border-top: 1px solid rgba(250,176,76,0.45);
}

.helpPanel__text{
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* Download button */
.download{
  margin-top: 14px;
  display:flex;
  align-items:center;
  gap:12px;
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration:none;
  font-weight: 900;
  color: #111;
  background: rgba(250,176,76,0.95);
  border: 2px solid rgba(250,176,76,0.75);
  box-shadow: var(--shadow-soft);
}

.download:hover{filter: brightness(0.98)}
.download__arrow{margin-left:auto}

/* Form */
.section--form{
  margin-top: 18px;
}

.form{
  display:grid;
  gap: 12px;
  max-width: 560px;
}

.field{
  display:grid;
  gap: 6px;
}

.field__label{
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}

.field__input{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(133,92,214,0.22);
  background: rgba(133,92,214,0.05);
  outline: none;
  font-size: 15px;
}

.field__input:focus{
  border-color: rgba(133,92,214,0.55);
  box-shadow: 0 0 0 4px rgba(133,92,214,0.12);
}

.btn{
  padding: 12px 16px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-weight: 900;
  font-size: 15px;
  background: linear-gradient(90deg, var(--purple), #6f45c6);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn:hover{filter: brightness(1.02)}

.form__note{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Footer */
.footer{
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.footer__line{
  height: 1px;
  background: var(--line);
  margin-bottom: 10px;
}

.footer__text{
  padding-left: 4px;
}

/* ===== Plans List ===== */

.planList{
  display:grid;
  gap:10px;
  margin-top:10px;
}

.planItem{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(133,92,214,0.25);
  background:rgba(133,92,214,0.06);
  cursor:pointer;
  transition:.15s ease;
  font-weight:600;
}

.planItem:hover{
  background:rgba(133,92,214,0.10);
}

.planItem input{
  width:18px;
  height:18px;
  accent-color: #855CD6;
}

.planItem input:checked + span{
  text-decoration:line-through;
  opacity:0.6;
}
.theory-accordion{
  --purple:#855CD6;
  --yellow:#FAB04C;
  --line: rgba(133,92,214,0.18);
  --shadow: 0 16px 40px rgba(20, 20, 40, 0.08);

  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  background: #fff;
  box-shadow: var(--shadow);
  margin: 16px 0;
  overflow: hidden;
  position: relative;
}

/* декоративные "пятна" */
.theory-accordion::before,
.theory-accordion::after{
  content:"";
  position:absolute;
  pointer-events:none;
  filter: blur(18px);
  opacity: .45;
  z-index: 0;
}

.theory-accordion::before{
  width: 220px;
  height: 220px;
  left: -90px;
  top: -70px;
  background: radial-gradient(circle, rgba(133,92,214,.75), rgba(133,92,214,0) 70%);
}

.theory-accordion::after{
  width: 220px;
  height: 220px;
  right: -110px;
  top: 40px;
  background: radial-gradient(circle, rgba(250,176,76,.80), rgba(250,176,76,0) 70%);
}

/* summary */
.theory-summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  position: relative;
  z-index: 1;

  /* яркий градиент-хедер */
  background: linear-gradient(90deg, rgba(133,92,214,.14), rgba(250,176,76,.16));
  border-bottom: 1px solid rgba(133,92,214,0.14);
}

/* убираем стандартный маркер у summary */
.theory-summary::-webkit-details-marker{display:none;}
.theory-summary::marker{content:"";}

/* блок слева: бейдж "Теория" */
.theory-title{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;

  padding: 7px 12px;
  border-radius: 999px;
  color: #1b1f2e;
  background: rgba(250,176,76,.9);
  border: 1px solid rgba(250,176,76,.75);
  box-shadow: 0 10px 22px rgba(250,176,76,.18);
}

/* подсказка справа */
.theory-hint{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(31, 35, 48, 0.78);
}

/* стрелочка справа */
.theory-summary::after{
  content: "▾";
  font-size: 16px;
  font-weight: 900;
  color: rgba(31, 35, 48, 0.80);
  transition: transform 0.2s ease, opacity .2s ease;
  opacity: .9;
}

details[open] .theory-summary::after{
  transform: rotate(180deg);
  opacity: 1;
}

/* hover/focus */
.theory-summary:hover{
  background: linear-gradient(90deg, rgba(133,92,214,.18), rgba(250,176,76,.20));
}

.theory-summary:focus-visible{
  outline: 3px solid rgba(133,92,214,.25);
  outline-offset: 2px;
}

/* content */
.theory-content{
  position: relative;
  z-index: 1;
  padding: 16px 18px 18px;

  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #1f2330;
}

/* заголовок внутри */
.theory-content h4{
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
  color: #1f2330;
}

/* подзаголовки */
.theory-content h5{
  margin: 14px 0 6px;
  font-size: 15px;
  line-height: 1.25;
  color: #2a2f45;
  position: relative;
  padding-left: 12px;
}

.theory-content h5::before{
  content:"";
  position:absolute;
  left:0;
  top: .45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(133,92,214,.12);
}

/* абзацы */
.theory-content p{
  margin: 8px 0;
  color: rgba(31,35,48,.88);
}

/* списки */
.theory-content ul{
  margin: 8px 0 8px 18px;
  padding: 0;
}

.theory-content li{
  margin: 6px 0;
  color: rgba(31,35,48,.88);
}

/* выделение strong */
.theory-content strong{
  color: #141827;
}

/* небольшая "карточка"-подложка для лучшей читабельности длинного текста */
.theory-content{
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.98));
}

/* анимация раскрытия (мягкая) */
.theory-content{
  animation: theoryFade .18s ease;
}
@keyframes theoryFade{
  from{opacity:0; transform: translateY(-4px);}
  to{opacity:1; transform: translateY(0);}
}

/* ===== Кнопка скачивания основы игры ===== */

.gameDownloadBtn{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px 20px;
  margin-top:14px;
  border-radius:20px;
  text-decoration:none;
  font-weight:900;
  font-size:16px;
  color:#111;

  background:linear-gradient(90deg, var(--purple), var(--yellow));
  box-shadow:0 14px 34px rgba(20,20,40,0.12);
  transition:.2s ease;
}

.gameDownloadBtn:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(20,20,40,0.18);
  filter:brightness(1.02);
}

.gameDownloadIcon{
  font-size:26px;
}

.gameDownloadText{
  flex:1;
}

.gameDownloadArrow{
  font-size:18px;
}

.todoRow{ display:flex; gap:10px; align-items:center; }
    .btn--small{ padding:12px 14px; border-radius:14px; font-weight:900; }
    .taskDel{
      margin-left:auto;
      border:none;
      background:transparent;
      cursor:pointer;
      font-size:16px;
      opacity:.6;
      padding:6px 10px;
      border-radius:10px;
    }
    .taskDel:hover{ opacity:1; background:rgba(0,0,0,0.06); }
  
 /* локальные стили для 404 (можно вынести в style.css) */
    .notFound{
      display:flex;
      gap:16px;
      align-items:center;
      padding:18px;
      border-radius:20px;
      border:1px solid rgba(133,92,214,0.22);
      background:linear-gradient(180deg, #fff, rgba(133,92,214,0.06));
      box-shadow:0 14px 34px rgba(20,20,40,0.08);
    }
    .notFound__code{
      font-weight:1000;
      font-size:52px;
      line-height:1;
      letter-spacing:1px;
      color:rgba(133,92,214,0.95);
      background:linear-gradient(90deg, rgba(133,92,214,0.18), rgba(250,176,76,0.20));
      border:1px solid rgba(133,92,214,0.18);
      border-radius:18px;
      padding:14px 16px;
      min-width:110px;
      text-align:center;
    }
    .notFound__title{
      font-weight:900;
      font-size:18px;
      margin-bottom:6px;
    }
    .notFound__desc{
      color:var(--muted);
      font-size:14px;
      line-height:1.4;
    }
    .notFoundActions{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
    }
    .btnLink{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      padding:12px 14px;
      border-radius:16px;
      text-decoration:none;
      font-weight:900;
      color:#111;
      background:linear-gradient(90deg, var(--purple), var(--yellow));
      box-shadow:0 12px 30px rgba(20,20,40,0.12);
      transition:.2s ease;
    }
    .btnLink:hover{
      transform:translateY(-2px);
      box-shadow:0 16px 36px rgba(20,20,40,0.16);
    }
    .btnLink--ghost{
      background:#fff;
      border:1px solid rgba(133,92,214,0.25);
      box-shadow:0 10px 22px rgba(20,20,40,0.06);
    }
    .btnLink--ghost:hover{
      border-color:rgba(250,176,76,0.6);
      background:linear-gradient(180deg, #fff, rgba(250,176,76,0.08));
    }

    .cardsGrid{
      display:grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap:12px;
      margin-top:14px;
    }

    .miniCard{
      border-radius:18px;
      padding:16px;
      border:1px solid rgba(133,92,214,0.18);
      background:linear-gradient(180deg, #fff, rgba(133,92,214,0.05));
      box-shadow:0 12px 28px rgba(20,20,40,0.06);
    }

    .miniCard__icon{ font-size:24px; }
    .miniCard__title{ font-weight:900; margin-top:8px; }
    .miniCard__desc{ margin-top:6px; color:var(--muted); font-size:14px; line-height:1.35; }

    .lessonsGrid{
      display:grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap:12px;
      margin-top:14px;
    }

    .lessonCard{
      display:block;
      text-decoration:none;
      color:#111;
      border-radius:20px;
      padding:16px;
      border:1px solid rgba(133,92,214,0.18);
      background:linear-gradient(180deg, #fff, rgba(133,92,214,0.04));
      box-shadow:0 14px 34px rgba(20,20,40,0.07);
      transition:.18s ease;
      min-height:142px;
    }

    .lessonCard:hover{
      transform:translateY(-3px);
      border-color: rgba(250,176,76,0.65);
      background:linear-gradient(180deg, #fff, rgba(250,176,76,0.08));
      box-shadow:0 18px 42px rgba(20,20,40,0.12);
    }

    .lessonCard__top{
      display:flex;
      align-items:center;
      gap:10px;
      margin-bottom:10px;
    }

    .lessonCard__num{
      width:38px;
      height:38px;
      display:flex;
      align-items:center;
      justify-content:center;
      font-weight:1000;
      border-radius:14px;
      color:rgba(133,92,214,0.98);
      background:linear-gradient(90deg, rgba(133,92,214,0.18), rgba(250,176,76,0.20));
      border:1px solid rgba(133,92,214,0.16);
    }

    .lessonCard__badge{
      font-weight:900;
      font-size:12px;
      padding:6px 10px;
      border-radius:999px;
      border:1px solid rgba(133,92,214,0.2);
      background:rgba(133,92,214,0.06);
      color:rgba(133,92,214,0.98);
    }

    .lessonCard__title{ font-weight:1000; font-size:15px; line-height:1.25; }
    .lessonCard__desc{ margin-top:8px; color:var(--muted); font-size:13px; line-height:1.35; }

    .lessonCard--final{
      border-color: rgba(250,176,76,0.55);
      background:linear-gradient(180deg, #fff, rgba(250,176,76,0.10));
    }

    @media (max-width: 980px){
      .cardsGrid, .lessonsGrid{ grid-template-columns: 1fr; }
    }

    .brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--purple), var(--yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(20,20,40,0.15);
  transition: 0.2s ease;
}

/* Ссылка внутри логотипа */
.brand__logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;

  text-decoration: none;   /* убрать подчёркивание */
  color: #fff;             /* белый цвет буквы */
}

/* Убираем фокус-рамку и синий цвет */
.brand__logo a:visited,
.brand__logo a:active {
  color: #fff;
}

/* Эффект наведения */
.brand__logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20,20,40,0.25);
}
