/* ==========================================================
   Fonts — e-Ukraine (/fonts/e-Ukraine)
   ========================================================== */
@font-face { font-family: "e-Ukraine"; src: local("e-Ukraine Regular"), local("e-Ukraine-Regular"), url("../fonts/e-Ukraine/e-Ukraine-Regular.woff2") format("woff2"), url("../fonts/e-Ukraine/e-Ukraine-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "e-Ukraine"; src: local("e-Ukraine Bold"), local("e-Ukraine-Bold"), url("../fonts/e-Ukraine/e-Ukraine-Bold.woff2") format("woff2"), url("../fonts/e-Ukraine/e-Ukraine-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

/* ==========================================================
   Tokens (значення з макету Figma, 1440)
   ========================================================== */
:root {
  --c-blue: #22517d;
  --c-orange: #db9528;
  --c-beige: #ecc58a;
  --c-text: #000;
  --c-muted: #666;
  --c-footer-text: #ccc;
  --c-white: #fff;

  --font: "e-Ukraine", Arial, sans-serif;

  --page-max: 1440px;
  --gutter: clamp(16px, 8.333vw, 120px);
  --radius: 24px;

  --fz-h1: clamp(32px, 3.334vw, 48px);
  --fz-h2: clamp(28px, 3.334vw, 48px);
  --fz-h3: clamp(24px, 2.778vw, 40px);
  --fz-text: clamp(16px, 1.389vw, 20px);
  --lh-text: 30px;
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fz-text);
  line-height: 1.2;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
section[id] { scroll-margin-top: 100px; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.h2 { font-size: var(--fz-h2); font-weight: 700; line-height: 1.2; }

/* Button + CTA */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 20px 24px;
  border-radius: 32px;
  background: var(--c-blue);
  color: var(--c-white);
  font-size: var(--fz-text);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s;
}
.btn:not(.is-disabled):hover { background: var(--c-orange); }
.btn:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 3px; }
.btn.is-disabled { background: #999; cursor: not-allowed; }

.cta { display: flex; flex-direction: column; align-items: stretch; gap: 24px; width: 100%; }
.cta__action { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.cta__date { font-size: 14px; color: var(--c-muted); text-align: center; }
.cta__note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 13px;
  font-size: 14px;
  font-weight: 400;
  color: var(--c-muted);
}

/* ==========================================================
   Header
   ========================================================== */
.header { position: sticky; top: 0; z-index: 50; background: var(--c-blue); color: var(--c-white); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; }
.header__logo { display: block; flex: none; }
.nav { display: flex; gap: 32px; }
.nav__link { font-size: 16px; line-height: 1.2; text-decoration: none; }
.nav__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.header__burger { display: none; }

/* ==========================================================
   Hero
   ========================================================== */
.hero { padding-block: clamp(48px, 8.333vw, 80px); }
.hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero__content { display: flex; flex-direction: column; gap: clamp(28px, 2.778vw, 40px); flex: 0 1 640px; }
.hero__title { font-size: var(--fz-h1); font-weight: 400; line-height: 100%; }
.hero__content .cta { max-width: 480px; }
.hero__img { flex: none; width: clamp(220px, 20.834vw, 300px); margin-right: clamp(0px, 6.4vw, 92px); }
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 32px;
  background: var(--c-orange);
  color: var(--c-white);
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity .2s, visibility .2s, transform .2s, background-color .2s;
}
.scroll-hint.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.scroll-hint:hover { background: var(--c-blue); }
.scroll-hint:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; }
.scroll-hint svg { animation: hint-bounce 1.6s ease-in-out infinite; }
@keyframes hint-bounce { 50% { transform: translateY(4px); } }

/* ==========================================================
   Results (carousel)
   ========================================================== */
.results { padding-block: clamp(64px, 8.333vw, 80px); background: var(--c-orange); overflow: hidden; }
.results__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 5.556vw, 80px); }
.results__title { color: var(--c-white); }
.results__arrows { display: flex; gap: 40px; }
.results__arrows.is-hidden { display: none; }
.arrow { display: block; padding: 0; border: 0; background: none; color: var(--c-blue); line-height: 0; transition: color .2s; }
.arrow:disabled { color: var(--c-beige); cursor: default; }

.results__track {
  display: flex;
  gap: 24px;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.results__track::-webkit-scrollbar { display: none; }

.stat-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--c-white);
  scroll-snap-align: start;
}
.stat-card__title { font-size: var(--fz-text); font-weight: 400; line-height: 1.2; min-height: 3.6em; }
.stat-card__value {
  margin-block: 24px 32px;
  font-size: clamp(40px, 3.889vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--c-blue);
}
.stat-card__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: auto; }
.stat-card__row > div { display: flex; flex-direction: column; gap: 8px; }
.stat-card__label { min-height: 2.4em; font-size: var(--fz-text); line-height: 1.2; }
.stat-card__sub { font-size: clamp(22px, 1.875vw, 28px); font-weight: 700; line-height: 1.2; color: var(--c-blue); white-space: nowrap; }
.stat-card__unit { margin-left: .25em; font-size: max(14px, .4em); font-weight: 400; color: var(--c-muted); }

/* ==========================================================
   Intro
   ========================================================== */
.intro {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: clamp(64px, 6.945vw, 100px) clamp(16px, 5.556vw, 80px);
}
.intro__inner { display: flex; align-items: center; justify-content: space-between; gap: 53px; }
.intro__text { display: flex; flex-direction: column; gap: clamp(32px, 4.445vw, 64px); flex: 0 1 571px; }
.intro__text .h2 { max-width: 539px; }
.intro__lead { font-size: clamp(18px, 1.667vw, 24px); line-height: var(--lh-text); text-align: justify; hyphens: auto; }
.intro__facts { display: flex; flex-direction: column; gap: clamp(24px, 5.556vw, 80px); flex: 0 1 630px; }

.fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 283px;
  padding: 20px 32px;
  border-radius: var(--radius);
  background: var(--c-beige);
}
.fact__body { display: flex; flex-direction: column; justify-content: space-between; gap: 23px; align-self: stretch; flex: 0 1 377px; }
.fact__value { font-size: clamp(44px, 5vw, 72px); font-weight: 400; line-height: 1.2; }
.fact__text { font-size: var(--fz-text); line-height: var(--lh-text); }
.fact__img { flex: none; width: auto; height: clamp(140px, 17.64vw, 254px); margin-right: clamp(0px, 2.2vw, 32px); }
.fact:last-child .fact__img { height: clamp(110px, 13.125vw, 189px); }

/* ==========================================================
   Info cards
   ========================================================== */
.info { padding-block: clamp(64px, 6.945vw, 100px); background: var(--c-blue); }
.info__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 40px; }
.info-card {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4.445vw, 64px);
  min-height: 734px;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--c-white);
}
.info-card__icon { align-self: flex-start; width: auto; height: clamp(64px, 6.6vw, 95px); }
.info-card__title { font-size: var(--fz-h3); font-weight: 700; line-height: 1.2; }
.info-card__text { display: grid; gap: 1.2em; font-size: var(--fz-text); line-height: var(--lh-text); }
.info-card__text a { text-underline-offset: 3px; }
.info-card__text a:hover { color: var(--c-blue); }

/* ==========================================================
   Details
   ========================================================== */
.details { padding: clamp(48px, 6.945vw, 100px) clamp(16px, 6.945vw, 100px); background: var(--c-beige); }
.details__box {
  display: grid;
  grid-template-columns: 649fr 591fr;
  max-width: 1240px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius);
}
.details__text { display: flex; flex-direction: column; gap: 40px; padding: 40px; background: var(--c-white); }
.details__title { font-size: var(--fz-h3); font-weight: 700; line-height: 1.2; }
.details__block h3 { margin-bottom: 1.2em; font-size: var(--fz-text); font-weight: 700; line-height: 1.2; }
.details__block p { font-size: var(--fz-text); line-height: var(--lh-text); }
.details__aside { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 5.556vw, 80px); background: var(--c-orange); }

.survey-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 52px;
  width: 100%;
  max-width: 469px;
  min-height: 666px;
  padding: clamp(24px, 2.778vw, 40px);
  border-radius: var(--radius);
  background: var(--c-white);
}
.survey-card__logo { width: clamp(200px, 19.5vw, 281px); }
.survey-card__meta {
  display: grid;
  gap: 1.2em;
  padding-block: 52px;
  border-block: 1px solid var(--c-orange);
  font-size: var(--fz-text);
  line-height: 1.2;
}
.survey-card__meta dt { margin-bottom: 4px; font-size: 14px; color: var(--c-muted); }
.survey-card__meta dd { font-weight: 700; }

/* ==========================================================
   FAQ
   ========================================================== */
.faq { padding-block: clamp(64px, 6.945vw, 100px); }
.faq__title { margin-bottom: clamp(40px, 5.556vw, 80px); font-size: clamp(32px, 3.889vw, 56px); font-weight: 700; line-height: 1.2; }
.faq__item { border-top: 2px solid var(--c-text); transition: background-color .2s, color .2s; }
.faq__item summary {
  position: relative;
  display: block;
  padding: clamp(24px, 3.889vw, 56px) 80px clamp(24px, 3.889vw, 56px) 20px;
  font-size: clamp(18px, 2.222vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 98px;
  transform: translateY(-50%);
  font-family: Arial, sans-serif;
  font-size: clamp(24px, 2.222vw, 32px);
  font-weight: 400;
  line-height: 1.15;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item:not([open]):hover { background: var(--c-blue); color: var(--c-white); }
.faq__answer {
  padding: 0 80px clamp(24px, 3.889vw, 56px) 20px;
  font-size: clamp(18px, 1.667vw, 24px);
  line-height: var(--lh-text);
  text-align: justify;
  hyphens: none;
  display: grid;
  gap: 1.2em;
}
.faq__answer a { text-underline-offset: 4px; overflow-wrap: anywhere; }
.faq__answer a:hover { color: var(--c-blue); }
.faq__family { width: clamp(220px, 30vw, 432px); margin-inline: auto; }

/* ==========================================================
   Footer
   ========================================================== */
.footer { border-top: 6px solid var(--c-orange); background: var(--c-blue); color: var(--c-white); }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
  padding-block: clamp(48px, 5.556vw, 80px);
}
.footer__brand { display: flex; flex-direction: column; gap: 24px; }
.footer__logo { display: block; width: clamp(200px, 20vw, 288px); }
.footer__tagline { max-width: 320px; font-size: 16px; line-height: 1.5; color: var(--c-footer-text); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer__heading { margin-bottom: 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-beige); }
.footer__link { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.2; text-decoration: none; transition: color .2s; }
.footer__link:hover { color: var(--c-beige); }
.footer__share { display: flex; gap: 12px; }
.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: var(--c-white);
  transition: background-color .2s, border-color .2s;
}
.footer__social:hover { border-color: var(--c-orange); background: var(--c-orange); }
.footer__link:focus-visible, .footer__social:focus-visible, .footer__logo:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 3px; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding-block: 24px;
  background: linear-gradient(rgba(255, 255, 255, .15), rgba(255, 255, 255, .15)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-footer-text);
}
.footer__copy { display: grid; gap: 8px; max-width: 720px; }
.footer__copy a { color: var(--c-white); text-underline-offset: 3px; transition: color .2s; }
.footer__copy a:hover { color: var(--c-beige); }
.footer__badge { flex: none; padding: 4px 12px; border: 1px solid rgba(236, 197, 138, .5); border-radius: 16px; color: var(--c-beige); }

/* ==========================================================
   Scroll to top
   ========================================================== */
.to-top {
  position: fixed;
  right: clamp(16px, 2.778vw, 40px);
  bottom: clamp(16px, 2.778vw, 40px);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid var(--c-white);
  border-radius: 50%;
  background: var(--c-blue);
  color: var(--c-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .2s, visibility .2s, transform .2s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-orange); }
.to-top:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 3px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1280px) {
  .stat-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 1200px) {
  .faq__item summary::after { right: 20px; }
  .info-card { min-height: 0; }
}

@media (max-width: 1024px) {
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .intro__inner { flex-direction: column; align-items: stretch; }
  .intro__text, .intro__facts { flex: none; }
  .details__box { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section[id] { scroll-margin-top: 64px; }
  .scroll-hint { display: none; }
  .header__inner { min-height: 64px; }
  .header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    padding: 8px;
    border: 0;
    background: none;
  }
  .header__burger span { display: block; height: 2px; background: var(--c-white); transition: transform .2s, opacity .2s; }
  .header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--c-blue);
    border-top: 1px solid rgba(255, 255, 255, .15);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding-block: 14px; font-size: 18px; }

  .hero__inner { flex-direction: column-reverse; align-items: stretch; }
  .hero__content { flex: none; }
  .hero__content .cta { max-width: none; }
  .hero__img { align-self: center; width: min(320px, 80vw); margin-right: 0; }
  .btn { min-height: 56px; padding: 16px 24px; }

  .results__arrows { gap: 24px; }
  .results__track { gap: 16px; }
  .stat-card { flex-basis: min(460px, 85vw); padding: 24px; }
  .stat-card__row { gap: 16px; }

  .fact { min-height: 0; padding: 24px; }
  .fact__img { margin-right: 0; }

  .info__grid { grid-template-columns: 1fr; gap: 24px; }
  .info-card { padding: 24px; }

  .details__text { gap: 32px; padding: 24px; }
  .details__aside { padding: 16px; }
  .survey-card { gap: 32px; min-height: 0; padding: 24px 16px; }
  .survey-card__meta { padding-block: 32px; }

  .faq__title { min-height: 0; margin-bottom: 40px; }
  .faq__item summary { padding-left: 0; padding-right: 48px; }
  .faq__item summary::after { right: 8px; }
  .faq__item:not([open]):hover { background: none; color: inherit; }
  .faq__answer { padding-inline: 0 48px; text-align: left; }
  .intro__lead { text-align: left; }

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

@media (max-width: 480px) {
  .fact { flex-direction: column-reverse; align-items: flex-start; }
  .fact__body { flex: none; }
  .fact__img { align-self: flex-end; height: 140px; }
  .fact:last-child .fact__img { height: 110px; }
  .stat-card__row { grid-template-columns: 1fr; }
  .stat-card__label { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
