/* ==========================================================================
   1. GLOBALNE STYLE
   ========================================================================== */

body {
    font-family: var(--font);
    color: var(--grey-850);
    background-color: var(--grey-0);
    line-height: 140%;
    font-weight: 400;
    font-size: var(--p);
}

:root {
    /* Color styles */
    --grey-0: #FFFFFF;
    --grey-50: #F2F2F2;
    --grey-100: #E6E6E6;
    --grey-150: #D9D9D9;
    --grey-200: #CCCCCC;
    --grey-300: #B3B3B3;
    --grey-400: #999999;
    --grey-500: #808080;
    --grey-600: #666666;
    --grey-700: #4D4D4D;
    --grey-800: #333333;
    --grey-850: #262626;
    --grey-900: #1A1A1A;
    --grey-950: #0D0D0D;
    --grey-1000: #000000;
    --red-0: #FFEBEB;
    --red-50: #FFD3D3;
    --red-100: #FFBCBC;
    --red-150: #FFA4A4;
    --red-200: #FF8D8D;
    --red-300: #FF5E5E;
    --red-400: #FF2F2F;
    --red-500: #FF0000;
    --red-600: #D00000;
    --red-700: #A10000;
    --red-800: #720000;
    --red-850: #5A0000;
    --red-900: #430000;
    --red-950: #2B0000;
    --red-1000: #140000;


    /* Text-size styles */
    --caption: 12px;
    --small: 14px;
    --p: 16px;
    --h6: 18px;
    --h5: 20px;
    --h4: 26px;
    --h3: 30px;
    --h2: 38px;
    --h1: 50px;
    --display1: 60px;
    --display2: 70px;
    --font: "Montserrat", sans-serif;

    /* spacing */
    --spacing-4: 4px;
    --spacing-8: 8px;
    --spacing-16: 16px;
    --spacing-24: 24px;
    --spacing-32: 32px;
    --spacing-40: 40px;
    --spacing-56: 56px;
    --spacing-80: 80px;
    --spacing-88: 88px;
    --sekcja: 160px;
    --spacing-112: 112px;
    --spacing-128: 128px;
    --spacing-144: 144px;
    --spacing-176: 176px;

    /* ============= */
    --radius-16: 16px;
    --radius-8: 8px;
    --radius-4: 4px
}


/* ==========================================================================
   2. TYPOGRAFIA
   ========================================================================== */

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

a:hover {
    text-decoration: none;
}

small {
    font-size: var(--small);
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.13px;
    font-family: var(--font);
}

.caption {
    font-size: var(--caption);
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.2px;
    font-family: var(--font);
    margin-bottom: var(--spacing-8);
}

p {
    font-size: var(--p);
    line-height: 140%;
    font-weight: 400;
    font-family: var(--font);
    color: var(--grey-600);
}

h6 {
    font-size: var(--h6);
    font-weight: 700;
    line-height: 140%;
    font-family: var(--font);
    color: var(--grey-1000);
}

h5 {
    font-size: var(--h5);
    font-weight: 700;
    line-height: 135%;
    letter-spacing: -0.125px;
    font-family: var(--font);
    color: var(--grey-1000);
}

h4 {
    font-size: var(--h4);
    font-weight: 700;
    line-height: 130%;
    letter-spacing: -0.31px;
    font-family: var(--font);
    color: var(--grey-1000);
}

h3 {
    font-size: var(--h3);
    font-weight: 700;
    line-height: 125%;
    letter-spacing: -0.468px;
    font-family: var(--font);
    color: var(--grey-1000);
}

h2 {
    font-size: var(--h2);
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -0.735px;
    font-family: var(--font);
    margin-bottom: var(--spacing-16);
    color: var(--grey-1000);
}

h1 {
    font-size: var(--h1);
    font-weight: 700;
    line-height: 115%;
    letter-spacing: -1.22px;
    font-family: var(--font);
    margin-bottom: var(--spacing-24);
    color: var(--grey-1000);
}

.display1 {
    font-size: var(--display1);
    font-weight: 700;
    line-height: 110%;
    letter-spacing: -1.672px;
    font-family: var(--font);
    color: var(--grey-1000);
}

.display2 {
    font-size: var(--display2);
    font-weight: 700;
    line-height: 105%;
    letter-spacing: -2.375px;
    font-family: var(--font);
    color: var(--grey-1000);
}

.sekcja {
    margin-bottom: var(--sekcja);
}

.sekcja2 {
    margin-bottom: var(--spacing-40);
}

.btn-marg{
    margin-top: var(--spacing-24);
}

.pelny-zakres li{
    font-size: var(--h5);
    line-height: 1.6em;
}

.pelny-zakres-1 img{
    margin-top: var(--spacing-88);
}
.pelny-zakres-2 img{
    margin-bottom: var(--spacing-32);
}

.pelny-zakres-2 h2{
    max-width: 60%;
}

/* ==========================================================================
   3. NAVBAR / HEADER
   ========================================================================= */

.custom-navbar {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    width: 100%;
    transition: all 0.3s;
    -webkit-transform: translateZ(0); 
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.custom-navbar.scrolled {
    background-color: #000000 !important; 
  }

#jak-pracujemy,
#kontakt {
    scroll-margin-top: 120px;
}

/* --- TYPOGRAFIA I WSPÓLNE STYLE --- */

.created-text {
    font-size: 11px;
    color: var(--grey-200);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.logo-main,
.logo-partner,
.logo-main-mobile,
.logo-partner-mobile {
    display: block;
    object-fit: contain;
}

/* ==========================================================================
   WIDOK DESKTOP (od 1200px / xl wzwyż)
   ========================================================================= */
.nav-desktop-container {
    height: 90px;
    /* Stała wysokość całego paska dla równych linii */
}

/* --- GRUPY Z PIONOWYMI KRESKAMI --- */

.border-end-white {
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.desktop-group-logo {
    padding-left: var(--spacing-40);
    padding-right: var(--spacing-32);
}

.desktop-group-partners {
    padding-left: var(--spacing-32);
    padding-right: var(--spacing-32);
}

.desktop-group-links {
    gap: 0;
}


.nav-box {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

.box-link {
    justify-content: center;
    padding: 0 var(--spacing-16);
    font-size: var(--p);
    color: var(--grey-0);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}


.box-link:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.box-link:hover {
    color: var(--red-500);
}

.link-konsultacja {
    padding-right: var(--spacing-56);
}

.logo-main {
    max-height: 40px;
}

.logo-partner {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.desktop-group-partners a:not(:last-child) {
    margin-right: 24px !important;
}

/* ==========================================================================
   WIDOK MOBILE (poniżej 1200px / xl)
   ========================================================================= */
.mobile-top-bar {
    height: 70px;
    background-color: var(--grey-950);
}

/* Rozmiary logo na mobile */
.logo-main-mobile {
    max-height: 30px;
}

.logo-partner-mobile {
    max-height: 18px;
}

.mobile-dropdown-links {
    background-color: var(--grey-950);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-link {
    display: block;
    padding: var(--spacing-16);
    font-size: var(--p);
    color: var(--grey-0);
    text-decoration: none;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* slider */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
}

/* overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2;
}

/* content */
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--spacing-144);
}

.hero-content .row{
    width: 100%;
    align-items: flex-end;
}

.hero h1, .hero h5, .hero p{
    color: var(--grey-0);
}

.hero p{
    margin-bottom: 0px;
}
.hero h3{
    color: var(--red-500);
    font-weight: 400;
    margin-bottom: 15%;
}

.hero-right img{
    max-height: 48px;
    margin-bottom: var(--spacing-24);
}

.btn{
    font-size: var(--p);
    border-radius: 0px !important;
}

.btn img{
margin-left: var(--spacing-4);
transition: all 0.3s;
}

.btn:hover img{
margin-left: var(--spacing-8);
filter: brightness(0) invert(1);
}

.custom-btn-white{
    background-color: var(--grey-0);
    color: var(--grey-1000);
    padding: var(--spacing-16) var(--spacing-40);
    font-weight: 700;
    transition: all 0.3s;
}

.custom-btn-white:hover{
    background-color: var(--grey-1000);
    color: var(--grey-0);
}
.custom-btn-white:focus{
    background-color: var(--grey-1000);
    color: var(--grey-0);
}
.custom-btn-white:active{
    background-color: var(--grey-1000);
    color: var(--grey-0);
}


.custom-btn-black{
    background-color: var(--grey-1000);
    color: var(--grey-0);
    padding: var(--spacing-16) var(--spacing-40);
    font-weight: 700;
    transition: all 0.3s;
}

.custom-btn-black img{
    filter: brightness(0) invert(1);
}
.custom-btn-black:hover img{
    filter: brightness(0) invert(0);
}

.custom-btn-black:hover{
    background-color: var(--grey-0);
    color: var(--grey-1000);
    border: 1px solid var(--grey-1000);
}
.custom-btn-black:focus{
    background-color: var(--grey-0);
    color: var(--grey-1000);
    border: 1px solid var(--grey-1000);
}
.custom-btn-black:active{
     background-color: var(--grey-0);
    color: var(--grey-1000);
    border: 1px solid var(--grey-1000);
}


.about-layout{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

/* rozmieszczenie */

.about-text{
  grid-column: 1;
}

.about-image-top{
  grid-column: 2;
}

.about-image-top p{
    max-width: 356px;
}

.about-plan{
  grid-column: 1;
  margin-top: -40%;
}

.about-plan img{
    padding-left: var(--spacing-112);
    padding-right: var(--spacing-112);
}

.about-image-bottom{
  grid-column: 2;
}

.about-image-bottom p{
    max-width: 356px;
}

.about-description{
  grid-column: 1;
  margin-top: -40px;
}

.jak-pracujemy-grid{
    margin-top: var(--spacing-40);
}

.jak-pracujemy-grid > div{
    display: flex;
}

.jak-pracujemy-grid > div > a{
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.jak-pracujemy-grid h4{
    margin-bottom: var(--spacing-24);
}

.jak-pracujemy-grid p > b{
    color: var(--grey-1000);
}

.jak-pracujemy-grid img{
    max-height: 36px;
    margin-bottom: var(--spacing-24);
}

.portfolio-slider-section {
  overflow: hidden;
  position: relative;
}

.portfolio-wrapper {
    overflow: hidden; /* To zapobiega wyświetlaniu paska przewijania na dole */
    touch-action: pan-y; /* Pozwala na scrollowanie strony góra-dół przy dotyku slidera */
}

.portfolio-track {
  display: flex;
  gap: 20px;
  cursor: grab;
}

.portfolio-item {
  flex: 0 0 70%; /* Szerokość głównego zdjęcia na mobile */
  transition: transform 0.5s ease;
}



.portfolio-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Styl strzałek */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px;
}

.prev { left: 20px; }
.next { right: 20px; }

@media (min-width: 992px) {
  .portfolio-item {
    flex: 0 0 50%;
  }
}

.doswiadczenie h2{
    margin-bottom: var(--spacing-80);
}

.doswiadczenie h5{
    font-weight: 400;
    margin-top: var(--spacing-40);
}


.doswiadczenie .img-wrapper {
    position: relative;
    width: 100%;
    height: 48px;
    overflow: hidden;
}

.doswiadczenie img.animate-cross {
    position: absolute;
    top: 0;
    left: 0;
    height: 48px;
    width: auto;
    display: block;
    will-change: transform;
}

.doswiadczenie-cross{
    margin-top: var(--spacing-112);
}

.rola-inwestora h6{
    font-weight: 400;
    margin-top: var(--spacing-40);
}

.rola-inwestora p{
    font-weight: 600;
    color: var(--grey-1000);
}

.border-benefity {
    border-top: 1px solid var(--grey-1000);
    border-bottom: 1px solid var(--grey-1000);
    border-left: 1px solid var(--grey-1000);
    padding: var(--spacing-24);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.border-benefity h5{
    font-weight: 400;
}

.border-benefity:last-child {
    border-right: 1px solid var(--grey-1000);
}

.full-section{
    padding-top: var(--spacing-112);
    padding-bottom: var(--spacing-112);
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/img/full-section.webp');
    background-size: cover;
    background-position: center;
}

.full-section .display2{
        color: var(--grey-0);
        margin-bottom: var(--spacing-112);
}

.full-section li{
    color: var(--grey-0);
    font-size: var(--h3);
    line-height: 1.6em;
}

.full-section ul{
    margin-bottom: var(--spacing-112);
}

.wizja{
    padding-top: var(--spacing-112);
    padding-bottom: var(--spacing-112);
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
        url('/img/wizja.webp');
    background-size: cover;
    background-position: center; 
}

.wizja h3{
    color: var(--grey-0);
    margin-bottom: var(--spacing-24);
}

.wizja h4{
    color: var(--grey-0);
    font-weight: 400;
}

@media (min-width: 1920px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1640px;
    }
}

/* ==========================================================================
   KONTAKT - FORMULARZ
   ========================================================================== */
.contact-form-wrap{
    background-color: var(--grey-1000);
    padding: var(--spacing-32);
}

.contact-form{
    display: flex;
    flex-direction: column;
    gap: var(--spacing-16);
    width: 100%;
}

.contact-form__alert{
    margin-bottom: var(--spacing-16);
    padding: 14px 16px;
    font-family: var(--font);
    font-size: var(--small);
    line-height: 150%;
    border: 1px solid transparent;
}

.contact-form__alert--success{
    color: var(--grey-0);
    background-color: rgba(61, 122, 62, 0.2);
    border-color: rgba(92, 178, 93, 0.45);
}

.contact-form__alert--error{
    color: var(--grey-0);
    background-color: rgba(169, 39, 39, 0.18);
    border-color: rgba(230, 88, 88, 0.4);
}

.contact-form-toast{
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(420px, calc(100vw - 32px));
    padding: 16px 18px;
    color: var(--grey-0);
    border: 1px solid transparent;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-form-toast-anchor{
    position: relative;
    z-index: 1;
}

.contact-form-toast--success{
    background-color: rgba(22, 35, 22, 0.92);
    border-color: rgba(92, 178, 93, 0.45);
}

.contact-form-toast--error{
    background-color: rgba(52, 18, 18, 0.94);
    border-color: rgba(230, 88, 88, 0.4);
}

.contact-form-toast--hidden{
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.contact-form-toast__body{
    flex: 1;
    font-family: var(--font);
    font-size: var(--small);
    line-height: 150%;
}

.contact-form-toast__close{
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--grey-0);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.contact-form__field{
    width: 100%;
}

.contact-form__field input,
.contact-form__field textarea{
    width: 100%;
    background-color: transparent;
    border: 0;
    border-bottom: 1px solid var(--grey-800);
    padding: var(--spacing-16) 0;
    color: var(--grey-0);
    font-family: var(--font);
    font-size: var(--p);
    line-height: 140%;
    outline: none;
    border-radius: 0;
}

.contact-form__field textarea{
    resize: none;
    min-height: var(--spacing-80);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus{
    border-bottom: 1px solid var(--grey-0);
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder{
    color: var(--grey-500);
    opacity: 1;
}

.contact-form__field input[aria-invalid="true"],
.contact-form__field textarea[aria-invalid="true"]{
    border-bottom-color: var(--red-500);
}

.contact-form__error{
    margin: var(--spacing-8) 0 0;
    color: #ffb4b4;
    font-size: var(--small);
    line-height: 150%;
    font-family: var(--font);
}

.contact-form__consent{
    display: flex;
    gap: var(--spacing-8);
    align-items: flex-start;
    margin-top: var(--spacing-8);
}

.contact-form__consent input[type="checkbox"]{
    width: var(--spacing-16);
    height: var(--spacing-16);
    accent-color: var(--red-500);
    margin-top: var(--spacing-4);
}

.contact-form__consent label{
    margin: 0;
    color: var(--grey-500);
    font-size: var(--small);
    line-height: 150%;
    font-family: var(--font);
}

.contact-form__submit{
    width: 100%;
    border: 0;
    background-color: var(--red-500);
    color: var(--grey-0);
    padding: var(--spacing-16) var(--spacing-32);
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form__submit:disabled{
    opacity: 0.7;
    cursor: wait;
}

.contact-form__submit:hover{
    background-color: var(--grey-0);
    color: var(--red-1000);
}

.contact-form__submit:focus{
    outline: 2px solid var(--red-500);
    outline-offset: 2px;
}

.contact-form__trap{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.kontakt h4{
    font-weight: 400;
}

.kontakt h5{
    padding-top: var(--spacing-40);
    padding-bottom: var(--spacing-40);
    border-top: 1px solid var(--red-1000);
}

.kontakt ul{
    padding-left: 0px;
    margin-top: var(--spacing-56);
    margin-bottom: var(--spacing-56);
}

.kontakt li{
    list-style-type: none;
    font-weight: 600;
    margin-bottom: var(--spacing-40);
}
.kontakt li:last-child {
    margin-bottom: 0;
}


.kontakt ul li img {
    max-height: 16px;
    width: auto;
    vertical-align: middle;
    margin-right: 16px;
}

.sociale {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  
  .sociale a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background-color: var(--grey-1000);
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .sociale a svg {
    width: 20px;
    height: auto;
    fill: var(--grey-0);
  }
  
  .sociale a:hover {
    transform: scale(1.1);
  }

  footer{
    border-top: 1px solid var(--grey-1000);
    padding-top: var(--spacing-32);
    padding-bottom: var(--spacing-32);
  }

  .header-page{
    padding-top: var(--spacing-176);
    padding-bottom: var(--spacing-56);
    background-color: var(--grey-1000);
  }

  .header-page h1{
    color: var(--grey-0);
  }

  .box-info{
    padding: var(--spacing-40) var(--spacing-24);
    border: 1px solid var(--grey-150);
    border-radius: var(--radius-8);
    transition: all 0.3s;
    width: 100%;
    height: 100%;
  }

  .box-info:hover{
    background-color: var(--grey-50);
  }

  /* ==========================================================================
   TEAM PAGE — onas.html
   Wklej na koniec style.css
   ========================================================================== */

/* --- Shared tokens -------------------------------------------------------- */

.tm-company {
    display: block;
    font-size: var(--caption);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey-400);
    margin-bottom: var(--spacing-8);
}

/* --- Split layout (główne osoby) ----------------------------------------- */

.tm-section {
    border-top: 1px solid var(--grey-100);
}

.tm-section--alt .tm-split {
    flex-direction: row-reverse;
}

.tm-split {
    display: flex;
    align-items: stretch;
    min-height: 80vh;
}

.tm-split__photo {
    position: relative;
    width: 45%;
    flex-shrink: 0;
    overflow: hidden;
}

.tm-split__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.tm-num {
    position: absolute;
    top: var(--spacing-40);
    left: var(--spacing-40);
    font-size: var(--display2);
    font-weight: 700;
    line-height: 1;
    color: var(--grey-0);
    opacity: 0.18;
    letter-spacing: -4px;
    pointer-events: none;
    z-index: 1;
}

.tm-split__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-80) var(--spacing-80);
}

.tm-name {
    font-size: var(--display1);
    font-weight: 700;
    line-height: 105%;
    letter-spacing: -2px;
    color: var(--grey-1000);
    margin-top: var(--spacing-8);
    margin-bottom: var(--spacing-32);
}

.tm-bio p {
    color: var(--grey-600);
    margin-bottom: var(--spacing-16);
}

.tm-bio p:last-child {
    margin-bottom: 0;
}

/* --- Nagłówek grupowy ---------------------------------------------------- */

.tm-group-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-24);
    margin-bottom: var(--spacing-40);
}

.tm-group-index {
    font-size: var(--caption);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey-400);
    white-space: nowrap;
}

.tm-group-line {
    flex: 1;
    height: 1px;
    background-color: var(--grey-100);
}

/* --- Karty PWM ----------------------------------------------------------- */

.tm-card {
    display: flex;
    flex-direction: column;
}

.tm-card__photo {
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.tm-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.7s ease;
}

.tm-card:hover .tm-card__photo img {
    transform: scale(1.04);
}

.tm-card__body {
    padding-top: var(--spacing-24);
}

.tm-card__name {
    font-size: var(--h5);
    font-weight: 700;
    color: var(--grey-1000);
    margin-top: var(--spacing-8);
    margin-bottom: var(--spacing-16);
    line-height: 135%;
}

/* Środkowa karta przesunięta w dół — efekt editorial */
.tm-card--push {
    padding-top: var(--spacing-80);
}

/* --- Partnerzy — horizontal strip --------------------------------------- */

.tm-partners {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tm-partner {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
    gap: var(--spacing-56);
    padding: var(--spacing-32) 0;
    border-top: 1px solid var(--grey-100);
}

.tm-partner:last-child {
    border-bottom: 1px solid var(--grey-100);
}

.tm-partner__photo {
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.tm-partner__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.7s ease;
}

.tm-partner:hover .tm-partner__photo img {
    transform: scale(1.04);
}

.tm-partner__info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-8);
}

.tm-partner__name {
    font-size: var(--h2);
    font-weight: 700;
    line-height: 115%;
    letter-spacing: -1px;
    color: var(--grey-1000);
    margin: 0;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 991px) {
    .tm-split,
    .tm-section--alt .tm-split {
        flex-direction: column;
    }

    .tm-split__photo {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .tm-split__img {
        height: auto;
        object-fit: contain;
    }

    .tm-split__content {
        padding: var(--spacing-56) var(--spacing-32);
    }

    .tm-name {
        font-size: var(--h1);
    }

    .tm-num {
        font-size: var(--h1);
        top: var(--spacing-24);
        left: var(--spacing-24);
    }

    .tm-card--push {
        padding-top: 0;
    }

    .tm-partner {
        grid-template-columns: 120px 1fr;
        gap: var(--spacing-24);
    }

    .tm-partner__name {
        font-size: var(--h3);
    }
}

@media (max-width: 575px) {
    .tm-split__content {
        padding: var(--spacing-40) var(--spacing-24);
    }

    .tm-partner {
        grid-template-columns: 90px 1fr;
        gap: var(--spacing-16);
    }

    .tm-partner__name {
        font-size: var(--h4);
    }
}

  @media (max-width: 1024px){
    :root{
        /* typography */
        --h6: 17px;
        --h5: 18px;
        --h4: 22px;
        --h3: 26px;
        --h2: 32px;
        --h1: 42px;
        --display1: 52px;
        --display2: 60px;

        /* spacing */
        --spacing-24: 20px;
        --spacing-32: 26px;
        --spacing-40: 34px;
        --spacing-56: 46px;
        --spacing-80: 64px;
        --spacing-88: 72px;
        --sekcja: 120px;
        --spacing-112: 96px;
        --spacing-128: 108px;
        --spacing-144: 122px;
        --spacing-176: 148px;
    }
}

@media (max-width: 768px){
    :root{
        /* typography */
        --h6: 16px;
        --h5: 17px;
        --h4: 20px;
        --h3: 22px;
        --h2: 26px;
        --h1: 32px;
        --display1: 40px;
        --display2: 46px;

        /* spacing */
        --spacing-24: 18px;
        --spacing-32: 22px;
        --spacing-40: 28px;
        --spacing-56: 36px;
        --spacing-80: 52px;
        --spacing-88: 58px;
        --sekcja: 64px;
        --spacing-112: 72px;
        --spacing-128: 84px;
        --spacing-144: 96px;
        --spacing-176: 120px;
    }

    .hero {
        height: auto;
        padding-top: var(--spacing-176);
    }
    .about-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
      }
    
      .about-text, 
      .about-image-top, 
      .about-plan, 
      .about-image-bottom, 
      .about-description {
        grid-column: auto;
        margin-top: 0 !important;
      }
    
      /* Ustawienie kolejności zgodnie z Twoją prośbą */
      .about-text { 
        order: 1; 
      }
      .about-image-top { 
        order: 2; 
      }
      .about-plan { 
        order: 3; 
      }
      .about-description { 
        order: 4; 
      }
      .about-image-bottom { 
        order: 5; 
      }
    
      /* Reszta stylów bez zmian */
      .about-image-top p, 
      .about-image-bottom p {
        max-width: 100%;
        margin-bottom: 20px;
      }
    
      .about-plan img {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        height: auto;
      }
      .slider-arrow {
        width: 32px !important;
        height: 32px !important;
        margin: 0px;
      }

      .slider-arrow img{
        width: 32px !important;
        height: 32px !important;
      }
      .border-benefity {
        border-right: 1px solid var(--grey-1000);
        border-top: none; 
    }

    .border-benefity h5{
        font-weight: 700;
    }
    
   
    .border-benefity:first-child {
        border-top: 1px solid var(--grey-1000);
    }

    .pelny-zakres-2{
        margin-top: var(--spacing-56);
    }

    .pelny-zakres-2 h2 {
        max-width: 100%;
    }

    .contact-form-toast{
        right: 16px;
        bottom: 16px;
        width: calc(100vw - 32px);
    }
}
