/* ============================================================
   LP Program poleceń – Comperia.pl
   Mobile first · breakpointy: 768px (tablet), 1024px (desktop)
   ============================================================ */

:root {
    --navy: #15315C;        /* tło hero / footer */
    --navy-light: #1E4C8A;  /* gradient hero */
    --blue: #2E9BD6;        /* akcent, ikony */
    --blue-soft: #6EB6E8;   /* podtytuł hero */
    --orange: #F5A623;      /* CTA */
    --orange-dark: #DD8F0E;
    --text: #2B2B2B;
    --text-muted: #5A6472;
    --gray-input: #F0F1F3;
    --white: #FFFFFF;
    --error: #D93025;
    --success: #1E7E34;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container: 1140px;
    --radius: 28px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 10px;
    line-height: 1.5;
    font-weight: 400;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}


body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-heading); margin: 0; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--white);
    padding: 18px 0;
    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .btn--hero {
        width: fit-content;
        text-align: center;
        text-decoration: none;
        background-color: #0c9ed9;
    }
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo__img {
    width: 170px;
    height: auto;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: radial-gradient(ellipse at 70% 40%, var(--navy-light) 0%, var(--navy) 65%);
    color: var(--white);
    overflow: hidden;
}

.hero__inner {
    display: flex;
    flex-direction: column;
}

.hero__content {
    padding: 25px 0 25px;
    text-align: left;
}

.hero__title {
    font-size: clamp(30px, 7vw, 44px);
    font-weight: 400;
    line-height: 1.25;
}

.hero__title strong { font-weight: 700; display: block; }

/* Grafika-akcent (pismo odręczne) pod H1 */
.hero__script {
    margin: 18px 0 0;
    width: min(460px, 92%);
    height: auto;
}

/* Lista korzyści z punktatorami-grafikami */
.hero__list {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero__list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-heading);
    /*font-weight: 500;*/
    font-size: clamp(18px, 4.5vw, 24px);
    line-height: 1.3;
}

.hero__list-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    margin-top: 2px;
}

.hero__subtitle {
    margin: 20px 0 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(19px, 4.5vw, 26px);
    color: var(--blue-soft);
    line-height: 1.4;
}

.hero__media {
    display: none;
    /*justify-content: center;*/
    /*margin-top: 24px;*/
}
.hero__img {
    width: min(480px, 92%);
    height: auto;
}

@media (min-width: 768px) {
    .hero__media {
        display: flex;
        justify-content: center;
        margin-top: 24px;
    }
    .hero__inner {
        display: block;
        position: relative;     /* KLUCZ: punkt odniesienia dla zdjęcia */
        min-height: 340px;      /* rezerwuje wysokość — absolut nie rozpycha rodzica */
    }
    .hero__content {
        max-width: 48%;         /* tekst po lewej, żeby nie wchodził na grafikę */
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        padding: 48px 0;
        min-height: 340px;
        box-sizing: border-box;
    }
    .hero__media {
        position: absolute;
        right: -75px;               /* prawa krawędź kontenera */
        bottom: 0;              /* doklejone do dołu hero */
        max-width: 700px;
    }
    .hero__img {
        display: block;
        width: 100%;
        height: auto;
    }
}

@media (min-width: 1200px) {
    .hero__inner, .hero__content { min-height: 400px; }
    .hero__media { max-width: 760px; }
}

/* ============================================================
   FORMULARZ
   ============================================================ */
.signup { padding: 48px 0 40px; }

.signup__grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.signup__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px 28px;
}

.field__label,
.consent__label {
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--text);
}

.field__label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.field__input {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    border: 2px solid transparent;
    border-radius: 26px;
    background: var(--gray-input);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    transition: border-color .2s, background .2s;
}

.field__input:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
}

.field__input.is-invalid {
    border-color: var(--error);
    background: #FDF3F2;
}

.field__error {
    margin: 6px 4px 0;
    font-size: 13px;
    color: var(--error);
    min-height: 0;
    display: none;
}

.form-check .form-check-input {
    margin-left: 0;
}

.field__error.is-visible { display: block; }

/* --- Zgody --- */
.signup__consents {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.consent { position: relative; padding-left: 40px; }

.consent__checkbox {
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    margin: 0;
    appearance: none;
    border: 1.5px solid #C9CED6;
    border-radius: 7px;
    background: var(--white);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.consent__checkbox:checked {
    background: var(--blue);
    border-color: var(--blue);
}

.consent__checkbox:checked::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 3.5px;
    width: 6px;
    height: 12px;
    border: solid var(--white);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.consent__checkbox.is-invalid { border-color: var(--error); }

.consent__label {
    font-family: var(--font-body);
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text);
    cursor: pointer;
}

.consent__label a {
    color: var(--text);
    text-decoration: underline;
}
.consent__details {
    font-size: 14px;
}
.consent__txt {
    font-size: 12px;
}

.consent__error { margin-left: 0; }

/* --- CTA --- */
.btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    transition: background .2s, transform .1s;
}

.btn--primary {
    background: var(--orange);
    color: var(--white);
    font-size: 17px;
    padding: 16px 32px;
    border-radius: 30px;
    width: 100%;
}

.btn--primary:hover { background: var(--orange-dark); }
.btn--primary:active { transform: scale(.98); }

.btn--primary:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.site-header {
  & .btn--secondary {
    width: fit-content;
    text-align: center;
    text-decoration: none;
    background-color: transparent;
    color: inherit;
    border: 1px solid currentColor;
  }
}
@media (min-width: 1024px) {
  .btn--secondary {
    width: 100%;
  }
}
@media (min-width: 768px) {
  .btn--secondary {
    width: auto;
    min-width: 280px;
  }
}
.btn--secondary {
  font-size: 17px;
  padding: 16px 32px;
  border-radius: 30px;
  width: 100%;
}

.signup__submit { margin-top: 8px; }

/* --- Komunikaty globalne --- */
.form-message {
    margin-top: 24px;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 15px;
}

.form-message--success {
    background: #E8F5EC;
    color: var(--success);
    border: 1px solid #BBDFC6;
}

.form-message--error {
    background: #FDF0EF;
    color: var(--error);
    border: 1px solid #F2C4C0;
}

/* Tablet: pola w 2 kolumny */
@media (min-width: 768px) {
    .signup__fields { grid-template-columns: 1fr 1fr; }
    .btn--primary { width: auto; min-width: 280px; }
}

/* Desktop: pola (2 kol.) + zgody obok */
@media (min-width: 1024px) {
    .signup { padding: 64px 0 56px; }

    .signup__grid {
        flex-direction: row;
        gap: 56px;
        align-items: flex-start;
    }

    .signup__fields { flex: 1 1 62%; }

    .signup__consents {
        flex: 1 1 38%;
        padding-top: 4px;
    }

    .btn--primary { width: 100%; }
}

/* ============================================================
   JAK TO DZIAŁA
   ============================================================ */
.how {
    background: var(--navy);
    color: var(--white);
    padding: 56px 0;
    position: relative;
}

/* Tytuł sekcji jako grafika (pismo odręczne) */
.how__title { margin: 0 0 40px; }

.how__title-img {
    width: auto;
    max-height: 60px;
}

.how__steps {
    display: grid;
    grid-template-columns: 1fr;   /* mobile: 1 kolumna, kolejność 1 → 2 → 3 → 4 */
    gap: 36px;
}

.how__step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.how__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.how__icon svg,
.how__icon img { width: 30px; height: 30px; }

.how__text {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16.5px;
    line-height: 1.55;
    align-self: center;
}

.how__tagline {
    margin: 48px 0 0;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(18px, 4vw, 26px);
    color: var(--blue-soft);
    line-height: 1.4;
}

/* Tablet/desktop: siatka 2×2, numeracja pionowo (lewa kolumna: 1,2 · prawa: 3,4) */
@media (min-width: 768px) {
    .how__steps {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        grid-auto-flow: column;
        column-gap: 56px;
        row-gap: 40px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
/*.site-footer {*/
/*  background: var(--navy);*/
/*  color: var(--white);*/
/*  border-top: 6px solid var(--white);*/
/*  padding: 56px 0 64px;*/
/*}*/

/*.footer__grid {*/
/*  display: grid;*/
/*  grid-template-columns: 1fr;*/
/*  gap: 40px;*/
/*}*/

/*.footer__heading {*/
/*  font-size: 18px;*/
/*  font-weight: 500;*/
/*  margin-bottom: 24px;*/
/*}*/

/*.footer__address {*/
/*  font-style: normal;*/
/*  font-size: 14.5px;*/
/*  line-height: 1.7;*/
/*}*/

/*.footer__address a { text-decoration: none; }*/
/*.footer__address a:hover { text-decoration: underline; }*/

/*.footer__social {*/
/*  margin-top: 24px;*/
/*  display: flex;*/
/*  gap: 12px;*/
/*}*/

/*.footer__social-link {*/
/*  width: 34px;*/
/*  height: 34px;*/
/*  border-radius: 50%;*/
/*  background: var(--white);*/
/*  color: var(--navy);*/
/*  display: inline-flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*  transition: opacity .2s;*/
/*}*/

/*.footer__social-link:hover { opacity: .85; }*/
/*.footer__social-link svg { width: 18px; height: 18px; }*/

/*.footer__list {*/
/*  list-style: none;*/
/*  margin: 0;*/
/*  padding: 0;*/
/*  font-size: 14.5px;*/
/*  line-height: 1.5;*/
/*}*/

/*.footer__list li + li { margin-top: 10px; }*/

/*.footer__list a { text-decoration: none; }*/
/*.footer__list a:hover { color: var(--orange); }*/

/*@media (min-width: 768px) {*/
/*  .footer__grid {*/
/*    grid-template-columns: 1.4fr 1fr 1fr;*/
/*    gap: 32px;*/
/*  }*/
/*}*/
/* ==========================================================================
   PAGE FOOTER — wersja samowystarczalna (WordPress / Astra / Elementor)
   Wszystko w px i pod .page-footer — nie wymaga footer-shell.css
   ani nadpisywania html { font-size }
   ========================================================================== */

/* --- Reset zakresowy — przebija reguły motywu ---------------------------- */

.page-footer,
.page-footer *,
.page-footer *::before,
.page-footer *::after {
    box-sizing: border-box
}

.page-footer ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important
}

.page-footer li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0
}

.page-footer li::before,
.page-footer li::marker {
    content: none !important
}

.page-footer a {
    text-decoration: none !important;
    color: inherit;
    transition: color .35s ease
}

.page-footer a:hover,
.page-footer a:focus-visible {
    color: #f5a713
}

.page-footer p,
.page-footer address,
.page-footer h6 {
    margin: 0;
    padding: 0
}

.page-footer address {
    font-style: normal !important
}

.page-footer img {
    max-width: 100%;
    height: auto
}

/* --- Base ---------------------------------------------------------------- */

.page-footer {
    padding: 100px 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    background-color: #00376d
}

@media (max-width: 767px) {
    .page-footer {
        padding: 65px 0
    }
}

.page-footer h6 {
    font-size: 18px !important;
    line-height: 1.25;
    font-weight: 500 !important;
    color: #fff;
    margin-bottom: 40px !important;
    text-transform: none
}

/* --- Kontener ------------------------------------------------------------ */

.page-footer > .fluid {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    max-width: 1170px;
    padding: 0 15px;
    margin: 0 auto
}

@media (max-width: 1023px) {
    .page-footer > .fluid {
        justify-content: space-between
    }
}

/* --- Kolumna: about (logotypy + informacja o dotacji) -------------------- */

.page-footer__about {
    width: 100%;
    max-width: 330px;
    align-self: flex-end;
    order: 1
}

@media (max-width: 1023px) {
    .page-footer__about {
        order: 4;
        max-width: none;
        width: auto;
        margin-top: 40px
    }
}

@media (max-width: 767px) {
    .page-footer__about {
        width: 50%;
        align-self: center;
        margin-top: 40px
    }
}

@media (max-width: 364px) {
    .page-footer__about {
        width: 100%;
        text-align: center
    }
}

.page-footer__about > img {
    display: block;
    width: 100%
}

@media (max-width: 1023px) {
    .page-footer__about > img {
        width: 50%
    }
}

@media (max-width: 767px) {
    .page-footer__about > img {
        width: 75%
    }
}

@media (max-width: 575px) {
    .page-footer__about > img {
        width: 100%
    }
}

/* 10px jak w oryginale — jeśli za mało czytelne, podnieś do 11-12px */
.page-footer__about > p {
    margin-top: 20px !important;
    font-size: 10px;
    line-height: 1.6
}

.page-footer__about > p + p {
    margin-top: 14px !important
}

/* --- Kolumny: nawigacja --------------------------------------------------- */

.page-footer__nav {
    width: 100%;
    max-width: 250px
}

@media (max-width: 1023px) {
    .page-footer__nav {
        width: auto;
        max-width: none
    }
}

@media (max-width: 767px) {
    .page-footer__nav {
        width: 50%
    }
}

@media (max-width: 364px) {
    .page-footer__nav {
        width: 100%;
        text-align: center
    }
}

.page-footer__nav:nth-child(2) {
    margin-left: auto;
    order: 2
}

@media (max-width: 1023px) {
    .page-footer__nav:nth-child(2) {
        order: 1;
        margin-left: 0
    }
}

.page-footer__nav:nth-child(3) {
    order: 3
}

@media (max-width: 1023px) {
    .page-footer__nav:nth-child(3) {
        order: 2
    }
}

@media (max-width: 364px) {
    .page-footer__nav:nth-child(3) {
        margin-top: 40px;
        text-align: center
    }
}

.page-footer__nav > ul > li {
    padding: 3px 0
}

/* --- Kolumna: kontakt + social ------------------------------------------- */

.page-footer__contact {
    order: 4
}

@media (max-width: 1023px) {
    .page-footer__contact {
        order: 3;
        width: auto
    }
}

@media (max-width: 767px) {
    .page-footer__contact {
        width: 50%;
        margin-top: 40px
    }
}

@media (max-width: 364px) {
    .page-footer__contact {
        width: 100%;
        text-align: center
    }
}

.page-footer__contact > address,
.page-footer__contact > p {
    margin-top: 3px;
    line-height: 1.75
}

.page-footer__contact > ul {
    display: flex;
    flex-flow: row wrap;
    margin-top: 40px !important
}

@media (max-width: 364px) {
    .page-footer__contact > ul {
        justify-content: center
    }
}

.page-footer__contact > ul > li {
    margin-left: 6px !important
}

.page-footer__contact > ul > li:first-child {
    margin-left: 0 !important
}

.page-footer__contact > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: #00376d;
    font-size: 13px;
    border-radius: 50%;
    background-color: #fff;
    transition: all .35s ease
}

.page-footer__contact > ul > li > a:hover,
.page-footer__contact > ul > li > a:focus-visible {
    color: #fff;
    background-color: #f5a713
}

.page-footer__contact > ul > li > a svg {
    display: block;
    width: 13px;
    height: 13px;
    fill: currentColor
}

/* --- Copyright ----------------------------------------------------------- */

.page-footer__copy {
    margin-top: 20px !important;
    font-size: 10px;
    color: #fff
}

/* --- Utility ------------------------------------------------------------- */

.page-footer .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap
}
/* ============================================================
   Dostępność / preferencje
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* ===== PODZIĘKOWANIE (podziekowanie.html) ===== */
.thanks {
    background: radial-gradient(ellipse at 50% 30%, var(--navy-light) 0%, var(--navy) 70%);
    color: var(--white);
    text-align: center;
}
.thanks__inner {
    padding: 72px 20px 88px;
    display: flex; flex-direction: column; align-items: center;
}
.thanks__icon {
    width: 96px; height: 96px; border-radius: 50%;
    background: var(--blue);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 28px;
}
.thanks__icon svg { width: 46px; height: 46px; }
.thanks__title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 700; line-height: 1.2; margin-bottom: 16px;
}
.thanks__text {
    max-width: 560px; font-size: 17px; line-height: 1.6;
    color: var(--blue-soft); margin: 0 0 32px;
}
.thanks__btn { width: auto; min-width: 260px; text-decoration: none; }
@media (min-width: 768px) {
    .thanks__inner { padding: 96px 20px 116px; }
}
