/*
 * Inner pages: shared blocks.
 * Page hero, section head, button variants, report rows, "Приєднатися" banner.
 * Breakpoints follow style.css: 1600 / 1280 / 1024 / 600.
 */

/* ---------- Buttons: variants of .def_btn (cyan is the base in style.css) ---------- */

.def_btn .btn_arrow {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.def_btn:hover .btn_arrow {
  transform: translateX(3px);
}

.def_btn--cyan,
.def_btn--cyan:hover {
  color: var(--palette-v2-bg);
}

.def_btn--blue {
  background: var(--palette-v2-d3);
  color: var(--palette-v2-white);
}

.def_btn--blue:hover {
  background: var(--palette-v2-blue-700);
  color: var(--palette-v2-white);
}

.def_btn--dark {
  background: var(--palette-v2-bg);
  color: var(--palette-v2-white);
}

.def_btn--dark:hover {
  background: var(--palette-v2-d2);
  color: var(--palette-v2-white);
}

/* ---------- Page hero ---------- */

.page_hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 264px;
  overflow: hidden;
  background: var(--palette-v2-bg);
}

.page_hero_photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page_hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 26, 43, 0.92) 0%, rgba(0, 26, 43, 0.6) 100%);
}

.page_hero_container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.crumbs_item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 22px;
  color: var(--palette-v2-t1);
}

.crumbs_item + .crumbs_item::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--palette-v2-t3-tint);
}

.crumbs_item a {
  color: var(--palette-v2-t3-tint);
  transition: color var(--transition);
}

.crumbs_item a:hover {
  color: var(--palette-v2-t1);
}

.page_hero_title {
  font-weight: 800;
  font-size: 56px;
  line-height: 64px;
  color: var(--palette-v2-t1);
}

/* ---------- Section head ---------- */

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

.sh .section_dots {
  margin-bottom: 0;
}

/* on cyan backgrounds the middle dot is dark (Figma: Section Head on cyan) */
.ab_sec--cyan .section_dots span:nth-child(2),
.join_cta_card .section_dots span:nth-child(2) {
  background: var(--palette-v2-bg);
}

.sh_title {
  font-weight: 800;
  font-size: 44px;
  line-height: 52px;
  color: var(--palette-v2-bg);
}

.sh_subtitle {
  padding-top: 8px;
  font-size: 22px;
  line-height: 34px;
  color: var(--palette-v2-d2);
}

/* ---------- Two-column sections (text + media), reused by inner pages ---------- */
/* --cw = container content width, used to place the dotted decor relative to the grid. */

.ab_sec {
  --pad: 100px;
  --cpad: 15px;
  --cw: min(1720px, calc(100% - 2 * var(--cpad)));
  position: relative;
  overflow: hidden;
  padding: var(--pad) 0;
}

.ab_sec > .container {
  position: relative;
  z-index: 1;
}

.ab_sec--dark {
  background: var(--palette-v2-bg);
}

.ab_sec--light {
  background: var(--palette-v2-white);
}

.ab_sec--cyan {
  background: var(--palette-v2-br);
}

.ab_sec--dark .sh_title {
  color: var(--palette-v2-t1);
}

.ab_sec--dark .sh_subtitle {
  color: var(--palette-v2-t3-tint);
}

/* ---------- Grid ---------- */

.ab_grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 80px;
  align-items: center;
}

.ab_grid--reverse .ab_col--media {
  order: -1;
}

.ab_col {
  min-width: 0;
}

.ab_btn {
  margin-top: 40px;
}

/* ---------- Media ---------- */

.ab_media {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 804 / 452;
}

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

.ab_media--wide {
  width: 98.05%; /* 804 of 820 */
  margin-left: auto;
}

.ab_grid--reverse .ab_media--wide {
  margin-left: 0;
}

.ab_media--portrait {
  width: 62.8%; /* 515 of 820 */
  margin-left: auto;
  aspect-ratio: 515 / 640;
}

.ab_media--free {
  border-radius: 0;
}

.ab_media--free img {
  object-fit: contain;
}

.ab_decor {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
}


@media (max-width: 1600px) {
  .ab_sec {
    --cpad: 60px;
  }

  .ab_grid {
    column-gap: 60px;
  }
}

@media (max-width: 1280px) {
  .ab_sec {
    --cpad: 25px;
    --pad: 80px;
  }

  .ab_grid {
    column-gap: 40px;
  }
}

@media (max-width: 1024px) {
  .ab_sec {
    --cpad: 41px;
    --pad: 40px;
  }

  .ab_grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }

  .ab_grid--reverse .ab_col--media {
    order: 0;
  }

  .ab_media--wide,
  .ab_media--portrait {
    width: 100%;
    aspect-ratio: 944 / 531;
  }
}

@media (max-width: 600px) {
  .ab_sec {
    --cpad: 18px;
    --pad: 36px;
  }

  .ab_grid {
    row-gap: 24px;
  }

  .ab_grid--media-first .ab_col--media {
    order: -1;
  }

  .ab_btn {
    margin-top: 24px;
  }

  .ab_btn--full-m {
    width: 100%;
  }

  .ab_media--wide {
    aspect-ratio: 324 / 182;
  }

  .ab_media--portrait {
    aspect-ratio: 324 / 403;
  }
}

/* ---------- Chips (filters) ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.chip--light {
  background: var(--palette-v2-t3-tint);
  color: var(--palette-v2-bg);
}

.chip--light:hover {
  background: var(--palette-v2-br);
}

.chip--light.is-active {
  background: var(--palette-v2-bg);
  color: var(--palette-v2-white);
}

.chip--light.is-active:hover {
  background: var(--palette-v2-d1);
}

.chip:focus-visible {
  outline: 2px solid var(--palette-v2-d3);
  outline-offset: 2px;
}

/* ---------- Section navigation: "Назад" / "Далі" + "Також у розділі" ---------- */

.snav {
  padding: 56px 0;
  background: var(--palette-v2-bg);
}

.snav_pills {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.snav_pill {
  display: inline-flex;
  align-items: center;
  width: 344px;
  max-width: 100%;
  min-height: 52px;
  padding: 8px;
  border-radius: 26px;
  background: var(--palette-v2-br);
  color: var(--palette-v2-bg);
  transition: background var(--transition);
}

/* hover and click: the lighter cyan of the «Приєднатися» button (designer review) */
.snav_pill:hover,
.snav_pill:active {
  background: #8febff;
  color: var(--palette-v2-bg);
}

.snav_pill--next {
  margin-left: auto;
  text-align: right;
}

.snav_pill_icon {
  display: flex;
  flex-shrink: 0;
}

.snav_pill_text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 12px;
}

.snav_pill_hint {
  font-weight: 500;
  font-size: 12px;
  line-height: 14px;
}

.snav_pill_title {
  overflow: hidden;
  font-family: "Nata Sans", sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.snav_also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 64px;
  padding: 20px 0 4px;
  border-top: 1px solid var(--palette-v2-d2);
}

.snav_also_title {
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  color: var(--palette-v2-br);
}

.snav_also_link {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--palette-v2-t2);
  transition: color var(--transition);
}

.snav_also_link:hover {
  color: var(--palette-v2-br);
}

@media (max-width: 1600px) {
  .snav_also {
    column-gap: 40px;
  }
}

@media (max-width: 1024px) {
  .snav {
    padding: 40px 0;
  }

  .snav_pills {
    margin-bottom: 24px;
  }

  .snav_pill {
    flex: 1 1 0;
    width: auto;
  }

  .snav_also {
    column-gap: 20px;
  }
}

@media (max-width: 600px) {
  .snav {
    padding: 36px 0;
  }

  .snav_pills {
    flex-direction: column;
  }

  .snav_pill {
    flex: none;
    width: 100%;
  }

  .snav_pill_title {
    font-size: 14px;
  }
}

/* ---------- Split: text 940 + photo 730 (Звітність, Статут) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 940fr) minmax(0, 730fr);
  column-gap: 50px;
  align-items: center;
}

.split--top {
  align-items: start;
}

.split_media {
  aspect-ratio: 730 / 580;
}

@media (max-width: 1280px) {
  .split {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    column-gap: 40px;
  }
}

@media (max-width: 1024px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }

  .split_media {
    aspect-ratio: 944 / 531;
  }
}

@media (max-width: 600px) {
  .split {
    row-gap: 24px;
  }
}

/* ---------- Triangle dot patterns in section corners (Місія, Наша символіка) ---------- */

.sec_tri {
  position: absolute;
  width: 412px;
  height: 412px;
  pointer-events: none;
}

.sec_tri--l {
  top: 0;
  left: 0;
}

.sec_tri--r {
  right: 0;
  bottom: 0;
  transform: rotate(180deg);
}

@media (max-width: 1600px) {
  .sec_tri {
    width: 340px;
    height: 340px;
  }
}

@media (max-width: 1024px) {
  .sec_tri {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 600px) {
  .sec_tri {
    width: 160px;
    height: 160px;
  }
}

/* ---------- Half blocks: text + image halves, alternating (Місія, Наша символіка) ---------- */

.hb_list {
  --hb-gap: 30px;
  --hb-odd-bg: var(--palette-v2-d2);
  --hb-odd-color: var(--palette-v2-t2);
  --hb-even-bg: var(--palette-v2-d3);
  --hb-even-color: var(--palette-v2-t1);
  --hb-media-bg: var(--palette-v2-d1);
  display: flex;
  flex-direction: column;
  gap: var(--hb-gap);
}

.hb_item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 480px;
  overflow: hidden;
  border-radius: 28px;
}

.hb_text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 44px;
  background: var(--hb-odd-bg);
  color: var(--hb-odd-color);
}

.hb_item--even .hb_text {
  background: var(--hb-even-bg);
  color: var(--hb-even-color);
}

.hb_title {
  margin-bottom: 20px;
  font-weight: 800;
  font-size: 44px;
  line-height: 52px;
  color: var(--palette-v2-t1);
}

.hb_lead_txt {
  margin-bottom: 17px;
  font-weight: 600;
  font-size: 22px;
  line-height: 34px;
  color: var(--palette-v2-t1);
}

.hb_txt {
  font-size: 18px;
  line-height: 28px;
}

.hb_txt p {
  margin: 0;
}

.hb_txt p + p {
  margin-top: 28px;
}

.hb_btn {
  margin-top: 32px;
}

/* large text variant (Наша символіка) */
.hb_list--lg .hb_txt {
  font-size: 22px;
  line-height: 34px;
}

.hb_list--lg .hb_txt p + p {
  margin-top: 34px;
}

.hb_media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hb-media-bg);
}

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

.hb_media--portrait .hb_img {
  overflow: hidden;
  width: 43.14%; /* 371 of 860 */
  aspect-ratio: 371 / 440;
  border-radius: 24px;
}

.hb_media--cover .hb_img {
  position: absolute;
  inset: 0;
}

.hb_media--contain {
  padding: 40px;
}

.hb_media--contain .hb_img {
  width: 60.7%; /* 522 of 860 */
}

.hb_media--contain .hb_img img {
  height: auto;
  object-fit: contain;
}

@media (max-width: 1280px) {
  .hb_text {
    padding: 32px;
  }

  .hb_title {
    font-size: 38px;
    line-height: 46px;
  }
}

@media (max-width: 1024px) {
  .hb_list {
    --hb-gap: 12px;
  }

  .hb_item {
    min-height: 454px;
  }

  .hb_title {
    margin-bottom: 18px;
  }

  .hb_lead_txt {
    font-size: 20px;
    line-height: 30px;
  }

  .hb_txt {
    font-size: 16px;
    line-height: 26px;
  }

  .hb_txt p + p {
    margin-top: 26px;
  }

  .hb_list--lg .hb_txt {
    font-size: 20px;
    line-height: 30px;
  }

  .hb_list--lg .hb_txt p + p {
    margin-top: 30px;
  }

  .hb_media--portrait .hb_img {
    width: 67.8%; /* 320 of 472 */
  }

  .hb_media--contain .hb_img {
    width: 86%; /* 408 of 472 */
  }
}

@media (max-width: 600px) {
  .hb_item {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hb_text {
    padding: 24px 20px;
  }

  .hb_title {
    margin-bottom: 14px;
    font-size: 32px;
    line-height: 40px;
  }

  .hb_lead_txt,
  .hb_list--lg .hb_txt {
    font-size: 17px;
    line-height: 26px;
  }

  .hb_list--lg .hb_txt p + p {
    margin-top: 26px;
  }

  .hb_btn {
    margin-top: 24px;
  }

  .hb_media--portrait {
    padding: 24px 0;
  }

  .hb_media--portrait .hb_img {
    width: 260px;
    max-width: 80%;
  }

  .hb_media--cover {
    aspect-ratio: 324 / 240;
  }

  .hb_media--contain {
    aspect-ratio: 324 / 312;
  }

  .hb_media--contain {
    padding: 20px;
  }

  .hb_media--contain .hb_img {
    width: 100%;
  }

  /* Text above the image in every block (default: even blocks show the image first) */
  .hb_list--text-first .hb_item--even .hb_text {
    order: -1;
  }
}

/* ---------- Carousel: title, arrows, scroll-snap track (Наша символіка) ---------- */

.crsl_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.crsl_title {
  font-weight: 800;
  font-size: 28px;
  line-height: 36px;
  color: var(--palette-v2-bg);
}

.crsl_arrows {
  display: flex;
  gap: 12px;
}

.crsl_arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--palette-v2-bg);
  color: var(--palette-v2-white);
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
}

.crsl_arrow:hover {
  background: var(--palette-v2-d2);
}

.crsl_arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.crsl_track {
  display: flex;
  gap: 20px;
  margin: 42px 0 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden; /* horizontal only: with overflow-x set, y would become "auto" too */
  overscroll-behavior-x: contain;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.crsl_track::-webkit-scrollbar {
  display: none;
}

/* the track runs to both screen edges on all screens: a card is not cut at the container edge
   (designer review 23.11: desktop as on tablet). scroll-padding = padding-left, set by carousel.js */
.crsl_track {
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding-right: calc(50vw - 50%);
  padding-left: calc(50vw - 50%);
  scroll-padding-left: var(--cpad);
}

/* with a desktop scrollbar 100vw is wider than the page: the section clips it, no sideways scroll */
section:has(> .container .crsl_track),
section:has(.crsl_track) {
  overflow-x: clip;
}

.crsl_item {
  flex: 0 0 280px;
  padding: 14px 14px 22px;
  border-radius: 24px;
  background: var(--palette-v2-white); /* pure white (designer review 23.11) */
  scroll-snap-align: start;
}

.crsl_item_img {
  overflow: hidden;
  aspect-ratio: 252 / 156;
  border-radius: 18px;
  background: var(--palette-v2-white);
}

.crsl_item_img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.crsl_item_title {
  display: block;
  margin-top: 14px;
  font-family: "Nata Sans", sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 30px;
  text-align: center;
  color: var(--palette-v2-bg);
}

@media (max-width: 1024px) {
  .crsl_title {
    font-size: 26px;
    line-height: 34px;
  }

  .crsl_track {
    gap: 24px;
    margin-top: 40px;
  }

  .crsl_item {
    flex-basis: min(460px, 100%);
  }
}

@media (max-width: 600px) {
  .crsl_title {
    font-size: 24px;
    line-height: 32px;
  }

  .crsl_track {
    margin-top: 20px;
  }

  .crsl_item {
    flex-basis: min(324px, 100%);
  }

  .crsl_item_title {
    font-size: 20px;
    line-height: 28px;
  }
}

/* ---------- Report rows ---------- */

.report_rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.report_row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 34px 28px;
  border-radius: 24px;
  background: var(--palette-v2-br);
}

.report_row_head {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
}

.report_row_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--palette-v2-t1);
  color: var(--palette-v2-d3);
}

.report_row_text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.report_row_name {
  font-family: "Nata Sans", sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 34px;
  color: var(--palette-v2-bg);
}

.report_row_meta {
  font-size: 14px;
  line-height: 24px;
  color: var(--palette-v2-d2);
}

.report_row_dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--palette-v2-bg);
  font-family: "Nata Sans", sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 26px;
  color: var(--palette-v2-white);
  transition: background var(--transition);
}

.report_row_dl:hover {
  background: var(--palette-v2-d2);
  color: var(--palette-v2-white);
}

/* dark variant: on dark sections (Статут) */
.report_row--dark {
  background: var(--palette-v2-d2);
}

.report_row--dark .report_row_icon {
  background: var(--palette-v2-bg);
  color: var(--palette-v2-br);
}

.report_row--dark .report_row_name {
  color: var(--palette-v2-t1);
}

.report_row--dark .report_row_meta {
  color: var(--palette-v2-t3-tint);
}

.report_row--dark .report_row_dl {
  background: var(--palette-v2-br);
  color: var(--palette-v2-bg);
}

/* lighter cyan, like the «Підтримати» button: the old hover hardly showed the button is clickable (designer review) */
.report_row--dark .report_row_dl:hover {
  background: #8febff;
  color: var(--palette-v2-bg);
}

/* ---------- Slogan banner: dark card on cyan (Маніфест) ---------- */

.slogan_cta {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: var(--palette-v2-br);
}

.slogan_cta_tri {
  position: absolute;
  width: 412px;
  height: 412px;
  pointer-events: none;
}

.slogan_cta_tri--l {
  top: 0;
  left: 0;
}

.slogan_cta_tri--r {
  right: 0;
  bottom: 0;
  transform: rotate(180deg);
}

.slogan_cta .container {
  position: relative;
  z-index: 1;
}

.slogan_cta_card {
  position: relative;
  overflow: hidden;
  min-height: 316px;
  padding: 48px 56px;
  border-radius: 28px;
  background: var(--palette-v2-bg);
}

.slogan_cta_content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.slogan_cta_txt {
  font-size: 18px;
  line-height: 28px;
  color: var(--palette-v2-t3-tint);
}

.slogan_cta_title {
  margin-top: 12px;
  font-weight: 800;
  font-size: 44px;
  line-height: 52px;
  color: var(--palette-v2-white);
}

.slogan_cta_btn {
  margin-top: 24px;
}

.slogan_cta_arrow {
  position: absolute;
  top: 48px;
  right: 64px;
  width: 324px;
  height: 324px;
  pointer-events: none;
}

@media (max-width: 1600px) {
  .slogan_cta_tri {
    width: 340px;
    height: 340px;
  }
}

@media (max-width: 1280px) {
  .slogan_cta_content {
    max-width: 640px;
  }

  .slogan_cta_arrow {
    width: 280px;
    height: 280px;
    right: 40px;
  }
}

@media (max-width: 1024px) {
  .slogan_cta {
    padding: 40px 0;
  }

  .slogan_cta_tri {
    width: 280px;
    height: 280px;
  }

  .slogan_cta_card {
    min-height: 290px;
    padding: 40px 28px;
  }

  .slogan_cta_content {
    max-width: 600px;
  }

  .slogan_cta_txt {
    font-size: 16px;
    line-height: 26px;
  }

  .slogan_cta_title {
    margin-top: 16px;
    font-size: 38px;
    line-height: 46px;
  }

  .slogan_cta_arrow {
    top: 103px;
    right: 50px;
    width: 237px;
    height: 237px;
  }
}

@media (max-width: 820px) {
  .slogan_cta_arrow {
    top: auto;
    bottom: -60px;
    right: 24px;
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 600px) {
  .slogan_cta {
    padding: 36px 0;
  }

  .slogan_cta_tri {
    width: 160px;
    height: 160px;
  }

  .slogan_cta_card {
    min-height: 0;
    padding: 28px 24px 0;
  }

  .slogan_cta_title {
    margin-top: 14px;
    font-size: 32px;
    line-height: 40px;
  }

  .slogan_cta_btn {
    width: 100%;
  }

  .slogan_cta_arrow {
    position: static;
    display: block;
    width: 276px;
    height: 276px;
    max-width: 100%;
    margin: 24px 0 -100px;
  }
}

/* ---------- "Приєднатися до Альтернативи" banner ---------- */

.join_cta {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: var(--palette-v2-d1);
}

.join_cta_tri {
  position: absolute;
  width: 412px;
  height: 412px;
  pointer-events: none;
}

.join_cta_tri--l {
  top: 0;
  left: 0;
}

.join_cta_tri--r {
  right: 0;
  bottom: 0;
  transform: rotate(180deg);
}

.join_cta .container {
  position: relative;
  z-index: 1;
}

.join_cta_card {
  position: relative;
  overflow: hidden;
  min-height: 378px;
  padding: 56px;
  border-radius: 28px;
  background: var(--palette-v2-br);
}

.join_cta_content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.join_cta_txt {
  margin-top: 28px;
  font-family: "Nata Sans", sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 44px;
  color: var(--palette-v2-bg);
}

.join_cta_btn {
  margin-top: 20px;
}

.join_cta_arrow {
  position: absolute;
  top: 119px;
  right: 56px;
  width: 324px;
  height: 324px;
  pointer-events: none;
}

/* ---------- 1600 ---------- */

@media (max-width: 1600px) {
  .join_cta_tri {
    width: 340px;
    height: 340px;
  }
}

/* ---------- 1280 ---------- */

@media (max-width: 1280px) {
  .report_row {
    padding: 28px 24px;
  }

  .report_row_name {
    font-size: 22px;
    line-height: 30px;
  }

  .join_cta_arrow {
    width: 300px;
    height: 300px;
    right: 40px;
  }
}

/* ---------- 1024 (tablet) ---------- */

/* page hero: tablet size up to 1280 - on iPad Pro 13 (1032) the same as on iPad mini (designer review 23.11) */
@media (max-width: 1280px) {
  .page_hero {
    min-height: 252px;
  }

  .page_hero_title {
    font-size: 44px;
    line-height: 52px;
  }
}

@media (max-width: 1024px) {
  .sh_title {
    font-size: 38px;
    line-height: 46px;
  }

  .sh_subtitle {
    font-size: 18px;
    line-height: 28px;
  }

  .report_row {
    padding: 34px 28px;
  }

  .report_row_name {
    font-size: 22px;
    line-height: 28px;
  }

  .join_cta {
    padding: 40px 0;
  }

  .join_cta_tri {
    width: 280px;
    height: 280px;
  }

  .join_cta_card {
    min-height: 340px;
    padding: 40px 28px;
  }

  .join_cta_content {
    max-width: 600px;
  }

  .join_cta_txt {
    margin-top: 24px;
    font-size: 28px;
    line-height: 40px;
  }

  .join_cta_btn {
    margin-top: 32px;
  }

  .join_cta_arrow {
    top: 85px;
    right: 49px;
    width: 318px;
    height: 318px;
  }
}

/* ---------- 820 ---------- */

@media (max-width: 820px) {
  .join_cta_arrow {
    width: 260px;
    height: 260px;
    top: auto;
    bottom: -60px;
    right: 24px;
  }
}

/* ---------- 600 (mobile) ---------- */

@media (max-width: 600px) {
  .page_hero {
    min-height: 238px;
  }

  .page_hero_title {
    font-size: 34px;
    line-height: 42px;
  }

  .sh_title {
    font-size: 32px;
    line-height: 40px;
  }

  .sh_subtitle {
    padding-top: 0;
    font-size: 16px;
    line-height: 26px;
  }

  .sh_subtitle br {
    display: none;
  }

  .def_btn {
    font-size: 16px;
    line-height: 24px;
  }

  .report_rows {
    gap: 12px;
  }

  .report_row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
  }

  .report_row_head {
    gap: 14px;
  }

  .report_row_icon {
    width: 48px;
    height: 48px;
  }

  .report_row_name {
    font-size: 22px;
    line-height: 32px;
  }

  .report_row_dl {
    width: 100%;
    font-size: 16px;
    line-height: 24px;
  }

  .join_cta {
    padding: 36px 0;
  }

  .join_cta_tri {
    width: 160px;
    height: 160px;
  }

  .join_cta_card {
    min-height: 0;
    padding: 28px 24px 0;
  }

  .join_cta_txt {
    font-size: 24px;
    line-height: 34px;
  }

  .join_cta_btn {
    width: 100%;
  }

  .join_cta_arrow {
    position: static;
    display: block;
    width: 276px;
    height: 276px;
    max-width: 100%;
    margin: 40px 0 -126px;
  }
}

/* ---------- Message popup (template-parts/blocks/modal.php, js/modal.js) ---------- */

.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal[hidden] {
  display: none;
}

.modal_overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 27, 43, 0.8);
}

.modal_box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 640px;
  max-width: 100%;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 56px 48px 48px;
  border: 1px solid var(--palette-v2-d3);
  border-radius: 28px;
  background: var(--palette-v2-d1);
  text-align: center;
  outline: none;
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.modal_close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--palette-v2-d2);
  color: var(--palette-v2-t1);
  cursor: pointer;
  transition: background var(--transition);
}

.modal_close:hover {
  background: var(--palette-v2-d3);
}

.modal_title {
  font-weight: 800;
  font-size: 38px;
  line-height: 46px;
  color: var(--palette-v2-t1);
}

.modal_txt {
  font-size: 18px;
  line-height: 30px;
  color: var(--palette-v2-t2);
}

.modal_share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}

.modal_share_label {
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  color: var(--palette-v2-t3-tint);
}

.modal_share_row {
  display: flex;
  gap: 16px;
}

.modal_share_link {
  display: flex;
  color: var(--palette-v2-br);
  transition: color var(--transition);
}

.modal_share_link:hover {
  color: var(--palette-v2-t1);
}

.modal_btn {
  border: 0;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .modal_title {
    font-size: 32px;
    line-height: 40px;
  }
}

@media (max-width: 600px) {
  .modal_box {
    gap: 14px;
    padding: 56px 20px 28px;
  }

  .modal_title {
    font-size: 26px;
    line-height: 34px;
  }

  .modal_txt {
    font-size: 16px;
    line-height: 26px;
  }

  /* line breaks from the field are for desktop and tablet; on mobile the text flows
     (e.g. «…позначені поля / і спробуйте ще раз», designer review 24.11) */
  .modal_txt br {
    display: none;
  }
}

/* half blocks, «На всю половину, на планшеті без обрізання»: on tablets the half is narrow and tall,
   so the picture is shown whole on the block color (Наша символіка, кольори - designer review 24.11) */
@media (min-width: 601px) and (max-width: 1024px) {
  .hb_media--whole .hb_img img {
    object-fit: contain;
  }
}
