/*
 * Page "Про нас" (page-about.php).
 * Desktop values are taken from the 1920 layout, container content = 1720px.
 * Generic sections, grid, media and decor base live in inner.css.
 */

/* section paddings from the 1920 layout (below 1281px the shared values from inner.css apply) */
@media (min-width: 1281px) {
  .ab_who { --pad: 80px; }
  .ab_mission { --pad: 100px; }
  .ab_manifest { --pad: 104px; }
  .ab_head { --pad: 80px; }
  .ab_statute { --pad: 100px; }
  .ab_reports { --pad: 127px; }
  .ab_regions { --pad: 102px; }
  .ab_symbols { --pad: 114px; }
}

/* ---------- Хто ми ---------- */

.ab_grid--who {
  grid-template-columns: minmax(0, 866fr) minmax(0, 804fr);
  column-gap: 50px;
}

.ab_grid--who .ab_media--wide {
  width: 100%;
}

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

@media (max-width: 1024px) {
  .ab_grid--who {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ab_who_txt {
  margin-top: 54px;
  font-family: "Nata Sans", sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 42px;
  color: var(--palette-v2-t1);
}

/* ---------- Місія: cards ---------- */

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

.ab_card_item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 144px;
  padding: 24px 28px;
  border-radius: 24px;
  background: var(--palette-v2-br);
  color: var(--palette-v2-bg);
}

.ab_card_item:nth-child(3n + 2) {
  background: var(--palette-v2-d3);
  color: var(--palette-v2-white);
}

.ab_card_item:nth-child(3n + 3) {
  background: var(--palette-v2-bg);
  color: var(--palette-v2-white);
}

.ab_card_title {
  font-family: "Nata Sans", sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 34px;
}

.ab_card_txt {
  font-size: 22px;
  line-height: 34px;
}

/* ---------- Маніфест: quote card ---------- */

.ab_quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 284px;
  margin: 0;
  padding: 56px 116px 56px 64px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--palette-v2-d2);
}

.ab_quote::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: var(--palette-v2-red-accent);
}

.ab_quote_txt {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: 0;
  font-style: italic;
  font-weight: 600;
  font-size: 32px;
  line-height: 44px;
  color: var(--palette-v2-t1);
}

.ab_quote_caption {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: var(--palette-v2-t3-tint);
}

.ab_quote_coat {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0; /* vertically centred: the card grows with long quotes (designer review) */
  right: 14px;
  width: 146px;
  height: 250px;
  pointer-events: none;
}

/* ---------- Регіональні осередки: map card ---------- */

.ab_map {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 820 / 550;
  padding: 26px;
  border-radius: 28px;
  background: var(--palette-v2-d2);
}

.ab_map img {
  display: block;
  width: 100%;
  max-width: 768px;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

/* ---------- Dotted decor ---------- */

/* "Голова партії": 3 arrows, 599px at 1920 */
.ab_decor--head {
  left: calc((100% - var(--cw)) / 2 + var(--cw) * 0.3151);
  bottom: -73px;
  width: calc(var(--cw) * 0.3483);
}

/* "Звітність": arrow, 429px at 1920 */
.ab_decor--reports {
  left: calc((100% - var(--cw)) / 2 + var(--cw) * 0.2273);
  bottom: -61px;
  width: calc(var(--cw) * 0.2494);
}

/* "Наша символіка": 3 arrows, 599px at 1920 */
.ab_decor--symbols {
  left: calc((100% - var(--cw)) / 2 + var(--cw) * 0.1285);
  bottom: -70px;
  width: calc(var(--cw) * 0.3483);
}

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

@media (max-width: 1280px) {
  .ab_who_txt {
    margin-top: 40px;
    font-size: 26px;
    line-height: 36px;
  }

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

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

  .ab_quote {
    padding: 44px 150px 44px 48px;
  }

  .ab_quote_txt {
    font-size: 26px;
    line-height: 36px;
  }

  .ab_quote_coat {
    width: 120px;
    height: 206px;
  }
}

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

@media (max-width: 1024px) {
  .ab_who_txt {
    margin-top: 40px;
    font-size: 26px;
    line-height: 36px;
  }

  .ab_card_item {
    min-height: 156px;
    padding: 28px 32px;
    gap: 12px;
    justify-content: flex-start;
  }

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

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

  .ab_quote {
    min-height: 250px;
    padding: 40px 130px 40px 41px;
  }

  .ab_quote_txt {
    font-size: 32px;
    line-height: 44px;
  }

  .ab_quote_caption {
    margin-top: 24px;
    font-size: 16px;
  }

  .ab_quote_coat {
    right: 25px;
    width: 130px;
    height: 223px;
  }

  /* Map bigger in the card (designer review) */
  .ab_map {
    aspect-ratio: 944 / 620;
    padding: 24px;
  }

  .ab_map img {
    max-width: none;
  }

  /* «Голова партії»: text and a tall portrait side by side (Figma Tablet, updated by the designer) */
  .ab_head .ab_grid {
    grid-template-columns: minmax(0, 1fr) 44%;
    column-gap: 35px;
  }

  .ab_head .ab_media--portrait {
    aspect-ratio: 416 / 531;
  }

  .ab_decor--head,
  .ab_decor--symbols {
    left: auto;
    right: 0;
    width: 460px;
  }

  .ab_decor--head {
    bottom: -55px;
  }

  .ab_decor--symbols {
    bottom: -56px;
  }

  .ab_decor--reports {
    left: auto;
    right: 40px;
    top: 66px;
    bottom: auto;
    width: 306px;
  }
}

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

@media (max-width: 820px) {
  .ab_decor--reports {
    width: 240px;
  }

  .ab_quote_txt {
    font-size: 26px;
    line-height: 36px;
  }
}

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

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

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

  .ab_who_txt {
    margin-top: 20px;
    font-size: 24px;
    line-height: 34px;
  }

  .ab_cards {
    gap: 12px;
  }

  .ab_card_item {
    min-height: 0;
    padding: 20px;
    gap: 8px;
  }

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

  .ab_card_txt {
    font-size: 17px;
    line-height: 26px;
  }

  .ab_quote {
    min-height: 0;
    padding: 28px 20px 144px 28px;
  }

  .ab_quote_txt {
    font-size: 24px;
    line-height: 32px;
  }

  .ab_quote_caption {
    margin-top: 36px;
  }

  .ab_quote_coat {
    top: auto;
    right: 20px;
    bottom: 20px;
    width: 112px;
    height: 192px;
  }

  .ab_map {
    aspect-ratio: 324 / 219;
    padding: 20px 24px;
  }

  .ab_map img {
    max-width: 276px;
  }

  .ab_reports {
    padding-bottom: 186px;
  }

  .ab_decor--head,
  .ab_decor--symbols {
    left: 18px;
    right: auto;
    width: 342px;
  }

  .ab_decor--head {
    bottom: -55px;
  }

  .ab_decor--symbols {
    bottom: -71px;
  }

  .ab_decor--reports {
    top: auto;
    right: 20px;
    bottom: -94px;
    width: 250px;
  }
}
