/* ===================================================================
   Общий файл стилей сайта-визитки.
   Дизайн: минимализм + лёгкие «программистские» акценты
   (моноширинный шрифт, комментарии в стиле Python, метки # у заголовков).
   =================================================================== */

:root {
  --bg: #fafaf8;            /* фон страницы */
  --surface: #ffffff;       /* фон карточек */
  --text: #24292f;          /* основной текст */
  --muted: #6e7781;         /* приглушённый текст, «комментарии» */
  --muted-strong: #9098a2;  /* более заметно приглушённый текст (пояснения в статьях) */
  --accent: #1a7f37;        /* акцент – спокойный «терминальный» зелёный */
  --accent-dark: #116329;
  --accent-soft: #e6f2ea;   /* мягкая зелёная подложка */
  --border: #c4cad1;
  --panel: #eceef1;         /* полоска окна мини-виджетов */
  --panel-dot: #cfd4da;
  --output-bg: #ffffff;     /* фон правой панели мини-виджета */
  --todo-bg: #f6f8fa;
  --shadow: rgba(36, 41, 47, 0.08);
  --gc-blue-bg: #e8f0fe;
  --gc-blue-fg: #174ea6;
  --gc-blue-border: #1a73e8;
  --gc-green-bg: #e6f4ea;
  --gc-green-fg: #0d652d;
  --gc-green-border: #188038;
  --gc-purple-bg: #f3e8fd;
  --gc-purple-fg: #6a1b9a;
  --gc-purple-border: #8e24aa;
  --gc-orange-bg: #feefe3;
  --gc-orange-fg: #b3560a;
  --gc-orange-border: #e8710a;
  --mono: ui-monospace, "Cascadia Code", Consolas, "JetBrains Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #161b22;
  --text: #e6edf3;
  --muted: #8b949e;
  --muted-strong: #6a7280;
  --accent: #3fb950;
  --accent-dark: #56d364;
  --accent-soft: rgba(63, 185, 80, 0.16);
  --border: #30363d;
  --panel: #1c2128;
  --panel-dot: #444c56;
  --output-bg: #0d1117;
  --todo-bg: #161b22;
  --shadow: rgba(0, 0, 0, 0.35);
  --gc-blue-bg: rgba(56, 139, 253, 0.16);
  --gc-blue-fg: #79c0ff;
  --gc-blue-border: #58a6ff;
  --gc-green-bg: rgba(63, 185, 80, 0.16);
  --gc-green-fg: #7ee787;
  --gc-green-border: #3fb950;
  --gc-purple-bg: rgba(142, 36, 170, 0.20);
  --gc-purple-fg: #dcb8ff;
  --gc-purple-border: #c792ea;
  --gc-orange-bg: rgba(232, 113, 10, 0.20);
  --gc-orange-fg: #ffb37a;
  --gc-orange-border: #f2994a;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.15s, color 0.15s;
}

.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Шапка ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.site-header .container {
  max-width: none;
}

.site-nav { display: flex; gap: 28px; }

.site-nav a {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); font-weight: 600; }

/* ---------- Правый блок шапки: кнопка "Об авторе" + переключатель темы ---------- */

.header-actions { display: flex; align-items: center; gap: 10px; }

.top-actions {
  position: fixed;
  top: 14px;
  right: 20px;
  z-index: 10;
}

/* на телефонах кнопки не висят поверх страницы, а прокручиваются вместе с текстом */
@media (max-width: 760px) {
  .top-actions {
    position: static;
    justify-content: flex-end;
    padding: 14px 20px 10px;
  }
  .top-actions + main .page { padding-top: 12px; }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-outline.active { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }

/* ---------- Переключатель тёмной темы ---------- */

.theme-toggle {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.theme-toggle:hover { color: var(--text); border-color: var(--accent); }

.theme-toggle svg { width: 17px; height: 17px; }

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Основная область ---------- */

main { flex: 1; }

/* ---------- Главная: витрина проектов ---------- */

.container-wide {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

.avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 28px;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border), 0 8px 24px var(--shadow);
}

/* Подпись в стиле комментария Python */
.comment {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--muted);
}

@keyframes blink { 50% { opacity: 0; } }

/* главная: разделы «Ученикам / Родителям / Учителям» друг под другом */
.audience {
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.audience:first-of-type { border-top: none; padding-top: 4px; }

.audience-title {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.audience-list { display: flex; flex-direction: column; gap: 2px; }

.audience-item {
  display: block;
  padding: 7px 4px;
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s;
}

.audience-item-title { font-size: 16.5px; font-weight: 500; }
.audience-item:hover .audience-item-title { color: var(--accent); }

.audience-item-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* видно только программам чтения с экрана – на главной нет видимого заголовка страницы */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* страница «Об авторе»: фото рядом с именем + список разделов */
.about-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.about-header .avatar {
  width: 84px;
  height: 84px;
  margin: 0;
  flex: none;
}

.page .about-header h1 {
  font-size: 26px;
  margin-bottom: 4px;
}

.about-menu { display: flex; flex-direction: column; }

.about-menu a {
  padding: 16px 4px;
  text-decoration: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.about-menu a:last-child { border-bottom: none; }

.about-menu a:hover { color: var(--accent); }

/* ---------- Миниатюры-виджеты в карточках проектов ---------- */

.mini {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  pointer-events: none;
  user-select: none;
}

/* полоска окна: три кружка и название */
.mini-bar {
  height: 21px;
  background: var(--panel);
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid var(--border);
}
.mini-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--panel-dot); flex: none; }
.bar-title {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 7px;
  white-space: nowrap;
  overflow: hidden;
}

/* мини-printinput: слева редактор, справа вывод */
.mini-panes { display: grid; grid-template-columns: 1fr 1fr; }
.mini-editor {
  background: #22272e;
  color: #adbac7;
  padding: 9px 12px;
  white-space: nowrap;
  overflow: hidden;
}
.mini-editor .fn2 { color: #6cb6ff; }
.mini-editor .str2 { color: #8ddb8c; }
.mini-output {
  background: var(--output-bg);
  color: var(--text);
  padding: 9px 12px;
  white-space: nowrap;
  overflow: hidden;
}
.mini-output .typed { color: var(--muted); }
.mini-cursor {
  display: inline-block;
  width: 6px;
  height: 1em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

/* мини-менеджер: два окна, уроки перелетают из календаря */
.mini2-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
}

.mini2-wrap .mini { margin-bottom: 0; }

.mini2-body {
  background: var(--output-bg);
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 62px;
}

/* событие в стиле Google Календаря */
.gc-ev {
  display: inline-block;
  border-left: 3px solid var(--gc-blue-border);
  background: var(--gc-blue-bg);
  color: var(--gc-blue-fg);
  padding: 0 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.gc-ev.g { border-color: var(--gc-green-border); background: var(--gc-green-bg); color: var(--gc-green-fg); }

/* строка-урок в менеджере */
.cal-pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 10px;
  padding: 0 9px;
  white-space: nowrap;
}
.cal-pill.alt { background: #e7f0fb; color: #0a5099; }

/* цикл 8 секунд: урок исчезает слева, летит, загорается справа */
.fly1, .fly2 { position: absolute; left: 3%; opacity: 0; z-index: 2; }
.fly1 { top: 29px; animation: fly1 8s ease-in-out infinite; }
.fly2 { top: 55px; animation: fly2 8s ease-in-out infinite; }

@keyframes fly1 {
  0%, 11% { left: 3%;  opacity: 0; }
  13%     { left: 3%;  opacity: 1; }
  28%     { left: 54%; opacity: 1; }
  31%, 100% { left: 54%; opacity: 0; }
}
@keyframes fly2 {
  0%, 36% { left: 3%;  opacity: 0; }
  38%     { left: 3%;  opacity: 1; }
  53%     { left: 54%; opacity: 1; }
  56%, 100% { left: 54%; opacity: 0; }
}

.src1 { animation: src1 8s ease-in-out infinite; }
.src2 { animation: src2 8s ease-in-out infinite; }
@keyframes src1 { 0%, 11% { opacity: 1; } 13%, 92% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes src2 { 0%, 36% { opacity: 1; } 38%, 92% { opacity: 0; } 97%, 100% { opacity: 1; } }

.landed1 { opacity: 0; animation: landed1 8s ease-in-out infinite; }
.landed2 { opacity: 0; animation: landed2 8s ease-in-out infinite; }
@keyframes landed1 { 0%, 28% { opacity: 0; } 31%, 90% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes landed2 { 0%, 53% { opacity: 0; } 56%, 90% { opacity: 1; } 95%, 100% { opacity: 0; } }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-disabled {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: not-allowed;
}

/* ---------- Заголовки разделов ---------- */

.section { padding: 8px 0 56px; }

.section-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

/* ---------- Карточки ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(26, 127, 55, 0.10);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card h3 .ext {
  font-size: 15px;
  color: var(--accent);
}

.card p {
  font-size: 15.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 20px;
  padding: 2px 12px;
}

/* ---------- Внутренние страницы ---------- */

.page { padding-top: 56px; padding-bottom: 64px; }

.page h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page .lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 36px;
}

/* Акцентный вариант .lead – для важной информации (например, телефон), которая не должна тускнеть */
.page .lead.lead-emphasis {
  color: var(--text);
  font-weight: 600;
}

/* Текстовое содержимое внутренних страниц (описания, политики) */
.page-body { max-width: 680px; }

/* Более широкая колонка для страниц разделов «Ученикам» и «Родителям» — там много ссылок и текста, которые иначе переносятся */
.page-body-wide { max-width: 1000px; }

.page-body p {
  margin-bottom: 18px;
}

/* Приглушённый текст внутри .page-body – читаемый, но не основной (пояснения, сноски) */
.page-body .muted {
  color: var(--muted-strong);
}

/* Не разрывать на разные строки (формулы, списки языков программирования и т.п.) */
.nowrap {
  white-space: nowrap;
}

.page-body h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 34px 0 12px;
}

.page-body ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.page-body li {
  margin-bottom: 10px;
}

.page-body a {
  color: var(--accent);
  text-decoration: none;
}

.page-body a:hover { text-decoration: underline; }

/* Блок-заглушка «раздел наполняется» – оформлен как код на Python */
.todo {
  font-family: var(--mono);
  font-size: 15px;
  background: var(--todo-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 28px 0;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.7;
}

.todo .kw { color: #ff7b72; }      /* ключевые слова */
.todo .str { color: #79c0ff; }     /* строки */
.todo .cmt { color: var(--muted); }/* комментарии */
.todo .fn { color: #d2a8ff; }      /* имена функций */

:root:not([data-theme="dark"]) .todo .kw { color: #cf222e; }
:root:not([data-theme="dark"]) .todo .str { color: #0a3069; }
:root:not([data-theme="dark"]) .todo .fn { color: #8250df; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 44px;
  padding: 11px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.back-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

/* ---------- Страница 404 ---------- */

.error-page {
  text-align: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.error-page .error-code {
  font-family: var(--mono);
  font-size: 84px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}

.error-page h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 28px;
}

.error-page .todo {
  display: inline-block;
  text-align: left;
  margin: 0 auto 32px;
}

@media (max-width: 640px) {
  .error-page { padding-top: 64px; padding-bottom: 64px; }
  .error-page .error-code { font-size: 60px; }
}

/* ---------- Подвал ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  margin-top: 24px;
}

.site-footer .container {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Телефоны ---------- */

@media (max-width: 760px) {
  .avatar { width: 140px; height: 140px; }
}

/* ---------- Контакты ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.qr-box {
  width: 128px;
  height: 128px;
  border-radius: 8px;
  display: block;
  margin: 0 auto 18px;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 0 0 1px var(--border);
}

:root[data-theme="dark"] .qr-box {
  filter: invert(1);
}

.contact-card .cname {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-card .cvalue {
  font-weight: 700;
  font-size: 15px;
  word-break: break-word;
}

.contact-card .cvalue a { color: var(--text); text-decoration: none; }
.contact-card .cvalue a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* ---------- Документы (диплом и приложения) ---------- */

.doc-card--diploma {
  max-width: 480px;
  margin: 28px 0 20px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin: 0 0 8px;
}

.doc-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.doc-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(26, 127, 55, 0.10);
  transform: translateY(-2px);
}

.doc-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: 0 0 0 1px var(--border);
}

.doc-card-label {
  font-weight: 600;
  font-size: 14.5px;
}

/* ---------- Источник отзывов (логотип площадки) ---------- */

.review-source {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 88px 0 18px;
}

.page h1 + .review-source { margin-top: 8px; }

.review-source-badge {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--text);
}

.review-source-badge--profi { color: #ee1a39; }

a.review-source { text-decoration: none; color: inherit; }

a.review-source:hover .review-source-info { text-decoration: underline; }

.review-source-info {
  font-size: 14px;
  color: var(--muted);
}

.review-source-info a { color: var(--accent); text-decoration: none; }
.review-source-info a:hover { text-decoration: underline; }

/* ---------- Отзывы ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 18px 20px;
}

.quote-card p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.55;
}

.quote-card footer {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.quote-links {
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
}

.quote-links a { color: var(--accent); text-decoration: none; }
.quote-links a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .quote-grid { grid-template-columns: 1fr; }
}

/* ---------- Хронология (страница «Опыт работы») ---------- */

.timeline {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  max-width: 640px;
}

.timeline li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.timeline li:first-child { padding-top: 0; }
.timeline li:last-child { border-bottom: none; padding-bottom: 0; }

.timeline-date {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
}

.timeline-text { font-size: 16px; }

@media (max-width: 520px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .section-title { font-size: 22px; }
  .page h1 { font-size: 27px; }
  .site-footer .container { gap: 18px; }
}

/* ===================================================================
   Страница «Менеджер уроков» (/projects/lesson-manager/)
   Классы с префиксом lm- используются только на этой странице.
   =================================================================== */

.lm-hero { text-align: center; padding: 48px 0 8px; }

.lm-hero h1 { font-size: 33px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 26px; }

.lm-list {
  list-style: none; text-align: left; max-width: 620px;
  margin: 0 auto 36px; display: flex; flex-direction: column; gap: 13px;
}
.lm-list li { position: relative; padding-left: 26px; font-size: 17px; color: var(--text); }
.lm-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.lm-list li strong { font-weight: 700; }

.lm-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.lm-note { font-family: var(--mono); font-size: 12.5px; color: var(--muted); align-self: center; }

.lm-download-note {
  display: none;
  max-width: 320px;
  margin: 0 auto;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  text-align: center;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.lm-download-note strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* ---- большой виджет: календарь -> программа (декоративный, в hero) ---- */
.lm-stage { position: relative; display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 28px; align-items: start; max-width: 980px; margin: 0 auto; }
.lm-stage-mobile { display: none; position: relative; max-width: 420px; margin: 0 auto; }
.lm-win {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface);
  box-shadow: 0 14px 34px var(--shadow); font-size: 13px;
}
.lm-win-bar { height: 36px; background: var(--panel); display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--border); flex: none; }
.lm-win-bar .lm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--panel-dot); flex: none; }
.lm-win-title { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lm-cal-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--output-bg); }
.lm-cal-date { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.lm-cal-row { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.lm-cal-time { width: 40px; flex: none; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--muted); }
.lm-cal-ev {
  flex: 1; min-width: 0; border-left: 3px solid var(--c-border); background: var(--c-bg); color: var(--c-fg);
  padding: 7px 10px; border-radius: 6px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lm-c-blue   { --c-bg: var(--gc-blue-bg);   --c-fg: var(--gc-blue-fg);   --c-border: var(--gc-blue-border); }
.lm-c-green  { --c-bg: var(--gc-green-bg);  --c-fg: var(--gc-green-fg);  --c-border: var(--gc-green-border); }
.lm-c-purple { --c-bg: var(--gc-purple-bg); --c-fg: var(--gc-purple-fg); --c-border: var(--gc-purple-border); }
.lm-c-orange { --c-bg: var(--gc-orange-bg); --c-fg: var(--gc-orange-fg); --c-border: var(--gc-orange-border); }

.lm-app-tabs { display: flex; gap: 3px; padding: 8px 10px 0; background: var(--panel); border-bottom: 1px solid var(--border); overflow: hidden; }
.lm-app-tab { font-family: var(--sans); font-size: 11px; font-weight: 600; white-space: nowrap; padding: 7px 11px; border-radius: 6px 6px 0 0; color: var(--muted); }
.lm-app-tab.lm-active { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-bottom-color: var(--surface); margin-bottom: -1px; }
.lm-app-daynav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; font-family: var(--mono); font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--border); }
.lm-app-daynav .lm-date { color: var(--text); font-weight: 700; text-align: center; font-size: 12px; }
.lm-app-sync { display: flex; align-items: center; gap: 7px; padding: 6px 14px; font-family: var(--mono); font-size: 10.5px; color: var(--accent-dark); background: var(--accent-soft); }
.lm-spin { width: 10px; height: 10px; border: 2px solid var(--accent); border-top-color: transparent; border-radius: 50%; animation: lm-spin 1.4s linear infinite; flex: none; }
.lm-app-table { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 236px; }
.lm-app-row {
  display: grid; grid-template-columns: 1fr auto 1.3fr; gap: 10px; align-items: center;
  padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); opacity: 0;
}
.lm-app-row .lm-who { font-size: 12px; font-weight: 700; min-width: 0; }
.lm-app-row .lm-who .lm-t { display: block; font-weight: 400; color: var(--muted); font-family: var(--mono); font-size: 10.5px; margin-top: 1px; }
.lm-app-row .lm-subj { font-family: var(--sans); font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--c-bg); color: var(--c-fg); white-space: nowrap; }
.lm-app-row .lm-topic { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@keyframes lm-spin { to { transform: rotate(360deg); } }

.lm-flying {
  position: absolute; z-index: 5; font-family: var(--mono); font-size: 12.5px;
  border-left: 3px solid var(--c-border); background: var(--c-bg); color: var(--c-fg);
  padding: 7px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none;
}

.lm-flying.lm-f1 { animation: lm-fly1 12s ease-in-out infinite; }
.lm-flying.lm-f2 { animation: lm-fly2 12s ease-in-out infinite; }
.lm-flying.lm-f3 { animation: lm-fly3 12s ease-in-out infinite; }
.lm-flying.lm-f4 { animation: lm-fly4 12s ease-in-out infinite; }
.lm-src.lm-s1 { animation: lm-src1 12s ease-in-out infinite; }
.lm-src.lm-s2 { animation: lm-src2 12s ease-in-out infinite; }
.lm-src.lm-s3 { animation: lm-src3 12s ease-in-out infinite; }
.lm-src.lm-s4 { animation: lm-src4 12s ease-in-out infinite; }
.lm-app-row.lm-l1 { animation: lm-land1 12s ease-in-out infinite; }
.lm-app-row.lm-l2 { animation: lm-land2 12s ease-in-out infinite; }
.lm-app-row.lm-l3 { animation: lm-land3 12s ease-in-out infinite; }
.lm-app-row.lm-l4 { animation: lm-land4 12s ease-in-out infinite; }

@keyframes lm-fly1 { 0%,7% {opacity:0;top:68px;left:4%;} 8% {opacity:1;top:68px;left:4%;} 20% {opacity:1;top:158px;left:47%;} 21%,100% {opacity:0;top:158px;left:47%;} }
@keyframes lm-fly2 { 0%,24% {opacity:0;top:112px;left:4%;} 25% {opacity:1;top:112px;left:4%;} 37% {opacity:1;top:206px;left:47%;} 38%,100% {opacity:0;top:206px;left:47%;} }
@keyframes lm-fly3 { 0%,41% {opacity:0;top:156px;left:4%;} 42% {opacity:1;top:156px;left:4%;} 54% {opacity:1;top:254px;left:47%;} 55%,100% {opacity:0;top:254px;left:47%;} }
@keyframes lm-fly4 { 0%,58% {opacity:0;top:200px;left:4%;} 59% {opacity:1;top:200px;left:4%;} 71% {opacity:1;top:302px;left:47%;} 72%,100% {opacity:0;top:302px;left:47%;} }

@keyframes lm-src1 { 0%,8% {opacity:1;} 10%,90% {opacity:0;} 96%,100% {opacity:1;} }
@keyframes lm-src2 { 0%,25%{opacity:1;} 27%,90% {opacity:0;} 96%,100% {opacity:1;} }
@keyframes lm-src3 { 0%,42%{opacity:1;} 44%,90% {opacity:0;} 96%,100% {opacity:1;} }
@keyframes lm-src4 { 0%,59%{opacity:1;} 61%,90% {opacity:0;} 96%,100% {opacity:1;} }

@keyframes lm-land1 { 0%,20% {opacity:0;} 22%,88% {opacity:1;} 92%,100% {opacity:0;} }
@keyframes lm-land2 { 0%,37% {opacity:0;} 39%,88% {opacity:1;} 92%,100% {opacity:0;} }
@keyframes lm-land3 { 0%,54% {opacity:0;} 56%,88% {opacity:1;} 92%,100% {opacity:0;} }
@keyframes lm-land4 { 0%,71% {opacity:0;} 73%,88% {opacity:1;} 92%,100% {opacity:0;} }

@media (prefers-reduced-motion: reduce) {
  .lm-flying { display: none; }
  .lm-app-row.lm-l1, .lm-app-row.lm-l2, .lm-app-row.lm-l3, .lm-app-row.lm-l4 { animation: none; opacity: 1; }
  .lm-app-sync .lm-spin, .lm-shot-sync .lm-spin { animation: none; }
}
/* ---- мобильная версия: свои отступы, свой (компактный) виджет, без блока «Интерфейс» ---- */
@media (max-width: 900px) {
  .lm-hero.container-wide,
  .lm-cta.container-wide,
  .section.container-wide { padding-left: 20px; padding-right: 20px; }

  .lm-stage { display: none; }
  .lm-stage-mobile { display: block; }

  .lm-shot-section { display: none; }

  .lm-download-btn { display: none; }
  .lm-download-note { display: block; }
}

.lm-m-win { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 0 10px 22px var(--shadow); font-size: 11px; }
.lm-m-win-bar { height: 26px; background: var(--panel); display: flex; align-items: center; gap: 5px; padding: 0 10px; border-bottom: 1px solid var(--border); }
.lm-m-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--panel-dot); }
.lm-m-win-title { margin-left: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lm-m-cal-body { padding: 10px 10px 8px; background: var(--output-bg); }
.lm-m-cal-date { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.lm-m-cal-row { display: flex; align-items: center; gap: 8px; height: 30px; }
.lm-m-cal-time { width: 32px; flex: none; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 10px; color: var(--muted); }
.lm-m-cal-ev { flex: 1; min-width: 0; border-left: 3px solid var(--c-border); background: var(--c-bg); color: var(--c-fg); padding: 5px 8px; border-radius: 5px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lm-stage-mobile .lm-m-win + .lm-m-win { margin-top: 16px; }

.lm-m-app-tabs { display: flex; gap: 3px; padding: 6px 8px 0; background: var(--panel); border-bottom: 1px solid var(--border); overflow: hidden; }
.lm-m-app-tab { font-family: var(--sans); font-size: 9.5px; font-weight: 600; white-space: nowrap; padding: 5px 8px; border-radius: 5px 5px 0 0; color: var(--muted); }
.lm-m-app-tab.lm-active { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-bottom-color: var(--surface); margin-bottom: -1px; }
.lm-m-app-daynav { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; font-family: var(--mono); font-size: 9.5px; color: var(--muted); border-bottom: 1px solid var(--border); }
.lm-m-app-daynav .lm-date { color: var(--text); font-weight: 700; }
.lm-m-app-sync { display: flex; align-items: center; gap: 6px; padding: 5px 10px; font-family: var(--mono); font-size: 9px; color: var(--accent-dark); background: var(--accent-soft); }
.lm-m-app-table { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.lm-m-app-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); opacity: 0; }
.lm-m-app-row .lm-who { font-size: 10px; font-weight: 700; min-width: 0; }
.lm-m-app-row .lm-who .lm-t { display: block; font-weight: 400; color: var(--muted); font-family: var(--mono); font-size: 8.5px; margin-top: 1px; }
.lm-m-app-row .lm-subj { font-family: var(--sans); font-size: 8.5px; font-weight: 600; padding: 2px 7px; border-radius: 20px; background: var(--c-bg); color: var(--c-fg); white-space: nowrap; }

.lm-m-flying { position: absolute; z-index: 5; font-family: var(--mono); font-size: 10px; border-left: 3px solid var(--c-border); background: var(--c-bg); color: var(--c-fg); padding: 5px 8px; border-radius: 5px; white-space: nowrap; opacity: 0; left: 0; right: 0; text-align: center; pointer-events: none; }

@keyframes lm-m-fly1 { 0%,7% {opacity:0; top:60px;} 8% {opacity:1; top:60px;} 20% {opacity:1; top:297px;} 21%,100% {opacity:0; top:297px;} }
@keyframes lm-m-fly2 { 0%,32% {opacity:0; top:90px;} 33% {opacity:1; top:90px;} 45% {opacity:1; top:348px;} 46%,100% {opacity:0; top:348px;} }
@keyframes lm-m-fly3 { 0%,57% {opacity:0; top:120px;} 58% {opacity:1; top:120px;} 70% {opacity:1; top:400px;} 71%,100% {opacity:0; top:400px;} }
@keyframes lm-m-land1 { 0%,20% {opacity:0;} 22%,88% {opacity:1;} 92%,100% {opacity:0;} }
@keyframes lm-m-land2 { 0%,45% {opacity:0;} 47%,88% {opacity:1;} 92%,100% {opacity:0;} }
@keyframes lm-m-land3 { 0%,70% {opacity:0;} 72%,88% {opacity:1;} 92%,100% {opacity:0;} }

.lm-m-flying.lm-mf1 { animation: lm-m-fly1 12s ease-in-out infinite; }
.lm-m-flying.lm-mf2 { animation: lm-m-fly2 12s ease-in-out infinite; }
.lm-m-flying.lm-mf3 { animation: lm-m-fly3 12s ease-in-out infinite; }
.lm-m-app-row.lm-ml1 { animation: lm-m-land1 12s ease-in-out infinite; }
.lm-m-app-row.lm-ml2 { animation: lm-m-land2 12s ease-in-out infinite; }
.lm-m-app-row.lm-ml3 { animation: lm-m-land3 12s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .lm-m-flying { display: none; }
  .lm-m-app-row { opacity: 1 !important; animation: none !important; }
}

/* ---- «Интерфейс»: интерактивный демо-виджет ---- */
.lm-shot-win { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 18px 40px var(--shadow); }
.lm-shot-tabs { display: flex; gap: 3px; padding: 10px 14px 0; background: var(--panel); border-bottom: 1px solid var(--border); overflow: hidden; }
.lm-shot-tab { font-size: 12px; font-weight: 600; white-space: nowrap; padding: 8px 13px; border-radius: 7px 7px 0 0; color: var(--muted); cursor: pointer; user-select: none; }
.lm-shot-tab:hover { color: var(--text); }
.lm-shot-tab.lm-active { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-bottom-color: var(--surface); margin-bottom: -1px; }
.lm-shot-daynav { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--border); }
.lm-shot-daynav .lm-date { color: var(--text); font-weight: 700; font-size: 14px; text-align: center; }
.lm-shot-sync { display: flex; align-items: center; gap: 8px; padding: 8px 18px; font-family: var(--mono); font-size: 12px; color: var(--accent-dark); background: var(--accent-soft); }
.lm-shot-table { display: flex; flex-direction: column; }
.lm-shot-row { display: grid; grid-template-columns: 190px 1fr 1fr; gap: 0; border-bottom: 1px solid var(--border); }
.lm-shot-row:last-child { border-bottom: none; }
.lm-shot-cell { padding: 16px 18px; font-size: 13px; }
.lm-shot-cell + .lm-shot-cell { border-left: 1px solid var(--border); }
.lm-shot-who { font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.lm-shot-who .lm-t { display: block; font-weight: 400; color: var(--muted); font-family: var(--mono); font-size: 12px; margin-top: 2px; }
.lm-shot-subj { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: var(--c-bg); color: var(--c-fg); }
.lm-shot-cell.lm-muted { color: var(--muted); line-height: 1.6; }

/* -- вкладки «Ученики» / «Оплата уроков» -- */
.lm-tabview { display: grid; grid-template-columns: 190px 1fr; min-height: 360px; }
.lm-tabview.lm-payment { grid-template-columns: 170px 1fr 220px; }
.lm-roster { border-right: 1px solid var(--border); background: var(--output-bg); display: flex; flex-direction: column; max-height: 400px; overflow-y: auto; }
.lm-roster-item { padding: 9px 14px; font-size: 12px; border-bottom: 1px solid transparent; }
.lm-roster-item.lm-active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.lm-roster-actions { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-top: 1px solid var(--border); margin-top: auto; }
.lm-detail-pane { padding: 18px 20px; }
.lm-detail-top { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.lm-detail-head { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.lm-detail-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12.5px; color: var(--muted); }
.lm-detail-info { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.7; }
.lm-fake-input { font-family: var(--mono); font-size: 12.5px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; color: var(--text); }
.lm-ghost-btn { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); background: var(--surface); white-space: nowrap; }
.lm-lesson-history { margin-top: 16px; border-top: 1px solid var(--border); }
.lm-lh-row { display: grid; grid-template-columns: 120px 1fr 1fr; border-bottom: 1px solid var(--border); font-size: 11.5px; }
.lm-lh-cell { padding: 10px 12px; color: var(--muted); }
.lm-lh-cell + .lm-lh-cell { border-left: 1px solid var(--border); }
.lm-lh-cell .lm-lh-tag { color: var(--muted); font-family: var(--mono); font-size: 10.5px; }
.lm-detail-actions { display: flex; gap: 8px; margin-top: 16px; justify-content: flex-end; }

.lm-pay-list-wrap { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.lm-pay-list-title { padding: 12px 16px 0; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lm-pay-list { padding: 8px 16px; max-height: 220px; overflow-y: auto; }
.lm-pay-row { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11.5px; padding: 5px 0; color: var(--muted); border-bottom: 1px dashed var(--border); }
.lm-pay-balance { text-align: center; padding: 10px; font-weight: 700; font-size: 13px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--accent-soft); color: var(--accent-dark); }
.lm-pay-form { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.lm-pay-side { padding: 14px; overflow-y: auto; }
.lm-pay-side-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-bottom: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lm-pay-side-head .lm-pay-date-center { text-align: center; }
.lm-pay-side-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 11.5px; }
.lm-pay-side-row .lm-psn { font-weight: 600; }
.lm-pay-side-row .lm-pss { color: var(--accent-dark); font-size: 10.5px; white-space: nowrap; }

.lm-prog-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.lm-prog-title { text-align: center; padding: 18px 14px 14px; }
.lm-prog-title h3 { font-size: 19px; margin-bottom: 4px; }
.lm-prog-title p { font-size: 13px; color: var(--muted); }
.lm-prog-box { margin: 0 20px 16px; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.lm-prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 20px 16px; }
.lm-prog-grid .lm-pg-col { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.lm-pg-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.lm-pg-text { font-size: 12.5px; }

@media (max-width: 720px) {
  .lm-shot-row { grid-template-columns: 1fr; }
  .lm-shot-cell + .lm-shot-cell { border-left: none; border-top: 1px solid var(--border); }
  .lm-tabview, .lm-tabview.lm-payment { grid-template-columns: 1fr; }
  .lm-roster { max-height: 180px; border-right: none; border-bottom: 1px solid var(--border); }
  .lm-pay-list-wrap { border-right: none; border-bottom: 1px solid var(--border); }
  .lm-prog-grid { grid-template-columns: 1fr; }
  .lm-detail-top { grid-template-columns: 1fr; }
}

/* ---- финальный призыв к действию ---- */
.lm-cta { text-align: center; padding: 58px 0 70px; }

@media (max-width: 560px) {
  .lm-hero { padding-top: 20px; }
  .lm-hero h1 { font-size: 23px; margin-bottom: 18px; }
  .lm-list { margin-bottom: 22px; }
  .lm-list li { font-size: 15px; }
  .lm-actions { flex-direction: column; align-items: stretch; margin-bottom: 12px; }
  .lm-actions .btn { justify-content: center; }
}

/* ===================================================================
   Страница «Скачивание» (/projects/lesson-manager/download.html)
   Классы с префиксом dlp- используются только на этой странице.
   =================================================================== */

.dlp-page { padding: 64px 0 90px; }
.dlp-page h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; text-align: center; margin-bottom: 18px; }

.dlp-fallback { text-align: center; max-width: 560px; margin: 0 auto 44px; font-size: 15px; color: var(--muted); }
.dlp-fallback-link {
  display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 13.5px; color: var(--accent-dark);
  word-break: break-all; text-decoration: none; background: var(--panel);
  border-radius: 6px; padding: 8px 12px;
}

.dlp-explain { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.dlp-explain h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.dlp-explain p { font-size: 15px; color: var(--muted); }

.dlp-steps {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px 28px; align-items: start;
  max-width: 860px; margin: 0 auto;
}
.dlp-step { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dlp-step-label {
  display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--text);
}
.dlp-step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 13px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; flex: none;
}

/* воссозданное окно предупреждения Windows SmartScreen – не подчиняется теме сайта,
   выглядит так же, как настоящий системный диалог */
.dlp-win {
  width: 100%; max-width: 400px; border-radius: 8px;
  background: linear-gradient(180deg, #2e8bd6, #0d5aa0);
  box-shadow: 0 18px 40px var(--shadow), 0 0 0 1px rgba(0,0,0,0.15);
  font-family: "Segoe UI", var(--sans);
  color: #fff;
  position: relative;
  margin-top: 22px;
}
.dlp-win-inner { padding: 20px 22px 14px; }
.dlp-win-titlebar { display: flex; justify-content: flex-end; padding: 0 0 4px; }
.dlp-win-titlebar span { font-size: 12px; color: rgba(255,255,255,0.65); }
.dlp-win-title { font-size: 15px; font-weight: 700; line-height: 1.35; color: #fff; }
.dlp-win-body { padding: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,0.9); }
.dlp-win-more { display: inline-block; margin: 12px 0 0; font-size: 12.5px; color: #fff; text-decoration: underline; }
.dlp-win-appinfo { margin: 14px 0 0; font-size: 12px; color: rgba(255,255,255,0.9); line-height: 1.9; }
.dlp-win-appinfo b { font-weight: 600; color: #fff; }
.dlp-win-btnrow {
  display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 18px;
  border-top: 1px solid rgba(255,255,255,0.22); margin-top: 10px;
}
.dlp-win-btn {
  font-size: 12px; padding: 7px 13px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06); color: #fff; font-family: "Segoe UI", var(--sans);
  white-space: nowrap;
}

/* подсказка: красная обводка + подпрыгивающая стрелка над нужной кнопкой */
.dlp-hl {
  position: relative; border-radius: 4px;
  outline: 2px solid #ff4d4f; outline-offset: 3px;
  box-shadow: 0 0 10px 1px rgba(255,77,79,0.45);
}
.dlp-win-more.dlp-hl { padding: 3px 8px; }
.dlp-hl::before {
  content: "▼"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  color: #ffd43b; font-size: 13px; animation: dlp-bounce 1.2s ease-in-out infinite;
}
@keyframes dlp-bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }
@media (prefers-reduced-motion: reduce) { .dlp-hl::before { animation: none; } }

.dlp-back { text-align: center; margin-top: 64px; }

@media (max-width: 640px) {
  .dlp-page h1 { font-size: 26px; }
  .dlp-steps { grid-template-columns: 1fr; }
  .dlp-win { max-width: 320px; }
}
