@font-face {
  font-family: Work Sans; src: url("material/work-sans.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: Work Sans; src: url("material/work-sans-bold.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
:root {
  --paper: #f7f3ef; --white: #fff; --ink: #171313; --muted: #655b56;
  --line: #d9d0cb; --red: #b20d2c; --tint: #f6e7e9; --wrap: 1100px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.52 "Work Sans", system-ui, sans-serif; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { width: min(calc(100% - 2.5rem), var(--wrap)); margin-inline: auto; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 10; background: var(--white); padding: .55rem .8rem; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.header-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.6rem; padding-block: .55rem; }
.brand { min-width: 0; display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; line-height: 1.2; }
.brand img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.1rem; }
.brand small { color: var(--muted); font-size: .84rem; margin-top: .2rem; }
.course-nav { display: flex; gap: .6rem; align-items: center; }
.course-menu { display: flex; position: relative; border: 1px solid var(--line); border-radius: 5px; white-space: nowrap; }
.course-menu:has([aria-current="page"]) { border-color: var(--red); background: var(--tint); color: #8b0b22; }
.course-start { display: inline-flex; align-items: center; gap: .42rem; padding: .5rem .72rem; text-decoration: none; min-height: 44px; font-weight: 700; }
.course-start small { font-weight: 400; font-size: .8rem; }
.module-toggle { min-width: 44px; min-height: 44px; background: transparent; border: 0; border-left: 1px solid var(--line); line-height: 1; }
.module-toggle::before { content: ""; display: inline-block; width: .52rem; height: .52rem; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-.12rem) rotate(45deg); }
.module-toggle[aria-expanded="true"]::before { transform: translateY(.1rem) rotate(225deg); }
.course-start:hover, .module-toggle:hover { color: var(--red); }
.dropdown {
  position: absolute; z-index: 6; inset-inline-end: 0; top: calc(100% + .46rem);
  min-width: 260px; width: max-content; max-width: min(320px, calc(100vw - 1.5rem));
  max-height: min(70dvh, 470px); overflow: auto; white-space: normal;
  color: var(--ink); background: var(--white); border: 1px solid var(--line);
  border-radius: 5px; box-shadow: 0 12px 26px #17131315; padding: .35rem;
}
.dropdown a { display: flex; align-items: center; min-height: 44px; padding: .4rem .6rem; text-decoration: none; line-height: 1.25; border-radius: 3px; }
.dropdown a:hover, .dropdown a[aria-current="location"] { background: var(--tint); color: #8b0b22; }
.dropdown .day { font-size: .77rem; font-weight: 700; color: var(--muted); margin: .45rem .6rem .05rem; }
.course-main { padding-block: clamp(.75rem, 2.3vw, 1.45rem) 1.6rem; }
.course-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .1rem 1rem; margin-bottom: .5rem; }
.course-heading h1 { font-size: 1.18rem; }
.current-module { font-size: .9rem; color: var(--muted); }
.presentation-shell { min-width: 0; }
.deck-frame { width: 100%; aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 6px 6px 0 0; }
.deck-message { position: absolute; inset: 0; display: grid; place-content: center; padding: 1rem; color: var(--muted); }
.reveal { width: 100%; height: 100%; color: var(--ink); font-family: "Work Sans", system-ui, sans-serif; }
.reveal .slides > section { height: 100%; padding: 0; text-align: left; }
.reveal .slides > section > .slide-layout { width: 100%; height: 100%; display: grid; align-items: center; background: var(--white); overflow: hidden; }
.reveal .slides > section > .slide-layout.with-photo { grid-template-columns: minmax(0, 1.09fr) minmax(0, .91fr); }
.slide-copy { padding: 48px 75px; }
.with-photo .slide-copy { padding: 42px 40px 44px 62px; }
.slide-module { color: var(--red); font-weight: 700; font-size: 32px; margin: 0 0 13px; }
.slide-copy h2 { margin: 0 0 22px; font-size: 68px; letter-spacing: -.055em; line-height: 1.04; text-wrap: balance; }
.with-photo .slide-copy h2 { font-size: 58px; }
.slide-lead { font-size: 38px; line-height: 1.28; color: var(--muted); max-width: 37ch; }
.slide-points { margin: 20px 0 0; padding: 0 0 0 1.08em; font-size: 36px; line-height: 1.28; max-width: 52ch; }
.with-photo .slide-points, .with-photo .slide-lead { font-size: 34px; }
.slide-points li + li { margin-top: .25em; }
.slide-points li::marker { color: var(--red); }
.slide-photo { width: 100%; height: 100%; min-height: 0; }
.slide-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.worksheet-link { display: inline-block; margin-top: 21px; font-weight: 700; font-size: 32px; color: #8b0b22; text-underline-offset: .2em; }
.toolbar, .form-actions { display: flex; align-items: center; gap: .5rem; }
.toolbar { background: var(--white); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; padding: .5rem; justify-content: space-between; flex-wrap: wrap; }
.slide-navigation, .slide-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; background: var(--white); padding: .44rem .73rem; font-size: .91rem; line-height: 1.16; font-weight: 700; }
.button:hover:not(:disabled), .button[aria-expanded="true"] { border-color: var(--red); color: #8b0b22; }
.button.direction { min-width: 46px; font-size: 1.75rem; padding-block: 0 .2rem; }
.button.primary { color: var(--white); background: var(--red); border-color: var(--red); }
.button.primary:hover:not(:disabled) { color: var(--white); background: #8b0b22; }
.button:disabled { opacity: .47; cursor: default; }
.slide-number { min-width: 4.2rem; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
.speaker-panel { background: var(--white); border-left: 3px solid var(--red); padding: .9rem 1.1rem; margin-top: .65rem; }
.speaker-panel h2 { font-size: 1.02rem; }
.speaker-panel p { color: var(--muted); max-width: 78ch; margin-top: .4rem; }
.action-status { color: var(--muted); font-size: .88rem; }
.action-status:not(:empty) { margin-top: .6rem; }
.presentation-shell:is(:fullscreen,.fullscreen-fallback) { display: flex; flex-direction: column; align-items: center; background: var(--paper); padding: .6rem; overflow: auto; overscroll-behavior: contain; }
.presentation-shell.fullscreen-fallback { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; z-index: 20; }
body.fullscreen-active { overflow: hidden; }
.presentation-shell:is(:fullscreen,.fullscreen-fallback) .deck-frame { margin-top: auto; flex: 0 0 auto; width: min(100%, calc(70dvh * 16 / 9)); }
.presentation-shell:is(:fullscreen,.fullscreen-fallback) :is(.toolbar,.speaker-panel) { flex: 0 0 auto; width: min(100%, calc(70dvh * 16 / 9)); }
.presentation-shell:is(:fullscreen,.fullscreen-fallback) :is(.toolbar:last-child,.speaker-panel) { margin-bottom: auto; }
.presentation-shell:is(:fullscreen,.fullscreen-fallback) .speaker-panel { max-height: 17dvh; overflow: auto; }
.form-main { max-width: 830px; padding-block: 1.25rem 2.5rem; }
.form-actions { justify-content: flex-end; flex-wrap: wrap; }
.anamnese { background: var(--white); border: 1px solid var(--line); margin-top: .65rem; padding: clamp(.85rem, 4vw, 2.2rem); }
.form-header { padding-bottom: .8rem; margin-bottom: .9rem; border-bottom: 2px solid var(--red); }
.form-header p { color: var(--red); font-weight: 700; font-size: .9rem; }
.form-header h1 { margin: .25rem 0 0; font-size: clamp(1.55rem, 4vw, 2.35rem); line-height: 1.08; letter-spacing: -.045em; }
.form-section { margin-top: .85rem; break-inside: avoid; }
.form-section h2 { margin: 0 0 .35rem; font-size: 1.05rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .32rem 1rem; }
.field { display: block; min-width: 0; font-size: .87rem; font-weight: 700; margin-bottom: .3rem; }
.field.full { grid-column: 1 / -1; }
.field :is(input,textarea) { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: .18rem .45rem; margin-top: .13rem; display: block; width: 100%; font-size: .95rem; font-weight: 400; }
.field input { min-height: 2.15rem; }
.field textarea { resize: vertical; min-height: 2.8rem; }
.print-value, .print-document { display: none; }

@media (max-width: 680px) {
  .wrap { width: calc(100% - 1.35rem); }
  .header-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: .5rem; }
  .site-header .brand img { width: 37px; height: 37px; }
  .course-menu:first-child .dropdown { inset-inline: 0 auto; }
  .course-menu:last-child .dropdown { inset-inline: auto 0; }
  .course-nav { max-width: 100%; }
  .toolbar { justify-content: flex-start; }
  .button { font-size: .85rem; }
}
@media (max-width: 440px) {
  .course-menu:last-child .dropdown { inset-inline: auto 0; }
  .slide-tools { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
}

@page handout { size: A4 landscape; margin: 12mm; }
@page questionnaire { size: A4 portrait; margin: 13mm; }

@media print {
  html, body { background: #fff; }
  .course-page { page: handout; }
  .form-page { page: questionnaire; }
  .course-page > :not(.print-document), .form-page .site-header, .form-actions, .form-page .action-status { display: none !important; }
  .print-document { display: block; }
  .print-sheet { page: handout; break-after: page; display: grid; grid-template-columns: minmax(0, 1.23fr) minmax(0, .9fr); grid-template-rows: min-content 1fr; column-gap: 9mm; border-top: 1pt solid #b20d2c; min-height: 175mm; }
  .print-sheet:last-child { break-after: auto; }
  .print-sheet-header { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 5mm; font-size: 9pt; margin: 4mm 0 5mm; }
  .print-slide { min-width: 0; }
  .print-slide h2 { font-size: 24pt; line-height: 1.05; margin-bottom: 4mm; }
  .print-slide p, .print-slide li, .print-notes p { font-size: 11pt; line-height: 1.36; }
  .print-slide ul { padding-left: 5mm; margin: 4mm 0; }
  .print-slide li + li, .print-notes p + p { margin-top: 2mm; }
  .print-slide img { display: block; width: auto; max-width: 100%; height: auto; max-height: 76mm; margin-top: 4mm; object-fit: contain; }
  .print-notes { min-width: 0; border-left: 1px solid #cfc8c4; padding-left: 7mm; }
  .print-notes h3 { margin: 0 0 3mm; font-size: 12pt; }
  .print-notes h3.writing-title { margin-top: 6mm; }
  .writing-line { height: 8mm; border-bottom: 1px solid #a59e9b; }
  .form-main { width: 100%; padding: 0; }
  .anamnese { margin: 0; padding: 0; border: 0; }
  .form-header { margin: 0 0 3mm; padding-bottom: 3mm; }
  .form-header h1 { font-size: 24pt; }
  .form-section { margin-top: 3.1mm; }
  .form-section h2 { font-size: 11pt; margin: 0 0 1mm; }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 5mm; }
  .field { font-size: 8.8pt; margin-bottom: 1mm; }
  .field :is(input,textarea) { display: none; }
  .print-value { display: block; min-height: 5mm; margin-top: .4mm; border-bottom: .5pt solid #a59e9b; font-size: 9pt; font-weight: 400; white-space: pre-wrap; overflow-wrap: anywhere; }
  .field.multiline .print-value { min-height: 9mm; }
}

.slide-photo { position: relative; display: block; border: 0; padding: 0; background: var(--paper); }
.photo-caption { position: absolute; inset-inline-end: 22px; bottom: 22px; border-radius: 4px; background: var(--white); color: var(--ink); padding: 8px 13px; font-size: 24px; font-weight: 700; }
.photo-viewer { padding: 0; border: 0; background: var(--white); color: var(--ink); max-width: min(94vw, 1050px); max-height: 94dvh; }
.photo-viewer::backdrop { background: #171313b5; }
.photo-viewer img { display: block; max-width: 100%; max-height: 78dvh; object-fit: contain; margin-inline: auto; }
.photo-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .65rem .9rem; font-size: .9rem; }
@media (max-width: 420px) {
  .course-nav { flex-wrap: wrap; }
  .course-start { padding-inline: .45rem; }
  .course-menu:first-child .dropdown { max-width: calc(100vw - 1.5rem); }
}
