/* ========== ZMIENNE I BAZA ========== */
:root {
    --container-max: 1200px;
    --container-pad: 20px;
    --header-height: 0px;
    /* 0 jeśli header NIE jest fixed; ustaw np. 96px gdy go włączysz */
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    background: #F2FFF6;
    color: #122727;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--header-height);
    /* zadziała dopiero, gdy zrobisz header fixed */
}

/* ========== HEADER (domyślnie NIE fixed) ========== */
header {
    background: #122727;
    color: #fff;
}

.header-container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 20px var(--container-pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    height: 86px; /* lub więcej, jeśli chcesz wyższy pasek */
    padding: 0 var(--container-pad);
}

.logo {
  height: 100%;
  display: flex;
  align-items: center;
}

.logo img {
    height: 86px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #0BF781;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all .25s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, .15);
    transform: scale(1.05);
}

/* (opcjonalnie) jeśli kiedyś włączysz sticky:
   dodaj klasę .is-fixed do #header i ustaw zmienną --header-height w :root */
#header.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* ========== SEKCJA UPLOAD ========== */
.upload-section {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    flex-direction: column;
    padding: 40px 20px;
}

.upload-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 600px;
    /* lub 100% przy mniejszych ekranach */
    margin: 0 auto;
    text-align: center;
}

.upload-section input {
    padding: 10px;
    width: 60%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.upload-section button {
    padding: 6px 26px;
    background: #122727;
    color: #0BF781;
    border: solid 2px black;
    /* border-radius: 100px; */
    font-size: 1em;
    font-weight: 350;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.2s ease;
}

.upload-section button:hover {
    border: none;
    background: #1F4646;
    transform: scale(1.05);
}

.helper-link {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.9em;
    color: #14623F;
    text-decoration: none;
    transition: all 0.2s ease;
}

.helper-link:hover {
    text-decoration: underline;
    transform: scale(1.05);
}

#status {
    margin-top: 10px;
    font-weight: 600;
}

/* ========== APP (Power BI) ========== */
.app-section {
    text-align: center;
    padding: 16px 0 24px;
}

.surf-tagline {
    font-family: 'Space Grotesk', cursive;
    font-size: 1.8em;
    font-weight: 400;
    margin: 4px 0 0 0;
}

.app-section iframe {
    width: 90vw;
    max-width: 1920px;
    aspect-ratio: 16 / 9.5;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    margin: 0 auto;
    display: block;
}

/* ========== CONTENT (strony typu Terms) ========== */
/* UWAGA: zero pionowych marginów – używamy padding, żeby nie wydłużać strony.
   To rozwiązuje „muszę scrollować, by zobaczyć footer” na krótkich treściach. */
main,
.content {
    flex: 1 0 auto;
    max-width: 900px;
    margin: 0 auto;
    /* bez 40px na górze/dole */
    padding: 32px 20px;
    /* wewnętrzny oddech */
    line-height: 1.6;
}

.content h1 {
    margin: 0 0 20px 0;
}

.content ul {
    margin: 10px 0 20px 0;
    padding-left: 20px;
}

/* ========== FOOTER (sticky, NIE fixed) ========== */
footer {
    width: 100%;
    background: #122727;
    color: #fff;
    margin-top: auto;
    /* to dopycha footer na dół przy małej ilości treści */
}

.footer-container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 8px var(--container-pad);
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* logo | mapa | ikony */
    align-items: center;
    gap: 16px;
}

/* delikatnie większe logo w stopce, żeby wizualnie była „wyższa” */
.footer-logo {
    height: 86px;
    /* było 36px – dopasuj wedle uznania */
}

/* podpis „Powered by …” */
.footer-powered {
    margin: 4px 0 0 0;
    font-size: 0.85em;
    opacity: 0.8;
}

.footer-powered a {
    color: #d3f2ff;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    transition: color .2s ease, border-color .2s ease;
}

.footer-powered a:hover {
    color: #ffffff;
    border-bottom-color: transparent;
}

.footer-center {
    text-align: center;
}

.footer-nav a {
    color: #0BF781;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: transform .2s ease, color .2s ease, background-color .2s ease;
}

.footer-nav a:hover {
    color: #fff;
    transform: scale(1.05);
    background: rgba(255, 255, 255, .12);
}

.footer-note {
    margin: 6px 0 0 0;
    font-size: .9em;
    opacity: .85;
}

.footer-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-link {
    color: #0BF781;
    display: inline-flex;
    padding: 4px;
    border-radius: 6px;
    transition: transform .2s ease, color .2s ease, background .2s ease;
}

.icon-link:hover {
    color: #fff;
    transform: scale(1.08);
    background: rgba(255, 255, 255, .12);
}

/* ========== RESPONSYWNOŚĆ ========== */
@media (max-width: 768px) {
    .logo img {
        height: 100%;
        max-height: 48px;; /* lub więcej, jeśli chcesz większe logo */
        object-fit: contain;
    }

    .app-section iframe {
        width: 96vw;
    }

    .upload-section input {
        width: 100%;
        max-width: 460px;
    }
    .header-container {
    height: auto;
    padding: 12px var(--container-pad);
    flex-direction: column;
    gap: 12px;
  }
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 24px var(--container-pad);
  }

  .footer-right {
    justify-content: center;
  }

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .footer-powered,
  .footer-note {
    text-align: center;
  }

  .footer-logo {
    height: 64px;
  }
}

/* honeypot – niewidoczne dla ludzi, widoczne dla botów */
.hp-trap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.step-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
}

.row-normal {
    flex-direction: row;
}

.row-reverse {
    flex-direction: row-reverse;
}

.step-text {
    flex: 1 1 50%;
    min-width: 200px;
}

.step-img {
    flex: 0 0 200px;
    max-width: 200px;
}

.step-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Responsywność */
@media (max-width: 768px) {
    .step-box {
        flex-direction: column !important;
        text-align: center;
    }

    .step-text,
    .step-img {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .step-img img {
        max-width: 100%;
    }
}

.form-block {
    width: 100%;
    text-align: center;
}

.text-form label {
    font-size: 1.1em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 6px;
}

.link-form input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
}

.submit-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
    width: 100%;
    text-align: center;
}

.vector {
    margin-bottom: 6px;
}

.logo-group {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 12px; /* odstęp między ikoną a napisem */
  margin-bottom: 10px;
  margin-top:10px;
}

.logo-icon {
  height: 64px;
  max-height: 100%;
  object-fit: contain;
}

.logo-text {
  height: 36px;
  object-fit: contain;
}