:root {
  color-scheme: light;
  --brand-green: #7ec244;
  --brand-green-dark: #5ea730;
  --brand-green-soft: #edf7e4;
  --brand-blue: #20bee5;
  --brand-ink: #1c2f39;
  --brand-muted: #72818d;
  --brand-bg: #f3f5f7;
  --brand-card: #ffffff;
  --brand-footer: #063533;
  --brand-line: #e7ebef;
  --danger: #be123c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--brand-bg);
  color: var(--brand-ink);
  font-family: Manrope, "Avenir Next", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px 8px;
}

.brand {
  display: block;
  min-width: 220px;
}

.brand img {
  width: min(320px, 72vw);
  height: auto;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.contacts {
  display: flex;
  gap: 34px;
  text-align: right;
}

.contacts small {
  display: block;
  color: var(--brand-muted);
  font-size: 12px;
}

.contacts a {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.steps-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
}

.steps-nav a {
  border-radius: 999px;
  padding: 9px 16px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.steps-nav a.active,
.steps-nav a:hover {
  background: var(--brand-green-soft);
  color: #5e972d;
}

.main {
  padding-block: 26px 40px;
}

.card,
.card-inner {
  border: 1px solid var(--brand-line);
  border-radius: 24px;
  background: var(--brand-card);
  box-shadow: 0 20px 36px -32px rgba(6, 33, 50, 0.35);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1.2fr);
  gap: 24px;
  margin-bottom: 20px;
  padding: 28px;
}

.intro h1,
.step-head h2,
.section-title h3 {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 0;
}

.intro h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.intro p:last-child {
  margin: 0;
  color: #475569;
  font-size: 16px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #5e972d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-card {
  display: none;
  padding: 26px;
}

.step-card.active {
  display: block;
}

.muted-step {
  margin-top: 20px;
}

.step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.step-head h2 {
  font-size: 28px;
  line-height: 1.15;
}

.required-mark {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dce9d1;
  border-radius: 999px;
  background: #f7fbf2;
  padding: 8px 12px;
  color: #4f7f28;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.program-card {
  position: relative;
  min-height: 152px;
  border: 1px solid #dbe5d2;
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.program-card:hover {
  transform: translateY(-2px);
  border-color: #b9d99a;
}

.program-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.program-card strong {
  display: block;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.25;
}

.program-card span {
  display: block;
  margin-top: 12px;
  color: #64748b;
  font-size: 14px;
}

.program-card:has(input:checked) {
  border-color: var(--brand-green);
  background: #f8fcf4;
  box-shadow: 0 18px 34px -28px rgba(6, 33, 50, 0.45), inset 0 0 0 2px rgba(126, 194, 68, 0.22);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label span,
.question-title {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.brand-input {
  width: 100%;
  border: 1px solid #dbe2e9;
  border-radius: 14px;
  background: #fff;
  padding: 11px 12px;
  color: var(--brand-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-input:focus {
  border-color: #97d767;
  box-shadow: 0 0 0 3px rgba(126, 194, 68, 0.14);
}

.brand-input:user-invalid,
.question.invalid textarea {
  border-color: #fb7185;
}

.field-error {
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.actions.split {
  justify-content: space-between;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.brand-btn,
.brand-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 800;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.brand-btn {
  border: 0;
  background: var(--brand-green);
  color: #fff;
}

.brand-btn:hover {
  background: var(--brand-green-dark);
}

.brand-btn-outline {
  border: 1px solid #dbe5d2;
  background: #fff;
  color: #44621f;
}

.brand-btn-outline:hover {
  border-color: #b9d99a;
  background: var(--brand-green-soft);
}

.selected-program {
  margin-bottom: 18px;
  border: 1px solid #dce9d1;
  border-radius: 18px;
  background: #f7fbf2;
  padding: 14px 16px;
  color: #315a1d;
  font-weight: 800;
}

.materials-workbench {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.material-panel {
  overflow: hidden;
  border: 1px solid #e1e7ee;
  border-radius: 18px;
  background: #fff;
}

.material-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf1f5;
  padding: 12px 14px;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.material-panel summary::-webkit-details-marker {
  display: none;
}

.material-panel summary b {
  color: #5e972d;
  font-size: 12px;
}

.material-panel:not([open]) summary {
  border-bottom: 0;
}

.material-panel:not([open]) summary b::before {
  content: "Развернуть";
  color: #5e972d;
  font-size: 12px;
}

.material-panel:not([open]) summary b {
  font-size: 0;
}

.file-link {
  display: block;
  border-top: 1px solid #edf1f5;
  padding: 11px 14px;
  color: #5e972d;
  font-size: 14px;
  font-weight: 800;
}

.file-link.compact {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid #dbe5d2;
  border-radius: 999px;
  padding: 7px 13px;
  background: #fff;
}

.file-link.compact:hover {
  background: var(--brand-green-soft);
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  background: #071315;
}

.video-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 68vh;
  background: #071315;
  object-fit: contain;
}

.video-center-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(7, 19, 21, 0.72);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  transform: translate(-50%, -50%);
  transition: opacity 0.18s ease, background 0.18s ease;
}

.video-center-play:hover {
  background: rgba(126, 194, 68, 0.92);
}

.video-player.is-playing .video-center-play {
  opacity: 0;
  pointer-events: none;
}

.video-controls {
  position: absolute;
  inset: auto 12px 12px;
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr) auto auto minmax(90px, 120px) auto auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(6, 22, 24, 0.86);
  padding: 10px;
  color: #fff;
  box-shadow: 0 18px 34px -24px rgba(0, 0, 0, 0.8);
}

.video-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.video-control-btn:hover {
  border-color: rgba(126, 194, 68, 0.72);
  background: rgba(126, 194, 68, 0.26);
}

.video-time {
  display: inline-flex;
  gap: 5px;
  min-width: 90px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.video-progress,
.video-volume {
  width: 100%;
  accent-color: var(--brand-green);
}

.video-speed {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
  outline: none;
}

.video-speed option {
  color: #0f172a;
}

.video-panel {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.document-panel {
  width: 100%;
  max-width: 100%;
}

.document-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f5;
}

.document-toolbar strong {
  color: #0f172a;
  font-size: 15px;
}

.document-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.pdf-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid #dbe5d2;
  border-radius: 999px;
  background: #fff;
}

.pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #2f4534;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pdf-btn-text {
  font-size: 13px;
  font-weight: 800;
}

.pdf-btn:hover {
  background: var(--brand-green-soft);
}

.pdf-btn:active {
  background: #dcefca;
}

.pdf-pageinfo {
  min-width: 46px;
  padding: 0 4px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pdf-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdf-viewport {
  position: relative;
  height: 720px;
  overflow: auto;
  background: #eef1f4;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.pdf-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  width: max-content;
  min-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  min-height: 100%;
}

.pdf-page {
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
  background: #fff;
  overflow: hidden;
}

.pdf-page canvas {
  display: block;
}

.pdf-status {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: var(--brand-muted);
  font-weight: 600;
}

.questionnaire {
  margin-top: 18px;
  padding: 22px;
  box-shadow: none;
}

.section-title {
  margin-bottom: 16px;
}

.section-title h3 {
  font-size: 22px;
}

.question {
  border: 0;
  border-top: 1px solid #e7ecf1;
  margin: 0;
  min-inline-size: 0;
  padding: 20px 0;
}

.question:first-child {
  border-top: 0;
  padding-top: 4px;
}

.question-comment {
  display: block;
  margin-top: 4px;
}

.question-comment > span {
  margin-bottom: 6px;
  color: #6b7a89;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.question-comment textarea {
  min-height: 92px;
  background: #fbfdf9;
}

textarea.brand-input {
  resize: vertical;
  line-height: 1.55;
}

textarea.brand-input::placeholder {
  color: #9aa7b2;
}

.answer-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 12px;
}

.answer-options label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid #dbe5d2;
  border-radius: 999px;
  padding: 8px 14px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.answer-options input {
  position: absolute;
  opacity: 0;
}

.answer-options label:has(input:checked) {
  border-color: var(--brand-green);
  background: var(--brand-green-soft);
  color: #4f7f28;
}

.security-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  border-top: 1px solid #e7ecf1;
  padding-top: 18px;
}

.turnstile-box {
  min-height: 65px;
  max-width: 100%;
}

.honeypot-input {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  margin-top: 16px;
  background: var(--brand-footer);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-block: 38px;
}

.site-footer img {
  width: 230px;
  height: auto;
}

.site-footer p,
.site-footer ul {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 980px) {
  .contacts {
    display: none;
  }

  .intro,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-workbench {
    grid-template-columns: 1fr;
  }

  .pdf-viewport {
    height: 620px;
  }
}

@media (max-width: 680px) {
  .main {
    padding-block: 16px 28px;
  }

  .intro,
  .step-card {
    padding: 20px;
  }

  .step-head,
  .actions.split {
    align-items: stretch;
    flex-direction: column;
  }

  .program-grid,
  .materials-workbench {
    grid-template-columns: 1fr;
  }

  .video-controls {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-radius: 0;
    border-inline: 0;
    border-bottom: 0;
  }

  .video-progress {
    flex: 1 0 100%;
    order: -1;
  }

  .video-time {
    min-width: 82px;
  }

  .video-control-btn[data-skip] {
    min-width: 52px;
  }

  .video-volume {
    display: none;
  }

  .video-player video {
    max-height: 58vh;
  }

  .document-tools {
    width: 100%;
    justify-content: space-between;
  }

  .pdf-links {
    flex: 1 0 100%;
  }

  .pdf-links .file-link.compact {
    flex: 1;
    justify-content: center;
  }

  .pdf-viewport {
    height: 70vh;
  }

  .download-actions,
  .actions {
    justify-content: stretch;
  }

  .security-check {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-btn,
  .brand-btn-outline {
    width: 100%;
  }
}
