/* =====================================================
   ASTROGROSS — projekt dotacji 50% dla spółdzielni
   ===================================================== */

/* Reset / odsuń pierwszą sekcję pod sticky header */
body.page--astrogross { padding-top: 0; }

/* ===================== HEADER (DUAL LOGO) ===================== */
.ag-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.ag-header--scrolled {
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}
.ag-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 40px 0;
}
.ag-header__logo {
  display: flex;
  align-items: center;
}
.ag-header__logo--left { justify-content: flex-start; }
.ag-header__logo--right { justify-content: flex-end; }
.ag-header__logo-img {
  height: 48px;
  width: auto;
  pointer-events: none;
}
.ag-header__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.ag-header__badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-500);
}
.ag-header__name {
  font-family: 'Exo', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  background: linear-gradient(135deg, #2e7d32 0%, #1565c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}

/* ===================== NAW ===================== */
.ag-nav {
  background: #fff;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.ag-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ag-nav__list li {
  display: flex;
}
.ag-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
}
.ag-nav__link:hover {
  color: #2e7d32;
  background: rgba(76,175,80,0.06);
  border-bottom-color: #4caf50;
}
.ag-nav__link--cta {
  color: #fff;
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  font-weight: 600;
}
.ag-nav__link--cta:hover {
  color: #fff;
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  border-bottom-color: transparent;
}

/* ===================== HERO ===================== */
.ag-hero {
  position: relative;
  padding: 70px 0 60px;
  text-align: center;
  background:
    radial-gradient(ellipse 1100px 480px at 50% 0%, rgba(76,175,80,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 900px 400px at 50% 100%, rgba(33,150,243,0.08) 0%, transparent 70%),
    #fff;
  overflow: hidden;
}
.ag-hero .container { position: relative; z-index: 1; }
.ag-hero__title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'Exo', sans-serif;
  margin: 16px 0 22px;
}
.ag-hero__title-main {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 60%, #66bb6a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.ag-hero__title-sub {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 400;
  color: var(--gray-700);
  line-height: 1.3;
}
.ag-hero__desc {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 1.0625rem;
  color: var(--gray-600);
  line-height: 1.65;
}
.ag-hero__cta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.ag-hero__btn-secondary {
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
  background: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}
.ag-hero__btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* ===================== SECTIONS ===================== */
.ag-section { padding: 70px 0; }
.ag-section--alt { background: var(--gray-50); }
.ag-section--map { background: #fff; }
.ag-section > .container {
  text-align: center;
}
.ag-section .section__label,
.ag-section .section__title,
.ag-section .section__desc {
  text-align: center;
}
.ag-section .section__desc {
  max-width: 760px;
  margin: 0 auto 50px;
}
/* przywróć left-align dla zawartości kart i list w sekcjach */
.ag-section .ag-feature,
.ag-section .ag-qual__body,
.ag-section .ag-finance__card,
.ag-section .ag-video__title,
.ag-section .ag-video__desc,
.ag-section .ag-gallery__item figcaption,
.ag-section .ag-finance__note,
.ag-section .ag-cta__text,
.ag-section .ag-form {
  text-align: left;
}
.ag-section .ag-feature,
.ag-section .ag-finance__card,
.ag-section .ag-benefit {
  text-align: center;
}

/* ===================== CZYM SĄ — BENEFITS GRID ===================== */
.ag-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
}
.ag-benefit {
  flex: 0 1 320px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}
.ag-benefit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(104,41,106,0.08);
  border-color: rgba(104,41,106,0.2);
}
.ag-benefit__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(104,41,106,0.10), rgba(138,61,140,0.14));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.ag-benefit__icon svg { width: 26px; height: 26px; }
.ag-benefit__title {
  font-family: 'Exo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}
.ag-benefit__desc {
  color: var(--gray-600);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* Wyróżniony kafelek 50% dla Astro Gross */
.ag-benefit--highlight {
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 60%, #66bb6a 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 32px rgba(46,125,50,0.22);
}
.ag-benefit--highlight:hover {
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(46,125,50,0.32);
}
.ag-benefit--highlight .ag-benefit__title { color: #fff; }
.ag-benefit--highlight .ag-benefit__desc { color: rgba(255,255,255,0.92); }
.ag-benefit--highlight .ag-benefit__desc strong { color: #fff; }
.ag-benefit__icon--white {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

/* ===================== O PROJEKCIE — FEATURES ===================== */
.ag-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 30px;
}
.ag-feature {
  flex: 0 1 340px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  transition: all var(--transition);
}
.ag-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(104,41,106,0.08);
  border-color: rgba(104,41,106,0.2);
}
.ag-feature__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(76,175,80,0.12), rgba(33,150,243,0.12));
  display: flex; align-items: center; justify-content: center;
  color: #2e7d32;
}
.ag-feature__icon svg { width: 32px; height: 32px; }
.ag-feature__title {
  font-family: 'Exo', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-900);
}
.ag-feature__desc {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===================== KTO SIĘ KWALIFIKUJE ===================== */
.ag-quals {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 880px;
  margin: 30px auto 0;
}
.ag-qual {
  display: flex;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  align-items: flex-start;
  transition: all var(--transition);
}
.ag-qual:hover {
  border-color: rgba(104,41,106,0.25);
  box-shadow: 0 10px 28px rgba(0,0,0,0.05);
}
.ag-qual__num {
  flex: 0 0 auto;
  font-family: 'Exo', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.ag-qual__title {
  font-family: 'Exo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-900);
}
.ag-qual__desc {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===================== MAPA ===================== */
.ag-map {
  margin-top: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f5f5f5;
}
.ag-map__iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
}
.ag-map__note {
  text-align: center;
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--gray-500);
}
.ag-map__note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
}
.ag-map__note a:hover { color: var(--accent-light); }

/* ===================== FINANSOWANIE ===================== */
.ag-finance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
}
.ag-finance__card {
  flex: 0 1 360px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.ag-finance__card--green {
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 60%, #66bb6a 100%);
  border-color: transparent;
  color: #fff;
}
.ag-finance__card--accent {
  background: linear-gradient(135deg, #4e1f50, #68296a, #8a3d8c);
  border-color: transparent;
  color: #fff;
}
.ag-finance__card:hover { transform: translateY(-3px); }
.ag-finance__pct {
  font-family: 'Exo', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}
.ag-finance__pct--bonus {
  font-size: 2.2rem;
}
.ag-finance__title {
  font-family: 'Exo', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.ag-finance__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.92;
}
.ag-finance__card:not(.ag-finance__card--green):not(.ag-finance__card--accent) .ag-finance__desc {
  color: var(--gray-600);
}
.ag-finance__note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(76,175,80,0.08);
  border: 1px solid rgba(76,175,80,0.25);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 30px;
  color: var(--gray-700);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.ag-finance__note svg {
  flex: 0 0 24px;
  color: #2e7d32;
  margin-top: 2px;
}
.ag-finance__note p { margin: 0; font-size: 0.95rem; line-height: 1.6; }

/* ===================== VIDEO ===================== */
.ag-videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 30px;
}
.ag-video {
  flex: 0 1 360px;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--transition);
}
.ag-video:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(0,0,0,0.10);
}
.ag-video__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.ag-video__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ag-video:hover .ag-video__thumb img { transform: scale(1.06); }
.ag-video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 78px; height: 78px;
  border-radius: 50%;
  background: rgba(76,175,80,0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(255,255,255,0.18);
  transition: all var(--transition);
}
.ag-video:hover .ag-video__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #4caf50;
}
.ag-video__play svg { margin-left: 4px; }
.ag-video__badge {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(76,175,80,0.95);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ag-video__badge--accent {
  background: rgba(104,41,106,0.95);
}
.ag-video__title {
  font-family: 'Exo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 18px 22px 8px;
  color: var(--gray-900);
}
.ag-video__desc {
  margin: 0 22px 22px;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ===================== GALERIA ===================== */
.ag-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}
.ag-gallery__item {
  flex: 0 1 340px;
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform var(--transition);
}
.ag-gallery__item:hover { transform: translateY(-3px); }
.ag-gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ag-gallery__item:hover img { transform: scale(1.05); }
.ag-gallery__item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.78), transparent);
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ag-gallery__item figcaption strong { font-weight: 700; }
.ag-gallery__tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ag-gallery__tag--dach {
  background: rgba(76,175,80,0.95);
  color: #fff;
}
.ag-gallery__tag--grunt {
  background: rgba(33,150,243,0.95);
  color: #fff;
}

/* ===================== CTA / FORMULARZ ===================== */
.ag-section--cta {
  background:
    radial-gradient(ellipse 800px 500px at 80% 30%, rgba(76,175,80,0.18) 0%, transparent 60%),
    linear-gradient(135deg, #1a1f3a 0%, #0f1428 100%);
  color: #fff;
}
.ag-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.ag-cta__title {
  font-family: 'Exo', sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 14px 0 18px;
  color: #fff;
}
.ag-cta__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: 24px;
}
.ag-cta__benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ag-cta__benefits li {
  position: relative;
  padding-left: 32px;
  color: rgba(255,255,255,0.92);
  font-size: 0.98rem;
  line-height: 1.5;
}
.ag-cta__benefits li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  background-image:
    linear-gradient(135deg, #4caf50, #2e7d32),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: cover;
  display: flex; align-items: center; justify-content: center;
}
.ag-cta__benefits li::after {
  content: '✓';
  position: absolute;
  left: 4px; top: 1px;
  width: 14px; height: 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

/* Form */
.ag-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.4);
  color: var(--gray-800);
}
.ag-form__title {
  font-family: 'Exo', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--gray-900);
}
.ag-form__field { margin-bottom: 14px; }
.ag-form__field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.ag-form__field input,
.ag-form__field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--gray-900);
  transition: border-color var(--transition);
}
.ag-form__field input:focus,
.ag-form__field select:focus {
  outline: none;
  border-color: #4caf50;
}
.ag-form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 18px;
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.45;
  cursor: pointer;
}
.ag-form__consent input { margin-top: 2px; flex: 0 0 auto; }
.ag-form__submit { width: 100%; }
.ag-form__small {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--gray-500);
  text-align: center;
}

/* ===================== FOOTER ===================== */
.ag-footer {
  background: #0f1428;
  color: rgba(255,255,255,0.78);
  padding: 100px 0 50px;
}
.ag-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 2.6fr;
  gap: 80px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ag-footer__logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.ag-footer__logo-img {
  height: 38px;
  width: auto;
  pointer-events: none;
}
.ag-footer__logo-img--se {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.ag-footer__logo-x {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.4);
}
.ag-footer__about {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.62);
}
.ag-footer__links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px;
}
.ag-footer__links h4 {
  font-family: 'Exo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}
.ag-footer__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ag-footer__links a {
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.ag-footer__links a:hover { color: #4caf50; }
.ag-footer__links li { font-size: 0.9rem; line-height: 1.5; }
.ag-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 36px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.ag-footer__legal {
  display: flex;
  gap: 22px;
}
.ag-footer__legal a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}
.ag-footer__legal a:hover { color: #4caf50; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .ag-cta { grid-template-columns: 1fr; gap: 32px; }
  .ag-footer__top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .ag-header__inner {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 30px 0;
  }
  .ag-header__center {
    grid-column: 1 / -1;
    order: 2;
  }
  .ag-header__logo--left { order: 0; }
  .ag-header__logo--right { order: 1; }
  .ag-header__logo-img { height: 40px; }
  .ag-header__name { font-size: 1.32rem; }

  .ag-nav__list { gap: 0; }
  .ag-nav__link { padding: 10px 14px; font-size: 0.78rem; flex-grow: 1; justify-content: center; text-align: center; }
  .ag-nav__link--cta { font-size: 0.78rem; }

  .ag-section { padding: 50px 0; }
  .ag-hero { padding: 50px 0 40px; }

  .ag-qual { flex-direction: column; gap: 8px; padding: 22px 22px; }
  .ag-qual__num { font-size: 1.8rem; }

  .ag-map__iframe { height: 540px; }

  .ag-finance__pct { font-size: 2.6rem; }

  .ag-footer__links { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ag-footer { padding: 70px 0 36px; }
  .ag-footer__top { gap: 36px; padding-bottom: 36px; }
  .ag-footer__bottom { flex-direction: column; align-items: flex-start; padding-top: 24px; }
}

@media (max-width: 480px) {
  .ag-nav__list { flex-direction: column; }
  .ag-nav__link { width: 100%; }
  .ag-footer__links { grid-template-columns: 1fr; }
}
