/* =========================
   RESET
========================= */
body {
  margin: 0;
  background: #f8f5ef;
  color: #333;
  line-height: 1.5;
  overflow-x: hidden;
  /*font-display: swap;  PageSpeed */
}

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

img {
  max-width: 100%;
  height: auto;
}

/* =========================
   COMMON CLASSES
   Used across many HTML files
========================= */

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  background: #cffff0; 
  align-items: center;
  padding: 0px 20px;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 9999;
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

/* LOGO */
.logo img {
  height: 100px;
  margin-left:30px;
}

/* MENU */
.nav-links {
  display: flex;
  gap: 70px;
  background: #cffff0; 
  flex:1;
  justify-content: center;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color:#008B8B;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 1px;
  transition: 0.2s;
}

.nav-links a:hover {
  color: #000;
}

.nav-buy-btn {
  display: inline-flex;
  flex: 0 0 auto;
  width: fit-content;
  align-items: center;
  justify-content: center;
  background: #008B8B;
  color: white;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 20px;
  transition: 0.25s ease;
  margin-right: 30px;
  white-space: nowrap;
}

.nav-buy-btn:hover {
  background: #0f3b33;
  transform: translateY(-2px);
}
.know-more-btn {
  display: inline-flex;
  flex: 0 0 auto;
  width: fit-content;
  align-items: center;
  justify-content: center;
  background: #008B8B;
  color: white;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 20px;
  transition: 0.25s ease;
  margin: 20px auto 0 auto;
  white-space: nowrap;
}

.know-more-btn:hover {
  background: #0f3b33;
  transform: translateY(-2px);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #f8f5ef;
  min-width: 130px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 10px;
}

.dropdown-content a {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
}

.dropdown-content a:hover {
  background: #f2f2f2;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===== FOOTER (MIĘTOWY) ===== */
.footer {
  background: #1b7a5c;
  color: #fff;
  padding: 24px 32px 12px;
  margin-top: 10px;
}

/* UKŁAD  */
.footer-content {
  display: grid;
  grid-template-columns: minmax(280px, 40%) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 8px 36px;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0;
  align-items: center;
}

/* KOLUMNY */
.footer-box {
  display: flex;
  font-size: clamp(14px, 0.95vw, 17px);
  gap: 8px;
}

/* TYTUŁ */
.footer-box h3,
.footer-box h4 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(17px, 1.1vw, 21px);
}

/* TEKST */
.footer-box p {
  margin: 0;
  line-height: 1.45;
  color: rgba(255,255,255,0.85);
}

/* LINKI */
.footer-box a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  transition: 0.2s;
}

.footer-box a:hover {
  color: #fff;
}

.footer-box a[href^="mailto:"] {
  white-space: nowrap;
  overflow-wrap: normal;
}

.footer-brand {
  grid-column: 1;
  grid-row: 1 / 3;
  flex-direction: column;
  justify-self: center;
  align-items: center;
  max-width: 520px;
  text-align: center;
}

.footer-links {
  grid-column: 2;
  grid-row: 1;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  column-gap: clamp(18px, 2vw, 34px);
  row-gap: 6px;
  text-align: center;
}

.footer-contact {
  grid-column: 2;
  grid-row: 2;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 2.6vw, 44px);
  text-align: center;
  white-space: nowrap;
}

/* DÓŁ STOPKI */
.footer-bottom {
  text-align: center;
  margin: 16px auto 0;
  max-width: 1440px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 10px;
}

@media (min-width: 1200px) and (min-aspect-ratio: 16/10) {
  .footer {
    padding: 22px clamp(40px, 4vw, 72px) 12px;
  }

  .footer-content {
    grid-template-columns: minmax(340px, 40%) minmax(0, 1fr);
    column-gap: clamp(32px, 4vw, 64px);
    row-gap: 10px;
    max-width: 1440px;
    align-items: start;
  }

  .footer-box {
    font-size: clamp(14px, 0.85vw, 16px);
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
    white-space: nowrap;
  }

  .footer-contact {
    gap: clamp(24px, 3vw, 48px);
  }
}

/* =========================
   LESS COMMON CLASSES
   Page-specific and smaller shared sections
========================= */

/* ===== HOME HERO ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 950px;
  overflow: hidden;
}

/* wszystkie zdjęcia */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

/* aktywne zdjęcie */
.slide.active {
  opacity: 1;
}

/* ciemna warstwa */
.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

/* TEKST NA OBRAZIE srodku */
.hero-overlay {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: min(92vw, 1000px);
  max-width: 1000px;
  padding: 20px;
  overflow-wrap: normal;
  z-index: 2; 
}

.hero-overlay h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(42px, 3.3vw, 50px);
  margin: 0;
  line-height: 1.25;
  text-wrap: balance;
}

.hero-overlay .hover-text {
  opacity: 0;
  font-size:35px;
  transition: opacity 0.4s ease;
}

.hover-text {
  font-family: 'Cormorant Garamond', serif;
  margin-top: 20px;
  font-size: 35px;
  text-align: center;
  opacity: 0;
  transition: 0.4s ease;
}

/* pokazuj po najechaniu na CAŁY HERO */
.hero-slider:hover .hover-text {
  opacity: 1;
}

/* O NAS */
.about-section {
  padding: 60px 20px 80px;
  display: flex;
  justify-content: center;
}

.about-card {
  max-width: 1300px;
  width: 100%;
  background: white;
  border-radius: 24px;
  padding: 50px;
  display: flex;
  gap: 50px;
  align-items: flex-start;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.about-gallery {
  width: 45%;
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: 0.3s ease;
}

.about-gallery img:hover {
  transform: scale(1.03);
}

.about-content {
  flex: 1;
}

.about-content .about-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  color: #008B8B;
  text-align: center;
  margin-top: 0;
  margin-bottom: 10px;
}

.about-content h3 {
  font-size: 28px;
  color: #008B8B;
  text-align: center;
  margin-top: 25px;
  margin-bottom: 10px;
}

.about-content p {
  font-size: 20px;
  line-height: 1.4;
  color: #333;
  margin-top: 10px;
  margin-bottom: 16px;
  text-align: justify;
}

.about-content .intro {
  font-size: 2opx;
  font-weight: 500;
  color: #222;
}


/* ===== BLOG INTRO ===== */
.blog-intro {
  max-width: 900px;
  margin: 70px auto 35px;
  padding: 0 20px;
  text-align: center;
}

.blog-intro h1 {
  margin: 0 0 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 46px;
  font-weight: 600;
  color: #0f3b33;
}

.blog-intro p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: #444;
}

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 90px;
  padding: 0 20px;
}

/* ===== BLOG CARD ===== */
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: 0.25s ease;
  cursor: pointer;
}

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

.blog-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.blog-content {
  padding: 26px;
}

.blog-content h3 {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: #0f3b33;
}

.blog-content p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

/* =======================================================
   POPUP ARTICLE OVERLAY
======================================================= */

.article-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.65);

  display: none;

  justify-content: center;
  align-items: center;

  padding: 40px;

  z-index: 9999;
}

.article-overlay.active {
  display: flex;
}

/* ===== ARTICLE MODAL ===== */
.article-modal {
  display: none;

  width: 100%;
  max-width: 1300px;

  max-height: 90vh;

  overflow-y: auto;

  background: white;

  border-radius: 24px;

  padding: 40px;

  position: relative;

  gap: 40px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.25);

  flex-direction: row;
}

.article-modal.active {
  display: flex;
}

/* ===== IMAGE LEFT ===== */
.article-image {
  width: 42%;
}

.article-image img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

/* ===== TEXT RIGHT ===== */
.article-text {
  flex: 1;
}

.article-text .article-title {
  font-family: 'Cormorant Garamond', serif;

  font-size: 44px;

  color: #0f3b33;

  margin-top: 0;
  margin-bottom: 20px;
}

.article-text p {
  font-size: 20px;

  line-height: 1.8;

  color: #333;

  margin-bottom: 18px;

  text-align: justify;
}

/* ===== CLOSE BUTTON ===== */
.close-article {
  position: absolute;

  top: 20px;
  right: 20px;

  width: 46px;
  height: 46px;

  border: none;

  border-radius: 50%;

  background: #f2f2f2;

  font-size: 28px;

  cursor: pointer;

  transition: 0.2s;
}

.close-article:hover {
  background: #e5e5e5;
}

/* EBOOK*/
.ebook-section {
  padding: 60px 20px 80px; 
  display: flex;
  justify-content: center;
}

.ebook-card {
  max-width: 1200px;
  width: 100%;
  background: white;
  padding: 60px;
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  margin: 0 auto -10px;
  display: flex;
  gap: 50px;
  align-items: flex-start;
}
/* OKŁADKA WIĘKSZA */
.ebook-image img {
  width: 520px;  /* było 420 */
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* TEKST */
.ebook-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ebook-content h1{
  flex: 1;
  display: flex;
  flex-direction: column;
  color: #008B8B; 
  margin-top:0;
  line-height: 1.3;
  font-size: 35px;
  justify-content: flex-start;
}

.ebook-content .ebook-subtitle {
  display: block;
  flex: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px;
  margin-bottom: 5px;
  margin-top:-20px;
  color: red; 
  line-height: 1.2;
}

.ebook-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: bold;
  font-size: 29px;
  margin-bottom: 0;
  margin-top:20px;
  color: red; 
  line-height: 1.2;
}
.ebook-content p.high {
  font-size: 22px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 14px;
} 
/* PEŁNA SZEROKOŚĆ TEKSTU */
.ebook-content p {
  font-size: 25px;
  line-height: 1.4;
  color: #333;
  margin-bottom: 6px;
}
.accent {
  font-weight: bold;
  color: #008B8B;
}

/* BUTTON NORMALNIE POD TEKSTEM */
.send-message-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
  font-size: 30px;
  font-weight: 800;
  margin-left:120px;
  padding: 14px 22px;
  background: #008B8B;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 12px;
  transition: 0.2s;
  width: fit-content;
}

.send-message-btn:hover {
  background: #5fd3b1;
  transform: translateY(-2px);
}


.ebook-card--text {
  justify-content: center;
}

.ebook-text {
  width: 100%;
}

.ebook-text p {
  font-size: 25px;
  line-height: 1.4;
  color: #333;
  margin-top: 15px;
  margin-bottom: 15px;
  text-align: justify;
}

.section {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
}


.section h1 {
  font-family: 'Cormorant Garamond', serif;
  color: #0f3b33;
}

.section h1.section-subheading {
  display: block;
  font-family: initial;
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
  margin-block-start: 0.83em;
  margin-block-end: 0.83em;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

.buy-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 26px;
  background: #7de7c8;
  color: #0f3b33;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
}

.contact-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.contact-section p {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
}

form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea, select {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 18px;
  line-height: 1.7;
  color: #333;
}

.privacy-consent input {
  flex: 0 0 auto;
  width: auto;
  margin-top: 8px;
  padding: 0;
  border-radius: 0;
}

button {
  background: #7de7c8;
  border: none;
  padding: 14px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 8px;
  transition: 0.2s;
}

button:hover {
  background: #5fd3b1;
}

.success-wrapper {
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
}

.success-card {
  max-width: 700px;
  width: 100%;
  background: white;
  padding: 50px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
}

.success-card h1 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  margin-bottom: 20px;
  color: #1f3d3a;
}

.success-card p {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #444;
}

.download-btn {
  display: inline-block;
  padding: 16px 34px;
  background: #1f3d3a;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 18px;
  transition: 0.3s ease;
  border: none;
  cursor: pointer;
}

.download-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.loading {
  margin-top: 20px;
  font-size: 18px;
  color: #666;
}

.success-icon {
  font-size: 70px;
  margin-bottom: 20px;
}

/* ===== FAQ ===== */
.faq-section .faq-title {
  text-align: center;
  margin-bottom: 40px;
  font-size:40px;
  font-family: 'Cormorant Garamond', serif;
  color: #008B8B;
}

.faq {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* pytanie */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 22px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0f3b33;
}

/* plusik */
.icon {
  font-size: 22px;
  transition: transform 0.3s ease;
}

/* odpowiedź */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 20px;
  color: #444;
  line-height: 1.6;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

/* aktywne */
.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 20px 18px;
}

.faq-item.active .icon {
  transform: rotate(45deg); /* + zmienia się w X */
}

/* ===== EBOOK HERO ===== */

.ebook-hero {
  padding: 60px 30px;
}

.ebook-hero-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 200px;
  max-width: 1400px;
  margin: 0 auto;
}

/* OKŁADKA */
.ebook-cover {
  width: 500px;
  max-width: 100%;
  margin-top:20px;
  margin-left: 10px; /* odsunięcie od lewego brzegu */
  border-radius: 24px; /* zaokrąglone rogi */
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
  flex-shrink: 0;
}

/* KOLUMNA TEKSTOWA */
.ebook-hero-text {
  display: flex;
  margin-right:20px;
  margin-left:-140px;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 1050px;
  padding-top: 10px;
}

/* NAGŁÓWEK */
.ebook-hero-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 55px;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 28px;
  color: #008B8B;
}

/* PODTYTUL */
.ebook-hero-text .ebook-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 29px;
  font-weight: bold;
  line-height: 1.1;
  margin-top: -15px;
  margin-bottom: 8px;
  color: red;
}


/* AKAPIT */
.ebook-hero-text p {
  font-size: 22px;
  line-height: 1.7;
  color: #333;
  line-height:1.5;
  margin-top: 5px;
  margin-bottom: 5px;
}

.ebook-dodatek {
  margin-top: 50px;      /* obniża całą sekcję */
  text-align: left; 
margin-left:-500px;  /* wyrównanie do lewej */
  max-width: 500px;      /* opcjonalnie: kontrola szerokości */
}

.ebook-dodatek .ebook-extra-title {
  font-size: 42px;
  color: #008B8B;
  font-weight: 700;
  margin-bottom: 10px;
}

.ebook-dodatek h3 {
  font-size: 32px;
  color: #990505;
  font-weight: 700;
  margin-bottom: 10px;
}
.ebook-dodatek p {
  font-size: 26px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

/* =========================
   RESPONSIVE STYLES
   Tablets, phones and non-standard displays
========================= */

@media (min-width: 1600px) {
  .hero-slider {
    height: min(950px, 78vh);
  }

  .ebook-card,
  .about-card {
    max-width: 1320px;
  }
}

@media (max-width: 1400px) {
  .navbar {
    padding: 14px 34px;
  }

  .nav-links {
    gap: clamp(24px, 3vw, 44px);
  }

  .nav-links a {
    font-size: clamp(22px, 2.1vw, 28px);
  }

  .logo img {
    height: 88px;
    margin-left: 0;
  }

  .nav-buy-btn {
    margin-right: 0;
    font-size: clamp(17px, 1.5vw, 20px);
  }

  .hero-slider {
    height: min(780px, 78vh);
  }

  .ebook-card,
  .about-card {
    gap: clamp(32px, 4vw, 48px);
    padding: clamp(42px, 4vw, 56px);
  }

  .ebook-image img {
    width: min(460px, 38vw);
  }

  .ebook-hero-container {
    gap: clamp(48px, 8vw, 120px);
  }

  .ebook-hero-text {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 1180px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 14px;
    padding: 16px 26px;
  }

  .nav-links {
    order: 3;
    flex-basis: 100%;
    gap: clamp(18px, 3vw, 30px);
    justify-content: center;
  }

  .hero-slider {
    height: min(680px, 74vh);
  }

  .hero-overlay {
    width: min(90vw, 820px);
  }

  .hero-overlay h1 {
    font-size: clamp(30px, 4vw, 42px);
  }

  .hover-text,
  .hero-overlay .hover-text {
    font-size: clamp(17px, 2.2vw, 22px);
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
  }

  .about-card {
    align-items: center;
  }

  .about-gallery {
    width: 42%;
    gap: 14px;
  }

  .about-content .about-title {
    font-size: clamp(34px, 4vw, 40px);
  }

  .about-content h3 {
    font-size: clamp(24px, 3vw, 28px);
  }

  .about-content p {
    font-size: clamp(17px, 1.8vw, 20px);
  }

  .ebook-section {
    padding: 56px 24px 64px;
  }

  .ebook-card {
    max-width: 1040px;
  }

  .ebook-content h1 {
    font-size: clamp(32px, 3.6vw, 42px);
  }

  .ebook-content .ebook-subtitle {
    font-size: clamp(24px, 2.4vw, 28px);
  }

  .ebook-content h3 {
    font-size: clamp(24px, 2.8vw, 29px);
  }

  .ebook-content p,
  .ebook-content p.high,
  .ebook-text p {
    font-size: clamp(19px, 2vw, 23px);
  }

  .send-message-btn {
    margin-left: 0;
    font-size: clamp(22px, 2.8vw, 28px);
  }
}

@media (max-width: 900px) {
  .hero-slider {
    height: min(620px, 82vh);
  }

  .hero-overlay {
    top: 52%;
    width: min(92vw, 680px);
  }

  .hero-overlay h1 {
    font-size: clamp(24px, 5vw, 34px);
    line-height: 1.22;
  }

  .hover-text,
  .hero-overlay .hover-text {
    opacity: 1;
    font-size: clamp(15px, 2.8vw, 18px);
  }

  .about-card,
  .ebook-card,
  .ebook-hero-container,
  .article-modal {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-section,
  .ebook-section {
    padding: 48px 18px 60px;
  }

  .about-card,
  .ebook-card {
    width: 100%;
    max-width: 720px;
    padding: clamp(28px, 5vw, 40px);
  }

  .about-gallery {
    order: 2;
    width: 100%;
    max-width: 560px;
    margin-top: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about-content {
    order: 1;
  }

  .about-content p,
  .article-text p,
  .ebook-text p {
    text-align: left;
  }

  .ebook-image img,
  .ebook-cover {
    width: min(380px, 82vw);
  }

  .ebook-content,
  .ebook-hero-text {
    align-items: center;
    max-width: 100%;
    padding-top: 0;
  }

  .ebook-content h1,
  .ebook-content .ebook-subtitle,
  .ebook-content h3,
  .ebook-hero-text h1,
  .ebook-hero-text .ebook-subtitle,
  .ebook-dodatek {
    text-align: center;
  }

  .ebook-hero-text h1 {
    font-size: clamp(34px, 6vw, 46px);
  }

  .ebook-hero-text .ebook-subtitle {
    font-size: clamp(25px, 4.5vw, 31px);
  }

  .ebook-hero-text p,
  .ebook-content p {
    font-size: clamp(18px, 2.6vw, 21px);
    max-width: 650px;
  }

  .ebook-dodatek {
    margin: 32px auto 0;
    max-width: 650px;
  }

  .send-message-btn,
  .know-more-btn {
    margin-left: auto;
    margin-right: auto;
  }

  .blog-intro {
    margin: 54px auto 30px;
  }

  .blog-intro h1 {
    font-size: clamp(36px, 6vw, 44px);
  }

  .blog-grid {
    gap: 24px;
    margin-bottom: 68px;
  }

  .article-overlay {
    padding: 24px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .article-modal {
    max-height: none;
    padding: clamp(28px, 5vw, 36px);
    gap: 24px;
  }

  .article-image {
    width: min(420px, 100%);
  }

  .article-text .article-title {
    font-size: clamp(32px, 6vw, 40px);
  }

  .section,
  .contact-section {
    margin: 56px auto;
  }

  .footer {
    padding: 24px 22px 12px;
    margin-top: 36px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px;
    text-align: center;
  }

  .footer-brand,
  .footer-links,
  .footer-contact {
    grid-column: 1;
    justify-self: center;
  }

  .footer-brand {
    grid-row: 1;
    max-width: 640px;
  }

  .footer-links {
    grid-row: 2;
    justify-content: center;
    gap: 8px 18px;
  }

  .footer-contact {
    grid-row: 3;
    justify-content: center;
    white-space: normal;
  }

  .footer-brand p br {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "logo buy toggle"
      "menu menu menu";
    align-items: center;
    justify-content: stretch;
    gap: 0 12px;
    padding: 12px 16px;
  }

  .logo {
    grid-area: logo;
  }

  .logo img {
    height: clamp(58px, 10vw, 72px);
    max-width: 28vw;
    margin-left: 0;
    object-fit: contain;
  }

  .nav-buy-btn {
    grid-area: buy;
    justify-self: center;
    margin: 0;
    min-width: min(220px, 46vw);
    padding: 12px clamp(16px, 3.2vw, 24px);
    max-width: 52vw;
    font-size: clamp(16px, 3.6vw, 21px);
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .nav-toggle-label {
    grid-area: toggle;
    display: flex;
    justify-self: end;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 8px;
    cursor: pointer;
  }

  .nav-toggle-label span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: #333;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 2px solid #008B8B;
    outline-offset: 3px;
    border-radius: 8px;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-links {
    grid-area: menu;
    display: none;
    width: 100%;
    margin-top: 12px;
    padding: 12px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    text-align: center;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.08);
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 10px;
    font-size: clamp(18px, 5vw, 22px);
    letter-spacing: 0.3px;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-content {
    position: static;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background: #f7f7f7;
  }

  .dropdown-content a {
    padding: 10px;
    font-size: 15px;
  }

  .hero-slider {
    height: min(540px, 78vh);
  }

  .hero-overlay {
    width: 94vw;
    padding: 16px 12px;
  }

  .hero-overlay h1 {
    font-size: clamp(22px, 6vw, 29px);
  }

  .hover-text,
  .hero-overlay .hover-text {
    font-size: clamp(13px, 3.6vw, 16px);
    line-height: 1.45;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .blog-card img {
    height: clamp(200px, 48vw, 250px);
  }

  .about-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .about-content .about-title,
  .faq-section .faq-title {
    font-size: clamp(32px, 8vw, 38px);
  }

  .about-content h3 {
    font-size: clamp(23px, 6vw, 27px);
  }

  .about-content p,
  .faq-answer,
  .faq-question,
  .contact-section p,
  .ebook-content p,
  .ebook-content p.high,
  .ebook-text p,
  .ebook-hero-text p,
  input,
  textarea,
  select,
  button {
    font-size: clamp(16px, 4vw, 18px);
  }

  .ebook-card {
    border-radius: 18px;
  }

  .ebook-content h1 {
    font-size: clamp(28px, 7vw, 35px);
  }

  .ebook-content .ebook-subtitle,
  .ebook-hero-text .ebook-subtitle {
    margin-top: 0;
    font-size: clamp(24px, 6vw, 30px);
  }

  .ebook-content h3 {
    font-size: clamp(23px, 6vw, 29px);
  }

  .send-message-btn {
    padding: 13px 18px;
    font-size: clamp(20px, 5vw, 26px);
  }

  .article-modal {
    border-radius: 18px;
  }

  .close-article {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .success-wrapper {
    min-height: auto;
    padding: 56px 16px;
  }

  .success-card {
    padding: 34px 22px;
  }

  .success-card h1 {
    font-size: clamp(30px, 8vw, 36px);
  }

  .success-card p {
    font-size: clamp(18px, 4.8vw, 21px);
  }
}

@media (max-width: 560px) {
  .navbar {
    grid-template-columns: auto minmax(0, 1fr) 42px;
    padding: 10px 12px;
    column-gap: 8px;
  }

  .logo img {
    height: clamp(50px, 13vw, 60px);
    max-width: 26vw;
  }

  .nav-buy-btn {
    min-width: min(190px, 48vw);
    padding: 10px 14px;
    max-width: 52vw;
    font-size: clamp(14px, 4vw, 18px);
  }

  .nav-toggle-label {
    width: 40px;
    height: 40px;
    padding: 7px;
  }

  .hero-slider {
    height: min(500px, 76vh);
  }

  .hero-overlay {
    width: 96vw;
  }

  .hero-overlay h1 {
    font-size: clamp(19px, 6.3vw, 24px);
  }

  .about-section,
  .ebook-section {
    padding: 40px 12px 48px;
  }

  .about-card,
  .ebook-card,
  .article-modal,
  .success-card {
    padding: 24px 16px;
  }

  .about-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-intro,
  .contact-section,
  .section {
    margin: 42px auto;
    padding-left: 16px;
    padding-right: 16px;
  }

  .blog-intro h1 {
    font-size: clamp(30px, 9vw, 36px);
  }

  .blog-content {
    padding: 22px;
  }

  .article-overlay {
    padding: 14px;
  }

  .article-text p {
    font-size: 17px;
    line-height: 1.65;
  }

  .faq {
    gap: 16px;
  }

  .faq-question {
    padding: 16px;
  }

  .faq-answer {
    padding: 0 16px;
  }

  .faq-item.active .faq-answer {
    padding: 0 16px 16px;
  }

  .footer {
    padding: 18px 14px 10px;
  }

  .footer-content {
    gap: 8px;
  }

  .footer-box {
    align-items: center;
    min-width: 0;
    font-size: clamp(12px, 3.3vw, 14px);
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    gap: 5px 16px;
  }

  .footer-contact {
    flex-direction: column;
    gap: 3px;
  }

  .footer-bottom {
    margin-top: 8px;
    padding-top: 8px;
    font-size: 11px;
  }
}

@media (max-width: 390px) {
  .navbar {
    grid-template-columns: auto minmax(0, 1fr) 38px;
    column-gap: 6px;
  }

  .logo img {
    height: 48px;
    max-width: 24vw;
  }

  .nav-buy-btn {
    padding: 7px 8px;
    min-width: min(160px, 48vw);
    max-width: 52vw;
    font-size: 13px;
  }

  .nav-toggle-label {
    width: 38px;
    height: 38px;
  }

  .hero-slider {
    height: min(460px, 74vh);
  }

  .hero-overlay h1 {
    font-size: clamp(18px, 6vw, 22px);
  }

  .hover-text,
  .hero-overlay .hover-text {
    font-size: 12px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 680px) and (orientation: landscape) {
  .navbar {
    position: sticky;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    min-height: 0;
    row-gap: 0;
  }

  .logo img {
    height: clamp(38px, 10vh, 50px);
    max-width: 18vw;
    margin-left: 0;
  }

  .nav-links {
    order: 0;
    flex: 1 1 auto;
    flex-basis: auto;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 2vw, 18px);
    min-width: 0;
  }

  .nav-links a {
    padding: 4px 2px;
    font-size: clamp(14px, 2.4vw, 18px);
    line-height: 1.1;
    letter-spacing: 0.2px;
  }

  .nav-buy-btn {
    margin: 0;
    min-width: min(180px, 34vw);
    padding: 8px 14px;
    font-size: clamp(14px, 2.4vw, 17px);
    line-height: 1.1;
  }

  .dropdown-content a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero-slider {
    height: max(420px, 100vh);
  }

  .hero-overlay {
    top: 55%;
    width: 94vw;
    padding: 12px;
  }

  .hero-overlay h1 {
    font-size: clamp(18px, 3.4vw, 28px);
    line-height: 1.15;
  }

  .hover-text,
  .hero-overlay .hover-text {
    font-size: clamp(11px, 1.9vw, 14px);
    line-height: 1.25;
  }

  .ebook-section,
  .about-section {
    padding-top: 32px;
    padding-bottom: 40px;
  }
}

@media (max-width: 768px) and (max-height: 680px) and (orientation: landscape) {
  .navbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 6px 10px;
    column-gap: 8px;
  }

  .logo img {
    height: clamp(34px, 11vh, 44px);
    max-width: 20vw;
  }

  .nav-buy-btn {
    min-width: min(170px, 46vw);
    padding: 8px 12px;
    max-width: 48vw;
    font-size: clamp(13px, 3vw, 16px);
  }

  .nav-toggle-label {
    width: 36px;
    height: 36px;
    padding: 7px;
    gap: 5px;
  }

  .nav-links {
    margin-top: 6px;
    padding: 6px 0;
  }

  .nav-links a {
    padding: 7px 8px;
    font-size: clamp(15px, 3.4vw, 18px);
    line-height: 1.1;
  }

  .dropdown-content a {
    padding: 6px 8px;
    font-size: 13px;
  }
}

@media (min-width: 700px) and (max-width: 1024px) and (max-aspect-ratio: 4/3) {
  .about-card,
  .ebook-card {
    max-width: 760px;
  }

  .blog-grid {
    max-width: 760px;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .navbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo img {
    height: 72px;
  }

  .hero-slider {
    height: max(520px, calc(100vh - 92px));
  }
}

@media (hover: none) {
  .hero-overlay .hover-text,
  .hover-text {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================
   FULL JUSTIFY TEXT
========================= */
p,
li,
.about-content p,
.blog-intro p,
.blog-content p,
.article-text p,
.ebook-content p,
.ebook-content p.high,
.ebook-text p,
.ebook-hero-text p,
.ebook-dodatek p,
.contact-section p,
.section p,
.faq-answer,
.footer-box p,
.footer-bottom p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}


