/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1001; /* поверх всього */
}
.burger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* Мобільне меню */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 60px 20px 20px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}
.mobile-menu.active {
  transform: translateY(0);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35); /* затемнення */
}
.mobile-menu nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu nav ul li {
  margin-bottom: 20px;
}
.mobile-menu nav ul li a {
  font-size: 18px;
  text-decoration: none;
  color: #081e35;
}
.mobile-menu .btn-donate-header {
  display: block;
  width: calc(100% - 40px); /* мінус 20px відступ зліва і справа */
  text-align: center;
  background: #ffd700;
  color: #081e35;
  font-size: 18px;
  border-radius: 5px;
  box-sizing: border-box;
}

.mobile-menu .donate-icon {
  display: none;
}

/* Коли меню активне — блокуємо скрол */
.no-scroll {
  overflow: hidden;
}

/* Показуємо бургер на мобілках */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }
  .nav,
  .header .btn-donate-header {
    display: none;
  }
}
/* Анімація бургер → хрестик */
.burger span {
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Зміна кольору при відкритті */
.burger.is-open span {
  background-color: #081e35; /* чорний */
}

/* HERO — мобільний вигляд */
@media (max-width: 768px) {
  .hero-section {
    min-height: 92vh; /* майже весь екран */
    align-items: center; /* вертикальне вирівнювання */
  }

  .hero-content {
    text-align: center; /* як на макеті */
    padding: 56px 0 32px; /* баланс по вертикалі */
  }

  .hero-content h1 {
    /* Щоб текст виглядав як на макеті і не “розлазився” */
    font-size: clamp(28px, 6vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.5px;
    max-width: 20ch; /* обмеження ширини блоку заголовка */
    margin: 0 auto 24px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
  }

  .hero-buttons .btn {
    width: min(320px, 88%); /* ширина кнопок як на скріні */
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 6px;
  }

  /* Жовта кнопка з легкою тінню (як на макеті) */
  .hero-buttons .btn-primary {
    width: min(104px, 88%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  }

  /* Прозора кнопка з білою рамкою */
  .hero-buttons .btn-secondary {
    width: min(104px, 88%);
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
  }
}

/* ще компактніше для вузьких екранів */
@media (max-width: 480px) {
  .hero-content {
    padding: 44px 0 28px;
  }
  .hero-content h1 {
    font-size: clamp(26px, 7vw, 32px);
  }
  .hero-buttons .btn {
    padding: 13px 18px;
  }
}
/* FUNDRAISING — мобільний вигляд */
@media (max-width: 768px) {
  .fundraising-section {
    padding: 40px 0 28px;
  }

  .fundraising-section .section-title {
    text-align: center;
    font-size: clamp(22px, 4.8vw, 28px);
    margin-bottom: 18px;
  }

  .progress-card {
    background: #eef5fb; /* легкий блакитний фон */
    border-radius: 10px;
    padding: 18px 16px 22px;
    max-width: 520px;
    margin: 0 auto 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .progress-card__title {
    color: #081e35;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.48px;
    margin: 4px 0 14px;
  }

  .progress-bar__meta {
    font-family: 'Manrope', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    margin-bottom: 10px;
  }
  .money-span {
    display: none;
  }
  .progress-bar__container {
    width: 100%;
    height: 12px;
    background: #c9d3de; /* світла смуга */
    border-radius: 999px;
    overflow: hidden;
  }
  .progress-bar__fill {
    height: 100%;
    background: #0b2f57; /* темно-синя заповнена частина */
    border-radius: 999px;
    transition: width 0.3s ease;
  }

  .progress-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    text-align: center;
    margin: 14px 0 12px;
  }
  .progress-card__stats > .stat > .stat__value {
    font-family: 'Manrope', sans-serif;
    font-size: 25px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    line-height: 1.15;
  }
  .stat__label {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    margin-top: 2px;
  }

  .progress-card__action {
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }
  .progress-card__action .btn-primary {
    width: min(94px, 88%);
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18); /* як на макеті */
  }

  .fundraising-section__text {
    max-width: 620px;
    margin: 14px auto 0;
    font-size: 14px;
    line-height: 1.55;
    color: #2a3d53;
    text-align: left; /* як у типовому текстовому блоку */
    padding: 0 6px;
  }
}

/* дуже вузькі екрани */
@media (max-width: 420px) {
  .stat__value {
    font-size: 20px;
  }
  .progress-card {
    padding: 16px 14px 20px;
  }
}
/* TEXT + VIDEO — мобільний вигляд */
@media (max-width: 768px) {
  .fundraising-section__text {
    max-width: 680px;
    margin: 18px auto 20px;
    padding: 0 8px;
    text-align: center;
    font-size: 16px;
    line-height: 1.55;
    color: #1a2e44;
  }

  .video-container {
    margin: 12px auto 28px;
    padding: 0 8px; /* невеликий внутрішній відступ від країв екрана */
    max-width: 760px; /* щоб не “розлазилось” на планшетах */
  }

  .video-block {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9; /* стабільне співвідношення сторін */
    cursor: pointer;
  }

  .video-block img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* як на макеті */
    display: block;
  }

  .play-button {
    position: absolute !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) !important;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* клікаємо по .video-block */
    z-index: 2;
  }
  .play-button svg {
    display: block;
    width: 64px; /* = розміру контейнера */
    height: 64px;
  }

  /* На випадок, якщо попередній варіант із "inset:0; display:grid" залишився — обнуляємо */
  .play-button.reset-centering {
    inset: auto !important;
    display: flex !important;
    place-items: normal !important;
  }
}

/* дуже вузькі екрани */
@media (max-width: 420px) {
  .fundraising-section__text {
    font-size: 15px;
    line-height: 1.6;
  }
}
/* === MOBILE: ≤768px — доти ПІД стрілками, гарантовано === */
@media (max-width: 768px) {
  /* Грід: слайд → стрілки → доти */
  .main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'slider slider'
      'nav-prev nav-next'
      'dots dots';
    row-gap: 14px;
    column-gap: 6px;
    justify-items: center;
    align-items: center;
    padding: 8px 12px 24px;
  }

  /* ВАЖЛИВО: підняти дітей slider-container у грід */
  .slider-container {
    display: contents; /* <-- робить .slider-wrapper і .dots-container прямими дітьми .main-container */
  }

  /* Сам слайд зверху */
  .slider-wrapper {
    grid-area: slider;
    width: 100%;
  }

  /* Стрілки в один ряд */
  .nav-button {
    position: static !important;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0;
    border: 2px solid transparent;
  }
  .nav-button.prev {
    grid-area: nav-prev;
    justify-self: end;
    background: #fff;
    border-color: #d8e1ea;
  }
  .nav-button.prev svg {
    fill: #c1ceda;
  }
  .nav-button.next {
    grid-area: nav-next;
    justify-self: start;
    background: #0b2f57;
  }
  .nav-button.next svg {
    fill: #fff;
  }

  /* Доти — ОКРЕМИЙ РЯД ПІД стрілками */
  .dots-container {
    grid-area: dots; /* тепер працює, бо елемент став дитиною .main-container */
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    justify-self: center;
    grid-column: 1 / -1;

    /* Силово скидаємо desktop-позиціювання */
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: 1 !important;

    width: auto;
    margin-top: 2px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Вигляд дотів */
  .dots-container .dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 2px; /* «квадратики» */
    background: #d8d8d8;
    flex: 0 0 14px;
  }
  .dots-container .dot.active {
    background: #ffd34d;
  }
}

/* Дуже вузькі */
@media (max-width: 420px) {
  .nav-button {
    width: 44px;
    height: 44px;
  }
  .nav-button svg {
    width: 20px;
    height: 20px;
  }
  .dots-container {
    gap: 6px;
  }
  .dots-container .dot {
    width: 12px;
    height: 12px;
  }
}
@media (max-width: 768px) {
  /* Робимо сам слайд грідом з трьома рядами */
  .slide {
    display: grid;
    grid-template-areas:
      'author'
      'image'
      'quote';
    row-gap: 14px;
    justify-items: center;
    text-align: center;
  }

  /* «Піднімаємо» дітей .slide-content, щоб ними можна було керувати як грід-елементами */
  .slide-content {
    display: contents; /* тепер .author і .quote стали прямими дітьми .slide */
  }

  /* 1) Автор (усередині — ім'я й титул) */
  .author {
    grid-area: author;
    margin-bottom: 2px;
  }
  .author-name {
    display: block;
    font-weight: 800;
    font-size: 18px;
    color: #0a2948;
    margin-bottom: 4px; /* відступ між ім’ям і титулом */
  }
  .author-title {
    display: block;
    font-size: 14px;
    color: #5e6f83;
  }

  /* 2) Фото */
  .slide-image {
    grid-area: image;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
  }
  .pastor-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  /* 3) Цитата */
  .quote {
    grid-area: quote;
    font-weight: 800;
    color: #0a2948;
    font-size: clamp(18px, 4.8vw, 22px);
    line-height: 1.3;
    max-width: 34ch; /* комфортна довжина рядка */
    margin: 0 auto;
    letter-spacing: -0.2px;
  }
}
/* =======================
   Capital objectives — mobile
   ======================= */
@media (max-width: 991px) {
  .objectives-container {
    padding: 24px 16px;
  }

  .objectives-container .section-title {
    font-size: 26px;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 16px;
  }

  .objectives-container .cards-grid {
    display: grid;
    grid-template-columns: 1fr; /* одна колонка */
    gap: 12px;
  }

  .objectives-container .card {
    display: grid;
    grid-template-columns: 64px 1fr; /* іконка + контент */
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 10px;
    background: #f3f7fb; /* світлий сіро-блакитний як на макеті */
    /* якщо в базових стилях є рамки/тіні — приб’ємо */
    border: none;
    box-shadow: none;
  }

  .objectives-container .card .icon {
    width: 64px;
    height: 64px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* щоб SVG/PNG вміщувався */
  }

  .objectives-container .card-content h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
    color: #0a2746; /* темно-синій текст */
  }

  .objectives-container .card-content a {
    display: inline-block;
    font-size: 16px;
    color: #0a2746;
    text-decoration: underline; /* як у макеті */
    font-weight: 600;
  }
}

/* дрібні екрани — трохи менші відступи/іконки */
@media (max-width: 380px) {
  .objectives-container .card {
    grid-template-columns: 56px 1fr;
    padding: 16px;
  }
  .objectives-container .card .icon {
    width: 56px;
    height: 56px;
  }
  .objectives-container .card-content h3 {
    font-size: 17px;
  }
  .objectives-container .card-content a {
    font-size: 15px;
  }
}
/* =======================
   Stats grid — mobile (2 cols table-like)
   ======================= */
@media (max-width: 991px) {
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'hundredsLocal hundredsTons'
      'thousand      fourHund'
      'fourVet       eightHund';
    gap: 0;
    border: 1px solid #e6eaee;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 16px; /* як у макеті є відступи від країв */
  }

  /* ховаємо великий заголовок блоку на мобільному */
  .stats-grid .title-section {
    display: none;
  }

  /* розкладка елементів за поточним HTML-порядком */
  .stats-grid > .stat-item:nth-child(3) {
    grid-area: hundredsLocal;
  } /* Hundreds — local community */
  .stats-grid > .stat-item:nth-child(6) {
    grid-area: hundredsTons;
  } /* Hundreds — tons of aid */
  .stats-grid > .top-right-stat {
    grid-area: thousand;
  } /* 1000 students */
  .stats-grid > .stat-item:nth-child(4) {
    grid-area: fourHund;
  } /* 400 counseled */
  .stats-grid > .stat-item:nth-child(5) {
    grid-area: fourVet;
  } /* 400 veterans */
  .stats-grid > .stat-item:nth-child(7) {
    grid-area: eightHund;
  } /* 800 ministers */
  .stats-grid > .stat-item:nth-child(8) {
    display: none;
  } /* порожня клітинка */

  /* загальний стиль клітинки */
  .stats-grid > .stat-item,
  .stats-grid > .top-right-stat {
    padding: 18px 16px;
    background: #fff;
  }

  /* внутрішні розділювачі (щоб не було подвійних ліній) */
  /* нижні лінії для перших двох рядків */
  .stats-grid > .stat-item:nth-child(3),
  .stats-grid > .stat-item:nth-child(6),
  .stats-grid > .top-right-stat,
  .stats-grid > .stat-item:nth-child(4) {
    border-bottom: 1px solid #e6eaee;
  }
  /* вертикальна лінія між колонками (для лівої колонки) */
  .stats-grid > .stat-item:nth-child(3),  /* hundredsLocal */
  .stats-grid > .top-right-stat,          /* thousand */
  .stats-grid > .stat-item:nth-child(5) {
    /* fourVet */
    border-right: 1px solid #e6eaee;
  }

  /* типографіка всередині клітинок */
  .stats-grid .hundreds-text {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .stats-grid .stat-number {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px; /* 125% */
    letter-spacing: -0.72px;
    margin-bottom: 8px;
  }

  .stats-grid .stat-description {
    font-family: 'Manrope', sans-serif;
    max-width: 135px;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
    color: #4b5563; /* сіро-темний текст опису */
  }
  .top-right-stat {
    display: flex;
    align-items: flex-start;
  }
  /* кольори як на макеті */
  .stats-grid .light-blue {
    color: #b6d9ff;
  }
  .stats-grid .dark-blue {
    color: #4c4c4c;
  }
  .stats-grid .light-gray {
    color: #4c4c4c;
  }

  /* заголовок секції перед грідом – якщо він у тебе поза .stats-grid,
     і ти хочеш його приховати на мобільному, додай цей клас */
  .stats-grid + .section-title--numbers {
    display: none;
  }
}

/* дрібні екрани */
@media (max-width: 380px) {
  .stats-grid > .stat-item,
  .stats-grid > .top-right-stat {
    padding: 16px 14px;
  }
  .stats-grid .stat-number {
    font-size: 26px;
  }
  .stats-grid .hundreds-text {
    font-size: 22px;
  }
  .stats-grid .stat-description {
    font-size: 14px;
  }
}
/* =======================
   Plans & visualization — precise mobile layout
   ======================= */
/* =======================
   Plans & visualization — precise mobile layout
   ======================= */
@media (max-width: 991px) {
  /* базові відступи */
  .combined-sections {
    padding: 0 16px;
    gap: 0;
  }
  .combined-sections .content-section {
    margin-bottom: 20px;
  }

  .combined-sections .section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .combined-sections .grid-item img {
    width: 100%;
    min-height: 100px;
    display: block;
  }
  .grid-item.full-height img {
    height: 104px;
    object-fit: cover;
  }
  .combined-sections .text-block {
    display: flex;
    height: auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    min-height: 72px;
    background: #0a2746;
    color: #fff;
  }
  .combined-sections .text-block h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
  }
  .combined-sections .text-block .icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
  }
  .combined-sections .text-block .icon svg {
    width: 32px;
    height: 32px;
  }

  /* --- Group 1 / item 1: PLANS --- */
  /* порядок: wide (image 1) / нижче: LEFT (text-block), RIGHT (image 2) */
  .combined-sections:first-of-type .content-section:first-child .section-grid {
    grid-template-areas:
      'wide wide'
      'left right';
  }
  .combined-sections:first-of-type
    .content-section:first-child
    .grid-item.full-width {
    grid-area: wide;
  }
  .combined-sections:first-of-type .content-section:first-child .text-block {
    grid-area: left;
  }
  .combined-sections:first-of-type
    .content-section:first-child
    .grid-item:not(.full-width) {
    grid-area: right;
  }

  /* --- Group 1 / item 2: CAMPUS --- */
  /* порядок: wide (image 3) / нижче: LEFT (image 4), RIGHT (text-block) */
  .combined-sections:first-of-type .content-section:last-child .section-grid {
    grid-template-areas:
      'wide wide'
      'left right';
  }
  .combined-sections:first-of-type
    .content-section:last-child
    .grid-item.full-height {
    grid-area: wide;
  }
  .combined-sections:first-of-type
    .content-section:last-child
    .grid-item:not(.full-height) {
    grid-area: left;
  }
  .combined-sections:first-of-type .content-section:last-child .text-block {
    grid-area: right;
  }

  /* --- Group 2 / item 1: ACADEMIC BUILDING --- */
  /* у твоєму HTML бейдж знаходиться В СЕРЕДИНІ другого .grid-item.
     Щоб він став окремою плиткою, даємо display:contents і розкидаємо дітей по областях */
  .combined-sections:nth-of-type(2) .content-section:first-child .section-grid {
    grid-template-areas:
      'wide wide'
      'left right';
  }
  /* другий grid-item «розчиняємо» */
  .combined-sections:nth-of-type(2)
    .content-section:first-child
    .section-grid
    .grid-item:nth-child(2) {
    display: contents;
  }
  /* його <img> — широким зверху */
  .combined-sections:nth-of-type(2)
    .content-section:first-child
    .section-grid
    .grid-item:nth-child(2)
    > img {
    grid-area: wide;
  }
  /* його .text-block — зліва в другому ряду */
  .combined-sections:nth-of-type(2)
    .content-section:first-child
    .section-grid
    .grid-item:nth-child(2)
    > .text-block {
    grid-area: left;
  }
  /* перший grid-item (image 5) — справа в другому ряду */
  .combined-sections:nth-of-type(2)
    .content-section:first-child
    .section-grid
    .grid-item:first-child {
    grid-area: right;
  }

  /* --- Group 2 / item 2: DINING ROOM --- */
  /* порядок: wide (image 7) / нижче: LEFT (image 8), RIGHT (бейдж) */
  .combined-sections:nth-of-type(2) .content-section:last-child .section-grid {
    grid-template-areas:
      'wide wide'
      'left right';
  }
  .combined-sections:nth-of-type(2)
    .content-section:last-child
    .grid-item.full-width {
    grid-area: wide;
  }
  .combined-sections:nth-of-type(2)
    .content-section:last-child
    .grid-item.full-height {
    grid-area: left;
  }
  .combined-sections:nth-of-type(2) .content-section:last-child .text-block {
    grid-area: right;
  }

  /* дрібні екрани */
  @media (max-width: 380px) {
    .combined-sections .section-grid {
      gap: 10px;
    }
    .combined-sections .text-block {
      padding: 14px;
      min-height: 66px;
    }
    .combined-sections .text-block h5 {
      font-size: 15px;
    }
  }
}

@media (max-width: 991px) {
  .timeline {
    position: relative;
    --tl-x: 44px;
    --marker-size: 44px;
  }
  .timeline::before {
    content: '';
    position: absolute;
    left: var(--tl-x);
    top: 0;
    bottom: 0;
    width: 2px;
    opacity: 0.2;
    background: linear-gradient(
      270deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.7) 25.5%,
      #000 50%,
      rgba(0, 0, 0, 0.7) 75%,
      rgba(0, 0, 0, 0) 100%
    );
  }
  .timeline-item {
    position: relative;
    padding-left: 0;
    margin: 28px 0 5%;
    display: flex;
    flex-direction: column;
  }
  .timeline-content .icon {
    margin: 0 0 8px;
  }
  .timeline-content h4 {
    margin: 0 0 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    color: #4c4c4c;
  }
  .timeline-content p {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    color: #081e35;
  }
  .timeline-content {
    padding-top: calc(var(--tl-x) + 7%);
    margin-right: calc(var(--tl-x) + 20%);
    margin-left: calc(var(--tl-x) + 5%);
  }
  .timeline-marker {
    position: absolute;
    top: 70px;
    left: 0;
    transform: translate(calc(var(--tl-x) - 50%), -100%);
    width: var(--marker-size);
    height: var(--marker-size);
    border-radius: 50%;
    background: #0a2746;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }
  .timeline-marker .number {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
  }
  .timeline-image {
    display: none;
  }
}
/* Partners Section — Mobile & Tablet */
@media (max-width: 991px) {
  .partners-section {
    padding: 0;
    margin: 0 auto;
  }

  .partners-section .section-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 24px;
  }

  .partners-grid {
    display: grid;
    grid-template-columns: repeat(
      2,
      minmax(0, 1fr)
    ); /* 2 колонки без переповнення */
    gap: 12px;
    padding: 0 16px; /* звузити до рамок екрана */
    box-sizing: border-box;
    max-width: 100%;
    margin: 0 auto 50px;
  }

  .partner-card {
    min-width: 0; /* щоб контент не розпирал колонку */
    padding: 12px;
    text-align: center;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    background: #fff;
  }

  /* Текст логотипів: адаптивний розмір і перенос слів */
  .partner-card > div {
    font-size: clamp(12px, 3.6vw, 16px);
    line-height: 1.25;
    overflow-wrap: anywhere; /* перенос довгих слів/рядків */
    word-break: break-word;
  }

  .partner-card small {
    font-size: clamp(10px, 3vw, 12px);
  }

  .partner-card img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

/* Дуже вузькі екрани — 1 колонка */
@media (max-width: 480px) {
  .partners-grid {
    gap: 12px;
  }

  .partner-card {
    min-height: 80px;
    padding: 15px;
    font-size: 13px;
  }
}

/* How you can help — edge-to-edge cards on phones */
@media (max-width: 991px) {
  /* remove side padding so cards can bleed to screen edges */
  .help-section {
    padding: 0;
    margin: 0 auto;
    max-width: 1000px;
  }

  .help-section .section-title {
    text-align: center;
    font-size: 26px;
    line-height: 1.2;
    margin: 0 16px 20px; /* keep title readable but cards will be full width */
  }

  .help-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;

    /* make the group span the full viewport width */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .help-card {
    width: 80vw; /* full screen width */
    border-radius: 0; /* flush to edges */
    border-left: 0;
    border-right: 0;

    background: #eef4f8;
    border-top: 1px solid #e6edf3;
    border-bottom: 1px solid #e6edf3;

    padding: 28px 20px; /* inner padding now that edges are flush */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .help-icon {
    margin: 4px 0 14px;
    line-height: 0;
  }
  .help-icon svg {
    width: 64px;
    height: 64px;
    display: block;
  }

  .help-title {
    margin: 0;
    color: #081e35;
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
  }
}

@media (max-width: 480px) {
  .help-section .section-title {
    font-size: 22px;
    margin: 0 14px 14px;
  }
  .help-card {
    padding: 22px 16px;
  }
  .help-icon svg {
    width: 56px;
    height: 56px;
  }
  .help-title {
    font-size: 18px;
  }
}
/* Give Section — мобільний порядок: H2 → IMG → TEXT → BUTTON */
@media (max-width: 991px) {
  .give-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* центрування по горизонталі */
    gap: 16px;
    padding: 48px 16px;
    text-align: center; /* центрування тексту */
  }

  /* Розплющуємо .give-content, щоб його діти стали "сусідами" з .give-image */
  .give-content {
    display: contents;
  }

  /* 1) Заголовок */
  .give-content > h2 {
    order: 1;
    color: #081e35;
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px; /* 125% */
    letter-spacing: -0.72px;
    margin: 0;
  }

  /* 2) Картинка */
  .give-image {
    order: 2;
    width: 100%;
    max-width: 500px; /* щоб не була надто широка */
  }
  .give-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  /* 3) Текст */
  .give-content > p {
    order: 3;
    max-width: 335px; /* щоб не лізло за межі, якщо треба точні 335px — заміни на width */
    width: 100%;
    margin: 12px 0 16px;
    color: #4c4c4c;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-style: normal;
    font-weight: 500;
    display: block; /* було flex */
    text-align: left; /* ← вирівнює текст по лівому краю */
  }

  /* 4) Кнопка */
  .give-content > .give-btn {
    order: 4;
    display: inline-block;
    padding: 12px 20px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    background: #ffd43b;
    color: #0a2746;
  }
}
@media (max-width: 991px) {
  .subscribe-section {
    padding: 0 15px;
  }
  .subscribe-container h2 {
    color: #fff;
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 35px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px; /* 125% */
    letter-spacing: -0.72px;
  }
  .subscribe-container {
    width: 100%;
  }

  .subscribe-form {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
  }

  .subscribe-form input {
    flex: 1;
    min-width: 0; /* щоб не вилазив за межі */
    padding: 12px;
    border: none;
    font-size: 16px;
  }

  .subscribe-form button {
    background: #f7c948;
    border: none;
    padding: 0 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap; /* щоб текст кнопки не переносився */
  }
}
@media (max-width: 600px) {
  .site-footer {
    padding: 24px 16px;
  }

  /* Сітка: 1-й блок на всю ширину, далі 2 колонки */
  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 20px;
    grid-column-gap: 24px;
    margin: 0; /* щоб не з’явився горизонтальний скрол */
    max-width: 100%; /* гарантія від переповнення */
  }

  /* Перша колонка (Construction) тягнеться на 2 колонки */
  .footer-container .footer-col:nth-child(1) {
    grid-column: 1 / -1;
  }

  /* Текст і списки */
  .footer-col h3 {
    margin: 0 0 8px;
    font-size: 18px;
  }
  .footer-col p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
  }
  .footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .footer-col li {
    margin: 8px 0;
  }
  .footer-col a {
    text-decoration: none;
  }

  /* Довгі слова типу “Політика конфіденційності” не ламають верстку */
  .footer-col,
  .footer-col li,
  .footer-col a,
  .footer-bottom {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  /* Низ футера */
  .footer-bottom {
    margin-top: 20px;
    padding-top: 14px;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* Objective Page Adaptive Style */
/* 📱 Лише для телефонів */
@media (max-width: 600px) {
  .cards {
    padding: 50px 0;
  }

  .cards .card-sec {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      'title'
      'image'
      'text';
    row-gap: 14px;
    margin-bottom: 28px;
  }

  /* Робимо дітей .card__text прямими елементами гріда */
  .cards .card-sec .card__text {
    display: contents;
  }

  /* 1) Заголовок угорі */
  .cards .card-sec .card__text h3 {
    grid-area: title;
    margin: 0;
    color: #081e35;
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.72px;
    text-align: left;
  }

  /* 2) Зображення по центру, на всю ширину */
  .cards .card-sec .card__image {
    grid-area: image;
  }
  .cards .card-sec .card__image img {
    width: 100%;
    height: auto; /* стабільні пропорції */
    display: block;
    border-radius: 0;
    object-fit: cover;
  }

  /* 3) Текст нижче з лівим вирівнюванням */
  .cards .card-sec .card__text p {
    grid-area: text;
    margin: 0;
    color: #4c4c4c;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    max-width: 335px;
    text-align: left;
  }

  /* На мобільному і “реверсні” картки мають той самий порядок */
  .cards .card-sec.card--reverse {
    grid-auto-flow: row;
  }
}

/* Project Page */
@media (max-width: 600px) {
  /* сітка контролів: пошук зверху, нижче дві колонки */
  .news-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'search search'
      'sel1   sel2';
    gap: 12px;
  }
  .news-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
  }
  .news-controls__search {
    grid-area: search;
    position: relative;
  }

  /* ховаємо старі лінки в nav */
  .news-nav h5 {
    display: none;
  }

  /* контейнер псевдо-select у .news-controls (замість .news-nav) */
  .news-nav-box {
    grid-area: sel1;
    position: relative;
    width: 100%;
  }

  /* кнопка як select */
  .news-nav__select {
    width: 100%;
    height: 56px;
    padding: 0 44px 0 16px;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    background: #fff;
    color: #081e35;
    font-size: 16px;
    text-align: left;
    display: block;
    line-height: 56px;
    position: relative;
  }
  .news-nav__select::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 7l5 6 5-6' fill='none' stroke='%23081E35' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>")
      no-repeat center/18px 18px;
    pointer-events: none;
  }
  .news-nav-box.open .news-nav__select::after {
    transform: translateY(-50%) rotate(180deg);
  }

  /* випадаюче меню під кнопкою */
  .news-nav__menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(8, 30, 53, 0.08);
    padding: 6px;
    z-index: 20;
  }
  .news-nav-box.open .news-nav__menu {
    display: block;
  }

  .news-nav__menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #081e35;
    text-decoration: none;
    font-size: 16px;
  }
  .news-nav__menu a:hover {
    background: #f4f7fa;
  }
  .news-nav__menu a.news-nav__item--active {
    background: #eef5ff;
    font-weight: 700;
  }

  /* рідний select Date – у правій колонці */
  .news-controls__select {
    grid-area: sel2;
    width: 100%;
    height: 56px;
    padding: 0 44px 0 16px;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    font-size: 16px;
    color: #081e35;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 7l5 6 5-6' fill='none' stroke='%23081E35' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
  }
}

/* Project Page */
/* 📱 Лише для телефонів */
@media (max-width: 600px) {
  .article-meta {
    padding: 50px 0;
  }
  .gallery-testimonial__gallery {
    display: flex;
    max-width: 380px;
    max-height: 260px;
    gap: 20px;
    margin-bottom: 40px;
    flex-direction: column;
  }
  .testimonial__author img {
    width: 32px;
    height: 32px;
    aspect-ratio: 1/1;
  }
  .topics-images__item img {
    max-width: 367px;
    max-height: 244px;
  }
  .follow-news__media img {
    border-radius: 0;
  }
  .article-meta__top {
    display: grid;
    grid-template-columns: 1fr 1fr; /* зліва дата, справа шаринг */
    column-gap: 24px;
    row-gap: 8px;
    align-items: start;
  }

  /* Обидва блоки — вертикальні: лейбл зверху, значення нижче */
  .article-meta__date,
  .article-meta__share {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0; /* щоб довгі слова не ламали сітку */
  }

  /* показуємо тільки активний слайд */
  .topics-images__item {
    display: none;
  }
  .topics-images__item.is-active {
    display: block;
  }

  /* оформлення */
  .topics-images__item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }
  .topics-images{
    margin-bottom:0;
  }
  .topics-controls {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  .topics-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e1ea;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
  }

  /* Дата жирніша — як на скріні */
  .article-meta__date time {
    font-weight: 700;
    /* font-size: 16px; color: #081e35; */
    word-break: break-word;
  }

  /* Іконки в рядок під лейблом */
  .share-list {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap; /* не переносимося на новий рядок */
  }

  /* Гарантія, що нічого не “вилазить” */
  .share-list__item a,
  .share-list__item svg {
    display: inline-block;
    max-width: 100%;
  }
}

/* About US Page */

@media (max-width: 600px) {
  .history {
    padding: 50px 16px; /* поля від країв екрана */
  }

  /* Вертикальна жовта лінія зліва */
  .history__timeline {
    position: relative;
    padding-left: 12px; /* відступ від лінії до контенту */
  }
  .history__timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px; /* товщина лінії */
    background: var(--gray-200);
  }

  /* Один стовпчик і порядок: дата → текст → зображення */
  .history__item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
    min-width: 0; /* запобігає переповненню */
  }
  .history__item-body {
    padding: 0;
    order: 1 !important;
  }
  .history__item-date {
    padding-left: 45%;
    width: 200px;
  }
  .history__item-text {
    padding-left: 5%;

    width: 315px;
  }
  .history__item-image {
    width: 100%;
    padding: 0;
    height: 276px;
    flex-shrink: 0;
    aspect-ratio: 3/2;
    order: 2 !important;
  }

  .history__item-image img {
    width: 100%;
    height: auto;
    display: block;

    object-fit: cover;
  }

  .history__item-date {
    --gap: 0px; /* 0 – лінія торкається дати; змінюй за потреби */
    --line-start: 0px;
    --line-length: 0px;
    position: relative;
    margin: 0 0 8px;
    color: #ffd43b;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
  }
  .history__item--reverse > .history__item-image {
    padding: 0;
  }
  .history__item-date::before {
    content: none !important;
  }
  .history__item-date::after {
    content: '';
    position: absolute;
    height: 2px;
    margin-right: 5px;
    background: var(--gray-200);
    top: calc(0.9em - 1px); /* підкоригуй за потреби */
    left: calc(-1 * var(--line-start));
    width: var(--line-length);
  }
  .history__item--reverse .history__item-date::after {
    transform: translateY(5%) !important;
  }
  .history__item-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #1a2e44;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}
/* 📱 телефони: іконка → заголовок → текст, все стовпчиком */
@media (max-width: 600px) {
  .vm-block {
    padding: 24px 16px;
    box-sizing: border-box;
  }

  /* Розкладаємо дочірні елементи однієї картки по гріду */
  .vm-item {
    display: grid;
    grid-template-areas:
      'icon'
      'title'
      'text';
    justify-items: center; /* центр по горизонталі */
    row-gap: 12px;
    margin: 0 auto 28px;
  }

  /* «Розчиняємо» контейнер, щоб svg і p стали елементами гріда */
  .vm-content {
    display: contents;
  }

  .vm-content svg {
    grid-area: icon;
    width: clamp(64px, 20vw, 96px);
    height: auto;
  }
  .vm-heading {
    grid-area: title;
    margin: 0;
    text-align: center;
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.2;
  }
  .vm-content p {
    grid-area: text;
    margin: 0;
    text-align: center;
    font-size: clamp(15px, 4.2vw, 17px);
    line-height: 1.6;
    color: #1a2e44;
    max-width: 42ch;
    word-break: break-word;
  }

  .vm-divider {
    width: 100%;
    height: 1px;
    border: 0;
    background: #d9e1ea;
    margin: 20px 0 24px;
  }
  .plans-visual-block__grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 36px);
    align-items: stretch;
    justify-items: center;
  }
  .plans-visual-gallerytext__grid img {
    width: 324px;
    height: 244px;
  }
}
/* Plan Page */

.pvg-grid-controls {
  display: none;
}

@media (max-width: 600px) {
  /* контейнер стає колонкою: спочатку картинка, нижче кнопки */
  #pvgGrid {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
  }

  /* показуємо рівно одне зображення, решта ховається */
  #pvgGrid .plans-visual-gallerytext__item {
    display: none;
    width: 100% !important; /* перекриває 324×244 */
    height: auto !important; /* зберігає пропорції */
    object-fit: cover; /* на випадок, якщо десь залишиться фіксована висота */
    border-radius: 12px;
  }
  #pvgGrid .plans-visual-gallerytext__item.is-active {
    display: block;
  }

  /* кнопки у потоці під картинкою, по центру */
  #pvgGrid .pvg-grid-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: static; /* важливо — не absolute */
    z-index: auto; /* зайве не потрібно */
    margin-top: 12px;
  }
  #pvgGrid .pvg-grid-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d9e1ea;
    display: grid;
    place-items: center;
  }
  #pvgGrid .pvg-grid-btn:active {
    transform: scale(0.98);
  }
}
/*Contact US Page*/
@media (max-width: 600px) {
  .plans-visual-contacts__grid::before,
  .plans-visual-contacts__grid::after {
    display: none;
  }
  .plans-visual-contacts {
    padding: 32px 16px;
  }

  .plans-visual-contacts__container {
    max-width: 480px;
    margin: 0 auto;
  }

  /* усе в одну колонку */
  .plans-visual-contacts__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px; /* відстань між блоками */
    position: relative;
  }
  /* прибираємо центральні розділювачі */
  .plans-visual-contacts__grid::before,
  .plans-visual-contacts__grid::after {
    display: none !important;
    content: none !important;
  }

  .plans-visual-contacts__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* як на скріні */
  }

  .plans-visual-contacts__icon {
    margin-bottom: 8px;
    line-height: 0;
  }
  .plans-visual-contacts__icon svg {
    width: 72px; /* підганяй за потреби: 64–80 */
    height: auto;
    display: block;
  }

  .plans-visual-contacts__label {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.25;
    color: #8a96a3; /* сірий підпис */
  }

  .plans-visual-contacts__value {
    margin-top: 6px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    color: #0b2f57; /* синій, як у макеті */
    word-break: break-word;
  }
  .plans-visual-contacts__link {
    color: inherit;
    text-decoration: none;
  }
  .plans-visual-contacts__link:hover {
    text-decoration: underline;
  }

  /* соцмережі */
  .plans-visual-contacts__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 8px;
  }
  .plans-visual-contacts__social-link {
    color: #0b2f57;
    display: inline-flex;
    padding: 4px;
    border-radius: 8px;
  }
  .plans-visual-contacts__social-link svg {
    display: block;
  }
  .plans-visual-contacts__item a,
  .plans-visual-contacts__value {
    color: #036;
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
  }
  .plans-visual-contacts__label {
    color: #4c4c4c;
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
  }
}
@media (min-width:991px){
  .news-nav-box{
  display:none;
}
}