/******************** KEY FUNCTIONS ********************/

@media (max-width: 575.98px) {

    html h1{
        font-size: 2.1875rem;
    }

    html h2{
        font-size: 1.625rem;
    }

    html h4,
    html h3{
        font-family: Archivo;
        font-size: 1.375rem;
        font-style: normal;
        font-weight: 300;
        line-height: 100%;
        letter-spacing: 0.00344rem;
        text-transform: uppercase;
    }

    html h5{
        font-family: Archivo;
        font-size: 1.25rem;
        font-style: normal;
        font-weight: 300;
        line-height: 100%;
        text-transform: uppercase;
    }

    html p{
        font-family: Inter;
        font-size: 1.125rem;
        font-style: normal;
        font-weight: 300;
        line-height: 150%;
    }

    html .line{
        margin-top: 2.0rem;
        margin-bottom: 2.0rem;
    }
    
    .line-left::before {
        content: "";
        width: 1px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    
    .line-left::before {
        content: "";
        width: 1px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
}

@media (min-width: 992px) and (max-width: 1199.98px) {
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
}

@media (min-width: 1400px) {
}

/******************** NAVBAR MOBILE ********************/

@media (min-width: 768px) and (max-width: 1199.98px) {
    .navbar-expand-md .navbar-collapse {
        margin-right: 1.5rem;
    }
}

/******************** PAGE TITLE ********************/

@media (max-width: 991.98px) {
  .page-title-section{
    padding: 40px 0;
  }
  .page-title{
    font-size: 30px;
  }
  .page-title-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .page-title-right {
    text-align: center;
  }
  .page-title {
    font-size: 32px;
  }

  .page-subtitle {
    text-align: center;
  }

  .page-title-section.no-excerpt {
    padding: 20px 0;
  }
}

@media (min-width: 992px) {
    .page-title-grid {
    margin: 0px 2rem 0px 2rem;
    }
}

/******************** SEKCJA HERO ********************/

@media (max-width: 575.98px) {
    .hero-set {
        width: 50%;
    }

    .hero-title-wrapper {
        justify-items: center;
    }

    .hero-title {
        font-size: 3rem;
        font-style: normal;
        font-weight: 250;
        line-height: 100%;
        letter-spacing: 0.06rem;
    }
    .hero-subtitle{ font-size: 1rem;}
    .hero-button { width: 100%; padding: 0.5rem 1.25rem; font-size: 0.9rem; text-align: -webkit-center; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section { 
        min-height: 100vh;
        padding-top: 60px;
    }
    .hero-title { font-size: 2.3rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-set { min-height: 40vh; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title { font-size: 4rem; }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
}

@media (min-width: 1400px) {
}

/******************** SEKCJA NORTH ********************/

@media (max-width: 575.98px) {

    .north-section{
        margin: 4rem 0rem 0rem 0rem;
        flex-direction: column-reverse;
        gap: 4rem;
    }

    .north-img {
        width: 100%;
        padding: 1rem;
    }

    .north-text{
        width: 100%;
        padding: 0.625rem 1rem;
    }

    .north-title {
        font-size: 2.1875rem;
    }

    .north-section-text-primary, .north-section-text{
        font-size: 1.125rem;
    }

    .direction-action-wrapper {
        flex-direction: column;
        margin-top: 5rem;
    }
}

@media (min-width: 575.98px) and (max-width: 991.98px) {

    .north-img {
        display:none;
    }

    .north-text {
        width: 100%;
    }

    .north-section{
        gap: 0rem;
    }

    .direction-action-wrapper{
        flex-direction: column;
        width: 80%;
        margin: 0 auto;
    }
}

/******************** SEKCJA CTA ********************/

@media (max-width: 767.98px) {

    .cta-wrapper {
        display: flex;
        align-content: center;
        flex-direction: column;
    }

    .cta-text{
        font-size: 1.25rem;
    }

    .text-content {
        width: 100%;
        margin-bottom: 2rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .cta-wrapper .text-content {
        width: 60%;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
}

@media (min-width: 1400px) {
}


/******************** SEKCJA HOW WORKS ********************/

@media (max-width: 575.98px) {

    .how-works-wrapper {
        flex-direction: column;
    }

    .how-works-diagram {
        flex-direction: column;
    }

    .how-works-description {
        width: none;
    }

    .how-works-right {
        width: 100%;
        flex-direction: column-reverse;
    }

    .how-work-section h3,
    .how-work-section h4 {
        font-size: 1.25rem;
    }

    .text-block h4 {
        padding-bottom: 2rem;
    }

    .how-works-right .text-block {
        margin-bottom: 2rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
}

@media (min-width: 768px) and (max-width: 991.98px) {
}

@media (min-width: 992px) and (max-width: 1199.98px) {
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
}

@media (min-width: 1400px) {
}

/******************** SEKCJA FAQ ********************/

@media (max-width: 575.98px) {

    .faq-wrapper {
        margin: 0rem 0rem 3rem 0rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
}

@media (min-width: 768px) and (max-width: 991.98px) {
}

@media (min-width: 992px) and (max-width: 1199.98px) {
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
}

@media (min-width: 1400px) {
}

/******************** SEKCJA CARE ********************/

@media (max-width: 767.98px) {

    .background-image{
        object-position: 80% center;
    }

    .gradient-overlay {
    background: linear-gradient(0deg, #274AC0 22%, rgba(39, 74, 192, 0.00) 101.22%);
    }

    .overlay-text {
    font-size: 1.625rem;
    }

    .care-section h3,
    .care-section h5{
        font-size: 1.25rem;
    }
    
    .care-section-bottom{
        flex-direction: column;
        padding: 0;
    }

    .care-section-points, .care-section-title{
        padding: 0;
        margin: 2rem 0rem 0rem 0rem;
    }

    .care-section-points{
        border-left: none;
        border-top: 1px solid #080F26;
        padding-top: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 1399.98px) {
    .care-section-points, .care-section-title{
        padding: 2rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
}

@media (min-width: 768px) and (max-width: 991.98px) {
}

@media (min-width: 992px) and (max-width: 1199.98px) {
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
}

@media (min-width: 1400px) {
}

/******************** SEKCJA DISCOVER ********************/

@media (max-width: 575.98px) {

    .offer-card.blue h3,
    .offer-card h3 {
        font-size: 1.25rem;
        font-style: normal;
        font-weight: 600;
        line-height: 100%;
        text-transform: uppercase;
    }

    .offer-card.blue p,
    .offer-card p {
        font-size: 1.125rem;
        font-style: normal;
        font-weight: 300;
        line-height: 150%;
    }

    .offer-card.blue h3,
    .offer-card h3 {
        font-size: 1rem;
        font-style: normal;
        font-weight: 500;
        line-height: 100%;
        letter-spacing: 0.04rem;
        text-transform: uppercase;
    }

}

@media (min-width: 576px) and (max-width: 767.98px) {
}

@media (min-width: 768px) and (max-width: 991.98px) {
}

@media (min-width: 992px) and (max-width: 1199.98px) {
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
}

@media (min-width: 1400px) {
}

/******************** TAGCLOUD ********************/

@media (max-width: 575.98px) {

    .tag-cloud {
        padding: 3rem 0rem 3rem 0rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
}

@media (min-width: 768px) and (max-width: 991.98px) {
}

@media (min-width: 992px) and (max-width: 1199.98px) {
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
}

@media (min-width: 1400px) {
}

/******************** STORY SECTION ********************/

@media (max-width: 575.98px) {

    .story-content-1 .story-top, .story-content-1 .story-bottom,
    .story-content-2 {
        flex-direction: column;
    }

    .story-top .story-add-header,
    .story-top p,
    .story-bottom img,
    .story-bottom p,
    .story-content-2 .story-add-header,
    .story-content-2 p {
        width: 100%;
    }

    .story-content-1 .story-top,
    .story-content-1 .story-bottom {
        margin-bottom: 0rem;
    }

    section.story-section {
    padding: 0rem 0rem 2rem 0rem;
    }

    .story-bottom img{
    padding: 2rem 0rem 2rem 0rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
}

@media (min-width: 768px) and (max-width: 991.98px) {
}

@media (min-width: 992px) and (max-width: 1199.98px) {
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
}

@media (min-width: 1400px) {
}

/******************** SUCCESS SECTION ********************/

@media (max-width: 991.98px) {
    #success {
        padding: 2rem;
    }
    .success-header{
        flex-direction: column;
        align-items: flex-start;
    }

    .success-case-first {
        flex-direction: column;
    }

    .project-intro{
        width: 100%;
        gap: 2rem;
    }

    .project-img {
        padding-top: 2rem;
    }

    .success-case {
        flex-direction: column;
    }

    .project-intro .case-button {
        width: 100%;
        text-align: -webkit-center;
    }

    .success-case-first .project-img,
    .success-case .project-img {
        width: 100%;
        text-align: -webkit-center;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {

        #success .black-section-button{
        text-align: -webkit-center;
        width: 50%;
        gap: 0rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
}

@media (min-width: 992px) and (max-width: 1199.98px) {
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
}

@media (min-width: 1400px) {
}

/******************** TESTIMONIALS SECTION ********************/

@media (max-width: 575.98px) {

}

@media (min-width: 576px) and (max-width: 767.98px) {
}

@media (min-width: 768px) and (max-width: 991.98px) {
}

@media (min-width: 992px) and (max-width: 1199.98px) {
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
}

@media (min-width: 1400px) {
}

/******************** PARTNERS SECTION ********************/

@media (max-width: 575.98px) {

    .partners-layout {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        justify-items: center;
    }

    .partner-item {
        width: 100%;
        text-align: center;
    }

    .partners-section {
        padding: 3rem 0rem 3rem 0rem;
    }
}   

@media (min-width: 576px) and (max-width: 767.98px) {
}

@media (min-width: 768px) and (max-width: 991.98px) {
}

@media (min-width: 992px) and (max-width: 1199.98px) {
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
}

@media (min-width: 1400px) {
}

/******************** TESTY ********************/


@media (max-width: 575.98px) {

    .swiper.offer-slider {
        overflow: clip;
    }
}

@media (max-width: 575.98px) {

    .swiper.team-slider {
        overflow: clip;
    }
}

/******************** FOOTER ********************/

@media (max-width: 575.98px) {

    .footer-top {
        padding: 2rem 0rem 2rem 0rem !important;
    }
}

/******************** PODSTRONA KONTAKT ********************/

@media (max-width: 575.98px) {

  #contact-section.contact-grid {
    margin: 40px 16px;
    row-gap: 32px;
  }

  .cg-heading h3 {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .cg-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .cg-form h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .cg-form .wpcf7-form-control {
    padding: 6px 0;
    margin-bottom: 16px;
  }

  .cg-form .wpcf7-submit {
    padding: 12px;
    font-size: 0.9rem;
  }

  #contact-section.contact-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    column-gap: 0;
    row-gap: 48px;
    margin: 60px 24px;
  }

  .cg-image, .cg-form{
    margin-top: unset;
  }
  .cg-form {
    margin-left: unset;
  }
  .cg-image img {
    padding: 0rem 2rem 0rem 2rem;
  }

  .cg-heading,
  .cg-info,
  .cg-image,
  .cg-form {
    align-self: start !important;
  }

  input.wpcf7-form-control.wpcf7-submit.has-spinner.cf-button-main {
    width: 100% !important;
  }

  #contact-points .contact-points-wrapper {
    grid-template-columns: 1fr;
    row-gap: 16px;
    column-gap: 0;
  }

  section#contact-points {
    padding: 0rem 2rem 2rem 2rem;;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
}

@media (min-width: 768px) and (max-width: 991.98px) {
}

@media (min-width: 992px) and (max-width: 1199.98px) {
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
}

@media (min-width: 1400px) {
}

/******************** CASE STUDIES ********************/

@media (min-width: 1200px) {
  .cs-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: none;
  }
}

@media (max-width: 991.98px) {
  .cs-grid {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .cs-grid {
    gap: 40px 20px;
  }
}

/******************** 404 ********************/

@media (max-width: 575.98px) and (max-width: 1399.98px) {

    .error-subtitle {
        font-size: 1.5rem;
    }
}   

/******************** TESTY ********************/

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 4rem;
    }
}