:root {
  --vita-blue: #0057a8;
  --vita-blue-dark: #08335e;
  --vita-red: #d93a3f;
  --vita-red-dark: #a7202c;
  --text: #0f1a2a;
  --muted: #4f5d71;
  --surface: #ffffff;
  --soft-surface: #f8fbff;
  --border: #dce5f1;
  --shadow: 0 16px 36px rgba(8, 51, 94, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 87, 168, 0.18), transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(217, 58, 63, 0.16), transparent 32%),
    linear-gradient(150deg, #f4f9ff 0%, #ecf3ff 60%, #fef5f5 100%);
  padding: 24px;
}

.app {
  max-width: 1140px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(0, 87, 168, 0.06), rgba(217, 58, 63, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand img {
  height: 42px;
  width: auto;
}

.brand span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--vita-blue-dark);
  letter-spacing: 0;
}

.meta {
  font-size: 0.96rem;
  color: var(--muted);
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 7px;
  background: #e5edf8;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  transition: width 220ms ease;
  background: linear-gradient(90deg, var(--vita-blue), var(--vita-red));
}

.content {
  padding: 28px;
}

.slide {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
  animation: fade 260ms ease;
}

.slide-footer {
  grid-column: 1 / -1;
  padding-top: 4px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: left;
}

.slide-footer p {
  margin: 0 0 4px;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eyebrow {
  color: var(--vita-red-dark);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  font-family: "Source Serif 4", Georgia, serif;
  margin: 0;
  font-size: clamp(1.55rem, 1.9vw, 2.05rem);
  line-height: 1.2;
  color: var(--vita-blue-dark);
  text-transform: uppercase;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 700;
}

.rich p {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.62;
}

.rich ul,
.rich ol {
  margin: 4px 0 10px 20px;
  padding: 0;
}

.rich li {
  margin-bottom: 8px;
  font-size: 1.02rem;
  line-height: 1.5;
}

.rich blockquote {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--vita-blue);
  background: #f1f7ff;
  border-radius: 8px;
  color: #1f3451;
  font-size: 1.01rem;
}

.image-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.image-frame {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10, 55, 99, 0.10);
  min-height: 260px;
}

.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-placeholder {
  min-height: 260px;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(0, 87, 168, 0.10), rgba(217, 58, 63, 0.10)),
    repeating-linear-gradient(45deg, #ffffff 0, #ffffff 12px, #f4f8fe 12px, #f4f8fe 24px);
  color: var(--vita-blue-dark);
  text-align: center;
  font-weight: 700;
}

.img-caption {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
  text-align: center;
}

.download-wrap {
  display: grid;
  gap: 12px;
}

.download-item {
  border: 1px solid #d0deef;
  background: var(--soft-surface);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.download-name {
  font-size: 1rem;
  line-height: 1.4;
  color: #183757;
  font-weight: 700;
}

.download-btn {
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 13px;
  background: var(--vita-blue);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.quiz {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: #fbfdff;
}

.quiz-count {
  color: var(--vita-blue-dark);
  font-weight: 700;
  font-size: 0.96rem;
  margin-bottom: 8px;
}

.quiz-q {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 700;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: start;
  gap: 9px;
  border: 1px solid #cedaeb;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  cursor: pointer;
}

.quiz-option input {
  margin-top: 2px;
  accent-color: var(--vita-blue);
}

.quiz-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.feedback {
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 0.99rem;
  line-height: 1.45;
  font-weight: 600;
}

.feedback.ok {
  background: #e8f7ef;
  color: #1d6a3f;
  border: 1px solid #b8e3cb;
}

.feedback.err {
  background: #fff1f2;
  color: #8b1d2b;
  border: 1px solid #f2c2c8;
}

.rights-box {
  border: 1px solid #d0deef;
  border-radius: 8px;
  background: var(--soft-surface);
  padding: 12px 14px;
}

.rights-box p {
  margin: 0 0 10px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.rights-brand {
  width: 100%;
}

.rights-brand-cc {
  text-align: center;
}

.rights-brand-eu {
  text-align: left;
}

.rights-brand + .rights-brand {
  margin-top: 10px;
}

.rights-brand img {
  display: block;
  height: 44px;
  width: auto;
}

.rights-brand-cc img {
  margin: 0 auto;
}

.rights-brand-eu img {
  margin-left: calc(50% - 63px);
}

.controls {
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: #fdfefe;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-help {
  flex: 1 1 260px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, opacity 120ms ease;
  font-family: inherit;
}

button:active {
  transform: translateY(1px);
}

.btn-main {
  background: var(--vita-blue);
  color: #ffffff;
}

.btn-main:hover {
  filter: brightness(1.05);
}

.btn-alt {
  background: #ffffff;
  color: var(--vita-blue-dark);
  border-color: #b8cbe4;
}

.btn-accent {
  background: var(--vita-red);
  color: #ffffff;
}


#firstBtn {
  background: rgba(0, 87, 168, 0.5);
  color: #ffffff;
  border-color: transparent;
}

#prevBtn {
  background: rgba(217, 58, 63, 0.5);
  color: #ffffff;
  border-color: transparent;
}

#nextBtn {
  background: var(--vita-red);
  color: #ffffff;
}

#lastBtn {
  background: var(--vita-blue);
  color: #ffffff;
}

#firstBtn:hover,
#prevBtn:hover,
#nextBtn:hover,
#lastBtn:hover {
  filter: brightness(1.05);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

a {
  color: var(--vita-blue);
  font-weight: 700;
}

@media (max-width: 920px) {
  body {
    padding: 12px;
  }

  .slide {
    grid-template-columns: 1fr;
  }

  .image-frame,
  .visual-placeholder {
    min-height: 220px;
  }

  .content,
  .controls,
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 520px) {
  .brand {
    min-width: 0;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .controls,
  .button-row {
    width: 100%;
  }

  .nav-help {
    width: 100%;
    order: 3;
  }

  .button-row button {
    flex: 1;
  }
}
