:root {
  --ink: #0f2222;
  --page-bg: #eef6f5;
  --brand-top: #0d7373;
  --brand-bottom: #0b4f4f;
  --accent-top: #f0a202;
  --accent-bottom: #d98a00;
  --surface: #ffffff;
  --soft: #e3f0ee;
  --line: #d2e4e1;
  --muted: #5f7a78;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page-bg);
}

button,
input {
  font-family: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header,
.footer,
.main {
  width: min(1140px, 100%);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.header {
  height: 80px;
  background: var(--surface);
  border-bottom: 3px solid var(--brand-top);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 6px 22px rgba(11, 79, 79, 0.08);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__logo {
  width: 40px;
  height: 40px;
}

.brand__title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--brand-bottom);
}

.brand__sub {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.header__aside {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 3px solid var(--brand-top);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -6px 22px rgba(11, 79, 79, 0.07);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 16px 36px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  width: 30px;
  height: 30px;
}

.footer__copy {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.footer__copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-bottom);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__links a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-bottom);
}

.footer__links a:hover {
  color: var(--accent-bottom);
}

/* ---------- hero: card left, graphic right ---------- */

.hero {
  position: relative;
  min-height: 700px;
  margin: 24px 0;
}

.hero__visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 880px;
  height: 700px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--page-bg) 4%, rgba(238, 246, 245, 0) 62%);
}

.hero__card {
  position: relative;
  z-index: 1;
  width: 640px;
  margin-top: 92px;
  padding: 44px 40px;
  background: linear-gradient(165deg, var(--brand-top) 0%, var(--brand-bottom) 100%);
  border-left: 6px solid var(--accent-top);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(11, 79, 79, 0.22);
  color: #fff;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hero__lead,
.hero__body,
.hero__action {
  display: flex;
  flex-direction: column;
}

.hero__lead {
  gap: 14px;
}

.hero__eyebrow {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-top);
}

.hero__title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.5px;
}

.hero__body {
  gap: 14px;
  font-size: 16.5px;
  line-height: 1.5;
}

.hero__text {
  margin: 0;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

.hero__note {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid rgba(240, 162, 2, 0.6);
  font-size: 15px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.78);
}

.hero__action {
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, var(--accent-top) 0%, var(--accent-bottom) 100%);
}

.btn--start {
  height: 62px;
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition: transform 0.15s ease;
}

.btn--start:hover {
  transform: translateY(-1px);
}

.hero__time {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

[hidden] {
  display: none !important;
}

#screen-quiz {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 36px;
}

/* ---------- quiz ---------- */

.quiz {
  width: min(880px, 100%);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 44px rgba(11, 79, 79, 0.14);
  overflow: hidden;
}

.quiz__bar {
  height: 5px;
  background: linear-gradient(90deg, var(--brand-top) 0%, var(--accent-top) 100%);
}

.quiz__progress {
  padding: 24px 28px 0;
}

.quiz__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.quiz__track {
  height: 6px;
  border-radius: 99px;
  background: var(--soft);
  overflow: hidden;
}

.quiz__fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-top) 0%, var(--accent-top) 100%);
  transition: width 0.25s ease;
}

.quiz__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 28px 30px;
}

.quiz__question {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.quiz__hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

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

/* відповіді-пігулки з акцентною смужкою зліва */
.answer {
  position: relative;
  width: 100%;
  min-height: 60px;
  padding: 18px 22px 18px 26px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.answer::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 4px;
  height: 0;
  border-radius: 99px;
  background: var(--accent-top);
  transform: translateY(-50%);
  transition: height 0.18s ease;
}

.answer:hover {
  border-color: var(--brand-top);
  background: var(--soft);
}

.answer:hover::before {
  height: 26px;
}

.answer.is-selected {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(180deg, var(--brand-top) 0%, var(--brand-bottom) 100%);
}

.answer.is-selected::before {
  height: 26px;
  background: var(--accent-top);
}

/* ---------- static pages ---------- */

.panel {
  width: 100%;
  margin: 28px 0;
  padding: 44px 42px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(11, 79, 79, 0.08);
}

.thanks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.thanks__icon {
  width: 112px;
  height: 112px;
}

.thanks__title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--brand-bottom);
}

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

.thanks__subtitle {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.thanks__text {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.55;
  color: #28403f;
}

.thanks__next {
  width: 100%;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--soft);
}

.thanks__next h2 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 800;
  color: var(--brand-bottom);
}

.thanks__next ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.thanks__next li {
  font-size: 16px;
  line-height: 1.5;
}

.thanks__quote {
  width: 100%;
  margin: 0;
  padding: 18px;
  border-left: 5px solid var(--accent-top);
  border-radius: var(--radius-sm);
  background: #fdf5e6;
  font-size: 16px;
  font-weight: 700;
}

.doc__title {
  margin: 0 0 12px;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--brand-bottom);
}

.doc__date {
  margin: 0 0 26px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.doc__sections {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.doc__sections section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc__sections h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--brand-top);
}

.doc__sections p,
.doc__sections li {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
}

.doc__sections ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.doc__sign {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1.5px solid var(--line);
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 20px 20px 24px;
  }

  .hero__visual {
    position: relative;
    width: 100%;
    height: 260px;
  }

  .hero__fade {
    display: none;
  }

  .hero__card {
    width: 100%;
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .header,
  .footer,
  .main {
    width: 100%;
  }

  .header {
    height: auto;
  }

  .header__inner {
    padding: 14px 18px;
  }

  .header__aside {
    display: none;
  }

  .hero {
    margin: 18px 18px 22px;
  }

  .hero__visual {
    height: 190px;
  }

  .hero__card {
    padding: 26px 20px;
  }

  .hero__title {
    font-size: 25px;
  }

  .hero__body {
    font-size: 15px;
  }

  #screen-quiz {
    align-items: stretch;
    padding: 22px 18px 26px;
  }

  .quiz__progress {
    padding: 20px 18px 0;
  }

  .quiz__body {
    padding: 18px 18px 24px;
  }

  .quiz__question {
    font-size: 18.5px;
  }

  .answer {
    border-radius: var(--radius-md);
    padding: 16px 18px 16px 24px;
    font-size: 15px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    padding: 22px 18px;
    text-align: center;
  }

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

  .panel {
    margin: 20px 18px;
    padding: 26px 18px;
  }

  .thanks {
    align-items: center;
    text-align: center;
  }

  .thanks__next {
    padding: 18px 14px;
    text-align: left;
  }

  .doc__title {
    font-size: 24px;
  }

  .doc__sections h2 {
    font-size: 18px;
  }

  .doc__sections p,
  .doc__sections li,
  .thanks__text,
  .doc__sign {
    font-size: 15.5px;
  }
}
