:root {
  --primary: #2563eb;
  --secondary: #24d866;
  --dark: #0f172a;
  --light: #f8fafc;
}

::-webkit-scrollbar {
  width: 10px;
  transition: 0.3s ease-in-out;
}

::-webkit-scrollbar-track {
  background: linear-gradient(to bottom, #baffba, #dcffc8);
}

::-webkit-scrollbar-thumb {
  background: #4c9e09;
  transition: 0.3s ease-in-out;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64b820ec;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f5faff 0%, #edf7f5 100%);
  color: var(--dark);
  overflow-x: hidden;
}

header {
  padding: 40px 20px;
  min-height: 450px;
  width: 100%;
  text-align: center;
  background-image: url("images/logo.PNG");
  background-repeat: no-repeat;
  background-position: center;
  background-color: white;
  background-size: 80%;
}

header h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  animation: fadeDown 1s ease-out;
}

header p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  opacity: 0.95;
  animation: fadeUp 1.2s ease-out;
}

.cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-whatsapp {
  background: var(--secondary);
  color: #052e16;
  margin-top: 30px;
  border: 1px solid #1fb656;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
  background: #36c269;
}

.btn-email {
  background: #e2e2e2;
  font-size: 1rem;
  font-weight: 500;
  color: #052e16;
  margin-left: 10px;
  border: 1px solid #c5c5c5;
}

.btn-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
  background: #c5c5c5;
}

section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

ul.grid {
  margin-left: -35px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .12);
}

.card.blue {
  background: linear-gradient(135deg, #3f4cfa, #7c2bff);
  color: white;
}

.card.green {
  background: linear-gradient(135deg, #18a81f, #80c217);
  color: white;
}

.card.yellow {
  background: linear-gradient(135deg, #dbb038, #d3d027);
  color: white;
}

.card.skyblue {
  background: linear-gradient(135deg, #47b5ff, #35c4ce);
  color: white;
}

.card.happy {
  position: relative;
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: white;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  margin: 30px 0px 0px 0px;
}

.card:hover {
  transform: translateY(-10px);
}

.icon {
  font-size: 40px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.happy h3 {
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 10px;
}

.number {
  font-size: 70px;
  font-weight: 700;
  margin-bottom: 10px;
}

.plus {
  font-size: 40px;
  vertical-align: top;
}

p {
  font-size: 18px;
  opacity: 0.9;
}

.card.happy::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -50px;
  right: -50px;
}

.card-item {
  list-style: none;
}

.card-link {
  display: block;
  background: white;
  padding: 18px;
  border-radius: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}

.card-link:hover {
  border-color: #54e02a;
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .12);
}

.card-link .card-image {
  width: 100%;
  aspect-ratio: 4/6;
  border-radius: 10px;
}

.card-link .badge {
  color: #5327f0;
  margin: 16px 0 18px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  background-color: #dde3ff;
  width: fit-content;
  border-radius: 50px;
}

.card-link .badge.szkolne {
  color: #39a51e;
  background: #e8ffd2;
}

.card-link .badge.swieze {
  color: #215e56;
  background: #d4fcf3;
}

.card-link .card-title {
  font-size: 1.19rem;
  color: black;
  font-weight: 600;
}

.card-link .card-button {
  height: 35px;
  width: 35px;
  color: #5327f0;
  border-radius: 50%;
  margin: 30px 0 5px;
  background: none;
  cursor: pointer;
  border: 2px solid #5327f0;
  transform: rotate(-45deg);
  transition: 0.4s ease;
}

.card-link:hover .card-button {
  color: #fff;
  background: #5327f0;
}

.card-link p {
  color: rgb(70, 70, 70);
  font-weight: 100;
}

.back_img1 {
  height: 60vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  max-width: 1405px;
  border-radius: 30px;
  margin: auto;
}

.back_img1 p {
  font-size: 1.3rem;
}

.dystrybutory {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.dystrybutor-image {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.text_backround {
  color: #437e00;
  background: #d0fccf96;
  border-radius: 20px;
  padding: 2rem;
  font-size: large;
}

.text_backround p {
  color: #437e00;
}

.glass_box {
  border-radius: 15px;
  max-height: 500px;
  padding: 50px 20px;
  font-weight: 200;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.452);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 8px 4px rgba(255, 255, 255, 0.4);
  color: #fff;
}

.payments {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 400px;
  justify-content: center;
  margin-top: 30px;
}

.payment {
  background: white;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
  animation: float 3s ease-in-out infinite;
}

.health-section {
  padding: 50px 10px;
}

.health-check {
  max-width: 1000px;
  margin: auto;
  display: flex;
  gap: 40px;
  align-items: center;
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .1);
}

.health-text h2 {
  margin-top: 0;
  color: #166534;
}

.checkmark {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  position: relative;
}

.checkmark svg {
  width: 100%;
  height: 100%;
}

.checkmark-circle {
  stroke: #22c55e;
  stroke-width: 3;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: circle 0.6s ease-out forwards;
}

.checkmark-check {
  stroke: #22c55e;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: check 0.4s ease-out 0.6s forwards;
}

.animate-on-scroll .checkmark-circle,
.animate-on-scroll .checkmark-check {
  animation: none;
}

.animate-on-scroll.active .checkmark-circle {
  animation: circle 0.6s ease-out forwards;
}

.animate-on-scroll.active .checkmark-check {
  animation: check 0.4s ease-out 0.6s forwards;
}

.animate-on-scroll.active {
  animation: bounce 0.4s ease-out 1s forwards;
  border-radius: 50%;
}

.checkmark {
  border-radius: 50%;
}

.animate-on-scroll.active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: pulse 1.2s ease-out 1s forwards;
}

/* FORMULARZ */

#formularz {
  background-color: rgba(129, 233, 122, 0.3);
  min-height: 380px;
  min-width: 50%;
  max-width: fit-content;
  margin-bottom: 25px;
  border-radius: 10px;
  padding: 10px 20px 0px 20px;
  border: 1px solid rgb(129, 233, 122);
}

#formularz{
  display:none;
}

/* pokazywanie */
#formularz.active{
  display:block;
  animation: fadeDown 0.5s ease-out;
}

input, textarea{
  height: 40px;
  max-width: 330px;
  width: 100%;
  margin: 0;
  border: 1px solid rgb(218, 218, 218);
  border-radius: 10px;
  outline: none;
  font-size: large;
}

textarea{
  max-width: 100%;
  height: 150px;
  width: 100%;
}

#wyslij{
  border: 1px solid rgb(19, 243, 19);
  border-radius: 10px;
  height: 40px;
  width: 90px;
  background-color: #24d866;
  color: white;
  font-weight: bold;
  position: relative;
  left: 0;
  transition: transform .2s ease, box-shadow .2s ease, background .2
}

#wyslij {
  background: #2ac915;
  color: #ffffff;
  margin-left: 10px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

#wyslij:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
  background: #44d419;
  cursor: pointer;
}

#wyslij:active{
  transform: scale(0.9);
}
input:valid{
  border: 1px solid rgb(218, 218, 218);
}

textarea:valid{
  border: 1px solid rgb(218, 218, 218);
}

.invalid{
  border: 2px solid red;
  animation: shake 0.2s 2;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes circle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes check {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes bounce {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.12);
  }

  70% {
    transform: scale(0.96);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

footer {
  background: var(--dark);
  color: #cbd5f5;
  padding: 60px 20px;
  text-align: center;
}

footer a {
  color: #22c55e;
  text-decoration: none;
  font-weight: 600;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all .8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {

  section {
    padding: 50px 16px;
  }

  h1 {
    font-size: 1.8rem;
    padding: 0 10px;
  }

  h2 {
    font-size: 1.4rem;
  }

  p {
    font-size: 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px;
  }

  .number {
    font-size: 48px;
  }

  .plus {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  header {
    background-image: url("images/logo_3.jpg");
  }
}

@media (max-width: 520px) {
  .btn-email {
    margin-top: 16px;
  }
}

@media (max-width: 445px) {
  .payments {
    width: 98%;
  }

  .health-check {
    align-items: start;
  }

  .health-check p {
    width: 150%;
    margin-left: -120px;
  }

  .health-check h2 {
    margin-left: -20px;
  }
}


