:root {
    --main-color:#2c2b2b;
    --accent-color:#ae6c3f;
    --accent-color-2: #EDDECB;
    --accent-color-3: #cca36b;
    --light-color: #f5f5f5;
    --gray-color: #e9e9e9;
    --gray-color2: #d9d9d9;
    --gray-text: #737373;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 1. Definicja czcionki lokalnej (nadajesz jej własną nazwę) */
/* latin-ext */
@font-face {
  font-family: 'LeagueSpartanBold';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/LeagueSpartan-Bold.ttf") format("truetype");
}

/* latin-ext */
@font-face {
  font-family: 'LeagueSpartanRegular';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/LeagueSpartan-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "GoodTimesRegular";
  src: url('fonts/GoodTimesRegular.woff2') format('woff2');
}

@keyframes slideUpBounce {
  from {
    opacity: 1;
    transform: translate3d(0, 240px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}


body {
  font-family: 'LeagueSpartanRegular', Arial, sans-serif;
  background-color: var(--gray-color);
  color: var(--main-color);
  overflow-x: hidden;
}

.major-heading {
  font-family: 'LeagueSpartanBold';
  font-size: 2rem;
}

.site-header {
  background-color: var(--light-color);
  box-shadow: 6px 6px 7.5px rgba(0, 0, 0, 0.25);

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  display: block;
  width: 25%;
  height: auto;
  flex-shrink: 0;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-img:hover {
  opacity: 0.7;
  transform: scale(1.05);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: 'LeagueSpartanBold', sans-serif;
  font-size: 1.5rem;
  color: var(--main-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-item:hover {
  transform: translateY(-2px);
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.grid-img {
  height: 328px;
  object-fit: contain;
  border-radius: 13px;
}

.hero-section {
  position: relative;
  width: 100%;
  padding: 160px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #7f7f7f;
  overflow: hidden;
}

.section {
  padding:96px 48px 64px 48px;
  background-color: var(--accent-color-2);
  border-radius: 32px;
  margin: 8px 16px;
}

/* Wartość równa wysokości Twojego nagłówka (menu) */
.scroll-target {
  scroll-margin-top: 80px; 
}

/* Animacja pozostaje na CAŁEJ sekcji */
.section:not(.hero-section):not(.partners-section):not(footer) {
  animation: slideUpBounce cubic-bezier(0.34, 1, 0.64, 1) both;
  animation-timeline: view();
  animation-range: entry 20% cover 80%;
}

.white-section {
  background-color: var(--light-color);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(58, 58, 58, 0.5);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 960px;
  filter: drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.25));
  text-shadow: 0px 6px 4px rgba(0, 0, 0, 0.25);
  color: var(--light-color);
}

.hero-title {
  font-family: "GoodTimesRegular", 'LeagueSpartanBold', sans-serif;
  font-size: 2.25rem;
  letter-spacing: 0.1em;
}

.hero-subtitle {
  font-family: 'LeagueSpartanRegular', sans-serif;
  font-size: 1.5rem;
}

.btn {
  background-color: var(--accent-color);
  color: var(--light-color);
  font-family: 'LeagueSpartan', sans-serif;
  border-radius: 20px;
  border:none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-btn {
  font-family: 'LeagueSpartanBold', sans-serif;
  font-size: 1.5rem;
  padding: 0.67em 1.33em;
  text-decoration: none;
  text-shadow: none;
  border:none;
}

.btn:hover {
  background-color: #965a32;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(174, 108, 63, 0.4);
}

.small-btn {
  padding: 0.1rem 0.5rem;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.description {
  line-height: 1.45;
  color:var(--gray-text);
}

.description p {
  margin-bottom: 1rem;
}

.partners-section {
    padding: 32px 24px 32px 24px;
    border-radius: 0 0 40px 40px;
    margin: 0;
}

.partners-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--gray-text);
  letter-spacing: 0.1em;
}

.partners-logos {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partner-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.partner-logo-img {
  width: 50%;
  height: 50%;
}

.offer-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.card {
  display: inline-flex;
  background-color: var(--gray-color);
  border-left: 4px solid var(--accent-color);
  border-radius: 0 16px 16px 0;
  padding: 24px;
}

.tags-card {
  background-color: var(--gray-color);
  display: flex;
  align-items: flex-start;
}

.tags-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.tag {
  border: 2px solid var(--gray-color2);
  color: var(--main-color);
  font-size: 1rem;
  padding: 0.5em 1em;
  border-radius: 0 1em 0 1em;
  display: inline-flex;
  align-items: center;
  justify-content: start;
}


.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 36px;
}

.process-step {
  display: inline-flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
}

/* Pionowa linia łącząca kółka z numerami */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 3.5rem;
  left: 1.67rem;
  width: 4px;
  height: 100%;
  background-color: var(--accent-color);
}

.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 4.5rem;
  left: 1.32rem;
  width: 0.67rem;
  height: 0.67rem;
  border-right: 0.25rem solid var(--accent-color);
  border-bottom: 0.25rem solid var(--accent-color);
  transform: rotate(45deg);
  z-index: 2;
}

/* Kółko z numerem */
.step-number {
  font-size: 2rem;
  font-family: 'LeagueSpartanBold';
  width: 3.625rem;
  height: 3.625rem;
  background-color: var(--accent-color);
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

/* Treść kroku */
.step-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.step-title {
  line-height: 1.2;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.grid-img {
  height: 328px;
  object-fit: cover;
  border-radius: 13px;
}

.photos-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.photos-list li {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--light-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.grid-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.grid-photo:hover {
  transform: scale(1.02);
}

/* Stylizacja bloku tekstowego pod zdjęciem */
.photo-caption {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1; /* Wypełnia pozostałą przestrzeń w karcie */
}

.photo-title {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  margin: 0;
  color: var(--main-color, #333);
}

.photo-desc {
  font-size: 0.875rem; /* 14px */
  color: #666;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.contact-info {
  flex-direction: column;
}

.contact-info-desc {
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

.contact-details {
  list-style: none;
  margin: 0.67rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  font-size: 22px;
  line-height: 1;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5em;
}

.contact-item p {
  margin: 0;
  line-height: 1.4;
}

.contact-item a {
  color: var(--main-color);
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--accent-color);
}

.footer {
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 64px 32px 64px;
  gap:32px;
  margin: 32px 0 0 0;
  border-radius: 0;
}

.footer-brand {
  width: 20%;
  min-width: 200px;
  max-width: 200px;
}

.footer-description {
  font-size: 16px;
  color: var(--light-color);
  line-height: 1.3;
  margin: 0;
}


html {
  scroll-behavior: smooth;
}

#kontakt, #realizacje {
  scroll-margin-top: 80px;
}


@keyframes pulseHighlight {
  0% { box-shadow: 0 0 0 0 rgba(174, 108, 63, 0.4); }
  100% { box-shadow: 0 0 0 20px rgba(174, 108, 63, 0); }
}

/* Responsywność (RWD) dla urządzeń mobilnych 768px*/
@media (max-width: 768px) {
  .site-header {
    padding: 16px 48px;
    flex-direction: column;
    gap: 16px;
  }

  .header-logo {
    width: 80%;
    min-width: 100px;
    max-width: 300px;
    height: auto;
  }

  .nav-list {
    gap: 1rem;
  }

  .nav-link {
    font-size: clamp(1rem, 3cqw, 1.25rem);
  }

  .description {
    font-size: 1.2rem;
  }

  .hero-section {
    padding: 5rem 1rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2em;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .section {
    padding:5rem 1.5rem 2rem 1.5rem;
  }

  .section:not(.hero-section):not(.partners-section):not(footer) {
    animation-range: entry 20% cover 50%;
  }

  .tag {
    font-size: 1.2rem;
    white-space: wrap;
  }

  .images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
    margin-top: 0px;
  }

  .grid-img {
    width: 100%;
    object-fit: contain;
  }

  .card {
    padding: 24px 16px;
    min-width: 210px;
  }

  .process-step {
    gap: 16px;
  }

  .step-number {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  /* Dopasowanie położenia łącznika dla mniejszych kółek */
  .process-step:not(:last-child)::after {
    top: 2.32rem;
    left: 1.23rem;
    height: 100%;
  }

  .process-step:not(:last-child)::before {
    left: 0.9rem;
    top: 5rem;
  }

  .partners-section {
    padding: 16px 12px 32px 12px;
  }

  .partners-title {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .partners-logos {
    gap: 24px;
  }

  .photos-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  
  .grid-img {
    width: 100%;
    object-fit: cover ;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer {
    background-color: var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 24px 16px 24px;
    text-align: center;
  }

  .footer-brand {
    width: 75%;
  }

}

@media (max-width: 480px) {
  .photos-list {
    grid-template-columns: 1fr; /* 1 kolumna na telefonach */
  }
}

/* Tło modala */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox.active {
  display: flex;
}

/* Kontener środkowy ze zdjęciem i opisem */
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 80vw;
  max-height: 85vh;
}

/* Pełne zdjęcie */
.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
}

/* Opis zdjęcia w podglądzie */
.lightbox-caption {
  margin-top: 15px;
  color: #ffffff;
  text-align: center;
  max-width: 600px;
}

.lightbox-caption .photo-title {
  font-size: 1.25rem;
  margin-bottom: 5px;
  color: #fff;
}

.lightbox-caption .photo-desc {
  font-size: 0.95rem;
  color: #ccc;
}

/* Przyciski nawigacji (strzałki boki i X) */
.lightbox-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
  user-select: none;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1010;
}

/* Dostosowanie mobilne */
@media (max-width: 600px) {
  .lightbox-btn {
    font-size: 1.5rem;
    padding: 8px 12px;
  }
  
  .lightbox-content {
    max-width: 90vw;
  }
}