:root {
  --black-light: #333333;
  --black-light-opacity: #3333334e;
  --green: #599f4f;
  --green-dark: #3f9146;
  --green-light: #84c44a;
  --green-light-opacity: #85c44a77;
  --white: #ffffff;

  --nav-height: 90px;

  --radius: 30px;
  --radius-small: 15px;

  --margin-bott: 50px;
}

::selection {
  background-color: var(--green); /* zielony */
  color: var(--white); /* kolor tekstu zaznaczonego */
}

.smb {
  margin-bottom: 20px !important;
}

.mb {
  margin-bottom: 150px !important;
}

.bmb {
  margin-bottom: 250px !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rubik", sans-serif;
  color: var(--black-light);
  letter-spacing: 0.5px;
}

a {
  text-decoration: none;
  color: inherit;
}

body{
  margin:0;
  padding:0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

#tech {
  scroll-margin-top: 100px;
}



nav {
  width: 100%;
  height: var(--nav-height);
  position: fixed;
  top: 0;
  background-color: var(--white);
  display: flex;
  z-index: 1000;
}

.logo {
  width: 30%;
  padding-left: 30px;
  padding-top: 10px;
}

.logo img {
  height: 70px;
  width: auto;
}




.menu {
  width: 70%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 30px;
  gap: 20px;
}


.links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.links ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;

  font-weight: bold;
}

.links ul li a{
  padding: 10px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  transition: all 0.3s ease-in-out;
  letter-spacing: 0;
}

.links ul li a:hover {
  background-color: var(--green-light);
  color: white;
  letter-spacing: 1.5px;
}

#navPricing {
  border: 1px solid var(--black-light) !important;
  color: var(--black-light) !important;
}

#navPricing:hover {
  background-color: var(--black-light) !important;
  color: var(--white) !important;
}

.links .social img {
  height: 35px;
  width: 35px;
  display: block;
  border-radius: 15px;
  transition: all 0.2s ease-in-out;
}

.links .social img:hover {
  background-color: var(--green-light);
  width: 39px;
}











main {
    width: 100%;
    height: auto;

    margin-top: var(--nav-height);

    display: flex;
    flex-direction: column;
    align-items: center;
}



/* START */

.home-start, .page-start {
    width: 100%;
    height: auto;
    position: relative;
}

.home-start-bg, .page-start-bg{
  width: 100%;
  background-color: var(--green-light-opacity);
  border-radius: var(--radius);
}

.home-start-bg img, .page-start-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.home-start-bg {
  height: 55vh;
}

.page-start-bg {
  height: 35vh;
}

.home-start-bott-text {
  width: 60%;
  height: 30vh;
  font-size: 36px;
  margin: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-start-bott-text span{
  display: block;
}

.home-start-text, .page-start-text{
  position: absolute;
  background-color: var(--white);
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  border-radius: var(--radius);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.home-start-text {
  padding: 45px;
  top: 33vh;
  right: 5vw;
  height: 240px;
  width: 440px;
  overflow: hidden;
}

.page-start-text {
  padding: 40px;
  top: 20vh;
  left: 5vw;
  height: 220px;
  width: 420px;
}

.home-start-text h1, .page-start-text h1{
  font-size: 24px;
  margin-bottom: 14px;
}

.home-start-text p{
  font-size: 18px;
  font-weight: 100;
  letter-spacing: 1.2px;
}

.home-start-text img {
  position: absolute;
  bottom:20px;
  right: 20px;
  height: 65px;
  width: 65px;
  object-fit: contain;
}

/* .home-start-text img { UNUSED SVG
  position: absolute;
  bottom: -24px;
  right: -26px;
  height: 160px;
  width: 160px;
  object-fit: contain;
  opacity: 35%;
} */

#spanBold {
  font-weight: bold;
}

 
/* ELEMENTS [sections] */
/* [section] text and photo */
.text-and-photo {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-evenly;
}

.text-and-photo .text-part, .text-and-photo .photo-part{
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.text-and-photo .pieces-part {
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  min-height: 30vh;
}

.pieces-part .piece {
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: var(--green-light);
  color: white;
  margin: 5px;
  border-radius: 10px;

  transition: all 0.2s ease-in-out;
}

.pieces-part .piece:hover {
  transform: scale(1.05);
  background-color: var(--green-dark);
  cursor: pointer;
}

.text-and-photo .text-part {
  padding: 50px;
}

.text-and-photo .photo-part img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 2px 25px rgba(0,0,0,0.2);
}


/* [section] small photo */
.small-photo {
  width: 80%;
  height: auto;
  display: flex;
  border-radius: var(--radius);

  box-shadow: 0 2px 25px rgba(0,0,0,0.2);
  background-color: var(--green);
}

.small-photo .s-text-part {
  width: 60%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px;
}

.small-photo .s-text-part h1, .s-text-part h2, .s-text-part h3, .s-text-part p {
  color: var(--white) !important;
}

.small-photo .s-text-part button:hover{
  color: var(--white);
  background-color: var(--black-light);
}

.small-photo .s-photo-part {
  width: 40%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.small-photo .s-photo-part img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}


/* contact form */
.contact-form {
  width: 100%;
  height: 450px;
  display: flex;
  justify-content: space-evenly;

}

.form-text {
  width: 35%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

}

.form-photo {
  width: 50%;
  background-color: var(--green-light);
  border-radius: var(--radius);
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.form-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.form-photo-container {
  width: 95%;
  height: auto;
  position: absolute;
  top: 40px;
  right: 100px;
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 100px;
}

.form-photo-container form{
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  gap: 28px;
  /* background-color: rgba(0, 0, 0, 0.1); */
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid black;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    } 

#message {
  text-align: center;
}

/* INPUTS */
/* From Uiverse.io by Satwinder04 */ 

.input-container {
  width: 100%;
  position: relative;
  /* margin-bottom: 28px; */
}

.input-field {
  display: block;
  width: 100%; /*to nie dziala*/
  padding: 10px;
  font-size: 16px;
  border: none;
  border-bottom: 2px solid var(--green-light-opacity);
  outline: none;
  background-color: var(--white);
  border-top-left-radius: var(--radius-small);
  border-top-right-radius: var(--radius-small);
}

.input-label {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 16px;
  color: rgba(204, 204, 204, 0);
  pointer-events: none;
  transition: all 0.3s ease;
}

.input-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--green);
  transition: all 0.3s ease;
}

.input-field:focus + .input-label {
  top: -18px;
  left: 10px;
  font-size: 12px;
  color: var(--green-dark);
}

.input-field:focus + .input-label + .input-highlight {
  width: 100%;
}

.checkbox-wrapper {
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 12px;
  color: green;
}

.checkbox-wrapper input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--green); /* dla ładnego koloru checkboxa */
}

#message {
  height: 30px;
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* end of contact form*/


/* contact info */
.icon-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 15px 0;
}

.icon-row img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.icon-row p {
  font-size: 22px;
}

.icon-row h1 {
  font-size: 28px;
  font-weight: bold;
}


/* [section] blocks */

.blocks-container {
  width: 80%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.blocks-title {
  margin-bottom: 50px;
}

.blocks {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  gap: 80px;
}

.block {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  width: 250px;
  line-height: 25px;
  transition: 0.4s all ease-in-out;
}

.block:hover {
  transform: scale(1.1);
}

.block img {
  width: 250px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-small);
}





/* ELEMENTS [text] */

.main-h1 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 10px;
}

.main-h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.h-bm {
  margin-bottom: 30px !important;
}

.main-h3 {
  margin-bottom: 10px;
}

.main-p {
  margin-top: 20px;
  margin-bottom: 30px;
  font-weight: 100;
  letter-spacing: 1.2px;
}

.main-button {
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--green);
  font-size: 14px;
  font-weight: 500;
  transition: all ease-in-out 0.3s;
  background-color: var(--white);
}

.main-button:hover {
  cursor: pointer;
  letter-spacing: 2px;
  background-color: var(--green-light-opacity);
}








footer {
  width: 100%;
  height: 20vh;
  background-color: var(--black-light);
  color: var(--white);

  display: flex;
  justify-content: space-evenly;
  align-items: center;

  padding: 10px;
}

.footer-left {
  width: 25%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

}
.footer-left p{
  color: white;
  font-weight: lighter;
}
.footer-left img {
  width: 30%;
  height: auto;
  overflow: hidden;
}


.footer-right {
  width: 60%;
  color: white;
}

.footer-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
}

.footer-right ul li {
  color: white;
  position: relative;
  padding-left: 10px;
  padding-right: 10px;
}

.scale {
  transition: all 0.2s ease-in-out;
}

.scale:hover {
  padding-left: 12px;
  padding-right: 12px;
  transform: scale(1.1);
}



@media screen and (max-width: 1075px) {
  .logo {
  width: 20%;
  }

  .menu {
  width: 80%;
  gap: 10px;
  font-size: 10px;
  }

  .links {
    gap: 10px;
  }
}


/* MEDIUM */
@media screen and (max-width: 768px) {
  .links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    width: 100%;
    right: 0;
    height: auto;

    flex-direction: column;
    z-index: 1001;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    background-color: var(--green);

    align-items: baseline;
    border-radius: var(--radius);
    padding: 40px;
  }

  .links ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .links ul li {
    margin-bottom: 20px;
  }

  .links.active {
    display: flex; 
  }

  .links ul li a {
    color: var(--white);
    border: 1px solid var(--white);
    font-size: large;
  }

  .links .social img {
    background-color: var(--white);
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin-top: 5px;
  }

  .hamburger span {
    height: 3px;
    width: 25px;
    background: var(--black-light);
    margin-bottom: 5px;
    display: block;
  }

  .home-start-text {
    top: 20vh;
  }

  .home-start-text p {
    font-size: 15px;
  }

  .page-start-text {
    top: 5vh;
  }

  .home-start-bott-text {
    width: 100%;
    height: 20vh;
    font-size: 28px;
  }

  .text-and-photo .text-part, .text-and-photo .photo-part, .text-and-photo .pieces-part{
    width: 100%;
  }

  .text-and-photo .pieces-part{
    align-items: center;
  }

  .text-and-photo .photo-part {
    padding: 10px;
  }

  .text-and-photo {
    flex-direction: column;
  }


  .small-photo {
    width: 95%;
    flex-direction: column;
  }

  .small-photo .s-photo-part, .small-photo .s-text-part {
    width: 100%;
  }

    footer {
    flex-direction: column;
    height: auto;
    padding: 20px 10px;
    gap: 20px;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .footer-left img {
    width: 50%;
  }

  .footer-right ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .footer-right ul li {
    padding: 5px 10px;
  }

  .footer-right ul li a {
    font-size: 0.95rem;
  }

}

/* SMALL */
@media screen and (max-width: 480px) {

  .home-start-text, .page-start-text{
    width: 90vw;
    left: 50%;
    transform: translateX(-50%);
    right: auto; 
  }
  .home-start-text p {
    font-size: 13px;
    padding-right: 25px;
  }

  .home-start-text {
    top: 20vh;
  }

  .page-start-text {
    top: 20vh;
  }

   .footer-left img {
    width: 70%;
  }

  .footer-left p {
    font-size: 0.9rem;
  }

  .footer-right ul {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .footer-right ul li {
    border: none !important;
    padding: 5px 0;
  }

  .footer-right ul li::after {
    content: none !important;
  }

  .footer-right ul li a {
    font-size: 1rem;
  }
  
}


/* BIGGER */
@media screen and (min-width: 1280px){
  .home-start, .page-start, .text-and-photo{
    width: 1280px;
  }

  .small-photo {
    width: calc(1280px * 0.8);
  }
}










/* responsive form */

@media screen and (max-width: 768px) {
  .contact-form {
    flex-direction: column;
    height: auto;
    padding: 20px;
    gap: 40px;
  }

  .form-text, .form-photo {
    width: 100%;
    padding: 20px;
  }

  .form-photo-container {
    position: static;
    width: 100%;
    padding: 20px;
    backdrop-filter: none;
    background-color: var(--white);
    box-shadow: none;
    border-radius: var(--radius-small);
  }

  .form-photo img {
    display: none; /* ukryj tło na telefonie, bo może zaburzać widoczność */
  }

}

@media screen and (max-width: 480px) {
  .form-photo-container form {
    padding: 0;
    gap: 20px;
  }

  .input-field {
    font-size: 14px;
    padding: 8px;
  }

  .main-button {
    width: 100%;
  }

  .checkbox-wrapper {
    font-size: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .checkbox-wrapper input[type="checkbox"] {
    margin-bottom: 8px;
  }

    .rotate-li {
    transform: rotate(90deg);
    display: inline-block;
  }
}