/* ═══════════════════════════════════════════════════════════
   КІГіП — сторінка «Про нас»
   Шаблон: page-kigip-about.php

   Шрифти НЕ підключаються ззовні — використовуються шрифти теми.
   Префікс .ka- щоб не конфліктувати зі стилями EduBlink.
   ═══════════════════════════════════════════════════════════ */

.kigip-about {
  --ka-teal: #608758;
  --ka-teal-dark: #476b40;
  --ka-orange: #eb8b01;
  --ka-purple: #608758;
  --ka-dark: #1a202c;
  --ka-dark2: #1a202c;
  --ka-text: #6B7280;
  --ka-light: #f0f2f5;
  --ka-border: #E7E7E7;
  --ka-radius: 12px;
  --ka-shadow: 0 10px 48px rgba(0, 0, 0, .08);
  --ka-shadow-sm: 0 4px 20px rgba(0, 0, 0, .06);

  color: var(--ka-text);
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
}

.kigip-about h1,
.kigip-about h2,
.kigip-about h3,
.kigip-about h4,
.kigip-about h5 {
  color: var(--ka-dark);
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
}

.kigip-about p { margin: 0; }
.kigip-about img { max-width: 100%; display: block; }

.ka-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.ka-section { padding: 90px 0; }

/* ─── Типографіка ─── */
.ka-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ka-teal);
  margin-bottom: 14px;
}
.ka-eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ka-teal);
}
.ka-eyebrow--plain { text-transform: none; letter-spacing: 0; font-size: 14px; }

.ka-title { font-size: 34px; margin-bottom: 14px; }
.ka-title--light { color: #fff; }

.ka-lead { max-width: 720px; line-height: 1.75; }
.ka-lead--light { color: rgba(255, 255, 255, .72); }

.ka-head { margin-bottom: 46px; }
.ka-head--center { text-align: center; }
.ka-head--center .ka-lead { margin-left: auto; margin-right: auto; }

.ka-rte p { margin-bottom: 12px; }
.ka-rte p:last-child { margin-bottom: 0; }

/* ─── Кнопки ─── */
.ka-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.ka-btn svg { width: 18px; height: 18px; }
.ka-btn--primary { background: var(--ka-teal); color: #fff !important; }
.ka-btn--primary:hover { background: var(--ka-teal-dark); transform: translateY(-2px); }
.ka-btn--dark { background: var(--ka-dark2); color: #fff !important; }
.ka-btn--dark:hover { background: #000; }
.ka-btn--white { background: #fff; color: var(--ka-dark) !important; }
.ka-btn--white:hover { background: var(--ka-light); }

/* ═══ ШАПКА ═══ */
.ka-hero {
  position: relative;
  background: linear-gradient(180deg, #F4F7F9 0%, #EEF3F6 100%);
  padding: 70px 0 90px;
  overflow: hidden;
}
.ka-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
/* Поки фото не завантажене — текст на всю ширину, а не в пів колонки */
.ka-hero__inner--solo { grid-template-columns: 1fr; }
.ka-hero__inner--solo .ka-hero__desc { max-width: 760px; }

.ka-hero__title { font-size: 42px; line-height: 1.25; margin-bottom: 18px; }
.kigip-about .ka-hero__desc { font-size: 16px; line-height: 1.75; margin-bottom: 28px; max-width: 520px; }
.ka-hero__media img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--ka-shadow);
  object-fit: cover;
}

/* Декор шапки */
.ka-hero__deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ka-deco { position: absolute; display: block; }
.ka-deco--dots-1,
.ka-deco--dots-2 {
  width: 78px; height: 78px;
  background-image: radial-gradient(var(--ka-teal) 1.6px, transparent 1.6px);
  background-size: 13px 13px;
  opacity: .45;
}
.ka-deco--dots-1 { top: 60px; left: 46%; }
.ka-deco--dots-2 { top: 190px; left: 42%; opacity: .3; }
.ka-deco--ring-orange,
.ka-deco--ring-purple { border-radius: 50%; }
.ka-deco--ring-orange { top: 34px; right: 15%; width: 34px; height: 34px; border: 4px solid var(--ka-orange); }
.ka-deco--ring-purple { bottom: 90px; right: 3%; width: 46px; height: 46px; border: 5px solid var(--ka-purple); }
.ka-deco--waves {
  top: 70px; right: 2%;
  width: 52px; height: 22px;
  background:
    repeating-linear-gradient(180deg, var(--ka-teal) 0 2px, transparent 2px 8px);
  opacity: .5;
  mask-image: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 6px);
}

/* ═══ ТАЙМЛАЙН ═══ */
.ka-timeline {
  position: relative;
  background: var(--ka-light);
  padding: 70px 0;
}
.ka-timeline .ka-container { position: relative; }

.ka-timeline__scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 0 4px;
}
.ka-timeline__scroll::-webkit-scrollbar { display: none; }

.ka-timeline__track {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.ka-milestone {
  position: relative;
  flex: 0 0 300px;
  scroll-snap-align: start;
  padding-top: 56px;
}
/* Горизонтальна лінія між віхами */
.ka-milestone::before {
  content: '';
  position: absolute;
  top: 41px;
  left: 0;
  right: -24px;
  height: 2px;
  background: rgba(96, 135, 88, .28);
}
.ka-milestone:last-child::before { right: 50%; }
.ka-milestone:first-child::before { left: 50%; right: -24px; }

.ka-milestone__year {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  font-weight: 700;
  color: var(--ka-teal);
  white-space: nowrap;
}
.ka-milestone.is-current .ka-milestone__year { color: var(--ka-teal-dark); }
.ka-milestone.is-current .ka-milestone__year::after {
  content: 'і далі';
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ka-text);
  text-align: center;
}

.ka-milestone__dot {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ka-teal);
  border: 3px solid var(--ka-light);
  box-shadow: 0 0 0 2px rgba(96, 135, 88, .35);
}

.ka-milestone__card {
  display: flex;
  gap: 14px;
  height: calc(100% - 56px);
  background: #fff;
  border: 1px solid var(--ka-border);
  border-radius: var(--ka-radius);
  padding: 14px;
  box-shadow: var(--ka-shadow-sm);
}
.ka-milestone.is-current .ka-milestone__card {
  border-color: rgba(96, 135, 88, .45);
  box-shadow: 0 8px 30px rgba(96, 135, 88, .16);
}

.ka-milestone__media { flex: 0 0 96px; }
.ka-milestone__media img,
.ka-milestone__placeholder {
  width: 96px;
  height: 118px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.ka-milestone__placeholder { background: linear-gradient(135deg, #E4EBEF, #D2DDE3); }

.ka-milestone__body { display: flex; flex-direction: column; min-width: 0; }
.ka-milestone__body h3 { font-size: 15px; margin-bottom: 6px; }
.ka-milestone__body p {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.ka-milestone__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ka-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(96, 135, 88, .1);
  color: var(--ka-teal-dark);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}
.ka-plus {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--ka-border);
  color: var(--ka-text);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.ka-timeline__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ka-border);
  background: #fff;
  color: var(--ka-dark);
  cursor: pointer;
  box-shadow: var(--ka-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, opacity .2s;
  z-index: 3;
}
.ka-timeline__nav svg { width: 20px; height: 20px; }
.ka-timeline__nav:hover:not(:disabled) { background: var(--ka-teal); color: #fff; border-color: var(--ka-teal); }
.ka-timeline__nav:disabled { opacity: .35; cursor: default; }
.ka-timeline__nav--prev { left: -8px; }
.ka-timeline__nav--next { right: -8px; }

/* ═══ ЛІЧИЛЬНИКИ ═══ */
.ka-stats { background: var(--ka-light); padding: 0 0 70px; }
.ka-stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  background: #fff;
  border: 1px solid var(--ka-border);
  border-radius: var(--ka-radius);
  padding: 26px 24px;
  box-shadow: var(--ka-shadow-sm);
}
.ka-stat { display: flex; align-items: center; gap: 14px; }
.ka-stat + .ka-stat { border-left: 1px solid var(--ka-border); padding-left: 18px; }
.ka-stat__icon { flex: 0 0 34px; color: var(--ka-teal); }
.ka-stat__icon svg { width: 34px; height: 34px; }
.ka-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--ka-dark);
  line-height: 1.2;
}
.ka-stat span { font-size: 13px; line-height: 1.45; }

/* ═══ ХТО МИ ═══ */
.ka-who__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.ka-who__media { position: relative; }
.ka-who__img {
  width: 100%;
  border-radius: var(--ka-radius);
  box-shadow: var(--ka-shadow);
}
.ka-who__img--empty {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #E4EBEF, #D2DDE3);
}
.ka-who__badge {
  position: absolute;
  right: -14px;
  bottom: -18px;
  background: var(--ka-teal);
  color: #fff;
  border-radius: var(--ka-radius);
  padding: 18px 22px;
  text-align: center;
  box-shadow: var(--ka-shadow);
}
.ka-who__badge strong { display: block; font-size: 30px; line-height: 1; }
.ka-who__badge span { font-size: 12px; line-height: 1.35; }

.ka-checklist { list-style: none; margin: 22px 0 0; padding: 0; }
.ka-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.ka-check {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--ka-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ka-check svg { width: 12px; height: 12px; }

/* ═══ СІТКИ ТА КАРТКИ ═══ */
.ka-grid { display: grid; gap: 24px; }
.ka-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ka-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ka-grid--4 { grid-template-columns: repeat(4, 1fr); }

.ka-card {
  background: #fff;
  border: 1px solid var(--ka-border);
  border-radius: var(--ka-radius);
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}
.ka-card:hover { transform: translateY(-4px); box-shadow: var(--ka-shadow); }
.ka-card__icon { font-size: 30px; display: block; margin-bottom: 14px; }
.ka-card h4, .ka-card h5 { font-size: 17px; margin-bottom: 10px; }
.ka-card p { font-size: 14px; line-height: 1.7; }

.ka-principles { background: var(--ka-light); }

/* ═══ АКРЕДИТАЦІЯ ═══ */
.ka-accred__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.ka-accred__badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.ka-accred__item {
  border: 1px solid var(--ka-border);
  border-radius: 10px;
  padding: 16px 18px;
  background: #fff;
}
.ka-accred__code {
  display: inline-block;
  font-weight: 700;
  color: var(--ka-teal);
  font-size: 15px;
  margin-bottom: 4px;
}
.ka-accred__item p { font-size: 13px; line-height: 1.55; }

.ka-exclusive {
  background: var(--ka-dark2);
  color: rgba(255, 255, 255, .78);
  border-radius: var(--ka-radius);
  padding: 32px 30px;
}
.ka-exclusive h3, .ka-exclusive h4 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.ka-exclusive p { font-size: 14px; line-height: 1.7; }
.ka-exclusive__second { margin-top: 24px !important; }
.ka-exclusive__label {
  display: inline-block;
  background: var(--ka-orange);
  color: #1a202c;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.ka-exclusive--compact { padding: 26px 24px; }

/* ═══ СТУПЕНІ ═══ */
.ka-step {
  background: #fff;
  border: 1px solid var(--ka-border);
  border-top: 3px solid var(--ka-teal);
  border-radius: var(--ka-radius);
  padding: 26px 22px;
}
.ka-step__number {
  font-size: 26px;
  font-weight: 700;
  color: var(--ka-teal);
  line-height: 1;
  margin-bottom: 10px;
}
.ka-step__level {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ka-orange);
  margin-bottom: 8px;
}
.ka-step h4 { font-size: 16px; margin-bottom: 8px; }
.ka-step__duration {
  display: inline-block;
  background: var(--ka-light);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-dark);
  margin-bottom: 10px;
}
.ka-step p { font-size: 13px; line-height: 1.65; }

/* ═══ ТРЕНЕРИ ═══ */
.ka-trainers { background: var(--ka-light); }
.ka-trainer {
  background: #fff;
  border-radius: var(--ka-radius);
  overflow: hidden;
  box-shadow: var(--ka-shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.ka-trainer:hover { transform: translateY(-4px); box-shadow: var(--ka-shadow); }
.ka-trainer__photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--ka-dark2), var(--ka-teal));
  display: flex;
  align-items: center;
  justify-content: center;
}
.ka-trainer__photo img { width: 100%; height: 100%; object-fit: cover; }
.ka-trainer__initials { color: #fff; font-size: 34px; font-weight: 700; }
.ka-trainer__info { padding: 18px 20px 22px; }
.ka-trainer__info h4 { font-size: 16px; margin-bottom: 6px; }
.ka-trainer__role { font-size: 13px; color: var(--ka-teal); font-weight: 600; }
.ka-trainer__certs { font-size: 12px; margin-top: 4px; }
.kigip-about .ka-trainers__more { text-align: center; margin-top: 32px; font-size: 14px; }
.ka-trainers__more a { color: var(--ka-teal); font-weight: 700; }

/* ═══ МІЖНАРОДНЕ ═══ */
.ka-intl__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}
.ka-intl__cards { margin-top: 28px; }
.ka-flag { font-size: 26px; display: block; margin-bottom: 10px; }
.ka-card--partner h5 { font-size: 15px; }
.ka-card--partner p { font-size: 13px; }
.ka-intl__aside { display: flex; flex-direction: column; gap: 20px; }
.ka-guests {
  border: 1px solid var(--ka-border);
  border-radius: var(--ka-radius);
  padding: 24px;
  background: var(--ka-light);
}
.ka-guests h5 { font-size: 14px; margin-bottom: 10px; }
.ka-guests p { font-size: 13px; line-height: 1.9; }

/* ═══ СПІЛЬНОТА ═══ */
.ka-community {
  background: var(--ka-dark2);
  padding: 90px 0;
}
.ka-community .ka-eyebrow--plain { color: var(--ka-teal); }
.ka-card--event {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
}
.ka-card--event h4 { color: #fff; }
.ka-card--event p { color: rgba(255, 255, 255, .68); }
.ka-card--event:hover { background: rgba(255, 255, 255, .09); box-shadow: none; }

/* ═══ ВІДГУКИ ═══ */
.ka-quote {
  margin: 0;
  background: #fff;
  border: 1px solid var(--ka-border);
  border-radius: var(--ka-radius);
  padding: 28px 26px;
  box-shadow: var(--ka-shadow-sm);
}
.ka-quote__stars { color: var(--ka-orange); font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.ka-quote blockquote {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ka-text);
}
.ka-quote figcaption { display: flex; align-items: center; gap: 12px; }
.ka-quote__ava {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ka-teal);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ka-quote figcaption strong { display: block; font-size: 14px; color: var(--ka-dark); }
.ka-quote figcaption em { font-style: normal; font-size: 12px; }

/* ═══ FAQ ═══ */
.ka-faq { background: var(--ka-light); }
.ka-faq__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ka-faq__item {
  background: #fff;
  border: 1px solid var(--ka-border);
  border-radius: var(--ka-radius);
  padding: 20px 22px;
}
.ka-faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--ka-dark);
  line-height: 1.5;
}
.ka-faq__item summary::-webkit-details-marker { display: none; }
.ka-faq__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(96, 135, 88, .12);
  position: relative;
  transition: background .2s;
}
.ka-faq__icon::before,
.ka-faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ka-teal);
}
.ka-faq__icon::before { width: 10px; height: 2px; }
.ka-faq__icon::after { width: 2px; height: 10px; transition: transform .2s, opacity .2s; }
.ka-faq__item[open] .ka-faq__icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.ka-faq__answer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ka-border);
  font-size: 14px;
  line-height: 1.75;
}

/* ═══ CTA ═══ */
.ka-cta {
  background: linear-gradient(120deg, var(--ka-teal) 0%, var(--ka-teal-dark) 100%);
  padding: 60px 0;
}
.ka-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.ka-cta h2 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.ka-cta p { color: rgba(255, 255, 255, .85); font-size: 15px; }
.ka-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ═══ АДАПТИВ ═══ */
@media (max-width: 1100px) {
  .ka-stats__grid { grid-template-columns: repeat(3, 1fr); }
  .ka-stat:nth-child(4) { border-left: none; padding-left: 0; }
  .ka-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ka-accred__grid,
  .ka-intl__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .ka-section { padding: 64px 0; }
  .ka-hero { padding: 50px 0 64px; }
  .ka-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .ka-hero__title { font-size: 32px; }
  .ka-title { font-size: 27px; }
  .ka-who__grid { grid-template-columns: 1fr; gap: 40px; }
  .ka-who__badge { right: 12px; bottom: -14px; }
  .ka-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ka-faq__grid { grid-template-columns: 1fr; }
  .ka-timeline__nav { display: none; }
}

@media (max-width: 640px) {
  .ka-container { padding: 0 16px; }
  .ka-hero__title { font-size: 26px; }
  .ka-title { font-size: 23px; }
  .ka-grid--2,
  .ka-grid--3,
  .ka-grid--4 { grid-template-columns: 1fr; }
  .ka-accred__badges { grid-template-columns: 1fr; }
  .ka-stats__grid { grid-template-columns: 1fr; gap: 14px; }
  .ka-stat + .ka-stat { border-left: none; padding-left: 0; border-top: 1px solid var(--ka-border); padding-top: 14px; }
  .ka-milestone { flex-basis: 260px; }
  .ka-cta__inner { flex-direction: column; align-items: flex-start; }
}
