/* 17.11.2026 Trello #438–#444: нові EEAT-блоки сторінок (inc/gx-eeat-pages.php).
   Підключається лише на шаблонах цих сторінок. Кольори й шрифти — як у темі (Manrope, #2c3f50, #5e5f5f, рожевий #e8a4b0). */

.gxp-block {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 0;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 160%;
  color: #5e5f5f;
}
.gxp-container .gxp-block:first-child { padding-top: 56px; }
.gxp-container .gxp-block:last-child { padding-bottom: 56px; }
.gxp-block + .gxp-block { border-top: 1px solid rgba(217, 167, 180, 0.35); }
.gxp-block, .gxp-license-row { scroll-margin-top: 110px; }

.gxp-prose h2 {
  margin: 0 0 20px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 140%;
  text-transform: uppercase;
  color: #2c3f50;
}
.gxp-prose h3 {
  margin: 28px 0 10px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 140%;
  color: #2c3f50;
}
.gxp-prose h2 + h3 { margin-top: 0; }
.gxp-prose p { margin: 0 0 14px; }
.gxp-prose p:last-child { margin-bottom: 0; }
.gxp-prose strong { color: #2c3f50; font-weight: 700; }
.gxp-prose a:not(.btn) { color: #227ba8; text-decoration: underline; }
.gxp-prose a:not(.btn):hover { color: #2c3f50; }

.gxp-prose ul,
.gxp-prose ol { margin: 0 0 16px; padding: 0; list-style: none; }
.gxp-prose ul > li { position: relative; margin: 0 0 8px; padding-left: 22px; }
.gxp-prose ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8a4b0;
}
.gxp-prose ol { counter-reset: gxp; }
.gxp-prose ol > li { position: relative; margin: 0 0 10px; padding-left: 34px; counter-increment: gxp; }
.gxp-prose ol > li::before {
  content: counter(gxp);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(247, 202, 201, 0.55);
  font-weight: 700;
  font-size: 13px;
  line-height: 24px;
  text-align: center;
  color: #2c3f50;
}

/* таблиці з редактора */
.gxp-prose table {
  width: 100%;
  margin: 8px 0 18px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(217, 167, 180, 0.55);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  font-size: 15px;
  line-height: 150%;
}
.gxp-prose th,
.gxp-prose td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(217, 167, 180, 0.35);
}
.gxp-prose tr:last-child > td { border-bottom: 0; }
.gxp-prose th,
.gxp-prose thead td {
  background: rgba(247, 202, 201, 0.35);
  font-weight: 700;
  color: #2c3f50;
}
.gxp-prose tbody tr:nth-child(even) > td { background: rgba(247, 202, 201, 0.08); }
.gxp-prose td:first-child { color: #2c3f50; font-weight: 600; }

/* дрібні елементи */
.gxp-prose .gxp-note,
.gxp-prose p.gxp-note { font-size: 14px; line-height: 150%; color: #8a8b8b; }
.gxp-prose .gxp-callout {
  margin: 0 0 16px;
  padding: 16px 20px;
  border-left: 4px solid #6eaece;
  border-radius: 8px;
  background: rgba(110, 174, 206, 0.1);
  color: #2c3f50;
}
.gxp-prose .gxp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin: 24px 0 0;
}
.gxp-prose .gxp-cta .btn { min-width: 240px; }
.gxp-prose .gxp-cta + p { margin-top: 20px; }
.gxp-prose .gxp-reviewed { font-size: 14px; color: #8a8b8b; }
.gxp-prose .gxp-sources li { margin-bottom: 6px; font-size: 14px; line-height: 150%; }
.gxp-prose .gxp-disclaimer { font-size: 14px; line-height: 150%; color: #8a8b8b; font-style: italic; }

/* кроки картками: <ol class="gxp-steps"><li><strong>Назва.</strong> текст</li></ol> */
.gxp-prose ol.gxp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 8px 0 18px;
}
.gxp-prose ol.gxp-steps > li {
  margin: 0;
  padding: 56px 20px 20px;
  border: 1px solid rgba(110, 174, 206, 0.45);
  border-radius: 24px;
  background: #fff;
}
.gxp-prose ol.gxp-steps > li::before {
  left: 20px;
  top: 18px;
  width: 30px;
  height: 30px;
  font-size: 14px;
  line-height: 30px;
  color: #fff;
  background: linear-gradient(216deg, #c8dee2 0%, #6eaece 45%, #227ba8 100%);
}
.gxp-prose ol.gxp-steps > li strong { display: block; margin-bottom: 6px; }

/* у колонках шаблону (список «хто може стати», блок винагороди) — без власних відступів */
.details-block__content .gxp-block,
.choise .gxp-block,
.contact_info .gxp-block,
.hero-banner .gxp-block { max-width: none; padding: 0; border: 0; }
.details-block__content .gxp-block { margin: 18px 0 22px; text-align: left; }
.choise .gxp-block { margin: 0 0 40px; }
.contact_info .gxp-block { margin: 8px 0 0; text-align: left; }
.hero-banner .gxp-block { margin: 14px 0 0; }
.hero-banner .gxp-prose p { font-size: 14px; line-height: 150%; color: #5e5f5f; }
.contact_info .gxp-prose table { font-size: 14px; }
.contact_info .gxp-prose td { padding: 9px 12px; }

/* FAQ — акордеон теми */
.gxp-faq { max-width: 1240px; }
.gxp-faq__title {
  margin: 0 0 24px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 140%;
  text-align: center;
  text-transform: uppercase;
  color: #2c3f50;
}
.gxp-faq h3.accordion-title { margin: 0; font-family: "Manrope", sans-serif; font-weight: 500; }
.gxp-faq .accordion-content p + p { margin-top: 12px; }
.gxp-faq .accordion-content a { color: #227ba8; text-decoration: underline; }
.gxp-faq .accordion-content ul { margin: 8px 0 0 18px; color: #5e5f5f; }

/* ліцензія МОЗ */
.gxp-license-row { margin: 18px 0 0; }
.gxp-license {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid #227ba8;
  border-radius: 24px;
  background: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: #227ba8;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.gxp-license:hover { background: #227ba8; color: #fff; }
.gxp-license-box {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(21, 21, 21, 0.82);
}
.gxp-license-box[hidden] { display: none; }
.gxp-license-box img {
  display: block;
  max-width: min(92vw, 760px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #fff;
}
.gxp-license-box__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  line-height: 40px;
  color: #2c3f50;
  cursor: pointer;
}

/* контакти: H2 під H1 */
.hero-banner__description .gxc-sub {
  margin: 0 0 14px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  color: #2c3f50;
}

/* анкети */
.gxq-kicker {
  margin: 0 0 10px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d5879b;
}
.gxq-sub {
  margin: 12px 0 0;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  color: #2c3f50;
}
/* заголовок анкети з рядком над H1 і підзаголовком: рядки сітки теми мають фіксовану висоту — тут auto */
.main-banner__wrapper.gxq-head-on { grid-template-rows: auto auto 1fr; align-content: start; }
.gxq-head-on .gxq-head { grid-row: 1; }
.gxq-head-on.gxq-m .gxq-head,
.gxq-head-on.gxq-m .main-banner__content { grid-column: 1 / 2; }
.gxq-head-on.gxq-d .gxq-head,
.gxq-head-on.gxq-d .main-banner__content { grid-column: 2 / 3; }
.gxq-head-on .main-banner__content { grid-row: 2 / 4; margin-top: 28px; }
.gxq-head-on .main-banner__img { grid-row: 1 / 4; }
.gxq-head-on.gxq-m .main-banner__img { grid-column: 2 / 3; }
.gxq-head-on.gxq-d .main-banner__img { grid-column: 1 / 2; }
.gxq-head .gxq-h1 { margin: 0; font: inherit; text-transform: inherit; color: inherit; }
.gxq-head-on .main-banner__content p { margin: 0 0 14px; }
.gxq-hint { margin: 6px 0 0; font-family: "Manrope", sans-serif; font-size: 13px; line-height: 1.5; color: #8a8b8b; }
.gxq-err {
  margin: 6px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: #c0392b;
}
.gxq-err[hidden] { display: none; }
.gxq-invalid { border-color: #c0392b !important; }
.gxq-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #2c3f50;
  cursor: pointer;
}
.gxq-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #227ba8; }
.gxq-consent a { color: #227ba8; text-decoration: underline; }
.anketa_wrap .gxq-note { max-width: 760px; margin: 18px auto 0; text-align: center; }
.gxq-success { margin: 0 0 24px; font-family: "Manrope", sans-serif; }
.gxq-success__title {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 26px;
  line-height: 130%;
  color: #2c3f50;
}
.gxq-success__text { font-size: 16px; line-height: 160%; color: #5e5f5f; }
.gxq-success__text p { margin: 0 0 10px; }
.gxq-success__text a { color: #227ba8; text-decoration: underline; }

@media all and (max-width: 1280px) {
  .gxp-prose h2, .gxp-faq__title { font-size: 20px; }
}
@media all and (max-width: 767px) {
  .gxp-block { padding: 26px 0; font-size: 15px; }
  .gxp-container .gxp-block:first-child { padding-top: 36px; }
  .gxp-container .gxp-block:last-child { padding-bottom: 36px; }
  .gxp-prose h2, .gxp-faq__title { font-size: 17px; }
  .gxp-prose h3 { font-size: 16px; }
  .gxp-prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; }
  .gxp-prose th, .gxp-prose td { padding: 10px 12px; min-width: 120px; }
  .gxp-prose .gxp-cta .btn { width: 100%; min-width: 0; }
  .hero-banner__description .gxc-sub, .gxq-sub { font-size: 17px; }
}
