  * { margin: 0; padding: 0; box-sizing: border-box; }
  :root {
    --brand: #6F50F1;      /* заголовки + кнопки */
    --btn-text: #FFFFFF;    /* текст в кнопках */
    --text: #231f20;        /* основной текст */
    --block: #E1D8F6;       /* фон блоков */
    --block-soft: #E1D9FA;  /* чуть светлее для вложенных элементов */
    --block-deep: #B9ACF0;  /* чуть темнее для границ */
    --card: #FFFFFF;
    --muted: #4a4458;
    --success: #1a9e5c;
    --danger: #d43f3f;
    --line: #B9ACF0;
    --radius: 14px;
  }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #FFFFFF;
    color: var(--text);
    line-height: 1.6;
    padding: 0px;
  }
  .container { max-width: 1000px; margin: 0 auto; }

  /* ===== ШАПКА ===== */
  .header {
    background: var(--block);
    border-radius: var(--radius);
    padding: 40px 34px;
    color: var(--text);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
  }
  .header::after {
    content: '';
    position: absolute;
    right: -70px; top: -70px;
    width: 260px; height: 260px;
    background: rgba(111,80,241,.10);
    border-radius: 50%;
  }
  .header .header-logo {
    position: absolute;
    top: 40px;
    right: 22px;
    z-index: 2;
    width: 200px;
  }
  .header-logo img {
    width: 100%;
    object-fit: contain;
  }
  .header .header-logo .logo-mark {
    width: 26px; height: 26px;
    border-radius: 7px;
    background: #fff;
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 900;
  }
  .header .header-logo .logo-text { display: flex; flex-direction: column; }
  .header .header-logo .logo-text small {
    font-size: 8px; font-weight: 600; letter-spacing: .4px; opacity: .95;
    text-transform: none;
  }

  .header .badge {
    display: inline-block;
    background: var(--brand);
    color: var(--btn-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
  }
  .header h1 {
    font-size: clamp(22px, 4vw, 33px);
    line-height: 1.22;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--brand);
    position: relative;
    z-index: 1;
    padding-right: 150px;
  }
  .header p {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    max-width: 680px;
    position: relative;
    z-index: 1;
  }

  /* ===== НАВИГАЦИЯ ===== */
  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 12px;
    background: var(--block);
    border-radius: var(--radius);
  }
  .nav a {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    padding: 7px 13px;
    border-radius: 8px;
    background: #fff;
    transition: all .18s;
  }
  .nav a:hover { background: var(--brand); color: var(--btn-text); }

  /* ===== СЕКЦИИ ===== */
  .section {
    background: var(--block);
    border-radius: var(--radius);
    padding: 28px 28px 32px;
    margin-bottom: 22px;
    scroll-margin-top: 16px;
  }
  .section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .section-title .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: var(--brand);
    color: var(--btn-text);
    border-radius: 9px;
    font-size: 15px;
    flex-shrink: 0;
  }
  .section-sub {
    color: var(--text);
    font-size: 16px;
    margin-bottom: 22px;
    padding-left: 0px;
  }

  /* ===== ВИДЕО ===== */
  .video-block { margin-bottom: 28px; }
  .video-block:last-child { margin-bottom: 0; }
  .video-caption {
    font-weight: 700;
    color: var(--brand);
    font-size: 15.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .video-caption .vc-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    background: var(--brand);
    color: var(--btn-text);
    border-radius: 7px;
    font-size: 12px; font-weight: 800;
    flex-shrink: 0;
  }
  .video-desc {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 12px;
  }
  .video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
  }
  .video-wrap video,
  .video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: 0;
    background: #000;
  }

  /* ===== ТЕСТ ===== */
  .quiz-item {
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 18px;
    background: #fff;
    transition: border-color .3s, background .3s;
  }
  .quiz-item.answered-correct { border-color: var(--success); background: #f2fbf6; }
  .quiz-item.answered-wrong   { border-color: var(--danger);  background: #fdf3f3; }

  .quiz-q {
    font-weight: 600;
    font-size: 15.5px;
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    color: var(--text);
  }
  .quiz-q .q-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px; height: 26px;
    background: var(--brand);
    color: var(--btn-text);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .options { display: flex; flex-direction: column; gap: 10px; }

  .option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fbfaff;
    cursor: pointer;
    font-size: 14.5px;
    color: var(--text);
    transition: all .18s;
    user-select: none;
  }
  .option:hover:not(.locked) { border-color: var(--brand); background: var(--block-soft); }
  .option .marker {
    width: 22px; height: 22px;
    border: 2px solid var(--line);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-top: 1px;
    transition: all .18s;
  }
  .option.selected { border-color: var(--brand); background: var(--block-soft); }
  .option.selected .marker { border-color: var(--brand); background: var(--brand); }
  .option.correct { border-color: var(--success); background: #e8f8ef; }
  .option.correct .marker { border-color: var(--success); background: var(--success); }
  .option.wrong { border-color: var(--danger); background: #fdecec; }
  .option.wrong .marker { border-color: var(--danger); background: var(--danger); }
  .option.locked { cursor: default; }

  .feedback {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 16px;
    color: var(--text);
    display: none;
  }
  .feedback.show { display: block; animation: fadeIn .35s ease; }
  .feedback.ok  { background: #e8f8ef; border-left: 4px solid var(--success); }
  .feedback.err { background: #fdecec; border-left: 4px solid var(--danger); }
  .feedback strong { display: block; margin-bottom: 4px; }
  .feedback.ok strong  { color: var(--success); }
  .feedback.err strong { color: var(--danger); }
  .feedback .exp { color: var(--text); display: block; margin-bottom: 10px; }

  .feedback .lesson-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--btn-text);
    background: var(--brand);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1.5px solid var(--brand);
    transition: all .18s;
  }
  .feedback .lesson-link:hover { background: var(--brand-dark, #4f36b8); }

  @keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

  /* ===== ИТОГ ===== */
  .summary {
    display: none;
    margin-top: 24px;
    padding: 28px;
    border-radius: 14px;
    text-align: center;
    border: 2px solid var(--line);
    background: #fff;
    color: var(--text);
    animation: fadeIn .5s ease;
  }
  .summary.show { display: block; }
  .summary.perfect { border-color: var(--success); background: #e8f8ef; }
  .summary.good    { border-color: var(--brand);   background: var(--block-soft); }
  .summary.bad     { border-color: var(--danger);  background: #fdecec; }

  .summary .s-ico { font-size: 42px; margin-bottom: 12px; display: block; }
  .summary .s-score { font-size: 28px; font-weight: 700; color: var(--brand); margin-bottom: 6px; }
  .summary .s-title { font-size: 19px; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
  .summary .s-text { font-size: 14.5px; color: var(--text); max-width: 620px; margin: 0 auto 18px; line-height: 1.6; }
  .summary .s-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--btn-text);
    background: var(--brand);
    text-decoration: none;
    padding: 14px 34px;
    border-radius: 10px;
    transition: all .18s;
  }
  .summary .s-link:hover { filter: brightness(.92); transform: translateY(-2px); }

  /* ===== ТРЕНАЖЁРЫ ===== */
  .int-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }
  .int-card {
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all .22s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .int-card:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
  }
  .int-card.active {
    border-color: var(--brand);
    background: var(--block-soft);
  }
  .int-card .int-visual {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    position: relative;
    background: var(--block);
  }
  .int-card .int-visual .num-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--brand);
    color: var(--btn-text);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
  }
  .int-card .int-body {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .int-card .int-title {
    font-weight: 700;
    font-size: 15.5px;
    color: var(--brand);
    margin-bottom: 6px;
    line-height: 1.35;
  }
  .int-card .int-hint {
    font-size: 12.5px;
    color: var(--text);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .int-card .int-hint::after {
    content: '▼';
    font-size: 10px;
    transition: transform .25s;
  }
  .int-card.active .int-hint::after { transform: rotate(180deg); }

  .int-detail {
    display: none;
    margin-top: 20px;
    padding: 26px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--text);
    animation: fadeIn .3s ease;
  }
  .int-detail.show { display: block; }
  .int-detail h3 {
    color: var(--brand);
    font-size: 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .int-detail h3 .d-ico {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--block);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }
  .int-detail p {
    font-size: 14.5px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.65;
  }
  .int-detail .ex-title {
    font-weight: 700;
    color: var(--brand);
    margin-top: 14px;
    margin-bottom: 8px;
    font-size: 14.5px;
  }

  /* структура жалобы */
  .struct-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
  }
  .struct-item {
    display: flex;
    gap: 14px;
    background: var(--block);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 16px;
  }
  .struct-item .si-num {
    width: 32px; height: 32px;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--brand);
    color: var(--btn-text);
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
  }
  .struct-item .si-body h4 {
    font-size: 14.5px;
    color: var(--brand);
    margin-bottom: 4px;
  }
  .struct-item .si-body p { font-size: 13.5px; margin: 0; color: var(--text); }

  /* доводы */
  .arg-structure {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 14px;
  }
  .arg-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--block);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    color: var(--text);
  }
  .arg-step .as-dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--btn-text);
    font-size: 11px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
  }

  /* карточки советов — 3 в ряд */
  .tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 10px;
  }
  .tip-card {
    background: var(--block);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    text-align: left;
    transition: all .18s;
  }
  .tip-card:hover { border-color: var(--brand); }
  .tip-card .tc-ico { font-size: 28px; margin-bottom: 8px; display: block; }
  .tip-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 6px;
    line-height: 1.35;
  }
  .tip-card p { font-size: 13px; color: var(--text); margin: 0; line-height: 1.5; }

  @media (max-width: 720px) {
    .tips-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 520px) {
    .tips-grid { grid-template-columns: 1fr; }
    .header h1 { padding-right: 0; }
    .header .header-logo { position: static; display: inline-flex; margin-bottom: 16px; }
  }

  /* ===== CTA ===== */
  .cta {
    background: var(--block);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    color: var(--text);
    position: relative;
    overflow: hidden;
  }
  .cta h3 { font-size: 22px; margin-bottom: 8px; color: var(--brand); position: relative; z-index: 1; }
  .cta p { font-size: 14.5px; color: var(--text); margin-bottom: 22px; max-width: 620px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
  .btn {
    display: inline-block;
    background: var(--brand);
    color: var(--btn-text);
    font-weight: 700;
    font-size: 15px;
    padding: 15px 38px;
    border-radius: 10px;
    text-decoration: none;
    transition: filter .15s, transform .15s;
    position: relative;
    z-index: 1;
  }
  .btn:hover { filter: brightness(.92); transform: translateY(-2px); }

  .footer {
    text-align: center;
    font-size: 12.5px;
    color: var(--text);
    margin-top: 28px;
    line-height: 1.8;
    padding-bottom: 80px;
  }

  @media (max-width: 520px) {
    .section { padding: 22px 18px 26px; }
    .header { padding: 28px 20px; }
    .section-sub { padding-left: 0; }
    .summary { padding: 22px 18px; }
    .int-detail { padding: 18px 16px; }
  }
  .container-wide {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 1920px;
    padding: 6px 20px;
    margin: 0 auto 40px;
    background-color: #333;
}
@media screen and (max-width: 576px) {
  .container-wide {
    padding: 10px;
  }
}

/* ===== Блок «Полезные материалы» (фиолетовый фон) ===== */
.useful-block {
  background: #6F50F1; /* фирменный фиолетовый цвет ВШЮ */
  border-radius: 14px;
  padding: 28px 32px;
  margin: 8px 0 28px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.useful-block .useful-text { flex: 1 1 320px; min-width: 260px; }
.useful-block h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #FFFFFF;
}
.useful-block p {
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  color: #FFFFFF;
  opacity: .95;
}
.useful-block .useful-action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.useful-block .useful-download {
  display: none;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #6F50F1;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.useful-block .useful-download.is-visible { display: inline-flex; }
.useful-block .useful-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.useful-block .useful-placeholder {
  font-size: 13px;
  color: #FFFFFF;
  opacity: .8;
  font-style: italic;
}
@media (max-width: 640px) {
  .useful-block { padding: 22px 20px; }
  .useful-block .useful-download { width: 100%; justify-content: center; }
}

/* ===== Текстовый блок про неустойку ===== */
.fm-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}
.fm-item {
  background: #fff;
  border: 1.5px solid var(--line, #ece0f5);
  border-radius: 12px;
  padding: 16px 18px;
}
.fm-item h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brand, #6F50F1);
  margin-bottom: 6px;
}
.fm-item p { font-size: 13.5px; line-height: 1.55; margin: 0; color: var(--text, #231f20); }

/* ===== 3 карточки правил (Способы взыскания) ===== */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.rule-card {
  background: #fff;
  border: 1.5px solid var(--line, #ece0f5);
  border-radius: 12px;
  padding: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text, #231f20);
}
.rule-card .rule-title {
  font-weight: 700;
  color: var(--brand, #6F50F1);
  margin-bottom: 6px;
  font-size: 14.5px;
}
@media (max-width: 720px) {
  .rules-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .rules-grid { grid-template-columns: 1fr; }
}