:root {
  --bg-image: url("images/hero.jpg");
  --container-max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

h1, h2 {
  margin: 0 0 16px;
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: transform .15s ease, opacity .15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: #0ea5e9;
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: .95;
}

.hero {
  position: relative;
  min-height: 100vh;
  background-image: var(--bg-image);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,0.15) 0%, rgba(2,6,23,0.55) 70%, rgba(2,6,23,0.75) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px 56px;
  color: #fff;
}

.hero__title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero__text {
  max-width: 680px;
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 20px;
}

.about {
  padding: 80px 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 48px;
  align-items: center;
}

.about__image img {
  width: 480px;
  height: 480px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.about__content h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.about__content p {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 600px;
}

.goals {
  padding: 80px 0;
  text-align: center;
}

.goals h2 {
  font-size: 2.5rem;
  margin: 0;
}

.goals__grid {
  display: grid;
  grid-template-columns: repeat(2, 300px);
  grid-auto-rows: 300px;
  gap: 25px;
  justify-content: center;
}

.goals__item {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
}

.goals__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.goals__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  border-radius: 0 0 12px 12px;
}


.goals__label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #0ea5e9;
  margin-bottom: 6px;
  justify-self: start;
}

.goals__header {
  display: grid;
  width: max-content;
  margin: 0 auto 24px;
}


.goals__header h2 {
  margin: 0;
  text-align: center;
}

/*współpraca */

.coop {
  padding: 80px 0;
  text-align: center;
}

.coop__title {
  font-size: 32px;
  margin: 0 0 40px;
}

.coop__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.coop__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  border-radius: 12px;
  padding: 40px 28px;
  min-height: 320px;
  background: #f1f5f9;
}

.coop__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0ea5e9;
}

.coop__item h3 {
  font-size: 22px;
  margin: 0;
}

.coop__item p {
  font-size: 16px;
  margin: 0;
  max-width: 46ch;
}


/* Przemiany */

.transforms {
  padding: 80px 0;
  text-align: center;
}

.carousel {
  --slide-size: 300px;
  --slide-gap: 14px;
  position: relative;
}

.carousel__viewport {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.carousel__track {
  display: flex;
  gap: var(--slide-gap);
  transform: translateX(0);
  transition: transform .35s ease;
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 var(--slide-size);
  width: var(--slide-size);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #0ea5e9;
  color: #fff;
  cursor: pointer;
}

.carousel__arrow--prev { left: 8px; }
.carousel__arrow--next { right: 8px; }
