/* 🔥 RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #f9fbf9, #eef5ee);
  color: #222;
  line-height: 1.6;
}

/* 📦 CONTAINER */
.container {
    width: 100%;              
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;          
}

/* 🔝 NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  height: 100px;
  background: linear-gradient(90deg, #1b5e20, #2e7d32);
  display: flex;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 🔥 NAV GRID */
.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* 🟢 LOGO */
.logo {
  justify-self: start;
}

.logo img {
  height: 110px;
  object-fit: contain;
}

/* 🔥 MENU */
.nav-links {
  display: flex;
  justify-self: center;
  gap: 35px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links a:hover {
  color: gold;
}

/* 🔵 SOCIAL (DESKTOP) */
.nav-right {
  justify-self: end;
  display: flex;
  gap: 12px;
}

.social-link img {
  width: 20px;
  filter: brightness(0) invert(1);
  transition: 0.3s;
}

.social-link:hover img {
  transform: scale(1.1);
}

/* ❗ UKRYJ DUPLIKATY W MENU NA DESKTOP */
.nav-links .nav-right {
  display: none;
}

/* 🍔 HAMBURGER */
.hamburger {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* 🔥 BUTTON */
.btn {
  background: linear-gradient(135deg, gold, #ffd54f);
  color: #1b5e20;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.btn.secondary {
  background: white;
}

/* 🔵 HERO */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center; 

  min-height: 80vh; 
  text-align: center;
  padding: 40px 20px;

  background:
    linear-gradient(rgba(20, 80, 40, 0.65), rgba(20, 80, 40, 0.65)),
    url('/static/images/hero.jpg');

  background-size: cover;
  background-position: center 70%; 
  background-repeat: no-repeat;

  color: white;
}

/* 🧠 Tekst */
.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 30px;
  color: rgba(255,255,255,0.85);
}

/* 🔘 Przyciski */
.buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* 🔥 mobile fix */
}

/* 📦 CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}
/* 📦 SECTIONS */
section {
  padding: 80px 0;
}

/* =========================
   ⭐ ABOUT FINAL FIX
   ========================= */

.about-wrapper {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: start;

  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 🖼️ IMAGE */
.about-image {
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 320px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* 🧠 TEXT */
.about-text {
  max-width: 650px;
}

.about-text p {
  margin-bottom: 18px;
  line-height: 1.8;
}

/* =========================
   📱 MOBILE
   ========================= */

@media (max-width: 900px) {

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .about-image {
    order: -1; /* 👈 obraz NA GÓRZE */
  }

  .about-image img {
    max-width: 100%;
  }

  .about-text {
    max-width: 100%;
  }
}

/* 🔥  */
.target-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.target-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  object-fit: cover;
}

/* 🔻 FOOTER */
.footer {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer a {
  color: #dfeee0;
  text-decoration: none;
}

.footer a:hover {
  color: gold;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.footer-social img {
  width: 24px;
  filter: brightness(0) invert(1);
}

/* 📱 MOBILE */
@media (max-width: 900px) {

  .nav-container {
    grid-template-columns: auto auto;
  }

  .hamburger {
    display: block;
    justify-self: end;
  }

  .nav-right {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #1b5e20, #2e7d32);

    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 0;

    display: none;
    z-index: 9999;
  }

  .nav-links.active {
    display: flex;
  }

  /* social inside dropdown */
  .nav-links .nav-right {
    display: flex;
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .buttons {
    flex-direction: column;
  }

  



  .target-image img {
    width: 100%;
    max-width: 700px;
    border-radius: 20px;
}

.about-image img {
    width: 100%;
    max-width: 400px;
}

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* 🔥 FULL HEIGHT */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 🔥 odstęp tylko między sekcjami */
.main-content > *:not(.hero) {
  margin-top: 60px;
}

/* 🔥 pierwszy element NIE ma odstępu */
.main-content > *:first-child:not(.hero) {
    margin-top: 30px;
}

/* 🔥 CONTACT SECTION */
.contact {
  padding: 80px 0;
  background: #f9fbf9;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* 📝 TEXT */
.contact-text h2 {
  margin-bottom: 15px;
  font-size: 32px;
}

.contact-text p {
  margin-bottom: 20px;
  color: #555;
}

.contact-text ul {
  list-style: none;
}

.contact-text li {
  margin-bottom: 10px;
}

/* 📩 FORM */
.contact-form {
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 14px;
  transition: 0.2s;
}

.contact-form textarea {
  min-height: 120px;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2e7d32;
  outline: none;
  box-shadow: 0 0 0 2px rgba(46,125,50,0.15);
}

.contact-form button {
  margin-top: 10px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;  
    gap: 30px;
  }

  .contact-text {
    text-align: left;
  }
}
/* DZIEKUJE */
.thank-you-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: calc(100vh - 200px); /* 👈 ważne */
    padding: 40px 20px;
}

.thank-you-box {
    text-align: center;
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
}

.checkmark {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    color: white;
    font-size: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;

    animation: pop 0.4s ease;
}

@keyframes pop {
    0% {
        transform: scale(0);
    }
    80% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.thank-you-box h1 {
    margin-bottom: 10px;
}

.thank-you-box p {
    margin-bottom: 20px;
    color: #555;
}

/* =========================
   🔥 CTA WRAPPER (PREMIUM)
   ========================= */

.cta-wrapper {
  padding: 100px 20px;

  background:
    linear-gradient(135deg, rgba(26,77,46,0.85), rgba(47,122,69,0.85)),
    url('/static/images/noise.jpg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: white;
  text-align: center;
}

/* =========================
   🧱 WEWNĘTRZNE SEKCJE (JUŻ BEZ TŁA)
   ========================= */

.cta,
.cta-bottom {
  background: none;
  padding: 40px 20px;
}

/* spacing między nimi */
.cta-bottom {
  margin-top: 30px;
  padding-bottom: 60px;
}

/* =========================
   🧠 TEKST
   ========================= */

.cta h2,
.cta-bottom h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.cta-bottom p {
  font-size: 18px;
  margin-bottom: 25px;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   🔘 BUTTON (LEKKI UPGRADE)
   ========================= */

.cta-wrapper .btn {
  background: #ffd54f;
  color: #1f5e35;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.3s;
}

.cta-wrapper .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* =========================
   🔻 PŁYNNE PRZEJŚCIE DO FOOTERA
   ========================= */

.footer {
  background: linear-gradient(135deg, #174a1a, #256b2a);
}

/* MATERIAŁYY */
/* 🔥 CONTAINER */
.materials-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;

    width: 100%; 
}

/* 🔥 TITLE */
.materials-title {
    margin-bottom: 20px;
}

/* 🔥 KATEGORIE */
.categories {
    margin-bottom: 20px;
}

.category-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    background: #eee;
    margin-right: 10px;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

.category-link:hover {
    background: #2e7d32;
    color: white;
}

.category-link.active {
    background: #2e7d32;
    color: white;
}

/* 🔥 GRID */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* 🔥 CARD */
.material-card {
  background: #f3f3f3;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: 0.2s;
}

.material-card:hover {
  transform: translateY(-5px);
}

/* 🔥 CATEGORY TEXT */
.material-category {
    font-weight: bold;
    margin-top: 10px;
}

/* 🔥 LINK */
.material-link {
    display: inline-block;
    margin-top: 10px;
    color: #2e7d32;
    font-weight: bold;
    text-decoration: none;
}


/* 🔥 ŻÓŁTY BUTTON W Materials */
.btn-wszystkie {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd54f, #ffca28);
    color: #1b5e20;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(255, 202, 40, 0.4);
}

/* 🔥 HOVER */
.btn-wszystkie:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 202, 40, 0.6);
}

/* 🔥 ACTIVE */
.btn-wszystkie.active {
    background: linear-gradient(135deg, #ffca28, #ffb300);
}

.search-form {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.search-input {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    width: 250px;
    font-size: 14px;
}

.search-btn {
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    background: #2e7d32;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.search-btn:hover {
    background: #1b5e20;
}

/* =========================
   📚 MATERIAL BUTTON FIXES
   ========================= */

/* 🔴 ZOBACZ MATERIAŁ */
.btn-red {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #e53935;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.btn-red:hover {
    background: #c62828;
    transform: translateY(-2px);
}

/* 📥 DOWNLOAD BUTTON */
.btn-download {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffd54f, #ffca28);
    color: #1b5e20;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
    box-shadow: 0 6px 18px rgba(255, 202, 40, 0.4);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 202, 40, 0.6);
}

/* ⬅ BACK BUTTON */
.btn-back {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.btn-back:hover {
    background: #ddd;
}

/* 🔥 ACTIONS WRAPPER */
.material-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* =========================
   📄 MATERIAL DETAIL PAGE
   ========================= */

.material-detail-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 700px;
}

.material-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.material-description {
    color: #555;
    margin-bottom: 20px;
}

.material-category {
    font-weight: 600;
    margin-bottom: 25px;
}

/* =========================
   📄 PDF PREVIEW
   ========================= */

/* 🔥 PDF PREVIEW */
.pdf-preview {
    margin-top: 25px;
}

/* 🔥 iframe */
.pdf-frame {
    width: 100%;
    height: 700px; /* 🔥 WIĘKSZY */
    border: none;
    border-radius: 15px;
    background: #f3f3f3;
}

/* 🔥 fallback */
.pdf-fallback {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}

.pdf-fallback a {
    color: #2e7d32;
    font-weight: 600;
    text-decoration: none;
}

.pdf-fallback a:hover {
    text-decoration: underline;
}

/* 🔥 PAGINACJA */
.pagination {
    margin-top: auto;      
    padding: 30px 0;     

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    margin-bottom: 10px;
}

/* 🔘 BUTTONY */
.page-btn {
    background: #2e7d32;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.page-btn:hover {
    background: #1b5e20;
    transform: scale(1.05);
}

/* 📄 INFO */
.page-info {
    font-weight: bold;
    color: #2e7d32;
    font-size: 16px;
}

/* =========================
   🛍️ PRODUCT DETAIL
   ========================= */

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;

    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    margin-top: 40px;
}

/* 🖼️ IMAGE */
.product-image img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
}

/* 🧠 INFO */
.product-info h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 20px;
}

.product-description {
    color: #555;
    margin-bottom: 25px;
}

/* 🔘 BUTTON */
.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* 📱 MOBILE */
@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-detail-container {
        flex-direction: column;
        gap: 25px;
    }

    .product-detail-image img {
        height: auto;
        max-height: 300px;
    }
}

/* =========================
   🛍️ PRODUCT DETAIL GRID
   ========================= */

.product-detail-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-direction: row;
}

/* lewa strona */
.product-detail-image {
    flex: 1;
}

/* prawa strona */
.product-detail-info {
    flex: 1;
}

/* 🖼️ IMAGE */
.product-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 20px;
}

/* 🧠 INFO */
.product-detail-info h1 {
    margin-bottom: 10px;
}

.product-detail-info .product-price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2e7d32;
}

.product-detail-info .product-description {
    margin-bottom: 20px;
    color: #444;
}

/* =========================
   🛍️ SHOP GRID
   ========================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
    text-align: center;

    display: flex;              
    flex-direction: column;     
    height: 100%;               
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

.product-card .product-price {
    margin-top: auto;   
}
.product-card img {
    width: 100%;
    height: auto;              
    max-height: 200px;         
    object-fit: contain;       
    border-radius: 12px;
    margin-bottom: 15px;
}

.product-card h3 {
    margin-bottom: 10px;
}

.product-price {
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 15px;
    margin: 10px 0 15px;
}

/* 🛍️ SHOP TITLE */
.shop-title {
    text-align: center;
    margin-bottom: 30px;
}

/* 📄 PDF INFO */
.product-type {
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}

/* 🧾 OPIS */
.product-description {
    font-size: 14px;
    margin: 10px 0;
    color: #444;
}

/* 🧠 TITLE LINK */
.product-title a {
    text-decoration: none;
    color: #222;
}

.product-title a:hover {
    color: #2e7d32;
}

/* =========================
    ORDER BOX
   ========================= */

.order-box {
    margin-top: 30px;
    padding: 20px;
    border-radius: 15px;
    background: #f9fbf9;
    border: 1px solid #e0e0e0;
}

.order-box h3 {
    margin-bottom: 10px;
}

.order-box ol {
    padding-left: 20px;
}

.order-box li {
    margin-bottom: 8px;
}

/* =========================
   💳 PRODUCT BUY BOX
   ========================= */

.product-actions{
    margin-top:30px;
    display:flex;
    flex-direction:column;
    gap:18px;
    width:100%;
}

/* FORM */

.paypal-form{
    display:flex;
    flex-direction:column;
    gap:18px;
}

/* INPUT */

.email-input{

    width:100%;

    padding:16px 18px;

    border:1px solid #ddd;
    border-radius:14px;

    background:white;

    font-size:15px;

    transition:.25s;
}

.email-input:focus{

    outline:none;

    border-color:#2e7d32;

    box-shadow:
    0 0 0 4px rgba(46,125,50,.12);

}


/* BUTTON */

.paypal-btn{

    width:100%;

    border:none;

    cursor:pointer;

    padding:16px;

    font-size:17px;
    font-weight:700;

    border-radius:14px;

    background:linear-gradient(
    135deg,
    #ffc439,
    #ffdd57
    );

    color:#003087;

    transition:.3s;

}

.paypal-btn:hover{

    transform:translateY(-2px);

    box-shadow:
    0 12px 30px rgba(0,0,0,.12);

}


/* EMAIL LINK */

.email-order-link{

    display:block;

    text-align:center;

    margin-top:10px;

    color:#666;

    text-decoration:none;

    font-size:14px;

}

.email-order-link:hover{

    color:#2e7d32;

}


/* INFO */

.payment-info{

    margin-top:25px;
    margin-bottom:25px;

    color:#666;

    font-size:14px;
}


/* HOW TO ORDER */

.order-box{

    margin-top:40px;

    background:white;

    padding:30px;

    border-radius:20px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.06);

}

.order-box li{

    margin-bottom:14px;

}


/* odstęp od stopki */

.product-detail-container{

margin-bottom:100px;

}


/* MOBILE */

@media(max-width:768px){

.product-detail-container{

flex-direction:column;

}

}
/* PAYPAL LOGO */

.paypal-logo{

    font-weight:800;

    color:#003087;

    margin-right:8px;

}

.paypal-logo::after{

    content:" →";

}