:root {
  --body-ink: #15202b;
  --backdrop: #f1f5f9;
  --navy: #1f3a5f;
  --navy-dark: #122742;
  --grow: #16a34a;
  --grow-light: #4ade80;
  --panel: #ffffff;
  --mist: #e8eef5;
  --hairline: #d8e2ec;
  --quiet: #647689;
  --round-xl: 28px;
  --round-lg: 22px;
  --round-md: 16px;
}

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

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

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

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(1100px, 100%);
}

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

.header {
  margin: 18px 0 0;
  background: var(--panel);
  border-radius: var(--round-xl);
  box-shadow: 0 10px 28px rgba(18, 39, 66, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 30px;
}

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

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

.brand__title {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
}

.brand__sub {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--quiet);
}

.header__aside {
  padding: 7px 16px;
  border-radius: 99px;
  background: var(--mist);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
}

.footer {
  margin: 0 0 18px;
  margin-top: auto;
  background: var(--panel);
  border-radius: var(--round-xl);
  box-shadow: 0 -8px 28px rgba(18, 39, 66, 0.07);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 30px;
}

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

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

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

.footer__copy strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}

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

.footer__links a {
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--mist);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
}

.footer__links a:hover {
  background: var(--grow);
  color: #fff;
}

/* ---------- hero: graphic as full background, narrow card centred ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 660px;
  margin: 22px 0;
  padding: 56px 24px;
  border-radius: var(--round-xl);
  overflow: hidden;
}

.hero__visual {
  position: absolute;
  inset: 0;
}

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

.hero__fade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(18, 39, 66, 0.25) 0%, rgba(18, 39, 66, 0.72) 70%);
}

.hero__card {
  position: relative;
  z-index: 1;
  width: min(580px, 100%);
  padding: 38px 34px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--round-lg);
  box-shadow: 0 24px 60px rgba(9, 24, 42, 0.4);
  text-align: center;
}

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

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

.hero__lead {
  gap: 12px;
}

.hero__eyebrow {
  margin: 0 auto;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(22, 163, 74, 0.12);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--grow);
}

.hero__title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--navy-dark);
}

.hero__body {
  gap: 12px;
  font-size: 16px;
  line-height: 1.6;
}

.hero__text {
  margin: 0;
  color: #3c4c5d;
}

.hero__note {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--grow);
}

.hero__action {
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: var(--grow);
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.3);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: #12873d;
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.38);
}

.btn--start {
  height: 60px;
  border-radius: 99px;
  font-size: 17px;
  font-weight: 800;
}

.hero__time {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--quiet);
}

[hidden] {
  display: none !important;
}

#screen-quiz,
#screen-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px 34px;
}

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

.quiz {
  width: min(840px, 100%);
  background: var(--panel);
  border-radius: var(--round-xl);
  box-shadow: 0 18px 46px rgba(18, 39, 66, 0.12);
  overflow: hidden;
}

.quiz__bar {
  height: 6px;
  background: linear-gradient(90deg, var(--grow) 0%, var(--grow-light) 100%);
}

.quiz__progress {
  padding: 26px 30px 0;
}

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

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

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

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

.quiz__question {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--navy-dark);
}

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

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

/* відповіді-рядки з кружком-радіо */
.answer {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 62px;
  padding: 16px 22px;
  border: 2px solid var(--mist);
  border-radius: var(--round-md);
  background: var(--panel);
  color: var(--body-ink);
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.answer::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid var(--hairline);
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.answer:hover {
  border-color: var(--grow-light);
  background: #f4fbf6;
}

.answer:hover::before {
  border-color: var(--grow);
}

.answer.is-selected {
  border-color: var(--grow);
  background: #eefaf1;
}

.answer.is-selected::before {
  border-color: var(--grow);
  box-shadow: inset 0 0 0 4px var(--grow);
}

/* ---------- form: doar adresa de e-mail ---------- */

.form-card {
  width: min(600px, 100%);
  padding: 38px 34px;
  background: var(--panel);
  border-radius: var(--round-xl);
  box-shadow: 0 18px 46px rgba(18, 39, 66, 0.12);
}

.form-card__title {
  margin: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--navy-dark);
}

.form-card__lead {
  margin: 10px 0 0;
  text-align: center;
  font-size: 15.5px;
  line-height: 1.6;
  color: #4a5c6e;
}

.form-card__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.field {
  width: 100%;
  height: 58px;
  padding: 0 22px;
  border: 2px solid var(--mist);
  border-radius: 99px;
  background: #fbfdfe;
  color: var(--body-ink);
  font-size: 16px;
  font-weight: 600;
}

.field::placeholder {
  color: #93a5b6;
  font-weight: 500;
}

.field:focus {
  outline: 0;
  border-color: var(--grow-light);
  background: #fff;
}

.field.error {
  border-color: #e0786a;
  background: #fff7f6;
}

.error-msg {
  margin: -6px 0 0;
  padding-left: 22px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #c0392b;
}

.hide {
  display: none !important;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 2px 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #516375;
}

.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--grow);
  cursor: pointer;
}

.consent a {
  color: var(--grow);
  font-weight: 700;
  text-decoration: underline;
}

.btn--finish {
  height: 60px;
  border-radius: 99px;
  font-size: 17px;
  font-weight: 800;
}

.form-card__note {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--quiet);
}

.form-card__note a {
  color: var(--navy);
  text-decoration: underline;
}

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

.panel {
  width: 100%;
  margin: 24px 0;
  padding: 42px 40px;
  background: var(--panel);
  border-radius: var(--round-xl);
  box-shadow: 0 12px 32px rgba(18, 39, 66, 0.08);
}

.thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

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

.thanks__title {
  margin: 0;
  font-size: 31px;
  font-weight: 800;
  color: var(--navy-dark);
}

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

.thanks__subtitle {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--grow);
}

.thanks__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #3c4c5d;
}

.thanks__next {
  width: 100%;
  padding: 28px;
  border-radius: var(--round-lg);
  background: var(--mist);
  text-align: left;
}

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

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

.thanks__next li {
  font-size: 15.5px;
  line-height: 1.6;
}

.thanks__quote {
  width: 100%;
  margin: 0;
  padding: 20px;
  border-radius: var(--round-lg);
  background: #eefaf1;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-dark);
}

.doc__title {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 800;
  color: var(--navy-dark);
}

.doc__date {
  margin: 0 0 26px;
  padding: 12px 18px;
  border-radius: var(--round-md);
  background: var(--mist);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--quiet);
}

.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: 20px;
  font-weight: 800;
  color: var(--navy);
}

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

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

.doc__sign {
  margin: 30px 0 0;
  padding: 16px 20px;
  border-radius: var(--round-md);
  background: var(--mist);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--quiet);
}

@media (max-width: 1100px) {
  .header,
  .footer {
    margin-left: 16px;
    margin-right: 16px;
    width: calc(100% - 32px);
  }

  .hero {
    margin: 20px 16px;
    min-height: 0;
    padding: 44px 18px;
  }

  .panel {
    margin: 20px 16px;
    width: calc(100% - 32px);
  }
}

@media (max-width: 767px) {
  .header__inner,
  .footer__inner {
    padding: 14px 18px;
  }

  .header__aside {
    display: none;
  }

  .hero {
    padding: 32px 14px;
  }

  .hero__card {
    padding: 26px 20px;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__body {
    font-size: 15px;
  }

  #screen-quiz,
  #screen-form {
    align-items: stretch;
    padding: 20px 16px 24px;
  }

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

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

  .quiz__question {
    font-size: 18.5px;
  }

  .form-card {
    padding: 26px 20px;
  }

  .form-card__title {
    font-size: 23px;
  }

  .answer {
    font-size: 15px;
    padding: 14px 16px;
    gap: 12px;
  }

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

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .panel {
    padding: 26px 18px;
  }

  .thanks__next {
    padding: 18px 14px;
  }

  .doc__title {
    font-size: 24px;
  }

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

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