/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  color: #4a4a5a;
  background-color: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

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

button {
  font-family: 'Raleway', sans-serif;
}

/* браузерний [hidden] може бути перебитий display у CSS */
[hidden] { display: none !important; }

/* ================================================
   CONTAINER
   ================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-block;
  padding: 9px 26px;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  border: 1.5px solid transparent;
  line-height: 1.4;
}

.btn--outline {
  background: transparent;
  border-color: #2a2a2a;
  color: #2a2a2a;
}

.btn--outline:hover {
  background: #2a2a2a;
  color: #fff;
}

/* ================================================
   SECTION COMMON
   ================================================ */
.section-title {
  font-size: 34px;
  font-weight: 700;
  color: #1a2740;
  margin-bottom: 18px;
  line-height: 1.2;
}

.section-title--center {
  text-align: center;
}

.section-subtitle {
  font-size: 14px;
  color: #999;
  margin-bottom: 36px;
  font-weight: 400;
}

/* ================================================
   HEADER / NAV
   ================================================ */
.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid #ebebeb;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #333;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav__link:hover {
  color: #2567b8;
  border-bottom-color: #2567b8;
}

.nav__link--active {
  color: #2567b8;
  border-bottom-color: #2567b8;
}

/* Burger button — hidden on desktop */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: absolute;
  right: 20px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ================================================
   MOBILE MENU OVERLAY
   ================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  padding: 4px 8px;
}

.mobile-menu__close:hover {
  color: #2567b8;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-menu__link {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a2740;
  transition: color 0.2s;
}

.mobile-menu__link:hover {
  color: #2567b8;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
  background-color: #dce8f7;
  padding: 64px 0 80px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: center;
}

.hero__title {
  font-size: 34px;
  font-weight: 800;
  color: #1a2740;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero__lead {
  font-weight: 700;
  font-size: 15px;
  color: #1a2740;
  margin-bottom: 14px;
}

.hero__text p {
  font-size: 14px;
  color: #4a4a5a;
  margin-bottom: 11px;
  line-height: 1.65;
}

.hero__text .btn {
  margin-top: 14px;
}

/* Image with blob decoration */
.hero__image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__blob {
  position: absolute;
  width: 95%;
  aspect-ratio: 1 / 1;
  background: #b8d2ee;
  border-radius: 50%;
  z-index: 0;
}

.hero__img {
  position: relative;
  z-index: 1;
  width: 85%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

/* ================================================
   МІСІЯ SECTION
   ================================================ */
.mission {
  padding: 80px 0;
  background: #fff;
}

.mission__text {
  max-width: 760px;
  font-size: 15px;
  color: #4a4a5a;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ================================================
   ДІЯЛЬНІСТЬ SECTION
   ================================================ */
.activity {
  padding: 80px 0;
  background: #fff;
}

.activity__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.activity__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.activity__text .section-title {
  margin-bottom: 20px;
}

.activity__text p {
  font-size: 14px;
  color: #4a4a5a;
  line-height: 1.7;
  margin-bottom: 13px;
}

/* ================================================
   ДІЮЧІ ПРОЄКТИ SECTION
   ================================================ */
.projects {
  padding: 80px 0;
  background: #f4f8fd;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.project-card__check {
  width: 26px;
  height: 26px;
  background: #2567b8;
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.project-card__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1a2740;
  margin-bottom: 10px;
}

.project-card__text {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* ================================================
   FULL-WIDTH IMAGE — parallax
   ================================================ */
.fullwidth-image {
  width: 100%;
  height: 460px;
  background-image: url('../img/3.jpg');
  background-attachment: fixed;   /* parallax: image fixed to viewport */
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ================================================
   ЯК ДОПОМОГТИ SECTION
   ================================================ */
.support {
  padding: 80px 0;
  background: #fff;
}

.support__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.support__left .section-title {
  margin-bottom: 20px;
}

.support__left p {
  font-size: 14px;
  color: #4a4a5a;
  line-height: 1.7;
  margin-bottom: 13px;
}

.support__right {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 8px;
}

.support__item-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a2740;
  margin-bottom: 8px;
}

.support__item p {
  font-size: 14px;
  color: #4a4a5a;
  line-height: 1.65;
}

/* ================================================
   CONTACT FORM SECTION
   ================================================ */
.contact {
  padding: 80px 0 100px;
  background: #fff;
}

.contact .section-title {
  margin-bottom: 40px;
}

.contact-form {
  max-width: 660px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d0d0d0;
  background: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2567b8;
}

/* Standalone textarea (not inside .form-row) */
.contact-form > .form-group {
  margin-bottom: 20px;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}

.form-submit {
  text-align: left;
  margin-top: 4px;
}

/* --- field error state --- */
.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #d94040;
}

.field-error {
  display: block;
  font-size: 11px;
  color: #d94040;
  margin-top: 4px;
  min-height: 16px;
  line-height: 1.3;
}

/* --- success message --- */
.form-success {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 0 16px;
  text-align: center;
}

.form-success__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.form-success__text {
  font-size: 17px;
  font-weight: 600;
  color: #1a2740;
  line-height: 1.6;
}

/* ================================================
   INNER PAGE HERO (Галерея / Новини / Контакти)
   ================================================ */
.inner-hero {
  background-color: #dce8f7;
  padding: 48px 0;
}

.inner-hero__title {
  font-size: 38px;
  font-weight: 800;
  color: #1a2740;
  line-height: 1.2;
}

/* ================================================
   GALLERY PAGE
   ================================================ */
.gallery-section {
  padding: 64px 0 80px;
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  background: #eee;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.2s;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}

/* ================================================
   LIGHTBOX
   ================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 0 6px;
}

.lightbox__close:hover { opacity: 1; }

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 64px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 0 12px;
  user-select: none;
}

.lightbox__arrow:hover { opacity: 1; }
.lightbox__arrow--prev { left: 8px; }
.lightbox__arrow--next { right: 8px; }

/* ================================================
   NEWS PAGE
   ================================================ */
.news-section {
  padding: 64px 0 80px;
  background: #fff;
}

.news-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid #ebebeb;
}

.news-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-card__image {
  overflow: hidden;
  border-radius: 2px;
}

.news-card__image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.news-card__title {
  font-size: 22px;
  font-weight: 700;
  color: #1a2740;
  line-height: 1.3;
  margin-bottom: 12px;
}

.news-card__lead {
  font-size: 15px;
  font-style: italic;
  color: #555;
  margin-bottom: 14px;
  font-weight: 500;
}

.news-card__text {
  font-size: 14px;
  color: #4a4a5a;
  line-height: 1.7;
}

/* ================================================
   CONTACT PAGE
   ================================================ */
.contact-page {
  padding: 64px 0 100px;
  background: #fff;
}

.contact-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info__desc {
  font-size: 15px;
  color: #4a4a5a;
  line-height: 1.7;
  margin-bottom: 32px;
  margin-top: 8px;
}

.contact-info__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #999;
  text-transform: uppercase;
}

.contact-info__value {
  font-size: 16px;
  font-weight: 600;
  color: #2567b8;
  transition: color 0.2s;
}

.contact-info__value:hover { color: #1a4f9a; }

.contact-form-wrap .contact-form {
  max-width: 100%;
}

.contact-form-wrap .form-success {
  max-width: 100%;
}

/* ================================================
   RESPONSIVE — inner pages ≤ 1024px
   ================================================ */
@media (max-width: 1024px) {
  .news-card {
    grid-template-columns: 300px 1fr;
    gap: 32px;
  }
}

/* ================================================
   RESPONSIVE — inner pages ≤ 768px
   ================================================ */
@media (max-width: 768px) {
  .inner-hero { padding: 36px 0; }
  .inner-hero__title { font-size: 28px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Lightbox arrows smaller */
  .lightbox__arrow { font-size: 44px; }

  /* News */
  .news-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }
  .news-card__image img { height: 220px; }
  .news-card__title { font-size: 18px; }

  /* Contact */
  .contact-page__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 8px; }
  .inner-hero__title { font-size: 24px; }
}

/* ================================================
   RESPONSIVE — TABLET ≤ 1024px
   ================================================ */
@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .hero__title {
    font-size: 28px;
  }

  .section-title {
    font-size: 28px;
  }

  .nav__list {
    gap: 20px;
  }

  .support__grid {
    gap: 48px;
  }
}

/* ================================================
   RESPONSIVE — MOBILE ≤ 768px
   ================================================ */
@media (max-width: 768px) {

  /* Nav */
  .header__inner {
    justify-content: flex-start;
    position: relative;
  }

  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 40px 0 56px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__image-wrap {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero__title {
    font-size: 24px;
  }

  .section-title {
    font-size: 26px;
  }

  /* Activity */
  .activity__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .activity__image {
    order: 2;
  }

  .activity__text {
    order: 1;
  }

  /* Projects */
  .projects__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Full-width image — disable parallax on mobile (iOS/Android bug) */
  .fullwidth-image {
    height: 260px;
    background-attachment: scroll;
  }

  /* Support */
  .support__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-row .form-group {
    margin-bottom: 20px;
  }

  .contact-form {
    max-width: 100%;
  }
}

/* ================================================
   RESPONSIVE — SMALL MOBILE ≤ 480px
   ================================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 22px;
  }

  .section-title {
    font-size: 24px;
  }

  .hero__image-wrap {
    max-width: 230px;
  }

  .mission,
  .activity,
  .projects,
  .support,
  .contact {
    padding: 56px 0;
  }
}
