/* ============================================================
   AstroEnergy — Styles
   Modern, performant CSS with #68296a accent theme
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --accent: #68296a;
  --accent-light: #8a3d8c;
  --accent-lighter: #a854aa;
  --accent-dark: #4e1f50;
  --accent-bg: rgba(104, 41, 106, 0.08);
  --accent-bg-subtle: rgba(104, 41, 106, 0.04);

  --gradient: linear-gradient(135deg, #4e1f50, #68296a, #8a3d8c);
  --gradient-subtle: linear-gradient(135deg, rgba(104,41,106,0.06), rgba(138,61,140,0.1));

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #ffffff;
  --black: #0a0a0a;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui: 'Exo', 'Inter', sans-serif;
  --spacing: clamp(1.25rem, 4vw, 2.5rem);
  --spacing-lg: clamp(3rem, 8vw, 6rem);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 24px rgba(104,41,106,0.12), 0 8px 32px rgba(0,0,0,0.06);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1280px;
  --header-h: auto;
  --header-py: 150px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, iframe {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

input, select, textarea {
  font: inherit;
  color: inherit;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* --- Utility --- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title .gradient-text {
  background: linear-gradient(135deg, #c97acb, #e0a0e2, #f0c0f2, #c97acb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Sections --- */
.section {
  padding: var(--spacing-lg) 0;
}

.section--gray {
  background: var(--gray-50);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.section__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section__label--light {
  color: var(--accent-lighter);
}

.section__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section__title strong {
  font-weight: 800;
}

.section__title--light {
  color: var(--white);
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.section__desc--light {
  color: rgba(255,255,255,0.75);
}

.section__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.btn--gradient {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(104,41,106,0.3);
}

.btn--gradient:hover {
  background: linear-gradient(135deg, #68296a, #a854aa);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(104,41,106,0.4);
}

.btn--outline {
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ============================================================
   Energy Beam CTA Button — wiazka energii po krawedzi
   ============================================================ */
@property --beam-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.btn--energy {
  background: linear-gradient(135deg, #68296a, #a854aa);
  color: var(--white);
  position: relative;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  overflow: visible;
  isolation: isolate;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  z-index: 1;
}

.btn--energy__text {
  position: relative;
  z-index: 3;
}

/* Outer rotating border with energy beam */
.btn--energy::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0%,
    transparent 75%,
    #a854aa 85%,
    #d4a0d6 92%,
    #ffffff 95%,
    #d4a0d6 98%,
    transparent 100%
  );
  z-index: -2;
  animation: beam-spin 2s linear infinite;
}

/* Inner fill to mask the rotating gradient, leaving only the border visible */
.btn--energy::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #68296a, #a854aa);
  z-index: -1;
}

@keyframes beam-spin {
  0%   { --beam-angle: 0deg; }
  100% { --beam-angle: 360deg; }
}

.btn--energy:hover {
  background: linear-gradient(135deg, #7a3280, #bb6ebd);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(104,41,106,0.4);
}

.btn--energy:hover::after {
  background: linear-gradient(135deg, #7a3280, #bb6ebd);
}

/* Dark variant — black bg with purple beam */
.btn--energy-dark {
  background: #111111;
}

.btn--energy-dark::after {
  background: #111111;
}

.btn--energy-dark:hover {
  background: #222222;
  box-shadow: 0 4px 20px rgba(104,41,106,0.5);
}

.btn--energy-dark:hover::after {
  background: #222222;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  padding: 75px 0;
}

.header--scrolled {
  padding: 12px 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  border-bottom-color: rgba(0,0,0,0.06);
}

/* Transparent header on hero — white text */
.header:not(.header--scrolled) .nav__link {
  color: #fff;
}
.header:not(.header--scrolled) .nav__link:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.header:not(.header--scrolled) .hamburger span {
  background: #fff;
}
.header:not(.header--scrolled) .logo__img {
  filter: brightness(0) invert(1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Header right (topbar + CTA) */
.header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header__topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__socials {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header__topbar {
  margin-top: -0.75rem;
  transition: opacity 0.3s, max-height 0.3s;
}

.header--scrolled .header__topbar {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  pointer-events: none;
}

.header__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--gray-400);
  transition: all var(--transition);
}

.header__social:hover {
  color: var(--accent);
}

.header:not(.header--scrolled) .header__social {
  color: rgba(255,255,255,0.6);
}

.header:not(.header--scrolled) .header__social:hover {
  color: #fff;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gray-500);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--accent);
}

.header:not(.header--scrolled) .header__phone {
  color: rgba(255,255,255,0.7);
}

.header:not(.header--scrolled) .header__phone:hover {
  color: #fff;
}

/* Scrolled header compact */
.header--scrolled .header__right {
  gap: 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  height: 45px;
  width: auto;
  pointer-events: none;
}

.logo__img--footer {
  height: 40px;
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.625rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--accent);
  background: var(--accent-bg);
}

.nav__chevron {
  font-size: 0.625rem;
  transition: transform var(--transition);
}

/* Dropdown */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 100;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__item--dropdown:hover .nav__chevron {
  transform: rotate(180deg);
}

.nav__dropdown-link {
  display: block;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-ui);
  font-size: 0.825rem;
  color: var(--gray-600);
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav__dropdown-link:hover {
  background: var(--accent-bg);
  color: var(--accent);
  padding-left: 1.125rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  position: relative;
  z-index: 10001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video-wrap iframe {
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100vh;
  min-width: 177.78vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.85) 5%, rgba(0,0,0,0.5) 15%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.05) 55%, rgba(0,0,0,0.5) 75%, rgba(0,0,0,0.9) 95%, #000 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 7rem;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
}

.hero__text-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 650px;
}

.hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 800px;
}

.hero__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  max-width: 550px;
  line-height: 1.7;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 0.3s;
}

.hero__scroll-hint:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 768px) {
  .hero__content {
    padding-bottom: 5rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .btn--hero-cta {
    align-self: stretch;
    text-align: center;
    font-size: 1rem;
    padding: 0.9rem 2rem;
  }
}

/* ============================================================
   SECTION WITH BG IMAGE — home.jpg
   ============================================================ */
.section--bg-home {
  position: relative;
  background: #000;
}

.section--bg-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/bgtop.jpg') center / cover no-repeat;
  filter: brightness(0.4);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.section--bg-home > .container {
  position: relative;
  z-index: 1;
}

.section--bg-home .section__label {
  color: var(--accent-lighter);
}

.section--bg-home .section__title {
  color: var(--white);
}

.section--bg-home .section__title .gradient-text {
  background: linear-gradient(135deg, #c97acb, #e0a0e2, #f0c0f2, #c97acb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section--bg-home .section__desc {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   CARDS GRID — Solutions
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.card {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(138, 61, 140, 0.3);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(138, 61, 140, 0.4), 0 0 50px rgba(104, 41, 106, 0.2);
  border-color: rgba(168, 84, 170, 0.5);
}

.card__icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: var(--radius);
  color: var(--accent);
  flex-shrink: 0;
}

.card__icon {
  width: 32px;
  height: 32px;
}

.card__thumb {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.card__thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.4s;
}

.card:hover .card__thumb img {
  transform: scale(1.04);
}

.section__cta {
  text-align: center;
  margin-top: 3rem;
}

/* --- Mission Section --- */
.mission-section {
  background: #000;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.mission-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/tlo-zmieniamy-planete-astroenergy.jpg') center bottom/cover no-repeat;
  filter: brightness(0.6);
  opacity: 0.5;
  z-index: 0;
}

.mission-section > .container {
  position: relative;
  z-index: 1;
}

.mission-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 4rem;
}

.mission-banner__text {
  flex: 1;
}

.mission-banner__title {
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--white);
}

.mission-banner__title strong {
  font-weight: 800;
}

.mission-banner__desc {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
}

.btn--mission {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Exo', sans-serif;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--accent-lighter));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
  box-shadow: 0 4px 24px rgba(104, 41, 106, 0.4);
}

.btn--mission:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(104, 41, 106, 0.5);
  filter: brightness(1.1);
}

.btn--mission svg {
  flex-shrink: 0;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stats-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: none;
  border: none;
  position: relative;
  z-index: 0;
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.stats-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.15);
  z-index: -1;
}

.stats-item::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-lg) + 3px);
  padding: 3px;
  background: linear-gradient(135deg, #4e1f50, #68296a, #a854aa, #c97acb, #a854aa, #68296a);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -2;
}


.stats-item.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.stats-item:nth-child(1) { transition-delay: 0s; }
.stats-item:nth-child(2) { transition-delay: 0.15s; }
.stats-item:nth-child(3) { transition-delay: 0.3s; }
.stats-item:nth-child(4) { transition-delay: 0.45s; }

.stats-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 30px rgba(168, 84, 170, 0.4), 0 0 15px rgba(104, 41, 106, 0.2);
}

.stats-item__number {
  display: block;
  font-size: 2.75rem;
  font-weight: 500;
  font-family: 'Exo', sans-serif;
  background: linear-gradient(135deg, #9b30ff, #c97acb, #ff6ef9, #a854aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.stats-item__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mission-banner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .mission-section {
    padding: 70px 0;
  }

  .stats-item__number {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.card__title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
}

.card__desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  flex-grow: 1;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-lighter);
  transition: all var(--transition);
}

.card__link:hover {
  gap: 0.625rem;
  color: #e0a0e2;
}

/* ============================================================
   NEWS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card__img {
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 1rem;
}

.news-card__badge {
  background: var(--gradient);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.news-card__body {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-card__date {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-weight: 500;
}

.news-card__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1.35;
}

.news-card__desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================================
   CTA / OFFER FORM
   ============================================================ */
.cta-offer {
  position: relative;
  overflow: hidden;
}

.cta-offer__bg {
  position: absolute;
  inset: 0;
  background: #000000;
  z-index: 0;
}

.cta-offer__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/oferta.jpg') center / cover no-repeat;
  opacity: 0.25;
}

.cta-offer__bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(104,41,106,0.25) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.cta-offer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cta-offer__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.offer-form {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.offer-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.offer-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.offer-form__field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}

.offer-form__field input,
.offer-form__field select {
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9375rem;
  transition: all var(--transition);
  outline: none;
}

.offer-form__field input::placeholder {
  color: rgba(255,255,255,0.35);
}

.offer-form__field input:focus,
.offer-form__field select:focus {
  border-color: var(--accent-lighter);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(104,41,106,0.25);
}

.offer-form__field select option {
  background: var(--gray-800);
  color: var(--white);
}

.offer-form__consent {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   REALIZATIONS
   ============================================================ */
.realizations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.realization-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
}

.realization-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.realization-card__img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.realization-card__info {
  padding: 1.25rem;
  background: var(--white);
}

.realization-card__info h4 {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.realization-card__info p {
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* ============================================================
   KNOWLEDGE
   ============================================================ */
.knowledge__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.knowledge-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition);
}

.knowledge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(104,41,106,0.2);
}

.knowledge-card__number {
  font-size: 2.25rem;
  font-weight: 500;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.knowledge-card__title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gray-900);
}

.knowledge-card__desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
  flex-grow: 1;
}

/* ============================================================
   FAQ — Split layout: pytania po lewej, odpowiedzi po prawej
   ============================================================ */
.faq__layout--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 100%;
  align-items: start;
}

.faq__questions-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__question-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1.125rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  border-radius: 0;
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  border-left: 3px solid transparent;
}

.faq__question-btn:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}

.faq__question-btn:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
  border-bottom: none;
}

.faq__question-btn:hover {
  color: var(--accent);
  background: var(--accent-bg-subtle);
}

.faq__question-btn.active {
  color: var(--accent);
  background: var(--accent-bg);
  border-left-color: var(--accent);
  font-weight: 700;
}

.faq__answer-col {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  min-height: 200px;
  display: flex;
  align-items: flex-start;
}

.faq__answer-panel {
  display: none;
}

.faq__answer-panel.active {
  display: block;
  animation: faq-fade 0.35s ease;
}

@keyframes faq-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq__answer-panel p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ============================================================
   GREEN ACCENT — for CTA on dark bg
   ============================================================ */
.gradient-text--green {
  background: linear-gradient(135deg, #6ee7b7, #34d399, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero CTA — purple gradient, aligned right */
.btn--hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2d1b4e, #4a2068, #6b2fa0);
  border: 1px solid rgba(160,80,200,0.3);
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 24px rgba(75,30,120,0.4), 0 0 60px rgba(120,50,180,0.15);
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-end;
}

.btn--hero-cta:hover {
  background: linear-gradient(135deg, #3a2260, #5c2d80, #8040b8);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(75,30,120,0.5), 0 0 80px rgba(120,50,180,0.25);
  border-color: rgba(160,80,200,0.5);
}

.btn--green {
  background: linear-gradient(135deg, #059669, #10b981, #34d399);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
  font-family: var(--font-ui);
}

.btn--green:hover {
  background: linear-gradient(135deg, #047857, #059669, #10b981);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.4);
}

/* Green button with energy beam */
.btn--energy-green {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.btn--energy-green::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0%,
    transparent 75%,
    #34d399 85%,
    #6ee7b7 92%,
    #ffffff 95%,
    #6ee7b7 98%,
    transparent 100%
  );
  z-index: -2;
  animation: beam-spin 2s linear infinite;
}

.btn--energy-green::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #059669, #10b981, #34d399);
  z-index: -1;
}

.btn--energy-green:hover::after {
  background: linear-gradient(135deg, #047857, #059669, #10b981);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(135deg, #1a0a1b 0%, #2d122f 30%, #3d1840 60%, #4e1f50 100%);
  color: var(--gray-300);
  padding: var(--spacing-lg) 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__about {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-400);
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--gray-400);
  transition: all var(--transition);
}

.footer__social:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__heading {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__col a {
  font-size: 0.9375rem;
  color: var(--gray-400);
  transition: all var(--transition);
}

.footer__col a:hover {
  color: var(--accent-lighter);
  padding-left: 4px;
}

/* Footer company info */
.footer__company-info {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer__info-item {
  font-size: 0.8125rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.footer__info-item strong {
  color: var(--gray-200);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.footer__info-item a {
  color: var(--accent-lighter);
  transition: color var(--transition);
}

.footer__info-item a:hover {
  color: #d4a0d6;
}

.footer__contact-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent-lighter);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  color: var(--gray-500);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: var(--accent-lighter);
}

.footer__seo {
  margin-top: 2rem;
  padding-bottom: 80px;
}

.footer__seo p {
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.footer__seo p:last-child {
  margin-bottom: 0;
}

.footer__seo strong {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

/* ============================================================
   REVEAL ANIMATIONS (Intersection Observer)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal--delay-1 {
  transition-delay: 0.15s;
}

.reveal--delay-2 {
  transition-delay: 0.3s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   MOBILE MENU — standalone overlay outside header
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: var(--white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 5.5rem var(--spacing) 2rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu__item {
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gray-800);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition);
}

.mobile-menu__link:hover {
  color: var(--accent);
}

.mobile-menu__chevron {
  font-size: 0.7rem;
  transition: transform var(--transition);
}

.mobile-menu__item--dropdown.open .mobile-menu__chevron {
  transform: rotate(180deg);
}

.mobile-menu__dropdown {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 0 0.75rem 0;
}

.mobile-menu__item--dropdown.open .mobile-menu__dropdown {
  display: block;
}

.mobile-menu__dropdown li a {
  display: block;
  padding: 0.6rem 0 0.6rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--gray-500);
  text-decoration: none;
  transition: all var(--transition);
}

.mobile-menu__dropdown li a:hover {
  color: var(--accent);
  padding-left: 1.5rem;
}

.btn--energy-mobile {
  align-self: flex-start;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .header {
    padding: 14px 0;
  }

  .nav--desktop {
    display: none;
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 100000;
  }

  .btn--energy-header {
    display: none;
  }
}

@media (max-width: 768px) {
  .cta-offer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .offer-form__row {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .hero__video-wrap iframe {
    min-height: 100dvh;
  }

  .faq__layout--split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer__links {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .news-grid,
  .realizations__grid,
  .knowledge__grid {
    grid-template-columns: 1fr;
  }
}

/* --- Partners / Sport & Awards --- */
/* --- Partners / Sport & Awards --- */
.partners-section {
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.partners-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Sport — dark/black with sport.jpg */
.partners-section--sport {
  color: var(--white);
  background: #000;
}

.partners-section--sport::before {
  background-image: url('images/sport.jpg');
  background-position: center top;
  filter: brightness(0.4);
  opacity: 0.7;
}

/* Awards — light with nagroda.jpg from top */
.partners-section--awards::before {
  background-image: url('images/nagroda.jpg');
  background-position: center top;
  filter: brightness(0.9) grayscale(100%);
  opacity: 0.12;
}

.partners-section > .container {
  position: relative;
  z-index: 1;
}

.partners-section__heading {
  margin-bottom: 1rem;
}

.partners-section__desc {
  max-width: 720px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-600);
}

.partners-section__desc--light {
  color: rgba(255, 255, 255, 0.85);
}

.partners-section__desc strong {
  font-weight: 600;
}

.partners-section__desc--light strong {
  color: #fff;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: nowrap;
}

.partners-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 0 1 auto;
}

/* Frames on sport (dark) — semi-transparent light */
.partners-section--sport .partners-grid__item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.partners-section--sport .partners-grid__item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Frames on awards (light) — semi-transparent */
.partners-section--awards .partners-grid__item {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(104, 41, 106, 0.06);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.partners-section--awards .partners-grid__item:hover {
  background: rgba(255, 255, 255, 0.65);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(104, 41, 106, 0.08);
}

.partners-grid__item img {
  height: 100px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s, opacity 0.3s;
}

.partners-section--sport .partners-grid__item img {
  filter: brightness(1.1);
  opacity: 0.95;
}

.partners-section--sport .partners-grid__item:hover img {
  filter: brightness(1.2);
  opacity: 1;
}

.partners-section--awards .partners-grid__item img {
  filter: grayscale(20%);
  opacity: 0.9;
}

.partners-section--awards .partners-grid__item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.partners-grid--awards .partners-grid__item img {
  height: 120px;
  max-width: 180px;
}

.partners-grid__item--smaller img {
  height: 60px !important;
}

@media (max-width: 768px) {
  .partners-section {
    padding: 100px 0;
  }

  .partners-grid {
    flex-wrap: wrap;
    gap: 14px;
  }

  .partners-grid__item {
    padding: 12px 16px;
  }

  .partners-grid__item img {
    height: 65px;
    max-width: 120px;
  }

  .partners-grid--awards .partners-grid__item img {
    height: 80px;
    max-width: 140px;
  }

  .partners-grid__item--smaller img {
    height: 40px !important;
  }
}

@media (max-width: 1100px) {
  .header__socials,
  .header__phone {
    display: none;
  }
}

@media (max-width: 480px) {
  .partners-grid {
    gap: 10px;
  }

  .partners-grid__item {
    padding: 10px 14px;
  }

  .partners-grid__item img {
    height: 50px;
    max-width: 100px;
  }

  .partners-grid--awards .partners-grid__item img {
    height: 60px;
    max-width: 110px;
  }

  .partners-grid__item--smaller img {
    height: 30px !important;
  }
}

/* --- Video Lightbox --- */
.video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200000;
  align-items: center;
  justify-content: center;
}

.video-lightbox.active {
  display: flex;
}

.video-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.video-lightbox__content {
  position: relative;
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(104, 41, 106, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-lightbox__frame {
  width: 100%;
  height: 100%;
}

.video-lightbox__frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.video-lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 1;
}

.video-lightbox__close:hover {
  opacity: 1;
}

/* --- Prefers reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
