/* ========== Reset & zmienne ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f7f8;         /* jasne tło strony */
  --surface: #ffffff;    /* białe karty, sekcje */
  --text: #1f2328;       /* główny tekst */
  --muted: #6b7280;      /* opis/sekundarny */
  --accent: #f58220;     /* pomarańcz */
  --line: #e6e7ea;       /* linie/obramowania */
  --shadow: 0 8px 24px rgba(16,24,40,.08);
  --radius: 12px;
  --transition: .25s ease;
}

/* ===== SUBHERO (jak na stronie głównej) ===== */
.subhero {
  position: relative;
  min-height: 68vh;
  display: grid;
  align-items: center;
  background: url("img/r8.webp") center/cover no-repeat;
  background-attachment: fixed;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* Overlay – lekki rozjaśniacz tła */
.subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Kontener z treścią – biała karta */
.subhero__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255,255,255,0.88);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Tekst */
.subhero__text h1 {
  font-size: clamp(28px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}
.subhero__text h1 span { color: var(--accent); }

.subhero__text p {
  margin-top: 12px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 70ch;
}

/* Akcje (przyciski) */
.subhero__actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.subhero__actions .btn {
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition);
}
.subhero__actions .btn--primary {
  background: var(--accent);
  color: #111;
  box-shadow: 0 8px 20px rgba(245,130,32,.25);
}
.subhero__actions .btn--primary:hover {
  background: #ff983a;
  box-shadow: 0 10px 26px rgba(245,130,32,.35);
}
.subhero__actions .btn--ghost {
  background: transparent;
  border: 2px solid var(--line);
  color: var(--text);
}
.subhero__actions .btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245,130,32,0.08);
}

/* Desktop */
@media (min-width: 1025px) {
  .subhero { min-height: 90vh; }
}

/* Mobile */
@media (max-width: 1024px) {
  .subhero { 
    min-height: 90vh;
    background-attachment: scroll;
  }
  .subhero__container {
    background: rgba(255,255,255,0.94);
    padding: clamp(20px, 5vw, 32px);
  }
  .subhero__text h1 { font-size: clamp(26px, 7vw, 36px); }
}


/* ===== O NAS (jasny styl) ===== */
.about {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.about .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 6vw, 68px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

/* Tekst */
.about article h2 {
  color: var(--accent);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.2;
}
.about article p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.about article ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 10px 0 20px;
  padding: 0;
}
.about article li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}
.about article li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  font-weight: bold;
}
.about__video {
  position: relative;
  width: 100%;
  max-width: 900px;      /* maksymalna szerokość jak video */
  margin: 0 auto;
  border-radius: 12px;   /* lekko zaokrąglone rogi */
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2); /* delikatny cień */
}

.about__video img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;     /* wypełnia kontener */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.about__video img:hover {
  transform: scale(1.02);  /* lekkie powiększenie przy hover */
  filter: brightness(1.05);
}

/* Mobilne dostosowanie */
@media (max-width: 768px) {
  .about__video {
    max-width: 100%;
    border-radius: 8px;
  }
}

/* Responsywność */
@media (max-width: 900px) {
  .about .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about__video video {
    max-width: 100%;
  }
  .about article li {
    padding-left: 0;
  }
  .about article li::before {
    position: static;
    margin-right: 8px;
    display: inline-block;
  }
}

/* Animacje wejścia */
.about [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: transform, opacity;
}
.about [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Ograniczony ruch */
@media (prefers-reduced-motion: reduce) {
  .about [data-reveal],
  .about [data-reveal].is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== Zobacz o nas więcej (galeria naprzemienna) ===== */
.more{
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 80px) 0;
}

.more .container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 68px);
}

.more__title{
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 clamp(20px, 3vw, 32px);
  text-align: center;
}

.more__list{
  display: grid;
  gap: clamp(18px, 2.8vw, 28px);
}

/* element */
.more__item{
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(14px, 2.4vw, 28px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(12px, 2vw, 20px);
  overflow: clip;
}

/* co drugi odwrotny */
.more__item:nth-child(even){
  grid-template-columns: 1fr 1.15fr;
}
.more__item:nth-child(even) .more__media{ order: 2; }
.more__item:nth-child(even) .more__content{ order: 1; }

/* media */
.more__media{
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.more__media img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition), filter var(--transition);
}
.more__media:hover img{ transform: scale(1.05); filter: brightness(1.05); }

/* content */
.more__content h3{
  font-size: clamp(18px, 2.8vw, 24px);
  margin-bottom: 8px;
  color: var(--text);
}
.more__content p{
  font-size: clamp(14px, 2.2vw, 17px);
  color: var(--muted);
  line-height: 1.6;
}

/* responsywność */
@media (max-width: 900px){
  .more__item,
  .more__item:nth-child(even){
    grid-template-columns: 1fr;
  }
  .more__item:nth-child(even) .more__media,
  .more__item:nth-child(even) .more__content{ order: initial; }
}


/* ========== CTA (jasny, jak reszta) ========== */
.cta{
  position: relative;
  isolation: isolate;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 96px) 20px;
  text-align: center;
  overflow: hidden;
}
.cta .container{
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 4.8vw, 48px) clamp(20px, 4.8vw, 48px);
}

/* Delikatny akcent w tle karty (nieinwazyjny) */
.cta__bg{
  position: absolute;
  inset: -15% -10% -20% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 30% at 80% 20%, rgba(245,130,32,.10) 0%, rgba(245,130,32,0) 60%),
    radial-gradient(30% 25% at 20% 80%, rgba(245,130,32,.06) 0%, rgba(245,130,32,0) 60%);
  filter: blur(18px);
  opacity: .9;
}

/* Nagłówek + opis */
.cta h2{
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: .2px;
  margin-bottom: 10px;
}
.cta h2 .accent{ color: var(--accent); }

.cta p{
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  margin-bottom: 22px;
}

/* Badges (opcjonalne) */
.cta__badges{
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px 16px; margin: 0 0 28px; padding: 0; list-style: none;
}
.cta__badges li{
  padding: 8px 12px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
}

/* Przyciski */
.cta__actions{
  display: flex; justify-content: center; flex-wrap: wrap; gap: 16px;
}
.cta .btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 18px; line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition),
              color var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}
.cta .btn:hover{ transform: translateY(-2px); }
.cta .btn:active{ transform: translateY(0); }
.cta .btn:focus{ outline: 2px solid var(--accent); outline-offset: 3px; }

/* Wariants */
.cta .btn--primary{
  background: var(--accent);
  color: #111;
  box-shadow: 0 10px 26px rgba(245,130,32,.30);
}
.cta .btn--primary:hover{
  background: #ff983a;
  box-shadow: 0 12px 30px rgba(245,130,32,.38);
}

.cta .btn--ghost{
  background: transparent;
  color: var(--text);
  border-color: #b3b3b3;                 /* mocniejsza ramka (widoczna) */
}
.cta .btn--ghost:hover{
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245,130,32,0.08);
}

/* Linki w CTA nie podkreślają się */
.cta a{ color: inherit; text-decoration: none; }

/* Animacje wejścia (subtelne) */
@keyframes ctaFadeUp{ from{opacity:0; transform:translateY(16px);} to{opacity:1; transform:none;} }
.cta h2{ opacity:0; animation: ctaFadeUp .6s ease forwards; }
.cta p{ opacity:0; animation: ctaFadeUp .6s ease .08s forwards; }
.cta__badges{ opacity:0; animation: ctaFadeUp .6s ease .14s forwards; }
.cta__actions{ opacity:0; animation: ctaFadeUp .6s ease .2s forwards; }

/* Ograniczony ruch */
@media (prefers-reduced-motion: reduce){
  .cta h2, .cta p, .cta__badges, .cta__actions{
    animation: none; opacity: 1; transform: none;
  }
  .cta .btn:hover{ transform: none; }
}

/* Mobile fine-tune */
@media (max-width: 560px){
  .cta .container{ padding: 24px; }
  .cta__badges li{ font-size: 13px; }
}