:root {
  --paper: #FFFFFF;
  --paper-alt: #FFFFFF;
  --paper-card: #FFFFFF;
  --ink: #17181C;
  --ink-soft: #55575F;
  --ink-faint: #9A9C9F;
  --cobalt: #0096FF;
  --cobalt-deep: #0075C7;
  --cobalt-glow: rgba(0, 150, 255, 0.2);
  --amber: #FF9300;
  --green: #22A559;
  --red: #D8402F;
  --line: #E8EEF5;
  --line-light: #F0F4F8;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1140px;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 16px 36px -6px rgba(0, 0, 0, 0.09);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section, [id] { scroll-margin-top: 85px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.aqua { color: var(--cobalt); }
.green { color: var(--green); }
.amber { color: var(--amber); }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 84px 0; position: relative; background: var(--paper); }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
a { color: inherit; text-decoration: none; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 38px; width: auto; display: block; }
.logo-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 150, 255, 0.08);
  color: var(--cobalt);
  border: 1px solid rgba(0, 150, 255, 0.22);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.08em;
}
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--cobalt); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  nav .wrap { padding: 14px 20px; }
  .logo-img { height: 32px; }
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 14.5px;
  cursor: pointer; border: 1px solid transparent;
  text-transform: uppercase; letter-spacing: 0.04em;
  font-family: 'Oswald', sans-serif;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn:hover:not(.btn-disabled) { transform: translateY(-2px); }
.btn-primary {
  background: var(--cobalt); color: var(--white);
  box-shadow: 0 6px 18px -4px rgba(0, 150, 255, 0.45);
}
.btn-primary:hover { background: var(--cobalt-deep); }
.btn-red {
  background: var(--red); color: var(--white);
  box-shadow: 0 6px 18px -4px rgba(216, 64, 47, 0.4);
}
.btn-red:hover {
  background: var(--green) !important;
  box-shadow: 0 8px 22px -6px rgba(34, 165, 89, 0.5) !important;
}
.btn-ghost {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--cobalt); color: var(--cobalt);
}
.btn-disabled {
  background: #F0F4F8;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  cursor: not-allowed;
  box-shadow: none;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* HERO UNDER CONSTRUCTION */
.hero-construction {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.construction-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 48px;
  align-items: center;
}

.construction-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.construction-dog {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.12));
}

.construction-sign {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: #17181C;
  border-radius: 14px;
  padding: 46px 40px 40px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(17, 18, 22, 0.2);
}

.construction-sign::before,
.construction-sign::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background: repeating-linear-gradient(45deg, #FF9300 0 12px, #17181C 12px 24px);
}

.construction-sign::before {
  top: 0;
}

.construction-sign::after {
  bottom: 0;
}

.construction-warning {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FF9300;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.construction-sign p.construction-sign-line {
  position: relative;
  z-index: 1;
  color: #FFFFFF;
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  text-transform: uppercase;
}

.construction-sign-line strong {
  font-weight: 700;
  color: #FFFFFF;
}

.construction-sign-tag {
  color: #FF9300;
  font-weight: 700;
}

.construction-sign p.construction-sign-sub {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  font-family: 'Manrope', sans-serif;
}

.construction-sign p.construction-sign-eta {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  font-size: 16.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Manrope', sans-serif;
}

.construction-sign-eta em {
  font-style: normal;
  font-weight: 700;
  color: #FFFFFF;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
}

@media (max-width: 960px) {
  .construction-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .construction-dog {
    max-width: 300px;
    margin: 0 auto;
  }
  .construction-sign {
    padding: 36px 24px 30px;
  }
  .construction-sign p.construction-sign-line {
    font-size: 24px;
  }
  .construction-sign p.construction-sign-sub {
    font-size: 15px;
  }
  .construction-sign p.construction-sign-eta {
    font-size: 14.5px;
  }
}

/* HERO */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 80px 24px 64px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero h1 {
  font-size: 42px; margin: 0 auto 16px; font-weight: 700;
  line-height: 1.18; max-width: 820px;
}
.hero-sub {
  font-size: 17.5px; color: var(--ink-soft); max-width: 680px; margin: 0 auto 28px;
  line-height: 1.6;
}

/* SECTION HEAD */
.section-head {
  text-align: center; max-width: 740px; margin: 0 auto 48px;
}
.section-head h2 { font-size: 34px; margin-bottom: 10px; }
.section-head p { font-size: 16.5px; color: var(--ink-soft); margin: 0; }

/* 3D FLOATING BOOK COVERS ENGINE */
.book-main-visual,
.ebook-visual,
.bundle-visual,
.product-single-visual {
  background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.book-main-visual img,
.ebook-visual img,
.bundle-visual img,
.product-single-visual img {
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.12)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  transform: translateY(-2px);
}

.book-main-card:hover .book-main-visual img,
.ebook-card:hover .ebook-visual img,
.bundle-card:hover .bundle-visual img,
.product-single-card:hover .product-single-visual img {
  transform: translateY(-8px) scale(1.03);
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.16)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
}

/* 2-COLUMN BOOK SHOWCASE GRID */
.books-main-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
.book-main-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.book-main-card:hover {
  border-color: rgba(0, 150, 255, 0.35);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.book-main-visual {
  height: 260px; padding: 16px 0; margin-bottom: 20px;
}
.book-main-visual img {
  max-height: 230px; max-width: 100%; object-fit: contain;
}
.book-main-card h3 { font-size: 24px; margin-bottom: 6px; }
.book-main-card h3 a:hover { color: var(--cobalt); }
.book-main-subtitle { font-size: 14.5px; font-weight: 600; color: var(--cobalt); margin-bottom: 12px; }
.book-main-lead { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 20px; flex: 1; }
.book-main-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--line);
}

/* 4-COLUMN EBOOKS GRID */
.ebooks-4col-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.ebook-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.ebook-card:hover {
  border-color: rgba(0, 150, 255, 0.35);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.ebook-visual {
  height: 180px; padding: 10px 0; margin-bottom: 16px;
}
.ebook-visual img {
  max-height: 160px; max-width: 100%; object-fit: contain;
}
.ebook-card h3 { font-size: 18px; margin-bottom: 8px; }
.ebook-card .ebook-badge {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600;
  color: var(--cobalt); margin-bottom: 12px; display: block;
}
.ebook-footer {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}

/* 2x2 BUNDLES GRID (Zestawy powiększone) */
.bundles-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.bundle-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.bundle-card:hover {
  border-color: rgba(0, 150, 255, 0.35);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.bundle-visual {
  height: 220px; padding: 10px 0; margin-bottom: 18px;
}
.bundle-visual img {
  max-height: 200px; max-width: 100%; object-fit: contain;
}
.bundle-card h3 { font-size: 22px; margin-bottom: 8px; }
.bundle-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 20px; flex: 1; }
.bundle-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--line);
}

/* GUIDE MODULE ("Od której książki zacząć?") */
.guide-feature-box {
  display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
}
.guide-text h2 { font-size: 30px; margin-bottom: 18px; }
.guide-text p { font-size: 16px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 16px; }
.guide-text p:last-child { margin-bottom: 0; }
.guide-visual img {
  width: 100%; height: auto; border-radius: 10px;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.12));
}

/* BOOKS ONLINE BENEFITS SECTION */
.benefits-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.benefit-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}
.benefit-icon {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 20px;
}
.benefit-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--ink);
}
.benefit-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

/* HISTORY OF UPDATES / DIFFERENCE SECTION */
.history-feature-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
}
.history-text h2 { font-size: 30px; margin-bottom: 10px; }
.history-tagline {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  color: var(--cobalt);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}
.history-text p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 14px; }
.history-text p:last-child { margin-bottom: 0; }
.history-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.12));
}

/* QUOTES SECTION */
.quotes-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.quote-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.quote-card blockquote {
  font-size: 15.5px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.65;
  margin: 0;
  position: relative;
}
.quote-source {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--cobalt);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ABOUT AUTHOR SECTION */
.author-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.author-text h2 { font-size: 32px; margin-bottom: 16px; }
.author-text p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 14px; }
.author-text p:last-child { margin-bottom: 0; }
.author-portrait img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

/* STORE NOTE CALLOUT */
.store-note-box {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.store-note-box h3 { font-size: 24px; margin-bottom: 10px; color: var(--cobalt); }
.store-note-box p { font-size: 16.5px; color: var(--ink); line-height: 1.65; margin: 0; }

/* SINGLE PRODUCT PAGE LAYOUT */
.product-single-wrap {
  padding: 30px 0 70px;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600;
  color: var(--cobalt); margin-bottom: 24px;
}
.back-link:hover { text-decoration: underline; }
.product-single-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
}
.product-single-top {
  display: grid; grid-template-columns: 360px 1fr; gap: 44px;
  margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line);
}
.product-single-visual {
  padding: 16px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.product-single-visual img {
  max-width: 100%; max-height: 340px;
  margin-bottom: 18px;
}
.product-single-price-row {
  width: 100%; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.product-single-details h1 { font-size: 36px; margin-bottom: 6px; }
.product-single-details .product-subtitle { font-size: 16.5px; color: var(--cobalt); font-weight: 600; margin-bottom: 16px; }
.product-single-details .product-lead-text { font-size: 16.5px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 20px; }

/* SECTIONS ON SINGLE PRODUCT PAGE */
.product-content-sections {
  display: flex; flex-direction: column; gap: 32px;
}
.product-section-block h3 {
  font-size: 22px; margin-bottom: 12px; color: var(--cobalt);
}
.product-section-block p {
  font-size: 16px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 14px;
}
.product-section-block ul {
  list-style: none; margin-bottom: 14px;
}
.product-section-block li {
  font-size: 15.5px; color: var(--ink-soft); margin-bottom: 8px; position: relative; padding-left: 20px;
}
.product-section-block li::before {
  content: "—"; position: absolute; left: 0; color: var(--cobalt); font-weight: 700;
}

.product-current-price {
  font-family: 'Oswald', sans-serif; font-size: 30px; font-weight: 700; color: var(--ink);
  line-height: 1;
}

/* FOOTER */
footer {
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 28px;
}
.footer-col h4 { font-size: 16.5px; margin-bottom: 10px; color: var(--ink); }
.footer-col p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 8px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-faint);
}
.footer-bottom a { color: var(--cobalt); font-weight: 600; }
.footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .books-main-grid, .bundles-grid, .guide-feature-box, .history-feature-box, .author-card, .product-single-top {
    grid-template-columns: 1fr; gap: 24px;
  }
  .benefits-3col-grid, .quotes-3col-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .ebooks-4col-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: 32px; }
  .section-head h2 { font-size: 26px; }
  .guide-feature-box, .history-feature-box, .author-card, .product-single-card { padding: 28px 20px; }
}
@media (max-width: 640px) {
  .benefits-3col-grid, .quotes-3col-grid, .ebooks-4col-grid { grid-template-columns: 1fr; }
}
