:root {
    --zielony: #296D3B;
    --jasny-zielony: #5FBC77;
    --green-badge: #318847;
    --bialy: #ffffff;
    --czarny: #000000;
    --czcionka: #656565;
    --naglowek: #0A0F1F;
    --buttony: #0A0F1F;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  min-height: 100vh;
}

body {
  background-color: var(--bialy);
  color: var(--czcionka);
  font-family: 'Lato', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}


h1 {
    color: var(--naglowek);
    font-size: 48px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    text-align: center;
}

button {
    background-color: var(--buttony);
    border: none;
    color: var(--bialy);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    padding: 15px 30px;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--jasny-zielony);
}

.top-bar {
    background-color: var(--zielony);
    color: var(--bialy);
    padding: 10px;
    text-align: center;
    width: 100%;
    height: 40px;

}

.nav-bar {
    background-color: var(--bialy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo img {
    max-width: 150px;
    height: auto;
}

.header-buttons {
    display: flex;
    gap: 20px;
    align-items: center;

}

.registerBtn i,
.loginBtn i {
    margin-left: 5px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
    gap: 6px;
    cursor: pointer;
    width: 176px;
  }
  
  .line {
    height: 3px;
    background-color: var(--czcionka);
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  
 
  .line.top {
    width: 16px;
  }
  
  .line.middle {
    width: 28px;
  }
  
  .line.bottom {
    width: 22px;
  }

  .hamburger:hover .line.top {
    width: 28px;
  }
  
  .hamburger:hover .line.middle {
    width: 16px;
  }
  
  .hamburger:hover .line.bottom {
    width: 24px;
  }
  


  

  /* BANNER */

  .banner {
    width: 100%;
    height: auto;
    margin-bottom: 50px;
  }

  .banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  /* DOSTAWY PALIWA */

  #dostawy-paliwa {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
  }

  .dostawy-naglowek {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    text-align: center;
    max-width: 600px;
  }

  .dostawy-naglowek h1 {
    margin-bottom: 10px;
    font-weight: 600;
  }

  .badge {
    color: var(--green-badge);
    text-transform: uppercase;
    font-weight: 600;
  }

  .dostawy-kolumny {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 50px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .col1, .col2 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .dostawy-kolumna {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    max-width: 500px;
  }
  
  .opis {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
  }
  
  .opis h3 {
    margin: 0;
    font-size: 1.2rem;
  }
  
  .opis p {
    margin: 10px 0 0 0;
    font-size: 0.95rem;
    line-height: 1.5;
  }
  

/* LOGA ANIMACJA */

#loga {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  margin-bottom: 50px;
  
}

.loga-wrapper {
  position: relative;
  overflow: hidden;
  width: 1400px;
}

.loga-wrapper::before,
.loga-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.loga-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.loga-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.loga-track {
  display: flex;
  gap: 70px;
  animation: scroll-left 20s linear infinite;
  width: max-content;
}

.loga-track img {
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.7;
  margin: 20px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* CEL PLATFORMY */

#cel-platformy {
  padding: 60px 0 100px 100px;
  background-color: #fff;
  margin-top: 100px;
}

.cel-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.cel-texty {
  display: flex;
  flex-direction: column;
  gap: 100px;
  padding: 30px;
  margin: 50px;
  max-width: 600px;
}

.cel {
  display: flex;
  flex-direction: row;
  gap: 12px;
  background-color: #F2F9F1;
  padding: 30px;
  border-radius: 10px;
}

.cel img {
  align-self: flex-start;
  margin: 10px;
  width: 60px;
  height: auto;
  display: flex;
}

.cel h3 {
  margin: 0;
  font-size: 2.0rem;
  font-weight: 600;
}

.cel p {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.5;
}

.cel-grafika {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

.cel-grafika img {
  width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
  max-width: 100%;
}


@media (max-width: 768px) {
  .cel-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cel-texty {
    align-items: center;
  }

  .cel {
    align-items: center;
  }

  .cel p {
    max-width: 90%;
  }
}


#baner2 {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

#baner2 img {
  width: 100%;
  height: auto;
  display: block;
}



/* MODAL REGISTER */

#modal-register {
  display: none;
  opacity: 0;
  position: fixed;
  inset: 0;
  z-index: 1000;   
  place-items: center;  
  padding: 24px;   
  background: rgba(10, 15, 31, 0.55);
  backdrop-filter: blur(6px);
}

#modal-register.open {
  display: grid;
  opacity: 1;
  place-items: center;
}

.modal-content-register {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bialy);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow:
    0 30px 90px rgba(0,0,0,0.35),   
    0 2px 10px rgba(0,0,0,0.08);    
  animation: fadeIn 0.28s ease-out;
  box-sizing: border-box;
}

/* Nagłówek */
.modal-content-register h2 {
  color: var(--naglowek);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 18px;
}

/* Siatka formularza */
#register-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Label + input pełna szerokość */
#register-form label {
  font-weight: 600;
  color: var(--czcionka);
  font-size: 14px;
  display: block;
}

#register-form input[type="email"],
#register-form input[type="password"],
#first_name,
#last_name {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: #F8F8F8;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#register-form input:focus {
  border-color: var(--jasny-zielony);
  outline: none;
  background: #FFF;
  box-shadow: 0 8px 26px rgba(74, 222, 128, 0.18); 
}


.checkboxy-register {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 4px;
}

.checkboxy-register label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--czcionka);
  font-size: 14px;
  line-height: 1.35;
  user-select: none;
}

/* Najprościej i nowocześnie: accent-color */
.checkboxy-register input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--jasny-zielony);      /* zielone wypełnienie */
  border-radius: 6px;
  flex: 0 0 18px;
}

/* Przycisk */
#register-form button {
  background: var(--buttony);
  color: var(--bialy);
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  margin-top: 6px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  box-shadow:
    0 18px 50px rgba(0,0,0,0.25),          /* miękki, rozmyty cień */
    0 1px 2px rgba(0,0,0,0.08);
}

#register-form button:hover {
  background: var(--jasny-zielony);
  color: var(--czarny);
  box-shadow:
    0 26px 80px rgba(74, 222, 128, 0.30),  /* zielony glow */
    0 2px 8px rgba(0,0,0,0.10);
}

#register-form button:active {
  transform: translateY(1px);
}

/* Stopka formularza */
#register-form p {
  font-size: 13px;
  text-align: center;
  margin: 10px 0 0;
  color: var(--czcionka);
}

#register-form a {
  color: var(--zielony);
  font-weight: 600;
  text-decoration: none;
}

#register-form a:hover { text-decoration: underline; }


.close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 26px;
  font-weight: 900;         
  color: var(--czcionka);
  cursor: pointer;
  line-height: 1;
  user-select: none;
  transition: color 0.2s ease, transform 0.15s ease;
  z-index: 10;               /* nad modalem */
}

.close:hover {
  color: var(--jasny-zielony);
  transform: scale(1.15);
}


/* Animacja wejścia */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Responsywka */
@media (max-width: 420px) {
  .modal-content-register {
    padding: 24px 18px;
    border-radius: 14px;
  }
  .modal-content-register h2 { font-size: 22px; }
}


/* LOGIN MODAL */
#modal-login { 
  display: none;     
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 24px;
  background: rgba(10, 15, 31, 0.55);
  backdrop-filter: blur(6px);
}
#modal-login.open {
  display: grid;
  place-items: center;
}

.modal-content-login {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bialy);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow:
    0 30px 90px rgba(0,0,0,0.35),
    0 2px 10px rgba(0,0,0,0.08);
  animation: fadeIn 0.28s ease-out;
  box-sizing: border-box;
}

.modal-content-login h2{
  color: var(--naglowek);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 18px;
}

/* Siatka formularza */
#login-form{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

#login-form label{
  font-weight: 600;
  color: var(--czcionka);
  font-size: 14px;
  display: block;
}

#login-form input[type="email"],
#login-form input[type="password"]{
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: #F8F8F8;
  font-size: 14px;
  transition: border-color .25s, box-shadow .25s, background .25s;
  box-sizing: border-box;
}
#login-form input:focus{
  border-color: var(--jasny-zielony);
  background: #fff;
  outline: none;
  box-shadow: 0 8px 26px rgba(74,222,128,.18);
}

/* Przycisk */
#login-form button{
  background: var(--buttony);
  color: var(--bialy);
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .1s, box-shadow .25s, background .25s, color .25s;
  box-shadow:
    0 18px 50px rgba(0,0,0,.25),
    0 1px 2px rgba(0,0,0,.08);
}
#login-form button:hover{
  background: var(--jasny-zielony);
  color: var(--czarny);
  box-shadow:
    0 26px 80px rgba(74,222,128,.30),
    0 2px 8px rgba(0,0,0,.10);
}
#login-form button:active{ transform: translateY(1px); }

#login-form p{
  font-size: 13px;
  text-align: center;
  margin: 10px 0 0;
  color: var(--czcionka);
}
#login-form a{
  color: var(--zielony);
  font-weight: 600;
  text-decoration: none;
}
#login-form a:hover{ text-decoration: underline; }

/* X w prawym górnym rogu */
#modal-login .close{
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 26px;
  font-weight: 900;
  color: var(--czcionka);
  cursor: pointer;
  line-height: 1;
  user-select: none;
  transition: color .2s, transform .15s;
  z-index: 10;
}
#modal-login .close:hover{
  color: var(--jasny-zielony);
  transform: scale(1.15);
}

.modal-success-login {
  display: none;
  position: fixed;
  top: 130px;
  right: 30px;
  color: #78cd8f;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}



.modal-content-success {
  position: relative;
  width: 100%;
  max-width: 420px;
  background-color: #296D3B;
  border-radius: 16px;
  padding: 32px 28px;
  animation: fadeIn 0.28s ease-out;
  box-sizing: border-box;
}

.modal-content-success h2{
  color: #b1f8c4;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 18px;
}

.modal-content-success p{
  color: #b1f8c4;
  font-size: 16px;
  text-align: center;
  font-weight: 700;
  margin: 0;
}



/* Siatka formularza */
#success-form{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

#success-form label{
  font-weight: 600;
  color: var(--czcionka);
  font-size: 14px;
  display: block;
}

#success-form input[type="email"],
#success-form input[type="password"]{
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: #F8F8F8;
  font-size: 14px;
  transition: border-color .25s, box-shadow .25s, background .25s;
  box-sizing: border-box;
}
#success-form input:focus{
  border-color: var(--jasny-zielony);
  background: #fff;
  outline: none;
  box-shadow: 0 8px 26px rgba(74,222,128,.18);
}

/* Przycisk */
#success-form button{
  background: var(--buttony);
  color: var(--bialy);
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .1s, box-shadow .25s, background .25s, color .25s;
  box-shadow:
    0 18px 50px rgba(0,0,0,.25),
    0 1px 2px rgba(0,0,0,.08);
}
#success-form button:hover{
  background: var(--jasny-zielony);
  color: var(--czarny);
  box-shadow:
    0 26px 80px rgba(74,222,128,.30),
    0 2px 8px rgba(0,0,0,.10);
}
#success-form button:active{ transform: translateY(1px); }

#success-form p{
  font-size: 13px;
  text-align: center;
  margin: 10px 0 0;
  color: var(--czcionka);
}
#success-form a{
  color: var(--zielony);
  font-weight: 600;
  text-decoration: none;
}
#success-form a:hover{ text-decoration: underline; }

/* X w prawym górnym rogu */
#modal-success .close{
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 26px;
  font-weight: 900;
  color: var(--czcionka);
  cursor: pointer;
  line-height: 1;
  user-select: none;
  transition: color .2s, transform .15s;
  z-index: 10;
}
#modal-success .close:hover{
  color: var(--jasny-zielony);
  transform: scale(1.15);
}



/* Reuse animacji z rejestracji */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

@media (max-width: 420px){
  .modal-content-login{ padding: 24px 18px; border-radius: 14px; }
  .modal-content-login h2{ font-size: 22px; }
}
