/* Sekcja main – ustawiamy wysokość oraz wycentrowanie zawartości */
main {
    display: flex;
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    justify-content: center;
    align-items: center;
    background: var(--background-color);
}

/* Kontener dla zawartości hero – dwukolumnowy układ */
.hero-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    height: auto;
    min-height: 100vh;
    margin: 100px 16px 0;
    overflow: hidden;
    padding: 0 16px;
    margin: 0;
}

/* Lewa kolumna – tekst */
.hero-text {
    height: auto;
    text-align: left;
}

/* Prawa kolumna – animacja */
#lottie-container {
    width: 50%;
    display: flex;
    justify-content: flex-end; /* wyrównanie do prawej */
    align-items: center;
}


  .hero-text p {
    text-align: justify;
    margin: 0;
  }
  
  .hero-content button {
    font-family: var(--text-font);
    font-weight: var(--text-weight);
    font-size: var(--text-size);
    color: var(--white-color);
    background-color: var(--primary-color);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
}
  
  /* Media Query – na mniejszych ekranach możesz chcieć ułożyć elementy pionowo */
  @media (max-width: 768px) {
    main {
        height: auto;
        min-height: 600px;
        max-height: 1000px;
    }
    .hero-content {
      flex-direction: column;
      text-align: center;
      justify-content: start;
      height: auto;
      min-height: 600px;
      max-height: 1000px;
      padding: 100px 16px 0;
      margin: 0;
    }
    

    #lottie-container {
    width: 100%;
    height: auto;
}
  }
  
.stats-section {
    padding: 100px 16px;
    min-height: 786px;
}
.stats-section h2 {
    margin-bottom: 40px;
}
.stats-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: var(--gap-size);
    flex-wrap: wrap;
}
.stats-boxes {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--gap-size);
    min-width: 300px;
    width: 100%;
}
.stats-box {
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    width: 100%;
}
.stats-box h2 {
    font-weight: bold;
    font-size: 96px;
    color: var(--primary-color);
    margin: 0px;
}


.trust-section p{
    text-align: justify;
}
.project-section {
    max-width: 1200px;
    padding: 0 16px;
    gap: var(--gap-size);
    flex-wrap: wrap;
    flex-direction: row;
}
.project-box {
    height: 400px;
    min-width: 350px;
    width: 100%; 
    max-width: 560px;
    border-radius: var(--border-radius);
    padding: 12px 32px;
    display: flex;
    align-items: flex-end;
    color: var(--white-color);
    background-color: #999999; /* Szary placeholder do momentu załadowania obrazu */
    text-align: left;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.2s ease-out;
}
.project-box.visible {
    transform: scale(1);
}
.project-box:hover {
    transform: scale(1.02);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}
.project-box:active {
    transform: scale(0.95);
}
.project-box h3, .project-box p {
    text-shadow: var(--text-shadow);
    color: var(--white-color);
    text-align: left;
}
.project-box h3 {
    font-family: var(--heading-font);
    font-weight: var(--heading-weight);
    font-size: var(--heading-size);
    color: var(--white-color-color);
    margin-bottom: 5px;
}
@media (max-width: 1191px) {
    .project-section {
    min-height: 1720px;
        
    }
}
.offers-section {
    max-width: 1200px;
    padding: 0 16px;
    flex-wrap: wrap;
    gap: var(--gap-size);
    flex-direction: row;
}
.offer-box {
    height: 350px;
    width: 100%;
    min-width: 350px;
    flex: 1 1 calc(33.333% - var(--gap-size));
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) var(--shadow-blur) var(--shadow-color);
    background: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.2s ease-out;
}
.offer-box.visible {
    transform: scale(1);
}
.offer-box:hover {
    transform: scale(1.02);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}
.offer-box:active {
    transform: scale(0.95);
}
.empty-space {
    height: 33%;
    width: auto;
}
.offer-box img {
    height: 33%;
    width: auto;
}
.offer-name {
    font-family: var(--text-font);
    font-weight: var(--text-weight);
    font-size: var(--text-size);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 33%;
    width: auto;
}
.process-section {
    padding: 0px 16px;
}
.process-title {
    padding: 100px 0;
}
.process-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-size);
    max-width: var(--max-width);
    margin: 0 auto;
}
.process-box {
    width: 100%;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: left;
}
.process-box h3 {
    font-size: var(--heading-size);
    font-weight: var(--heading-weight);
    margin-bottom: 16px;
    text-align: center;
}
.process-box ul {
    font-family: var(--text-font);
    font-weight: var(--text-weight);
    font-size: var(--text-size);
    color: var(--text-color);
    list-style-type: disc;
    padding-left: 24px;
    text-align: left;
    display: inline-block;
}
.process-box ul li {
    margin-bottom: 10px;
}
#kontakt{
    min-height: 1126px;
}
