/* ============================================================
   LUMPORT — style.css
   ============================================================ */

/* 0. Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* 1. Variables */
:root {
  --cream:        #f7f4ef;
  --cream-mid:    #eee9e0;
  --dark:         #2d3030;
  --dark-soft:    #4a5050;
  --teal:         #3aada0;
  --teal-light:   #a8d5d1;
  --teal-bg:      #e8f7f5;
  --coral:        #e05a5a;
  --coral-hover:  #c94848;
  --text-body:    #3d4040;
  --text-muted:   #7a8484;
  --border:       rgba(45,48,48,0.12);
  --nav-h:        0px;  /* no sticky nav in editorial mode */
  --radius:       8px;
  --font-display: 'Lora', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;
}

/* 2. Reset / Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
  background: var(--cream);
}

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

a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--coral); }

h1,h2,h3,h4 {
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.3;
}

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

/* 3. Container */
.container {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.container--wide {
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* 4. On-dark utility */
.on-dark { color: rgba(255,255,255,0.85); }
.on-dark h1,.on-dark h2,.on-dark h3,.on-dark h4 { color: #fff; }
.on-dark p { color: rgba(255,255,255,0.72); }
.on-dark a:not(.btn-ext) { color: rgba(255,255,255,0.9); }

/* 5. Disclosure bar */
.disclosure-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  text-align: center;
}
.disclosure-bar p {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* 6. Site header (logo + brand name only) */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}
.site-header__brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-header__brand span { color: var(--teal); }
.site-header__tagline {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  display: none;
}
@media (min-width: 500px) { .site-header__tagline { display: block; } }

/* 7. Article header */
.article-header {
  padding: 48px 0 32px;
}
.article-header__kicker {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  display: block;
}
.article-header__h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
  font-style: italic;
}
.article-header__h1 em {
  font-style: normal;
  color: var(--teal);
}

/* 8. Author block */
.author-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}
.author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-bg);
  color: var(--teal);
  flex: none;
}
.author-avatar svg { width: 26px; height: 26px; }
.author-block__info { display: flex; flex-direction: column; gap: 2px; }
.author-block__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}
.author-block__bio {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* 9. Lead figure + all article figures */
.article-figure {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-mid);
}
.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.article-figure--inset {
  max-width: 620px;
  margin-inline: auto;
}
.article-figure--small {
  max-width: 420px;
  margin-inline: auto;
}
.article-figure--full {
  max-width: 100%;
}

/* 10. Article body typography */
.article-body {
  padding-bottom: 16px;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--dark);
  margin: 48px 0 16px;
  line-height: 1.25;
}
.article-body h2:first-child { margin-top: 0; }

/* 11. Pull-quote */
.pull-quote {
  border-left: 4px solid var(--teal);
  background: var(--teal-bg);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  color: var(--dark);
  margin: 0;
  line-height: 1.6;
}

/* 12. Facts table (dl) */
.facts-wrapper {
  margin: 36px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts-wrapper__title {
  background: var(--dark);
  color: #fff;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.facts {
  display: grid;
  grid-template-columns: 1fr;
}
.facts__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--border);
}
.facts__row:last-child { border-bottom: none; }
.facts__row dt {
  padding: 13px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: #fafaf8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}
.facts__row dd {
  padding: 13px 20px;
  font-size: 15px;
  color: var(--text-body);
  display: flex;
  align-items: center;
}

@media (max-width: 480px) {
  .facts__row { grid-template-columns: 1fr; }
  .facts__row dt {
    padding: 10px 16px 4px;
    border-bottom: none;
  }
  .facts__row dd { padding: 4px 16px 10px; }
}

/* 13. Badge / icon row */
.badge-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.badge-row__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 16px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.badge-row__item svg {
  width: 28px;
  height: 28px;
  color: var(--teal);
  flex: none;
}
.badge-row__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
}

/* 14. Product figure (special slot) */
.product-figure {
  margin: 0 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-mid);
}
.product-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* 15. Inline CTA */
.inline-cta {
  background: var(--teal-bg);
  border: 1px solid var(--teal-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.inline-cta__text {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  color: var(--dark);
  margin: 0;
  line-height: 1.6;
}
.btn-ext {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn-ext:hover {
  background: var(--coral-hover);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* 16. FAQ */
.faq-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.faq-section__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--dark);
  margin-bottom: 28px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  padding: 18px 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 6l6 6 6-6' stroke='%233aada0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .faq-body {
  padding: 0 0 18px;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
}
.faq-item .faq-body p { margin-bottom: 0.8em; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* 17. Closing CTA */
.closing-cta {
  padding: 48px 0 56px;
  border-top: 2px solid var(--teal-light);
}
.closing-cta__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 34px);
  color: var(--dark);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.3;
}
.closing-cta__body {
  font-size: 16px;
  color: var(--dark-soft);
  margin-bottom: 24px;
  max-width: 560px;
}
.closing-cta__price {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}
.closing-cta__note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
  font-style: italic;
}

/* 18. Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 36px 0;
}
.site-footer__inner {
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer__company {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.site-footer__company a {
  color: var(--teal-light);
  text-decoration: none;
}
.site-footer__company a:hover { text-decoration: underline; }
.site-footer__legal-links {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  align-items: center;
}
.site-footer__legal-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.site-footer__legal-links a:hover { color: var(--teal-light); text-decoration: underline; }
.site-footer__legal-links .sep { color: rgba(255,255,255,0.25); margin: 0 4px; }

.site-footer__disclosure {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
}
.site-footer__disclosure p { margin-bottom: 0.6em; }
.site-footer__disclosure p:last-child { margin-bottom: 0; }
.site-footer__disclosure a { color: rgba(255,255,255,0.55); }

.site-footer__copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* 19. Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 680px;
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  z-index: 9999;
  padding: 24px 28px;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__text {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
  line-height: 1.6;
}
.cookie-banner__text a { color: var(--teal-light); }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}
.cookie-btn {
  padding: 9px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s;
}
.cookie-btn--accept { background: var(--teal); color: #fff; }
.cookie-btn--accept:hover { background: #2f9589; }
.cookie-btn--reject { background: transparent; color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }
.cookie-btn--reject:hover { background: rgba(255,255,255,0.08); }
.cookie-btn--configure { background: transparent; color: rgba(255,255,255,0.55); font-size: 13px; }
.cookie-btn--configure:hover { color: rgba(255,255,255,0.85); }
.cookie-config-panel {
  display: none;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-direction: column;
  gap: 14px;
}
.cookie-config-panel.is-open { display: flex; }
.cookie-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.cookie-toggle__label { font-size: 14px; color: rgba(255,255,255,0.8); }
.cookie-toggle__sub { font-size: 12px; color: rgba(255,255,255,0.45); display: block; }
.cookie-toggle__switch { flex: none; }
.cookie-toggle input[type=checkbox] {
  width: 38px; height: 20px; cursor: pointer;
  accent-color: var(--teal);
}
.cookie-save-btn {
  align-self: flex-start;
  padding: 9px 22px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-save-btn:hover { background: #2f9589; }

/* 20. Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

/* 21. Legal pages */
.legal-page {
  padding: 56px 0 80px;
}
.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--teal);
  text-decoration: none;
  margin-bottom: 32px;
}
.legal-page__back:hover { color: var(--coral); }
.legal-page h1 {
  font-size: clamp(24px, 4vw, 38px);
  margin-bottom: 8px;
}
.legal-page .legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.legal-page h2 {
  font-size: 20px;
  font-family: var(--font-display);
  color: var(--dark);
  margin: 36px 0 12px;
}
.legal-page h3 {
  font-size: 17px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 8px;
}
.legal-page p, .legal-page li {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 0.9em;
}
.legal-page ul, .legal-page ol {
  padding-left: 24px;
  margin-bottom: 1em;
}
.legal-page li { margin-bottom: 0.5em; }

/* 22. Responsive */
@media (max-width: 600px) {
  .badge-row { grid-template-columns: repeat(3, 1fr); }
  .inline-cta { padding: 20px 20px; }
  .facts__row { grid-template-columns: 1fr; }
}

/* Progressive-enhancement safety (injected by builder): scroll-reveal blocks stay VISIBLE
   unless JS confirms it can animate them by adding .js-anim to <html>. Guarantees a
   truncated page or a failed script can never leave content permanently hidden. */
html:not(.js-anim) .reveal,
html:not(.js-anim) .reveal-left,
html:not(.js-anim) .reveal-right,
html:not(.js-anim) .reveal-scale,
html:not(.js-anim) .stagger-child {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================
   23. PRODUKTY + BLOG (index) a články blogu
   ============================================================ */
.products-section, .blog-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.blog-section { background: var(--cream-mid); }
.shelf-header { max-width: 640px; margin-bottom: 36px; }
.section-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-style: italic;
  margin-bottom: 12px;
}
.section-subtitle { font-size: 16px; color: var(--dark-soft); }
.shelf-note {
  margin-top: 28px;
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
}

/* Product grid: 4 -> 2 -> 1 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-card__img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream-mid);
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  line-height: 1.4;
}
.chip-hot { background: var(--coral); }
.chip-alt { background: var(--teal); }
.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 18px;
}
.product-card__name {
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 8px;
}
.product-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark-soft);
  margin-bottom: 16px;
}
.product-card__btn {
  margin-top: auto;
  text-align: center;
  padding: 11px 16px;
  font-size: 14px;
}

/* Blog grid: 3 -> 2 -> 1 (auto-fit, so two cards fill the row) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
@media (min-width: 1000px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
  /* 5 cards: 3 compact on top row, 2 wide below */
  .blog-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
  .blog-grid:has(> :nth-child(5):last-child) > .blog-card { grid-column: span 3; }
  .blog-grid:has(> :nth-child(5):last-child) > .blog-card--compact { grid-column: span 2; }
}
/* 600-1000px with an odd number of cards: last one spans the full row */
@media (min-width: 601px) and (max-width: 999px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid > .blog-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.blog-card__img { display: block; aspect-ratio: 16 / 10; background: var(--cream-mid); overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card--compact .blog-card__img img { image-rendering: auto; }
.blog-card:hover .blog-card__img img { transform: scale(1.03); }
.blog-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.blog-card__cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.blog-card__title { font-size: 20px; line-height: 1.35; margin-bottom: 10px; }
.blog-card__title a { color: var(--dark); text-decoration: none; }
.blog-card__title a:hover { color: var(--teal); }
.blog-card__excerpt { font-size: 15px; color: var(--dark-soft); margin-bottom: 16px; }
.blog-card__link {
  margin-top: auto;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.blog-card__link::after { content: " →"; }

/* Blog article pages */
.blog-back { padding-top: 28px; }
.blog-back .legal-page__back { margin-bottom: 0; }
.blog-note {
  background: var(--teal-bg);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 32px 0;
  font-size: 15px;
  color: var(--dark);
}
.blog-note strong { font-family: var(--font-display); }
.article-body ul { padding-left: 22px; margin-bottom: 1.2em; }
.article-body li { margin-bottom: 0.5em; }
.blog-related { padding: 8px 0 56px; }
.blog-related .btn-ext { margin-top: 8px; }

@media (max-width: 1000px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .products-section, .blog-section { padding: 40px 0; }
  .products-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card__title { font-size: 18px; }
}
