/*-----------------*/
/* START OF HEADER */
/*-----------------*/

header {
    position: relative;
    background: linear-gradient(to right, #1c281c, #283428); 
    color: white;
    text-align: center;
    width: 100%;
    height: 900px;
    overflow: hidden;
}

header div.headerBackground {
    position: absolute;
    background: url('../src/header-image.webp') no-repeat;
    background-position: 3% 50%;
    width: 3000px;
    height: 100%;
    left: calc(50% - 1400px);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    z-index: 0;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

header * {
    position: relative;
    z-index: 2;
}

/*-----------------*/

div.miniContact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1260px;
    margin: 0 auto;
    position: relative;
    top: 5px;
}

div.headerCompany {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

div.headerCompany span {
    font-size: var(--font-size-mini);
    color: var(--font-secondary-color);
    font-weight: var(--font-weight-thin);
}

div.headerCompany div.headerTelMail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 135px;
}

div.headerCompany div.headerPhone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 135px;
}
 
div.headerCompany div.headerPhone span.phoneIcon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('../src/phone.png') no-repeat center center;
}

div.headerCompany div.headerPhone span.phoneNumber {
    font-size: var(--font-size-mini);
    color: var(--font-secondary-color);
    font-weight: var(--font-weight-thin);
}

div.headerCompany div.headerMail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

div.headerCompany div.headerMail span.mailIcon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('../src/mail.png') no-repeat center center;
}

div.headerCompany div.headerMail span.mail {
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-thin);
    color: var(--font-secondary-color);
}

div.headerRight {
    display: flex;
    flex-direction: row;
    gap: 50px;
}

div.headerRight div.headerFlags {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

div.headerRight div.headerFlags a {
    display: inline-block;
    width: 30px;
    height: 18px;
}

div.headerRight div.headerFlags span {
    display: inline-block;
    width: 30px;
    height: 18px;
    cursor: pointer;
}

div.headerRight div.headerFlags span.ukFlag {
    background: url('../src/ukFlag.png') no-repeat center center;
    background-size: cover;
}

/* div.headerRight div.headerFlags span.deFlag {
    background: url('../src/deFlag.png') no-repeat center center;
} */

div.headerRight div.headerFlags span.plFlag {
    background: url('../src/pl.webp') no-repeat center center;
    background-size: cover;
}

div.headerRight div.headerSocials {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

div.headerRight div.headerSocials span {
    display: inline-block;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

div.headerRight div.headerSocials span.facebook {
    background: url('../src/facebookIcon.png') no-repeat center center;
}

div.headerRight div.headerSocials span.instagram {
    background: url('../src/instagramIcon.png') no-repeat center center;
}

div.headerRight div.headerSocials span.twitter {
    background: url('../src/twitterIcon.png') no-repeat center center;
}

div.headerRight div.headerSocials span.googlePlus {
    background: url('../src/google_Icon.png') no-repeat center center;
}

a.mainPhone,
a.mainEmail {
    display: flex;
    justify-content: center;
    align-items: center;    
}

/*-----------------*/

div#menuContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1260px;
    margin: 30px auto 0 auto;
}

span.menuLogo {
    display: inline-block;
    width: 225px;
    height: 52px;
    background: url('../src/intrasped-logo.png') no-repeat center center;
    background-size: contain;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* width: 35%; */
    width: 28%;
}

nav span {
    font-size: var(--font-size-regular);
    color: var(--font-secondary-color);
    font-weight: var(--font-weight-normal);
    letter-spacing: 3%;
    line-height: 12px;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

nav span:hover {
    border-bottom-color: var(--active-color);
}

/*-----------------*/

div.headerSloganContainer {
    width: 1260px;
    margin: 20px auto 0 auto;
    position: relative;
    top: 200px;
}

div.headerSlogan {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 570px;
}

div.headerSlogan h1 {
    font-size: var(--font-size-xlarge);
    color: var(--font-secondary-color);
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
}

div.headerSlogan p {
    font-size: var(--font-size-regular);
    color: var(--font-secondary-color);
    font-weight: var(--font-weight-thin);
    line-height: 1.6;
    margin-top: 10px;
    padding-right: 100px;
}

div.headerSlogan strong {
    font-weight: var(--font-weight-bold);
}

div.headerSlogan h1, 
div.headerSlogan p, 
div.headerSlogan span {
    text-align: left;
}

button.sloganButton {
    padding: 12px 30px;
    border-radius: 5px;
    background-color: var(--red);
    letter-spacing: 3.4%;
    line-height: 12px;
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-bold);
    color: var(--font-secondary-color);
    border: none;
    margin-top: 20px;
    cursor: pointer;
}

button.sloganButton:hover {
    background-color: var(--active-color);
}

/*---------------*/
/* END OF HEADER */
/*---------------*/
/* --------------*/
/* START OF MAIN */
/* --------------*/

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    background-color: var(--primary-color);
}

div.mainContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 1260px;
    margin: 0 auto;
}

/*-----------------*/

section.transportBoxes {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: -85px;
    z-index: 10;
}

div.countryBox,
div.internationalBox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 630px;
    height: 300px;
    padding: 0 80px;
}

div.countryBox {
    background-color: var(--tertiary-color);
}

div.countryBox span.countryBoxIcon {
    display: inline-block;
    width: 40px;
    height: 36px;
    background: url('../src/poland.svg') no-repeat center center;
    background-size: contain;
    margin-bottom: 20px;
}

div.countryBox h2 {
    font-size: var(--font-size-regular);
    color: #252F40;
    font-weight: var(--font-weight-semiBold);
    margin-bottom: 10px;
}

div.countryBox p {
    font-size: var(--font-size-small);
    color: var(--font-tertiary-color);
    font-weight: var(--font-weight-thin);
    line-height: 1.5;
}

div.countryBox button.countryButton {
    padding: 12px 30px;
    border-radius: 8px;
    background-color: transparent;
    line-height: 12px;
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-bold);
    color: var(--red);
    border: 1px solid var(--red);
    margin-top: 30px;
    cursor: pointer;
}

div.internationalBox {
    background-color: var(--secondary-color);
}

div.internationalBox span.internationalBoxIcon {
    display: inline-block;
    width: 56px;
    height: 42px;
    background: url('../src/europe.svg') no-repeat center center;
    background-size: contain;
    margin: -10px 0 20px 0;
}

div.internationalBox h2 {
    font-size: var(--font-size-regular);
    color: var(--font-secondary-color);
    font-weight: var(--font-weight-semiBold);
    margin-bottom: 10px;
}

div.internationalBox p {
    font-size: var(--font-size-small);
    color: var(--font-tertiary-color);
    font-weight: var(--font-weight-thin);
    line-height: 1.5;
}

div.internationalBox button.internationalButton {
    padding: 12px 30px;
    border-radius: 8px;
    background-color: transparent;
    line-height: 12px;
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-bold);
    color: var(--red);
    border: 1px solid var(--red);
    margin-top: 25px;
    cursor: pointer;
}

div.countryBox button.countryButton:hover,
div.internationalBox button.internationalButton:hover {
    background-color: var(--active-color);
    color: var(--font-secondary-color);
}

/*-----------------*/

section.aboutUs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 100px;
    position: relative;
}

div.aboutUsText {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 43.3%;
    height: 570px;
    margin: 0 auto;
}

div.aboutUsText h2 {
    font-size: var(--font-size-large);
    color: var(--font-primary-color);
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
    line-height: 1.4;
}

div.aboutUsText h4 {
    font-size: var(--font-size-regular);
    color: var(--font-primary-color);
    font-weight: var(--font-weight-semiBold);
    line-height: 1.5;
    margin-bottom: 10px;
}

div.aboutUsText p {
    font-size: var(--font-size-small);
    color: var(--font-tertiary-color);
    font-weight: var(--font-weight-thin);
    line-height: 1.4;
    margin-bottom: 30px;
}

div.aboutUsText div.aboutUsButtons {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

div.aboutUsText div.aboutUsButtons button.aboutUsWhereButton,
div.aboutUsText div.aboutUsButtons button.aboutUsTaborButton {
    padding: 12px 30px;
    border-radius: 8px;
    background-color: transparent;
    letter-spacing: 3.4%;
    line-height: 12px;
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-bold);
    color: var(--red);
    border: 1px solid var(--red);
    margin-top: 10px;
    cursor: pointer;
}

div.aboutUsText div.aboutUsButtons button.aboutUsWhereButton:hover,
div.aboutUsText div.aboutUsButtons button.aboutUsTaborButton:hover {
    background-color: var(--active-color);
    color: var(--font-secondary-color);
}

div.aboutUsText div.aboutUsButtons button.aboutUsTaborButton {
    border: none;
}

div.aboutUsImage {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 45%;
    height: 570px;
    margin-left: 30px;
    position: relative;
}

span.aboutUsImagePicture {
    display: inline-block;
    width: 100%;
    height: 422px;
    background: url('../src/aboutUsPicture.jpg') no-repeat center center;
    background-size: contain;
    position: relative;
    margin-top: 25px;
    z-index: 10;
}

span.aboutUsImageBackground {
    display: inline-block;
    width: 100%;
    height: 440px;
    background-color: var(--secondary-color);
    position: absolute;
    top: 65px;
    left: 25px;
}

/*-------------*/

section.kmData {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 60px;
    width: 100%;
    margin: 100px auto 100px auto;
    position: relative;
}

section.kmData div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 265px;
    height: 180px;
}

section.kmData div h1 {
    font-size: var(--font-size-xlarge);
    font-weight: var(--font-weight-bold);
    color: var(--font-primary-color);
    text-align: center;
    margin-bottom: -10px;
}

section.kmData div h4 {
    font-size: var(--font-size-regular);
    font-weight: var(--font-weight-semiBold);
    color: var(--font-primary-color);
    text-align: center;
    margin-bottom: 10px;
}

section.kmData div p {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-thin);
    color: var(--font-tertiary-color);
    text-align: center;
}

/*-------------*/

div.interval {
    width: 100%;
    height: 445px;
    background-color: var(--secondary-color);
}

section.stayUpToDate {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 100px;
    position: relative;
    top: -435px;
}

section.stayUpToDate h1 {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    color: var(--font-secondary-color);
    line-height: 1.4;
    margin-bottom: 80px;
}

section.stayUpToDate div.stayUpToDateItems {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 25px;
    width: 100%;
}

section.stayUpToDate div.stayUpToDateItems div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 400px;
    height: 540px;
    background-color: var(--tertiary-color);
    border-radius: 3px;
    box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.2);
}

section.stayUpToDate div.stayUpToDateItems div span {
    display: inline-block;
    width: 360px;
    height: 250px;
    margin: 20px auto;
    border-radius: 3px;
}

section.stayUpToDate div.stayUpToDateItems div span.upToDate1 {
    background: url('../src/upToDate1.jpg') no-repeat center center;
}

section.stayUpToDate div.stayUpToDateItems div span.upToDate2 {
    background: url('../src/upToDate2.jpg') no-repeat center center;
}

section.stayUpToDate div.stayUpToDateItems div span.upToDate3 {
    background: url('../src/upToDate3.jpg') no-repeat center center;
}

section.stayUpToDate div.stayUpToDateItems div h4 {
    font-size: var(--font-size-regular);
    font-weight: var(--font-weight-semiBold);
    align-self: flex-start;
    margin: 35px 0 20px 20px;
    color: #252F40;
}

section.stayUpToDate div.stayUpToDateItems div p {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    color: var(--font-tertiary-color);
    line-height: 1.4;
    align-self: flex-start;
    margin: 0 20px;
} 

/*-------------*/

section.destinations {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: -570px;
    overflow: visible;
}

section.destinations div.destinationsInfo {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 395px;
}

section.destinations div.destinationsInfo h1 {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    color: var(--font-primary-color);
    line-height: 1.4;
}

section.destinations div.destinationsInfo ul li {
    font-size: var(--font-size-regular);
    font-weight: var(--font-weight-semiBold);
    color: var(--font-footerInfo-color);
    margin-left: 25px;
}

section.destinations div.destinationsInfo p {
    font-size: var(--font-size-regular);
    font-weight: var(--font-weight-semiBold);
    color: var(--font-primary-color);
}

section.destinations div.destinationsInfo span {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

section.destinations div.destinationsInfo span p {
    display: inline-block;
    width: 170px;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    color: var(--font-footerInfo-color);
    line-height: 1.3;
}

section.destinations div.destinationsInfo span span.pin {
    display: inline-block;
    width: 33px;
    height: 33px;
    background: url('../src/marker.svg') no-repeat center center;
    margin-bottom: 3px;
}

section.destinations div.destinationsMap {
    display: inline-block;
    background: url('../src/europeMap.png') no-repeat top center;
    background-size: contain;
    width: 1025px;
    height: 1000px;
    margin: 0 -185px 0 0;
}

/*-------------*/

div.taborContainer {
    width: 100%;
    height: 810px;
    background-color: var(--font-primary-color);
    position: relative;
}

div.taborContainer div.tabor {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 50px;
    width: 1260px;
    height: 400px;
    margin: 150px auto 0 auto;
}

div.taborContainer div.tabor div {
    width: 385px;
    height: 150px;
}

div.taborContainer div.tabor div h1 {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    color: var(--font-secondary-color);
}

div.taborContainer div.tabor div h4 {
    font-size: var(--font-size-regular);
    font-weight: var(--font-weight-bold);
    color: var(--font-secondary-color);
    margin-bottom: 15px;
}

div.taborContainer div.tabor div p {
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-thin);
    color: var(--font-secondary-color);
    line-height: 1.3;
}

div.taborContainer div.moreQuestion {
    width: 1260px;
    margin: 50px auto 0 auto;
}

div.taborContainer div.moreQuestion span {
    font-size: var(--font-size-regular);
    font-weight: var(--font-weight-semiBold);
    color: var(--font-secondary-color);
    display: inline-block;
    width: 185px;
    border-bottom: 2px solid var(--active-color);
    padding-bottom: 6px;
    cursor: pointer;
}

div.taborContainer div.moreQuestion span:hover {
    color: var(--active-color);
}

div.taborContainer div.taborPictureContainer {
    width: 1260px;
    margin: 0 auto;
    position: relative;
}

div.taborContainer span.taborPicture {
    display: inline-block;
    width: 940px;
    height: 670px;
    background: url('../src/taborPicture.png') no-repeat center center;
    background-size: contain;
    position: absolute;
    right: 0;
    top: -185px;
}

/*-------------*/

section#gallery {
    width: 1260px;
    margin: 100px auto 50px auto;
}

/*-------------*/

#galleryWrapper {
    margin: 100px auto -90px auto;
}

.galleryTitle {
    width: 1260px;
    margin: 0 auto 50px auto;
    display: block;
}

.galleryTitle h1 {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    color: var(--font-primary-color);
    text-align: left;
}

.galleryGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
}

.collapsibleContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.thumbItem {
    width: calc(33.333% - 10px);
    box-sizing: border-box;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.thumbItem img {
    width: 100%;
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    will-change: transform;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.4) 1px 1px 10px;
}

.thumbItem img:hover {
    transform: scale(1.05);
    box-shadow: rgba(0, 0, 0, 0.4) 5px 10px 10px;
}

.thumbItem.hidden {
    display: none;
}

#showMoreBtn {
    display: block;
    float: right;
    width: 125px;
    height: 34px;
    margin: 20px auto;
    background-color: transparent;
    color: var(--red);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-bold);
    border-radius: 5px;
    text-align: center;
}

#showMoreBtn:hover {
    background-color: var(--active-color);
    color: var(--font-secondary-color);
}

#showMoreBtn .loader {
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-top-color: #ccc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-top: -3px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.galleryModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

.galleryModal.hidden {
    display: none;
}

.galleryModal img {
    max-width: 90%;
    max-height: 90%;
}

.galleryModal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 42px;
    cursor: pointer;
}

.galleryModal .prev,
.galleryModal .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.galleryModal .prev { left: 30px; }
.galleryModal .next { right: 30px; }

.galleryModal .prev:hover,
.galleryModal .next:hover,
.galleryModal .close:hover {
    color: var(--active-color);
}

/*-------------*/

div.joinUs {
    width: 100%;
    height: 820px;
    /* background: url('../src/joinUs.jpg') no-repeat center center; */
    background-color: var(--font-primary-color);
    position: relative;
}

div.joinUs div.joinUsImg {
    display: inline-block;
    width: 1920px;
    height: 820px;
    background: url('../src/joinUs.jpg') no-repeat center center;
    position: absolute;
    left: calc(50% - 960px);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.8) 2%, black 6%, black 94%, rgba(0, 0, 0, 0.8) 98%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.8) 2%, black 6%, black 94%, rgba(0, 0, 0, 0.8) 98%, transparent 100%);
}

div.joinUs div.joinUsContainer {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    width: 1260px;
    height: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

span.joinUsWorker {
    display: inline-block;
    width: 615px;
    height: 780px;
    background: url('../src/joinUsWorker.png') no-repeat center center;
    align-self: end;
}

div.joinUsText {
    width: 630px;
}

div.joinUsText h1 {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    color: var(--font-secondary-color);
    line-height: 1.3;
    margin: -20px 0 30px 0;
}

div.joinUs h4 {
    font-size: var(--font-size-regular);
    font-weight: var(--font-weight-bold);
    color: var(--font-secondary-color);
    margin-bottom: 20px;
}

div.joinUs p:first-of-type {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    color: var(--font-secondary-color);
    margin-bottom: 10px;
}

div.joinUs p:nth-of-type(2) {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-semiBold);
    color: var(--font-secondary-color);
    margin-bottom: 10px;
}

div.joinUs ul {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-thin);
    color: var(--font-secondary-color);
    margin: 0 0 20px 20px;
}

div.joinUs button {
    padding: 12px 30px;
    border-radius: 8px;
    background-color: transparent;
    line-height: 12px;
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-bold);
    color: var(--red);
    border: 1px solid var(--red);
    margin-top: 30px;
    cursor: pointer;
}

div.joinUs button:hover {
    background-color: var(--active-color);
    color: var(--font-secondary-color);
}

/*-------------*/

div.split {
    width: 100%;
    height: 900px;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 50%, var(--tertiary-color) 50%, var(--tertiary-color) 100%);
}

div.split div.dualSpace {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 1260px;
    height: 100%;
    margin: 0 auto;
}

div.split div.dualSpace div.contact,
div.split div.dualSpace div.contactForm {
    width: 630px;
    height: 100%;
    padding: 100px 0;
}

div.split div.dualSpace div.contact h1 {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    color: var(--font-primary-color);
    margin-bottom: 30px;
}

div.split div.dualSpace div.contact div.contactMenu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    width: 560px;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

div.split div.dualSpace div.contact div.contactMenu button {
    border: none;
    background: transparent;
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-semiBold);
    color: var(--font-primary-color);
    padding-top: 10px;
    position: relative;
    cursor: pointer;
}

div.split div.dualSpace div.contact div.contactMenu div.active-line {
    position: absolute;
    height: 2px;
    background-color: var(--active-color);
    bottom: 0;
    left: 0;
    width: 0;
    transition: all 0.3s ease;
}

div.split div.dualSpace div.contact div.contactMenuResponse {
    height: 420px;
    width: 580px;
    position: relative;
}

div.split div.dualSpace div.contact div.contactMenuResponse div.dynamicContact {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
}

div.split div.dualSpace div.contact div.contactMenuResponse div.dynamicContact.ceo {
    gap: 0;
}

div.split div.dualSpace div.contact div.contactMenuResponse div.dynamicContact h4 {
    font-size: var(--font-size-regular);
    font-weight: var(--font-weight-semiBold);
    color: #000;
    margin-top: 40px;
}

div.split div.dualSpace div.contact div.contactMenuResponse div.dynamicContact.ceo h4:first-of-type {
    margin-bottom: 30px;
}

div.split div.dualSpace div.contact div.contactMenuResponse div.dynamicContact.ceo h4:nth-of-type(2) {
    margin: 0 0 30px 0;
}

div.split div.dualSpace div.contact div.contactMenuResponse div.dynamicContact.ceo.invo h4:nth-of-type(2) {
    margin: 30px 0 30px 0;
}

div.split div.dualSpace div.contact div.contactMenuResponse div.dynamicContact div.pplContactContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    width: 100%;
}

div.split div.dualSpace div.contact div.contactMenuResponse div.dynamicContact.ceo.invo div.pplContactContainer:nth-of-type(2) {
    margin-bottom: 10px;
}

div.split div.dualSpace div.contact div.contactMenuResponse div.dynamicContact div.pplContactContainer div.person {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 280px;
    height: 140px;
}

div.split div.dualSpace div.contact div.contactMenuResponse div.dynamicContact.ceo div.pplContactContainer div.person {
    height: 100px;
}

div.split div.dualSpace div.contact div.contactMenuResponse div.dynamicContact.ceo.invo div.pplContactContainer div.person span.personAvatar {
    margin-right: 5px!important;
}

div.split div.dualSpace div.contact div.contactMenuResponse div.dynamicContact div.pplContactContainer div.person div.personData {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 230px;
}

div.split div.dualSpace div.contact div.contactMenuResponse div.dynamicContact div.pplContactContainer div.person span.personName {
    font-size: var(--font-size-regular);
    font-weight: var(--font-weight-semiBold);
    color: var(--font-primary-color);
    line-height: 1.4;
}

div.split div.dualSpace div.contact div.contactMenuResponse div.dynamicContact div.pplContactContainer div.person span.personPosition {
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-thin);
    color: #A4AEBF;
    line-height: 1.4;
    margin-bottom: 5px;
}

div.split div.dualSpace div.contact div.contactMenuResponse div.dynamicContact div.pplContactContainer div.person span.personEmail,
div.split div.dualSpace div.contact div.contactMenuResponse div.dynamicContact div.pplContactContainer div.person span.personPhone {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    color: var(--font-primary-color);
    line-height: 1.4;
}

div.split div.dualSpace div.contact div.mainContactData {
    width: 580px;
    height: 120px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #A4AEBF;
}

div.split div.dualSpace div.contact div.mainContactData div.mainContactInfo {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    width: 255px;
    height: 80px;
    padding: 0 30px;
}

div.split div.dualSpace div.contact div.mainContactData div.mainContactInfo div.mainInfo p:first-of-type {
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-bold);
    color: var(--font-primary-color);
    line-height: 1.4;
}

div.split div.dualSpace div.contact div.mainContactData div.mainContactInfo div.mainInfo p:nth-of-type(2) {
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-thin);
    color: var(--red);
    line-height: 1.4;
}

div.split div.dualSpace div.contact div.mainContactData div.mainContactInfo a span.mainPhoneIcon {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: url('../src/mainContactPhoneIcon.png') no-repeat center center;
}

div.split div.dualSpace div.contact div.mainContactData div.mainContactInfo a span.mainEmailIcon {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: url('../src/mainContactLetterIcon.png') no-repeat center center;
}

div.split div.dualSpace div.contactForm {
    width: 545px;
}

div.split div.dualSpace div.contactForm p {
    font-size: var(--font-size-regular);
    font-weight: var(--font-weight-semiBold);
    color: #A4AEBF;
    line-height: 1.4;
    margin: 20px auto;
}

div.split div.dualSpace div.contactForm form#contactForm {
    width: 100%;
}

.contactFormInputs {
    width: 100%;
    padding: 10px 15px;
    margin: 10px 0;
    border: 1px solid #A4AEBF;
}

.contactFormInputs::placeholder {
    font-family: var(--font-base);
    font-size: var(--font-size-mini);
    color: #A4AEBF;
}

div.split div.dualSpace div.contactForm form#contactForm textarea {
    resize: none;
}

div.split div.dualSpace div.contactForm form#contactForm div#selectContactForm {
    position: relative;
    width: 100%;
    height: 37px;
    border: 1px solid #A4AEBF;
    padding: 10px 15px;
    user-select: none;
    overflow: visible;
}

div.split div.dualSpace div.contactForm form#contactForm div#selectContactForm div.select span.currentSelected {
    font-family: var(--font-base);
    font-size: var(--font-size-mini);
    color: #A4AEBF;
    display: block;
    position: relative;
    top: -3px;
}

div.split div.dualSpace div.contactForm form#contactForm div#selectContactForm div.select {
    cursor: pointer;
    position: relative;
}

div.split div.dualSpace div.contactForm form#contactForm div#selectContactForm div.select:after {
    content: "▾";
    position: absolute;
    right: -5px;
    top: 34%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform .3s ease;
    color: #A4AEBF;
    font-size: 28px;
}

div.split div.dualSpace div.contactForm form#contactForm div#selectContactForm div.select.open:after {
    transform: translateY(-50%) rotate(180deg);
    transition: transform .3s ease;
}

div.split div.dualSpace div.contactForm form#contactForm div#selectContactForm div.options {
    position: absolute;
    top: 100%;
    left: -1px;
    right: 0;
    background: white;
    border: 1px solid #A4AEBF;
    border-top: none;
    z-index: 10;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    width: 545px;
}


div.split div.dualSpace div.contactForm form#contactForm div#selectContactForm div.options span.option {
    font-family: var(--font-base);
    font-size: var(--font-size-mini);
    color: #A4AEBF;
    display: block;
    padding: 5px 15px;
    cursor: pointer;
}

div.split div.dualSpace div.contactForm form#contactForm div#selectContactForm div.options span.option:hover {
    background-color: var(--primary-color);
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper {
    position: relative;
    display: inline-block;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper label#fileLabel {
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-thin);
    color: #A4AEBF;
    cursor: pointer;
    margin: 0 40px 0 20px;
    text-wrap: nowrap;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
    padding-right: 20px;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper label#fileLabel.valid {
    color: green;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper label#fileLabel.invalid {
    color: red;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper label#fileLabel span.fileIcon {
    display: inline-block;
    width: 10px;
    height: 14px;
    background: url('../src/fileIcon.png') no-repeat center center;
    margin: 0 10px;
    position: relative;
    top: 3px;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper label#fileLabel span.fileText {
    font-weight: var(--font-weight-bold);
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper label#fileLabel span.fileStatusIcon {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    display: none;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper label#fileLabel span.fileStatusIcon.valid::before {
    content: "✓";
    color: green;
    border: 2px solid green;
    border-radius: 50%;
    padding: 2px 7px;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper label#fileLabel span.fileStatusIcon.invalid::before {
    content: "✗";
    color: red;
    border: 2px solid red;
    border-radius: 50%;
    padding: 2px 6px;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper label#fileLabel span.fileStatusIcon span.tooltip {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: #FFF;
    /* color: green; */
    text-align: center;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: var(--font-weight-semiBold);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: normal;
    width: 250px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper label#fileLabel span.fileStatusIcon.valid span.tooltip {
    color: green;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper label#fileLabel span.fileStatusIcon.invalid span.tooltip {
    color: red;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper label#fileLabel span.fileStatusIcon span.tooltip::after {
    content: "";
    position: absolute;
    top: 98%; 
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #FFF transparent transparent transparent;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper label#fileLabel span.fileStatusIcon.invalid span.tooltip::after {
    top: 99%;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper label#fileLabel span.fileStatusIcon:hover .tooltip {
    visibility: visible!important;
    opacity: 1!important;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper button#removeFileBtn {
    display: none;
    position: absolute;
    right: -38px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    color: #d00;
    cursor: pointer;
    font-weight: bold;
    width: 36px;
    height: 20px;
    padding: 0;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons div.fileUploadWrapper input.upload-hidden {
    display: none;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 70px;
    width: 100%;
    height: 50px;
    margin-top: 10px;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons button {
    font-size: var(--font-size-micro);
    font-weight: var(--font-weight-bold);
    align-self: center;
    width: 300px;
    height: 40px;
    padding: 12px 30px;
    border-radius: 8px;
    background-color: var(--red);
    line-height: 12px;
    font-weight: var(--font-weight-bold);
    color: var(--font-secondary-color);
    border: none;
    cursor: pointer;
}

div.split div.dualSpace div.contactForm form#contactForm div.formButtons button:hover {
    background-color: var(--active-color);
}

.input-error {
    border-color: red !important;
}

div#question {
    position: relative;
}

.formOverlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    /* display: flex !important; */
    justify-content: center;
    align-items: center;
    z-index: 999;
    display: none;
    flex-direction: column;
}

.envelopeAnimation {
    width: 100px;
    height: 60px;
    background: #f2f2f2;
    position: relative;
    top: calc(50% - 30px);
    animation: bounce 1s infinite;
    border: 2px solid #999;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    margin: auto;
    perspective: 800px;
}

.envelopeAnimation .envelopeFlap {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    bottom: 100%;
    left: 0;
    border-width: 0 50px 30px 50px;
    border-color: transparent transparent #f2f2f2 transparent;
    z-index: 2;
}

.envelopeAnimation .envelopeBody {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    top: 0;
    left: 0;
    border-width: 30px 50px 0 50px;
    border-color: #e0e0e0 transparent transparent transparent;
    z-index: 1;
}


@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.successBox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFF;
    padding: 20px;
    border: 1px solid #00aa00;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    text-align: center;
}

.successBox .successMessageText {
    font-size: var(--font-size-small)!important;
    margin-bottom: 1em!important;
    color: #00aa00!important;
    font-weight: var(--font-weight-bold)!important;
}

.successBox .successBoxClose {
    padding: 8px 16px;
    border: none;
    background: #00aa00;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.successBox .successBoxClose:hover {
    background: #007700;
}

.errorBox {
    position: absolute;
    max-width: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFF;
    padding: 20px;
    border: 1px solid var(--red);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.errorBox .errorMessageText {
    font-size: var(--font-size-small)!important;
    margin-bottom: 1em!important;
    color: var(--red)!important;
    font-weight: var(--font-weight-bold)!important;
}

.errorBox .errorBoxClose {
    padding: 8px 16px;
    border: none;
    /* background: #cc0000; */
    background: var(--red);
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.errorBox .errorBoxClose:hover {
    background: var(--active-color);
}

.envelopeAnimation.closing {
    animation: envelopeClose 0.6s ease forwards;
    background-color: #4CAF50; 
    /* border-color: #4CAF50; */
}

.envelopeAnimation.closing .envelopeFlap {
    border-color: transparent transparent #4CAF50 transparent; /* zielony trójkąt */
    animation: envelopeFlapClose 0.6s ease forwards;
    transform-origin: bottom center;
    z-index: 2;
}

@keyframes envelopeFlapClose {
    0% {
        transform: translateY(0) rotateX(0deg); /* otwarta: klapka „na wprost” */
    }
    100% {
        transform: translateY(29px) rotateX(180deg); /* zamknięta: klapka opadła na dół */
    }
}


@keyframes envelopeClose {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(0.5) translateY(100px);
        opacity: 0;
    }
}


/*-------------*/
/* END OF MAIN */
/*-------------*/
/*-----------------*/
/* START OF FOOTER */
/*-----------------*/

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 670px;
    background-color: #000;
    color: var(--font-secondary-color);
    padding: 20px 0;
}

footer div.footerContent {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 1260px;
    height: 670px;
    padding-top: 100px;
}

footer div.footerContent div.footerCompany {
    width: 600px;
}

footer div.footerContent div.footerCompany span.footerLogo {
    display: inline-block;
    width: 257px;
    height: 60px;
    background: url('../src/intrasped-logo.png') no-repeat left center;
}

footer div.footerContent div.footerCompany div.footerCompanyInfo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

footer div.footerContent div.footerCompany div.footerCompanyInfo div p {
    font-size: var(--font-size-mini);
    font-weight: var(--font-weight-normal);
    color: var(--font-footerInfo-color);
    line-height: 1.5;
    margin-top: 20px;
}

footer div.footerContent div.footerCompany div.footerCompanyInfo div p:first-of-type {
    margin-top: 65px;
}

footer div.footerContent div.footerMenu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    margin-top: 130px;
}

footer div.footerContent div.footerMenu span {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    color: var(--font-secondary-color);
    cursor: pointer;
}

footer div.footerContent div.footerMenu span:hover {
    color: var(--active-color);
}

footer div.footerContent div.footerMenu a {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

footer div.footerContent div.footerMenu a span.downloadIcon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('../src/downloadIcon.png') no-repeat center center;
    background-size: cover;
}

footer div.footerContent div.footerMenu a p {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    color: var(--font-secondary-color);
}

footer div.footerContent div.footerMenu a p:hover {
    color: var(--active-color);
}

div#download {
    margin-top: 85px;
}

div#scrollToTop {
    opacity: 0;
}