

html {
  scroll-behavior: smooth;
}



:root {

  --tlo-bialy: #FFFFFF;
  --tlo-jasny: #F2F5F8;

  --tekst-granat: #1A375D;
  --tekst-drugi: #4D5D73;

  --linia-wlos: #D7DEE7;

  --akcent-zielen: #8CC63F;
  --akcent-zielen-najechana: #7BB430;

}




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



html,
body {
  min-height: 100%;

}

body {

  font-family: "Familjen Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;

  font-size: 17px;
  
  line-height: 26px;
  color: var(--tekst-drugi);
  
  margin: 0;

  overflow-x: clip;

  position: relative;
}





.container {
  width: 100%;
  max-width: 1528px;
  margin: 0 auto;
  padding:0 20px;
}
@media (min-width: 576px) {
 .container {
    padding:0 36px;
  }
}
@media (min-width: 1440px) {
  .container {
    padding:0 96px;
  }
}



header {
  padding-top: 12px;
  padding-bottom: 12px;
}
@media (min-width: 768px) {
  header {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap:12px;
}


.top-brand {
  display: block;
}

.top-brand img {
  width: auto;
  height: 56px;
}
@media (min-width: 768px) {
  .top-brand img {
    height: 80px;
  }
}


.main-menu {
  display: none;
}
@media (min-width: 768px) {
  .main-menu {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:10px 40px;
  }
}

.main-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu li a {
  font-size: 17px;
  font-weight: 600;
  color: var(--tekst-granat);
  line-height: 26px;
  position: relative;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-decoration-style: solid;
  text-underline-offset: 5px;
  text-decoration-skip-ink: none;
  transition:
  text-decoration-color 0.2s ease,
  text-underline-offset 0.2s ease;
}

.main-menu li a:hover, .main-menu li a:focus, .main-menu li a:active {
  text-decoration-color: var(--akcent-zielen);
}



.btn-primary {
  font-size: 17px;
  font-weight: 600;
  color: var(--tekst-granat);
  line-height: 26px;
  text-decoration: none;
  text-align: center;
  background: var(--akcent-zielen);
  padding: 15px 28px;
  border: none;
  border-radius: 999em;
  display: inline-flex;
  justify-content: center;
  transition: .3s ease-in-out;
}
@media (max-width: 575.98px) {
  .btn-primary {
    width: 100%;
  }
}

.btn-primary:hover {
  color: var(--tekst-granat);
  text-decoration: none;
  background: var(--akcent-zielen-najechana);
}

.btn-primary:focus, .btn-primary:active {
  color: var(--tekst-granat);
  text-decoration: none;
  background: var(--akcent-zielen);
  outline: 2px solid var(--tekst-granat);
}




.btn-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--tekst-granat);
  line-height: 26px;
  position: relative;
  text-decoration: underline;
  text-decoration-color: var(--akcent-zielen);
  text-decoration-thickness: 2px;
  text-decoration-style: solid;
  text-underline-offset: 5px;
  text-decoration-skip-ink: none;
  transition:
  text-decoration-color 0.2s ease,
  text-underline-offset 0.2s ease;
}

.btn-text:hover, .btn-text:focus, .btn-text:active {
  text-decoration-color: var(--akcent-zielen);
  text-decoration-thickness: 3px;
}






h1 {
  font-weight: 600;
  font-style: normal;
  font-size: clamp(40px, calc(40px + 32 * (100vw - 576px) / 624), 72px);
  color: var(--tekst-granat);
  line-height:clamp(43px, 5.97vw, 75px);
  letter-spacing: -.02em;
  margin: 0 0 20px 0;
  padding: 0;
}


h2 {
  font-weight: 600;
  font-style: normal;
  font-size: clamp(30px, calc(30px + 14 * (100vw - 576px) / 624), 44px);
  color: var(--tekst-granat);
  line-height:clamp(35px, calc(35px + 14 * (100vw - 576px) / 624), 48px);
  letter-spacing: -.015em;
  margin: 0;
  padding: 0;
}


h3 {
  font-weight: 600;
  font-style: normal;
  font-size: 20px;
  color: var(--tekst-granat);
  line-height:26px;
  margin: 0 0 20px 0;
  padding: 0;
}
@media (min-width: 768px) {
  h3 {
    font-size: 22px;
    line-height:29px;
    letter-spacing: -.02em;
  }
}




section {
	scroll-margin-top: 60px;
}



p {
  margin: 0 0 28px 0;
  padding: 0;
}



.hero {
  width: 100%;
  min-height: 400px;
  background: url('assets/hero-mobile.jpg') no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  padding: 232px 0 53px 0;
}
@media (min-width: 576px) {
  .hero {
    padding: 120px 0 53px 0;
  }
}
@media (min-width: 768px) {
  .hero {
    min-height:520px;
    background: url('assets/hero.jpg') no-repeat;
    background-size: cover;
    padding: 100px 0 115px 0;
  }
}
@media (min-width: 1200px) {
  .hero {
    padding: 128px 0 135px 0;
  }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap:20px;
}
@media (min-width: 768px) {
  .hero-inner {
    max-width: 77%;
    gap:28px;
  }
}
@media (min-width: 992px) {
  .hero-inner {
    max-width: 62%;
  }
}

.hero-inner p {
  font-size: 18px;
  color: var(--tekst-granat);
  line-height: 27px;
}
@media (min-width: 768px) {
  .hero-inner p {
    font-size: 20px;
    line-height: 30px;
    max-width: 84%;
  }
}

.hero-inner > * {
  margin-bottom: 0;
}

.hero-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap:20px 32px;
}




.how-wrapper {
  background:var(--tlo-bialy);
  border-radius: 2px;
  box-shadow: 0px 16px 40px 0px rgba(14, 30, 51, 0.08);
  padding: 28px 24px 32px 24px;
  margin: -32px 0 0 0;
  position: relative;
}
@media (min-width: 768px) {
  .how-wrapper {
    padding: 38px 46px 46px 46px;
    margin: -45px 0 0 0;
  }
}
@media (min-width: 1200px) {
  .how-wrapper {
    padding: 48px 56px 56px 56px;
  }
}
/* 
.how-wrapper::after {
  content: '';
  width: calc(100% + 16px);
  height: 8px;
  background: var(--tekst-granat);
  border-radius: 4px;
  display: block;
  top:calc(100% + 5px);
  left:-8px;
  position: absolute;
}
@media (min-width: 768px) {
  .how-wrapper::after {
    width: calc(100% + 32px);
    height: 12px;
    border-radius: 6px;
    top:calc(100% + 6px);
    left:-16px;
  }
} */

.how-wrapper h2 {
  margin: 0 0 26px 0;
}
@media (min-width: 768px) {
  .how-wrapper h2 {
    margin: 0 0 40px 0;
  }
}

.how-boxes {
  display: flex;
  flex-direction: column;
  gap:24px;
}
@media (min-width: 768px) {
  .how-boxes {
    flex-direction: row;
    flex-wrap: wrap;
  
  }
}
@media (min-width: 1200px) {
  .how-boxes {
    gap:48px;
  }
}

.how-boxes-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap:10px;
}
@media (min-width: 768px) {
  .how-boxes-box {
    flex:0 0 calc(33.3333% - 16px)
  }
}
@media (min-width: 1200px) {
  .how-boxes-box {
    flex:0 0 calc(33.3333% - 32px)
  }
}

.counter {
  font-size: 14px;
  font-weight: 600;
  color: var(--tekst-granat);
  line-height: 20px;
}

@media (max-width: 767.98px) {
  .how-boxes-box p {
    font-size: 16px;
    line-height: 25px;
  }
}

.how-boxes-box > * {
  margin-bottom: 0;
}


.how-boxes-box {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 600ms ease-out,
        transform 600ms ease-out;
}

.how-boxes.is-visible .how-boxes-box {
    opacity: 1;
    transform: translateY(0);
}

.how-boxes.is-visible .how-boxes-box:nth-child(1) {
    transition-delay: 0ms;
}

.how-boxes.is-visible .how-boxes-box:nth-child(2) {
    transition-delay: 80ms;
}

.how-boxes.is-visible .how-boxes-box:nth-child(3) {
    transition-delay: 160ms;
}

/* Dostępność — bez animacji */
@media (prefers-reduced-motion: reduce) {
    .how-boxes-box {
        opacity: 1;
        transform: none;
        transition: none;
    }
}




.separator {
    width: calc(100% + 16px);
    height: 8px;
    background: var(--tekst-granat);
    border-radius: 999em;
    margin: 3px 0 0 -8px;

    transform: scaleX(0);
    transform-origin: center;
    transition: transform 600ms ease-out;
}

.separator.is-visible {
    transform: scaleX(1);
}

@media (min-width: 768px) {
    .separator {
        width: calc(100% + 32px);
        height: 12px;
        margin: 5px 0 0 -16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .separator {
        transition: none;
    }
}


.how .separator {
  margin-bottom:48px;
}
@media (min-width: 768px) {
  .how .separator {
    margin-bottom: 80px;
  }
}




.areas-heading {
  display: flex;
  flex-direction: column;
  gap:22px 60px;
  margin: 0 0 22px 0;
}

@media (min-width: 768px) {
  .areas-heading {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 40px 0;
  }
}

.areas-heading-1 {
  width: 100%;
  margin: 0;
}
@media (min-width: 768px) {
  .areas-heading-1 {
    flex:0 0 45%;
  }
}



.areas {
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .areas {
    margin-bottom: 80px;
  }
}

.areas-heading-2 {
  width: 100%;
}
@media (min-width: 768px) {
  .areas-heading-2 {
   flex: 0 0 calc(33.3333% - 0px);
  }
}
@media (min-width: 1200px) {
  .areas-heading-2 {
    flex: 0 0 calc(33.3333% - 16px);
  }
}

@media (min-width: 768px) {
  .areas-wrapper {
    display: flex;
  }
}


.areas-sery,
.areas-farsze,
.areas-komponenty {
    position: relative;
}

.areas-sery picture {
    aspect-ratio: 350 / 250;
}
@media (min-width: 768px) {
  .areas-sery picture {
      aspect-ratio: 624 / 560;
  }
}

.areas-farsze picture,
.areas-komponenty picture {
    aspect-ratio: 350 / 180;
}
@media (min-width: 768px) {
  .areas-farsze picture,
  .areas-komponenty picture {
      aspect-ratio: 312 / 560;
  }
}

.areas picture {
    display: block;
    overflow: hidden;
}

.areas picture img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: inherit;
    object-fit: cover;
}



.areas-sery h3,
.areas-farsze h3,
.areas-komponenty h3 {
  max-width: 78%;
  width: fit-content;
  letter-spacing: -.01em;
  background: var(--tlo-bialy);
  margin: 0;
  padding: 11px 18px 14px 16px;
  left:0;
  bottom: 0;
  position: absolute;
}
@media (min-width: 768px) {
  .areas-sery h3,
  .areas-farsze h3,
  .areas-komponenty h3 {
  max-width: 88%;
    padding: 14px 24px 16px 20px;
  }
}


footer {
  padding-top: 48px;
  padding-bottom: 48px;
  background: var(--tlo-jasny);
}
@media (min-width: 768px) {
  footer {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}


footer h2 {
  margin: 0 0 32px 0;
}
@media (min-width: 768px) {
  footer h2 {
    margin: 0 0 48px 0;
  }
}


.footer-wrapper {
  display: flex;
  flex-direction: column;
  gap:30px 60px;
}

@media (min-width: 768px) {
  .footer-wrapper {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-content-1 {
  width: 100%;
}
@media (min-width: 768px) {
  .footer-content-1 {
    flex:0 0 45%;
  }
}


.footer-content-1 p {
  font-size: 18px;
  color: var(--tekst-granat);
  line-height: 27px;
  margin: 0 0 20px 0;
}
@media (min-width: 768px) {
  .footer-content-1 p {
    font-size: 20px;
    line-height: 30px;
    margin: 0 0 24px 0;
  }
}

.footer-content-2 {
  width: 100%;
}
@media (min-width: 768px) {
  .footer-content-2 {
    flex:0 0 41%;
  }
}



.footer-content-2 p {
  font-size: 16px;
  line-height: 25px;
  margin: 0 0 16px 0;
}
@media (min-width: 768px) {
  .footer-content-2 p {
    font-size: 17px;
    line-height: 26px;
    margin: 0 0 24px 0;
  }
}



.footer-contact-wrapper {
  display: flex;
  flex-direction: column;
  gap:14px 60px;
  margin-top: 42px;
}

@media (min-width: 768px) {
  .footer-contact-wrapper {
    flex-direction: row;
    justify-content: space-between;
  margin-top: 48px;
  }
}

.footer-contact-1 {
  width: 100%;
}
@media (min-width: 768px) {
  .footer-contact-1 {
    flex:0 0 45%;
  }
}


.footer-contact-2 {
  width: 100%;
}
@media (min-width: 768px) {
  .footer-contact-2 {
    flex:0 0 41%;
  }
}

.footer-contact-wrapper label {
  font-size: 16px;
  color: var(--tekst-drugi);
  line-height: 25px;
  margin: 0 0 8px 0;
  display: block;
}

.footer-contact-wrapper a {
  font-weight: 600;
  font-style: normal;
  font-size: clamp(30px, calc(30px + 14 * (100vw - 576px) / 624), 44px);
  color: var(--tekst-granat);
  line-height:clamp(35px, calc(35px + 14 * (100vw - 576px) / 624), 48px);
  letter-spacing: -.015em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-decoration-style: solid;
  text-underline-offset: 5px;
  text-decoration-skip-ink: none;
  transition:
  text-decoration-color 0.2s ease,
  text-underline-offset 0.2s ease;
}

.footer-contact-wrapper a:hover, .footer-contact-wrapper a:focus, v:active {
  text-decoration-color: var(--akcent-zielen);
}






.copyrights {
  display: flex;
  flex-direction: column;
  gap:14px 60px;
  padding-top: 32px;
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .copyrights {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 44px;
    padding-bottom: 44px;
  }
}

.copyrights-1 {
  width: 100%;
}
@media (min-width: 768px) {
  .copyrights-1 {
    flex:0 0 45%;
  }
}

.copyrights-brand img {
  width: 84px;
  height: 48px;
}
@media (min-width: 768px) {
  .copyrights-brand img {
    width:98px;
    height: 56px;
  }
}

.copyrights-2 {
  width: 100%;
}
@media (min-width: 768px) {
  .copyrights-2 {
    text-align: right;
    flex:0 0 41%;
  }
}


.copyrights-2 p {
  font-size: 13px;
  line-height: 19px;
  margin: 0 0 4px 0;
}
@media (min-width: 768px) {
  .copyrights-2 p {
    font-size: 14px;
    line-height: 20px;
  }
}

.copyrights-2 p:last-child {
  margin: 0;
}




.quick-contact {
  width: 100%;
  padding: 12px 20px;
  border-top: 1px solid var(--linia-wlos);
  background: var(--tlo-bialy);
  bottom: 0;
  left:0;
  position: fixed;
  z-index: 20;
  opacity: 0;
  transform: translateY(calc(100% + 20px));
  pointer-events: none;
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.quick-contact.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
footer {
  position: relative;
  z-index: 21;
}
@media (prefers-reduced-motion: reduce) {
  .quick-contact {
    transition: none;
  }
}
@media (min-width: 576px) {
  .quick-contact {
    display: none;
  }
}


